You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1013 lines
22 KiB
1013 lines
22 KiB
/*
|
|
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:4,patch:0,flag:"",revision:Number("$Rev: 6258 $".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);
|
|
}
|
|
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){
|
|
return _6e?_6e.toLowerCase():dojo.locale;
|
|
};
|
|
dojo.hostenv.searchLocalePath=function(_6f,_70,_71){
|
|
_6f=dojo.hostenv.normalizeLocale(_6f);
|
|
var _72=_6f.split("-");
|
|
var _73=[];
|
|
for(var i=_72.length;i>0;i--){
|
|
_73.push(_72.slice(0,i).join("-"));
|
|
}
|
|
_73.push(false);
|
|
if(_70){
|
|
_73.reverse();
|
|
}
|
|
for(var j=_73.length-1;j>=0;j--){
|
|
var loc=_73[j]||"ROOT";
|
|
var _77=_71(loc);
|
|
if(_77){
|
|
break;
|
|
}
|
|
}
|
|
};
|
|
dojo.hostenv.localesGenerated;
|
|
dojo.hostenv.registerNlsPrefix=function(){
|
|
dojo.registerModulePath("nls","nls");
|
|
};
|
|
dojo.hostenv.preloadLocalizations=function(){
|
|
if(dojo.hostenv.localesGenerated){
|
|
dojo.hostenv.registerNlsPrefix();
|
|
function preload(_78){
|
|
_78=dojo.hostenv.normalizeLocale(_78);
|
|
dojo.hostenv.searchLocalePath(_78,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 _7b=djConfig.extraLocale||[];
|
|
for(var i=0;i<_7b.length;i++){
|
|
preload(_7b[i]);
|
|
}
|
|
}
|
|
dojo.hostenv.preloadLocalizations=function(){
|
|
};
|
|
};
|
|
dojo.requireLocalization=function(_7d,_7e,_7f){
|
|
dojo.hostenv.preloadLocalizations();
|
|
var _80=[_7d,"nls",_7e].join(".");
|
|
var _81=dojo.hostenv.findModule(_80);
|
|
if(_81){
|
|
if(djConfig.localizationComplete&&_81._built){
|
|
return;
|
|
}
|
|
var _82=dojo.hostenv.normalizeLocale(_7f).replace("-","_");
|
|
var _83=_80+"."+_82;
|
|
if(dojo.hostenv.findModule(_83)){
|
|
return;
|
|
}
|
|
}
|
|
_81=dojo.hostenv.startPackage(_80);
|
|
var _84=dojo.hostenv.getModuleSymbols(_7d);
|
|
var _85=_84.concat("nls").join("/");
|
|
var _86;
|
|
dojo.hostenv.searchLocalePath(_7f,false,function(loc){
|
|
var _88=loc.replace("-","_");
|
|
var _89=_80+"."+_88;
|
|
var _8a=false;
|
|
if(!dojo.hostenv.findModule(_89)){
|
|
dojo.hostenv.startPackage(_89);
|
|
var _8b=[_85];
|
|
if(loc!="ROOT"){
|
|
_8b.push(loc);
|
|
}
|
|
_8b.push(_7e);
|
|
var _8c=_8b.join("/")+".js";
|
|
_8a=dojo.hostenv.loadPath(_8c,null,function(_8d){
|
|
var _8e=function(){
|
|
};
|
|
_8e.prototype=_86;
|
|
_81[_88]=new _8e();
|
|
for(var j in _8d){
|
|
_81[_88][j]=_8d[j];
|
|
}
|
|
});
|
|
}else{
|
|
_8a=true;
|
|
}
|
|
if(_8a&&_81[_88]){
|
|
_86=_81[_88];
|
|
}else{
|
|
_81[_88]=_86;
|
|
}
|
|
});
|
|
};
|
|
(function(){
|
|
var _90=djConfig.extraLocale;
|
|
if(_90){
|
|
if(!_90 instanceof Array){
|
|
_90=[_90];
|
|
}
|
|
var req=dojo.requireLocalization;
|
|
dojo.requireLocalization=function(m,b,_94){
|
|
req(m,b,_94);
|
|
if(_94){
|
|
return;
|
|
}
|
|
for(var i=0;i<_90.length;i++){
|
|
req(m,b,_90[i]);
|
|
}
|
|
};
|
|
}
|
|
})();
|
|
}
|
|
if(typeof window!="undefined"){
|
|
(function(){
|
|
if(djConfig.allowQueryConfig){
|
|
var _96=document.location.toString();
|
|
var _97=_96.split("?",2);
|
|
if(_97.length>1){
|
|
var _98=_97[1];
|
|
var _99=_98.split("&");
|
|
for(var x in _99){
|
|
var sp=_99[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 _9d=document.getElementsByTagName("script");
|
|
var _9e=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
|
|
for(var i=0;i<_9d.length;i++){
|
|
var src=_9d[i].getAttribute("src");
|
|
if(!src){
|
|
continue;
|
|
}
|
|
var m=src.match(_9e);
|
|
if(m){
|
|
var _a2=src.substring(0,m.index);
|
|
if(src.indexOf("bootstrap1")>-1){
|
|
_a2+="../";
|
|
}
|
|
if(!this["djConfig"]){
|
|
djConfig={};
|
|
}
|
|
if(djConfig["baseScriptUri"]==""){
|
|
djConfig["baseScriptUri"]=_a2;
|
|
}
|
|
if(djConfig["baseRelativePath"]==""){
|
|
djConfig["baseRelativePath"]=_a2;
|
|
}
|
|
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 _aa=dua.indexOf("Gecko");
|
|
drh.mozilla=drh.moz=(_aa>=0)&&(!drh.khtml);
|
|
if(drh.mozilla){
|
|
drh.geckoVersion=dua.substring(_aa+6,_aa+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 _ac=window["document"];
|
|
var tdi=_ac["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;
|
|
}
|
|
}
|
|
})();
|
|
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 _b0=null;
|
|
var _b1=null;
|
|
try{
|
|
_b0=new XMLHttpRequest();
|
|
}
|
|
catch(e){
|
|
}
|
|
if(!_b0){
|
|
for(var i=0;i<3;++i){
|
|
var _b3=dojo.hostenv._XMLHTTP_PROGIDS[i];
|
|
try{
|
|
_b0=new ActiveXObject(_b3);
|
|
}
|
|
catch(e){
|
|
_b1=e;
|
|
}
|
|
if(_b0){
|
|
dojo.hostenv._XMLHTTP_PROGIDS=[_b3];
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if(!_b0){
|
|
return dojo.raise("XMLHTTP not available",_b1);
|
|
}
|
|
return _b0;
|
|
};
|
|
dojo.hostenv._blockAsync=false;
|
|
dojo.hostenv.getText=function(uri,_b5,_b6){
|
|
if(!_b5){
|
|
this._blockAsync=true;
|
|
}
|
|
var _b7=this.getXmlhttpObject();
|
|
function isDocumentOk(_b8){
|
|
var _b9=_b8["status"];
|
|
return Boolean((!_b9)||((200<=_b9)&&(300>_b9))||(_b9==304));
|
|
}
|
|
if(_b5){
|
|
var _ba=this,_bb=null,gbl=dojo.global();
|
|
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
|
|
_b7.onreadystatechange=function(){
|
|
if(_bb){
|
|
gbl.clearTimeout(_bb);
|
|
_bb=null;
|
|
}
|
|
if(_ba._blockAsync||(xhr&&xhr._blockAsync)){
|
|
_bb=gbl.setTimeout(function(){
|
|
_b7.onreadystatechange.apply(this);
|
|
},10);
|
|
}else{
|
|
if(4==_b7.readyState){
|
|
if(isDocumentOk(_b7)){
|
|
_b5(_b7.responseText);
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|
|
_b7.open("GET",uri,_b5?true:false);
|
|
try{
|
|
_b7.send(null);
|
|
if(_b5){
|
|
return null;
|
|
}
|
|
if(!isDocumentOk(_b7)){
|
|
var err=Error("Unable to load "+uri+" status:"+_b7.status);
|
|
err.status=_b7.status;
|
|
err.responseText=_b7.responseText;
|
|
throw err;
|
|
}
|
|
}
|
|
catch(e){
|
|
this._blockAsync=false;
|
|
if((_b6)&&(!_b5)){
|
|
return null;
|
|
}else{
|
|
throw e;
|
|
}
|
|
}
|
|
this._blockAsync=false;
|
|
return _b7.responseText;
|
|
};
|
|
dojo.hostenv.defaultDebugContainerId="dojoDebug";
|
|
dojo.hostenv._println_buffer=[];
|
|
dojo.hostenv._println_safe=false;
|
|
dojo.hostenv.println=function(_bf){
|
|
if(!dojo.hostenv._println_safe){
|
|
dojo.hostenv._println_buffer.push(_bf);
|
|
}else{
|
|
try{
|
|
var _c0=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
|
|
if(!_c0){
|
|
_c0=dojo.body();
|
|
}
|
|
var div=document.createElement("div");
|
|
div.appendChild(document.createTextNode(_bf));
|
|
_c0.appendChild(div);
|
|
}
|
|
catch(e){
|
|
try{
|
|
document.write("<div>"+_bf+"</div>");
|
|
}
|
|
catch(e2){
|
|
window.status=_bf;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
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(_c2,_c3,fp,_c5){
|
|
var _c6=_c2["on"+_c3]||function(){
|
|
};
|
|
_c2["on"+_c3]=function(){
|
|
fp.apply(_c2,arguments);
|
|
_c6.apply(_c2,arguments);
|
|
};
|
|
return true;
|
|
}
|
|
function dj_load_init(e){
|
|
var _c8=(e&&e.type)?e.type.toLowerCase():"load";
|
|
if(arguments.callee.initialized||(_c8!="domcontentloaded"&&_c8!="load")){
|
|
return;
|
|
}
|
|
arguments.callee.initialized=true;
|
|
if(typeof (_timer)!="undefined"){
|
|
clearInterval(_timer);
|
|
delete _timer;
|
|
}
|
|
var _c9=function(){
|
|
if(dojo.render.html.ie){
|
|
dojo.hostenv.makeWidgets();
|
|
}
|
|
};
|
|
if(dojo.hostenv.inFlightCount==0){
|
|
_c9();
|
|
dojo.hostenv.modulesLoaded();
|
|
}else{
|
|
dojo.addOnLoad(_c9);
|
|
}
|
|
}
|
|
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 _cb=[];
|
|
if(djConfig.searchIds&&djConfig.searchIds.length>0){
|
|
_cb=_cb.concat(djConfig.searchIds);
|
|
}
|
|
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
|
|
_cb=_cb.concat(dojo.hostenv.searchIds);
|
|
}
|
|
if((djConfig.parseWidgets)||(_cb.length>0)){
|
|
if(dojo.evalObjPath("dojo.widget.Parse")){
|
|
var _cc=new dojo.xml.Parse();
|
|
if(_cb.length>0){
|
|
for(var x=0;x<_cb.length;x++){
|
|
var _ce=document.getElementById(_cb[x]);
|
|
if(!_ce){
|
|
continue;
|
|
}
|
|
var _cf=_cc.parseElement(_ce,null,true);
|
|
dojo.widget.getParser().createComponents(_cf);
|
|
}
|
|
}else{
|
|
if(djConfig.parseWidgets){
|
|
var _cf=_cc.parseElement(dojo.body(),null,true);
|
|
dojo.widget.getParser().createComponents(_cf);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
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(_d4,_d5){
|
|
dj_currentContext=_d4;
|
|
dj_currentDocument=_d5;
|
|
};
|
|
dojo._fireCallback=function(_d6,_d7,_d8){
|
|
if((_d7)&&((typeof _d6=="string")||(_d6 instanceof String))){
|
|
_d6=_d7[_d6];
|
|
}
|
|
return (_d7?_d6.apply(_d7,_d8||[]):_d6());
|
|
};
|
|
dojo.withGlobal=function(_d9,_da,_db,_dc){
|
|
var _dd;
|
|
var _de=dj_currentContext;
|
|
var _df=dj_currentDocument;
|
|
try{
|
|
dojo.setContext(_d9,_d9.document);
|
|
_dd=dojo._fireCallback(_da,_db,_dc);
|
|
}
|
|
finally{
|
|
dojo.setContext(_de,_df);
|
|
}
|
|
return _dd;
|
|
};
|
|
dojo.withDoc=function(_e0,_e1,_e2,_e3){
|
|
var _e4;
|
|
var _e5=dj_currentDocument;
|
|
try{
|
|
dj_currentDocument=_e0;
|
|
_e4=dojo._fireCallback(_e1,_e2,_e3);
|
|
}
|
|
finally{
|
|
dj_currentDocument=_e5;
|
|
}
|
|
return _e4;
|
|
};
|
|
}
|
|
(function(){
|
|
if(typeof dj_usingBootstrap!="undefined"){
|
|
return;
|
|
}
|
|
var _e6=false;
|
|
var _e7=false;
|
|
var _e8=false;
|
|
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
|
|
_e6=true;
|
|
}else{
|
|
if(typeof this["load"]=="function"){
|
|
_e7=true;
|
|
}else{
|
|
if(window.widget){
|
|
_e8=true;
|
|
}
|
|
}
|
|
}
|
|
var _e9=[];
|
|
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
|
|
_e9.push("debug.js");
|
|
}
|
|
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_e6)&&(!_e8)){
|
|
_e9.push("browser_debug.js");
|
|
}
|
|
var _ea=djConfig["baseScriptUri"];
|
|
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
|
|
_ea=djConfig["baseLoaderUri"];
|
|
}
|
|
for(var x=0;x<_e9.length;x++){
|
|
var _ec=_ea+"src/"+_e9[x];
|
|
if(_e6||_e7){
|
|
load(_ec);
|
|
}else{
|
|
try{
|
|
document.write("<scr"+"ipt type='text/javascript' src='"+_ec+"'></scr"+"ipt>");
|
|
}
|
|
catch(e){
|
|
var _ed=document.createElement("script");
|
|
_ed.src=_ec;
|
|
document.getElementsByTagName("head")[0].appendChild(_ed);
|
|
}
|
|
}
|
|
}
|
|
})();
|
|
|
|
|