/*
	Copyright (c) 2004-2006, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/community/licensing.shtml
*/

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 6986 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.getObject=function(_3,_4,_5,_6){
var _7,_8;
if(typeof _3!="string"){
return undefined;
}
_7=_5;
if(!_7){
_7=dojo.global();
}
var _9=_3.split("."),i=0,_b,_c,_d;
do{
_b=_7;
_d=_9[i];
_c=_7[_9[i]];
if((_4)&&(!_c)){
_c=_7[_9[i]]={};
}
_7=_c;
i++;
}while(i<_9.length&&_7);
_8=_7;
_7=_b;
return (_6)?{obj:_7,prop:_d}:_8;
};
dojo.exists=function(_e,_f){
if(typeof _f=="string"){
dojo.deprecated("dojo.exists(obj, name)","use dojo.exists(name, obj, /*optional*/create)","0.6");
var tmp=_e;
_e=_f;
_f=tmp;
}
return (!!dojo.getObject(_e,false,_f));
};
dojo.evalProp=function(_11,_12,_13){
dojo.deprecated("dojo.evalProp","just use hash syntax. Sheesh.","0.6");
return _12[_11]||(_13?(_12[_11]={}):undefined);
};
dojo.parseObjPath=function(_14,_15,_16){
dojo.deprecated("dojo.parseObjPath","use dojo.getObject(path, create, context, true)","0.6");
return dojo.getObject(_14,_16,_15,true);
};
dojo.evalObjPath=function(_17,_18){
dojo.deprecated("dojo.evalObjPath","use dojo.getObject(path, create)","0.6");
return dojo.getObject(_17,_18);
};
dojo.errorToString=function(_19){
return (_19["message"]||_19["description"]||_19);
};
dojo.raise=function(_1a,_1b){
if(_1b){
_1a=_1a+": "+dojo.errorToString(_1b);
}else{
_1a=dojo.errorToString(_1a);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_1a);
}
}
catch(e){
}
throw _1b||Error(_1a);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_1d){
return dj_global.eval?dj_global.eval(_1d):eval(_1d);
}
dojo.unimplemented=function(_1e,_1f){
var _20="'"+_1e+"' not implemented";
if(_1f!=null){
_20+=" "+_1f;
}
dojo.raise(_20);
};
dojo.deprecated=function(_21,_22,_23){
var _24="DEPRECATED: "+_21;
if(_22){
_24+=" "+_22;
}
if(_23){
_24+=" -- will be removed in version: "+_23;
}
dojo.debug(_24);
};
dojo.render=(function(){
function vscaffold(_25,_26){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_25};
for(var i=0;i<_26.length;i++){
tmp[_26[i]]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _29={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_29;
}else{
for(var _2a in _29){
if(typeof djConfig[_2a]=="undefined"){
djConfig[_2a]=_29[_2a];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _2d={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},registerModulePath:function(_2e,_2f){
this.modulePrefixes_[_2e]={name:_2e,value:_2f};
},moduleHasPrefix:function(_30){
var mp=this.modulePrefixes_;
return Boolean(mp[_30]&&mp[_30].value);
},getModulePrefix:function(_32){
if(this.moduleHasPrefix(_32)){
return this.modulePrefixes_[_32].value;
}
return _32;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _33 in _2d){
dojo.hostenv[_33]=_2d[_33];
}
})();
dojo.hostenv.loadPath=function(_34,_35,cb){
var uri;
if(_34.charAt(0)=="/"||_34.match(/^\w+:/)){
uri=_34;
}else{
uri=this.getBaseScriptUri()+_34;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_35?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_35,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _3a=this.getText(uri,null,true);
if(!_3a){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_3a="("+_3a+")";
}
var _3b=dj_eval(_3a);
if(cb){
cb(_3b);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_3d,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_3d,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_44){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_44]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_47){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_47]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_49){
var _4a=_49.split(".");
for(var i=_4a.length;i>0;i--){
var _4c=_4a.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_4c)){
_4a[0]="../"+_4a[0];
}else{
var _4d=this.getModulePrefix(_4c);
if(_4d!=_4c){
_4a.splice(0,i,_4d);
break;
}
}
}
return _4a;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_4e,_4f,_50){
if(!_4e){
return;
}
_50=this._global_omit_module_check||_50;
var _51=this.findModule(_4e,false);
if(_51){
return _51;
}
if(dj_undef(_4e,this.loading_modules_)){
this.addedToLoadingCount.push(_4e);
}
this.loading_modules_[_4e]=1;
var _52=_4e.replace(/\./g,"/")+".js";
var _53=_4e.split(".");
var _54=this.getModuleSymbols(_4e);
var _55=((_54[0].charAt(0)!="/")&&!_54[0].match(/^\w+:/));
var _56=_54[_54.length-1];
var ok;
if(_56=="*"){
_4e=_53.slice(0,-1).join(".");
while(_54.length){
_54.pop();
_54.push(this.pkgFileName);
_52=_54.join("/")+".js";
if(_55&&_52.charAt(0)=="/"){
_52=_52.slice(1);
}
ok=this.loadPath(_52,!_50?_4e:null);
if(ok){
break;
}
_54.pop();
}
}else{
_52=_54.join("/")+".js";
_4e=_53.join(".");
var _58=!_50?_4e:null;
ok=this.loadPath(_52,_58);
if(!ok&&!_4f){
_54.pop();
while(_54.length){
_52=_54.join("/")+".js";
ok=this.loadPath(_52,_58);
if(ok){
break;
}
_54.pop();
_52=_54.join("/")+"/"+this.pkgFileName+".js";
if(_55&&_52.charAt(0)=="/"){
_52=_52.slice(1);
}
ok=this.loadPath(_52,_58);
if(ok){
break;
}
}
}
if(!ok&&!_50){
dojo.raise("Could not load '"+_4e+"'; last tried '"+_52+"'");
}
}
if(!_50&&!this["isXDomain"]){
_51=this.findModule(_4e,false);
if(!_51){
dojo.raise("symbol '"+_4e+"' is not defined after loading '"+_52+"'");
}
}
return _51;
};
dojo.hostenv.startPackage=function(_59){
var _5a=String(_59);
var _5b=_5a;
var _5c=_59.split(/\./);
if(_5c[_5c.length-1]=="*"){
_5c.pop();
_5b=_5c.join(".");
}
var _5d=dojo.getObject(_5b,true);
this.loaded_modules_[_5a]=_5d;
this.loaded_modules_[_5b]=_5d;
return _5d;
};
dojo.hostenv.findModule=function(_5e,_5f){
var lmn=String(_5e);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_5f){
dojo.raise("no loaded module named '"+_5e+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_61){
var _62=_61["common"]||[];
var _63=_61[dojo.hostenv.name_]?_62.concat(_61[dojo.hostenv.name_]||[]):_62.concat(_61["default"]||[]);
for(var x=0;x<_63.length;x++){
var _65=_63[x];
if(_65.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_65);
}else{
dojo.hostenv.loadModule(_65);
}
}
};
dojo.require=function(_66){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_67,_68){
var _69=arguments[0];
if((_69===true)||(_69=="common")||(_69&&dojo.render[_69].capable)){
var _6a=[];
for(var i=1;i<arguments.length;i++){
_6a.push(arguments[i]);
}
dojo.require.apply(dojo,_6a);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_6c){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_6d,_6e){
return dojo.hostenv.registerModulePath(_6d,_6e);
};
if(djConfig["modulePaths"]){
for(var param in djConfig["modulePaths"]){
dojo.registerModulePath(param,djConfig["modulePaths"][param]);
}
}
dojo.hostenv.normalizeLocale=function(_6f){
var _70=_6f?_6f.toLowerCase():dojo.locale;
if(_70=="root"){
_70="ROOT";
}
return _70;
};
dojo.hostenv.searchLocalePath=function(_71,_72,_73){
_71=dojo.hostenv.normalizeLocale(_71);
var _74=_71.split("-");
var _75=[];
for(var i=_74.length;i>0;i--){
_75.push(_74.slice(0,i).join("-"));
}
_75.push(false);
if(_72){
_75.reverse();
}
for(var j=_75.length-1;j>=0;j--){
var loc=_75[j]||"ROOT";
var _79=_73(loc);
if(_79){
break;
}
}
};
dojo.hostenv.localesGenerated=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_7a){
_7a=dojo.hostenv.normalizeLocale(_7a);
dojo.hostenv.searchLocalePath(_7a,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _7d=djConfig.extraLocale||[];
for(var i=0;i<_7d.length;i++){
preload(_7d[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7f,_80,_81,_82){
dojo.hostenv.preloadLocalizations();
var _83=dojo.hostenv.normalizeLocale(_81);
var _84=[_7f,"nls",_80].join(".");
var _85="";
if(_82){
var _86=_82.split(",");
for(var i=0;i<_86.length;i++){
if(_83.indexOf(_86[i])==0){
if(_86[i].length>_85.length){
_85=_86[i];
}
}
}
if(!_85){
_85="ROOT";
}
}
var _88=_82?_85:_83;
var _89=dojo.hostenv.findModule(_84);
var _8a=null;
if(_89){
if(djConfig.localizationComplete&&_89._built){
return;
}
var _8b=_88.replace("-","_","g");
var _8c=_84+"."+_8b;
_8a=dojo.hostenv.findModule(_8c);
}
if(!_8a){
_89=dojo.hostenv.startPackage(_84);
var _8d=dojo.hostenv.getModuleSymbols(_7f);
var _8e=_8d.concat("nls").join("/");
var _8f;
dojo.hostenv.searchLocalePath(_88,_82,function(loc){
var _91=loc.replace("-","_","g");
var _92=_84+"."+_91;
var _93=false;
if(!dojo.hostenv.findModule(_92)){
dojo.hostenv.startPackage(_92);
var _94=[_8e];
if(loc!="ROOT"){
_94.push(loc);
}
_94.push(_80);
var _95=_94.join("/")+".js";
_93=dojo.hostenv.loadPath(_95,null,function(_96){
var _97=function(){
};
_97.prototype=_8f;
_89[_91]=new _97();
for(var j in _96){
_89[_91][j]=_96[j];
}
});
}else{
_93=true;
}
if(_93&&_89[_91]){
_8f=_89[_91];
}else{
_89[_91]=_8f;
}
if(_82){
return true;
}
});
}
if(_82&&_83!=_85){
_89[_83.replace("-","_","g")]=_89[_85.replace("-","_","g")];
}
};
(function(){
var _99=djConfig.extraLocale;
if(_99){
if(!_99 instanceof Array){
_99=[_99];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9d,_9e){
req(m,b,_9d,_9e);
if(_9d){
return;
}
for(var i=0;i<_99.length;i++){
req(m,b,_99[i],_9e);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _a0=document.location.toString();
var _a1=_a0.split("?",2);
if(_a1.length>1){
var _a2=_a1[1];
var _a3=_a2.split("&");
for(var x in _a3){
var sp=_a3[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _a7=document.getElementsByTagName("script");
var _a8=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a7.length;i++){
var src=_a7[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a8);
if(m){
var _ac=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ac+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ac;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ac;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=(drh.UA=navigator.userAgent);
var dav=(drh.AV=navigator.appVersion);
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _b4=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b4>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b4+6,_b4+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
var _b6=window["document"];
var tdi=_b6["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}else{
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _ba=null;
var _bb=null;
try{
_ba=new XMLHttpRequest();
}
catch(e){
}
if(!_ba){
for(var i=0;i<3;++i){
var _bd=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_ba=new ActiveXObject(_bd);
}
catch(e){
_bb=e;
}
if(_ba){
dojo.hostenv._XMLHTTP_PROGIDS=[_bd];
break;
}
}
}
if(!_ba){
return dojo.raise("XMLHTTP not available",_bb);
}
return _ba;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_bf,_c0){
if(!_bf){
this._blockAsync=true;
}
var _c1=this.getXmlhttpObject();
function isDocumentOk(_c2){
var _c3=_c2["status"];
return Boolean((!_c3)||((200<=_c3)&&(300>_c3))||(_c3==304));
}
if(_bf){
var _c4=this,_c5=null,gbl=dojo.global();
var xhr=dojo.getObject("dojo.io.XMLHTTPTransport");
_c1.onreadystatechange=function(){
if(_c5){
gbl.clearTimeout(_c5);
_c5=null;
}
if(_c4._blockAsync||(xhr&&xhr._blockAsync)){
_c5=gbl.setTimeout(function(){
_c1.onreadystatechange.apply(this);
},10);
}else{
if(4==_c1.readyState){
if(isDocumentOk(_c1)){
_bf(_c1.responseText);
}
}
}
};
}
_c1.open("GET",uri,_bf?true:false);
try{
_c1.send(null);
if(_bf){
return null;
}
if(!isDocumentOk(_c1)){
var err=Error("Unable to load "+uri+" status:"+_c1.status);
err.status=_c1.status;
err.responseText=_c1.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_c0)&&(!_bf)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c1.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c9){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c9);
}else{
try{
var _ca=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_ca){
_ca=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c9));
_ca.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_c9+"</div>");
}
catch(e2){
window.status=_c9;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_cc,_cd,fp){
var _cf=_cc["on"+_cd]||function(){
};
_cc["on"+_cd]=function(){
fp.apply(_cc,arguments);
_cf.apply(_cc,arguments);
};
return true;
}
function dj_load_init(e){
var _d1=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d1!="domcontentloaded"&&_d1!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d2=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d2();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d2);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&(djConfig["enableMozDomContentLoaded"]===true))){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){dj_load_init();}\">"+"</scr"+"ipt>");
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var _d3=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_d3=_d3.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_d3=_d3.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_d3.length>0)){
if(dojo.getObject("dojo.widget.Parse")){
var _d4=new dojo.xml.Parse();
if(_d3.length>0){
for(var x=0;x<_d3.length;x++){
var _d6=document.getElementById(_d3[x]);
if(!_d6){
continue;
}
var _d7=_d4.parseElement(_d6,null,true);
dojo.widget.getParser().createComponents(_d7);
}
}else{
if(djConfig.parseWidgets){
var _d7=_d4.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_d7);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_dc,_dd){
dj_currentContext=_dc;
dj_currentDocument=_dd;
};
dojo._fireCallback=function(_de,_df,_e0){
if((_df)&&((typeof _de=="string")||(_de instanceof String))){
_de=_df[_de];
}
return (_df?_de.apply(_df,_e0||[]):_de());
};
dojo.withGlobal=function(_e1,_e2,_e3,_e4){
var _e5;
var _e6=dj_currentContext;
var _e7=dj_currentDocument;
try{
dojo.setContext(_e1,_e1.document);
_e5=dojo._fireCallback(_e2,_e3,_e4);
}
finally{
dojo.setContext(_e6,_e7);
}
return _e5;
};
dojo.withDoc=function(_e8,_e9,_ea,_eb){
var _ec;
var _ed=dj_currentDocument;
try{
dj_currentDocument=_e8;
_ec=dojo._fireCallback(_e9,_ea,_eb);
}
finally{
dj_currentDocument=_ed;
}
return _ec;
};
}
dojo.requireIf((djConfig["isDebug"]||djConfig["debugAtAllCosts"]),"dojo.debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&!djConfig["useXDomain"],"dojo.browser_debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&djConfig["useXDomain"],"dojo.browser_debug_xd");
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_ee,_ef){
if(!dojo.lang.isFunction(_ef)){
dojo.raise("dojo.inherits: superclass argument ["+_ef+"] must be a function (subclass: ["+_ee+"']");
}
_ee.prototype=new _ef();
_ee.prototype.constructor=_ee;
_ee.superclass=_ef.prototype;
_ee["super"]=_ef.prototype;
};
dojo.lang._mixin=function(obj,_f1){
var _f2={};
for(var x in _f1){
if((typeof _f2[x]=="undefined")||(_f2[x]!=_f1[x])){
obj[x]=_f1[x];
}
}
if(dojo.render.html.ie&&(typeof (_f1["toString"])=="function")&&(_f1["toString"]!=obj["toString"])&&(_f1["toString"]!=_f2["toString"])){
obj.toString=_f1.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_f5){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_f8,_f9){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_f8.prototype,arguments[i]);
}
return _f8;
};
dojo.lang._delegate=function(obj,_fd){
function TMP(){
}
TMP.prototype=obj;
var tmp=new TMP();
if(_fd){
dojo.lang.mixin(tmp,_fd);
}
return tmp;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_ff,_100,_101,_102){
var _103=dojo.lang.isString(_ff);
if(_103){
_ff=_ff.split("");
}
if(_102){
var step=-1;
var i=_ff.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_ff.length;
}
if(_101){
while(i!=end){
if(_ff[i]===_100){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_ff[i]==_100){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_107,_108,_109){
return dojo.lang.find(_107,_108,_109,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_10a,_10b){
return dojo.lang.find(_10a,_10b)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.lang.array");
dojo.lang.mixin(dojo.lang,{has:function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
},isEmpty:function(obj){
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length===0;
}else{
if(dojo.lang.isObject(obj)){
var tmp={};
for(var x in obj){
if(obj[x]&&(!tmp[x])){
return false;
}
}
return true;
}
}
},map:function(arr,obj,_11d){
var _11e=dojo.lang.isString(arr);
if(_11e){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_11d)){
_11d=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_11d){
var _11f=obj;
obj=_11d;
_11d=_11f;
}
}
if(Array.map){
var _120=Array.map(arr,_11d,obj);
}else{
var _120=[];
for(var i=0;i<arr.length;++i){
_120.push(_11d.call(obj,arr[i]));
}
}
if(_11e){
return _120.join("");
}else{
return _120;
}
},reduce:function(arr,_123,obj,_125){
var _126=_123;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_125=_123;
_126=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_125=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_125;
_125=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_126=_125.call(ob,_126,val);
});
return _126;
},forEach:function(_12a,_12b,_12c){
if(dojo.lang.isString(_12a)){
_12a=_12a.split("");
}
if(Array.forEach){
Array.forEach(_12a,_12b,_12c);
}else{
if(!_12c){
_12c=dj_global;
}
for(var i=0,l=_12a.length;i<l;i++){
_12b.call(_12c,_12a[i],i,_12a);
}
}
},_everyOrSome:function(_12f,arr,_131,_132){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_12f?"every":"some"](arr,_131,_132);
}else{
if(!_132){
_132=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _135=_131.call(_132,arr[i],i,arr);
if(_12f&&!_135){
return false;
}else{
if((!_12f)&&(_135)){
return true;
}
}
}
return Boolean(_12f);
}
},every:function(arr,_137,_138){
return this._everyOrSome(true,arr,_137,_138);
},some:function(arr,_13a,_13b){
return this._everyOrSome(false,arr,_13a,_13b);
},filter:function(arr,_13d,_13e){
var _13f=dojo.lang.isString(arr);
if(_13f){
arr=arr.split("");
}
var _140;
if(Array.filter){
_140=Array.filter(arr,_13d,_13e);
}else{
if(!_13e){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_13e=dj_global;
}
_140=[];
for(var i=0;i<arr.length;i++){
if(_13d.call(_13e,arr[i],i,arr)){
_140.push(arr[i]);
}
}
}
if(_13f){
return _140.join("");
}else{
return _140;
}
},unnest:function(){
var out=[];
for(var i=0;i<arguments.length;i++){
if(dojo.lang.isArrayLike(arguments[i])){
var add=dojo.lang.unnest.apply(this,arguments[i]);
out=out.concat(add);
}else{
out.push(arguments[i]);
}
}
return out;
},toArray:function(_145,_146){
var _147=[];
for(var i=_146||0;i<_145.length;i++){
_147.push(_145[i]);
}
return _147;
}});
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_14a){
var _14b=window,_14c=2;
if(!dojo.lang.isFunction(func)){
_14b=func;
func=_14a;
_14a=arguments[2];
_14c++;
}
if(dojo.lang.isString(func)){
func=_14b[func];
}
var args=[];
for(var i=_14c;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_14b,args);
},_14a);
};
dojo.lang.clearTimeout=function(_14f){
dojo.global().clearTimeout(_14f);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj,deep){
var i,ret;
if(obj===null){
return null;
}
if(dojo.lang.isObject(obj)){
ret=new obj.constructor();
for(i in obj){
if(dojo.lang.isUndefined(ret[i])){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}
}else{
if(dojo.lang.isArray(obj)){
ret=[];
for(i=0;i<obj.length;i++){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}else{
ret=obj;
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_158,_159,_15a){
dojo.deprecated("dojo.lang.getObjPathValue","use dojo.getObject","0.6");
with(dojo.parseObjPath(_158,_159,_15a)){
return dojo.evalProp(prop,obj,_15a);
}
};
dojo.lang.setObjPathValue=function(_15b,_15c,_15d,_15e){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_15e=true;
}
with(dojo.parseObjPath(_15b,_15d,_15e)){
if(obj&&(_15e||(prop in obj))){
obj[prop]=_15c;
}
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_15f,_160){
var args=[];
for(var x=2;x<arguments.length;x++){
args.push(arguments[x]);
}
var fcn=(dojo.lang.isString(_160)?_15f[_160]:_160)||function(){
};
return function(){
var ta=args.concat([]);
for(var x=0;x<arguments.length;x++){
ta.push(arguments[x]);
}
return fcn.apply(_15f,ta);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_166,_167,_168){
var isIE=(dojo.render.html.capable&&dojo.render.html["ie"]);
var jpn="$joinpoint";
var nso=(_167||dojo.lang.anon);
if(isIE){
var cn=_166["__dojoNameCache"];
if(cn&&nso[cn]===_166){
return _166["__dojoNameCache"];
}else{
if(cn){
var _16d=cn.indexOf(jpn);
if(_16d!=-1){
return cn.substring(0,_16d);
}
}
}
}
if((_168)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_166){
if(isIE){
_166["__dojoNameCache"]=x;
var _16d=x.indexOf(jpn);
if(_16d!=-1){
x=x.substring(0,_16d);
}
}
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_166;
return ret;
};
dojo.lang.forward=function(_170){
return function(){
return this[_170].apply(this,arguments);
};
};
dojo.lang.curry=function(_171,func){
var _173=[];
_171=_171||dj_global;
if(dojo.lang.isString(func)){
func=_171[func];
}
for(var x=2;x<arguments.length;x++){
_173.push(arguments[x]);
}
var _175=(func["__preJoinArity"]||func.length)-_173.length;
function gather(_176,_177,_178){
var _179=_178;
var _17a=_177.slice(0);
for(var x=0;x<_176.length;x++){
_17a.push(_176[x]);
}
_178=_178-_176.length;
if(_178<=0){
var res=func.apply(_171,_17a);
_178=_179;
return res;
}else{
return function(){
return gather(arguments,_17a,_178);
};
}
}
return gather([],_173,_175);
};
dojo.lang.curryArguments=function(_17d,func,args,_180){
var _181=[];
var x=_180||0;
for(x=_180;x<args.length;x++){
_181.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_17d,func].concat(_181));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_187,_188){
if(!farr.length){
if(typeof _188=="function"){
_188();
}
return;
}
if((typeof _187=="undefined")&&(typeof cb=="number")){
_187=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_187){
_187=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_187,_188);
},_187);
};
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_18a){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _18d=dl.nameAnonFunc(args[2],ao.adviceObj,_18a);
ao.adviceFunc=_18d;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _18d=dl.nameAnonFunc(args[0],ao.srcObj,_18a);
ao.srcFunc=_18d;
ao.adviceObj=args[1];
ao.adviceFunc=args[2];
}
}
}
}
break;
case 4:
if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
var _18d=dl.nameAnonFunc(args[1],dj_global,_18a);
ao.srcFunc=_18d;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){
ao.srcObj=args[1];
ao.srcFunc=args[2];
var _18d=dl.nameAnonFunc(args[3],dj_global,_18a);
ao.adviceObj=dj_global;
ao.adviceFunc=_18d;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
ao.maxCalls=(!isNaN(parseInt(args[11])))?args[11]:-1;
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _18d=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_18a);
ao.aroundFunc=_18d;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _18f={};
for(var x in ao){
_18f[x]=ao[x];
}
var mjps=[];
dojo.lang.forEach(ao.srcObj,function(src){
if((dojo.render.html.capable)&&(dojo.lang.isString(src))){
src=dojo.byId(src);
}
_18f.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_18f));
});
return mjps;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
if(ao.adviceFunc){
var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);
}
mjp.kwAddAdvice(ao);
return mjp;
};
this.log=function(a1,a2){
var _197;
if((arguments.length==1)&&(typeof a1=="object")){
_197=a1;
}else{
_197={srcObj:a1,srcFunc:a2};
}
_197.adviceFunc=function(){
var _198=[];
for(var x=0;x<arguments.length;x++){
_198.push(arguments[x]);
}
dojo.debug("("+_197.srcObj+")."+_197.srcFunc,":",_198.join(", "));
};
this.kwConnect(_197);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this.connectRunOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.maxCalls=1;
return this.connect(ao);
};
this._kwConnectImpl=function(_1a0,_1a1){
var fn=(_1a1)?"disconnect":"connect";
if(typeof _1a0["srcFunc"]=="function"){
_1a0.srcObj=_1a0["srcObj"]||dj_global;
var _1a3=dojo.lang.nameAnonFunc(_1a0.srcFunc,_1a0.srcObj,true);
_1a0.srcFunc=_1a3;
}
if(typeof _1a0["adviceFunc"]=="function"){
_1a0.adviceObj=_1a0["adviceObj"]||dj_global;
var _1a3=dojo.lang.nameAnonFunc(_1a0.adviceFunc,_1a0.adviceObj,true);
_1a0.adviceFunc=_1a3;
}
_1a0.srcObj=_1a0["srcObj"]||dj_global;
_1a0.adviceObj=_1a0["adviceObj"]||_1a0["targetObj"]||dj_global;
_1a0.adviceFunc=_1a0["adviceFunc"]||_1a0["targetFunc"];
return dojo.event[fn](_1a0);
};
this.kwConnect=function(_1a4){
return this._kwConnectImpl(_1a4,false);
};
this.disconnect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(!ao.adviceFunc){
return;
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.disconnect(ao);
}
ao.srcFunc="onkeypress";
}
if(!ao.srcObj[ao.srcFunc]){
return null;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc,true);
mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
return mjp;
};
this.kwDisconnect=function(_1a7){
return this._kwConnectImpl(_1a7,true);
};
};
dojo.event.MethodInvocation=function(_1a8,obj,args){
this.jp_=_1a8;
this.object=obj;
this.args=[];
for(var x=0;x<args.length;x++){
this.args[x]=args[x];
}
this.around_index=-1;
};
dojo.event.MethodInvocation.prototype.proceed=function(){
this.around_index++;
if(this.around_index>=this.jp_.around.length){
return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args);
}else{
var ti=this.jp_.around[this.around_index];
var mobj=ti[0]||dj_global;
var meth=ti[1];
return mobj[meth].call(mobj,this);
}
};
dojo.event.MethodJoinPoint=function(obj,_1b0){
this.object=obj||dj_global;
this.methodname=_1b0;
this.methodfunc=this.object[_1b0];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1b2){
if(!obj){
obj=dj_global;
}
var ofn=obj[_1b2];
if(!ofn){
ofn=obj[_1b2]=function(){
};
if(!obj[_1b2]){
dojo.raise("Cannot set do-nothing method on that object "+_1b2);
}
}else{
if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){
return null;
}
}
var _1b4=_1b2+"$joinpoint";
var _1b5=_1b2+"$joinpoint$method";
var _1b6=obj[_1b4];
if(!_1b6){
var _1b7=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1b7=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1b4,_1b5,_1b2]);
}
}
var _1b8=ofn.length;
obj[_1b5]=ofn;
_1b6=obj[_1b4]=new dojo.event.MethodJoinPoint(obj,_1b5);
if(!_1b7){
obj[_1b2]=function(){
return _1b6.run.apply(_1b6,arguments);
};
}else{
obj[_1b2]=function(){
var args=[];
if(!arguments.length){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
if(obj.event){
evt=obj.event;
}else{
evt=window.event;
}
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _1b6.run.apply(_1b6,args);
};
}
obj[_1b2].__preJoinArity=_1b8;
}
return _1b6;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{squelch:false,unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _1be=[];
for(var x=0;x<args.length;x++){
_1be[x]=args[x];
}
var _1c0=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1c2=marr[0]||dj_global;
var _1c3=marr[1];
if(!_1c2[_1c3]){
dojo.raise("function \""+_1c3+"\" does not exist on \""+_1c2+"\"");
}
var _1c4=marr[2]||dj_global;
var _1c5=marr[3];
var msg=marr[6];
var _1c7=marr[7];
if(_1c7>-1){
if(_1c7==0){
return;
}
marr[7]--;
}
var _1c8;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1c2[_1c3].apply(_1c2,to.args);
}};
to.args=_1be;
var _1ca=parseInt(marr[4]);
var _1cb=((!isNaN(_1ca))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1ce=false;
if((marr["last"])&&((cur-marr.last)<=rate)){
if(dojo.event._canTimeout){
if(marr["delayTimer"]){
clearTimeout(marr.delayTimer);
}
var tod=parseInt(rate*2);
var mcpy=dojo.lang.shallowCopy(marr);
marr.delayTimer=setTimeout(function(){
mcpy[5]=0;
_1c0(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1c5){
_1c4[_1c5].call(_1c4,to);
}else{
if((_1cb)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1c2[_1c3].call(_1c2,to);
}else{
_1c2[_1c3].apply(_1c2,args);
}
},_1ca);
}else{
if(msg){
_1c2[_1c3].call(_1c2,to);
}else{
_1c2[_1c3].apply(_1c2,args);
}
}
}
};
var _1d1=function(){
if(this.squelch){
try{
return _1c0.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _1c0.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_1d1);
}
var _1d2;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1d2=mi.proceed();
}else{
if(this.methodfunc){
_1d2=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_1d1);
}
return (this.methodfunc)?_1d2:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"],args["maxCalls"]);
},addAdvice:function(_1d7,_1d8,_1d9,_1da,_1db,_1dc,once,_1de,rate,_1e0,_1e1){
var arr=this.getArr(_1db);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1d7,_1d8,_1d9,_1da,_1de,rate,_1e0,_1e1];
if(once){
if(this.hasAdvice(_1d7,_1d8,_1db,arr)>=0){
return;
}
}
if(_1dc=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_1e4,_1e5,_1e6,arr){
if(!arr){
arr=this.getArr(_1e6);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _1e5=="object")?(new String(_1e5)).toString():_1e5;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_1e4)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_1ec,_1ed,_1ee,once){
var arr=this.getArr(_1ee);
var ind=this.hasAdvice(_1ec,_1ed,_1ee,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_1ec,_1ed,_1ee,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_1f2){
if(!this.topics[_1f2]){
this.topics[_1f2]=new this.TopicImpl(_1f2);
}
return this.topics[_1f2];
};
this.registerPublisher=function(_1f3,obj,_1f5){
var _1f3=this.getTopic(_1f3);
_1f3.registerPublisher(obj,_1f5);
};
this.subscribe=function(_1f6,obj,_1f8){
var _1f6=this.getTopic(_1f6);
_1f6.subscribe(obj,_1f8);
};
this.unsubscribe=function(_1f9,obj,_1fb){
var _1f9=this.getTopic(_1f9);
_1f9.unsubscribe(obj,_1fb);
};
this.destroy=function(_1fc){
this.getTopic(_1fc).destroy();
delete this.topics[_1fc];
};
this.publishApply=function(_1fd,args){
var _1fd=this.getTopic(_1fd);
_1fd.sendMessage.apply(_1fd,args);
};
this.publish=function(_1ff,_200){
var _1ff=this.getTopic(_1ff);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_1ff.sendMessage.apply(_1ff,args);
};
};
dojo.event.topic.TopicImpl=function(_203){
this.topicName=_203;
this.subscribe=function(_204,_205){
var tf=_205||_204;
var to=(!_205)?dj_global:_204;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_208,_209){
var tf=(!_209)?_208:_209;
var to=(!_209)?null:_208;
return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_20c){
this._getJoinPoint().squelch=_20c;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_20d,_20e){
dojo.event.connect(_20d,_20e,this,"sendMessage");
};
this.sendMessage=function(_20f){
};
};
dojo.provide("dojo.event.browser");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_212){
var na;
var tna;
if(_212){
tna=_212.all||_212.getElementsByTagName("*");
na=[_212];
for(var x=0;x<tna.length;x++){
if(tna[x]["__doClobber__"]){
na.push(tna[x]);
}
}
}else{
try{
window.onload=null;
}
catch(e){
}
na=(this.clobberNodes.length)?this.clobberNodes:document.all;
}
tna=null;
var _216={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
catch(e){
}
}
na=null;
};
};
if(dojo.render.html.ie){
dojo.addOnUnload(function(){
dojo._ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
if(dojo.widget){
for(var name in dojo.widget._templateCache){
if(dojo.widget._templateCache[name].node){
dojo.dom.destroyNode(dojo.widget._templateCache[name].node);
dojo.widget._templateCache[name].node=null;
delete dojo.widget._templateCache[name].node;
}
}
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _21b=0;
this.normalizedEventName=function(_21c){
switch(_21c){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _21c;
break;
default:
var lcn=_21c.toLowerCase();
return (lcn.indexOf("on")==0)?lcn.substr(2):lcn;
break;
}
};
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_221){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_221.length;x++){
node.__clobberAttrs__.push(_221[x]);
}
};
this.removeListener=function(node,_224,fp,_226){
if(!_226){
var _226=false;
}
_224=dojo.event.browser.normalizedEventName(_224);
if(_224=="key"){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_226);
}
_224="keypress";
}
if(node.removeEventListener){
node.removeEventListener(_224,fp,_226);
}
};
this.addListener=function(node,_228,fp,_22a,_22b){
if(!node){
return;
}
if(!_22a){
var _22a=false;
}
_228=dojo.event.browser.normalizedEventName(_228);
if(_228=="key"){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_22a,_22b);
}
_228="keypress";
}
if(!_22b){
var _22c=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_22a){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_22c=fp;
}
if(node.addEventListener){
node.addEventListener(_228,_22c,_22a);
return _22c;
}else{
_228="on"+_228;
if(typeof node[_228]=="function"){
var _22f=node[_228];
node[_228]=function(e){
_22f(e);
return _22c(e);
};
}else{
node[_228]=_22c;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_228]);
}
return _22c;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_232,_233){
if(typeof _232!="function"){
dojo.raise("listener not a function: "+_232);
}
dojo.event.browser.currentEvent.currentTarget=_233;
return _232.call(_233,dojo.event.browser.currentEvent);
};
this._stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this._preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_236){
if(!evt){
if(window["event"]){
evt=window.event;
}
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if(evt["type"]=="keydown"&&dojo.render.html.ie){
switch(evt.keyCode){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_LEFT_WINDOW:
case evt.KEY_RIGHT_WINDOW:
case evt.KEY_SELECT:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
case evt.KEY_NUMPAD_0:
case evt.KEY_NUMPAD_1:
case evt.KEY_NUMPAD_2:
case evt.KEY_NUMPAD_3:
case evt.KEY_NUMPAD_4:
case evt.KEY_NUMPAD_5:
case evt.KEY_NUMPAD_6:
case evt.KEY_NUMPAD_7:
case evt.KEY_NUMPAD_8:
case evt.KEY_NUMPAD_9:
case evt.KEY_NUMPAD_PERIOD:
break;
case evt.KEY_NUMPAD_MULTIPLY:
case evt.KEY_NUMPAD_PLUS:
case evt.KEY_NUMPAD_ENTER:
case evt.KEY_NUMPAD_MINUS:
case evt.KEY_NUMPAD_DIVIDE:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
case evt.KEY_PAGE_UP:
case evt.KEY_PAGE_DOWN:
case evt.KEY_END:
case evt.KEY_HOME:
case evt.KEY_LEFT_ARROW:
case evt.KEY_UP_ARROW:
case evt.KEY_RIGHT_ARROW:
case evt.KEY_DOWN_ARROW:
case evt.KEY_INSERT:
case evt.KEY_DELETE:
case evt.KEY_F1:
case evt.KEY_F2:
case evt.KEY_F3:
case evt.KEY_F4:
case evt.KEY_F5:
case evt.KEY_F6:
case evt.KEY_F7:
case evt.KEY_F8:
case evt.KEY_F9:
case evt.KEY_F10:
case evt.KEY_F11:
case evt.KEY_F12:
case evt.KEY_F12:
case evt.KEY_F13:
case evt.KEY_F14:
case evt.KEY_F15:
case evt.KEY_CLEAR:
case evt.KEY_HELP:
evt.key=evt.keyCode;
break;
default:
if(evt.ctrlKey||evt.altKey){
var _238=evt.keyCode;
if(_238>=65&&_238<=90&&evt.shiftKey==false){
_238+=32;
}
if(_238>=1&&_238<=26&&evt.ctrlKey){
_238+=96;
}
evt.key=String.fromCharCode(_238);
}
}
}else{
if(evt["type"]=="keypress"){
if(dojo.render.html.opera){
if(evt.which==0){
evt.key=evt.keyCode;
}else{
if(evt.which>0){
switch(evt.which){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
evt.key=evt.which;
break;
default:
var _238=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_238+=32;
}
evt.key=String.fromCharCode(_238);
}
}
}
}else{
if(dojo.render.html.ie){
if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){
evt.key=String.fromCharCode(evt.keyCode);
}
}else{
if(dojo.render.html.safari){
switch(evt.keyCode){
case 25:
evt.key=evt.KEY_TAB;
evt.shift=true;
break;
case 63232:
evt.key=evt.KEY_UP_ARROW;
break;
case 63233:
evt.key=evt.KEY_DOWN_ARROW;
break;
case 63234:
evt.key=evt.KEY_LEFT_ARROW;
break;
case 63235:
evt.key=evt.KEY_RIGHT_ARROW;
break;
case 63236:
evt.key=evt.KEY_F1;
break;
case 63237:
evt.key=evt.KEY_F2;
break;
case 63238:
evt.key=evt.KEY_F3;
break;
case 63239:
evt.key=evt.KEY_F4;
break;
case 63240:
evt.key=evt.KEY_F5;
break;
case 63241:
evt.key=evt.KEY_F6;
break;
case 63242:
evt.key=evt.KEY_F7;
break;
case 63243:
evt.key=evt.KEY_F8;
break;
case 63244:
evt.key=evt.KEY_F9;
break;
case 63245:
evt.key=evt.KEY_F10;
break;
case 63246:
evt.key=evt.KEY_F11;
break;
case 63247:
evt.key=evt.KEY_F12;
break;
case 63250:
evt.key=evt.KEY_PAUSE;
break;
case 63272:
evt.key=evt.KEY_DELETE;
break;
case 63273:
evt.key=evt.KEY_HOME;
break;
case 63275:
evt.key=evt.KEY_END;
break;
case 63276:
evt.key=evt.KEY_PAGE_UP;
break;
case 63277:
evt.key=evt.KEY_PAGE_DOWN;
break;
case 63302:
evt.key=evt.KEY_INSERT;
break;
case 63248:
case 63249:
case 63289:
break;
default:
evt.key=evt.charCode>=evt.KEY_SPACE?String.fromCharCode(evt.charCode):evt.keyCode;
}
}else{
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}
}
}
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_236?_236:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document;
var _23a=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_23a.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_23a.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this._stopPropagation;
evt.preventDefault=this._preventDefault;
}
return evt;
};
this.stopEvent=function(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_23c,_23d,init,_23f){
if((dojo.lang.isFunction(_23f))||((!_23f)&&(!dojo.lang.isFunction(init)))){
if(dojo.lang.isFunction(_23f)){
dojo.deprecated("dojo.lang.declare("+_23c+"...):","use class, superclass, initializer, properties argument order","0.6");
}
var temp=_23f;
_23f=init;
init=temp;
}
if(_23f&&_23f.initializer){
dojo.deprecated("dojo.lang.declare("+_23c+"...):","specify initializer as third argument, not as an element in properties","0.6");
}
var _241=[];
if(dojo.lang.isArray(_23d)){
_241=_23d;
_23d=_241.shift();
}
if(!init){
init=dojo.getObject(_23c,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_23d?_23d.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _23d();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_241;
for(var i=0,l=_241.length;i<l;i++){
dojo.lang.extend(ctor,_241[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_23c;
if(dojo.lang.isArray(_23f)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_23f));
}else{
dojo.lang.extend(ctor,(_23f)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _246=dojo.getObject(_23c,true,null,true);
_246.obj[_246.prop]=ctor;
return ctor;
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this._inherited("constructor",arguments);
}else{
this._contextMethod(s,"constructor",arguments);
}
}
var ms=(self.constructor.mixins)||([]);
for(var i=0,m;(m=ms[i]);i++){
(((m.prototype)&&(m.prototype.initializer))||(m)).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare._common={_getPropContext:function(){
return (this.___proto||this);
},_contextMethod:function(_24c,_24d,args){
var _24f,_250=this.___proto;
this.___proto=_24c;
try{
_24f=_24c[_24d].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_250;
}
return _24f;
},_inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._contextMethod(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_255,_256,_257){
if(!_257||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_255,_256);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_25e,_25f){
this.name=name;
this.module=_25e;
this.resolver=_25f;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_261,_262){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _263=this.resolver(name,_261);
if((_263)&&(!this._loaded[_263])&&(!this._failed[_263])){
var req=dojo.require;
req(_263,false,true);
if(dojo.hostenv.findModule(_263,false)){
this._loaded[_263]=true;
}else{
if(!_262){
dojo.raise("dojo.ns.Ns.resolve: module '"+_263+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_263]=true;
}
}
return Boolean(this._loaded[_263]);
};
dojo.registerNamespace=function(name,_266,_267){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_269){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_269;
}
};
dojo.registerNamespaceManifest=function(_26b,path,name,_26e,_26f){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_26e,_26f);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _270={};
var _271=[];
this.getUniqueId=function(_272){
var _273;
do{
_273=_272+"_"+(_270[_272]!=undefined?++_270[_272]:_270[_272]=0);
}while(this.getWidgetById(_273));
return _273;
};
this.add=function(_274){
this.widgets.push(_274);
if(!_274.extraArgs["id"]){
_274.extraArgs["id"]=_274.extraArgs["ID"];
}
if(_274.widgetId==""){
if(_274["id"]){
_274.widgetId=_274["id"];
}else{
if(_274.extraArgs["id"]){
_274.widgetId=_274.extraArgs["id"];
}else{
_274.widgetId=this.getUniqueId(_274.ns+"_"+_274.widgetType);
}
}
}
if(this.widgetIds[_274.widgetId]){
dojo.debug("widget ID collision on ID: "+_274.widgetId);
}
this.widgetIds[_274.widgetId]=_274;
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_276){
if(dojo.lang.isNumber(_276)){
var tw=this.widgets[_276].widgetId;
delete this.topWidgets[tw];
delete this.widgetIds[tw];
this.widgets.splice(_276,1);
}else{
this.removeById(_276);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _27d=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_27d(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_282,_283){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_282(x)){
ret.push(x);
if(_283){
return false;
}
}
return true;
});
return (_283?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _289={};
var _28a=["dojo.widget"];
for(var i=0;i<_28a.length;i++){
_28a[_28a[i]]=true;
}
this.registerWidgetPackage=function(_28c){
if(!_28a[_28c]){
_28a[_28c]=true;
_28a.push(_28c);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_28a,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_28e,_28f,_290,ns){
var impl=this.getImplementationName(_28e,ns);
if(impl){
var ret=_28f?new impl(_28f):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _294 in dojo.render){
if(dojo.render[_294]["capable"]===true){
var _295=dojo.render[_294].prefixes;
for(var i=0;i<_295.length;i++){
_271.push(_295[i].toLowerCase());
}
}
}
}
var _297=function(_298,_299){
if(!_299){
return null;
}
for(var i=0,l=_271.length,_29c;i<=l;i++){
_29c=(i<l?_299[_271[i]]:_299);
if(!_29c){
continue;
}
for(var name in _29c){
if(name.toLowerCase()==_298){
return _29c[name];
}
}
}
return null;
};
var _29e=function(_29f,_2a0){
var _2a1=dojo.getObject(_2a0,false);
return (_2a1?_297(_29f,_2a1):null);
};
this.getImplementationName=function(_2a2,ns){
var _2a4=_2a2.toLowerCase();
ns=ns||"dojo";
var imps=_289[ns]||(_289[ns]={});
var impl=imps[_2a4];
if(impl){
return impl;
}
if(!_271.length){
buildPrefixCache();
}
var _2a7=dojo.ns.get(ns);
if(!_2a7){
dojo.ns.register(ns,ns+".widget");
_2a7=dojo.ns.get(ns);
}
if(_2a7){
_2a7.resolve(_2a2);
}
impl=_29e(_2a4,_2a7.module);
if(impl){
return (imps[_2a4]=impl);
}
_2a7=dojo.ns.require(ns);
if((_2a7)&&(_2a7.resolver)){
_2a7.resolve(_2a2);
impl=_29e(_2a4,_2a7.module);
if(impl){
return (imps[_2a4]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_2a2+"\" in \""+_2a7.module+"\" registered to namespace \""+_2a7.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _2a9=this.topWidgets[id];
if(_2a9.checkSize){
_2a9.checkSize();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_2ae,_2af){
dw[(_2af||_2ae)]=h(_2ae);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _2b1=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _2b1[n];
}
return _2b1;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_2b3,uri){
var loc=dojo.hostenv.getModuleSymbols(_2b3).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _2b6=loc.indexOf(":");
var _2b7=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_2b6==-1||_2b6>_2b7)){
loc=dojo.hostenv.getBaseScriptUri()+loc;
}
return new dojo.uri.Uri(loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _2ba=new dojo.uri.Uri(arguments[i].toString());
var _2bb=new dojo.uri.Uri(uri.toString());
if((_2ba.path=="")&&(_2ba.scheme==null)&&(_2ba.authority==null)&&(_2ba.query==null)){
if(_2ba.fragment!=null){
_2bb.fragment=_2ba.fragment;
}
_2ba=_2bb;
}else{
if(_2ba.scheme==null){
_2ba.scheme=_2bb.scheme;
if(_2ba.authority==null){
_2ba.authority=_2bb.authority;
if(_2ba.path.charAt(0)!="/"){
var path=_2bb.path.substring(0,_2bb.path.lastIndexOf("/")+1)+_2ba.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_2ba.path=segs.join("/");
}
}
}
}
uri="";
if(_2ba.scheme!=null){
uri+=_2ba.scheme+":";
}
if(_2ba.authority!=null){
uri+="//"+_2ba.authority;
}
uri+=_2ba.path;
if(_2ba.query!=null){
uri+="?"+_2ba.query;
}
if(_2ba.fragment!=null){
uri+="#"+_2ba.fragment;
}
}
this.uri=uri.toString();
var _2bf="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2bf));
this.scheme=r[2]||(r[1]?"":null);
this.authority=r[4]||(r[3]?"":null);
this.path=r[5];
this.query=r[7]||(r[6]?"":null);
this.fragment=r[9]||(r[8]?"":null);
if(this.authority!=null){
_2bf="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2bf));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _2c2=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_2c2.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_2c4,_2c5){
var node=_2c4.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_2c5&&node&&node.tagName&&node.tagName.toLowerCase()!=_2c5.toLowerCase()){
node=dojo.dom.nextElement(node,_2c5);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_2c7,_2c8){
var node=_2c7.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_2c8&&node&&node.tagName&&node.tagName.toLowerCase()!=_2c8.toLowerCase()){
node=dojo.dom.prevElement(node,_2c8);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_2cb){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2cb&&_2cb.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_2cb);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_2cd){
if(!node){
return null;
}
if(_2cd){
_2cd=_2cd.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2cd&&_2cd.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_2cd);
}
return node;
};
dojo.dom.moveChildren=function(_2ce,_2cf,trim){
var _2d1=0;
if(trim){
while(_2ce.hasChildNodes()&&_2ce.firstChild.nodeType==dojo.dom.TEXT_NODE){
_2ce.removeChild(_2ce.firstChild);
}
while(_2ce.hasChildNodes()&&_2ce.lastChild.nodeType==dojo.dom.TEXT_NODE){
_2ce.removeChild(_2ce.lastChild);
}
}
while(_2ce.hasChildNodes()){
_2cf.appendChild(_2ce.firstChild);
_2d1++;
}
return _2d1;
};
dojo.dom.copyChildren=function(_2d2,_2d3,trim){
var _2d5=_2d2.cloneNode(true);
return this.moveChildren(_2d5,_2d3,trim);
};
dojo.dom.replaceChildren=function(node,_2d7){
var _2d8=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_2d8.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_2d7);
for(var i=0;i<_2d8.length;i++){
dojo.dom.destroyNode(_2d8[i]);
}
};
dojo.dom.removeChildren=function(node){
var _2db=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _2db;
};
dojo.dom.replaceNode=function(node,_2dd){
return node.parentNode.replaceChild(_2dd,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.exists("dojo.event.browser.clean")){
dojo.event.browser.clean(node);
}
if(dojo.render.html.ie){
node.outerHTML="";
}
}
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_2e1,_2e2){
var _2e3=[];
var _2e4=(_2e1&&(_2e1 instanceof Function||typeof _2e1=="function"));
while(node){
if(!_2e4||_2e1(node)){
_2e3.push(node);
}
if(_2e2&&_2e3.length>0){
return _2e3[0];
}
node=node.parentNode;
}
if(_2e2){
return null;
}
return _2e3;
};
dojo.dom.getAncestorsByTag=function(node,tag,_2e7){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_2e7);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_2ec,_2ed){
if(_2ed&&node){
node=node.parentNode;
}
while(node){
if(node==_2ec){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
var _2f0=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _2f1=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_2f1.length;i++){
try{
doc=new ActiveXObject(_2f1[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_2f0.implementation)&&(_2f0.implementation.createDocument)){
doc=_2f0.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_2f4){
if(!_2f4){
_2f4="text/xml";
}
if(!dj_undef("DOMParser")){
var _2f5=new DOMParser();
return _2f5.parseFromString(str,_2f4);
}else{
if(!dj_undef("ActiveXObject")){
var _2f6=dojo.dom.createDocument();
if(_2f6){
_2f6.async=false;
_2f6.loadXML(str);
return _2f6;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _2f7=dojo.doc();
if(_2f7.createElement){
var tmp=_2f7.createElement("xml");
tmp.innerHTML=str;
if(_2f7.implementation&&_2f7.implementation.createDocument){
var _2f9=_2f7.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_2f9.importNode(tmp.childNodes.item(i),true);
}
return _2f9;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_2fc){
if(_2fc.firstChild){
_2fc.insertBefore(node,_2fc.firstChild);
}else{
_2fc.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_2ff){
if((_2ff!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _300=ref.parentNode;
_300.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_303){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_303!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_303);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_307){
if((!node)||(!ref)||(!_307)){
return false;
}
switch(_307.toLowerCase()){
case "before":
return dojo.dom.insertBefore(node,ref);
case "after":
return dojo.dom.insertAfter(node,ref);
case "first":
if(ref.firstChild){
return dojo.dom.insertBefore(node,ref.firstChild);
}else{
ref.appendChild(node);
return true;
}
break;
default:
ref.appendChild(node);
return true;
}
};
dojo.dom.insertAtIndex=function(node,_309,_30a){
var _30b=_309.childNodes;
if(!_30b.length||_30b.length==_30a){
_309.appendChild(node);
return true;
}
if(_30a==0){
return dojo.dom.prependChild(node,_309);
}
return dojo.dom.insertAfter(node,_30b[_30a-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _30e=dojo.doc();
dojo.dom.replaceChildren(node,_30e.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _30f="";
if(node==null){
return _30f;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_30f+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_30f+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _30f;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_315,_316,_317){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_315,_316,_317);
}else{
var _318=elem.ownerDocument;
var _319=_318.createNode(2,_316,_315);
_319.nodeValue=_317;
elem.setAttributeNode(_319);
}
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _31c=dojo.global();
var _31d=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_31d.documentElement.clientWidth;
h=_31c.innerHeight;
}else{
if(!dojo.render.html.opera&&_31c.innerWidth){
w=_31c.innerWidth;
h=_31c.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists("documentElement.clientWidth",_31d)){
var w2=_31d.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_31d.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _321=dojo.global();
var _322=dojo.doc();
var top=_321.pageYOffset||_322.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_321.pageXOffset||_322.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _327=dojo.doc();
var _328=dojo.byId(node);
type=type.toLowerCase();
while((_328)&&(_328.nodeName.toLowerCase()!=type)){
if(_328==(_327["body"]||_327["documentElement"])){
return null;
}
_328=_328.parentNode;
}
return _328;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _330={x:0,y:0};
if(e.pageX||e.pageY){
_330.x=e.pageX;
_330.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_330.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_330.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _330;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _335=dojo.doc().createElement("script");
_335.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_335);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.moduleUri("dojo.widget","templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _339=null;
if(window.getComputedStyle){
var _33a=getComputedStyle(div,"");
_339=_33a.getPropertyValue("background-image");
}else{
_339=div.currentStyle.backgroundImage;
}
var _33b=false;
if(_339!=null&&(_339=="none"||_339=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setAccessible:function(_33c){
this.accessible=_33c;
},setCheckAccessible:function(_33d){
this.doAccessibleCheck=_33d;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _33f=this.children[i];
if(_33f.onResized){
_33f.onResized();
}
}
},create:function(args,_341,_342,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_341,_342);
this.mixInProperties(args,_341,_342);
this.postMixInProperties(args,_341,_342);
dojo.widget.manager.add(this);
this.buildRendering(args,_341,_342);
this.initialize(args,_341,_342);
this.postInitialize(args,_341,_342);
this.postCreate(args,_341,_342);
return this;
},destroy:function(_344){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_344);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _345;
var i=0;
while(this.children.length>i){
_345=this.children[i];
if(_345 instanceof dojo.widget.Widget){
this.removeChild(_345);
_345.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_348){
var ret=[];
var _34a=dojo.lang.isFunction(type);
if(!_34a){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_34a){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_348){
ret=ret.concat(this.children[x].getChildrenOfType(type,_348));
}
}
return ret;
},getDescendants:function(){
var _34c=[];
var _34d=[this];
var elem;
while((elem=_34d.pop())){
_34c.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_34d.push(elem);
});
}
}
return _34c;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _354;
var _355=dojo.widget.lcArgsCache[this.widgetType];
if(_355==null){
_355={};
for(var y in this){
_355[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_355;
}
var _357={};
for(var x in args){
if(!this[x]){
var y=_355[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_357[x]){
continue;
}
_357[x]=true;
if((typeof this[x])!=(typeof _354)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.getObject(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc:tn});
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=dojo.uri.dojoUri(args[x]);
}else{
var _359=args[x].split(";");
for(var y=0;y<_359.length;y++){
var si=_359[y].indexOf(":");
if((si!=-1)&&(_359[y].length>si)){
this[x][_359[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_359[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_35d){
},initialize:function(args,frag,_360){
return false;
},postInitialize:function(args,frag,_363){
return false;
},postCreate:function(args,frag,_366){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_369){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_36a){
},addChild:function(_36b){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_36c){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_36c){
this.children.splice(x,1);
_36c.parent=null;
break;
}
}
return _36c;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags["dojo:propertyset"]=function(_370,_371,_372){
var _373=_371.parseProperties(_370["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_374,_375,_376){
var _377=_375.parseProperties(_374["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_37a,_37b,_37c,_37d){
dojo.a11y.setAccessibleMode();
var _37e=type.split(":");
_37e=(_37e.length==2)?_37e[1]:type;
var _37f=_37d||_37a.parseProperties(frag[frag["ns"]+":"+_37e]);
var _380=dojo.widget.manager.getImplementation(_37e,null,null,frag["ns"]);
if(!_380){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_380.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_37f["dojoinsertionindex"]=_37c;
var ret=_380.create(_37f,frag,_37b,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_382,_383,_384,init,_386){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_389,_38a,_38b,init,_38d){
var _38e=_389.split(".");
var type=_38e.pop();
var regx="\\.("+(_38a?_38a+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_389.search(new RegExp(regx));
_38e=(r<0?_38e.join("."):_389.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_38e);
var pos=_38e.indexOf(".");
var _393=(pos>-1)?_38e.substring(0,pos):_38e;
_38d=(_38d)||{};
_38d.widgetType=type;
if((!init)&&(_38d["classConstructor"])){
init=_38d.classConstructor;
delete _38d.classConstructor;
}
dojo.declare(_389,_38b,init,_38d);
};
dojo.provide("dojo.html.style");
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_399){
return (new RegExp("(^|\\s+)"+_399+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_39b){
_39b+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_39b);
};
dojo.html.addClass=function(node,_39d){
if(dojo.html.hasClass(node,_39d)){
return false;
}
_39d=(dojo.html.getClass(node)+" "+_39d).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_39d);
};
dojo.html.setClass=function(node,_39f){
node=dojo.byId(node);
var cs=new String(_39f);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_39f);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3a2,_3a3){
try{
if(!_3a3){
var _3a4=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3a2+"(\\s+|$)"),"$1$2");
}else{
var _3a4=dojo.html.getClass(node).replace(_3a2,"");
}
dojo.html.setClass(node,_3a4);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3a6,_3a7){
dojo.html.removeClass(node,_3a7);
dojo.html.addClass(node,_3a6);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3a8,_3a9,_3aa,_3ab,_3ac){
_3ac=false;
var _3ad=dojo.doc();
_3a9=dojo.byId(_3a9)||_3ad;
var _3ae=_3a8.split(/\s+/g);
var _3af=[];
if(_3ab!=1&&_3ab!=2){
_3ab=0;
}
var _3b0=new RegExp("(\\s|^)(("+_3ae.join(")|(")+"))(\\s|$)");
var _3b1=_3ae.join(" ").length;
var _3b2=[];
if(!_3ac&&_3ad.evaluate){
var _3b3=".//"+(_3aa||"*")+"[contains(";
if(_3ab!=dojo.html.classMatchType.ContainsAny){
_3b3+="concat(' ',@class,' '), ' "+_3ae.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3ab==2){
_3b3+=" and string-length(@class)="+_3b1+"]";
}else{
_3b3+="]";
}
}else{
_3b3+="concat(' ',@class,' '), ' "+_3ae.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _3b4=_3ad.evaluate(_3b3,_3a9,null,XPathResult.ANY_TYPE,null);
var _3b5=_3b4.iterateNext();
while(_3b5){
try{
_3b2.push(_3b5);
_3b5=_3b4.iterateNext();
}
catch(e){
break;
}
}
return _3b2;
}else{
if(!_3aa){
_3aa="*";
}
_3b2=_3a9.getElementsByTagName(_3aa);
var node,i=0;
outer:
while(node=_3b2[i++]){
var _3b8=dojo.html.getClasses(node);
if(_3b8.length==0){
continue outer;
}
var _3b9=0;
for(var j=0;j<_3b8.length;j++){
if(_3b0.test(_3b8[j])){
if(_3ab==dojo.html.classMatchType.ContainsAny){
_3af.push(node);
continue outer;
}else{
_3b9++;
}
}else{
if(_3ab==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_3b9==_3ae.length){
if((_3ab==dojo.html.classMatchType.IsOnly)&&(_3b9==_3b8.length)){
_3af.push(node);
}else{
if(_3ab==dojo.html.classMatchType.ContainsAll){
_3af.push(node);
}
}
}
}
return _3af;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_3bb){
var arr=_3bb.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_3bf){
return _3bf.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_3c1,_3c2){
node=dojo.byId(node);
if(!node||!node.style){
return _3c2;
}
return node.currentStyle[dojo.html.toCamelCase(_3c1)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_3c5,_3c6){
node=dojo.byId(node);
if(!node||!node.style){
return _3c6;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_3c5)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_3ca){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_3ca)]:undefined);
};
dojo.html.getStyle=function(node,_3cc){
var _3cd=dojo.html.getStyleProperty(node,_3cc);
return (_3cd?_3cd:dojo.html.getComputedStyle(node,_3cc));
};
dojo.html.setStyle=function(node,_3cf,_3d0){
node=dojo.byId(node);
if(node&&node.style){
var _3d1=dojo.html.toCamelCase(_3cf);
node.style[_3d1]=_3d0;
}
};
dojo.html.setStyleText=function(_3d2,text){
try{
_3d2.style.cssText=text;
}
catch(e){
_3d2.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_3d4,_3d5){
if(!_3d5.style.cssText){
_3d4.setAttribute("style",_3d5.getAttribute("style"));
}else{
_3d4.style.cssText=_3d5.style.cssText;
}
dojo.html.addClass(_3d4,dojo.html.getClass(_3d5));
};
dojo.html.getUnitValue=function(node,_3d7,_3d8){
var s=dojo.html.getComputedStyle(node,_3d7);
if((!s)||((s=="auto")&&(_3d8))){
return {value:0,units:"px"};
}
var _3da=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3da){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_3da[1]),units:_3da[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_3db,_3dc){
if(_3dc.slice(-2)=="px"){
return parseFloat(_3dc);
}
var _3dd=0;
with(_3db){
var _3de=style.left;
var _3df=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_3dc||0;
_3dd=style.pixelLeft;
style.left=_3de;
runtimeStyle.left=_3df;
}
catch(e){
}
}
return _3dd;
};
}else{
dojo.html.toPixelValue=function(_3e0,_3e1){
return (_3e1.slice(-2)=="px"?parseFloat(_3e1):0);
};
}
dojo.html.getPixelValue=function(node,_3e3,_3e4){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_3e3));
};
dojo.html.setPositivePixelValue=function(node,_3e6,_3e7){
if(isNaN(_3e7)){
return false;
}
node.style[_3e6]=Math.max(0,_3e7)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_3e8,_3e9,_3ea){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_3ea=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_3ea=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_3e8+" { "+_3e9+" }";
return dojo.html.styleSheet.insertRule(rule,_3ea);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_3e8,_3e9,_3ea);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_3ec){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3ec){
_3ec=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_3ec);
}
}else{
if(document.styleSheets[0]){
if(!_3ec){
_3ec=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_3ec);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_3ef,_3f0){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3f1=dojo.hostenv.getText(URI,false,_3f0);
if(_3f1===null){
return;
}
_3f1=dojo.html.fixPathsInCssText(_3f1,URI);
if(_3ef){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_3f1)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _3f6=doc.getElementsByTagName("style");
for(var i=0;i<_3f6.length;i++){
if(_3f6[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _3f7=dojo.html.insertCssText(_3f1,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_3f1,"nodeRef":_3f7});
if(_3f7&&djConfig.isDebug){
_3f7.setAttribute("dbgHref",URI);
}
return _3f7;
};
dojo.html.insertCssText=function(_3f8,doc,URI){
if(!_3f8){
return;
}
if(!doc){
doc=document;
}
if(URI){
_3f8=dojo.html.fixPathsInCssText(_3f8,URI);
}
var _3fb=doc.createElement("style");
_3fb.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_3fb);
}
if(_3fb.styleSheet){
var _3fd=function(){
try{
_3fb.styleSheet.cssText=_3f8;
}
catch(e){
dojo.debug(e);
}
};
if(_3fb.styleSheet.disabled){
setTimeout(_3fd,10);
}else{
_3fd();
}
}else{
var _3fe=doc.createTextNode(_3f8);
_3fb.appendChild(_3fe);
}
return _3fb;
};
dojo.html.fixPathsInCssText=function(_3ff,URI){
if(!_3ff||!URI){
return;
}
var _401,str="",url="",_404="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _405=new RegExp("url\\(\\s*("+_404+")\\s*\\)");
var _406=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_404+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _407=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_404+")['\"]");
while(_401=_407.exec(_3ff)){
url=_401[2].replace(regexTrim,"$2");
if(!_406.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_3ff.substring(0,_401.index)+"AlphaImageLoader("+_401[1]+"src='"+url+"'";
_3ff=_3ff.substr(_401.index+_401[0].length);
}
_3ff=str+_3ff;
str="";
}
while(_401=_405.exec(_3ff)){
url=_401[1].replace(regexTrim,"$2");
if(!_406.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_3ff.substring(0,_401.index)+"url("+url+")";
_3ff=_3ff.substr(_401.index+_401[0].length);
}
return str+_3ff;
};
dojo.html.setActiveStyleSheet=function(_408){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_408){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _414={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _414){
if(_414[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _419=getTagName(node);
if(!_419){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_419])){
return _419;
}
var p=_419.indexOf(":");
if(p>=0){
return _419;
}
if(_419.substr(0,5)=="dojo:"){
return _419;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_419;
}
if(_419.substr(0,4)=="dojo"){
return "dojo:"+_419.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _41c=node.className||node.getAttribute("class");
if((_41c)&&(_41c.indexOf)&&(_41c.indexOf("dojo-")!=-1)){
var _41d=_41c.split(" ");
for(var x=0,c=_41d.length;x<c;x++){
if(_41d[x].slice(0,5)=="dojo-"){
return "dojo:"+_41d[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_421,_422,_423){
var _424=getTagName(node);
if(isIE&&_424.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _426=true;
if(_422){
var _427=getDojoTagName(node);
_424=_427||_424;
_426=Boolean(_427);
}
var _428={};
_428[_424]=[];
var pos=_424.indexOf(":");
if(pos>0){
var ns=_424.substring(0,pos);
_428["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_426=false;
}
}
if(_426){
var _42b=this.parseAttributes(node);
for(var attr in _42b){
if((!_428[_424][attr])||(typeof _428[_424][attr]!="array")){
_428[_424][attr]=[];
}
_428[_424][attr].push(_42b[attr]);
}
_428[_424].nodeRef=node;
_428.tagName=_424;
_428.index=_423||0;
}
var _42c=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_428[ctn]){
_428[ctn]=[];
}
_428[ctn].push(this.parseElement(tcn,true,_422,_42c));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_428[ctn][_428[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_42c++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_428[_424].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _428;
};
this.parseAttributes=function(node){
var _431={};
var atts=node.attributes;
var _433,i=0;
while((_433=atts[i++])){
if(isIE){
if(!_433){
continue;
}
if((typeof _433=="object")&&(typeof _433.nodeValue=="undefined")||(_433.nodeValue==null)||(_433.nodeValue=="")){
continue;
}
}
var nn=_433.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_433.nodeName;
_431[nn]={value:_433.nodeValue};
}
return _431;
};
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),dojoWidgetModuleUri:dojo.uri.moduleUri("dojo.widget"),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_437,_438,_439){
var _43a=_437||obj.templatePath;
var _43b=dojo.widget._templateCache;
if(!_43a&&!obj["widgetType"]){
do{
var _43c="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_43b[_43c]);
obj.widgetType=_43c;
}
var wt=_43a?_43a.toString():obj.widgetType;
var ts=_43b[wt];
if(!ts){
_43b[wt]={"string":null,"node":null};
if(_439){
ts={};
}else{
ts=_43b[wt];
}
}
if((!obj.templateString)&&(!_439)){
obj.templateString=_438||ts["string"];
}
if(obj.templateString){
obj.templateString=this._sanitizeTemplateString(obj.templateString);
}
if((!obj.templateNode)&&(!_439)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_43a)){
var _43f=this._sanitizeTemplateString(dojo.hostenv.getText(_43a));
obj.templateString=_43f;
if(!_439){
_43b[wt]["string"]=_43f;
}
}
if((!ts["string"])&&(!_439)){
ts.string=obj.templateString;
}
};
dojo.widget._sanitizeTemplateString=function(_440){
if(_440){
_440=_440.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _441=_440.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_441){
_440=_441[1];
}
}else{
_440="";
}
return _440;
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_445){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_445);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_445);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _44c=true;
if(dojo.render.html.ie){
_44c=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _44c;
}};
dojo.widget.attachTemplateNodes=function(_44d,_44e,_44f){
var _450=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_44d){
_44d=_44e.domNode;
}
if(_44d.nodeType!=_450){
return;
}
var _452=_44d.all||_44d.getElementsByTagName("*");
var _453=_44e;
for(var x=-1;x<_452.length;x++){
var _455=(x==-1)?_44d:_452[x];
var _456=[];
if(!_44e.widgetsInTemplate||!_455.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _458=_455.getAttribute(this.attachProperties[y]);
if(_458){
_456=_458.split(";");
for(var z=0;z<_456.length;z++){
if(dojo.lang.isArray(_44e[_456[z]])){
_44e[_456[z]].push(_455);
}else{
_44e[_456[z]]=_455;
}
}
break;
}
}
var _45a=_455.getAttribute(this.eventAttachProperty);
if(_45a){
var evts=_45a.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _45c=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _45e=tevt.split(":");
tevt=trim(_45e[0]);
_45c=trim(_45e[1]);
}
if(!_45c){
_45c=tevt;
}
var tf=function(){
var ntf=new String(_45c);
return function(evt){
if(_453[ntf]){
_453[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_455,tevt,tf,false,true);
}
}
for(var y=0;y<_44f.length;y++){
var _462=_455.getAttribute(_44f[y]);
if((_462)&&(_462.length)){
var _45c=null;
var _463=_44f[y].substr(4);
_45c=trim(_462);
var _464=[_45c];
if(_45c.indexOf(";")>=0){
_464=dojo.lang.map(_45c.split(";"),trim);
}
for(var z=0;z<_464.length;z++){
if(!_464[z].length){
continue;
}
var tf=function(){
var ntf=new String(_464[z]);
return function(evt){
if(_453[ntf]){
_453[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_455,_463,tf,false,true);
}
}
}
}
var _467=_455.getAttribute(this.templateProperty);
if(_467){
_44e[_467]=_455;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_455.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_455,wai.name,"role",val);
}else{
var _46b=val.split("-");
dojo.widget.wai.setAttr(_455,wai.name,_46b[0],_46b[1]);
}
}
},this);
var _46c=_455.getAttribute(this.onBuildProperty);
if(_46c){
eval("var node = baseNode; var widget = targetObj; "+_46c);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].length<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_474,_475,pos,ref,_478){
if(typeof _478=="undefined"){
_478=this.children.length;
}
this.addWidgetAsDirectChild(_474,_475,pos,ref,_478);
this.registerChild(_474,_478);
return _474;
},addWidgetAsDirectChild:function(_479,_47a,pos,ref,_47d){
if((!this.containerNode)&&(!_47a)){
this.containerNode=this.domNode;
}
var cn=(_47a)?_47a:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_47d){
_47d=0;
}
_479.domNode.setAttribute("dojoinsertionindex",_47d);
if(!ref){
cn.appendChild(_479.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_479.domNode,ref.parentNode,_47d);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_479.domNode);
}else{
dojo.dom.insertAtPosition(_479.domNode,ref,pos);
}
}
}
},registerChild:function(_47f,_480){
_47f.dojoInsertionIndex=_480;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_480){
idx=i;
}
}
this.children.splice(idx+1,0,_47f);
_47f.parent=this;
_47f.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_47f.widgetId];
},removeChild:function(_483){
dojo.dom.removeNode(_483.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_483);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_487){
var _488=this.getFragNodeRef(frag);
if(_487&&(_487.snarfChildDomOutput||!_488)){
_487.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_488);
}else{
if(_488){
if(this.domNode&&(this.domNode!==_488)){
this._sourceNodeRef=dojo.dom.replaceNode(_488,this.domNode);
}
}
}
if(_487){
_487.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _489=new dojo.xml.Parse();
var _48a;
var _48b=this.domNode.getElementsByTagName("*");
for(var i=0;i<_48b.length;i++){
if(_48b[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_48a=_48b[i];
}
if(_48b[i].getAttribute("dojoType")){
_48b[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_48a){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_48a);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _48e=_489.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_48e,this);
var _48f=[];
var _490=[this];
var w;
while((w=_490.pop())){
for(var i=0;i<w.children.length;i++){
var _492=w.children[i];
if(_492._processedSubWidgets||!_492.extraArgs["issubwidget"]){
continue;
}
_48f.push(_492);
if(_492.isContainer){
_490.push(_492);
}
}
}
for(var i=0;i<_48f.length;i++){
var _493=_48f[i];
if(_493._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_493._processedSubWidgets=true;
if(_493.extraArgs["dojoattachevent"]){
var evts=_493.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _496=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _498=tevt.split(":");
tevt=dojo.string.trim(_498[0]);
_496=dojo.string.trim(_498[1]);
}
if(!_496){
_496=tevt;
}
if(dojo.lang.isFunction(_493[tevt])){
dojo.event.kwConnect({srcObj:_493,srcFunc:tevt,targetObj:this,targetFunc:_496});
}else{
alert(tevt+" is not a function in widget "+_493);
}
}
}
if(_493.extraArgs["dojoattachpoint"]){
this[_493.extraArgs["dojoattachpoint"]]=_493;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _49c=args["templateCssPath"]||this.templateCssPath;
if(_49c&&!dojo.widget._cssFiles[_49c.toString()]){
if((!this.templateCssString)&&(_49c)){
this.templateCssString=dojo.hostenv.getText(_49c);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_49c.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_49c);
dojo.widget._cssStrings[this.templateCssString]=true;
}
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _49f=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_49f);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_49f)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _4a1=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_4a1=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_4a1){
var hash=this.strings||{};
for(var key in dojo.widget.defaultStrings){
if(dojo.lang.isUndefined(hash[key])){
hash[key]=dojo.widget.defaultStrings[key];
}
}
for(var i=0;i<_4a1.length;i++){
var key=_4a1[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.getObject(key.substring(5),false,this):hash[key];
var _4a8;
if((kval)||(dojo.lang.isString(kval))){
_4a8=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_4a8.indexOf("\"")>-1){
_4a8=_4a8.replace("\"","&quot;");
}
tstr=tstr.replace(_4a1[i],_4a8);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_49f){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_4a1)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_4a1){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_4aa,_4ab){
if(!_4aa){
_4aa=this.domNode;
}
if(!_4ab){
_4ab=this;
}
return dojo.widget.attachTemplateNodes(_4aa,_4ab,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
dojo.dom.destroyNode(this.domNode);
delete this.domNode;
}
catch(e){
}
if(this._sourceNodeRef){
try{
dojo.dom.destroyNode(this._sourceNodeRef);
}
catch(e){
}
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_4ad,_4ae){
node=dojo.byId(node);
_4ae(node,!_4ad(node));
return _4ad(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
var _4b0=dojo.html.getAttribute("djDisplayCache");
dojo.html.setStyle(node,"display",(_4b0||""));
node.removeAttribute("djDisplayCache");
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
var _4b2=dojo.html.getAttribute("djDisplayCache");
if(_4b2==null){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.setAttribute("djDisplayCache",d);
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_4b5){
dojo.html[(_4b5?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_4bb){
dojo.html.setStyle(node,"display",((_4bb instanceof String||typeof _4bb=="string")?_4bb:(_4bb?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_4bf){
dojo.html.setStyle(node,"visibility",((_4bf instanceof String||typeof _4bf=="string")?_4bf:(_4bf?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_4c3,_4c4){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_4c4){
if(_4c3>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_4c3=0.999999;
}
}else{
if(_4c3<0){
_4c3=0;
}
}
}
if(h.ie){
if(node.nodeName.toLowerCase()=="tr"){
var tds=node.getElementsByTagName("td");
for(var x=0;x<tds.length;x++){
tds[x].style.filter="Alpha(Opacity="+_4c3*100+")";
}
}
node.style.filter="Alpha(Opacity="+_4c3*100+")";
}else{
if(h.moz){
node.style.opacity=_4c3;
node.style.MozOpacity=_4c3;
}else{
if(h.safari){
node.style.opacity=_4c3;
node.style.KhtmlOpacity=_4c3;
}else{
node.style.opacity=_4c3;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _4d0=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_4d0+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _4d0;
};
dojo.html.setStyleAttributes=function(node,_4d3){
node=dojo.byId(node);
var _4d4=_4d3.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_4d4.length;i++){
var _4d6=_4d4[i].split(":");
var name=_4d6[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _4d8=_4d6[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_4d8);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_4d8});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_4d8});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_4d8});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_4d8});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_4d8;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_4da,_4db){
node=dojo.byId(node);
var _4dc=dojo.doc();
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_4db){
_4db=bs.CONTENT_BOX;
}
var _4df=2;
var _4e0;
switch(_4db){
case bs.MARGIN_BOX:
_4e0=3;
break;
case bs.BORDER_BOX:
_4e0=2;
break;
case bs.PADDING_BOX:
default:
_4e0=1;
break;
case bs.CONTENT_BOX:
_4e0=0;
break;
}
var h=dojo.render.html;
var db=_4dc["body"]||_4dc["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(_4dc["getBoxObjectFor"]){
_4df=1;
try{
var bo=_4dc.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _4e4;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_4e4=db;
}else{
_4e4=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _4e6=node;
do{
var n=_4e6["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_4e6["offsetTop"];
ret.y+=isNaN(m)?0:m;
_4e6=_4e6.offsetParent;
}while((_4e6!=_4e4)&&(_4e6!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_4da){
var _4e9=dojo.html.getScroll();
ret.y+=_4e9.top;
ret.x+=_4e9.left;
}
var _4ea=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_4df>_4e0){
for(var i=_4e0;i<_4df;++i){
ret.y+=_4ea[i](node,"top");
ret.x+=_4ea[i](node,"left");
}
}else{
if(_4df<_4e0){
for(var i=_4e0;i>_4df;--i){
ret.y-=_4ea[i-1](node,"top");
ret.x-=_4ea[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._getComponentPixelValues=function(node,_4ee,_4ef,_4f0){
var _4f1=["top","bottom","left","right"];
var obj={};
for(var i in _4f1){
side=_4f1[i];
obj[side]=_4ef(node,_4ee+side,_4f0);
}
obj.width=obj.left+obj.right;
obj.height=obj.top+obj.bottom;
return obj;
};
dojo.html.getMargin=function(node){
return dojo.html._getComponentPixelValues(node,"margin-",dojo.html.getPixelValue,dojo.html.isPositionAbsolute(node));
};
dojo.html.getBorder=function(node){
return dojo.html._getComponentPixelValues(node,"",dojo.html.getBorderExtent);
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html.getPixelValue(node,"margin-"+side,dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html.getPixelValue(node,"padding-"+side,true);
};
dojo.html.getPadding=function(node){
return dojo.html._getComponentPixelValues(node,"padding-",dojo.html.getPixelValue,true);
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _4ff=dojo.html.getBorder(node);
return {width:pad.width+_4ff.width,height:pad.height+_4ff.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName!="IMG"){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _504=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_504){
_504=dojo.html.getStyle(node,"box-sizing");
}
return (_504?_504:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _509=dojo.html.getBorder(node);
return {width:box.width-_509.width,height:box.height-_509.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _50b=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_50b.width,height:node.offsetHeight-_50b.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _50e=0;
var _50f=0;
var isbb=dojo.html.isBorderBox(node);
var _511=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_50e=args.width+_511.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_50e);
}
if(typeof args.height!="undefined"){
_50f=args.height+_511.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_50f);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _514=dojo.html.getBorderBox(node);
var _515=dojo.html.getMargin(node);
return {width:_514.width+_515.width,height:_514.height+_515.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _518=0;
var _519=0;
var isbb=dojo.html.isBorderBox(node);
var _51b=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _51c=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_518=args.width-_51b.width;
_518-=_51c.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_518);
}
if(typeof args.height!="undefined"){
_519=args.height-_51b.height;
_519-=_51c.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_519);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_521,_522,_523){
if(!_521.nodeType&&!(_521 instanceof String||typeof _521=="string")&&("width" in _521||"height" in _521||"left" in _521||"x" in _521||"top" in _521||"y" in _521)){
var ret={left:_521.left||_521.x||0,top:_521.top||_521.y||0,width:_521.width||0,height:_521.height||0};
}else{
var node=dojo.byId(_521);
var pos=dojo.html.abs(node,_522,_523);
var _527=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_527.width,height:_527.height};
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_529){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_52c){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_52e){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_530){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_532){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_534){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_53e){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_540){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_541){
return dojo.html.getDocumentWindow(_541.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.getAbsolutePositionExt=function(node,_548,_549,_54a){
var _54b=dojo.html.getElementWindow(node);
var ret=dojo.withGlobal(_54b,"getAbsolutePosition",dojo.html,arguments);
var win=dojo.html.getElementWindow(node);
if(_54a!=win&&win.frameElement){
var ext=dojo.html.getAbsolutePositionExt(win.frameElement,_548,_549,_54a);
ret.x+=ext.x;
ret.y+=ext.y;
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _551=dojo.html.getCursorPosition(e);
with(dojo.html){
var _552=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _554=_552.x+(bb.width/2);
var _555=_552.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_551.x<_554?WEST:EAST)|(_551.y<_555?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.overElement=function(_556,e){
_556=dojo.byId(_556);
var _558=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_556);
var _55a=dojo.html.getAbsolutePosition(_556,true,dojo.html.boxSizing.BORDER_BOX);
var top=_55a.y;
var _55c=top+bb.height;
var left=_55a.x;
var _55e=left+bb.width;
return (_558.x>=left&&_558.x<=_55e&&_558.y>=top&&_558.y<=_55c);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _560="";
if(node==null){
return _560;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _562="unknown";
try{
_562=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_562){
case "block":
case "list-item":
case "run-in":
case "table":
case "table-row-group":
case "table-header-group":
case "table-footer-group":
case "table-row":
case "table-column-group":
case "table-column":
case "table-cell":
case "table-caption":
_560+="\n";
_560+=dojo.html.renderedTextContent(node.childNodes[i]);
_560+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_560+="\n";
}else{
_560+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _564="unknown";
try{
_564=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_564){
case "capitalize":
var _565=text.split(" ");
for(var i=0;i<_565.length;i++){
_565[i]=_565[i].charAt(0).toUpperCase()+_565[i].substring(1);
}
text=_565.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_564){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_560)){
text.replace(/^\s/,"");
}
break;
}
_560+=text;
break;
default:
break;
}
}
return _560;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _569="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_569="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_569="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_569="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _56a=null;
switch(_569){
case "cell":
_56a=tn.getElementsByTagName("tr")[0];
break;
case "row":
_56a=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_56a=tn.getElementsByTagName("table")[0];
break;
default:
_56a=tn;
break;
}
var _56b=[];
for(var x=0;x<_56a.childNodes.length;x++){
_56b.push(_56a.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _56b;
};
dojo.html.placeOnScreen=function(node,_56e,_56f,_570,_571,_572,_573){
if(_56e instanceof Array||typeof _56e=="array"){
_573=_572;
_572=_571;
_571=_570;
_570=_56f;
_56f=_56e[1];
_56e=_56e[0];
}
if(_572 instanceof String||typeof _572=="string"){
_572=_572.split(",");
}
if(!isNaN(_570)){
_570=[Number(_570),Number(_570)];
}else{
if(!(_570 instanceof Array||typeof _570=="array")){
_570=[0,0];
}
}
var _574=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _576=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_576;
if(!(_572 instanceof Array||typeof _572=="array")){
_572=["TL"];
}
var _57a,_57b,_57c=Infinity,_57d;
for(var _57e=0;_57e<_572.length;++_57e){
var _57f=_572[_57e];
var _580=true;
var tryX=_56e-(_57f.charAt(1)=="L"?0:w)+_570[0]*(_57f.charAt(1)=="L"?1:-1);
var tryY=_56f-(_57f.charAt(0)=="T"?0:h)+_570[1]*(_57f.charAt(0)=="T"?1:-1);
if(_571){
tryX-=_574.x;
tryY-=_574.y;
}
if(tryX<0){
tryX=0;
_580=false;
}
if(tryY<0){
tryY=0;
_580=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_580=false;
}else{
x=tryX;
}
x=Math.max(_570[0],x)+_574.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_580=false;
}else{
y=tryY;
}
y=Math.max(_570[1],y)+_574.y;
if(_580){
_57a=x;
_57b=y;
_57c=0;
_57d=_57f;
break;
}else{
var dist=Math.pow(x-tryX-_574.x,2)+Math.pow(y-tryY-_574.y,2);
if(_57c>dist){
_57c=dist;
_57a=x;
_57b=y;
_57d=_57f;
}
}
}
if(!_573){
node.style.left=_57a+"px";
node.style.top=_57b+"px";
}
return {left:_57a,top:_57b,x:_57a,y:_57b,dist:_57c,corner:_57d};
};
dojo.html.placeOnScreenAroundElement=function(node,_587,_588,_589,_58a,_58b){
var best,_58d=Infinity;
_587=dojo.byId(_587);
var _58e=_587.style.display;
_587.style.display="";
var mb=dojo.html.getElementBox(_587,_589);
var _590=mb.width;
var _591=mb.height;
var _592=dojo.html.getAbsolutePosition(_587,true,_589);
_587.style.display=_58e;
for(var _593 in _58a){
var pos,_595,_596;
var _597=_58a[_593];
_595=_592.x+(_593.charAt(1)=="L"?0:_590);
_596=_592.y+(_593.charAt(0)=="T"?0:_591);
pos=dojo.html.placeOnScreen(node,_595,_596,_588,true,_597,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_58d>pos.dist){
_58d=pos.dist;
best=pos;
}
}
}
if(!_58b){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _599=node.parentNode;
var _59a=_599.scrollTop+dojo.html.getBorderBox(_599).height;
var _59b=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_59a<_59b){
_599.scrollTop+=(_59b-_59a);
}else{
if(_599.scrollTop>node.offsetTop){
_599.scrollTop-=(_599.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.html.isLeftToRight=function(node){
for(;node;node=node.parentNode){
if(node.dir){
return node.dir=="ltr";
}
}
return true;
};
dojo.provide("dojo.gfx.color");
dojo.gfx.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_5a3){
if(_5a3){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_5a4,_5a5){
var rgb=null;
if(dojo.lang.isArray(_5a4)){
rgb=_5a4;
}else{
if(_5a4 instanceof dojo.gfx.color.Color){
rgb=_5a4.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_5a4).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_5a5);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_5a9){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_5a9);
}
if(!_5a9){
_5a9=0;
}
_5a9=Math.min(Math.max(-1,_5a9),1);
_5a9=((_5a9+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_5a9));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_5ae){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_5ae));
};
dojo.gfx.color.extractRGB=function(_5af){
_5af=_5af.toLowerCase();
if(_5af.indexOf("rgb")==0){
var _5b0=_5af.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_5b0.splice(1,3);
return ret;
}else{
var _5b2=dojo.gfx.color.hex2rgb(_5af);
if(_5b2){
return _5b2;
}else{
return dojo.gfx.color.named[_5af]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _5b4="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_5b4+"]","g"),"")!=""){
return null;
}
if(hex.length==3){
rgb[0]=hex.charAt(0)+hex.charAt(0);
rgb[1]=hex.charAt(1)+hex.charAt(1);
rgb[2]=hex.charAt(2)+hex.charAt(2);
}else{
rgb[0]=hex.substring(0,2);
rgb[1]=hex.substring(2,4);
rgb[2]=hex.substring(4);
}
for(var i=0;i<rgb.length;i++){
rgb[i]=_5b4.indexOf(rgb[i].charAt(0))*16+_5b4.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.lfx.Animation");
dojo.lfx.Line=function(_5bd,end){
this.start=_5bd;
this.end=end;
if(dojo.lang.isArray(_5bd)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_5bd;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
if((dojo.render.html.khtml)&&(!dojo.render.html.safari)){
dojo.lfx.easeDefault=function(n){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
};
}else{
dojo.lfx.easeDefault=function(n){
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
};
}
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_5cd,_5ce){
if(!_5ce){
_5ce=_5cd;
_5cd=this;
}
_5ce=dojo.lang.hitch(_5cd,_5ce);
var _5cf=this[evt]||function(){
};
this[evt]=function(){
var ret=_5cf.apply(this,arguments);
_5ce.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_5d3){
this.repeatCount=_5d3;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_5d4,_5d5,_5d6,_5d7,_5d8,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_5d4)||(!_5d4&&_5d5.getValue)){
rate=_5d8;
_5d8=_5d7;
_5d7=_5d6;
_5d6=_5d5;
_5d5=_5d4;
_5d4=null;
}else{
if(_5d4.getValue||dojo.lang.isArray(_5d4)){
rate=_5d7;
_5d8=_5d6;
_5d7=_5d5;
_5d6=_5d4;
_5d5=null;
_5d4=null;
}
}
if(dojo.lang.isArray(_5d6)){
this.curve=new dojo.lfx.Line(_5d6[0],_5d6[1]);
}else{
this.curve=_5d6;
}
if(_5d5!=null&&_5d5>0){
this.duration=_5d5;
}
if(_5d8){
this.repeatCount=_5d8;
}
if(rate){
this.rate=rate;
}
if(_5d4){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_5d4[item]){
this.connect(item,_5d4[item]);
}
},this);
}
if(_5d7&&dojo.lang.isFunction(_5d7)){
this.easing=_5d7;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_5db,_5dc){
if(_5dc){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_5db>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5dc);
}),_5db);
return this;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _5de=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_5de]);
this.fire("onBegin",[_5de]);
}
this.fire("handler",["play",_5de]);
this.fire("onPlay",[_5de]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _5df=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_5df]);
this.fire("onPause",[_5df]);
return this;
},gotoPercent:function(pct,_5e1){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5e1){
this.play();
}
return this;
},stop:function(_5e2){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5e2){
step=1;
}
var _5e4=this.curve.getValue(step);
this.fire("handler",["stop",_5e4]);
this.fire("onStop",[_5e4]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _5e7=this.curve.getValue(step);
this.fire("handler",["animate",_5e7]);
this.fire("onAnimate",[_5e7]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(_5e8){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _5e9=arguments;
if(_5e9.length==1&&(dojo.lang.isArray(_5e9[0])||dojo.lang.isArrayLike(_5e9[0]))){
_5e9=_5e9[0];
}
dojo.lang.forEach(_5e9,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_5eb,_5ec){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_5eb>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5ec);
}),_5eb);
return this;
}
if(_5ec||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_5ec);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_5ed){
this.fire("onStop");
this._animsCall("stop",_5ed);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_5ee){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _5f1=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_5ee](args);
},_5f1);
return this;
}});
dojo.lfx.Chain=function(_5f3){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _5f4=arguments;
if(_5f4.length==1&&(dojo.lang.isArray(_5f4[0])||dojo.lang.isArrayLike(_5f4[0]))){
_5f4=_5f4[0];
}
var _5f5=this;
dojo.lang.forEach(_5f4,function(anim,i,_5f8){
this._anims.push(anim);
if(i<_5f8.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_5f9,_5fa){
if(!this._anims.length){
return this;
}
if(_5fa||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _5fb=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_5f9>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5fa);
}),_5f9);
return this;
}
if(_5fb){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_5fb.play(null,_5fa);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _5fc=this._anims[this._currAnim];
if(_5fc){
if(!_5fc._active||_5fc._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _5fd=this._anims[this._currAnim];
if(_5fd){
_5fd.stop();
this.fire("onStop",[this._currAnim]);
}
return _5fd;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(_5fe){
var _5ff=arguments;
if(dojo.lang.isArray(arguments[0])){
_5ff=arguments[0];
}
if(_5ff.length==1){
return _5ff[0];
}
return new dojo.lfx.Combine(_5ff);
};
dojo.lfx.chain=function(_600){
var _601=arguments;
if(dojo.lang.isArray(arguments[0])){
_601=arguments[0];
}
if(_601.length==1){
return _601[0];
}
return new dojo.lfx.Chain(_601);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _603;
do{
_603=dojo.html.getStyle(node,"background-color");
if(_603.toLowerCase()=="rgba(0, 0, 0, 0)"){
_603="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_603));
if(_603=="transparent"){
_603=[255,255,255,0];
}else{
_603=dojo.gfx.color.extractRGB(_603);
}
return _603;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_604){
if(!_604){
return [];
}
if(dojo.lang.isArrayLike(_604)){
if(!_604.alreadyChecked){
var n=[];
dojo.lang.forEach(_604,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _604;
}
}else{
var n=[];
n.push(dojo.byId(_604));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_607,_608,_609,_60a,_60b){
_607=dojo.lfx.html._byId(_607);
var _60c={"propertyMap":_608,"nodes":_607,"duration":_609,"easing":_60a||dojo.lfx.easeDefault};
var _60d=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _611 in pm){
pm[_611].property=_611;
parr.push(pm[_611]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _613=function(_614){
var _615=[];
dojo.lang.forEach(_614,function(c){
_615.push(Math.round(c));
});
return _615;
};
var _617=function(n,_619){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _619){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_619[s]);
}else{
n.style[s]=_619[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _61b=function(_61c){
this._properties=_61c;
this.diffs=new Array(_61c.length);
dojo.lang.forEach(_61c,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _623=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_623=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_623+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_623+=")";
}else{
_623=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_623;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_60d(_60c);
anim.curve=new _61b(_60c.propertyMap);
},onAnimate:function(_626){
dojo.lang.forEach(_60c.nodes,function(node){
_617(node,_626);
});
}},_60c.duration,null,_60c.easing);
if(_60b){
for(var x in _60b){
if(dojo.lang.isFunction(_60b[x])){
anim.connect(x,anim,_60b[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_629){
var _62a=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_629)){
dojo.lang.forEach(_629,_62a);
}else{
_62a(_629);
}
};
dojo.lfx.html.fade=function(_62c,_62d,_62e,_62f,_630){
_62c=dojo.lfx.html._byId(_62c);
var _631={property:"opacity"};
if(!dj_undef("start",_62d)){
_631.start=_62d.start;
}else{
_631.start=function(){
return dojo.html.getOpacity(_62c[0]);
};
}
if(!dj_undef("end",_62d)){
_631.end=_62d.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_62c,[_631],_62e,_62f);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_62c);
});
if(_630){
anim.connect("onEnd",function(){
_630(_62c,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_633,_634,_635,_636){
return dojo.lfx.html.fade(_633,{end:1},_634,_635,_636);
};
dojo.lfx.html.fadeOut=function(_637,_638,_639,_63a){
return dojo.lfx.html.fade(_637,{end:0},_638,_639,_63a);
};
dojo.lfx.html.fadeShow=function(_63b,_63c,_63d,_63e){
_63b=dojo.lfx.html._byId(_63b);
dojo.lang.forEach(_63b,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_63b,_63c,_63d,_63e);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_63b)){
dojo.lang.forEach(_63b,dojo.html.show);
}else{
dojo.html.show(_63b);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_641,_642,_643,_644){
var anim=dojo.lfx.html.fadeOut(_641,_642,_643,function(){
if(dojo.lang.isArrayLike(_641)){
dojo.lang.forEach(_641,dojo.html.hide);
}else{
dojo.html.hide(_641);
}
if(_644){
_644(_641,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_646,_647,_648,_649){
_646=dojo.lfx.html._byId(_646);
var _64a=[];
dojo.lang.forEach(_646,function(node){
var _64c={};
with(node.style){
visibility="hidden";
display="";
}
var _64d=dojo.html.getBorderBox(node).height;
with(node.style){
visibility="";
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _64d;
}}},_647,_648);
anim.connect("beforeBegin",function(){
_64c.overflow=node.style.overflow;
_64c.height=node.style.height;
with(node.style){
overflow="hidden";
_64d="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_64c.overflow;
_64d=_64c.height;
}
if(_649){
_649(node,anim);
}
});
_64a.push(anim);
});
return dojo.lfx.combine(_64a);
};
dojo.lfx.html.wipeOut=function(_64f,_650,_651,_652){
_64f=dojo.lfx.html._byId(_64f);
var _653=[];
dojo.lang.forEach(_64f,function(node){
var _655={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_650,_651,{"beforeBegin":function(){
_655.overflow=node.style.overflow;
_655.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_655.overflow;
height=_655.height;
}
if(_652){
_652(node,anim);
}
}});
_653.push(anim);
});
return dojo.lfx.combine(_653);
};
dojo.lfx.html.slideTo=function(_657,_658,_659,_65a,_65b){
_657=dojo.lfx.html._byId(_657);
var _65c=[];
var _65d=dojo.html.getComputedStyle;
dojo.lang.forEach(_657,function(node){
var top=null;
var left=null;
var init=(function(){
var _662=node;
return function(){
var pos=_65d(_662,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_65d(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_65d(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_662,true);
dojo.html.setStyleAttributes(_662,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_658.top||0)},"left":{start:left,end:(_658.left||0)}},_659,_65a,{"beforeBegin":init});
if(_65b){
anim.connect("onEnd",function(){
_65b(_657,anim);
});
}
_65c.push(anim);
});
return dojo.lfx.combine(_65c);
};
dojo.lfx.html.slideBy=function(_666,_667,_668,_669,_66a){
_666=dojo.lfx.html._byId(_666);
var _66b=[];
var _66c=dojo.html.getComputedStyle;
dojo.lang.forEach(_666,function(node){
var top=null;
var left=null;
var init=(function(){
var _671=node;
return function(){
var pos=_66c(_671,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_66c(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_66c(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_671,true);
dojo.html.setStyleAttributes(_671,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_667.top||0)},"left":{start:left,end:left+(_667.left||0)}},_668,_669).connect("beforeBegin",init);
if(_66a){
anim.connect("onEnd",function(){
_66a(_666,anim);
});
}
_66b.push(anim);
});
return dojo.lfx.combine(_66b);
};
dojo.lfx.html.explode=function(_675,_676,_677,_678,_679){
var h=dojo.html;
_675=dojo.byId(_675);
_676=dojo.byId(_676);
var _67b=h.toCoordinateObject(_675,true);
var _67c=document.createElement("div");
h.copyStyle(_67c,_676);
if(_676.explodeClassName){
_67c.className=_676.explodeClassName;
}
with(_67c.style){
position="absolute";
display="none";
var _67d=h.getStyle(_675,"background-color");
backgroundColor=_67d?_67d.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_67c);
with(_676.style){
visibility="hidden";
display="block";
}
var _67e=h.toCoordinateObject(_676,true);
with(_676.style){
display="none";
visibility="visible";
}
var _67f={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_67f[type]={start:_67b[type],end:_67e[type]};
});
var anim=new dojo.lfx.propertyAnimation(_67c,_67f,_677,_678,{"beforeBegin":function(){
h.setDisplay(_67c,"block");
},"onEnd":function(){
h.setDisplay(_676,"block");
_67c.parentNode.removeChild(_67c);
}});
if(_679){
anim.connect("onEnd",function(){
_679(_676,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_682,end,_684,_685,_686){
var h=dojo.html;
_682=dojo.byId(_682);
end=dojo.byId(end);
var _688=dojo.html.toCoordinateObject(_682,true);
var _689=dojo.html.toCoordinateObject(end,true);
var _68a=document.createElement("div");
dojo.html.copyStyle(_68a,_682);
if(_682.explodeClassName){
_68a.className=_682.explodeClassName;
}
dojo.html.setOpacity(_68a,0.3);
with(_68a.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_682,"background-color").toLowerCase();
}
dojo.body().appendChild(_68a);
var _68b={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_68b[type]={start:_688[type],end:_689[type]};
});
var anim=new dojo.lfx.propertyAnimation(_68a,_68b,_684,_685,{"beforeBegin":function(){
dojo.html.hide(_682);
dojo.html.show(_68a);
},"onEnd":function(){
_68a.parentNode.removeChild(_68a);
}});
if(_686){
anim.connect("onEnd",function(){
_686(_682,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_68e,_68f,_690,_691,_692){
_68e=dojo.lfx.html._byId(_68e);
var _693=[];
dojo.lang.forEach(_68e,function(node){
var _695=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _697=dojo.html.getStyle(node,"background-image");
var _698=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_695.length>3){
_695.pop();
}
var rgb=new dojo.gfx.color.Color(_68f);
var _69a=new dojo.gfx.color.Color(_695);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_69a}},_690,_691,{"beforeBegin":function(){
if(_697){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_697){
node.style.backgroundImage=_697;
}
if(_698){
node.style.backgroundColor="transparent";
}
if(_692){
_692(node,anim);
}
}});
_693.push(anim);
});
return dojo.lfx.combine(_693);
};
dojo.lfx.html.unhighlight=function(_69c,_69d,_69e,_69f,_6a0){
_69c=dojo.lfx.html._byId(_69c);
var _6a1=[];
dojo.lang.forEach(_69c,function(node){
var _6a3=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_69d);
var _6a5=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_6a3,end:rgb}},_69e,_69f,{"beforeBegin":function(){
if(_6a5){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_6a3.toRgb().join(",")+")";
},"onEnd":function(){
if(_6a0){
_6a0(node,anim);
}
}});
_6a1.push(anim);
});
return dojo.lfx.combine(_6a1);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggler");
dojo.lfx.toggler.plain=function(){
this.stop=function(){
};
this.show=function(node,_6a8,_6a9,_6aa){
dojo.html.show(node);
if(dojo.lang.isFunction(_6aa)){
_6aa();
}
};
this.hide=function(node,_6ac,_6ad,_6ae){
dojo.html.hide(node);
if(dojo.lang.isFunction(_6ae)){
_6ae();
}
};
};
dojo.lfx.toggler.common={stop:function(){
if(this.anim&&this.anim.status()!="stopped"){
this.anim.stop();
}
},_act:function(_6af,node,_6b1,_6b2,_6b3,_6b4){
this.stop();
this.anim=dojo.lfx[_6af](node,_6b1,_6b2,_6b3).play();
},show:function(node,_6b6,_6b7,_6b8,_6b9){
this._act(this.show_action,node,_6b6,_6b7,_6b8,_6b9);
},hide:function(node,_6bb,_6bc,_6bd,_6be){
this._act(this.hide_action,node,_6bb,_6bc,_6bd,_6be);
}};
dojo.lfx.toggler.fade=function(){
this.anim=null;
this.show_action="fadeShow";
this.hide_action="fadeHide";
};
dojo.extend(dojo.lfx.toggler.fade,dojo.lfx.toggler.common);
dojo.lfx.toggler.wipe=function(){
this.anim=null;
this.show_action="wipeIn";
this.hide_action="wipeOut";
};
dojo.extend(dojo.lfx.toggler.wipe,dojo.lfx.toggler.common);
dojo.lfx.toggler.explode=function(){
this.anim=null;
this.show_action="explode";
this.hide_action="implode";
this.show=function(node,_6c0,_6c1,_6c2,_6c3){
this.stop();
this.anim=dojo.lfx.explode(_6c3||{x:0,y:0,width:0,height:0},node,_6c0,_6c1,_6c2).play();
};
this.hide=function(node,_6c5,_6c6,_6c7,_6c8){
this.stop();
this.anim=dojo.lfx.implode(node,_6c8||{x:0,y:0,width:0,height:0},_6c5,_6c6,_6c7).play();
};
};
dojo.extend(dojo.lfx.toggler.explode,dojo.lfx.toggler.common);
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=new (dojo.lfx.toggler[this.toggle.toLowerCase()]||dojo.lfx.toggler.plain);
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_6cf){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_6cf&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.widget.HtmlWidget.superclass.destroyRendering.call(this);
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
if(!this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _6d3=w||wh.width;
var _6d4=h||wh.height;
if(this.width==_6d3&&this.height==_6d4){
return false;
}
this.width=_6d3;
this.height=_6d4;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_6d7){
if(_6d7.checkSize){
_6d7.checkSize();
}
});
}});
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_6d8){
this.propertySetsList=[];
this.fragment=_6d8;
this.createComponents=function(frag,_6da){
var _6db=[];
var _6dc=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _6dd=dojo.widget.tags;
var tna=String(frag.tagName).split(";");
for(var x=0;x<tna.length;x++){
var ltn=tna[x].replace(/^\s+|\s+$/g,"").toLowerCase();
frag.tagName=ltn;
var ret;
if(_6dd[ltn]){
_6dc=true;
ret=_6dd[ltn](frag,this,_6da,frag.index);
_6db.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_6da,frag.index);
if(ret){
_6dc=true;
_6db.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_6dc){
_6db=_6db.concat(this.createSubComponents(frag,_6da));
}
return _6db;
};
this.createSubComponents=function(_6e2,_6e3){
var frag,_6e5=[];
for(var item in _6e2){
frag=_6e2[item];
if(frag&&typeof frag=="object"&&(frag!=_6e2.nodeRef)&&(frag!=_6e2.tagName)&&(item.indexOf("$")==-1)){
_6e5=_6e5.concat(this.createComponents(frag,_6e3));
}
}
return _6e5;
};
this.parsePropertySets=function(_6e7){
return [];
};
this.parseProperties=function(_6e8){
var _6e9={};
for(var item in _6e8){
if((_6e8[item]==_6e8.tagName)||(_6e8[item]==_6e8.nodeRef)){
}else{
var frag=_6e8[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _6ec=this;
this.getDataProvider(_6ec,frag[0].value);
_6e9.dataProvider=this.dataProvider;
}
_6e9[item]=frag[0].value;
var _6ed=this.parseProperties(frag);
for(var _6ee in _6ed){
_6e9[_6ee]=_6ed[_6ee];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _6e9[item]!="boolean"){
_6e9[item]=true;
}
break;
}
}
}
return _6e9;
};
this.getDataProvider=function(_6ef,_6f0){
dojo.io.bind({url:_6f0,load:function(type,_6f2){
if(type=="load"){
_6ef.dataProvider=_6f2;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_6f3){
for(var x=0;x<this.propertySetsList.length;x++){
if(_6f3==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_6f5){
var _6f6=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _6fa=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_6fa==cpcc[0].value)){
_6f6.push(cpl);
}
}
return _6f6;
};
this.getPropertySets=function(_6fb){
var ppl="dojo:propertyproviderlist";
var _6fd=[];
var _6fe=_6fb.tagName;
if(_6fb[ppl]){
var _6ff=_6fb[ppl].value.split(" ");
for(var _700 in _6ff){
if((_700.indexOf("..")==-1)&&(_700.indexOf("://")==-1)){
var _701=this.getPropertySetById(_700);
if(_701!=""){
_6fd.push(_701);
}
}else{
}
}
}
return this.getPropertySetsByType(_6fe).concat(_6fd);
};
this.createComponentFromScript=function(_702,_703,_704,ns){
_704.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_703.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_704,this,null,null,_704)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_704,this,null,null,_704)];
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_709,_70a,_70b){
var _70c=false;
var _70d=(typeof name=="string");
if(_70d){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _710=name.toLowerCase();
var _711=ns+":"+_710;
_70c=(dojo.byId(name)&&!dojo.widget.tags[_711]);
}
if((arguments.length==1)&&(_70c||!_70d)){
var xp=new dojo.xml.Parse();
var tn=_70c?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_714,name,_716,ns){
_716[_711]={dojotype:[{value:_710}],nodeRef:_714,fastMixIn:true};
_716.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_714,name,_716,ns);
}
_709=_709||{};
var _718=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_70a){
_718=true;
_70a=tn;
if(h){
dojo.body().appendChild(_70a);
}
}else{
if(_70b){
dojo.dom.insertAtPosition(tn,_70a,_70b);
}else{
tn=_70a;
}
}
var _71a=fromScript(tn,name.toLowerCase(),_709,ns);
if((!_71a)||(!_71a[0])||(typeof _71a[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_718&&_71a[0].domNode.parentNode){
_71a[0].domNode.parentNode.removeChild(_71a[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _71a[0];
};
dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]});
dojo.provide("dojo.html.*");
dojo.provide("dojo.string.common");
dojo.string.trim=function(str,wh){
if(!str.replace){
return str;
}
if(!str.length){
return str;
}
var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);
return str.replace(re,"");
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.repeat=function(str,_721,_722){
var out="";
for(var i=0;i<_721;i++){
out+=str;
if(_722&&i<_721-1){
out+=_722;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_731,_732,_733){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_731){
this.mimetype=_731;
}
if(_732){
this.transport=_732;
}
if(arguments.length>=4){
this.changeUrl=_733;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,_736,_737){
},error:function(type,_739,_73a,_73b){
},timeout:function(type,_73d,_73e,_73f){
},handle:function(type,data,_742,_743){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_744){
if(_744["url"]){
_744.url=_744.url.toString();
}
if(_744["formNode"]){
_744.formNode=dojo.byId(_744.formNode);
}
if(!_744["method"]&&_744["formNode"]&&_744["formNode"].method){
_744.method=_744["formNode"].method;
}
if(!_744["handle"]&&_744["handler"]){
_744.handle=_744.handler;
}
if(!_744["load"]&&_744["loaded"]){
_744.load=_744.loaded;
}
if(!_744["changeUrl"]&&_744["changeURL"]){
_744.changeUrl=_744.changeURL;
}
_744.encoding=dojo.lang.firstValued(_744["encoding"],djConfig["bindEncoding"],"");
_744.sendTransport=dojo.lang.firstValued(_744["sendTransport"],djConfig["ioSendTransport"],false);
var _745=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_744[fn]&&_745(_744[fn])){
continue;
}
if(_744["handle"]&&_745(_744["handle"])){
_744[fn]=_744.handle;
}
}
dojo.lang.mixin(this,_744);
}});
dojo.io.Error=function(msg,type,num){
this.message=msg;
this.type=type||"unknown";
this.number=num||0;
};
dojo.io.transports.addTransport=function(name){
this.push(name);
this[name]=dojo.io[name];
};
dojo.io.bind=function(_74c){
if(!(_74c instanceof dojo.io.Request)){
try{
_74c=new dojo.io.Request(_74c);
}
catch(e){
dojo.debug(e);
}
}
var _74d="";
if(_74c["transport"]){
_74d=_74c["transport"];
if(!this[_74d]){
dojo.io.sendBindError(_74c,"No dojo.io.bind() transport with name '"+_74c["transport"]+"'.");
return _74c;
}
if(!this[_74d].canHandle(_74c)){
dojo.io.sendBindError(_74c,"dojo.io.bind() transport with name '"+_74c["transport"]+"' cannot handle this type of request.");
return _74c;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_74c))){
_74d=tmp;
break;
}
}
if(_74d==""){
dojo.io.sendBindError(_74c,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _74c;
}
}
this[_74d].bind(_74c);
_74c.bindSuccess=true;
return _74c;
};
dojo.io.sendBindError=function(_750,_751){
if((typeof _750.error=="function"||typeof _750.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _752=new dojo.io.Error(_751);
setTimeout(function(){
_750[(typeof _750.error=="function")?"error":"handle"]("error",_752,null,_750);
},50);
}else{
dojo.raise(_751);
}
};
dojo.io.queueBind=function(_753){
if(!(_753 instanceof dojo.io.Request)){
try{
_753=new dojo.io.Request(_753);
}
catch(e){
dojo.debug(e);
}
}
var _754=_753.load;
_753.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_754.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _756=_753.error;
_753.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_756.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_753);
dojo.io._dispatchNextQueueBind();
return _753;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
if(dojo.io._bindQueue.length>0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight=false;
}
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_759,last){
var enc=/utf/i.test(_759||"")?encodeURIComponent:dojo.string.encodeAscii;
var _75c=[];
var _75d=new Object();
for(var name in map){
var _75f=function(elt){
var val=enc(name)+"="+enc(elt);
_75c[(last==name)?"push":"unshift"](val);
};
if(!_75d[name]){
var _762=map[name];
if(dojo.lang.isArray(_762)){
dojo.lang.forEach(_762,_75f);
}else{
_75f(_762);
}
}
}
return _75c.join("&");
};
dojo.io.setIFrameSrc=function(_763,src,_765){
try{
var r=dojo.render.html;
if(!_765){
if(r.safari){
_763.location=src;
}else{
frames[_763.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_763.contentWindow.document;
}else{
if(r.safari){
idoc=_763.document;
}else{
idoc=_763.contentWindow;
}
}
if(!idoc){
_763.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_768,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _768.replace(/\%\{(\w+)\}/g,function(_76b,key){
if(typeof (map[key])!="undefined"&&map[key]!=null){
return map[key];
}
dojo.raise("Substitution not found: "+key);
});
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
return str.replace(/[^\s]+/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
});
};
dojo.string.isBlank=function(str){
if(!dojo.lang.isString(str)){
return true;
}
return (dojo.string.trim(str).length==0);
};
dojo.string.encodeAscii=function(str){
if(!dojo.lang.isString(str)){
return str;
}
var ret="";
var _772=escape(str);
var _773,re=/%u([0-9A-F]{4})/i;
while((_773=_772.match(re))){
var num=Number("0x"+_773[1]);
var _776=escape("&#"+num+";");
ret+=_772.substring(0,_773.index)+_776;
_772=_772.substring(_773.index+_773[0].length);
}
ret+=_772.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=dojo.lang.toArray(arguments,1);
switch(type.toLowerCase()){
case "xml":
case "html":
case "xhtml":
return dojo.string.escapeXml.apply(this,args);
case "sql":
return dojo.string.escapeSql.apply(this,args);
case "regexp":
case "regex":
return dojo.string.escapeRegExp.apply(this,args);
case "javascript":
case "jscript":
case "js":
return dojo.string.escapeJavaScript.apply(this,args);
case "ascii":
return dojo.string.encodeAscii.apply(this,args);
default:
return str;
}
};
dojo.string.escapeXml=function(str,_77b){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_77b){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str,_77e){
return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){
if(_77e&&_77e.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.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.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}
return str.substring(0,len).replace(/\.+$/,"")+"...";
};
dojo.string.endsWith=function(str,end,_786){
if(_786){
str=str.toLowerCase();
end=end.toLowerCase();
}
if((str.length-end.length)<0){
return false;
}
return str.lastIndexOf(end)==str.length-end.length;
};
dojo.string.endsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.endsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.startsWith=function(str,_78a,_78b){
if(_78b){
str=str.toLowerCase();
_78a=_78a.toLowerCase();
}
return str.indexOf(_78a)==0;
};
dojo.string.startsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.startsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.has=function(str){
for(var i=1;i<arguments.length;i++){
if(str.indexOf(arguments[i])>-1){
return true;
}
}
return false;
};
dojo.string.normalizeNewlines=function(text,_791){
if(_791=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_791=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_793){
var _794=[];
for(var i=0,_796=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_793){
_794.push(str.substring(_796,i));
_796=i+1;
}
}
_794.push(str.substr(_796));
return _794;
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
if(djConfig["useXDomain"]&&!djConfig["dojoIframeHistoryUrl"]){
dojo.debug("dojo.undo.browser: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");
}
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _79b=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_79d){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_79b.apply(this,[_79d]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _79e=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_7a0){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_79e){
_79e.apply(this,[_7a0]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}else{
url=this._loadIframeHistory();
}
this.historyStack.push(this._createState(url,args,hash));
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_7a3){
if(!dojo.render.html.opera){
var _7a4=this._getUrlQuery(_7a3.href);
if(_7a4==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_7a4==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_7a4==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _7a5=this.historyStack.pop();
if(!_7a5){
return;
}
var last=this.historyStack[this.historyStack.length-1];
if(!last&&this.historyStack.length==0){
last=this.initialState;
}
if(last){
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(_7a5);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_createState:function(url,args,hash){
return {"url":url,"kwArgs":args,"urlHash":hash};
},_getUrlQuery:function(url){
var _7ac=url.split("?");
if(_7ac.length<2){
return null;
}else{
return _7ac[1];
}
},_loadIframeHistory:function(){
var url=(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _7af=false;
var _7b0=node.getElementsByTagName("input");
dojo.lang.forEach(_7b0,function(_7b1){
if(_7af){
return;
}
if(_7b1.getAttribute("type")=="file"){
_7af=true;
}
});
return _7af;
};
dojo.io.formHasFile=function(_7b2){
return dojo.io.checkChildrenForFile(_7b2);
};
dojo.io.updateNode=function(node,_7b4){
node=dojo.byId(node);
var args=_7b4;
if(dojo.lang.isString(_7b4)){
args={url:_7b4};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_7bb,_7bc,_7bd){
if((!_7bb)||(!_7bb.tagName)||(!_7bb.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_7bd){
_7bd=dojo.io.formFilter;
}
var enc=/utf/i.test(_7bc||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7bf=[];
for(var i=0;i<_7bb.elements.length;i++){
var elm=_7bb.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_7bd(elm)){
continue;
}
var name=enc(elm.name);
var type=elm.type.toLowerCase();
if(type=="select-multiple"){
for(var j=0;j<elm.options.length;j++){
if(elm.options[j].selected){
_7bf.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_7bf.push(name+"="+enc(elm.value));
}
}else{
_7bf.push(name+"="+enc(elm.value));
}
}
}
var _7c5=_7bb.getElementsByTagName("input");
for(var i=0;i<_7c5.length;i++){
var _7c6=_7c5[i];
if(_7c6.type.toLowerCase()=="image"&&_7c6.form==_7bb&&_7bd(_7c6)){
var name=enc(_7c6.name);
_7bf.push(name+"="+enc(_7c6.value));
_7bf.push(name+".x=0");
_7bf.push(name+".y=0");
}
}
return _7bf.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _7cc=form.getElementsByTagName("input");
for(var i=0;i<_7cc.length;i++){
var _7cd=_7cc[i];
if(_7cd.type.toLowerCase()=="image"&&_7cd.form==form){
this.connect(_7cd,"onclick","click");
}
}
},onSubmit:function(form){
return true;
},submit:function(e){
e.preventDefault();
if(this.onSubmit(this.form)){
dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}));
}
},click:function(e){
var node=e.currentTarget;
if(node.disabled){
return;
}
this.clickedButton=node;
},formFilter:function(node){
var type=(node.type||"").toLowerCase();
var _7d4=false;
if(node.disabled||!node.name){
_7d4=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_7d4=node==this.clickedButton;
}else{
_7d4=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _7d4;
},connect:function(_7d5,_7d6,_7d7){
if(dojo.getObject("dojo.event.connect")){
dojo.event.connect(_7d5,_7d6,this,_7d7);
}else{
var fcn=dojo.lang.hitch(this,_7d7);
_7d5[_7d6]=function(e){
if(!e){
e=window.event;
}
if(!e.currentTarget){
e.currentTarget=e.srcElement;
}
if(!e.preventDefault){
e.preventDefault=function(){
window.event.returnValue=false;
};
}
fcn(e);
};
}
}});
dojo.io.XMLHTTPTransport=new function(){
var _7da=this;
var _7db={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_7dd,_7de){
return url+"|"+_7dd+"|"+_7de.toLowerCase();
}
function addToCache(url,_7e0,_7e1,http){
_7db[getCacheKey(url,_7e0,_7e1)]=http;
}
function getFromCache(url,_7e4,_7e5){
return _7db[getCacheKey(url,_7e4,_7e5)];
}
this.clearCache=function(){
_7db={};
};
function doLoad(_7e6,http,url,_7e9,_7ea){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_7e6.method.toLowerCase()=="head"){
var _7ec=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _7ec;
};
var _7ed=_7ec.split(/[\r\n]+/g);
for(var i=0;i<_7ed.length;i++){
var pair=_7ed[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_7e6.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_7e6.mimetype=="text/json"||_7e6.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_7e6.mimetype=="application/xml")||(_7e6.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_7ea){
addToCache(url,_7e9,_7e6.method,http);
}
_7e6[(typeof _7e6.load=="function")?"load":"handle"]("load",ret,http,_7e6);
}else{
var _7f0=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_7e6[(typeof _7e6.error=="function")?"error":"handle"]("error",_7f0,http,_7e6);
}
}
function setHeaders(http,_7f2){
if(_7f2["headers"]){
for(var _7f3 in _7f2["headers"]){
if(_7f3.toLowerCase()=="content-type"&&!_7f2["contentType"]){
_7f2["contentType"]=_7f2["headers"][_7f3];
}else{
http.setRequestHeader(_7f3,_7f2["headers"][_7f3]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_7da._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
catch(e){
try{
var _7f7=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_7f7,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _7f8=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_7f9){
return _7f8&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_7f9["mimetype"].toLowerCase()||""))&&!(_7f9["formNode"]&&dojo.io.formHasFile(_7f9["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_7fa){
var url=_7fa.url;
var _7fc="";
if(_7fa["formNode"]){
var ta=_7fa.formNode.getAttribute("action");
if(typeof (ta)!="string"){
ta=_7fa.formNode.attributes.action.value;
}
if((ta)&&(!_7fa["url"])){
url=ta;
}
var tp=_7fa.formNode.getAttribute("method");
if((tp)&&(!_7fa["method"])){
_7fa.method=tp;
}
_7fc+=dojo.io.encodeForm(_7fa.formNode,_7fa.encoding,_7fa["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_7fa["file"]){
_7fa.method="post";
}
if(!_7fa["method"]){
_7fa.method="get";
}
if(_7fa.method.toLowerCase()=="get"){
_7fa.multipart=false;
}else{
if(_7fa["file"]){
_7fa.multipart=true;
}else{
if(!_7fa["multipart"]){
_7fa.multipart=false;
}
}
}
if(_7fa["backButton"]||_7fa["back"]||_7fa["changeUrl"]){
dojo.undo.browser.addToHistory(_7fa);
}
var _7ff=_7fa["content"]||{};
if(_7fa.sendTransport){
_7ff["dojo.transport"]="xmlhttp";
}
do{
if(_7fa.postContent){
_7fc=_7fa.postContent;
break;
}
if(_7ff){
_7fc+=dojo.io.argsFromMap(_7ff,_7fa.encoding);
}
if(_7fa.method.toLowerCase()=="get"||!_7fa.multipart){
break;
}
var t=[];
if(_7fc.length){
var q=_7fc.split("&");
for(var i=0;i<q.length;++i){
if(q[i].length){
var p=q[i].split("=");
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+p[0]+"\"","",p[1]);
}
}
}
if(_7fa.file){
if(dojo.lang.isArray(_7fa.file)){
for(var i=0;i<_7fa.file.length;++i){
var o=_7fa.file[i];
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}else{
var o=_7fa.file;
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}
if(t.length){
t.push("--"+this.multipartBoundary+"--","");
_7fc=t.join("\r\n");
}
}while(false);
var _805=_7fa["sync"]?false:true;
var _806=_7fa["preventCache"]||(this.preventCache==true&&_7fa["preventCache"]!=false);
var _807=_7fa["useCache"]==true||(this.useCache==true&&_7fa["useCache"]!=false);
if(!_806&&_807){
var _808=getFromCache(url,_7fc,_7fa.method);
if(_808){
doLoad(_7fa,_808,url,_7fc,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_7fa);
var _80a=false;
if(_805){
var _80b=this.inFlight.push({"req":_7fa,"http":http,"url":url,"query":_7fc,"useCache":_807,"startTime":_7fa.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_7da._blockAsync=true;
}
if(_7fa.method.toLowerCase()=="post"){
if(!_7fa.user){
http.open("POST",url,_805);
}else{
http.open("POST",url,_805,_7fa.user,_7fa.password);
}
setHeaders(http,_7fa);
http.setRequestHeader("Content-Type",_7fa.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_7fa.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_7fc);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7fa,{status:404},url,_7fc,_807);
}
}else{
var _80c=url;
if(_7fc!=""){
_80c+=(_80c.indexOf("?")>-1?"&":"?")+_7fc;
}
if(_806){
_80c+=(dojo.string.endsWithAny(_80c,"?","&")?"":(_80c.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_7fa.user){
http.open(_7fa.method.toUpperCase(),_80c,_805);
}else{
http.open(_7fa.method.toUpperCase(),_80c,_805,_7fa.user,_7fa.password);
}
setHeaders(http,_7fa);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_7fa,{status:404},url,_7fc,_807);
}
}
if(!_805){
doLoad(_7fa,http,url,_7fc,_807);
_7da._blockAsync=false;
}
_7fa.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_80e,days,path,_811,_812){
var _813=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_813=d.toGMTString();
}
_80e=escape(_80e);
document.cookie=name+"="+_80e+";"+(_813!=-1?" expires="+_813+";":"")+(path?"path="+path:"")+(_811?"; domain="+_811:"")+(_812?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.lastIndexOf(name+"=");
if(idx==-1){
return null;
}
var _817=document.cookie.substring(idx+name.length+1);
var end=_817.indexOf(";");
if(end==-1){
end=_817.length;
}
_817=_817.substring(0,end);
_817=unescape(_817);
return _817;
};
dojo.io.cookie.get=dojo.io.cookie.getCookie;
dojo.io.cookie.deleteCookie=function(name){
dojo.io.cookie.setCookie(name,"-",0);
};
dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_81e,_81f,_820){
if(arguments.length==5){
_820=_81e;
_81e=null;
_81f=null;
}
var _821=[],_822,_823="";
if(!_820){
_822=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_822){
_822={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _822[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_822[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _822){
_821.push(escape(prop)+"="+escape(_822[prop]));
}
_823=_821.join("&");
}
dojo.io.cookie.setCookie(name,_823,days,path,_81e,_81f);
};
dojo.io.cookie.getObjectCookie=function(name){
var _826=null,_827=dojo.io.cookie.getCookie(name);
if(_827){
_826={};
var _828=_827.split("&");
for(var i=0;i<_828.length;i++){
var pair=_828[i].split("=");
var _82b=pair[1];
if(isNaN(_82b)){
_82b=unescape(pair[1]);
}
_826[unescape(pair[0])]=_82b;
}
}
return _826;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _82c=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_82c=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.provide("dojo.regexp");
dojo.getObject("dojo.regexp.us",true);
dojo.regexp.tld=function(_82d){
_82d=(typeof _82d=="object")?_82d:{};
if(typeof _82d.allowCC!="boolean"){
_82d.allowCC=true;
}
if(typeof _82d.allowInfra!="boolean"){
_82d.allowInfra=true;
}
if(typeof _82d.allowGeneric!="boolean"){
_82d.allowGeneric=true;
}
var _82e="arpa";
var _82f="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";
var ccRE="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|"+"gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|"+"la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|"+"my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|"+"re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|"+"tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";
var a=[];
if(_82d.allowInfra){
a.push(_82e);
}
if(_82d.allowGeneric){
a.push(_82f);
}
if(_82d.allowCC){
a.push(ccRE);
}
var _832="";
if(a.length>0){
_832="("+a.join("|")+")";
}
return _832;
};
dojo.regexp.ipAddress=function(_833){
_833=(typeof _833=="object")?_833:{};
if(typeof _833.allowDottedDecimal!="boolean"){
_833.allowDottedDecimal=true;
}
if(typeof _833.allowDottedHex!="boolean"){
_833.allowDottedHex=true;
}
if(typeof _833.allowDottedOctal!="boolean"){
_833.allowDottedOctal=true;
}
if(typeof _833.allowDecimal!="boolean"){
_833.allowDecimal=true;
}
if(typeof _833.allowHex!="boolean"){
_833.allowHex=true;
}
if(typeof _833.allowIPv6!="boolean"){
_833.allowIPv6=true;
}
if(typeof _833.allowHybrid!="boolean"){
_833.allowHybrid=true;
}
var _834="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var _835="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _836="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _837="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
var _838="0[xX]0*[\\da-fA-F]{1,8}";
var _839="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _83a="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var a=[];
if(_833.allowDottedDecimal){
a.push(_834);
}
if(_833.allowDottedHex){
a.push(_835);
}
if(_833.allowDottedOctal){
a.push(_836);
}
if(_833.allowDecimal){
a.push(_837);
}
if(_833.allowHex){
a.push(_838);
}
if(_833.allowIPv6){
a.push(_839);
}
if(_833.allowHybrid){
a.push(_83a);
}
var _83c="";
if(a.length>0){
_83c="("+a.join("|")+")";
}
return _83c;
};
dojo.regexp.host=function(_83d){
_83d=(typeof _83d=="object")?_83d:{};
if(typeof _83d.allowIP!="boolean"){
_83d.allowIP=true;
}
if(typeof _83d.allowLocal!="boolean"){
_83d.allowLocal=false;
}
if(typeof _83d.allowPort!="boolean"){
_83d.allowPort=true;
}
var _83e="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_83d);
var _83f=(_83d.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _840=_83e;
if(_83d.allowIP){
_840+="|"+dojo.regexp.ipAddress(_83d);
}
if(_83d.allowLocal){
_840+="|localhost";
}
return "("+_840+")"+_83f;
};
dojo.regexp.url=function(_841){
_841=(typeof _841=="object")?_841:{};
if(typeof _841.scheme=="undefined"){
_841.scheme=[true,false];
}
var _842=dojo.regexp.buildGroupRE(_841.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _844="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _842+dojo.regexp.host(_841)+_844;
};
dojo.regexp.emailAddress=function(_845){
_845=(typeof _845=="object")?_845:{};
if(typeof _845.allowCruft!="boolean"){
_845.allowCruft=false;
}
_845.allowPort=false;
var _846="([\\da-z]+[-._+&'])*[\\da-z]+";
var _847=_846+"@"+dojo.regexp.host(_845);
if(_845.allowCruft){
_847="<?(mailto\\:)?"+_847+">?";
}
return _847;
};
dojo.regexp.emailAddressList=function(_848){
_848=(typeof _848=="object")?_848:{};
if(typeof _848.listSeparator!="string"){
_848.listSeparator="\\s;,";
}
var _849=dojo.regexp.emailAddress(_848);
var _84a="("+_849+"\\s*["+_848.listSeparator+"]\\s*)*"+_849+"\\s*["+_848.listSeparator+"]?\\s*";
return _84a;
};
dojo.regexp.integer=function(_84b){
_84b=(typeof _84b=="object")?_84b:{};
if(typeof _84b.signed=="undefined"){
_84b.signed=[true,false];
}
if(typeof _84b.separator=="undefined"){
_84b.separator="";
}else{
if(typeof _84b.groupSize=="undefined"){
_84b.groupSize=3;
}
}
var _84c=dojo.regexp.buildGroupRE(_84b.signed,function(q){
return q?"[-+]":"";
},true);
var _84e=dojo.regexp.buildGroupRE(_84b.separator,function(sep){
if(!sep){
return "(?:0|[1-9]\\d*)";
}
var grp=_84b.groupSize,grp2=_84b.groupSize2;
if(grp2){
var _852="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_852+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_852;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _84c+_84e;
};
dojo.regexp.realNumber=function(_853){
_853=(typeof _853=="object")?_853:{};
if(typeof _853.places=="undefined"){
_853.places=Infinity;
}
if(typeof _853.decimal!="string"){
_853.decimal=".";
}
if(typeof _853.fractional=="undefined"){
_853.fractional=[true,false];
}
if(typeof _853.exponent=="undefined"){
_853.exponent=[true,false];
}
if(typeof _853.eSigned=="undefined"){
_853.eSigned=[true,false];
}
var _854=dojo.regexp.integer(_853);
var _855=dojo.regexp.buildGroupRE(_853.fractional,function(q){
var re="";
if(q&&(_853.places!==0)){
re="\\"+_853.decimal;
if(_853.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_853.places+"}";
}
}
return re;
},true);
var _858=dojo.regexp.buildGroupRE(_853.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_853.eSigned})+")";
}
return "";
});
var _85a=_854+_855;
if(_855){
_85a="(?:(?:"+_85a+")|(?:"+_855+"))";
}
return _85a+_858;
};
dojo.regexp.currency=function(_85b){
_85b=(typeof _85b=="object")?_85b:{};
if(typeof _85b.signed=="undefined"){
_85b.signed=[true,false];
}
if(typeof _85b.symbol=="undefined"){
_85b.symbol="$";
}
if(typeof _85b.placement!="string"){
_85b.placement="before";
}
if(typeof _85b.signPlacement!="string"){
_85b.signPlacement="before";
}
if(typeof _85b.separator=="undefined"){
_85b.separator=",";
}
if(typeof _85b.decimal!="string"){
_85b.decimal=".";
}
var _85c=dojo.regexp.buildGroupRE(_85b.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _85e=dojo.regexp.buildGroupRE(_85b.symbol,function(_85f){
return "\\s?"+_85f.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_85b.signPlacement){
case "before":
_85e=_85c+_85e;
break;
case "after":
_85e=_85e+_85c;
break;
}
var _860=_85b;
_860.signed=false;
_860.exponent=false;
var _861=dojo.regexp.realNumber(_860);
var _862;
switch(_85b.placement){
case "before":
_862=_85e+_861;
break;
case "after":
_862=_861+_85e;
break;
}
switch(_85b.signPlacement){
case "around":
_862="("+_862+"|"+"\\("+_862+"\\)"+")";
break;
case "begin":
_862=_85c+_862;
break;
case "end":
_862=_862+_85c;
break;
}
return _862;
};
dojo.regexp.us.state=function(_863){
_863=(typeof _863=="object")?_863:{};
if(typeof _863.allowTerritories!="boolean"){
_863.allowTerritories=true;
}
if(typeof _863.allowMilitary!="boolean"){
_863.allowMilitary=true;
}
var _864="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _865="AS|FM|GU|MH|MP|PW|PR|VI";
var _866="AA|AE|AP";
if(_863.allowTerritories){
_864+="|"+_865;
}
if(_863.allowMilitary){
_864+="|"+_866;
}
return "("+_864+")";
};
dojo.regexp.time=function(_867){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_867=(typeof _867=="object")?_867:{};
if(typeof _867.format=="undefined"){
_867.format="h:mm:ss t";
}
if(typeof _867.amSymbol!="string"){
_867.amSymbol="AM";
}
if(typeof _867.pmSymbol!="string"){
_867.pmSymbol="PM";
}
var _868=function(_869){
_869=_869.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_867.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_867.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_869=_869.replace("hh","(0[1-9]|1[0-2])");
_869=_869.replace("h","([1-9]|1[0-2])");
_869=_869.replace("HH","([01][0-9]|2[0-3])");
_869=_869.replace("H","([0-9]|1[0-9]|2[0-3])");
_869=_869.replace("mm","([0-5][0-9])");
_869=_869.replace("m","([1-5][0-9]|[0-9])");
_869=_869.replace("ss","([0-5][0-9])");
_869=_869.replace("s","([1-5][0-9]|[0-9])");
_869=_869.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _869;
};
return dojo.regexp.buildGroupRE(_867.format,_868);
};
dojo.regexp.numberFormat=function(_86c){
_86c=(typeof _86c=="object")?_86c:{};
if(typeof _86c.format=="undefined"){
_86c.format="###-###-####";
}
var _86d=function(_86e){
_86e=dojo.string.escapeRegExp(_86e,"?");
_86e=_86e.replace(/\?/g,"\\d?");
_86e=_86e.replace(/#/g,"\\d");
return _86e;
};
return dojo.regexp.buildGroupRE(_86c.format,_86d);
};
dojo.regexp.buildGroupRE=function(a,re,_871){
if(!(a instanceof Array)){
return re(a);
}
var b=[];
for(var i=0;i<a.length;i++){
b.push(re(a[i]));
}
return dojo.regexp.group(b.join("|"),_871);
};
dojo.regexp.group=function(_874,_875){
return "("+(_875?"?:":"")+_874+")";
};
dojo.provide("dojo.validate.common");
dojo.validate.isText=function(_876,_877){
_877=(typeof _877=="object")?_877:{};
if(/^\s*$/.test(_876)){
return false;
}
if(typeof _877.length=="number"&&_877.length!=_876.length){
return false;
}
if(typeof _877.minlength=="number"&&_877.minlength>_876.length){
return false;
}
if(typeof _877.maxlength=="number"&&_877.maxlength<_876.length){
return false;
}
return true;
};
dojo.validate.isInteger=function(_878,_879){
var re=new RegExp("^"+dojo.regexp.integer(_879)+"$");
return re.test(_878);
};
dojo.validate.isRealNumber=function(_87b,_87c){
var re=new RegExp("^"+dojo.regexp.realNumber(_87c)+"$");
return re.test(_87b);
};
dojo.validate.isCurrency=function(_87e,_87f){
var re=new RegExp("^"+dojo.regexp.currency(_87f)+"$");
return re.test(_87e);
};
dojo.validate._isInRangeCache={};
dojo.validate.isInRange=function(_881,_882){
_881=_881.replace(new RegExp(dojo.lang.has(_882,"separator")?_882.separator:",","g"),"");
_881=_881.replace(dojo.lang.has(_882,"symbol")?_882.symbol:"$","");
if(isNaN(_881)){
return false;
}
_882=(typeof _882=="object")?_882:{};
var max=(typeof _882.max=="number")?_882.max:Infinity;
var min=(typeof _882.min=="number")?_882.min:-Infinity;
var dec=(typeof _882.decimal=="string")?_882.decimal:".";
var _886=dojo.validate._isInRangeCache;
var _887=_881+"max"+max+"min"+min+"dec"+dec;
if(typeof _886[_887]!="undefined"){
return _886[_887];
}
var _888="[^"+dec+"\\deE+-]";
_881=_881.replace(RegExp(_888,"g"),"");
_881=_881.replace(/^([+-]?)(\D*)/,"$1");
_881=_881.replace(/(\D*)$/,"");
_888="(\\d)["+dec+"](\\d)";
_881=_881.replace(RegExp(_888,"g"),"$1.$2");
_881=Number(_881);
if(_881<min||_881>max){
_886[_887]=false;
return false;
}
_886[_887]=true;
return true;
};
dojo.validate.isNumberFormat=function(_889,_88a){
var re=new RegExp("^"+dojo.regexp.numberFormat(_88a)+"$","i");
return re.test(_889);
};
dojo.validate.isValidLuhn=function(_88c){
var sum,_88e,_88f;
if(typeof _88c!="string"){
_88c=String(_88c);
}
_88c=_88c.replace(/[- ]/g,"");
_88e=_88c.length%2;
sum=0;
for(var i=0;i<_88c.length;i++){
_88f=parseInt(_88c.charAt(i));
if(i%2==_88e){
_88f*=2;
}
if(_88f>9){
_88f-=9;
}
sum+=_88f;
}
return !(sum%10);
};
dojo.provide("dojo.string.Builder");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b="";
var _894=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(){
for(var x=0;x<arguments.length;x++){
var s=arguments[x];
if(dojo.lang.isArrayLike(s)){
this.append.apply(this,s);
}else{
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_894+=s.length;
this.length=_894;
}
}
return this;
};
this.concat=function(){
return this.append.apply(this,arguments);
};
this.clear=function(){
a=[];
b="";
_894=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_894=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_894=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_894=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.kwCompoundRequire({common:["dojo.string","dojo.string.common","dojo.string.extras","dojo.string.Builder"]});
dojo.provide("dojo.string.*");
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_89f,_8a0){
_89f.setMonth(0);
_89f.setDate(_8a0);
return _89f;
};
dojo.date.getDayOfYear=function(_8a1){
var _8a2=_8a1.getFullYear();
var _8a3=new Date(_8a2-1,11,31);
return Math.floor((_8a1.getTime()-_8a3.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_8a4,week,_8a6){
if(arguments.length==2){
_8a6=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_8a7,_8a8){
if(arguments.length==1){
_8a8=0;
}
var _8a9=new Date(_8a7.getFullYear(),0,1);
var day=_8a9.getDay();
_8a9.setDate(_8a9.getDate()-day+_8a8-(day>_8a8?7:0));
return Math.floor((_8a7.getTime()-_8a9.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_8ab,week,_8ad){
if(arguments.length==2){
_8ad=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_8ae,_8af){
if(arguments.length==1){
_8af=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];
dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];
dojo.date.getDaysInMonth=function(_8b0){
var _8b1=_8b0.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_8b1==1&&dojo.date.isLeapYear(_8b0)){
return 29;
}else{
return days[_8b1];
}
};
dojo.date.isLeapYear=function(_8b3){
var year=_8b3.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_8b5){
var str=_8b5.toString();
var tz="";
var _8b8;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_8b8=str.match(pat))){
tz=_8b8[1];
}else{
str=_8b5.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_8b8=str.match(pat))){
tz=_8b8[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_8bb){
var date=_8bb.getDate();
if(date%100!=11&&date%10==1){
return "st";
}else{
if(date%100!=12&&date%10==2){
return "nd";
}else{
if(date%100!=13&&date%10==3){
return "rd";
}else{
return "th";
}
}
}
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_8bd,_8be,_8bf){
var dA=_8bd;
var dB=_8be||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_8bf||(DATE|TIME);
var d1=new Date((opt&DATE)?dA.getFullYear():now.getFullYear(),(opt&DATE)?dA.getMonth():now.getMonth(),(opt&DATE)?dA.getDate():now.getDate(),(opt&TIME)?dA.getHours():0,(opt&TIME)?dA.getMinutes():0,(opt&TIME)?dA.getSeconds():0);
var d2=new Date((opt&DATE)?dB.getFullYear():now.getFullYear(),(opt&DATE)?dB.getMonth():now.getMonth(),(opt&DATE)?dB.getDate():now.getDate(),(opt&TIME)?dB.getHours():0,(opt&TIME)?dB.getMinutes():0,(opt&TIME)?dB.getSeconds():0);
}
if(d1.valueOf()>d2.valueOf()){
return 1;
}
if(d1.valueOf()<d2.valueOf()){
return -1;
}
return 0;
};
dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6,QUARTER:7,WEEK:8,WEEKDAY:9};
dojo.date.add=function(dt,_8c7,incr){
if(typeof dt=="number"){
dt=new Date(dt);
}
function fixOvershoot(){
if(sum.getDate()<dt.getDate()){
sum.setDate(0);
}
}
var sum=new Date(dt);
with(dojo.date.dateParts){
switch(_8c7){
case YEAR:
sum.setFullYear(dt.getFullYear()+incr);
fixOvershoot();
break;
case QUARTER:
incr*=3;
case MONTH:
sum.setMonth(dt.getMonth()+incr);
fixOvershoot();
break;
case WEEK:
incr*=7;
case DAY:
sum.setDate(dt.getDate()+incr);
break;
case WEEKDAY:
var dat=dt.getDate();
var _8cb=0;
var days=0;
var strt=0;
var trgt=0;
var adj=0;
var mod=incr%5;
if(mod==0){
days=(incr>0)?5:-5;
_8cb=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_8cb=parseInt(incr/5);
}
strt=dt.getDay();
if(strt==6&&incr>0){
adj=1;
}else{
if(strt==0&&incr<0){
adj=-1;
}
}
trgt=(strt+days);
if(trgt==0||trgt==6){
adj=(incr>0)?2:-2;
}
sum.setDate(dat+(7*_8cb)+days+adj);
break;
case HOUR:
sum.setHours(sum.getHours()+incr);
break;
case MINUTE:
sum.setMinutes(sum.getMinutes()+incr);
break;
case SECOND:
sum.setSeconds(sum.getSeconds()+incr);
break;
case MILLISECOND:
sum.setMilliseconds(sum.getMilliseconds()+incr);
break;
default:
break;
}
}
return sum;
};
dojo.date.diff=function(dtA,dtB,_8d3){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _8d4=dtB.getFullYear()-dtA.getFullYear();
var _8d5=(dtB.getMonth()-dtA.getMonth())+(_8d4*12);
var _8d6=dtB.getTime()-dtA.getTime();
var _8d7=_8d6/1000;
var _8d8=_8d7/60;
var _8d9=_8d8/60;
var _8da=_8d9/24;
var _8db=_8da/7;
var _8dc=0;
with(dojo.date.dateParts){
switch(_8d3){
case YEAR:
_8dc=_8d4;
break;
case QUARTER:
var mA=dtA.getMonth();
var mB=dtB.getMonth();
var qA=Math.floor(mA/3)+1;
var qB=Math.floor(mB/3)+1;
qB+=(_8d4*4);
_8dc=qB-qA;
break;
case MONTH:
_8dc=_8d5;
break;
case WEEK:
_8dc=parseInt(_8db);
break;
case DAY:
_8dc=_8da;
break;
case WEEKDAY:
var days=Math.round(_8da);
var _8e2=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_8e2*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_8e2=parseInt(days/7);
mod=days%7;
var _8e7=new Date(dtA);
_8e7.setDate(_8e7.getDate()+(_8e2*7));
var _8e8=_8e7.getDay();
if(_8da>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_8e8+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_8da<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_8e8+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_8e2*2);
}
_8dc=days;
break;
case HOUR:
_8dc=_8d9;
break;
case MINUTE:
_8dc=_8d8;
break;
case SECOND:
_8dc=_8d7;
break;
case MILLISECOND:
_8dc=_8d6;
break;
default:
break;
}
}
return Math.round(_8dc);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_8e9){
var _8ea={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};
_8e9=dojo.hostenv.normalizeLocale(_8e9);
var _8eb=_8e9.split("-")[1];
var dow=_8ea[_8eb];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_8ed){
var _8ee={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _8ef={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
_8ed=dojo.hostenv.normalizeLocale(_8ed);
var _8f0=_8ed.split("-")[1];
var _8f1=_8ee[_8f0];
var end=_8ef[_8f0];
if(typeof _8f1=="undefined"){
_8f1=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_8f1,end:end};
};
dojo.date.isWeekend=function(_8f3,_8f4){
var _8f5=dojo.date.getWeekend(_8f4);
var day=(_8f3||new Date()).getDay();
if(_8f5.end<_8f5.start){
_8f5.end+=7;
if(day<_8f5.start){
day+=7;
}
}
return day>=_8f5.start&&day<=_8f5.end;
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_8f7,_8f8,_8f9){
dojo.hostenv.preloadLocalizations();
_8f9=dojo.hostenv.normalizeLocale(_8f9);
var _8fa=_8f9.split("-");
var _8fb=[_8f7,"nls",_8f8].join(".");
var _8fc=dojo.hostenv.findModule(_8fb,true);
var _8fd;
for(var i=_8fa.length;i>0;i--){
var loc=_8fa.slice(0,i).join("_");
if(_8fc[loc]){
_8fd=_8fc[loc];
break;
}
}
if(!_8fd){
_8fd=_8fc.ROOT;
}
if(_8fd){
var _900=function(){
};
_900.prototype=_8fd;
return new _900();
}
dojo.raise("Bundle not found: "+_8f8+" in "+_8f7+" , locale="+_8f9);
};
dojo.i18n.isLeftToRight=function(_901){
var lang=dojo.hostenv.normalizeLocale(_901).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_904,_905){
function formatPattern(_906,_907){
return _907.replace(/([a-z])\1*/ig,function(_908){
var s;
var c=_908.charAt(0);
var l=_908.length;
var pad;
var _90d=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_906.getFullYear()<0?1:0];
break;
case "y":
s=_906.getFullYear();
switch(l){
case 1:
break;
case 2:
s=String(s);
s=s.substr(s.length-2);
break;
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_906.getMonth()+1)/3);
switch(l){
case 1:
case 2:
pad=true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m=_906.getMonth();
var _910;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_910=_90d[l-3];
break;
}
if(_910){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_910].join("-");
s=info[prop][m];
}
break;
case "w":
var _913=0;
s=dojo.date.getWeekOfYear(_906,_913);
pad=true;
break;
case "d":
s=_906.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_906);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_906.getDay();
var _910;
switch(l){
case 1:
case 2:
if(c=="e"){
var _915=dojo.date.getFirstDayOfWeek(_905.locale);
d=(d-_915+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_910=_90d[l-3];
break;
}
if(_910){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_910].join("-");
s=info[prop][d];
}
break;
case "a":
var _916=(_906.getHours()<12)?"am":"pm";
s=info[_916];
break;
case "h":
case "H":
case "K":
case "k":
var h=_906.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_906.getMinutes();
pad=true;
break;
case "s":
s=_906.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_906.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_906);
if(s){
break;
}
l=4;
case "Z":
var _918=_906.getTimezoneOffset();
var tz=[(_918<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_918)/60),2),dojo.string.pad(Math.abs(_918)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
case "Y":
case "u":
case "W":
case "F":
case "g":
case "A":
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_907);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_905=_905||{};
var _91a=dojo.hostenv.normalizeLocale(_905.locale);
var _91b=_905.formatLength||"full";
var info=dojo.date._getGregorianBundle(_91a);
var str=[];
var _91d=dojo.lang.curry(this,formatPattern,_904);
if(_905.selector=="yearOnly"){
var year=_904.getFullYear();
if(_91a.match(/^zh|^ja/)){
year+="\u5e74";
}
return year;
}
if(_905.selector!="timeOnly"){
var _91f=_905.datePattern||info["dateFormat-"+_91b];
if(_91f){
str.push(_processPattern(_91f,_91d));
}
}
if(_905.selector!="dateOnly"){
var _920=_905.timePattern||info["timeFormat-"+_91b];
if(_920){
str.push(_processPattern(_920,_91d));
}
}
var _921=str.join(" ");
return _921;
};
dojo.date.parse=function(_922,_923){
_923=_923||{};
var _924=dojo.hostenv.normalizeLocale(_923.locale);
var info=dojo.date._getGregorianBundle(_924);
var _926=_923.formatLength||"full";
if(!_923.selector){
_923.selector="dateOnly";
}
var _927=_923.datePattern||info["dateFormat-"+_926];
var _928=_923.timePattern||info["timeFormat-"+_926];
var _929;
if(_923.selector=="dateOnly"){
_929=_927;
}else{
if(_923.selector=="timeOnly"){
_929=_928;
}else{
if(_923.selector=="dateTime"){
_929=_927+" "+_928;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_923.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_929=_927;
}
}
}
var _92b=[];
var _92c=_processPattern(_929,dojo.lang.curry(this,_buildDateTimeRE,_92b,info,_923));
var _92d=new RegExp("^"+_92c+"$");
var _92e=_92d.exec(_922);
if(!_92e){
return null;
}
var _92f=["abbr","wide","narrow"];
var _930=new Date(1972,0);
var _931={};
for(var i=1;i<_92e.length;i++){
var grp=_92b[i-1];
var l=grp.length;
var v=_92e[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_930.setFullYear(v);
_931.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _937=year.substring(0,2)*100;
var _938=Number(year.substring(2,4));
var _939=Math.min(_938+20,99);
var num=(v<_939)?_937+v:_937-100+v;
_930.setFullYear(num);
_931.year=num;
}else{
if(_923.strict){
return null;
}
_930.setFullYear(v);
_931.year=v;
}
}
break;
case "M":
if(l>2){
if(!_923.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _93b=info["months-format-"+_92f[l-3]].concat();
for(var j=0;j<_93b.length;j++){
if(!_923.strict){
_93b[j]=_93b[j].toLowerCase();
}
if(v==_93b[j]){
_930.setMonth(j);
_931.month=j;
break;
}
}
if(j==_93b.length){
return null;
}
}else{
_930.setMonth(v-1);
_931.month=v-1;
}
break;
case "E":
case "e":
if(!_923.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_92f[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_923.strict){
days[j]=days[j].toLowerCase();
}
if(v==days[j]){
break;
}
}
if(j==days.length){
return null;
}
break;
case "d":
_930.setDate(v);
_931.date=v;
break;
case "D":
dojo.date.setDayOfYear(_930,v);
break;
case "w":
var _93e=0;
dojo.date.setWeekOfYear(_930,v,_93e);
break;
case "a":
var am=_923.am||info.am;
var pm=_923.pm||info.pm;
if(!_923.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_923.strict&&v!=am&&v!=pm){
return null;
}
var _941=_930.getHours();
if(v==pm&&_941<12){
_930.setHours(_941+12);
}else{
if(v==am&&_941==12){
_930.setHours(0);
}
}
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
return null;
}
_930.setHours(v);
break;
case "m":
_930.setMinutes(v);
break;
case "s":
_930.setSeconds(v);
break;
case "S":
_930.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_931.year&&_930.getFullYear()!=_931.year){
return null;
}
if(_931.month&&_930.getMonth()!=_931.month){
return null;
}
if(_931.date&&_930.getDate()!=_931.date){
return null;
}
return _930;
};
function _processPattern(_942,_943,_944,_945){
var _946=function(x){
return x;
};
_943=_943||_946;
_944=_944||_946;
_945=_945||_946;
var _948=_942.match(/(''|[^'])+/g);
var _949=false;
for(var i=0;i<_948.length;i++){
if(!_948[i]){
_948[i]="";
}else{
_948[i]=(_949?_944:_943)(_948[i]);
_949=!_949;
}
}
return _945(_948.join(""));
}
function _buildDateTimeRE(_94b,info,_94d,_94e){
return _94e.replace(/([a-z])\1*/ig,function(_94f){
var s;
var c=_94f.charAt(0);
var l=_94f.length;
switch(c){
case "y":
s="\\d"+((l==2)?"{2,4}":"+");
break;
case "M":
s=(l>2)?"\\S+":"\\d{1,2}";
break;
case "D":
s="\\d{1,3}";
break;
case "d":
case "w":
s="\\d{1,2}";
break;
case "E":
s="\\S+";
break;
case "h":
case "H":
case "K":
case "k":
s="\\d{1,2}";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{1,3}";
break;
case "a":
var am=_94d.am||info.am||"AM";
var pm=_94d.pm||info.pm||"PM";
if(_94d.strict){
s=am+"|"+pm;
}else{
s=am;
s+=(am!=am.toLowerCase())?"|"+am.toLowerCase():"";
s+="|";
s+=(pm!=pm.toLowerCase())?pm+"|"+pm.toLowerCase():pm;
}
break;
default:
dojo.unimplemented("parse of date format, pattern="+_94e);
}
if(_94b){
_94b.push(_94f);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_955,_956,_957){
var _958=null;
function _(s,n){
return dojo.string.pad(s,n||2,_958||"0");
}
var info=dojo.date._getGregorianBundle(_957);
function $(_95c){
switch(_95c){
case "a":
return dojo.date.getDayShortName(_955,_957);
case "A":
return dojo.date.getDayName(_955,_957);
case "b":
case "h":
return dojo.date.getMonthShortName(_955,_957);
case "B":
return dojo.date.getMonthName(_955,_957);
case "c":
return dojo.date.format(_955,{locale:_957});
case "C":
return _(Math.floor(_955.getFullYear()/100));
case "d":
return _(_955.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_958==null){
_958=" ";
}
return _(_955.getDate());
case "f":
if(_958==null){
_958=" ";
}
return _(_955.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_955.getHours());
case "I":
return _(_955.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_955),3);
case "k":
if(_958==null){
_958=" ";
}
return _(_955.getHours());
case "l":
if(_958==null){
_958=" ";
}
return _(_955.getHours()%12||12);
case "m":
return _(_955.getMonth()+1);
case "M":
return _(_955.getMinutes());
case "n":
return "\n";
case "p":
return info[_955.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_955.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_955.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_955));
case "V":
return _(dojo.date.getIsoWeekOfYear(_955));
case "W":
return _(dojo.date.getWeekOfYear(_955,1));
case "w":
return String(_955.getDay());
case "x":
return dojo.date.format(_955,{selector:"dateOnly",locale:_957});
case "X":
return dojo.date.format(_955,{selector:"timeOnly",locale:_957});
case "y":
return _(_955.getFullYear()%100);
case "Y":
return String(_955.getFullYear());
case "z":
var _95d=_955.getTimezoneOffset();
return (_95d>0?"-":"+")+_(Math.floor(Math.abs(_95d)/60))+":"+_(Math.abs(_95d)%60);
case "Z":
return dojo.date.getTimezoneName(_955);
case "%":
return "%";
}
}
var _95e="";
var i=0;
var _960=0;
var _961=null;
while((_960=_956.indexOf("%",i))!=-1){
_95e+=_956.substring(i,_960++);
switch(_956.charAt(_960++)){
case "_":
_958=" ";
break;
case "-":
_958="";
break;
case "0":
_958="0";
break;
case "^":
_961="upper";
break;
case "*":
_961="lower";
break;
case "#":
_961="swap";
break;
default:
_958=null;
_960--;
break;
}
var _962=$(_956.charAt(_960++));
switch(_961){
case "upper":
_962=_962.toUpperCase();
break;
case "lower":
_962=_962.toLowerCase();
break;
case "swap":
var _963=_962.toLowerCase();
var _964="";
var j=0;
var ch="";
while(j<_962.length){
ch=_962.charAt(j);
_964+=(ch==_963.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_962=_964;
break;
default:
break;
}
_961=null;
_95e+=_962;
i=_960;
}
_95e+=_956.substring(i);
return _95e;
};
(function(){
var _967=[];
dojo.date.addCustomFormats=function(_968,_969){
_967.push({pkg:_968,name:_969});
};
dojo.date._getGregorianBundle=function(_96a){
var _96b={};
dojo.lang.forEach(_967,function(desc){
var _96d=dojo.i18n.getLocalization(desc.pkg,desc.name,_96a);
_96b=dojo.lang.mixin(_96b,_96d);
},this);
return _96b;
};
})();
dojo.date.addCustomFormats("dojo.i18n.cldr","gregorian");
dojo.date.getNames=function(item,type,use,_971){
var _972;
var _973=dojo.date._getGregorianBundle(_971);
var _974=[item,use,type];
if(use=="standAlone"){
_972=_973[_974.join("-")];
}
_974[1]="format";
return (_972||_973[_974.join("-")]).concat();
};
dojo.date.getDayName=function(_975,_976){
return dojo.date.getNames("days","wide","format",_976)[_975.getDay()];
};
dojo.date.getDayShortName=function(_977,_978){
return dojo.date.getNames("days","abbr","format",_978)[_977.getDay()];
};
dojo.date.getMonthName=function(_979,_97a){
return dojo.date.getNames("months","wide","format",_97a)[_979.getMonth()];
};
dojo.date.getMonthShortName=function(_97b,_97c){
return dojo.date.getNames("months","abbr","format",_97c)[_97b.getMonth()];
};
dojo.date.toRelativeString=function(_97d){
var now=new Date();
var diff=(now-_97d)/1000;
var end=" ago";
var _981=false;
if(diff<0){
_981=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}
if(diff<60*60){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}
if(diff<60*60*24){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}
if(diff<60*60*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _981?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_97d);
};
dojo.date.toSql=function(_982,_983){
return dojo.date.strftime(_982,"%F"+(_983?"":" %T"));
};
dojo.date.fromSql=function(_984){
var _985=_984.split(/[\- :]/g);
while(_985.length<6){
_985.push(0);
}
return new Date(_985[0],(parseInt(_985[1],10)-1),_985[2],_985[3],_985[4],_985[5]);
};
dojo.provide("dojo.validate");
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_986){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_986))||dojo.html.iframeContentDocument(_986)["__parent__"]||(_986.name&&document.frames[_986.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_988){
var doc=_988.contentDocument||((_988.contentWindow)&&(_988.contentWindow.document))||((_988.name)&&(document.frames[_988.name])&&(document.frames[_988.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.body().appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentNode){
var _98c=dojo.html.getMarginBox(this.domNode);
if(_98c.width==0||_98c.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_98c.width+"px";
this.iframe.style.height=_98c.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _98e=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_98e.width+"px";
height=_98e.height+"px";
left=_98e.left+"px";
top=_98e.top+"px";
}
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(this.iframe){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});

