/*
	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: 6824 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.global());
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[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 _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
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);
}
var _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,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(_36,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,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
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(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
var _6f=_6e?_6e.toLowerCase():dojo.locale;
if(_6f=="root"){
_6f="ROOT";
}
return _6f;
};
dojo.hostenv.searchLocalePath=function(_70,_71,_72){
_70=dojo.hostenv.normalizeLocale(_70);
var _73=_70.split("-");
var _74=[];
for(var i=_73.length;i>0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
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(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,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 _7c=djConfig.extraLocale||[];
for(var i=0;i<_7c.length;i++){
preload(_7c[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7e,_7f,_80,_81){
dojo.hostenv.preloadLocalizations();
var _82=dojo.hostenv.normalizeLocale(_80);
var _83=[_7e,"nls",_7f].join(".");
var _84="";
if(_81){
var _85=_81.split(",");
for(var i=0;i<_85.length;i++){
if(_82.indexOf(_85[i])==0){
if(_85[i].length>_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _9f=document.location.toString();
var _a0=_9f.split("?",2);
if(_a0.length>1){
var _a1=_a0[1];
var _a2=_a1.split("&");
for(var x in _a2){
var sp=_a2[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 _a6=document.getElementsByTagName("script");
var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a6.length;i++){
var src=_a6[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a7);
if(m){
var _ab=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ab+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ab;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ab;
}
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 _b3=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b3+6,_b3+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 _b5=window["document"];
var tdi=_b5["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 _b9=null;
var _ba=null;
try{
_b9=new XMLHttpRequest();
}
catch(e){
}
if(!_b9){
for(var i=0;i<3;++i){
var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b9=new ActiveXObject(_bc);
}
catch(e){
_ba=e;
}
if(_b9){
dojo.hostenv._XMLHTTP_PROGIDS=[_bc];
break;
}
}
}
if(!_b9){
return dojo.raise("XMLHTTP not available",_ba);
}
return _b9;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_be,_bf){
if(!_be){
this._blockAsync=true;
}
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1){
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
}
if(_be){
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_c0.onreadystatechange=function(){
if(_c4){
gbl.clearTimeout(_c4);
_c4=null;
}
if(_c3._blockAsync||(xhr&&xhr._blockAsync)){
_c4=gbl.setTimeout(function(){
_c0.onreadystatechange.apply(this);
},10);
}else{
if(4==_c0.readyState){
if(isDocumentOk(_c0)){
_be(_c0.responseText);
}
}
}
};
}
_c0.open("GET",uri,_be?true:false);
try{
_c0.send(null);
if(_be){
return null;
}
if(!isDocumentOk(_c0)){
var err=Error("Unable to load "+uri+" status:"+_c0.status);
err.status=_c0.status;
err.responseText=_c0.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_bf)&&(!_be)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c0.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c8){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c8);
}else{
try{
var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c9){
_c9=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c8));
_c9.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_c8+"</div>");
}
catch(e2){
window.status=_c8;
}
}
}
};
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(_cb,_cc,fp){
var _ce=_cb["on"+_cc]||function(){
};
_cb["on"+_cc]=function(){
fp.apply(_cb,arguments);
_ce.apply(_cb,arguments);
};
return true;
}
function dj_load_init(e){
var _d0=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d1=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d1();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d1);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
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(){
dojo.hostenv.unloaded();
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.evalObjPath("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;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _ee=false;
var _ef=false;
var _f0=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_ee=true;
}else{
if(typeof this["load"]=="function"){
_ef=true;
}else{
if(window.widget){
_f0=true;
}
}
}
var _f1=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_f1.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_ee)&&(!_f0)){
_f1.push("browser_debug.js");
}
var _f2=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_f2=djConfig["baseLoaderUri"];
}
for(var x=0;x<_f1.length;x++){
var _f4=_f2+"src/"+_f1[x];
if(_ee||_ef){
load(_f4);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_f4+"'></scr"+"ipt>");
}
catch(e){
var _f5=document.createElement("script");
_f5.src=_f4;
document.getElementsByTagName("head")[0].appendChild(_f5);
}
}
}
})();
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("dojo.collections.Collections");
dojo.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojo.collections.Iterator=function(arr){
var a=arr;
var _fa=0;
this.element=a[_fa]||null;
this.atEnd=function(){
return (_fa>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_fa++];
return this.element;
};
this.map=function(fn,_fc){
var s=_fc||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_fa=0;
this.element=a[_fa];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _102={};
for(var p in obj){
if(!_102[p]){
a.push(obj[p]);
}
}
var _104=0;
this.element=a[_104]||null;
this.atEnd=function(){
return (_104>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_104++];
return this.element;
};
this.map=function(fn,_106){
var s=_106||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_104=0;
this.element=a[_104];
};
};
dojo.provide("dojo.collections.Dictionary");
dojo.collections.Dictionary=function(_10a){
var _10b={};
this.count=0;
var _10c={};
this.add=function(k,v){
var b=(k in _10b);
_10b[k]=new dojo.collections.DictionaryEntry(k,v);
if(!b){
this.count++;
}
};
this.clear=function(){
_10b={};
this.count=0;
};
this.clone=function(){
return new dojo.collections.Dictionary(this);
};
this.contains=this.containsKey=function(k){
if(_10c[k]){
return false;
}
return (_10b[k]!=null);
};
this.containsValue=function(v){
var e=this.getIterator();
while(e.get()){
if(e.element.value==v){
return true;
}
}
return false;
};
this.entry=function(k){
return _10b[k];
};
this.forEach=function(fn,_115){
var a=[];
for(var p in _10b){
if(!_10c[p]){
a.push(_10b[p]);
}
}
var s=_115||dj_global;
if(Array.forEach){
Array.forEach(a,fn,s);
}else{
for(var i=0;i<a.length;i++){
fn.call(s,a[i],i,a);
}
}
};
this.getKeyList=function(){
return (this.getIterator()).map(function(_11a){
return _11a.key;
});
};
this.getValueList=function(){
return (this.getIterator()).map(function(_11b){
return _11b.value;
});
};
this.item=function(k){
if(k in _10b){
return _10b[k].valueOf();
}
return undefined;
};
this.getIterator=function(){
return new dojo.collections.DictionaryIterator(_10b);
};
this.remove=function(k){
if(k in _10b&&!_10c[k]){
delete _10b[k];
this.count--;
return true;
}
return false;
};
if(_10a){
var e=_10a.getIterator();
while(e.get()){
this.add(e.element.key,e.element.value);
}
}
};
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_11f,_120){
if(!dojo.lang.isFunction(_120)){
dojo.raise("dojo.inherits: superclass argument ["+_120+"] must be a function (subclass: ["+_11f+"']");
}
_11f.prototype=new _120();
_11f.prototype.constructor=_11f;
_11f.superclass=_120.prototype;
_11f["super"]=_120.prototype;
};
dojo.lang._mixin=function(obj,_122){
var tobj={};
for(var x in _122){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_122[x])){
obj[x]=_122[x];
}
}
if(dojo.render.html.ie&&(typeof (_122["toString"])=="function")&&(_122["toString"]!=obj["toString"])&&(_122["toString"]!=tobj["toString"])){
obj.toString=_122.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_126){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_129,_12a){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_129.prototype,arguments[i]);
}
return _129;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_12d,_12e,_12f,_130){
if(!dojo.lang.isArrayLike(_12d)&&dojo.lang.isArrayLike(_12e)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_12d;
_12d=_12e;
_12e=temp;
}
var _132=dojo.lang.isString(_12d);
if(_132){
_12d=_12d.split("");
}
if(_130){
var step=-1;
var i=_12d.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_12d.length;
}
if(_12f){
while(i!=end){
if(_12d[i]===_12e){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_12d[i]==_12e){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_136,_137,_138){
return dojo.lang.find(_136,_137,_138,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_139,_13a){
return dojo.lang.find(_139,_13a)>-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.isObject(obj)){
var tmp={};
var _149=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_149++;
break;
}
}
return _149==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_14d){
var _14e=dojo.lang.isString(arr);
if(_14e){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_14d)){
_14d=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_14d){
var _14f=obj;
obj=_14d;
_14d=_14f;
}
}
if(Array.map){
var _150=Array.map(arr,_14d,obj);
}else{
var _150=[];
for(var i=0;i<arr.length;++i){
_150.push(_14d.call(obj,arr[i]));
}
}
if(_14e){
return _150.join("");
}else{
return _150;
}
},reduce:function(arr,_153,obj,_155){
var _156=_153;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_155=_153;
_156=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_155=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_155;
_155=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_156=_155.call(ob,_156,val);
});
return _156;
},forEach:function(_15a,_15b,_15c){
if(dojo.lang.isString(_15a)){
_15a=_15a.split("");
}
if(Array.forEach){
Array.forEach(_15a,_15b,_15c);
}else{
if(!_15c){
_15c=dj_global;
}
for(var i=0,l=_15a.length;i<l;i++){
_15b.call(_15c,_15a[i],i,_15a);
}
}
},_everyOrSome:function(_15f,arr,_161,_162){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_15f?"every":"some"](arr,_161,_162);
}else{
if(!_162){
_162=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _165=_161.call(_162,arr[i],i,arr);
if(_15f&&!_165){
return false;
}else{
if((!_15f)&&(_165)){
return true;
}
}
}
return Boolean(_15f);
}
},every:function(arr,_167,_168){
return this._everyOrSome(true,arr,_167,_168);
},some:function(arr,_16a,_16b){
return this._everyOrSome(false,arr,_16a,_16b);
},filter:function(arr,_16d,_16e){
var _16f=dojo.lang.isString(arr);
if(_16f){
arr=arr.split("");
}
var _170;
if(Array.filter){
_170=Array.filter(arr,_16d,_16e);
}else{
if(!_16e){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_16e=dj_global;
}
_170=[];
for(var i=0;i<arr.length;i++){
if(_16d.call(_16e,arr[i],i,arr)){
_170.push(arr[i]);
}
}
}
if(_16f){
return _170.join("");
}else{
return _170;
}
},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(_175,_176){
var _177=[];
for(var i=_176||0;i<_175.length;i++){
_177.push(_175[i]);
}
return _177;
}});
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_17a){
var _17b=window,_17c=2;
if(!dojo.lang.isFunction(func)){
_17b=func;
func=_17a;
_17a=arguments[2];
_17c++;
}
if(dojo.lang.isString(func)){
func=_17b[func];
}
var args=[];
for(var i=_17c;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_17b,args);
},_17a);
};
dojo.lang.clearTimeout=function(_17f){
dojo.global().clearTimeout(_17f);
};
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(_188,_189,_18a){
with(dojo.parseObjPath(_188,_189,_18a)){
return dojo.evalProp(prop,obj,_18a);
}
};
dojo.lang.setObjPathValue=function(_18b,_18c,_18d,_18e){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_18e=true;
}
with(dojo.parseObjPath(_18b,_18d,_18e)){
if(obj&&(_18e||(prop in obj))){
obj[prop]=_18c;
}
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_18f,_190){
var fcn=(dojo.lang.isString(_190)?_18f[_190]:_190)||function(){
};
return function(){
return fcn.apply(_18f,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_192,_193,_194){
var nso=(_193||dojo.lang.anon);
if((_194)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_192){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_192;
return ret;
};
dojo.lang.forward=function(_198){
return function(){
return this[_198].apply(this,arguments);
};
};
dojo.lang.curry=function(_199,func){
var _19b=[];
_199=_199||dj_global;
if(dojo.lang.isString(func)){
func=_199[func];
}
for(var x=2;x<arguments.length;x++){
_19b.push(arguments[x]);
}
var _19d=(func["__preJoinArity"]||func.length)-_19b.length;
function gather(_19e,_19f,_1a0){
var _1a1=_1a0;
var _1a2=_19f.slice(0);
for(var x=0;x<_19e.length;x++){
_1a2.push(_19e[x]);
}
_1a0=_1a0-_19e.length;
if(_1a0<=0){
var res=func.apply(_199,_1a2);
_1a0=_1a1;
return res;
}else{
return function(){
return gather(arguments,_1a2,_1a0);
};
}
}
return gather([],_19b,_19d);
};
dojo.lang.curryArguments=function(_1a5,func,args,_1a8){
var _1a9=[];
var x=_1a8||0;
for(x=_1a8;x<args.length;x++){
_1a9.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_1a5,func].concat(_1a9));
};
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,_1af,_1b0){
if(!farr.length){
if(typeof _1b0=="function"){
_1b0();
}
return;
}
if((typeof _1af=="undefined")&&(typeof cb=="number")){
_1af=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1af){
_1af=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1af,_1b0);
},_1af);
};
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,_1b2){
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};
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 _1b5=dl.nameAnonFunc(args[2],ao.adviceObj,_1b2);
ao.adviceFunc=_1b5;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _1b5=dl.nameAnonFunc(args[0],ao.srcObj,_1b2);
ao.srcFunc=_1b5;
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 _1b5=dl.nameAnonFunc(args[1],dj_global,_1b2);
ao.srcFunc=_1b5;
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 _1b5=dl.nameAnonFunc(args[3],dj_global,_1b2);
ao.adviceObj=dj_global;
ao.adviceFunc=_1b5;
}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];
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _1b5=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_1b2);
ao.aroundFunc=_1b5;
}
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 _1b7={};
for(var x in ao){
_1b7[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);
}
_1b7.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_1b7));
});
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 _1bf;
if((arguments.length==1)&&(typeof a1=="object")){
_1bf=a1;
}else{
_1bf={srcObj:a1,srcFunc:a2};
}
_1bf.adviceFunc=function(){
var _1c0=[];
for(var x=0;x<arguments.length;x++){
_1c0.push(arguments[x]);
}
dojo.debug("("+_1bf.srcObj+")."+_1bf.srcFunc,":",_1c0.join(", "));
};
this.kwConnect(_1bf);
};
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._kwConnectImpl=function(_1c7,_1c8){
var fn=(_1c8)?"disconnect":"connect";
if(typeof _1c7["srcFunc"]=="function"){
_1c7.srcObj=_1c7["srcObj"]||dj_global;
var _1ca=dojo.lang.nameAnonFunc(_1c7.srcFunc,_1c7.srcObj,true);
_1c7.srcFunc=_1ca;
}
if(typeof _1c7["adviceFunc"]=="function"){
_1c7.adviceObj=_1c7["adviceObj"]||dj_global;
var _1ca=dojo.lang.nameAnonFunc(_1c7.adviceFunc,_1c7.adviceObj,true);
_1c7.adviceFunc=_1ca;
}
_1c7.srcObj=_1c7["srcObj"]||dj_global;
_1c7.adviceObj=_1c7["adviceObj"]||_1c7["targetObj"]||dj_global;
_1c7.adviceFunc=_1c7["adviceFunc"]||_1c7["targetFunc"];
return dojo.event[fn](_1c7);
};
this.kwConnect=function(_1cb){
return this._kwConnectImpl(_1cb,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(_1ce){
return this._kwConnectImpl(_1ce,true);
};
};
dojo.event.MethodInvocation=function(_1cf,obj,args){
this.jp_=_1cf;
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,_1d7){
this.object=obj||dj_global;
this.methodname=_1d7;
this.methodfunc=this.object[_1d7];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1d9){
if(!obj){
obj=dj_global;
}
if(!obj[_1d9]){
obj[_1d9]=function(){
};
if(!obj[_1d9]){
dojo.raise("Cannot set do-nothing method on that object "+_1d9);
}
}else{
if((!dojo.lang.isFunction(obj[_1d9]))&&(!dojo.lang.isAlien(obj[_1d9]))){
return null;
}
}
var _1da=_1d9+"$joinpoint";
var _1db=_1d9+"$joinpoint$method";
var _1dc=obj[_1da];
if(!_1dc){
var _1dd=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1dd=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1da,_1db,_1d9]);
}
}
var _1de=obj[_1d9].length;
obj[_1db]=obj[_1d9];
_1dc=obj[_1da]=new dojo.event.MethodJoinPoint(obj,_1db);
obj[_1d9]=function(){
var args=[];
if((_1dd)&&(!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)&&(_1dd)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _1dc.run.apply(_1dc,args);
};
obj[_1d9].__preJoinArity=_1de;
}
return _1dc;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{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 _1e4=[];
for(var x=0;x<args.length;x++){
_1e4[x]=args[x];
}
var _1e6=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1e8=marr[0]||dj_global;
var _1e9=marr[1];
if(!_1e8[_1e9]){
dojo.raise("function \""+_1e9+"\" does not exist on \""+_1e8+"\"");
}
var _1ea=marr[2]||dj_global;
var _1eb=marr[3];
var msg=marr[6];
var _1ed;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1e8[_1e9].apply(_1e8,to.args);
}};
to.args=_1e4;
var _1ef=parseInt(marr[4]);
var _1f0=((!isNaN(_1ef))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1f3=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;
_1e6(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1eb){
_1ea[_1eb].call(_1ea,to);
}else{
if((_1f0)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1e8[_1e9].call(_1e8,to);
}else{
_1e8[_1e9].apply(_1e8,args);
}
},_1ef);
}else{
if(msg){
_1e8[_1e9].call(_1e8,to);
}else{
_1e8[_1e9].apply(_1e8,args);
}
}
}
};
var _1f6=function(){
if(this.squelch){
try{
return _1e6.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _1e6.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_1f6);
}
var _1f7;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1f7=mi.proceed();
}else{
if(this.methodfunc){
_1f7=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()),_1f6);
}
return (this.methodfunc)?_1f7: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"]);
},addAdvice:function(_1fc,_1fd,_1fe,_1ff,_200,_201,once,_203,rate,_205){
var arr=this.getArr(_200);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1fc,_1fd,_1fe,_1ff,_203,rate,_205];
if(once){
if(this.hasAdvice(_1fc,_1fd,_200,arr)>=0){
return;
}
}
if(_201=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_208,_209,_20a,arr){
if(!arr){
arr=this.getArr(_20a);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _209=="object")?(new String(_209)).toString():_209;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_208)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_210,_211,_212,once){
var arr=this.getArr(_212);
var ind=this.hasAdvice(_210,_211,_212,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_210,_211,_212,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_216){
if(!this.topics[_216]){
this.topics[_216]=new this.TopicImpl(_216);
}
return this.topics[_216];
};
this.registerPublisher=function(_217,obj,_219){
var _217=this.getTopic(_217);
_217.registerPublisher(obj,_219);
};
this.subscribe=function(_21a,obj,_21c){
var _21a=this.getTopic(_21a);
_21a.subscribe(obj,_21c);
};
this.unsubscribe=function(_21d,obj,_21f){
var _21d=this.getTopic(_21d);
_21d.unsubscribe(obj,_21f);
};
this.destroy=function(_220){
this.getTopic(_220).destroy();
delete this.topics[_220];
};
this.publishApply=function(_221,args){
var _221=this.getTopic(_221);
_221.sendMessage.apply(_221,args);
};
this.publish=function(_223,_224){
var _223=this.getTopic(_223);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_223.sendMessage.apply(_223,args);
};
};
dojo.event.topic.TopicImpl=function(_227){
this.topicName=_227;
this.subscribe=function(_228,_229){
var tf=_229||_228;
var to=(!_229)?dj_global:_228;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_22c,_22d){
var tf=(!_22d)?_22c:_22d;
var to=(!_22d)?null:_22c;
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(_230){
this._getJoinPoint().squelch=_230;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_231,_232){
dojo.event.connect(_231,_232,this,"sendMessage");
};
this.sendMessage=function(_233){
};
};
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(_236){
var na;
var tna;
if(_236){
tna=_236.all||_236.getElementsByTagName("*");
na=[_236];
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 _23a={};
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 _23f=0;
this.normalizedEventName=function(_240){
switch(_240){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _240;
break;
default:
return _240.toLowerCase();
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,_244){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_244.length;x++){
node.__clobberAttrs__.push(_244[x]);
}
};
this.removeListener=function(node,_247,fp,_249){
if(!_249){
var _249=false;
}
_247=dojo.event.browser.normalizedEventName(_247);
if((_247=="onkey")||(_247=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_249);
}
_247="onkeypress";
}
if(_247.substr(0,2)=="on"){
_247=_247.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_247,fp,_249);
}
};
this.addListener=function(node,_24b,fp,_24d,_24e){
if(!node){
return;
}
if(!_24d){
var _24d=false;
}
_24b=dojo.event.browser.normalizedEventName(_24b);
if((_24b=="onkey")||(_24b=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_24d,_24e);
}
_24b="onkeypress";
}
if(_24b.substr(0,2)!="on"){
_24b="on"+_24b;
}
if(!_24e){
var _24f=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_24d){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_24f=fp;
}
if(node.addEventListener){
node.addEventListener(_24b.substr(2),_24f,_24d);
return _24f;
}else{
if(typeof node[_24b]=="function"){
var _252=node[_24b];
node[_24b]=function(e){
_252(e);
return _24f(e);
};
}else{
node[_24b]=_24f;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_24b]);
}
return _24f;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_255,_256){
if(typeof _255!="function"){
dojo.raise("listener not a function: "+_255);
}
dojo.event.browser.currentEvent.currentTarget=_256;
return _255.call(_256,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,_259){
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 _25b=evt.keyCode;
if(_25b>=65&&_25b<=90&&evt.shiftKey==false){
_25b+=32;
}
if(_25b>=1&&_25b<=26&&evt.ctrlKey){
_25b+=96;
}
evt.key=String.fromCharCode(_25b);
}
}
}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 _25b=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_25b+=32;
}
evt.key=String.fromCharCode(_25b);
}
}
}
}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=(_259?_259: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 _25d=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_25d.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_25d.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.provide("dojo.event.*");
dojo.provide("dojo.event");
dojo.deprecated("dojo.event","replaced by dojo.event.*","0.5");
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 _260=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_260.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_262,_263){
var node=_262.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_263&&node&&node.tagName&&node.tagName.toLowerCase()!=_263.toLowerCase()){
node=dojo.dom.nextElement(node,_263);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_265,_266){
var node=_265.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_266&&node&&node.tagName&&node.tagName.toLowerCase()!=_266.toLowerCase()){
node=dojo.dom.prevElement(node,_266);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_269){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_269&&_269.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_269);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_26b){
if(!node){
return null;
}
if(_26b){
_26b=_26b.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_26b&&_26b.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_26b);
}
return node;
};
dojo.dom.moveChildren=function(_26c,_26d,trim){
var _26f=0;
if(trim){
while(_26c.hasChildNodes()&&_26c.firstChild.nodeType==dojo.dom.TEXT_NODE){
_26c.removeChild(_26c.firstChild);
}
while(_26c.hasChildNodes()&&_26c.lastChild.nodeType==dojo.dom.TEXT_NODE){
_26c.removeChild(_26c.lastChild);
}
}
while(_26c.hasChildNodes()){
_26d.appendChild(_26c.firstChild);
_26f++;
}
return _26f;
};
dojo.dom.copyChildren=function(_270,_271,trim){
var _273=_270.cloneNode(true);
return this.moveChildren(_273,_271,trim);
};
dojo.dom.replaceChildren=function(node,_275){
var _276=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_276.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_275);
for(var i=0;i<_276.length;i++){
dojo.dom.destroyNode(_276[i]);
}
};
dojo.dom.removeChildren=function(node){
var _279=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _279;
};
dojo.dom.replaceNode=function(node,_27b){
return node.parentNode.replaceChild(_27b,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.evalObjPath("dojo.event.browser.clean",false)){
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,_27f,_280){
var _281=[];
var _282=(_27f&&(_27f instanceof Function||typeof _27f=="function"));
while(node){
if(!_282||_27f(node)){
_281.push(node);
}
if(_280&&_281.length>0){
return _281[0];
}
node=node.parentNode;
}
if(_280){
return null;
}
return _281;
};
dojo.dom.getAncestorsByTag=function(node,tag,_285){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_285);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_28a,_28b){
if(_28b&&node){
node=node.parentNode;
}
while(node){
if(node==_28a){
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 _28e=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _28f=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_28f.length;i++){
try{
doc=new ActiveXObject(_28f[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_28e.implementation)&&(_28e.implementation.createDocument)){
doc=_28e.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_292){
if(!_292){
_292="text/xml";
}
if(!dj_undef("DOMParser")){
var _293=new DOMParser();
return _293.parseFromString(str,_292);
}else{
if(!dj_undef("ActiveXObject")){
var _294=dojo.dom.createDocument();
if(_294){
_294.async=false;
_294.loadXML(str);
return _294;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _295=dojo.doc();
if(_295.createElement){
var tmp=_295.createElement("xml");
tmp.innerHTML=str;
if(_295.implementation&&_295.implementation.createDocument){
var _297=_295.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_297.importNode(tmp.childNodes.item(i),true);
}
return _297;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_29a){
if(_29a.firstChild){
_29a.insertBefore(node,_29a.firstChild);
}else{
_29a.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_29d){
if((_29d!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _29e=ref.parentNode;
_29e.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_2a1){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_2a1!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_2a1);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_2a5){
if((!node)||(!ref)||(!_2a5)){
return false;
}
switch(_2a5.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,_2a7,_2a8){
var _2a9=_2a7.childNodes;
if(!_2a9.length||_2a9.length==_2a8){
_2a7.appendChild(node);
return true;
}
if(_2a8==0){
return dojo.dom.prependChild(node,_2a7);
}
return dojo.dom.insertAfter(node,_2a9[_2a8-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _2ac=dojo.doc();
dojo.dom.replaceChildren(node,_2ac.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _2ad="";
if(node==null){
return _2ad;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_2ad+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_2ad+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _2ad;
}
};
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,_2b3,_2b4,_2b5){
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(_2b3,_2b4,_2b5);
}else{
var _2b6=elem.ownerDocument;
var _2b7=_2b6.createNode(2,_2b4,_2b3);
_2b7.nodeValue=_2b5;
elem.setAttributeNode(_2b7);
}
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
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 _2ba=dojo.global();
var _2bb=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_2bb.documentElement.clientWidth;
h=_2ba.innerHeight;
}else{
if(!dojo.render.html.opera&&_2ba.innerWidth){
w=_2ba.innerWidth;
h=_2ba.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_2bb,"documentElement.clientWidth")){
var w2=_2bb.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_2bb.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 _2bf=dojo.global();
var _2c0=dojo.doc();
var top=_2bf.pageYOffset||_2c0.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_2bf.pageXOffset||_2c0.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _2c5=dojo.doc();
var _2c6=dojo.byId(node);
type=type.toLowerCase();
while((_2c6)&&(_2c6.nodeName.toLowerCase()!=type)){
if(_2c6==(_2c5["body"]||_2c5["documentElement"])){
return null;
}
_2c6=_2c6.parentNode;
}
return _2c6;
};
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 _2ce={x:0,y:0};
if(e.pageX||e.pageY){
_2ce.x=e.pageX;
_2ce.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_2ce.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_2ce.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _2ce;
};
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 _2d3=dojo.doc().createElement("script");
_2d3.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_2d3);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_2d6,_2d7,args,_2d9,_2da){
dojo.deprecated("dojo.html."+_2d6,"replaced by dojo.html."+_2d7+"("+(_2d9?"node, {"+_2d9+": "+_2d9+"}":"")+")"+(_2da?"."+_2da:""),"0.5");
var _2db=[];
if(_2d9){
var _2dc={};
_2dc[_2d9]=args[1];
_2db.push(args[0]);
_2db.push(_2dc);
}else{
_2db=args;
}
var ret=dojo.html[_2d7].apply(dojo.html,args);
if(_2da){
return ret[_2da];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
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(_2df,uri){
var loc=dojo.hostenv.getModuleSymbols(_2df).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _2e4=new dojo.uri.Uri(arguments[i].toString());
var _2e5=new dojo.uri.Uri(uri.toString());
if((_2e4.path=="")&&(_2e4.scheme==null)&&(_2e4.authority==null)&&(_2e4.query==null)){
if(_2e4.fragment!=null){
_2e5.fragment=_2e4.fragment;
}
_2e4=_2e5;
}else{
if(_2e4.scheme==null){
_2e4.scheme=_2e5.scheme;
if(_2e4.authority==null){
_2e4.authority=_2e5.authority;
if(_2e4.path.charAt(0)!="/"){
var path=_2e5.path.substring(0,_2e5.path.lastIndexOf("/")+1)+_2e4.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;
}
}
}
}
_2e4.path=segs.join("/");
}
}
}
}
uri="";
if(_2e4.scheme!=null){
uri+=_2e4.scheme+":";
}
if(_2e4.authority!=null){
uri+="//"+_2e4.authority;
}
uri+=_2e4.path;
if(_2e4.query!=null){
uri+="?"+_2e4.query;
}
if(_2e4.fragment!=null){
uri+="#"+_2e4.fragment;
}
}
this.uri=uri.toString();
var _2e9="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2e9));
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){
_2e9="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2e9));
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.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,_2f0){
return (new RegExp("(^|\\s+)"+_2f0+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_2f2){
_2f2+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_2f2);
};
dojo.html.addClass=function(node,_2f4){
if(dojo.html.hasClass(node,_2f4)){
return false;
}
_2f4=(dojo.html.getClass(node)+" "+_2f4).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_2f4);
};
dojo.html.setClass=function(node,_2f6){
node=dojo.byId(node);
var cs=new String(_2f6);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_2f6);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_2f9,_2fa){
try{
if(!_2fa){
var _2fb=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_2f9+"(\\s+|$)"),"$1$2");
}else{
var _2fb=dojo.html.getClass(node).replace(_2f9,"");
}
dojo.html.setClass(node,_2fb);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_2fd,_2fe){
dojo.html.removeClass(node,_2fe);
dojo.html.addClass(node,_2fd);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_2ff,_300,_301,_302,_303){
_303=false;
var _304=dojo.doc();
_300=dojo.byId(_300)||_304;
var _305=_2ff.split(/\s+/g);
var _306=[];
if(_302!=1&&_302!=2){
_302=0;
}
var _307=new RegExp("(\\s|^)(("+_305.join(")|(")+"))(\\s|$)");
var _308=_305.join(" ").length;
var _309=[];
if(!_303&&_304.evaluate){
var _30a=".//"+(_301||"*")+"[contains(";
if(_302!=dojo.html.classMatchType.ContainsAny){
_30a+="concat(' ',@class,' '), ' "+_305.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_302==2){
_30a+=" and string-length(@class)="+_308+"]";
}else{
_30a+="]";
}
}else{
_30a+="concat(' ',@class,' '), ' "+_305.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _30b=_304.evaluate(_30a,_300,null,XPathResult.ANY_TYPE,null);
var _30c=_30b.iterateNext();
while(_30c){
try{
_309.push(_30c);
_30c=_30b.iterateNext();
}
catch(e){
break;
}
}
return _309;
}else{
if(!_301){
_301="*";
}
_309=_300.getElementsByTagName(_301);
var node,i=0;
outer:
while(node=_309[i++]){
var _30f=dojo.html.getClasses(node);
if(_30f.length==0){
continue outer;
}
var _310=0;
for(var j=0;j<_30f.length;j++){
if(_307.test(_30f[j])){
if(_302==dojo.html.classMatchType.ContainsAny){
_306.push(node);
continue outer;
}else{
_310++;
}
}else{
if(_302==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_310==_305.length){
if((_302==dojo.html.classMatchType.IsOnly)&&(_310==_30f.length)){
_306.push(node);
}else{
if(_302==dojo.html.classMatchType.ContainsAll){
_306.push(node);
}
}
}
}
return _306;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_312){
var arr=_312.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(_316){
return _316.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_318,_319){
node=dojo.byId(node);
var _318=dojo.html.toSelectorCase(_318);
var _31a=dojo.html.toCamelCase(_318);
if(!node||!node.style){
return _319;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_318);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_318);
}else{
return _319;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_31a];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_318);
}else{
return _319;
}
};
dojo.html.getStyleProperty=function(node,_31d){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_31d)]:undefined);
};
dojo.html.getStyle=function(node,_31f){
var _320=dojo.html.getStyleProperty(node,_31f);
return (_320?_320:dojo.html.getComputedStyle(node,_31f));
};
dojo.html.setStyle=function(node,_322,_323){
node=dojo.byId(node);
if(node&&node.style){
var _324=dojo.html.toCamelCase(_322);
node.style[_324]=_323;
}
};
dojo.html.setStyleText=function(_325,text){
try{
_325.style.cssText=text;
}
catch(e){
_325.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_327,_328){
if(!_328.style.cssText){
_327.setAttribute("style",_328.getAttribute("style"));
}else{
_327.style.cssText=_328.style.cssText;
}
dojo.html.addClass(_327,dojo.html.getClass(_328));
};
dojo.html.getUnitValue=function(node,_32a,_32b){
var s=dojo.html.getComputedStyle(node,_32a);
if((!s)||((s=="auto")&&(_32b))){
return {value:0,units:"px"};
}
var _32d=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_32d){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_32d[1]),units:_32d[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_32f,_330){
var _331=dojo.html.getUnitValue(node,_32f,_330);
if(isNaN(_331.value)){
return 0;
}
if((_331.value)&&(_331.units!="px")){
return NaN;
}
return _331.value;
};
dojo.html.setPositivePixelValue=function(node,_333,_334){
if(isNaN(_334)){
return false;
}
node.style[_333]=Math.max(0,_334)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_335,_336,_337){
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){
_337=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_337=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_335+" { "+_336+" }";
return dojo.html.styleSheet.insertRule(rule,_337);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_335,_336,_337);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_339){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_339){
_339=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_339);
}
}else{
if(document.styleSheets[0]){
if(!_339){
_339=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_339);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_33c,_33d){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _33e=dojo.hostenv.getText(URI,false,_33d);
if(_33e===null){
return;
}
_33e=dojo.html.fixPathsInCssText(_33e,URI);
if(_33c){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_33e)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _343=doc.getElementsByTagName("style");
for(var i=0;i<_343.length;i++){
if(_343[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _344=dojo.html.insertCssText(_33e,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_33e,"nodeRef":_344});
if(_344&&djConfig.isDebug){
_344.setAttribute("dbgHref",URI);
}
return _344;
};
dojo.html.insertCssText=function(_345,doc,URI){
if(!_345){
return;
}
if(!doc){
doc=document;
}
if(URI){
_345=dojo.html.fixPathsInCssText(_345,URI);
}
var _348=doc.createElement("style");
_348.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(_348);
}
if(_348.styleSheet){
var _34a=function(){
try{
_348.styleSheet.cssText=_345;
}
catch(e){
dojo.debug(e);
}
};
if(_348.styleSheet.disabled){
setTimeout(_34a,10);
}else{
_34a();
}
}else{
var _34b=doc.createTextNode(_345);
_348.appendChild(_34b);
}
return _348;
};
dojo.html.fixPathsInCssText=function(_34c,URI){
if(!_34c||!URI){
return;
}
var _34e,str="",url="",_351="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _352=new RegExp("url\\(\\s*("+_351+")\\s*\\)");
var _353=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_351+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _354=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_351+")['\"]");
while(_34e=_354.exec(_34c)){
url=_34e[2].replace(regexTrim,"$2");
if(!_353.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_34c.substring(0,_34e.index)+"AlphaImageLoader("+_34e[1]+"src='"+url+"'";
_34c=_34c.substr(_34e.index+_34e[0].length);
}
_34c=str+_34c;
str="";
}
while(_34e=_352.exec(_34c)){
url=_34e[1].replace(regexTrim,"$2");
if(!_353.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_34c.substring(0,_34e.index)+"url("+url+")";
_34c=_34c.substr(_34e.index+_34e[0].length);
}
return str+_34c;
};
dojo.html.setActiveStyleSheet=function(_355){
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")==_355){
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 _361={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 _361){
if(_361[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.*");
dojo.provide("dojo.html");
dojo.deprecated("dojo.html","replaced by dojo.html.*","0.5");
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,_369,_36a){
var out="";
for(var i=0;i<_369;i++){
out+=str;
if(_36a&&i<_369-1){
out+=_36a;
}
}
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,_379,_37a,_37b){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_379){
this.mimetype=_379;
}
if(_37a){
this.transport=_37a;
}
if(arguments.length>=4){
this.changeUrl=_37b;
}
}
};
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,_37e,_37f){
},error:function(type,_381,_382,_383){
},timeout:function(type,_385,_386,_387){
},handle:function(type,data,_38a,_38b){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_38c){
if(_38c["url"]){
_38c.url=_38c.url.toString();
}
if(_38c["formNode"]){
_38c.formNode=dojo.byId(_38c.formNode);
}
if(!_38c["method"]&&_38c["formNode"]&&_38c["formNode"].method){
_38c.method=_38c["formNode"].method;
}
if(!_38c["handle"]&&_38c["handler"]){
_38c.handle=_38c.handler;
}
if(!_38c["load"]&&_38c["loaded"]){
_38c.load=_38c.loaded;
}
if(!_38c["changeUrl"]&&_38c["changeURL"]){
_38c.changeUrl=_38c.changeURL;
}
_38c.encoding=dojo.lang.firstValued(_38c["encoding"],djConfig["bindEncoding"],"");
_38c.sendTransport=dojo.lang.firstValued(_38c["sendTransport"],djConfig["ioSendTransport"],false);
var _38d=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_38c[fn]&&_38d(_38c[fn])){
continue;
}
if(_38c["handle"]&&_38d(_38c["handle"])){
_38c[fn]=_38c.handle;
}
}
dojo.lang.mixin(this,_38c);
}});
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(_394){
if(!(_394 instanceof dojo.io.Request)){
try{
_394=new dojo.io.Request(_394);
}
catch(e){
dojo.debug(e);
}
}
var _395="";
if(_394["transport"]){
_395=_394["transport"];
if(!this[_395]){
dojo.io.sendBindError(_394,"No dojo.io.bind() transport with name '"+_394["transport"]+"'.");
return _394;
}
if(!this[_395].canHandle(_394)){
dojo.io.sendBindError(_394,"dojo.io.bind() transport with name '"+_394["transport"]+"' cannot handle this type of request.");
return _394;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_394))){
_395=tmp;
break;
}
}
if(_395==""){
dojo.io.sendBindError(_394,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _394;
}
}
this[_395].bind(_394);
_394.bindSuccess=true;
return _394;
};
dojo.io.sendBindError=function(_398,_399){
if((typeof _398.error=="function"||typeof _398.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _39a=new dojo.io.Error(_399);
setTimeout(function(){
_398[(typeof _398.error=="function")?"error":"handle"]("error",_39a,null,_398);
},50);
}else{
dojo.raise(_399);
}
};
dojo.io.queueBind=function(_39b){
if(!(_39b instanceof dojo.io.Request)){
try{
_39b=new dojo.io.Request(_39b);
}
catch(e){
dojo.debug(e);
}
}
var _39c=_39b.load;
_39b.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_39c.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _39e=_39b.error;
_39b.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_39e.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_39b);
dojo.io._dispatchNextQueueBind();
return _39b;
};
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,_3a1,last){
var enc=/utf/i.test(_3a1||"")?encodeURIComponent:dojo.string.encodeAscii;
var _3a4=[];
var _3a5=new Object();
for(var name in map){
var _3a7=function(elt){
var val=enc(name)+"="+enc(elt);
_3a4[(last==name)?"push":"unshift"](val);
};
if(!_3a5[name]){
var _3aa=map[name];
if(dojo.lang.isArray(_3aa)){
dojo.lang.forEach(_3aa,_3a7);
}else{
_3a7(_3aa);
}
}
}
return _3a4.join("&");
};
dojo.io.setIFrameSrc=function(_3ab,src,_3ad){
try{
var r=dojo.render.html;
if(!_3ad){
if(r.safari){
_3ab.location=src;
}else{
frames[_3ab.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_3ab.contentWindow.document;
}else{
if(r.safari){
idoc=_3ab.document;
}else{
idoc=_3ab.contentWindow;
}
}
if(!idoc){
_3ab.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(_3b0,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _3b0.replace(/\%\{(\w+)\}/g,function(_3b3,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 "";
}
if(arguments.length==0){
str=this;
}
var _3b6=str.split(" ");
for(var i=0;i<_3b6.length;i++){
_3b6[i]=_3b6[i].charAt(0).toUpperCase()+_3b6[i].substring(1);
}
return _3b6.join(" ");
};
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 _3bb=escape(str);
var _3bc,re=/%u([0-9A-F]{4})/i;
while((_3bc=_3bb.match(re))){
var num=Number("0x"+_3bc[1]);
var _3bf=escape("&#"+num+";");
ret+=_3bb.substring(0,_3bc.index)+_3bf;
_3bb=_3bb.substring(_3bc.index+_3bc[0].length);
}
ret+=_3bb.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,_3c4){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_3c4){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
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,_3cd){
if(_3cd){
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,_3d1,_3d2){
if(_3d2){
str=str.toLowerCase();
_3d1=_3d1.toLowerCase();
}
return str.indexOf(_3d1)==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,_3d8){
if(_3d8=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_3d8=="\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,_3da){
var _3db=[];
for(var i=0,_3dd=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_3da){
_3db.push(str.substring(_3dd,i));
_3dd=i+1;
}
}
_3db.push(str.substr(_3dd));
return _3db;
};
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='"+(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){
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 _3e2=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_3e4){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_3e2.apply(this,[_3e4]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _3e5=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_3e7){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_3e5){
_3e5.apply(this,[_3e7]);
}
};
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,_3ea){
if(!dojo.render.html.opera){
var _3eb=this._getUrlQuery(_3ea.href);
if(_3eb==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_3eb==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_3eb==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _3ec=this.historyStack.pop();
if(!_3ec){
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(_3ec);
},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 _3f3=url.split("?");
if(_3f3.length<2){
return null;
}else{
return _3f3[1];
}
},_loadIframeHistory:function(){
var url=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 _3f6=false;
var _3f7=node.getElementsByTagName("input");
dojo.lang.forEach(_3f7,function(_3f8){
if(_3f6){
return;
}
if(_3f8.getAttribute("type")=="file"){
_3f6=true;
}
});
return _3f6;
};
dojo.io.formHasFile=function(_3f9){
return dojo.io.checkChildrenForFile(_3f9);
};
dojo.io.updateNode=function(node,_3fb){
node=dojo.byId(node);
var args=_3fb;
if(dojo.lang.isString(_3fb)){
args={url:_3fb};
}
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(_402,_403,_404){
if((!_402)||(!_402.tagName)||(!_402.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_404){
_404=dojo.io.formFilter;
}
var enc=/utf/i.test(_403||"")?encodeURIComponent:dojo.string.encodeAscii;
var _406=[];
for(var i=0;i<_402.elements.length;i++){
var elm=_402.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_404(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){
_406.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_406.push(name+"="+enc(elm.value));
}
}else{
_406.push(name+"="+enc(elm.value));
}
}
}
var _40c=_402.getElementsByTagName("input");
for(var i=0;i<_40c.length;i++){
var _40d=_40c[i];
if(_40d.type.toLowerCase()=="image"&&_40d.form==_402&&_404(_40d)){
var name=enc(_40d.name);
_406.push(name+"="+enc(_40d.value));
_406.push(name+".x=0");
_406.push(name+".y=0");
}
}
return _406.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 _413=form.getElementsByTagName("input");
for(var i=0;i<_413.length;i++){
var _414=_413[i];
if(_414.type.toLowerCase()=="image"&&_414.form==form){
this.connect(_414,"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 _41b=false;
if(node.disabled||!node.name){
_41b=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_41b=node==this.clickedButton;
}else{
_41b=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _41b;
},connect:function(_41c,_41d,_41e){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_41c,_41d,this,_41e);
}else{
var fcn=dojo.lang.hitch(this,_41e);
_41c[_41d]=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 _421=this;
var _422={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_424,_425){
return url+"|"+_424+"|"+_425.toLowerCase();
}
function addToCache(url,_427,_428,http){
_422[getCacheKey(url,_427,_428)]=http;
}
function getFromCache(url,_42b,_42c){
return _422[getCacheKey(url,_42b,_42c)];
}
this.clearCache=function(){
_422={};
};
function doLoad(_42d,http,url,_430,_431){
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(_42d.method.toLowerCase()=="head"){
var _433=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _433;
};
var _434=_433.split(/[\r\n]+/g);
for(var i=0;i<_434.length;i++){
var pair=_434[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_42d.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_42d.mimetype=="text/json"||_42d.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_42d.mimetype=="application/xml")||(_42d.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(_431){
addToCache(url,_430,_42d.method,http);
}
_42d[(typeof _42d.load=="function")?"load":"handle"]("load",ret,http,_42d);
}else{
var _437=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_42d[(typeof _42d.error=="function")?"error":"handle"]("error",_437,http,_42d);
}
}
function setHeaders(http,_439){
if(_439["headers"]){
for(var _43a in _439["headers"]){
if(_43a.toLowerCase()=="content-type"&&!_439["contentType"]){
_439["contentType"]=_439["headers"][_43a];
}else{
http.setRequestHeader(_43a,_439["headers"][_43a]);
}
}
}
}
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&&!_421._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 _43e=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_43e,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 _43f=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_440){
return _43f&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_440["mimetype"].toLowerCase()||""))&&!(_440["formNode"]&&dojo.io.formHasFile(_440["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_441){
if(!_441["url"]){
if(!_441["formNode"]&&(_441["backButton"]||_441["back"]||_441["changeUrl"]||_441["watchForURL"])&&(!djConfig.preventBackButtonFix)){
dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");
dojo.undo.browser.addToHistory(_441);
return true;
}
}
var url=_441.url;
var _443="";
if(_441["formNode"]){
var ta=_441.formNode.getAttribute("action");
if((ta)&&(!_441["url"])){
url=ta;
}
var tp=_441.formNode.getAttribute("method");
if((tp)&&(!_441["method"])){
_441.method=tp;
}
_443+=dojo.io.encodeForm(_441.formNode,_441.encoding,_441["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_441["file"]){
_441.method="post";
}
if(!_441["method"]){
_441.method="get";
}
if(_441.method.toLowerCase()=="get"){
_441.multipart=false;
}else{
if(_441["file"]){
_441.multipart=true;
}else{
if(!_441["multipart"]){
_441.multipart=false;
}
}
}
if(_441["backButton"]||_441["back"]||_441["changeUrl"]){
dojo.undo.browser.addToHistory(_441);
}
var _446=_441["content"]||{};
if(_441.sendTransport){
_446["dojo.transport"]="xmlhttp";
}
do{
if(_441.postContent){
_443=_441.postContent;
break;
}
if(_446){
_443+=dojo.io.argsFromMap(_446,_441.encoding);
}
if(_441.method.toLowerCase()=="get"||!_441.multipart){
break;
}
var t=[];
if(_443.length){
var q=_443.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(_441.file){
if(dojo.lang.isArray(_441.file)){
for(var i=0;i<_441.file.length;++i){
var o=_441.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=_441.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+"--","");
_443=t.join("\r\n");
}
}while(false);
var _44c=_441["sync"]?false:true;
var _44d=_441["preventCache"]||(this.preventCache==true&&_441["preventCache"]!=false);
var _44e=_441["useCache"]==true||(this.useCache==true&&_441["useCache"]!=false);
if(!_44d&&_44e){
var _44f=getFromCache(url,_443,_441.method);
if(_44f){
doLoad(_441,_44f,url,_443,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_441);
var _451=false;
if(_44c){
var _452=this.inFlight.push({"req":_441,"http":http,"url":url,"query":_443,"useCache":_44e,"startTime":_441.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_421._blockAsync=true;
}
if(_441.method.toLowerCase()=="post"){
if(!_441.user){
http.open("POST",url,_44c);
}else{
http.open("POST",url,_44c,_441.user,_441.password);
}
setHeaders(http,_441);
http.setRequestHeader("Content-Type",_441.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_441.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_443);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_441,{status:404},url,_443,_44e);
}
}else{
var _453=url;
if(_443!=""){
_453+=(_453.indexOf("?")>-1?"&":"?")+_443;
}
if(_44d){
_453+=(dojo.string.endsWithAny(_453,"?","&")?"":(_453.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_441.user){
http.open(_441.method.toUpperCase(),_453,_44c);
}else{
http.open(_441.method.toUpperCase(),_453,_44c,_441.user,_441.password);
}
setHeaders(http,_441);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_441,{status:404},url,_443,_44e);
}
}
if(!_44c){
doLoad(_441,http,url,_443,_44e);
_421._blockAsync=false;
}
_441.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,_455,days,path,_458,_459){
var _45a=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_45a=d.toGMTString();
}
_455=escape(_455);
document.cookie=name+"="+_455+";"+(_45a!=-1?" expires="+_45a+";":"")+(path?"path="+path:"")+(_458?"; domain="+_458:"")+(_459?"; 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 _45e=document.cookie.substring(idx+name.length+1);
var end=_45e.indexOf(";");
if(end==-1){
end=_45e.length;
}
_45e=_45e.substring(0,end);
_45e=unescape(_45e);
return _45e;
};
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,_465,_466,_467){
if(arguments.length==5){
_467=_465;
_465=null;
_466=null;
}
var _468=[],_469,_46a="";
if(!_467){
_469=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_469){
_469={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _469[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_469[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _469){
_468.push(escape(prop)+"="+escape(_469[prop]));
}
_46a=_468.join("&");
}
dojo.io.cookie.setCookie(name,_46a,days,path,_465,_466);
};
dojo.io.cookie.getObjectCookie=function(name){
var _46d=null,_46e=dojo.io.cookie.getCookie(name);
if(_46e){
_46d={};
var _46f=_46e.split("&");
for(var i=0;i<_46f.length;i++){
var pair=_46f[i].split("=");
var _472=pair[1];
if(isNaN(_472)){
_472=unescape(pair[1]);
}
_46d[unescape(pair[0])]=_472;
}
}
return _46d;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _473=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_473=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
dojo.provide("dojo.io");
dojo.deprecated("dojo.io","replaced by dojo.io.*","0.5");
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_474){
this.pairs=[];
this.returnWrappers=_474||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_476,wrap,_478,_479){
var type=(_479)?"unshift":"push";
this.pairs[type]([name,_476,wrap,_478]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_481,wrap,_483){
dojo.json.jsonRegistry.register(name,_481,wrap,_483);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _486=typeof (o);
if(_486=="undefined"){
return "undefined";
}else{
if((_486=="number")||(_486=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_486=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _488;
if(typeof (o.__json__)=="function"){
_488=o.__json__();
if(o!==_488){
return me(_488);
}
}
if(typeof (o.json)=="function"){
_488=o.json();
if(o!==_488){
return me(_488);
}
}
if(_486!="function"&&typeof (o.length)=="number"){
var res=[];
for(var i=0;i<o.length;i++){
var val=me(o[i]);
if(typeof (val)!="string"){
val="undefined";
}
res.push(val);
}
return "["+res.join(",")+"]";
}
try{
window.o=o;
_488=dojo.json.jsonRegistry.match(o);
return me(_488);
}
catch(e){
}
if(_486=="function"){
return null;
}
res=[];
for(var k in o){
var _48d;
if(typeof (k)=="number"){
_48d="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_48d=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_48d+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.lang");
dojo.deprecated("dojo.lang","replaced by dojo.lang.common","0.5");
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_48e,_48f,init,_491){
if((dojo.lang.isFunction(_491))||((!_491)&&(!dojo.lang.isFunction(init)))){
var temp=_491;
_491=init;
init=temp;
}
var _493=[];
if(dojo.lang.isArray(_48f)){
_493=_48f;
_48f=_493.shift();
}
if(!init){
init=dojo.evalObjPath(_48e,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_48f?_48f.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _48f();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_493;
for(var i=0,l=_493.length;i<l;i++){
dojo.lang.extend(ctor,_493[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_48e;
if(dojo.lang.isArray(_491)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_491));
}else{
dojo.lang.extend(ctor,(_491)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _498=dojo.parseObjPath(_48e,null,true);
_498.obj[_498.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(_49e,_49f,args){
var _4a1,_4a2=this.___proto;
this.___proto=_49e;
try{
_4a1=_49e[_49f].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_4a2;
}
return _4a1;
},_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]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
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(_4ae){
if(_4ae){
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(_4af,_4b0){
var rgb=null;
if(dojo.lang.isArray(_4af)){
rgb=_4af;
}else{
if(_4af instanceof dojo.gfx.color.Color){
rgb=_4af.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_4af).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_4b0);
}});
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,_4b4){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_4b4);
}
if(!_4b4){
_4b4=0;
}
_4b4=Math.min(Math.max(-1,_4b4),1);
_4b4=((_4b4+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_4b4));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_4b9){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_4b9));
};
dojo.gfx.color.extractRGB=function(_4ba){
var hex="0123456789abcdef";
_4ba=_4ba.toLowerCase();
if(_4ba.indexOf("rgb")==0){
var _4bc=_4ba.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_4bc.splice(1,3);
return ret;
}else{
var _4be=dojo.gfx.color.hex2rgb(_4ba);
if(_4be){
return _4be;
}else{
return dojo.gfx.color.named[_4ba]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _4c0="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_4c0+"]","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]=_4c0.indexOf(rgb[i].charAt(0))*16+_4c0.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(_4c9,end){
this.start=_4c9;
this.end=end;
if(dojo.lang.isArray(_4c9)){
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-_4c9;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
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:25,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,_4d8,_4d9){
if(!_4d9){
_4d9=_4d8;
_4d8=this;
}
_4d9=dojo.lang.hitch(_4d8,_4d9);
var _4da=this[evt]||function(){
};
this[evt]=function(){
var ret=_4da.apply(this,arguments);
_4d9.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_4de){
this.repeatCount=_4de;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_4df,_4e0,_4e1,_4e2,_4e3,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_4df)||(!_4df&&_4e0.getValue)){
rate=_4e3;
_4e3=_4e2;
_4e2=_4e1;
_4e1=_4e0;
_4e0=_4df;
_4df=null;
}else{
if(_4df.getValue||dojo.lang.isArray(_4df)){
rate=_4e2;
_4e3=_4e1;
_4e2=_4e0;
_4e1=_4df;
_4e0=null;
_4df=null;
}
}
if(dojo.lang.isArray(_4e1)){
this.curve=new dojo.lfx.Line(_4e1[0],_4e1[1]);
}else{
this.curve=_4e1;
}
if(_4e0!=null&&_4e0>0){
this.duration=_4e0;
}
if(_4e3){
this.repeatCount=_4e3;
}
if(rate){
this.rate=rate;
}
if(_4df){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_4df[item]){
this.connect(item,_4df[item]);
}
},this);
}
if(_4e2&&dojo.lang.isFunction(_4e2)){
this.easing=_4e2;
}
};
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(_4e6,_4e7){
if(_4e7){
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(_4e6>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_4e7);
}),_4e6);
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 _4e9=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_4e9]);
this.fire("onBegin",[_4e9]);
}
this.fire("handler",["play",_4e9]);
this.fire("onPlay",[_4e9]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _4ea=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_4ea]);
this.fire("onPause",[_4ea]);
return this;
},gotoPercent:function(pct,_4ec){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_4ec){
this.play();
}
return this;
},stop:function(_4ed){
clearTimeout(this._timer);
var step=this._percent/100;
if(_4ed){
step=1;
}
var _4ef=this.curve.getValue(step);
this.fire("handler",["stop",_4ef]);
this.fire("onStop",[_4ef]);
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 _4f2=this.curve.getValue(step);
this.fire("handler",["animate",_4f2]);
this.fire("onAnimate",[_4f2]);
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(_4f3){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _4f4=arguments;
if(_4f4.length==1&&(dojo.lang.isArray(_4f4[0])||dojo.lang.isArrayLike(_4f4[0]))){
_4f4=_4f4[0];
}
dojo.lang.forEach(_4f4,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(_4f6,_4f7){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_4f6>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_4f7);
}),_4f6);
return this;
}
if(_4f7||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_4f7);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_4f8){
this.fire("onStop");
this._animsCall("stop",_4f8);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_4f9){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _4fc=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_4f9](args);
},_4fc);
return this;
}});
dojo.lfx.Chain=function(_4fe){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _4ff=arguments;
if(_4ff.length==1&&(dojo.lang.isArray(_4ff[0])||dojo.lang.isArrayLike(_4ff[0]))){
_4ff=_4ff[0];
}
var _500=this;
dojo.lang.forEach(_4ff,function(anim,i,_503){
this._anims.push(anim);
if(i<_503.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(_504,_505){
if(!this._anims.length){
return this;
}
if(_505||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _506=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_504>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_505);
}),_504);
return this;
}
if(_506){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_506.play(null,_505);
}
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 _507=this._anims[this._currAnim];
if(_507){
if(!_507._active||_507._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _508=this._anims[this._currAnim];
if(_508){
_508.stop();
this.fire("onStop",[this._currAnim]);
}
return _508;
},_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(_509){
var _50a=arguments;
if(dojo.lang.isArray(arguments[0])){
_50a=arguments[0];
}
if(_50a.length==1){
return _50a[0];
}
return new dojo.lfx.Combine(_50a);
};
dojo.lfx.chain=function(_50b){
var _50c=arguments;
if(dojo.lang.isArray(arguments[0])){
_50c=arguments[0];
}
if(_50c.length==1){
return _50c[0];
}
return new dojo.lfx.Chain(_50c);
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_50e,_50f){
node=dojo.byId(node);
_50f(node,!_50e(node));
return _50e(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_514){
dojo.html[(_514?"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,_51a){
dojo.html.setStyle(node,"display",((_51a instanceof String||typeof _51a=="string")?_51a:(_51a?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,_51e){
dojo.html.setStyle(node,"visibility",((_51e instanceof String||typeof _51e=="string")?_51e:(_51e?"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,_522,_523){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_523){
if(_522>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_522=0.999999;
}
}else{
if(_522<0){
_522=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="+_522*100+")";
}
}
node.style.filter="Alpha(Opacity="+_522*100+")";
}else{
if(h.moz){
node.style.opacity=_522;
node.style.MozOpacity=_522;
}else{
if(h.safari){
node.style.opacity=_522;
node.style.KhtmlOpacity=_522;
}else{
node.style.opacity=_522;
}
}
}
};
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.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _52e;
do{
_52e=dojo.html.getStyle(node,"background-color");
if(_52e.toLowerCase()=="rgba(0, 0, 0, 0)"){
_52e="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_52e));
if(_52e=="transparent"){
_52e=[255,255,255,0];
}else{
_52e=dojo.gfx.color.extractRGB(_52e);
}
return _52e;
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _531=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_531+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _531;
};
dojo.html.setStyleAttributes=function(node,_534){
node=dojo.byId(node);
var _535=_534.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_535.length;i++){
var _537=_535[i].split(":");
var name=_537[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _539=_537[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_539);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_539});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_539});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_539});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_539});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_539;
}
}
};
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,_53b,_53c){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_53c){
_53c=bs.CONTENT_BOX;
}
var _53f=2;
var _540;
switch(_53c){
case bs.MARGIN_BOX:
_540=3;
break;
case bs.BORDER_BOX:
_540=2;
break;
case bs.PADDING_BOX:
default:
_540=1;
break;
case bs.CONTENT_BOX:
_540=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_53f=1;
try{
var bo=document.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 _544;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_544=db;
}else{
_544=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 _546=node;
do{
var n=_546["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_546["offsetTop"];
ret.y+=isNaN(m)?0:m;
_546=_546.offsetParent;
}while((_546!=_544)&&(_546!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_53b){
var _549=dojo.html.getScroll();
ret.y+=_549.top;
ret.x+=_549.left;
}
var _54a=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_53f>_540){
for(var i=_540;i<_53f;++i){
ret.y+=_54a[i](node,"top");
ret.x+=_54a[i](node,"left");
}
}else{
if(_53f<_540){
for(var i=_540;i>_53f;--i){
ret.y-=_54a[i-1](node,"top");
ret.x-=_54a[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._sumPixelValues=function(node,_54e,_54f){
var _550=0;
for(var x=0;x<_54e.length;x++){
_550+=dojo.html.getPixelValue(node,_54e[x],_54f);
}
return _550;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
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._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _55d=dojo.html.getBorder(node);
return {width:pad.width+_55d.width,height:pad.height+_55d.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 _562=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_562){
_562=dojo.html.getStyle(node,"box-sizing");
}
return (_562?_562: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 _567=dojo.html.getBorder(node);
return {width:box.width-_567.width,height:box.height-_567.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _569=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_569.width,height:node.offsetHeight-_569.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _56c=0;
var _56d=0;
var isbb=dojo.html.isBorderBox(node);
var _56f=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_56c=args.width+_56f.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_56c);
}
if(typeof args.height!="undefined"){
_56d=args.height+_56f.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_56d);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _572=dojo.html.getBorderBox(node);
var _573=dojo.html.getMargin(node);
return {width:_572.width+_573.width,height:_572.height+_573.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _576=0;
var _577=0;
var isbb=dojo.html.isBorderBox(node);
var _579=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _57a=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_576=args.width-_579.width;
_576-=_57a.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_576);
}
if(typeof args.height!="undefined"){
_577=args.height-_579.height;
_577-=_57a.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_577);
}
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(_57f,_580,_581){
if(_57f instanceof Array||typeof _57f=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_57f.length<4){
_57f.push(0);
}
while(_57f.length>4){
_57f.pop();
}
var ret={left:_57f[0],top:_57f[1],width:_57f[2],height:_57f[3]};
}else{
if(!_57f.nodeType&&!(_57f instanceof String||typeof _57f=="string")&&("width" in _57f||"height" in _57f||"left" in _57f||"x" in _57f||"top" in _57f||"y" in _57f)){
var ret={left:_57f.left||_57f.x||0,top:_57f.top||_57f.y||0,width:_57f.width||0,height:_57f.height||0};
}else{
var node=dojo.byId(_57f);
var pos=dojo.html.abs(node,_580,_581);
var _585=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_585.width,height:_585.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_587){
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,_58a){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_58c){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_58e){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_590){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_592){
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,_59c){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_59e){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_59f){
if(!_59f){
return [];
}
if(dojo.lang.isArrayLike(_59f)){
if(!_59f.alreadyChecked){
var n=[];
dojo.lang.forEach(_59f,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _59f;
}
}else{
var n=[];
n.push(dojo.byId(_59f));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_5a2,_5a3,_5a4,_5a5,_5a6){
_5a2=dojo.lfx.html._byId(_5a2);
var _5a7={"propertyMap":_5a3,"nodes":_5a2,"duration":_5a4,"easing":_5a5||dojo.lfx.easeDefault};
var _5a8=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _5ac in pm){
pm[_5ac].property=_5ac;
parr.push(pm[_5ac]);
}
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 _5ae=function(_5af){
var _5b0=[];
dojo.lang.forEach(_5af,function(c){
_5b0.push(Math.round(c));
});
return _5b0;
};
var _5b2=function(n,_5b4){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _5b4){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_5b4[s]);
}else{
n.style[s]=_5b4[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _5b6=function(_5b7){
this._properties=_5b7;
this.diffs=new Array(_5b7.length);
dojo.lang.forEach(_5b7,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 _5be=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_5be=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_5be+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_5be+=")";
}else{
_5be=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_5be;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_5a8(_5a7);
anim.curve=new _5b6(_5a7.propertyMap);
},onAnimate:function(_5c1){
dojo.lang.forEach(_5a7.nodes,function(node){
_5b2(node,_5c1);
});
}},_5a7.duration,null,_5a7.easing);
if(_5a6){
for(var x in _5a6){
if(dojo.lang.isFunction(_5a6[x])){
anim.connect(x,anim,_5a6[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_5c4){
var _5c5=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(_5c4)){
dojo.lang.forEach(_5c4,_5c5);
}else{
_5c5(_5c4);
}
};
dojo.lfx.html.fade=function(_5c7,_5c8,_5c9,_5ca,_5cb){
_5c7=dojo.lfx.html._byId(_5c7);
var _5cc={property:"opacity"};
if(!dj_undef("start",_5c8)){
_5cc.start=_5c8.start;
}else{
_5cc.start=function(){
return dojo.html.getOpacity(_5c7[0]);
};
}
if(!dj_undef("end",_5c8)){
_5cc.end=_5c8.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_5c7,[_5cc],_5c9,_5ca);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_5c7);
});
if(_5cb){
anim.connect("onEnd",function(){
_5cb(_5c7,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_5ce,_5cf,_5d0,_5d1){
return dojo.lfx.html.fade(_5ce,{end:1},_5cf,_5d0,_5d1);
};
dojo.lfx.html.fadeOut=function(_5d2,_5d3,_5d4,_5d5){
return dojo.lfx.html.fade(_5d2,{end:0},_5d3,_5d4,_5d5);
};
dojo.lfx.html.fadeShow=function(_5d6,_5d7,_5d8,_5d9){
_5d6=dojo.lfx.html._byId(_5d6);
dojo.lang.forEach(_5d6,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_5d6,_5d7,_5d8,_5d9);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_5d6)){
dojo.lang.forEach(_5d6,dojo.html.show);
}else{
dojo.html.show(_5d6);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_5dc,_5dd,_5de,_5df){
var anim=dojo.lfx.html.fadeOut(_5dc,_5dd,_5de,function(){
if(dojo.lang.isArrayLike(_5dc)){
dojo.lang.forEach(_5dc,dojo.html.hide);
}else{
dojo.html.hide(_5dc);
}
if(_5df){
_5df(_5dc,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_5e1,_5e2,_5e3,_5e4){
_5e1=dojo.lfx.html._byId(_5e1);
var _5e5=[];
dojo.lang.forEach(_5e1,function(node){
var _5e7={};
var _5e8,_5e9,_5ea;
with(node.style){
_5e8=top;
_5e9=left;
_5ea=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _5eb=dojo.html.getBorderBox(node).height;
with(node.style){
top=_5e8;
left=_5e9;
position=_5ea;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _5eb;
}}},_5e2,_5e3);
anim.connect("beforeBegin",function(){
_5e7.overflow=node.style.overflow;
_5e7.height=node.style.height;
with(node.style){
overflow="hidden";
_5eb="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_5e7.overflow;
_5eb=_5e7.height;
}
if(_5e4){
_5e4(node,anim);
}
});
_5e5.push(anim);
});
return dojo.lfx.combine(_5e5);
};
dojo.lfx.html.wipeOut=function(_5ed,_5ee,_5ef,_5f0){
_5ed=dojo.lfx.html._byId(_5ed);
var _5f1=[];
dojo.lang.forEach(_5ed,function(node){
var _5f3={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_5ee,_5ef,{"beforeBegin":function(){
_5f3.overflow=node.style.overflow;
_5f3.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_5f3.overflow;
height=_5f3.height;
}
if(_5f0){
_5f0(node,anim);
}
}});
_5f1.push(anim);
});
return dojo.lfx.combine(_5f1);
};
dojo.lfx.html.slideTo=function(_5f5,_5f6,_5f7,_5f8,_5f9){
_5f5=dojo.lfx.html._byId(_5f5);
var _5fa=[];
var _5fb=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_5f6)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_5f6={top:_5f6[0],left:_5f6[1]};
}
dojo.lang.forEach(_5f5,function(node){
var top=null;
var left=null;
var init=(function(){
var _600=node;
return function(){
var pos=_5fb(_600,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_5fb(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_5fb(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_600,true);
dojo.html.setStyleAttributes(_600,"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:(_5f6.top||0)},"left":{start:left,end:(_5f6.left||0)}},_5f7,_5f8,{"beforeBegin":init});
if(_5f9){
anim.connect("onEnd",function(){
_5f9(_5f5,anim);
});
}
_5fa.push(anim);
});
return dojo.lfx.combine(_5fa);
};
dojo.lfx.html.slideBy=function(_604,_605,_606,_607,_608){
_604=dojo.lfx.html._byId(_604);
var _609=[];
var _60a=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_605)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_605={top:_605[0],left:_605[1]};
}
dojo.lang.forEach(_604,function(node){
var top=null;
var left=null;
var init=(function(){
var _60f=node;
return function(){
var pos=_60a(_60f,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_60a(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_60a(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_60f,true);
dojo.html.setStyleAttributes(_60f,"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+(_605.top||0)},"left":{start:left,end:left+(_605.left||0)}},_606,_607).connect("beforeBegin",init);
if(_608){
anim.connect("onEnd",function(){
_608(_604,anim);
});
}
_609.push(anim);
});
return dojo.lfx.combine(_609);
};
dojo.lfx.html.explode=function(_613,_614,_615,_616,_617){
var h=dojo.html;
_613=dojo.byId(_613);
_614=dojo.byId(_614);
var _619=h.toCoordinateObject(_613,true);
var _61a=document.createElement("div");
h.copyStyle(_61a,_614);
if(_614.explodeClassName){
_61a.className=_614.explodeClassName;
}
with(_61a.style){
position="absolute";
display="none";
var _61b=h.getStyle(_613,"background-color");
backgroundColor=_61b?_61b.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_61a);
with(_614.style){
visibility="hidden";
display="block";
}
var _61c=h.toCoordinateObject(_614,true);
with(_614.style){
display="none";
visibility="visible";
}
var _61d={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_61d[type]={start:_619[type],end:_61c[type]};
});
var anim=new dojo.lfx.propertyAnimation(_61a,_61d,_615,_616,{"beforeBegin":function(){
h.setDisplay(_61a,"block");
},"onEnd":function(){
h.setDisplay(_614,"block");
_61a.parentNode.removeChild(_61a);
}});
if(_617){
anim.connect("onEnd",function(){
_617(_614,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_620,end,_622,_623,_624){
var h=dojo.html;
_620=dojo.byId(_620);
end=dojo.byId(end);
var _626=dojo.html.toCoordinateObject(_620,true);
var _627=dojo.html.toCoordinateObject(end,true);
var _628=document.createElement("div");
dojo.html.copyStyle(_628,_620);
if(_620.explodeClassName){
_628.className=_620.explodeClassName;
}
dojo.html.setOpacity(_628,0.3);
with(_628.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_620,"background-color").toLowerCase();
}
dojo.body().appendChild(_628);
var _629={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_629[type]={start:_626[type],end:_627[type]};
});
var anim=new dojo.lfx.propertyAnimation(_628,_629,_622,_623,{"beforeBegin":function(){
dojo.html.hide(_620);
dojo.html.show(_628);
},"onEnd":function(){
_628.parentNode.removeChild(_628);
}});
if(_624){
anim.connect("onEnd",function(){
_624(_620,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_62c,_62d,_62e,_62f,_630){
_62c=dojo.lfx.html._byId(_62c);
var _631=[];
dojo.lang.forEach(_62c,function(node){
var _633=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _635=dojo.html.getStyle(node,"background-image");
var _636=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_633.length>3){
_633.pop();
}
var rgb=new dojo.gfx.color.Color(_62d);
var _638=new dojo.gfx.color.Color(_633);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_638}},_62e,_62f,{"beforeBegin":function(){
if(_635){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_635){
node.style.backgroundImage=_635;
}
if(_636){
node.style.backgroundColor="transparent";
}
if(_630){
_630(node,anim);
}
}});
_631.push(anim);
});
return dojo.lfx.combine(_631);
};
dojo.lfx.html.unhighlight=function(_63a,_63b,_63c,_63d,_63e){
_63a=dojo.lfx.html._byId(_63a);
var _63f=[];
dojo.lang.forEach(_63a,function(node){
var _641=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_63b);
var _643=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_641,end:rgb}},_63c,_63d,{"beforeBegin":function(){
if(_643){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_641.toRgb().join(",")+")";
},"onEnd":function(){
if(_63e){
_63e(node,anim);
}
}});
_63f.push(anim);
});
return dojo.lfx.combine(_63f);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.shadow");
dojo.lfx.shadow=function(node){
this.shadowPng=dojo.uri.dojoUri("src/html/images/shadow");
this.shadowThickness=8;
this.shadowOffset=15;
this.init(node);
};
dojo.extend(dojo.lfx.shadow,{init:function(node){
this.node=node;
this.pieces={};
var x1=-1*this.shadowThickness;
var y0=this.shadowOffset;
var y1=this.shadowOffset+this.shadowThickness;
this._makePiece("tl","top",y0,"left",x1);
this._makePiece("l","top",y1,"left",x1,"scale");
this._makePiece("tr","top",y0,"left",0);
this._makePiece("r","top",y1,"left",0,"scale");
this._makePiece("bl","top",0,"left",x1);
this._makePiece("b","top",0,"left",0,"crop");
this._makePiece("br","top",0,"left",0);
},_makePiece:function(name,_64b,_64c,_64d,_64e,_64f){
var img;
var url=this.shadowPng+name.toUpperCase()+".png";
if(dojo.render.html.ie55||dojo.render.html.ie60){
img=dojo.doc().createElement("div");
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_64f?", sizingMethod='"+_64f+"'":"")+")";
}else{
img=dojo.doc().createElement("img");
img.src=url;
}
img.style.position="absolute";
img.style[_64b]=_64c+"px";
img.style[_64d]=_64e+"px";
img.style.width=this.shadowThickness+"px";
img.style.height=this.shadowThickness+"px";
this.pieces[name]=img;
this.node.appendChild(img);
},size:function(_652,_653){
var _654=_653-(this.shadowOffset+this.shadowThickness+1);
if(_654<0){
_654=0;
}
if(_653<1){
_653=1;
}
if(_652<1){
_652=1;
}
with(this.pieces){
l.style.height=_654+"px";
r.style.height=_654+"px";
b.style.width=(_652-1)+"px";
bl.style.top=(_653-1)+"px";
b.style.top=(_653-1)+"px";
br.style.top=(_653-1)+"px";
tr.style.left=(_652-1)+"px";
r.style.left=(_652-1)+"px";
br.style.left=(_652-1)+"px";
}
}});
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 _658=getTagName(node);
if(!_658){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_658])){
return _658;
}
var p=_658.indexOf(":");
if(p>=0){
return _658;
}
if(_658.substr(0,5)=="dojo:"){
return _658;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_658;
}
if(_658.substr(0,4)=="dojo"){
return "dojo:"+_658.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 _65b=node.className||node.getAttribute("class");
if((_65b)&&(_65b.indexOf)&&(_65b.indexOf("dojo-")!=-1)){
var _65c=_65b.split(" ");
for(var x=0,c=_65c.length;x<c;x++){
if(_65c[x].slice(0,5)=="dojo-"){
return "dojo:"+_65c[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_660,_661,_662){

var _663=getTagName(node);
if(isIE&&_663.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _665=true;
if(_661){
var _666=getDojoTagName(node);
_663=_666||_663;
_665=Boolean(_666);
}
var _667={};
_667[_663]=[];
var pos=_663.indexOf(":");
if(pos>0){
var ns=_663.substring(0,pos);
_667["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_665=false;
}
}
if(_665){
var _66a=this.parseAttributes(node);
for(var attr in _66a){
if((!_667[_663][attr])||(typeof _667[_663][attr]!="array")){
_667[_663][attr]=[];
}
_667[_663][attr].push(_66a[attr]);
}
_667[_663].nodeRef=node;
_667.tagName=_663;
_667.index=_662||0;
}
var _66b=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(!_667[ctn]){
_667[ctn]=[];
}
_667[ctn].push(this.parseElement(tcn,true,_661,_66b));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_667[ctn][_667[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_66b++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_667[_663].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _667;
};
this.parseAttributes=function(node){
var _670={};
var atts=node.attributes;
var _672,i=0;
while((_672=atts[i++])){
if(isIE){
if(!_672){
continue;
}
if((typeof _672=="object")&&(typeof _672.nodeValue=="undefined")||(_672.nodeValue==null)||(_672.nodeValue=="")){
continue;
}
}
var nn=_672.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_672.nodeName;
_670[nn]={value:_672.nodeValue};
}
return _670;
};
};
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_676,_677,_678){
if(!_678||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_676,_677);
}
},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,_67f,_680){
this.name=name;
this.module=_67f;
this.resolver=_680;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_682,_683){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _684=this.resolver(name,_682);
if((_684)&&(!this._loaded[_684])&&(!this._failed[_684])){
var req=dojo.require;
req(_684,false,true);
if(dojo.hostenv.findModule(_684,false)){
this._loaded[_684]=true;
}else{
if(!_683){
dojo.raise("dojo.ns.Ns.resolve: module '"+_684+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_684]=true;
}
}
return Boolean(this._loaded[_684]);
};
dojo.registerNamespace=function(name,_687,_688){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_68a){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_68a;
}
};
dojo.registerNamespaceManifest=function(_68c,path,name,_68f,_690){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_68f,_690);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _691={};
var _692=[];
this.getUniqueId=function(_693){
var _694;
do{
_694=_693+"_"+(_691[_693]!=undefined?++_691[_693]:_691[_693]=0);
}while(this.getWidgetById(_694));
return _694;
};
this.add=function(_695){
this.widgets.push(_695);
if(!_695.extraArgs["id"]){
_695.extraArgs["id"]=_695.extraArgs["ID"];
}
if(_695.widgetId==""){
if(_695["id"]){
_695.widgetId=_695["id"];
}else{
if(_695.extraArgs["id"]){
_695.widgetId=_695.extraArgs["id"];
}else{
_695.widgetId=this.getUniqueId(_695.ns+"_"+_695.widgetType);
}
}
}
if(this.widgetIds[_695.widgetId]){
dojo.debug("widget ID collision on ID: "+_695.widgetId);
}
this.widgetIds[_695.widgetId]=_695;
};
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(_697){
if(dojo.lang.isNumber(_697)){
var tw=this.widgets[_697].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_697,1);
}else{
this.removeById(_697);
}
};
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 _69e=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_69e(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_6a3,_6a4){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_6a3(x)){
ret.push(x);
if(_6a4){
return false;
}
}
return true;
});
return (_6a4?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 _6aa={};
var _6ab=["dojo.widget"];
for(var i=0;i<_6ab.length;i++){
_6ab[_6ab[i]]=true;
}
this.registerWidgetPackage=function(_6ad){
if(!_6ab[_6ad]){
_6ab[_6ad]=true;
_6ab.push(_6ad);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_6ab,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_6af,_6b0,_6b1,ns){
var impl=this.getImplementationName(_6af,ns);
if(impl){
var ret=_6b0?new impl(_6b0):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _6b5 in dojo.render){
if(dojo.render[_6b5]["capable"]===true){
var _6b6=dojo.render[_6b5].prefixes;
for(var i=0;i<_6b6.length;i++){
_692.push(_6b6[i].toLowerCase());
}
}
}
}
var _6b8=function(_6b9,_6ba){
if(!_6ba){
return null;
}
for(var i=0,l=_692.length,_6bd;i<=l;i++){
_6bd=(i<l?_6ba[_692[i]]:_6ba);
if(!_6bd){
continue;
}
for(var name in _6bd){
if(name.toLowerCase()==_6b9){
return _6bd[name];
}
}
}
return null;
};
var _6bf=function(_6c0,_6c1){
var _6c2=dojo.evalObjPath(_6c1,false);
return (_6c2?_6b8(_6c0,_6c2):null);
};
this.getImplementationName=function(_6c3,ns){
var _6c5=_6c3.toLowerCase();
ns=ns||"dojo";
var imps=_6aa[ns]||(_6aa[ns]={});
var impl=imps[_6c5];
if(impl){
return impl;
}
if(!_692.length){
buildPrefixCache();
}
var _6c8=dojo.ns.get(ns);
if(!_6c8){
dojo.ns.register(ns,ns+".widget");
_6c8=dojo.ns.get(ns);
}
if(_6c8){
_6c8.resolve(_6c3);
}
impl=_6bf(_6c5,_6c8.module);
if(impl){
return (imps[_6c5]=impl);
}
_6c8=dojo.ns.require(ns);
if((_6c8)&&(_6c8.resolver)){
_6c8.resolve(_6c3);
impl=_6bf(_6c5,_6c8.module);
if(impl){
return (imps[_6c5]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_6c3+"\" in \""+_6c8.module+"\" registered to namespace \""+_6c8.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_6ab.length;i++){
impl=_6bf(_6c5,_6ab[i]);
if(impl){
return (imps[_6c5]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_6c3+"\" in \""+_6c8.module+"\" registered to namespace \""+_6c8.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _6cb=this.topWidgets[id];
if(_6cb.checkSize){
_6cb.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(_6d0,_6d1){
dw[(_6d1||_6d0)]=h(_6d0);
};
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 _6d3=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _6d3[n];
}
return _6d3;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.uri.*");
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/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 _6d5=null;
if(window.getComputedStyle){
var _6d6=getComputedStyle(div,"");
_6d5=_6d6.getPropertyValue("background-image");
}else{
_6d5=div.currentStyle.backgroundImage;
}
var _6d7=false;
if(_6d5!=null&&(_6d5=="none"||_6d5=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_6d8){
this.doAccessibleCheck=_6d8;
},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 _6da=this.children[i];
if(_6da.onResized){
_6da.onResized();
}
}
},create:function(args,_6dc,_6dd,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_6dc,_6dd);
this.mixInProperties(args,_6dc,_6dd);
this.postMixInProperties(args,_6dc,_6dd);
dojo.widget.manager.add(this);
this.buildRendering(args,_6dc,_6dd);
this.initialize(args,_6dc,_6dd);
this.postInitialize(args,_6dc,_6dd);
this.postCreate(args,_6dc,_6dd);
return this;
},destroy:function(_6df){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_6df);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _6e0;
var i=0;
while(this.children.length>i){
_6e0=this.children[i];
if(_6e0 instanceof dojo.widget.Widget){
this.removeChild(_6e0);
_6e0.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_6e3){
var ret=[];
var _6e5=dojo.lang.isFunction(type);
if(!_6e5){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_6e5){
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(_6e3){
ret=ret.concat(this.children[x].getChildrenOfType(type,_6e3));
}
}
return ret;
},getDescendants:function(){
var _6e7=[];
var _6e8=[this];
var elem;
while((elem=_6e8.pop())){
_6e7.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_6e8.push(elem);
});
}
}
return _6e7;
},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 _6ef;
var _6f0=dojo.widget.lcArgsCache[this.widgetType];
if(_6f0==null){
_6f0={};
for(var y in this){
_6f0[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_6f0;
}
var _6f2={};
for(var x in args){
if(!this[x]){
var y=_6f0[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_6f2[x]){
continue;
}
_6f2[x]=true;
if((typeof this[x])!=(typeof _6ef)){
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.evalObjPath(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 _6f4=args[x].split(";");
for(var y=0;y<_6f4.length;y++){
var si=_6f4[y].indexOf(":");
if((si!=-1)&&(_6f4[y].length>si)){
this[x][_6f4[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_6f4[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_6f8){
},initialize:function(args,frag,_6fb){
return false;
},postInitialize:function(args,frag,_6fe){
return false;
},postCreate:function(args,frag,_701){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_704){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_705){
},addChild:function(_706){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_707){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_707){
this.children.splice(x,1);
_707.parent=null;
break;
}
}
return _707;
},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.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_70c,_70d,_70e){
var _70f=_70d.parseProperties(_70c["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_710,_711,_712){
var _713=_711.parseProperties(_710["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_716,_717,_718,_719){
dojo.a11y.setAccessibleMode();
var _71a=type.split(":");
_71a=(_71a.length==2)?_71a[1]:type;
var _71b=_719||_716.parseProperties(frag[frag["ns"]+":"+_71a]);
var _71c=dojo.widget.manager.getImplementation(_71a,null,null,frag["ns"]);
if(!_71c){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_71c.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_71b["dojoinsertionindex"]=_718;
var ret=_71c.create(_71b,frag,_717,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_71e,_71f,_720,init,_722){
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(_725,_726,_727,init,_729){
var _72a=_725.split(".");
var type=_72a.pop();
var regx="\\.("+(_726?_726+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_725.search(new RegExp(regx));
_72a=(r<0?_72a.join("."):_725.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_72a);
var pos=_72a.indexOf(".");
var _72f=(pos>-1)?_72a.substring(0,pos):_72a;
_729=(_729)||{};
_729.widgetType=type;
if((!init)&&(_729["classConstructor"])){
init=_729.classConstructor;
delete _729.classConstructor;
}
dojo.declare(_725,_727,init,_729);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_730){
this.propertySetsList=[];
this.fragment=_730;
this.createComponents=function(frag,_732){
var _733=[];
var _734=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _735=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(_735[ltn]){
_734=true;
ret=_735[ltn](frag,this,_732,frag.index);
_733.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_732,frag.index);
if(ret){
_734=true;
_733.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_734){
_733=_733.concat(this.createSubComponents(frag,_732));
}
return _733;
};
this.createSubComponents=function(_73a,_73b){
var frag,_73d=[];
for(var item in _73a){
frag=_73a[item];
if(frag&&typeof frag=="object"&&(frag!=_73a.nodeRef)&&(frag!=_73a.tagName)&&(!dojo.dom.isNode(frag))){
_73d=_73d.concat(this.createComponents(frag,_73b));
}
}
return _73d;
};
this.parsePropertySets=function(_73f){
return [];
};
this.parseProperties=function(_740){
var _741={};
for(var item in _740){
if((_740[item]==_740.tagName)||(_740[item]==_740.nodeRef)){
}else{
var frag=_740[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 _744=this;
this.getDataProvider(_744,frag[0].value);
_741.dataProvider=this.dataProvider;
}
_741[item]=frag[0].value;
var _745=this.parseProperties(frag);
for(var _746 in _745){
_741[_746]=_745[_746];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _741[item]!="boolean"){
_741[item]=true;
}
break;
}
}
}
return _741;
};
this.getDataProvider=function(_747,_748){
dojo.io.bind({url:_748,load:function(type,_74a){
if(type=="load"){
_747.dataProvider=_74a;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_74b){
for(var x=0;x<this.propertySetsList.length;x++){
if(_74b==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_74d){
var _74e=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _752=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_752==cpcc[0].value)){
_74e.push(cpl);
}
}
return _74e;
};
this.getPropertySets=function(_753){
var ppl="dojo:propertyproviderlist";
var _755=[];
var _756=_753.tagName;
if(_753[ppl]){
var _757=_753[ppl].value.split(" ");
for(var _758 in _757){
if((_758.indexOf("..")==-1)&&(_758.indexOf("://")==-1)){
var _759=this.getPropertySetById(_758);
if(_759!=""){
_755.push(_759);
}
}else{
}
}
}
return this.getPropertySetsByType(_756).concat(_755);
};
this.createComponentFromScript=function(_75a,_75b,_75c,ns){
_75c.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_75b.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_75c,this,null,null,_75c)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_75c,this,null,null,_75c)];
};
};
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,_761,_762,_763){
var _764=false;
var _765=(typeof name=="string");
if(_765){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _768=name.toLowerCase();
var _769=ns+":"+_768;
_764=(dojo.byId(name)&&!dojo.widget.tags[_769]);
}
if((arguments.length==1)&&(_764||!_765)){
var xp=new dojo.xml.Parse();
var tn=_764?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_76c,name,_76e,ns){
_76e[_769]={dojotype:[{value:_768}],nodeRef:_76c,fastMixIn:true};
_76e.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_76c,name,_76e,ns);
}
_761=_761||{};
var _770=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_762){
_770=true;
_762=tn;
if(h){
dojo.body().appendChild(_762);
}
}else{
if(_763){
dojo.dom.insertAtPosition(tn,_762,_763);
}else{
tn=_762;
}
}
var _772=fromScript(tn,name.toLowerCase(),_761,ns);
if((!_772)||(!_772[0])||(typeof _772[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_770&&_772[0].domNode.parentNode){
_772[0].domNode.parentNode.removeChild(_772[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _772[0];
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_774,_775,_776){
var _777=_774||obj.templatePath;
var _778=dojo.widget._templateCache;
if(!_777&&!obj["widgetType"]){
do{
var _779="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_778[_779]);
obj.widgetType=_779;
}
var wt=_777?_777.toString():obj.widgetType;
var ts=_778[wt];
if(!ts){
_778[wt]={"string":null,"node":null};
if(_776){
ts={};
}else{
ts=_778[wt];
}
}
if((!obj.templateString)&&(!_776)){
obj.templateString=_775||ts["string"];
}
if((!obj.templateNode)&&(!_776)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_777)){
var _77c=dojo.hostenv.getText(_777);
if(_77c){
_77c=_77c.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _77d=_77c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_77d){
_77c=_77d[1];
}
}else{
_77c="";
}
obj.templateString=_77c;
if(!_776){
_778[wt]["string"]=_77c;
}
}
if((!ts["string"])&&(!_776)){
ts.string=obj.templateString;
}
};
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,_781){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_781);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_781);
}
},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 _788=true;
if(dojo.render.html.ie){
_788=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _788;
}};
dojo.widget.attachTemplateNodes=function(_789,_78a,_78b){
var _78c=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_789){
_789=_78a.domNode;
}
if(_789.nodeType!=_78c){
return;
}
var _78e=_789.all||_789.getElementsByTagName("*");
var _78f=_78a;
for(var x=-1;x<_78e.length;x++){
var _791=(x==-1)?_789:_78e[x];
var _792=[];
if(!_78a.widgetsInTemplate||!_791.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _794=_791.getAttribute(this.attachProperties[y]);
if(_794){
_792=_794.split(";");
for(var z=0;z<_792.length;z++){
if(dojo.lang.isArray(_78a[_792[z]])){
_78a[_792[z]].push(_791);
}else{
_78a[_792[z]]=_791;
}
}
break;
}
}
var _796=_791.getAttribute(this.eventAttachProperty);
if(_796){
var evts=_796.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _798=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _79a=tevt.split(":");
tevt=trim(_79a[0]);
_798=trim(_79a[1]);
}
if(!_798){
_798=tevt;
}
var tf=function(){
var ntf=new String(_798);
return function(evt){
if(_78f[ntf]){
_78f[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_791,tevt,tf,false,true);
}
}
for(var y=0;y<_78b.length;y++){
var _79e=_791.getAttribute(_78b[y]);
if((_79e)&&(_79e.length)){
var _798=null;
var _79f=_78b[y].substr(4);
_798=trim(_79e);
var _7a0=[_798];
if(_798.indexOf(";")>=0){
_7a0=dojo.lang.map(_798.split(";"),trim);
}
for(var z=0;z<_7a0.length;z++){
if(!_7a0[z].length){
continue;
}
var tf=function(){
var ntf=new String(_7a0[z]);
return function(evt){
if(_78f[ntf]){
_78f[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_791,_79f,tf,false,true);
}
}
}
}
var _7a3=_791.getAttribute(this.templateProperty);
if(_7a3){
_78a[_7a3]=_791;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_791.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_791,wai.name,"role",val);
}else{
var _7a7=val.split("-");
dojo.widget.wai.setAttr(_791,wai.name,_7a7[0],_7a7[1]);
}
}
},this);
var _7a8=_791.getAttribute(this.onBuildProperty);
if(_7a8){
eval("var node = baseNode; var widget = targetObj; "+_7a8);
}
}
};
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(_7b0,_7b1,pos,ref,_7b4){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_7b4==undefined){
_7b4=this.children.length;
}
this.addWidgetAsDirectChild(_7b0,_7b1,pos,ref,_7b4);
this.registerChild(_7b0,_7b4);
}
return _7b0;
},addWidgetAsDirectChild:function(_7b5,_7b6,pos,ref,_7b9){
if((!this.containerNode)&&(!_7b6)){
this.containerNode=this.domNode;
}
var cn=(_7b6)?_7b6:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_7b9){
_7b9=0;
}
_7b5.domNode.setAttribute("dojoinsertionindex",_7b9);
if(!ref){
cn.appendChild(_7b5.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_7b5.domNode,ref.parentNode,_7b9);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_7b5.domNode);
}else{
dojo.dom.insertAtPosition(_7b5.domNode,cn,pos);
}
}
}
},registerChild:function(_7bb,_7bc){
_7bb.dojoInsertionIndex=_7bc;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_7bc){
idx=i;
}
}
this.children.splice(idx+1,0,_7bb);
_7bb.parent=this;
_7bb.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_7bb.widgetId];
},removeChild:function(_7bf){
dojo.dom.removeNode(_7bf.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_7bf);
},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,_7c3){
var _7c4=this.getFragNodeRef(frag);
if(_7c3&&(_7c3.snarfChildDomOutput||!_7c4)){
_7c3.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_7c4);
}else{
if(_7c4){
if(this.domNode&&(this.domNode!==_7c4)){
this._sourceNodeRef=dojo.dom.replaceNode(_7c4,this.domNode);
}
}
}
if(_7c3){
_7c3.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _7c5=new dojo.xml.Parse();
var _7c6;
var _7c7=this.domNode.getElementsByTagName("*");
for(var i=0;i<_7c7.length;i++){
if(_7c7[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_7c6=_7c7[i];
}
if(_7c7[i].getAttribute("dojoType")){
_7c7[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_7c6){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_7c6);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _7ca=_7c5.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_7ca,this);
var _7cb=[];
var _7cc=[this];
var w;
while((w=_7cc.pop())){
for(var i=0;i<w.children.length;i++){
var _7ce=w.children[i];
if(_7ce._processedSubWidgets||!_7ce.extraArgs["issubwidget"]){
continue;
}
_7cb.push(_7ce);
if(_7ce.isContainer){
_7cc.push(_7ce);
}
}
}
for(var i=0;i<_7cb.length;i++){
var _7cf=_7cb[i];
if(_7cf._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_7cf._processedSubWidgets=true;
if(_7cf.extraArgs["dojoattachevent"]){
var evts=_7cf.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _7d2=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _7d4=tevt.split(":");
tevt=dojo.string.trim(_7d4[0]);
_7d2=dojo.string.trim(_7d4[1]);
}
if(!_7d2){
_7d2=tevt;
}
if(dojo.lang.isFunction(_7cf[tevt])){
dojo.event.kwConnect({srcObj:_7cf,srcFunc:tevt,targetObj:this,targetFunc:_7d2});
}else{
alert(tevt+" is not a function in widget "+_7cf);
}
}
}
if(_7cf.extraArgs["dojoattachpoint"]){
this[_7cf.extraArgs["dojoattachpoint"]]=_7cf;
}
}
}
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 _7d8=args["templateCssPath"]||this.templateCssPath;
if(_7d8&&!dojo.widget._cssFiles[_7d8.toString()]){
if((!this.templateCssString)&&(_7d8)){
this.templateCssString=dojo.hostenv.getText(_7d8);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_7d8.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_7d8);
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 _7db=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_7db);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_7db)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _7dd=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_7dd=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_7dd){
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<_7dd.length;i++){
var key=_7dd[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _7e4;
if((kval)||(dojo.lang.isString(kval))){
_7e4=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_7e4.indexOf("\"")>-1){
_7e4=_7e4.replace("\"","&quot;");
}
tstr=tstr.replace(_7dd[i],_7e4);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_7db){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_7dd)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_7dd){
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(_7e6,_7e7){
if(!_7e6){
_7e6=this.domNode;
}
if(!_7e7){
_7e7=this;
}
return dojo.widget.attachTemplateNodes(_7e6,_7e7,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.util");
dojo.html.getElementWindow=function(_7e8){
return dojo.html.getDocumentWindow(_7e8.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.gravity=function(node,e){
node=dojo.byId(node);
var _7f0=dojo.html.getCursorPosition(e);
with(dojo.html){
var _7f1=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _7f3=_7f1.x+(bb.width/2);
var _7f4=_7f1.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_7f0.x<_7f3?WEST:EAST)|(_7f0.y<_7f4?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(_7f5,e){
_7f5=dojo.byId(_7f5);
var _7f7=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_7f5);
var _7f9=dojo.html.getAbsolutePosition(_7f5,true,dojo.html.boxSizing.BORDER_BOX);
var top=_7f9.y;
var _7fb=top+bb.height;
var left=_7f9.x;
var _7fd=left+bb.width;
return (_7f7.x>=left&&_7f7.x<=_7fd&&_7f7.y>=top&&_7f7.y<=_7fb);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _7ff="";
if(node==null){
return _7ff;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _801="unknown";
try{
_801=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_801){
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":
_7ff+="\n";
_7ff+=dojo.html.renderedTextContent(node.childNodes[i]);
_7ff+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_7ff+="\n";
}else{
_7ff+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _803="unknown";
try{
_803=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_803){
case "capitalize":
var _804=text.split(" ");
for(var i=0;i<_804.length;i++){
_804[i]=_804[i].charAt(0).toUpperCase()+_804[i].substring(1);
}
text=_804.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_803){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_7ff)){
text.replace(/^\s/,"");
}
break;
}
_7ff+=text;
break;
default:
break;
}
}
return _7ff;
};
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 _808="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_808="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_808="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_808="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _809=null;
switch(_808){
case "cell":
_809=tn.getElementsByTagName("tr")[0];
break;
case "row":
_809=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_809=tn.getElementsByTagName("table")[0];
break;
default:
_809=tn;
break;
}
var _80a=[];
for(var x=0;x<_809.childNodes.length;x++){
_80a.push(_809.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _80a;
};
dojo.html.placeOnScreen=function(node,_80d,_80e,_80f,_810,_811,_812){
if(_80d instanceof Array||typeof _80d=="array"){
_812=_811;
_811=_810;
_810=_80f;
_80f=_80e;
_80e=_80d[1];
_80d=_80d[0];
}
if(_811 instanceof String||typeof _811=="string"){
_811=_811.split(",");
}
if(!isNaN(_80f)){
_80f=[Number(_80f),Number(_80f)];
}else{
if(!(_80f instanceof Array||typeof _80f=="array")){
_80f=[0,0];
}
}
var _813=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _815=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_815;
if(!(_811 instanceof Array||typeof _811=="array")){
_811=["TL"];
}
var _819,_81a,_81b=Infinity,_81c;
for(var _81d=0;_81d<_811.length;++_81d){
var _81e=_811[_81d];
var _81f=true;
var tryX=_80d-(_81e.charAt(1)=="L"?0:w)+_80f[0]*(_81e.charAt(1)=="L"?1:-1);
var tryY=_80e-(_81e.charAt(0)=="T"?0:h)+_80f[1]*(_81e.charAt(0)=="T"?1:-1);
if(_810){
tryX-=_813.x;
tryY-=_813.y;
}
if(tryX<0){
tryX=0;
_81f=false;
}
if(tryY<0){
tryY=0;
_81f=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_81f=false;
}else{
x=tryX;
}
x=Math.max(_80f[0],x)+_813.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_81f=false;
}else{
y=tryY;
}
y=Math.max(_80f[1],y)+_813.y;
if(_81f){
_819=x;
_81a=y;
_81b=0;
_81c=_81e;
break;
}else{
var dist=Math.pow(x-tryX-_813.x,2)+Math.pow(y-tryY-_813.y,2);
if(_81b>dist){
_81b=dist;
_819=x;
_81a=y;
_81c=_81e;
}
}
}
if(!_812){
node.style.left=_819+"px";
node.style.top=_81a+"px";
}
return {left:_819,top:_81a,x:_819,y:_81a,dist:_81b,corner:_81c};
};
dojo.html.placeOnScreenPoint=function(node,_826,_827,_828,_829){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_826,_827,_828,_829,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_82b,_82c,_82d,_82e,_82f){
var best,_831=Infinity;
_82b=dojo.byId(_82b);
var _832=_82b.style.display;
_82b.style.display="";
var mb=dojo.html.getElementBox(_82b,_82d);
var _834=mb.width;
var _835=mb.height;
var _836=dojo.html.getAbsolutePosition(_82b,true,_82d);
_82b.style.display=_832;
for(var _837 in _82e){
var pos,_839,_83a;
var _83b=_82e[_837];
_839=_836.x+(_837.charAt(1)=="L"?0:_834);
_83a=_836.y+(_837.charAt(0)=="T"?0:_835);
pos=dojo.html.placeOnScreen(node,_839,_83a,_82c,true,_83b,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_831>pos.dist){
_831=pos.dist;
best=pos;
}
}
}
if(!_82f){
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 _83d=node.parentNode;
var _83e=_83d.scrollTop+dojo.html.getBorderBox(_83d).height;
var _83f=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_83e<_83f){
_83d.scrollTop+=(_83f-_83e);
}else{
if(_83d.scrollTop>node.offsetTop){
_83d.scrollTop-=(_83d.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_841,_842,_843){
dojo.html.show(node);
if(dojo.lang.isFunction(_843)){
_843();
}
},hide:function(node,_845,_846,_847){
dojo.html.hide(node);
if(dojo.lang.isFunction(_847)){
_847();
}
}};
dojo.lfx.toggle.fade={show:function(node,_849,_84a,_84b){
dojo.lfx.fadeShow(node,_849,_84a,_84b).play();
},hide:function(node,_84d,_84e,_84f){
dojo.lfx.fadeHide(node,_84d,_84e,_84f).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_851,_852,_853){
dojo.lfx.wipeIn(node,_851,_852,_853).play();
},hide:function(node,_855,_856,_857){
dojo.lfx.wipeOut(node,_855,_856,_857).play();
}};
dojo.lfx.toggle.explode={show:function(node,_859,_85a,_85b,_85c){
dojo.lfx.explode(_85c||{x:0,y:0,width:0,height:0},node,_859,_85a,_85b).play();
},hide:function(node,_85e,_85f,_860,_861){
dojo.lfx.implode(node,_861||{x:0,y:0,width:0,height:0},_85e,_85f,_860).play();
}};
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=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_868){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_868&&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 _86c=w||wh.width;
var _86d=h||wh.height;
if(this.width==_86c&&this.height==_86d){
return false;
}
this.width=_86c;
this.height=_86d;
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(_870){
if(_870.checkSize){
_870.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.ContentPane");
dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
this._styleNodes=[];
this._onLoadStack=[];
this._onUnloadStack=[];
this._callOnUnload=false;
this._ioBindObj;
this.scriptScope;
this.bindArgs={};
},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(args,frag,_873){
if(this.handler!==""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},abort:function(){
var bind=this._ioBindObj;
if(!bind||!bind.abort){
return;
}
bind.abort();
delete this._ioBindObj;
},_downloadExternalContent:function(url,_877){
this.abort();
this._handleDefaults(this.loadingMessage,"onDownloadStart");
var self=this;
this._ioBindObj=dojo.io.bind(this._cacheSetting({url:url,mimetype:"text/html",handler:function(type,data,xhr){
delete self._ioBindObj;
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
var e={responseText:xhr.responseText,status:xhr.status,statusText:xhr.statusText,responseHeaders:xhr.getAllResponseHeaders(),text:"Error loading '"+url+"' ("+xhr.status+" "+xhr.statusText+")"};
self._handleDefaults.call(self,e,"onDownloadError");
self.onLoad();
}
}},_877));
},_cacheSetting:function(_87d,_87e){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_87d[x])){
_87d[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_87d.useCache)){
_87d.useCache=_87e;
}
if(dojo.lang.isUndefined(_87d.preventCache)){
_87d.preventCache=!_87e;
}
if(dojo.lang.isUndefined(_87d.mimetype)){
_87d.mimetype="text/html";
}
return _87d;
},onLoad:function(e){
this._runStack("_onLoadStack");
this.isLoaded=true;
},onUnLoad:function(e){
dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
},onUnload:function(e){
this._runStack("_onUnloadStack");
delete this.scriptScope;
if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
this.onUnLoad.apply(this,arguments);
}
},_runStack:function(_883){
var st=this[_883];
var err="";
var _886=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_886);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_883]=[];
if(err.length){
var name=(_883=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnload:function(obj,func){
this._pushOnStack(this._onUnloadStack,obj,func);
},addOnUnLoad:function(){
dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
this.addOnUnload.apply(this,arguments);
},_pushOnStack:function(_88d,obj,func){
if(typeof func=="undefined"){
_88d.push(obj);
}else{
_88d.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnload();
dojo.widget.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_897,_898){
if(!_897){
_897="onContentError";
}
if(dojo.lang.isString(e)){
e={text:e};
}
if(!e.text){
e.text=e.toString();
}
e.toString=function(){
return this.text;
};
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_897](e);
if(e.returnValue){
switch(_898){
case true:
case "alert":
alert(e.toString());
break;
case "debug":
dojo.debug(e.toString());
break;
default:
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=false;
if(arguments.callee._loopStop){
dojo.debug(e.toString());
}else{
arguments.callee._loopStop=true;
this._setContent(e.toString());
}
}
}
arguments.callee._loopStop=false;
},splitAndFixPaths:function(s,url){
var _89b=[],_89c=[],tmp=[];
var _89e=[],_89f=[],attr=[],_8a1=[];
var str="",path="",fix="",_8a5="",tag="",_8a7="";
if(!url){
url="./";
}
if(s){
var _8a8=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_89e=_8a8.exec(s)){
_89b.push(_89e[1]);
s=s.substring(0,_89e.index)+s.substr(_89e.index+_89e[0].length);
}
if(this.adjustPaths){
var _8a9=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _8aa=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _8ab=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_8a9.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_8a5="";
while(attr=_8aa.exec(tag)){
path="";
_8a7=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_8ab.exec(_8a7)){
path=_8a7;
}else{
path=(new dojo.uri.Uri(url,_8a7).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_8a7,url);
break;
default:
path=_8a7;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_8a5+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_8a5+tag;
}
s=str+s;
}
_8a8=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_89e=_8a8.exec(s)){
if(_89e[1]&&_89e[1].toLowerCase()=="style"){
_8a1.push(dojo.html.fixPathsInCssText(_89e[2],url));
}else{
if(attr=_89e[3].match(/href=(['"]?)([^'">]*)\1/i)){
_8a1.push({path:attr[2]});
}
}
s=s.substring(0,_89e.index)+s.substr(_89e.index+_89e[0].length);
}
var _8a8=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _8ac=/src=(['"]?)([^"']*)\1/i;
var _8ad=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _8ae=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _8af=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_89e=_8a8.exec(s)){
if(this.executeScripts&&_89e[1]){
if(attr=_8ac.exec(_89e[1])){
if(_8ad.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_89c.push({path:attr[2]});
}
}
}
if(_89e[2]){
var sc=_89e[2].replace(_8ae,"");
if(!sc){
continue;
}
while(tmp=_8af.exec(sc)){
_89f.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_89c.push(sc);
}
}
s=s.substr(0,_89e.index)+s.substr(_89e.index+_89e[0].length);
}
if(this.extractContent){
_89e=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_89e){
s=_89e[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _8a8=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _8b1=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_8a8.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_8b1.exec(tag[2])){
tag[2]=tag[2].substring(0,attr.index)+attr[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+attr[2];
}
str+=tag[2];
s=s.substr(tag.index+tag[0].length);
}
s=str+s;
}
}
return {"xml":s,"styles":_8a1,"titles":_89b,"requires":_89f,"scripts":_89c,"url":url};
},_setContent:function(cont){
this.destroyChildren();
for(var i=0;i<this._styleNodes.length;i++){
if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
}
}
this._styleNodes=[];
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo.html.destroyNode(node.firstChild);
}
if(typeof cont!="string"){
node.appendChild(cont);
}else{
node.innerHTML=cont;
}
}
catch(e){
e.text="Couldn't load content:"+e.description;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
this.abort();
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=true;
if(!data||dojo.html.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if(typeof data.xml!="string"){
this.href="";
data=this.splitAndFixPaths(data);
}
this._setContent(data.xml);
for(var i=0;i<data.styles.length;i++){
if(data.styles[i].path){
this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true));
}else{
this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));
}
}
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
e.text="ContentPane: error in package loading calls, "+(e.description||e);
this._handleDefaults(e,"onContentError","debug");
}
}
}
var _8b7=this;
function asyncParse(){
if(_8b7.executeScripts){
_8b7._executeScripts(data.scripts);
}
if(_8b7.parseContent){
var node=_8b7.containerNode||_8b7.domNode;
var _8b9=new dojo.xml.Parse();
var frag=_8b9.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_8b7);
}
_8b7.onResized();
_8b7.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_8bb){
var fcn=dojo.lang.isFunction(_8bb)?_8bb:window[_8bb];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_8bb+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
var ret=true;
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
ret=false;
}
this.onLoad();
return ret;
},_executeScripts:function(_8be){
var self=this;
var tmp="",code="";
for(var i=0;i<_8be.length;i++){
if(_8be[i].path){
dojo.io.bind(this._cacheSetting({"url":_8be[i].path,"load":function(type,_8c4){
dojo.lang.hitch(self,tmp=";"+_8c4);
},"error":function(type,_8c6){
_8c6.text=type+" downloading remote script";
self._handleDefaults.call(self,_8c6,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_8be[i];
}
}
try{
if(this.scriptSeparation){
delete this.scriptScope;
this.scriptScope=new (new Function("_container_",code+"; return this;"))(self);
}else{
var djg=dojo.global();
if(djg.execScript){
djg.execScript(code);
}else{
var djd=dojo.doc();
var sc=djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode||this.domNode).appendChild(sc);
}
}
}
catch(e){
e.text="Error running scripts from content:\n"+e.description;
this._handleDefaults(e,"onExecError","debug");
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_8ca){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_8ca))||dojo.html.iframeContentDocument(_8ca).__parent__||(_8ca.name&&document.frames[_8ca.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_8cc){
var doc=_8cc.contentDocument||((_8cc.contentWindow)&&(_8cc.contentWindow.document))||((_8cc.name)&&(document.frames[_8cc.name])&&(document.frames[_8cc.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 _8d0=dojo.html.getMarginBox(this.domNode);
if(_8d0.width==0||_8d0.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_8d0.width+"px";
this.iframe.style.height=_8d0.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _8d2=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_8d2.width+"px";
height=_8d2.height+"px";
left=_8d2.left+"px";
top=_8d2.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;
}
}});
dojo.provide("dojo.widget.Dialog");
dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(e){
if(e.target==this.tabStartOuter){
if(this._fromTrap){
this.tabStart.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabStart){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabEndOuter){
if(this._fromTrap){
this.tabEnd.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}else{
if(e.target==this.tabEnd){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}
}
}
}
},clearTrap:function(e){
var _8d6=this;
setTimeout(function(){
_8d6._fromTrap=false;
},100);
},postCreate:function(){
with(this.domNode.style){
position="absolute";
zIndex=999;
display="none";
overflow="visible";
}
var b=dojo.body();
b.appendChild(this.domNode);
this.bg=document.createElement("div");
this.bg.className="dialogUnderlay";
with(this.bg.style){
position="absolute";
left=top="0px";
zIndex=998;
display="none";
}
b.appendChild(this.bg);
this.setBackgroundColor(this.bgColor);
this.bgIframe=new dojo.html.BackgroundIframe();
if(this.bgIframe.iframe){
with(this.bgIframe.iframe.style){
position="absolute";
left=top="0px";
zIndex=90;
display="none";
}
}
if(this.closeOnBackgroundClick){
dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true});
}
},uninitialize:function(){
this.bgIframe.remove();
dojo.html.removeNode(this.bg,true);
},setBackgroundColor:function(_8d8){
if(arguments.length>=3){
_8d8=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_8d8=new dojo.gfx.color.Color(_8d8);
}
this.bg.style.backgroundColor=_8d8.toString();
return this.bgColor=_8d8;
},setBackgroundOpacity:function(op){
if(arguments.length==0){
op=this.bgOpacity;
}
dojo.html.setOpacity(this.bg,op);
try{
this.bgOpacity=dojo.html.getOpacity(this.bg);
}
catch(e){
this.bgOpacity=op;
}
return this.bgOpacity;
},_sizeBackground:function(){
if(this.bgOpacity>0){
var _8da=dojo.html.getViewport();
var h=_8da.height;
var w=_8da.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _8dd=dojo.html.getScroll().offset;
this.bg.style.top=_8dd.y+"px";
this.bg.style.left=_8dd.x+"px";
var _8da=dojo.html.getViewport();
if(_8da.width!=w){
this.bg.style.width=_8da.width+"px";
}
if(_8da.height!=h){
this.bg.style.height=_8da.height+"px";
}
}
this.bgIframe.size(this.bg);
},_showBackground:function(){
if(this.bgOpacity>0){
this.bg.style.display="block";
}
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},placeModalDialog:function(){
var _8de=dojo.html.getScroll().offset;
var _8df=dojo.html.getViewport();
var mb;
if(this.isShowing()){
mb=dojo.html.getMarginBox(this.domNode);
}else{
dojo.html.setVisibility(this.domNode,false);
dojo.html.show(this.domNode);
mb=dojo.html.getMarginBox(this.domNode);
dojo.html.hide(this.domNode);
dojo.html.setVisibility(this.domNode,true);
}
var x=_8de.x+(_8df.width-mb.width)/2;
var y=_8de.y+(_8df.height-mb.height)/2;
with(this.domNode.style){
left=x+"px";
top=y+"px";
}
},_onKey:function(evt){
if(evt.key){
var node=evt.target;
while(node!=null){
if(node==this.domNode){
return;
}
node=node.parentNode;
}
if(evt.key!=evt.KEY_TAB){
dojo.event.browser.stopEvent(evt);
}else{
if(!dojo.render.html.opera){
try{
this.tabStart.focus();
}
catch(e){
}
}
}
}
},showModalDialog:function(){
if(this.followScroll&&!this._scrollConnected){
this._scrollConnected=true;
dojo.event.connect(window,"onscroll",this,"_onScroll");
}
dojo.event.connect(document.documentElement,"onkey",this,"_onKey");
this.placeModalDialog();
this.setBackgroundOpacity();
this._sizeBackground();
this._showBackground();
this._fromTrap=true;
setTimeout(dojo.lang.hitch(this,function(){
try{
this.tabStart.focus();
}
catch(e){
}
}),50);
},hideModalDialog:function(){
if(this.focusElement){
dojo.byId(this.focusElement).focus();
dojo.byId(this.focusElement).blur();
}
this.bg.style.display="none";
this.bg.style.width=this.bg.style.height="1px";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");
if(this._scrollConnected){
this._scrollConnected=false;
dojo.event.disconnect(window,"onscroll",this,"_onScroll");
}
},_onScroll:function(){
var _8e5=dojo.html.getScroll().offset;
this.bg.style.top=_8e5.y+"px";
this.bg.style.left=_8e5.x+"px";
this.placeModalDialog();
},checkSize:function(){
if(this.isShowing()){
this._sizeBackground();
this.placeModalDialog();
this.onResized();
}
},onBackgroundClick:function(){
if(this.lifetime-this.timeRemaining>=this.blockDuration){
return;
}
this.hide();
}});
dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:"<div id=\"${this.widgetId}\" class=\"dojoDialog\" dojoattachpoint=\"wrapper\">\n	<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"	tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\n	<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n</div>\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){
dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);
if(this.closeNode){
this.setCloseControl(this.closeNode);
}
},postCreate:function(){
dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);
dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);
},show:function(){
if(this.lifetime){
this.timeRemaining=this.lifetime;
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
if(this.blockDuration&&this.closeNode){
if(this.lifetime>this.blockDuration){
this.closeNode.style.visibility="hidden";
}else{
this.closeNode.style.display="none";
}
}
if(this.timer){
clearInterval(this.timer);
}
this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100);
}
this.showModalDialog();
dojo.widget.Dialog.superclass.show.call(this);
},onLoad:function(){
this.placeModalDialog();
dojo.widget.Dialog.superclass.onLoad.call(this);
},fillInTemplate:function(){
},hide:function(){
this.hideModalDialog();
dojo.widget.Dialog.superclass.hide.call(this);
if(this.timer){
clearInterval(this.timer);
}
},setTimerNode:function(node){
this.timerNode=node;
},setCloseControl:function(node){
this.closeNode=dojo.byId(node);
dojo.event.connect(this.closeNode,"onclick",this,"hide");
},setShowControl:function(node){
node=dojo.byId(node);
dojo.event.connect(node,"onclick",this,"show");
},_onTick:function(){
if(this.timer){
this.timeRemaining-=100;
if(this.lifetime-this.timeRemaining>=this.blockDuration){
if(this.closeNode){
this.closeNode.style.visibility="visible";
}
}
if(!this.timeRemaining){
clearInterval(this.timer);
this.hide();
}else{
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
}
}
}});
dojo.provide("dojo.regexp");
dojo.evalObjPath("dojo.regexp.us",true);
dojo.regexp.tld=function(_8e9){
_8e9=(typeof _8e9=="object")?_8e9:{};
if(typeof _8e9.allowCC!="boolean"){
_8e9.allowCC=true;
}
if(typeof _8e9.allowInfra!="boolean"){
_8e9.allowInfra=true;
}
if(typeof _8e9.allowGeneric!="boolean"){
_8e9.allowGeneric=true;
}
var _8ea="arpa";
var _8eb="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(_8e9.allowInfra){
a.push(_8ea);
}
if(_8e9.allowGeneric){
a.push(_8eb);
}
if(_8e9.allowCC){
a.push(ccRE);
}
var _8ee="";
if(a.length>0){
_8ee="("+a.join("|")+")";
}
return _8ee;
};
dojo.regexp.ipAddress=function(_8ef){
_8ef=(typeof _8ef=="object")?_8ef:{};
if(typeof _8ef.allowDottedDecimal!="boolean"){
_8ef.allowDottedDecimal=true;
}
if(typeof _8ef.allowDottedHex!="boolean"){
_8ef.allowDottedHex=true;
}
if(typeof _8ef.allowDottedOctal!="boolean"){
_8ef.allowDottedOctal=true;
}
if(typeof _8ef.allowDecimal!="boolean"){
_8ef.allowDecimal=true;
}
if(typeof _8ef.allowHex!="boolean"){
_8ef.allowHex=true;
}
if(typeof _8ef.allowIPv6!="boolean"){
_8ef.allowIPv6=true;
}
if(typeof _8ef.allowHybrid!="boolean"){
_8ef.allowHybrid=true;
}
var _8f0="((\\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 _8f1="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _8f2="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _8f3="(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 _8f4="0[xX]0*[\\da-fA-F]{1,8}";
var _8f5="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _8f6="([\\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(_8ef.allowDottedDecimal){
a.push(_8f0);
}
if(_8ef.allowDottedHex){
a.push(_8f1);
}
if(_8ef.allowDottedOctal){
a.push(_8f2);
}
if(_8ef.allowDecimal){
a.push(_8f3);
}
if(_8ef.allowHex){
a.push(_8f4);
}
if(_8ef.allowIPv6){
a.push(_8f5);
}
if(_8ef.allowHybrid){
a.push(_8f6);
}
var _8f8="";
if(a.length>0){
_8f8="("+a.join("|")+")";
}
return _8f8;
};
dojo.regexp.host=function(_8f9){
_8f9=(typeof _8f9=="object")?_8f9:{};
if(typeof _8f9.allowIP!="boolean"){
_8f9.allowIP=true;
}
if(typeof _8f9.allowLocal!="boolean"){
_8f9.allowLocal=false;
}
if(typeof _8f9.allowPort!="boolean"){
_8f9.allowPort=true;
}
var _8fa="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_8f9);
var _8fb=(_8f9.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _8fc=_8fa;
if(_8f9.allowIP){
_8fc+="|"+dojo.regexp.ipAddress(_8f9);
}
if(_8f9.allowLocal){
_8fc+="|localhost";
}
return "("+_8fc+")"+_8fb;
};
dojo.regexp.url=function(_8fd){
_8fd=(typeof _8fd=="object")?_8fd:{};
if(typeof _8fd.scheme=="undefined"){
_8fd.scheme=[true,false];
}
var _8fe=dojo.regexp.buildGroupRE(_8fd.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _900="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _8fe+dojo.regexp.host(_8fd)+_900;
};
dojo.regexp.emailAddress=function(_901){
_901=(typeof _901=="object")?_901:{};
if(typeof _901.allowCruft!="boolean"){
_901.allowCruft=false;
}
_901.allowPort=false;
var _902="([\\da-z]+[-._+&'])*[\\da-z]+";
var _903=_902+"@"+dojo.regexp.host(_901);
if(_901.allowCruft){
_903="<?(mailto\\:)?"+_903+">?";
}
return _903;
};
dojo.regexp.emailAddressList=function(_904){
_904=(typeof _904=="object")?_904:{};
if(typeof _904.listSeparator!="string"){
_904.listSeparator="\\s;,";
}
var _905=dojo.regexp.emailAddress(_904);
var _906="("+_905+"\\s*["+_904.listSeparator+"]\\s*)*"+_905+"\\s*["+_904.listSeparator+"]?\\s*";
return _906;
};
dojo.regexp.integer=function(_907){
_907=(typeof _907=="object")?_907:{};
if(typeof _907.signed=="undefined"){
_907.signed=[true,false];
}
if(typeof _907.separator=="undefined"){
_907.separator="";
}else{
if(typeof _907.groupSize=="undefined"){
_907.groupSize=3;
}
}
var _908=dojo.regexp.buildGroupRE(_907.signed,function(q){
return q?"[-+]":"";
});
var _90a=dojo.regexp.buildGroupRE(_907.separator,function(sep){
if(sep==""){
return "(0|[1-9]\\d*)";
}
var grp=_907.groupSize,grp2=_907.groupSize2;
if(typeof grp2!="undefined"){
var _90e="(0|[1-9]\\d{0,"+(grp2-1)+"}(["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"("+_90e+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_90e;
}
return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
});
return _908+_90a;
};
dojo.regexp.realNumber=function(_90f){
_90f=(typeof _90f=="object")?_90f:{};
if(typeof _90f.places!="number"){
_90f.places=Infinity;
}
if(typeof _90f.decimal!="string"){
_90f.decimal=".";
}
if(typeof _90f.fractional=="undefined"){
_90f.fractional=[true,false];
}
if(typeof _90f.exponent=="undefined"){
_90f.exponent=[true,false];
}
if(typeof _90f.eSigned=="undefined"){
_90f.eSigned=[true,false];
}
var _910=dojo.regexp.integer(_90f);
var _911=dojo.regexp.buildGroupRE(_90f.fractional,function(q){
var re="";
if(q&&(_90f.places>0)){
re="\\"+_90f.decimal;
if(_90f.places==Infinity){
re="("+re+"\\d+)?";
}else{
re=re+"\\d{"+_90f.places+"}";
}
}
return re;
});
var _914=dojo.regexp.buildGroupRE(_90f.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_90f.eSigned})+")";
}
return "";
});
return _910+_911+_914;
};
dojo.regexp.currency=function(_916){
_916=(typeof _916=="object")?_916:{};
if(typeof _916.signed=="undefined"){
_916.signed=[true,false];
}
if(typeof _916.symbol=="undefined"){
_916.symbol="$";
}
if(typeof _916.placement!="string"){
_916.placement="before";
}
if(typeof _916.signPlacement!="string"){
_916.signPlacement="before";
}
if(typeof _916.separator=="undefined"){
_916.separator=",";
}
if(typeof _916.fractional=="undefined"&&typeof _916.cents!="undefined"){
dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
_916.fractional=_916.cents;
}
if(typeof _916.decimal!="string"){
_916.decimal=".";
}
var _917=dojo.regexp.buildGroupRE(_916.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _919=dojo.regexp.buildGroupRE(_916.symbol,function(_91a){
return "\\s?"+_91a.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_916.signPlacement){
case "before":
_919=_917+_919;
break;
case "after":
_919=_919+_917;
break;
}
var _91b=_916;
_91b.signed=false;
_91b.exponent=false;
var _91c=dojo.regexp.realNumber(_91b);
var _91d;
switch(_916.placement){
case "before":
_91d=_919+_91c;
break;
case "after":
_91d=_91c+_919;
break;
}
switch(_916.signPlacement){
case "around":
_91d="("+_91d+"|"+"\\("+_91d+"\\)"+")";
break;
case "begin":
_91d=_917+_91d;
break;
case "end":
_91d=_91d+_917;
break;
}
return _91d;
};
dojo.regexp.us.state=function(_91e){
_91e=(typeof _91e=="object")?_91e:{};
if(typeof _91e.allowTerritories!="boolean"){
_91e.allowTerritories=true;
}
if(typeof _91e.allowMilitary!="boolean"){
_91e.allowMilitary=true;
}
var _91f="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 _920="AS|FM|GU|MH|MP|PW|PR|VI";
var _921="AA|AE|AP";
if(_91e.allowTerritories){
_91f+="|"+_920;
}
if(_91e.allowMilitary){
_91f+="|"+_921;
}
return "("+_91f+")";
};
dojo.regexp.time=function(_922){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_922=(typeof _922=="object")?_922:{};
if(typeof _922.format=="undefined"){
_922.format="h:mm:ss t";
}
if(typeof _922.amSymbol!="string"){
_922.amSymbol="AM";
}
if(typeof _922.pmSymbol!="string"){
_922.pmSymbol="PM";
}
var _923=function(_924){
_924=_924.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_922.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_922.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_924=_924.replace("hh","(0[1-9]|1[0-2])");
_924=_924.replace("h","([1-9]|1[0-2])");
_924=_924.replace("HH","([01][0-9]|2[0-3])");
_924=_924.replace("H","([0-9]|1[0-9]|2[0-3])");
_924=_924.replace("mm","([0-5][0-9])");
_924=_924.replace("m","([1-5][0-9]|[0-9])");
_924=_924.replace("ss","([0-5][0-9])");
_924=_924.replace("s","([1-5][0-9]|[0-9])");
_924=_924.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _924;
};
return dojo.regexp.buildGroupRE(_922.format,_923);
};
dojo.regexp.numberFormat=function(_927){
_927=(typeof _927=="object")?_927:{};
if(typeof _927.format=="undefined"){
_927.format="###-###-####";
}
var _928=function(_929){
_929=_929.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_929=_929.replace(/\?/g,"\\d?");
_929=_929.replace(/#/g,"\\d");
return _929;
};
return dojo.regexp.buildGroupRE(_927.format,_928);
};
dojo.regexp.buildGroupRE=function(a,re){
if(!(a instanceof Array)){
return re(a);
}
var b=[];
for(var i=0;i<a.length;i++){
b.push(re(a[i]));
}
return "("+b.join("|")+")";
};
dojo.provide("dojo.validate.common");
dojo.validate.isText=function(_92e,_92f){
_92f=(typeof _92f=="object")?_92f:{};
if(/^\s*$/.test(_92e)){
return false;
}
if(typeof _92f.length=="number"&&_92f.length!=_92e.length){
return false;
}
if(typeof _92f.minlength=="number"&&_92f.minlength>_92e.length){
return false;
}
if(typeof _92f.maxlength=="number"&&_92f.maxlength<_92e.length){
return false;
}
return true;
};
dojo.validate.isInteger=function(_930,_931){
var re=new RegExp("^"+dojo.regexp.integer(_931)+"$");
return re.test(_930);
};
dojo.validate.isRealNumber=function(_933,_934){
var re=new RegExp("^"+dojo.regexp.realNumber(_934)+"$");
return re.test(_933);
};
dojo.validate.isCurrency=function(_936,_937){
var re=new RegExp("^"+dojo.regexp.currency(_937)+"$");
return re.test(_936);
};
dojo.validate.isInRange=function(_939,_93a){
_939=_939.replace(dojo.lang.has(_93a,"separator")?_93a.separator:",","","g").replace(dojo.lang.has(_93a,"symbol")?_93a.symbol:"$","");
if(isNaN(_939)){
return false;
}
_93a=(typeof _93a=="object")?_93a:{};
var max=(typeof _93a.max=="number")?_93a.max:Infinity;
var min=(typeof _93a.min=="number")?_93a.min:-Infinity;
var dec=(typeof _93a.decimal=="string")?_93a.decimal:".";
var _93e="[^"+dec+"\\deE+-]";
_939=_939.replace(RegExp(_93e,"g"),"");
_939=_939.replace(/^([+-]?)(\D*)/,"$1");
_939=_939.replace(/(\D*)$/,"");
_93e="(\\d)["+dec+"](\\d)";
_939=_939.replace(RegExp(_93e,"g"),"$1.$2");
_939=Number(_939);
if(_939<min||_939>max){
return false;
}
return true;
};
dojo.validate.isNumberFormat=function(_93f,_940){
var re=new RegExp("^"+dojo.regexp.numberFormat(_940)+"$","i");
return re.test(_93f);
};
dojo.validate.isValidLuhn=function(_942){
var sum,_944,_945;
if(typeof _942!="string"){
_942=String(_942);
}
_942=_942.replace(/[- ]/g,"");
_944=_942.length%2;
sum=0;
for(var i=0;i<_942.length;i++){
_945=parseInt(_942.charAt(i));
if(i%2==_944){
_945*=2;
}
if(_945>9){
_945-=9;
}
sum+=_945;
}
return !(sum%10);
};
dojo.provide("dojo.validate.creditCard");
dojo.validate.isValidCreditCard=function(_947,_948){
if(_947&&_948&&((_948.toLowerCase()=="er"||dojo.validate.isValidLuhn(_947))&&(dojo.validate.isValidCreditCardNumber(_947,_948.toLowerCase())))){
return true;
}
return false;
};
dojo.validate.isValidCreditCardNumber=function(_949,_94a){
if(typeof _949!="string"){
_949=String(_949);
}
_949=_949.replace(/[- ]/g,"");
var _94b=[];
var _94c={"mc":"5[1-5][0-9]{14}","ec":"5[1-5][0-9]{14}","vi":"4([0-9]{12}|[0-9]{15})","ax":"3[47][0-9]{13}","dc":"3(0[0-5][0-9]{11}|[68][0-9]{12})","bl":"3(0[0-5][0-9]{11}|[68][0-9]{12})","di":"6011[0-9]{12}","jcb":"(3[0-9]{15}|(2131|1800)[0-9]{11})","er":"2(014|149)[0-9]{11}"};
if(_94a&&dojo.lang.has(_94c,_94a.toLowerCase())){
return Boolean(_949.match(_94c[_94a.toLowerCase()]));
}else{
for(var p in _94c){
if(_949.match("^"+_94c[p]+"$")!=null){
_94b.push(p);
}
}
return (_94b.length)?_94b.join("|"):false;
}
};
dojo.validate.isValidCvv=function(_94e,_94f){
if(typeof _94e!="string"){
_94e=String(_94e);
}
var _950;
switch(_94f.toLowerCase()){
case "mc":
case "ec":
case "vi":
case "di":
_950="###";
break;
case "ax":
_950="####";
break;
default:
return false;
}
var _951={format:_950};
if((_94e.length==_950.length)&&(dojo.validate.isNumberFormat(_94e,_951))){
return true;
}
return false;
};
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_952,_953){
_952.setMonth(0);
_952.setDate(_953);
return _952;
};
dojo.date.getDayOfYear=function(_954){
var _955=_954.getFullYear();
var _956=new Date(_955-1,11,31);
return Math.floor((_954.getTime()-_956.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_957,week,_959){
if(arguments.length==1){
_959=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_95a,_95b){
if(arguments.length==1){
_95b=0;
}
var _95c=new Date(_95a.getFullYear(),0,1);
var day=_95c.getDay();
_95c.setDate(_95c.getDate()-day+_95b-(day>_95b?7:0));
return Math.floor((_95a.getTime()-_95c.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_95e,week,_960){
if(arguments.length==1){
_960=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_961,_962){
if(arguments.length==1){
_962=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(_963){
var _964=_963.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_964==1&&dojo.date.isLeapYear(_963)){
return 29;
}else{
return days[_964];
}
};
dojo.date.isLeapYear=function(_966){
var year=_966.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_968){
var str=_968.toString();
var tz="";
var _96b;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_96b=str.match(pat))){
tz=_96b[1];
}else{
str=_968.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_96b=str.match(pat))){
tz=_96b[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_96e){
var date=_96e.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(_970,_971,_972){
var dA=_970;
var dB=_971||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_972||(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,_97a,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(_97a){
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 _97e=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;
_97e=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_97e=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*_97e)+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,_986){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _987=dtB.getFullYear()-dtA.getFullYear();
var _988=(dtB.getMonth()-dtA.getMonth())+(_987*12);
var _989=dtB.getTime()-dtA.getTime();
var _98a=_989/1000;
var _98b=_98a/60;
var _98c=_98b/60;
var _98d=_98c/24;
var _98e=_98d/7;
var _98f=0;
with(dojo.date.dateParts){
switch(_986){
case YEAR:
_98f=_987;
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+=(_987*4);
_98f=qB-qA;
break;
case MONTH:
_98f=_988;
break;
case WEEK:
_98f=parseInt(_98e);
break;
case DAY:
_98f=_98d;
break;
case WEEKDAY:
var days=Math.round(_98d);
var _995=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_995*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_995=parseInt(days/7);
mod=days%7;
var _99a=new Date(dtA);
_99a.setDate(_99a.getDate()+(_995*7));
var _99b=_99a.getDay();
if(_98d>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 (_99b+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_98d<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 (_99b+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_995*2);
}
_98f=days;
break;
case HOUR:
_98f=_98c;
break;
case MINUTE:
_98f=_98b;
break;
case SECOND:
_98f=_98a;
break;
case MILLISECOND:
_98f=_989;
break;
default:
break;
}
}
return Math.round(_98f);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_99c){
var _99d={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};
_99c=dojo.hostenv.normalizeLocale(_99c);
var _99e=_99c.split("-")[1];
var dow=_99d[_99e];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_9a0){
var _9a1={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 _9a2={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};
_9a0=dojo.hostenv.normalizeLocale(_9a0);
var _9a3=_9a0.split("-")[1];
var _9a4=_9a1[_9a3];
var end=_9a2[_9a3];
if(typeof _9a4=="undefined"){
_9a4=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_9a4,end:end};
};
dojo.date.isWeekend=function(_9a6,_9a7){
var _9a8=dojo.date.getWeekend(_9a7);
var day=(_9a6||new Date()).getDay();
if(_9a8.end<_9a8.start){
_9a8.end+=7;
if(day<_9a8.start){
day+=7;
}
}
return day>=_9a8.start&&day<=_9a8.end;
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_9aa,_9ab,_9ac){
dojo.hostenv.preloadLocalizations();
_9ac=dojo.hostenv.normalizeLocale(_9ac);
var _9ad=_9ac.split("-");
var _9ae=[_9aa,"nls",_9ab].join(".");
var _9af=dojo.hostenv.findModule(_9ae,true);
var _9b0;
for(var i=_9ad.length;i>0;i--){
var loc=_9ad.slice(0,i).join("_");
if(_9af[loc]){
_9b0=_9af[loc];
break;
}
}
if(!_9b0){
_9b0=_9af.ROOT;
}
if(_9b0){
var _9b3=function(){
};
_9b3.prototype=_9b0;
return new _9b3();
}
dojo.raise("Bundle not found: "+_9ab+" in "+_9aa+" , locale="+_9ac);
};
dojo.i18n.isLTR=function(_9b4){
var lang=dojo.hostenv.normalizeLocale(_9b4).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(_9b7,_9b8){
if(typeof _9b8=="string"){
dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");
return dojo.date.strftime(_9b7,_9b8);
}
function formatPattern(_9b9,_9ba){
return _9ba.replace(/([a-z])\1*/ig,function(_9bb){
var s;
var c=_9bb.charAt(0);
var l=_9bb.length;
var pad;
var _9c0=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_9b9.getFullYear()<0?1:0];
break;
case "y":
s=_9b9.getFullYear();
switch(l){
case 1:
break;
case 2:
s=String(s).substr(-2);
break;
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_9b9.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=_9b9.getMonth();
var _9c3;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_9c3=_9c0[l-3];
break;
}
if(_9c3){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_9c3].join("-");
s=info[prop][m];
}
break;
case "w":
var _9c6=0;
s=dojo.date.getWeekOfYear(_9b9,_9c6);
pad=true;
break;
case "d":
s=_9b9.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_9b9);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_9b9.getDay();
var _9c3;
switch(l){
case 1:
case 2:
if(c=="e"){
var _9c8=dojo.date.getFirstDayOfWeek(_9b8.locale);
d=(d-_9c8+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_9c3=_9c0[l-3];
break;
}
if(_9c3){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_9c3].join("-");
s=info[prop][d];
}
break;
case "a":
var _9c9=(_9b9.getHours()<12)?"am":"pm";
s=info[_9c9];
break;
case "h":
case "H":
case "K":
case "k":
var h=_9b9.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=_9b9.getMinutes();
pad=true;
break;
case "s":
s=_9b9.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_9b9.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_9b9);
if(s){
break;
}
l=4;
case "Z":
var _9cb=_9b9.getTimezoneOffset();
var tz=[(_9cb<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_9cb)/60),2),dojo.string.pad(Math.abs(_9cb)%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":
dojo.debug(_9bb+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_9ba);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_9b8=_9b8||{};
var _9cd=dojo.hostenv.normalizeLocale(_9b8.locale);
var _9ce=_9b8.formatLength||"full";
var info=dojo.date._getGregorianBundle(_9cd);
var str=[];
var _9d0=dojo.lang.curry(this,formatPattern,_9b7);
if(_9b8.selector!="timeOnly"){
var _9d1=_9b8.datePattern||info["dateFormat-"+_9ce];
if(_9d1){
str.push(_processPattern(_9d1,_9d0));
}
}
if(_9b8.selector!="dateOnly"){
var _9d2=_9b8.timePattern||info["timeFormat-"+_9ce];
if(_9d2){
str.push(_processPattern(_9d2,_9d0));
}
}
var _9d3=str.join(" ");
return _9d3;
};
dojo.date.parse=function(_9d4,_9d5){
_9d5=_9d5||{};
var _9d6=dojo.hostenv.normalizeLocale(_9d5.locale);
var info=dojo.date._getGregorianBundle(_9d6);
var _9d8=_9d5.formatLength||"full";
if(!_9d5.selector){
_9d5.selector="dateOnly";
}
var _9d9=_9d5.datePattern||info["dateFormat-"+_9d8];
var _9da=_9d5.timePattern||info["timeFormat-"+_9d8];
var _9db;
if(_9d5.selector=="dateOnly"){

_9db=_9d9;
}else{
if(_9d5.selector=="timeOnly"){
_9db=_9da;
}else{
if(_9d5.selector=="dateTime"){
_9db=_9d9+" "+_9da;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_9d5.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_9db=_9d9;
}
}
}
var _9dd=[];
var _9de=_processPattern(_9db,dojo.lang.curry(this,_buildDateTimeRE,_9dd,info,_9d5));
var _9df=new RegExp("^"+_9de+"$");
var _9e0=_9df.exec(_9d4);
if(!_9e0){
return null;
}
var _9e1=["abbr","wide","narrow"];
var _9e2=new Date(1972,0);
var _9e3={};
for(var i=1;i<_9e0.length;i++){
var grp=_9dd[i-1];
var l=grp.length;
var v=_9e0[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_9e2.setFullYear(v);
_9e3.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _9e9=year.substring(0,2)*100;
var _9ea=Number(year.substring(2,4));
var _9eb=Math.min(_9ea+20,99);
var num=(v<_9eb)?_9e9+v:_9e9-100+v;
_9e2.setFullYear(num);
_9e3.year=num;
}else{
if(_9d5.strict){
return null;
}
_9e2.setFullYear(v);
_9e3.year=v;
}
}
break;
case "M":
if(l>2){
if(!_9d5.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _9ed=info["months-format-"+_9e1[l-3]].concat();
for(var j=0;j<_9ed.length;j++){
if(!_9d5.strict){
_9ed[j]=_9ed[j].toLowerCase();
}
if(v==_9ed[j]){
_9e2.setMonth(j);
_9e3.month=j;
break;
}
}
if(j==_9ed.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_9e2.setMonth(v-1);
_9e3.month=v-1;
}
break;
case "E":
case "e":
if(!_9d5.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_9e1[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_9d5.strict){
days[j]=days[j].toLowerCase();
}
if(v==days[j]){
break;
}
}
if(j==days.length){
dojo.debug("dojo.date.parse: Could not parse weekday name: '"+v+"'.");
return null;
}
break;
case "d":
_9e2.setDate(v);
_9e3.date=v;
break;
case "a":
var am=_9d5.am||info.am;
var pm=_9d5.pm||info.pm;
if(!_9d5.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_9d5.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _9f2=_9e2.getHours();
if(v==pm&&_9f2<12){
_9e2.setHours(_9f2+12);
}else{
if(v==am&&_9f2==12){
_9e2.setHours(0);
}
}
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
dojo.debug("dojo.date.parse: Illegal hours value");
return null;
}
_9e2.setHours(v);
break;
case "m":
_9e2.setMinutes(v);
break;
case "s":
_9e2.setSeconds(v);
break;
case "S":
_9e2.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_9e3.year&&_9e2.getFullYear()!=_9e3.year){
dojo.debug("Parsed year: '"+_9e2.getFullYear()+"' did not match input year: '"+_9e3.year+"'.");
return null;
}
if(_9e3.month&&_9e2.getMonth()!=_9e3.month){
dojo.debug("Parsed month: '"+_9e2.getMonth()+"' did not match input month: '"+_9e3.month+"'.");
return null;
}
if(_9e3.date&&_9e2.getDate()!=_9e3.date){
dojo.debug("Parsed day of month: '"+_9e2.getDate()+"' did not match input day of month: '"+_9e3.date+"'.");
return null;
}
return _9e2;
};
function _processPattern(_9f3,_9f4,_9f5,_9f6){
var _9f7=function(x){
return x;
};
_9f4=_9f4||_9f7;
_9f5=_9f5||_9f7;
_9f6=_9f6||_9f7;
var _9f9=_9f3.match(/(''|[^'])+/g);
var _9fa=false;
for(var i=0;i<_9f9.length;i++){
if(!_9f9[i]){
_9f9[i]="";
}else{
_9f9[i]=(_9fa?_9f5:_9f4)(_9f9[i]);
_9fa=!_9fa;
}
}
return _9f6(_9f9.join(""));
}
function _buildDateTimeRE(_9fc,info,_9fe,_9ff){
return _9ff.replace(/([a-z])\1*/ig,function(_a00){
var s;
var c=_a00.charAt(0);
var l=_a00.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,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=_9fe.am||info.am||"AM";
var pm=_9fe.pm||info.pm||"PM";
if(_9fe.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="+_9ff);
}
if(_9fc){
_9fc.push(_a00);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_a06,_a07,_a08){
var _a09=null;
function _(s,n){
return dojo.string.pad(s,n||2,_a09||"0");
}
var info=dojo.date._getGregorianBundle(_a08);
function $(_a0d){
switch(_a0d){
case "a":
return dojo.date.getDayShortName(_a06,_a08);
case "A":
return dojo.date.getDayName(_a06,_a08);
case "b":
case "h":
return dojo.date.getMonthShortName(_a06,_a08);
case "B":
return dojo.date.getMonthName(_a06,_a08);
case "c":
return dojo.date.format(_a06,{locale:_a08});
case "C":
return _(Math.floor(_a06.getFullYear()/100));
case "d":
return _(_a06.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_a09==null){
_a09=" ";
}
return _(_a06.getDate());
case "f":
if(_a09==null){
_a09=" ";
}
return _(_a06.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_a06.getHours());
case "I":
return _(_a06.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_a06),3);
case "k":
if(_a09==null){
_a09=" ";
}
return _(_a06.getHours());
case "l":
if(_a09==null){
_a09=" ";
}
return _(_a06.getHours()%12||12);
case "m":
return _(_a06.getMonth()+1);
case "M":
return _(_a06.getMinutes());
case "n":
return "\n";
case "p":
return info[_a06.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_a06.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_a06.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_a06));
case "V":
return _(dojo.date.getIsoWeekOfYear(_a06));
case "W":
return _(dojo.date.getWeekOfYear(_a06,1));
case "w":
return String(_a06.getDay());
case "x":
return dojo.date.format(_a06,{selector:"dateOnly",locale:_a08});
case "X":
return dojo.date.format(_a06,{selector:"timeOnly",locale:_a08});
case "y":
return _(_a06.getFullYear()%100);
case "Y":
return String(_a06.getFullYear());
case "z":
var _a0e=_a06.getTimezoneOffset();
return (_a0e>0?"-":"+")+_(Math.floor(Math.abs(_a0e)/60))+":"+_(Math.abs(_a0e)%60);
case "Z":
return dojo.date.getTimezoneName(_a06);
case "%":
return "%";
}
}
var _a0f="";
var i=0;
var _a11=0;
var _a12=null;
while((_a11=_a07.indexOf("%",i))!=-1){
_a0f+=_a07.substring(i,_a11++);
switch(_a07.charAt(_a11++)){
case "_":
_a09=" ";
break;
case "-":
_a09="";
break;
case "0":
_a09="0";
break;
case "^":
_a12="upper";
break;
case "*":
_a12="lower";
break;
case "#":
_a12="swap";
break;
default:
_a09=null;
_a11--;
break;
}
var _a13=$(_a07.charAt(_a11++));
switch(_a12){
case "upper":
_a13=_a13.toUpperCase();
break;
case "lower":
_a13=_a13.toLowerCase();
break;
case "swap":
var _a14=_a13.toLowerCase();
var _a15="";
var j=0;
var ch="";
while(j<_a13.length){
ch=_a13.charAt(j);
_a15+=(ch==_a14.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_a13=_a15;
break;
default:
break;
}
_a12=null;
_a0f+=_a13;
i=_a11;
}
_a0f+=_a07.substring(i);
return _a0f;
};
(function(){
var _a18=[];
dojo.date.addCustomFormats=function(_a19,_a1a){
_a18.push({pkg:_a19,name:_a1a});
};
dojo.date._getGregorianBundle=function(_a1b){
var _a1c={};
dojo.lang.forEach(_a18,function(desc){
var _a1e=dojo.i18n.getLocalization(desc.pkg,desc.name,_a1b);
_a1c=dojo.lang.mixin(_a1c,_a1e);
},this);
return _a1c;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_a22){
var _a23;
var _a24=dojo.date._getGregorianBundle(_a22);
var _a25=[item,use,type];
if(use=="standAlone"){
_a23=_a24[_a25.join("-")];
}
_a25[1]="format";
return (_a23||_a24[_a25.join("-")]).concat();
};
dojo.date.getDayName=function(_a26,_a27){
return dojo.date.getNames("days","wide","format",_a27)[_a26.getDay()];
};
dojo.date.getDayShortName=function(_a28,_a29){
return dojo.date.getNames("days","abbr","format",_a29)[_a28.getDay()];
};
dojo.date.getMonthName=function(_a2a,_a2b){
return dojo.date.getNames("months","wide","format",_a2b)[_a2a.getMonth()];
};
dojo.date.getMonthShortName=function(_a2c,_a2d){
return dojo.date.getNames("months","abbr","format",_a2d)[_a2c.getMonth()];
};
dojo.date.toRelativeString=function(_a2e){
var now=new Date();
var diff=(now-_a2e)/1000;
var end=" ago";
var _a32=false;
if(diff<0){
_a32=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 _a32?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_a2e);
};
dojo.date.toSql=function(_a33,_a34){
return dojo.date.strftime(_a33,"%F"+!_a34?" %T":"");
};
dojo.date.fromSql=function(_a35){
var _a36=_a35.split(/[\- :]/g);
while(_a36.length<6){
_a36.push(0);
}
return new Date(_a36[0],(parseInt(_a36[1],10)-1),_a36[2],_a36[3],_a36[4],_a36[5]);
};

