/*
	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:2,flag:"_2",revision:Number("$Rev: 7616 $".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"||(djConfig["useXDomain"]&&dojo.render.html.opera)){
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);
};
if(djConfig["modulePaths"]){
for(var param in djConfig["modulePaths"]){
dojo.registerModulePath(param,djConfig["modulePaths"][param]);
}
}
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;
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["enableMozDomContentLoaded"]===true))){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.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;
};
}
dojo.requireIf((djConfig["isDebug"]||djConfig["debugAtAllCosts"]),"dojo.debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&!djConfig["useXDomain"],"dojo.browser_debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&djConfig["useXDomain"],"dojo.browser_debug_xd");
dojo.provide("dojo.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,_f4,_f5){
var out="";
for(var i=0;i<_f4;i++){
out+=str;
if(_f5&&i<_f4-1){
out+=_f5;
}
}
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.lang.common");
dojo.lang.inherits=function(_103,_104){
if(!dojo.lang.isFunction(_104)){
dojo.raise("dojo.inherits: superclass argument ["+_104+"] must be a function (subclass: ["+_103+"']");
}
_103.prototype=new _104();
_103.prototype.constructor=_103;
_103.superclass=_104.prototype;
_103["super"]=_104.prototype;
};
dojo.lang._mixin=function(obj,_106){
var tobj={};
for(var x in _106){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_106[x])){
obj[x]=_106[x];
}
}
if(dojo.render.html.ie&&(typeof (_106["toString"])=="function")&&(_106["toString"]!=obj["toString"])&&(_106["toString"]!=tobj["toString"])){
obj.toString=_106.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_10a){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_10d,_10e){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_10d.prototype,arguments[i]);
}
return _10d;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_111,_112,_113,_114){
if(!dojo.lang.isArrayLike(_111)&&dojo.lang.isArrayLike(_112)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_111;
_111=_112;
_112=temp;
}
var _116=dojo.lang.isString(_111);
if(_116){
_111=_111.split("");
}
if(_114){
var step=-1;
var i=_111.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_111.length;
}
if(_113){
while(i!=end){
if(_111[i]===_112){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_111[i]==_112){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_11a,_11b,_11c){
return dojo.lang.find(_11a,_11b,_11c,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_11d,_11e){
return dojo.lang.find(_11d,_11e)>-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 _12d=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_12d++;
break;
}
}
return _12d==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_131){
var _132=dojo.lang.isString(arr);
if(_132){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_131)){
_131=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_131){
var _133=obj;
obj=_131;
_131=_133;
}
}
if(Array.map){
var _134=Array.map(arr,_131,obj);
}else{
var _134=[];
for(var i=0;i<arr.length;++i){
_134.push(_131.call(obj,arr[i]));
}
}
if(_132){
return _134.join("");
}else{
return _134;
}
},reduce:function(arr,_137,obj,_139){
var _13a=_137;
if(arguments.length==2){
_139=_137;
_13a=arr[0];
arr=arr.slice(1);
}else{
if(arguments.length==3){
if(dojo.lang.isFunction(obj)){
_139=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_139;
_139=obj;
obj=tmp;
}
}
}
var ob=obj||dj_global;
dojo.lang.map(arr,function(val){
_13a=_139.call(ob,_13a,val);
});
return _13a;
},forEach:function(_13e,_13f,_140){
if(dojo.lang.isString(_13e)){
_13e=_13e.split("");
}
if(Array.forEach){
Array.forEach(_13e,_13f,_140);
}else{
if(!_140){
_140=dj_global;
}
for(var i=0,l=_13e.length;i<l;i++){
_13f.call(_140,_13e[i],i,_13e);
}
}
},_everyOrSome:function(_143,arr,_145,_146){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_143?"every":"some"](arr,_145,_146);
}else{
if(!_146){
_146=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _149=_145.call(_146,arr[i],i,arr);
if(_143&&!_149){
return false;
}else{
if((!_143)&&(_149)){
return true;
}
}
}
return Boolean(_143);
}
},every:function(arr,_14b,_14c){
return this._everyOrSome(true,arr,_14b,_14c);
},some:function(arr,_14e,_14f){
return this._everyOrSome(false,arr,_14e,_14f);
},filter:function(arr,_151,_152){
var _153=dojo.lang.isString(arr);
if(_153){
arr=arr.split("");
}
var _154;
if(Array.filter){
_154=Array.filter(arr,_151,_152);
}else{
if(!_152){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_152=dj_global;
}
_154=[];
for(var i=0;i<arr.length;i++){
if(_151.call(_152,arr[i],i,arr)){
_154.push(arr[i]);
}
}
}
if(_153){
return _154.join("");
}else{
return _154;
}
},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(_159,_15a){
var _15b=[];
for(var i=_15a||0;i<_159.length;i++){
_15b.push(_159[i]);
}
return _15b;
}});
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_15d,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _15d.replace(/\%\{(\w+)\}/g,function(_160,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 _163=str.split(" ");
for(var i=0;i<_163.length;i++){
_163[i]=_163[i].charAt(0).toUpperCase()+_163[i].substring(1);
}
return _163.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 _168=escape(str);
var _169,re=/%u([0-9A-F]{4})/i;
while((_169=_168.match(re))){
var num=Number("0x"+_169[1]);
var _16c=escape("&#"+num+";");
ret+=_168.substring(0,_169.index)+_16c;
_168=_168.substring(_169.index+_169[0].length);
}
ret+=_168.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,_171){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_171){
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,_17a){
if(_17a){
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,_17e,_17f){
if(_17f){
str=str.toLowerCase();
_17e=_17e.toLowerCase();
}
return str.indexOf(_17e)==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,_185){
if(_185=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_185=="\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,_187){
var _188=[];
for(var i=0,_18a=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_187){
_188.push(str.substring(_18a,i));
_18a=i+1;
}
}
_188.push(str.substr(_18a));
return _188;
};
dojo.provide("dojo.string.Builder");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b="";
var _18e=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(){
for(var x=0;x<arguments.length;x++){
var s=arguments[x];
if(dojo.lang.isArrayLike(s)){
this.append.apply(this,s);
}else{
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_18e+=s.length;
this.length=_18e;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_18e=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_18e=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_18e=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_18e=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.kwCompoundRequire({common:["dojo.string","dojo.string.common","dojo.string.extras","dojo.string.Builder"]});
dojo.provide("dojo.string.*");
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_19a,uri){
var loc=dojo.hostenv.getModuleSymbols(_19a).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _19d=loc.indexOf(":");
var _19e=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_19d==-1||_19d>_19e)){
loc=dojo.hostenv.getBaseScriptUri()+loc;
}
return new dojo.uri.Uri(loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _1a1=new dojo.uri.Uri(arguments[i].toString());
var _1a2=new dojo.uri.Uri(uri.toString());
if((_1a1.path=="")&&(_1a1.scheme==null)&&(_1a1.authority==null)&&(_1a1.query==null)){
if(_1a1.fragment!=null){
_1a2.fragment=_1a1.fragment;
}
_1a1=_1a2;
}else{
if(_1a1.scheme==null){
_1a1.scheme=_1a2.scheme;
if(_1a1.authority==null){
_1a1.authority=_1a2.authority;
if(_1a1.path.charAt(0)!="/"){
var path=_1a2.path.substring(0,_1a2.path.lastIndexOf("/")+1)+_1a1.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;
}
}
}
}
_1a1.path=segs.join("/");
}
}
}
}
uri="";
if(_1a1.scheme!=null){
uri+=_1a1.scheme+":";
}
if(_1a1.authority!=null){
uri+="//"+_1a1.authority;
}
uri+=_1a1.path;
if(_1a1.query!=null){
uri+="?"+_1a1.query;
}
if(_1a1.fragment!=null){
uri+="#"+_1a1.fragment;
}
}
this.uri=uri.toString();
var _1a6="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_1a6));
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){
_1a6="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_1a6));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _1a9=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_1a9.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1ab,_1ac){
var node=_1ab.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1ac&&node&&node.tagName&&node.tagName.toLowerCase()!=_1ac.toLowerCase()){
node=dojo.dom.nextElement(node,_1ac);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1ae,_1af){
var node=_1ae.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_1af&&node&&node.tagName&&node.tagName.toLowerCase()!=_1af.toLowerCase()){
node=dojo.dom.prevElement(node,_1af);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1b2){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1b2&&_1b2.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1b2);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1b4){
if(!node){
return null;
}
if(_1b4){
_1b4=_1b4.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1b4&&_1b4.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1b4);
}
return node;
};
dojo.dom.moveChildren=function(_1b5,_1b6,trim){
var _1b8=0;
if(trim){
while(_1b5.hasChildNodes()&&_1b5.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1b5.removeChild(_1b5.firstChild);
}
while(_1b5.hasChildNodes()&&_1b5.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1b5.removeChild(_1b5.lastChild);
}
}
while(_1b5.hasChildNodes()){
_1b6.appendChild(_1b5.firstChild);
_1b8++;
}
return _1b8;
};
dojo.dom.copyChildren=function(_1b9,_1ba,trim){
var _1bc=_1b9.cloneNode(true);
return this.moveChildren(_1bc,_1ba,trim);
};
dojo.dom.replaceChildren=function(node,_1be){
var _1bf=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_1bf.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_1be);
for(var i=0;i<_1bf.length;i++){
dojo.dom.destroyNode(_1bf[i]);
}
};
dojo.dom.removeChildren=function(node){
var _1c2=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _1c2;
};
dojo.dom.replaceNode=function(node,_1c4){
return node.parentNode.replaceChild(_1c4,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,_1c8,_1c9){
var _1ca=[];
var _1cb=(_1c8&&(_1c8 instanceof Function||typeof _1c8=="function"));
while(node){
if(!_1cb||_1c8(node)){
_1ca.push(node);
}
if(_1c9&&_1ca.length>0){
return _1ca[0];
}
node=node.parentNode;
}
if(_1c9){
return null;
}
return _1ca;
};
dojo.dom.getAncestorsByTag=function(node,tag,_1ce){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_1ce);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_1d3,_1d4){
if(_1d4&&node){
node=node.parentNode;
}
while(node){
if(node==_1d3){
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 _1d7=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _1d8=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_1d8.length;i++){
try{
doc=new ActiveXObject(_1d8[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_1d7.implementation)&&(_1d7.implementation.createDocument)){
doc=_1d7.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_1db){
if(!_1db){
_1db="text/xml";
}
if(!dj_undef("DOMParser")){
var _1dc=new DOMParser();
return _1dc.parseFromString(str,_1db);
}else{
if(!dj_undef("ActiveXObject")){
var _1dd=dojo.dom.createDocument();
if(_1dd){
_1dd.async=false;
_1dd.loadXML(str);
return _1dd;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _1de=dojo.doc();
if(_1de.createElement){
var tmp=_1de.createElement("xml");
tmp.innerHTML=str;
if(_1de.implementation&&_1de.implementation.createDocument){
var _1e0=_1de.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_1e0.importNode(tmp.childNodes.item(i),true);
}
return _1e0;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_1e3){
if(_1e3.firstChild){
_1e3.insertBefore(node,_1e3.firstChild);
}else{
_1e3.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_1e6){
if((_1e6!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _1e7=ref.parentNode;
_1e7.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_1ea){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_1ea!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_1ea);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_1ee){
if((!node)||(!ref)||(!_1ee)){
return false;
}
switch(_1ee.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,_1f0,_1f1){
var _1f2=_1f0.childNodes;
if(!_1f2.length||_1f2.length==_1f1){
_1f0.appendChild(node);
return true;
}
if(_1f1==0){
return dojo.dom.prependChild(node,_1f0);
}
return dojo.dom.insertAfter(node,_1f2[_1f1-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _1f5=dojo.doc();
dojo.dom.replaceChildren(node,_1f5.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _1f6="";
if(node==null){
return _1f6;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_1f6+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_1f6+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _1f6;
}
};
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,_1fc,_1fd,_1fe){
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(_1fc,_1fd,_1fe);
}else{
var _1ff=elem.ownerDocument;
var _200=_1ff.createNode(2,_1fd,_1fc);
_200.nodeValue=_1fe;
elem.setAttributeNode(_200);
}
};
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 _203=dojo.global();
var _204=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_204.documentElement.clientWidth;
h=_203.innerHeight;
}else{
if(!dojo.render.html.opera&&_203.innerWidth){
w=_203.innerWidth;
h=_203.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_204,"documentElement.clientWidth")){
var w2=_204.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_204.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 _208=dojo.global();
var _209=dojo.doc();
var top=_208.pageYOffset||_209.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_208.pageXOffset||_209.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _20e=dojo.doc();
var _20f=dojo.byId(node);
type=type.toLowerCase();
while((_20f)&&(_20f.nodeName.toLowerCase()!=type)){
if(_20f==(_20e["body"]||_20e["documentElement"])){
return null;
}
_20f=_20f.parentNode;
}
return _20f;
};
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 _217={x:0,y:0};
if(e.pageX||e.pageY){
_217.x=e.pageX;
_217.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_217.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_217.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _217;
};
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 _21c=dojo.doc().createElement("script");
_21c.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_21c);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_21f,_220,args,_222,_223){
dojo.deprecated("dojo.html."+_21f,"replaced by dojo.html."+_220+"("+(_222?"node, {"+_222+": "+_222+"}":"")+")"+(_223?"."+_223:""),"0.5");
var _224=[];
if(_222){
var _225={};
_225[_222]=args[1];
_224.push(args[0]);
_224.push(_225);
}else{
_224=args;
}
var ret=dojo.html[_220].apply(dojo.html,args);
if(_223){
return ret[_223];
}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.lang.extras");
dojo.lang.setTimeout=function(func,_228){
var _229=window,_22a=2;
if(!dojo.lang.isFunction(func)){
_229=func;
func=_228;
_228=arguments[2];
_22a++;
}
if(dojo.lang.isString(func)){
func=_229[func];
}
var args=[];
for(var i=_22a;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_229,args);
},_228);
};
dojo.lang.clearTimeout=function(_22d){
dojo.global().clearTimeout(_22d);
};
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(_236,_237,_238){
with(dojo.parseObjPath(_236,_237,_238)){
return dojo.evalProp(prop,obj,_238);
}
};
dojo.lang.setObjPathValue=function(_239,_23a,_23b,_23c){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_23c=true;
}
with(dojo.parseObjPath(_239,_23b,_23c)){
if(obj&&(_23c||(prop in obj))){
obj[prop]=_23a;
}
}
};
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_23e,_23f,_240){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_23e){
this.mimetype=_23e;
}
if(_23f){
this.transport=_23f;
}
if(arguments.length>=4){
this.changeUrl=_240;
}
}
};
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,_243,_244){
},error:function(type,_246,_247,_248){
},timeout:function(type,_24a,_24b,_24c){
},handle:function(type,data,_24f,_250){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_251){
if(_251["url"]){
_251.url=_251.url.toString();
}
if(_251["formNode"]){
_251.formNode=dojo.byId(_251.formNode);
}
if(!_251["method"]&&_251["formNode"]&&_251["formNode"].method){
_251.method=_251["formNode"].method;
}
if(!_251["handle"]&&_251["handler"]){
_251.handle=_251.handler;
}
if(!_251["load"]&&_251["loaded"]){
_251.load=_251.loaded;
}
if(!_251["changeUrl"]&&_251["changeURL"]){
_251.changeUrl=_251.changeURL;
}
_251.encoding=dojo.lang.firstValued(_251["encoding"],djConfig["bindEncoding"],"");
_251.sendTransport=dojo.lang.firstValued(_251["sendTransport"],djConfig["ioSendTransport"],false);
var _252=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_251[fn]&&_252(_251[fn])){
continue;
}
if(_251["handle"]&&_252(_251["handle"])){
_251[fn]=_251.handle;
}
}
dojo.lang.mixin(this,_251);
}});
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(_259){
if(!(_259 instanceof dojo.io.Request)){
try{
_259=new dojo.io.Request(_259);
}
catch(e){
dojo.debug(e);
}
}
var _25a="";
if(_259["transport"]){
_25a=_259["transport"];
if(!this[_25a]){
dojo.io.sendBindError(_259,"No dojo.io.bind() transport with name '"+_259["transport"]+"'.");
return _259;
}
if(!this[_25a].canHandle(_259)){
dojo.io.sendBindError(_259,"dojo.io.bind() transport with name '"+_259["transport"]+"' cannot handle this type of request.");
return _259;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_259))){
_25a=tmp;
break;
}
}
if(_25a==""){
dojo.io.sendBindError(_259,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _259;
}
}
this[_25a].bind(_259);
_259.bindSuccess=true;
return _259;
};
dojo.io.sendBindError=function(_25d,_25e){
if((typeof _25d.error=="function"||typeof _25d.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _25f=new dojo.io.Error(_25e);
setTimeout(function(){
_25d[(typeof _25d.error=="function")?"error":"handle"]("error",_25f,null,_25d);
},50);
}else{
dojo.raise(_25e);
}
};
dojo.io.queueBind=function(_260){
if(!(_260 instanceof dojo.io.Request)){
try{
_260=new dojo.io.Request(_260);
}
catch(e){
dojo.debug(e);
}
}
var _261=_260.load;
_260.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_261.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _263=_260.error;
_260.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_263.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_260);
dojo.io._dispatchNextQueueBind();
return _260;
};
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,_266,last){
var enc=/utf/i.test(_266||"")?encodeURIComponent:dojo.string.encodeAscii;
var _269=[];
var _26a=new Object();
for(var name in map){
var _26c=function(elt){
var val=enc(name)+"="+enc(elt);
_269[(last==name)?"push":"unshift"](val);
};
if(!_26a[name]){
var _26f=map[name];
if(dojo.lang.isArray(_26f)){
dojo.lang.forEach(_26f,_26c);
}else{
_26c(_26f);
}
}
}
return _269.join("&");
};
dojo.io.setIFrameSrc=function(_270,src,_272){
try{
var r=dojo.render.html;
if(!_272){
if(r.safari){
_270.location=src;
}else{
frames[_270.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_270.contentWindow.document;
}else{
if(r.safari){
idoc=_270.document;
}else{
idoc=_270.contentWindow;
}
}
if(!idoc){
_270.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_275,_276){
var fcn=(dojo.lang.isString(_276)?_275[_276]:_276)||function(){
};
return function(){
return fcn.apply(_275,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_278,_279,_27a){
var nso=(_279||dojo.lang.anon);
if((_27a)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_278){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_278;
return ret;
};
dojo.lang.forward=function(_27e){
return function(){
return this[_27e].apply(this,arguments);
};
};
dojo.lang.curry=function(_27f,func){
var _281=[];
_27f=_27f||dj_global;
if(dojo.lang.isString(func)){
func=_27f[func];
}
for(var x=2;x<arguments.length;x++){
_281.push(arguments[x]);
}
var _283=(func["__preJoinArity"]||func.length)-_281.length;
function gather(_284,_285,_286){
var _287=_286;
var _288=_285.slice(0);
for(var x=0;x<_284.length;x++){
_288.push(_284[x]);
}
_286=_286-_284.length;
if(_286<=0){
var res=func.apply(_27f,_288);
_286=_287;
return res;
}else{
return function(){
return gather(arguments,_288,_286);
};
}
}
return gather([],_281,_283);
};
dojo.lang.curryArguments=function(_28b,func,args,_28e){
var _28f=[];
var x=_28e||0;
for(x=_28e;x<args.length;x++){
_28f.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_28b,func].concat(_28f));
};
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,_295,_296){
if(!farr.length){
if(typeof _296=="function"){
_296();
}
return;
}
if((typeof _295=="undefined")&&(typeof cb=="number")){
_295=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_295){
_295=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_295,_296);
},_295);
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
if(djConfig["useXDomain"]&&!djConfig["dojoIframeHistoryUrl"]){
dojo.debug("dojo.undo.browser: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");
}
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _29b=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_29d){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_29b.apply(this,[_29d]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _29e=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_2a0){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_29e){
_29e.apply(this,[_2a0]);
}
};
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,_2a3){
if(!dojo.render.html.opera){
var _2a4=this._getUrlQuery(_2a3.href);
if(_2a4==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_2a4==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_2a4==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _2a5=this.historyStack.pop();
if(!_2a5){
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(_2a5);
},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 _2ac=url.split("?");
if(_2ac.length<2){
return null;
}else{
return _2ac[1];
}
},_loadIframeHistory:function(){
var url=(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _2af=false;
var _2b0=node.getElementsByTagName("input");
dojo.lang.forEach(_2b0,function(_2b1){
if(_2af){
return;
}
if(_2b1.getAttribute("type")=="file"){
_2af=true;
}
});
return _2af;
};
dojo.io.formHasFile=function(_2b2){
return dojo.io.checkChildrenForFile(_2b2);
};
dojo.io.updateNode=function(node,_2b4){
node=dojo.byId(node);
var args=_2b4;
if(dojo.lang.isString(_2b4)){
args={url:_2b4};
}
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(_2bb,_2bc,_2bd){
if((!_2bb)||(!_2bb.tagName)||(!_2bb.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_2bd){
_2bd=dojo.io.formFilter;
}
var enc=/utf/i.test(_2bc||"")?encodeURIComponent:dojo.string.encodeAscii;
var _2bf=[];
for(var i=0;i<_2bb.elements.length;i++){
var elm=_2bb.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_2bd(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){
_2bf.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_2bf.push(name+"="+enc(elm.value));
}
}else{
_2bf.push(name+"="+enc(elm.value));
}
}
}
var _2c5=_2bb.getElementsByTagName("input");
for(var i=0;i<_2c5.length;i++){
var _2c6=_2c5[i];
if(_2c6.type.toLowerCase()=="image"&&_2c6.form==_2bb&&_2bd(_2c6)){
var name=enc(_2c6.name);
_2bf.push(name+"="+enc(_2c6.value));
_2bf.push(name+".x=0");
_2bf.push(name+".y=0");
}
}
return _2bf.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 _2cc=form.getElementsByTagName("input");
for(var i=0;i<_2cc.length;i++){
var _2cd=_2cc[i];
if(_2cd.type.toLowerCase()=="image"&&_2cd.form==form){
this.connect(_2cd,"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 _2d4=false;
if(node.disabled||!node.name){
_2d4=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_2d4=node==this.clickedButton;
}else{
_2d4=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _2d4;
},connect:function(_2d5,_2d6,_2d7){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_2d5,_2d6,this,_2d7);
}else{
var fcn=dojo.lang.hitch(this,_2d7);
_2d5[_2d6]=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 _2da=this;
var _2db={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_2dd,_2de){
return url+"|"+_2dd+"|"+_2de.toLowerCase();
}
function addToCache(url,_2e0,_2e1,http){
_2db[getCacheKey(url,_2e0,_2e1)]=http;
}
function getFromCache(url,_2e4,_2e5){
return _2db[getCacheKey(url,_2e4,_2e5)];
}
this.clearCache=function(){
_2db={};
};
function doLoad(_2e6,http,url,_2e9,_2ea){
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(_2e6.method.toLowerCase()=="head"){
var _2ec=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _2ec;
};
var _2ed=_2ec.split(/[\r\n]+/g);
for(var i=0;i<_2ed.length;i++){
var pair=_2ed[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_2e6.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_2e6.mimetype=="text/json"||_2e6.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_2e6.mimetype=="application/xml")||(_2e6.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(_2ea){
addToCache(url,_2e9,_2e6.method,http);
}
_2e6[(typeof _2e6.load=="function")?"load":"handle"]("load",ret,http,_2e6);
}else{
var _2f0=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_2e6[(typeof _2e6.error=="function")?"error":"handle"]("error",_2f0,http,_2e6);
}
}
function setHeaders(http,_2f2){
if(_2f2["headers"]){
for(var _2f3 in _2f2["headers"]){
if(_2f3.toLowerCase()=="content-type"&&!_2f2["contentType"]){
_2f2["contentType"]=_2f2["headers"][_2f3];
}else{
http.setRequestHeader(_2f3,_2f2["headers"][_2f3]);
}
}
}
}
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&&!_2da._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 _2f7=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2f7,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 _2f8=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_2f9){
return _2f8&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_2f9["mimetype"].toLowerCase()||""))&&!(_2f9["formNode"]&&dojo.io.formHasFile(_2f9["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_2fa){
if(!_2fa["url"]){
if(!_2fa["formNode"]&&(_2fa["backButton"]||_2fa["back"]||_2fa["changeUrl"]||_2fa["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(_2fa);
return true;
}
}
var url=_2fa.url;
var _2fc="";
if(_2fa["formNode"]){
var ta=_2fa.formNode.getAttribute("action");
if((ta)&&(!_2fa["url"])){
url=ta;
}
var tp=_2fa.formNode.getAttribute("method");
if((tp)&&(!_2fa["method"])){
_2fa.method=tp;
}
_2fc+=dojo.io.encodeForm(_2fa.formNode,_2fa.encoding,_2fa["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_2fa["file"]){
_2fa.method="post";
}
if(!_2fa["method"]){
_2fa.method="get";
}
if(_2fa.method.toLowerCase()=="get"){
_2fa.multipart=false;
}else{
if(_2fa["file"]){
_2fa.multipart=true;
}else{
if(!_2fa["multipart"]){
_2fa.multipart=false;
}
}
}
if(_2fa["backButton"]||_2fa["back"]||_2fa["changeUrl"]){
dojo.undo.browser.addToHistory(_2fa);
}
var _2ff=_2fa["content"]||{};
if(_2fa.sendTransport){
_2ff["dojo.transport"]="xmlhttp";
}
do{
if(_2fa.postContent){
_2fc=_2fa.postContent;
break;
}
if(_2ff){
_2fc+=dojo.io.argsFromMap(_2ff,_2fa.encoding);
}
if(_2fa.method.toLowerCase()=="get"||!_2fa.multipart){
break;
}
var t=[];
if(_2fc.length){
var q=_2fc.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(_2fa.file){
if(dojo.lang.isArray(_2fa.file)){
for(var i=0;i<_2fa.file.length;++i){
var o=_2fa.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=_2fa.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+"--","");
_2fc=t.join("\r\n");
}
}while(false);
var _305=_2fa["sync"]?false:true;
var _306=_2fa["preventCache"]||(this.preventCache==true&&_2fa["preventCache"]!=false);
var _307=_2fa["useCache"]==true||(this.useCache==true&&_2fa["useCache"]!=false);
if(!_306&&_307){
var _308=getFromCache(url,_2fc,_2fa.method);
if(_308){
doLoad(_2fa,_308,url,_2fc,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_2fa);
var _30a=false;
if(_305){
var _30b=this.inFlight.push({"req":_2fa,"http":http,"url":url,"query":_2fc,"useCache":_307,"startTime":_2fa.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_2da._blockAsync=true;
}
if(_2fa.method.toLowerCase()=="post"){
if(!_2fa.user){
http.open("POST",url,_305);
}else{
http.open("POST",url,_305,_2fa.user,_2fa.password);
}
setHeaders(http,_2fa);
http.setRequestHeader("Content-Type",_2fa.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2fa.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_2fc);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2fa,{status:404},url,_2fc,_307);
}
}else{
var _30c=url;
if(_2fc!=""){
_30c+=(_30c.indexOf("?")>-1?"&":"?")+_2fc;
}
if(_306){
_30c+=(dojo.string.endsWithAny(_30c,"?","&")?"":(_30c.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_2fa.user){
http.open(_2fa.method.toUpperCase(),_30c,_305);
}else{
http.open(_2fa.method.toUpperCase(),_30c,_305,_2fa.user,_2fa.password);
}
setHeaders(http,_2fa);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2fa,{status:404},url,_2fc,_307);
}
}
if(!_305){
doLoad(_2fa,http,url,_2fc,_307);
_2da._blockAsync=false;
}
_2fa.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,_30e,days,path,_311,_312){
var _313=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_313=d.toGMTString();
}
_30e=escape(_30e);
document.cookie=name+"="+_30e+";"+(_313!=-1?" expires="+_313+";":"")+(path?"path="+path:"")+(_311?"; domain="+_311:"")+(_312?"; 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 _317=document.cookie.substring(idx+name.length+1);
var end=_317.indexOf(";");
if(end==-1){
end=_317.length;
}
_317=_317.substring(0,end);
_317=unescape(_317);
return _317;
};
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,_31e,_31f,_320){
if(arguments.length==5){
_320=_31e;
_31e=null;
_31f=null;
}
var _321=[],_322,_323="";
if(!_320){
_322=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_322){
_322={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _322[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_322[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _322){
_321.push(escape(prop)+"="+escape(_322[prop]));
}
_323=_321.join("&");
}
dojo.io.cookie.setCookie(name,_323,days,path,_31e,_31f);
};
dojo.io.cookie.getObjectCookie=function(name){
var _326=null,_327=dojo.io.cookie.getCookie(name);
if(_327){
_326={};
var _328=_327.split("&");
for(var i=0;i<_328.length;i++){
var pair=_328[i].split("=");
var _32b=pair[1];
if(isNaN(_32b)){
_32b=unescape(pair[1]);
}
_326[unescape(pair[0])]=_32b;
}
}
return _326;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _32c=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_32c=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_32e){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _331=dl.nameAnonFunc(args[2],ao.adviceObj,_32e);
ao.adviceFunc=_331;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _331=dl.nameAnonFunc(args[0],ao.srcObj,_32e);
ao.srcFunc=_331;
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 _331=dl.nameAnonFunc(args[1],dj_global,_32e);
ao.srcFunc=_331;
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 _331=dl.nameAnonFunc(args[3],dj_global,_32e);
ao.adviceObj=dj_global;
ao.adviceFunc=_331;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
ao.maxCalls=(!isNaN(parseInt(args[11])))?args[11]:-1;
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _331=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_32e);
ao.aroundFunc=_331;
}
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.isArray(ao.srcObj)&&ao.srcObj!=""){
var _333={};
for(var x in ao){
_333[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);
}
_333.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_333));
});
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 _33b;
if((arguments.length==1)&&(typeof a1=="object")){
_33b=a1;
}else{
_33b={srcObj:a1,srcFunc:a2};
}
_33b.adviceFunc=function(){
var _33c=[];
for(var x=0;x<arguments.length;x++){
_33c.push(arguments[x]);
}
dojo.debug("("+_33b.srcObj+")."+_33b.srcFunc,":",_33c.join(", "));
};
this.kwConnect(_33b);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this.connectRunOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.maxCalls=1;
return this.connect(ao);
};
this._kwConnectImpl=function(_344,_345){
var fn=(_345)?"disconnect":"connect";
if(typeof _344["srcFunc"]=="function"){
_344.srcObj=_344["srcObj"]||dj_global;
var _347=dojo.lang.nameAnonFunc(_344.srcFunc,_344.srcObj,true);
_344.srcFunc=_347;
}
if(typeof _344["adviceFunc"]=="function"){
_344.adviceObj=_344["adviceObj"]||dj_global;
var _347=dojo.lang.nameAnonFunc(_344.adviceFunc,_344.adviceObj,true);
_344.adviceFunc=_347;
}
_344.srcObj=_344["srcObj"]||dj_global;
_344.adviceObj=_344["adviceObj"]||_344["targetObj"]||dj_global;
_344.adviceFunc=_344["adviceFunc"]||_344["targetFunc"];
return dojo.event[fn](_344);
};
this.kwConnect=function(_348){
return this._kwConnectImpl(_348,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(_34b){
return this._kwConnectImpl(_34b,true);
};
};
dojo.event.MethodInvocation=function(_34c,obj,args){
this.jp_=_34c;
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,_354){
this.object=obj||dj_global;
this.methodname=_354;
this.methodfunc=this.object[_354];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_356){
if(!obj){
obj=dj_global;
}
var ofn=obj[_356];
if(!ofn){
ofn=obj[_356]=function(){
};
if(!obj[_356]){
dojo.raise("Cannot set do-nothing method on that object "+_356);
}
}else{
if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){
return null;
}
}
var _358=_356+"$joinpoint";
var _359=_356+"$joinpoint$method";
var _35a=obj[_358];
if(!_35a){
var _35b=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_35b=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_358,_359,_356]);
}
}
var _35c=ofn.length;
obj[_359]=ofn;
_35a=obj[_358]=new dojo.event.MethodJoinPoint(obj,_359);
if(!_35b){
obj[_356]=function(){
return _35a.run.apply(_35a,arguments);
};
}else{
obj[_356]=function(){
var args=[];
if(!arguments.length){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
if(obj.event){
evt=obj.event;
}else{
evt=window.event;
}
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _35a.run.apply(_35a,args);
};
}
obj[_356].__preJoinArity=_35c;
}
return _35a;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{squelch:false,unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _362=[];
for(var x=0;x<args.length;x++){
_362[x]=args[x];
}
var _364=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _366=marr[0]||dj_global;
var _367=marr[1];
if(!_366[_367]){
dojo.raise("function \""+_367+"\" does not exist on \""+_366+"\"");
}
var _368=marr[2]||dj_global;
var _369=marr[3];
var msg=marr[6];
var _36b=marr[7];
if(_36b>-1){
if(_36b==0){
return;
}
marr[7]--;
}
var _36c;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _366[_367].apply(_366,to.args);
}};
to.args=_362;
var _36e=parseInt(marr[4]);
var _36f=((!isNaN(_36e))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _372=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;
_364(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_369){
_368[_369].call(_368,to);
}else{
if((_36f)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_366[_367].call(_366,to);
}else{
_366[_367].apply(_366,args);
}
},_36e);
}else{
if(msg){
_366[_367].call(_366,to);
}else{
_366[_367].apply(_366,args);
}
}
}
};
var _375=function(){
if(this.squelch){
try{
return _364.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _364.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_375);
}
var _376;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_376=mi.proceed();
}else{
if(this.methodfunc){
_376=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()),_375);
}
return (this.methodfunc)?_376:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"],args["maxCalls"]);
},addAdvice:function(_37b,_37c,_37d,_37e,_37f,_380,once,_382,rate,_384,_385){
var arr=this.getArr(_37f);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_37b,_37c,_37d,_37e,_382,rate,_384,_385];
if(once){
if(this.hasAdvice(_37b,_37c,_37f,arr)>=0){
return;
}
}
if(_380=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_388,_389,_38a,arr){
if(!arr){
arr=this.getArr(_38a);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _389=="object")?(new String(_389)).toString():_389;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_388)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_390,_391,_392,once){
var arr=this.getArr(_392);
var ind=this.hasAdvice(_390,_391,_392,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_390,_391,_392,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_396){
if(!this.topics[_396]){
this.topics[_396]=new this.TopicImpl(_396);
}
return this.topics[_396];
};
this.registerPublisher=function(_397,obj,_399){
var _397=this.getTopic(_397);
_397.registerPublisher(obj,_399);
};
this.subscribe=function(_39a,obj,_39c){
var _39a=this.getTopic(_39a);
_39a.subscribe(obj,_39c);
};
this.unsubscribe=function(_39d,obj,_39f){
var _39d=this.getTopic(_39d);
_39d.unsubscribe(obj,_39f);
};
this.destroy=function(_3a0){
this.getTopic(_3a0).destroy();
delete this.topics[_3a0];
};
this.publishApply=function(_3a1,args){
var _3a1=this.getTopic(_3a1);
_3a1.sendMessage.apply(_3a1,args);
};
this.publish=function(_3a3,_3a4){
var _3a3=this.getTopic(_3a3);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_3a3.sendMessage.apply(_3a3,args);
};
};
dojo.event.topic.TopicImpl=function(_3a7){
this.topicName=_3a7;
this.subscribe=function(_3a8,_3a9){
var tf=_3a9||_3a8;
var to=(!_3a9)?dj_global:_3a8;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_3ac,_3ad){
var tf=(!_3ad)?_3ac:_3ad;
var to=(!_3ad)?null:_3ac;
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(_3b0){
this._getJoinPoint().squelch=_3b0;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_3b1,_3b2){
dojo.event.connect(_3b1,_3b2,this,"sendMessage");
};
this.sendMessage=function(_3b3){
};
};
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(_3b6){
var na;
var tna;
if(_3b6){
tna=_3b6.all||_3b6.getElementsByTagName("*");
na=[_3b6];
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 _3ba={};
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 _3bf=0;
this.normalizedEventName=function(_3c0){
switch(_3c0){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _3c0;
break;
default:
var lcn=_3c0.toLowerCase();
return (lcn.indexOf("on")==0)?lcn.substr(2):lcn;
break;
}
};
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_3c5){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_3c5.length;x++){
node.__clobberAttrs__.push(_3c5[x]);
}
};
this.removeListener=function(node,_3c8,fp,_3ca){
if(!_3ca){
var _3ca=false;
}
_3c8=dojo.event.browser.normalizedEventName(_3c8);
if(_3c8=="key"){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_3ca);
}
_3c8="keypress";
}
if(node.removeEventListener){
node.removeEventListener(_3c8,fp,_3ca);
}
};
this.addListener=function(node,_3cc,fp,_3ce,_3cf){
if(!node){
return;
}
if(!_3ce){
var _3ce=false;
}
_3cc=dojo.event.browser.normalizedEventName(_3cc);
if(_3cc=="key"){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_3ce,_3cf);
}
_3cc="keypress";
}
if(!_3cf){
var _3d0=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_3ce){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_3d0=fp;
}
if(node.addEventListener){
node.addEventListener(_3cc,_3d0,_3ce);
return _3d0;
}else{
_3cc="on"+_3cc;
if(typeof node[_3cc]=="function"){
var _3d3=node[_3cc];
node[_3cc]=function(e){
_3d3(e);
return _3d0(e);
};
}else{
node[_3cc]=_3d0;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_3cc]);
}
return _3d0;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3d6,_3d7){
if(typeof _3d6!="function"){
dojo.raise("listener not a function: "+_3d6);
}
dojo.event.browser.currentEvent.currentTarget=_3d7;
return _3d6.call(_3d7,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,_3da){
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 _3dc=evt.keyCode;
if(_3dc>=65&&_3dc<=90&&evt.shiftKey==false){
_3dc+=32;
}
if(_3dc>=1&&_3dc<=26&&evt.ctrlKey){
_3dc+=96;
}
evt.key=String.fromCharCode(_3dc);
}
}
}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 _3dc=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_3dc+=32;
}
evt.key=String.fromCharCode(_3dc);
}
}
}
}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=(_3da?_3da: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 _3de=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_3de.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_3de.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this._stopPropagation;
evt.preventDefault=this._preventDefault;
}
return evt;
};
this.stopEvent=function(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_3e0){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_3e0);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_3e1){
try{
if(dojo.lang.isArray(_3e1)){
return "array";
}
if(dojo.lang.isFunction(_3e1)){
return "function";
}
if(dojo.lang.isString(_3e1)){
return "string";
}
if(dojo.lang.isNumber(_3e1)){
return "number";
}
if(dojo.lang.isBoolean(_3e1)){
return "boolean";
}
if(dojo.lang.isAlien(_3e1)){
return "alien";
}
if(dojo.lang.isUndefined(_3e1)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_3e1)){
return name;
}
}
if(dojo.lang.isObject(_3e1)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_3e3){
return (!isNaN(_3e3)&&isFinite(_3e3)&&(_3e3!=null)&&!dojo.lang.isBoolean(_3e3)&&!dojo.lang.isArray(_3e3)&&!/^\s*$/.test(_3e3));
};
dojo.lang.isBuiltIn=function(_3e4){
return (dojo.lang.isArray(_3e4)||dojo.lang.isFunction(_3e4)||dojo.lang.isString(_3e4)||dojo.lang.isNumber(_3e4)||dojo.lang.isBoolean(_3e4)||(_3e4==null)||(_3e4 instanceof Error)||(typeof _3e4=="error"));
};
dojo.lang.isPureObject=function(_3e5){
return ((_3e5!=null)&&dojo.lang.isObject(_3e5)&&_3e5.constructor==Object);
};
dojo.lang.isOfType=function(_3e6,type,_3e8){
var _3e9=false;
if(_3e8){
_3e9=_3e8["optional"];
}
if(_3e9&&((_3e6===null)||dojo.lang.isUndefined(_3e6))){
return true;
}
if(dojo.lang.isArray(type)){
var _3ea=type;
for(var i in _3ea){
var _3ec=_3ea[i];
if(dojo.lang.isOfType(_3e6,_3ec)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_3e6);
case Function:
case "function":
return dojo.lang.isFunction(_3e6);
case String:
case "string":
return dojo.lang.isString(_3e6);
case Number:
case "number":
return dojo.lang.isNumber(_3e6);
case "numeric":
return dojo.lang.isNumeric(_3e6);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_3e6);
case Object:
case "object":
return dojo.lang.isObject(_3e6);
case "pureobject":
return dojo.lang.isPureObject(_3e6);
case "builtin":
return dojo.lang.isBuiltIn(_3e6);
case "alien":
return dojo.lang.isAlien(_3e6);
case "undefined":
return dojo.lang.isUndefined(_3e6);
case null:
case "null":
return (_3e6===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_3e6===null)||dojo.lang.isUndefined(_3e6));
default:
if(dojo.lang.isFunction(type)){
return (_3e6 instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _3ee=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_3ee[i++]];
}while(i<_3ee.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _3f2=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_3f2[i++]];
}while(i<_3f2.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_3f5,_3f6){
if(!_3f5){
var _3f7="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_3f6){
_3f7+="Here's the assert message:\n"+_3f6+"\n";
}
throw new Error(_3f7);
}
};
dojo.lang.assertType=function(_3f8,type,_3fa){
if(dojo.lang.isString(_3fa)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_3f8,type,_3fa)){
if(!dojo.lang.assertType._errorMessage){
dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed.";
}
dojo.lang.assert(false,dojo.lang.assertType._errorMessage);
}
};
dojo.lang.assertValidKeywords=function(_3fb,_3fc,_3fd){
var key;
if(!_3fd){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_3fd=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_3fc)){
for(key in _3fb){
if(!dojo.lang.inArray(_3fc,key)){
dojo.lang.assert(false,_3fd+" "+key);
}
}
}else{
for(key in _3fb){
if(!(key in _3fc)){
dojo.lang.assert(false,_3fd+" "+key);
}
}
}
};
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_3ff){
this.pairs=[];
this.returnWrappers=_3ff||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_401,wrap,_403,_404){
var type=(_404)?"unshift":"push";
this.pairs[type]([name,_401,wrap,_403]);
},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.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_40c,wrap,_40e){
dojo.lang.reprRegistry.register(name,_40c,wrap,_40e);
};
dojo.lang.repr=function(obj){
if(typeof (obj)=="undefined"){
return "undefined";
}else{
if(obj===null){
return "null";
}
}
try{
if(typeof (obj["__repr__"])=="function"){
return obj["__repr__"]();
}else{
if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){
return obj["repr"]();
}
}
return dojo.lang.reprRegistry.match(obj);
}
catch(e){
if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){
return obj.NAME;
}
}
if(typeof (obj)=="function"){
obj=(obj+"").replace(/^\s+/,"");
var idx=obj.indexOf("{");
if(idx!=-1){
obj=obj.substr(0,idx)+"{...}";
}
}
return obj+"";
};
dojo.lang.reprArrayLike=function(arr){
try{
var na=dojo.lang.map(arr,dojo.lang.repr);
return "["+na.join(", ")+"]";
}
catch(e){
}
};
(function(){
var m=dojo.lang;
m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
m.registerRepr("string",m.isString,m.reprString);
m.registerRepr("numbers",m.isNumber,m.reprNumber);
m.registerRepr("boolean",m.isBoolean,m.reprNumber);
})();
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_414,_415,init,_417){
if((dojo.lang.isFunction(_417))||((!_417)&&(!dojo.lang.isFunction(init)))){
var temp=_417;
_417=init;
init=temp;
}
var _419=[];
if(dojo.lang.isArray(_415)){
_419=_415;
_415=_419.shift();
}
if(!init){
init=dojo.evalObjPath(_414,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_415?_415.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _415();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_419;
for(var i=0,l=_419.length;i<l;i++){
dojo.lang.extend(ctor,_419[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_414;
if(dojo.lang.isArray(_417)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_417));
}else{
dojo.lang.extend(ctor,(_417)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _41e=dojo.parseObjPath(_414,null,true);
_41e.obj[_41e.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(_424,_425,args){
var _427,_428=this.___proto;
this.___proto=_424;
try{
_427=_424[_425].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_428;
}
return _427;
},_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.kwCompoundRequire({common:["dojo.lang.common","dojo.lang.assert","dojo.lang.array","dojo.lang.type","dojo.lang.func","dojo.lang.extras","dojo.lang.repr","dojo.lang.declare"]});
dojo.provide("dojo.lang.*");
dojo.provide("dojo.storage");
dojo.storage=new function(){
};
dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",DEFAULT_NAMESPACE:"default",onHideSettingsUI:null,initialize:function(){
dojo.unimplemented("dojo.storage.initialize");
},isAvailable:function(){
dojo.unimplemented("dojo.storage.isAvailable");
},put:function(key,_42f,_430,_431){
dojo.unimplemented("dojo.storage.put");
},get:function(key,_433){
dojo.unimplemented("dojo.storage.get");
},hasKey:function(key,_435){
return (this.get(key)!=null);
},getKeys:function(_436){
dojo.unimplemented("dojo.storage.getKeys");
},clear:function(_437){
dojo.unimplemented("dojo.storage.clear");
},remove:function(key,_439){
dojo.unimplemented("dojo.storage.remove");
},getNamespaces:function(){
dojo.unimplemented("dojo.storage.getNamespaces");
},isPermanent:function(){
dojo.unimplemented("dojo.storage.isPermanent");
},getMaximumSize:function(){
dojo.unimplemented("dojo.storage.getMaximumSize");
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.unimplemented("dojo.storage.showSettingsUI");
},hideSettingsUI:function(){
dojo.unimplemented("dojo.storage.hideSettingsUI");
},getType:function(){
dojo.unimplemented("dojo.storage.getType");
},isValidKey:function(_43a){
if((_43a==null)||(typeof _43a=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_43a);
},getResourceList:function(){
return new Array();
}});
dojo.storage.manager=new function(){
this.currentProvider=null;
this.available=false;
this._initialized=false;
this._providers=[];
this._onLoadListeners=new Array();
this.initialize=function(){
this.autodetect();
};
this.register=function(name,_43c){
this._providers[this._providers.length]=_43c;
this._providers[name]=_43c;
};
this.setProvider=function(_43d){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _43e=null;
for(var i=0;i<this._providers.length;i++){
_43e=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_43e.getType()==djConfig["forceStorageProvider"]){
_43e.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_43e.isAvailable()){
break;
}
}
}
if(_43e==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_43e;
for(var i in _43e){
dojo.storage[i]=_43e[i];
}
dojo.storage.manager=this;
dojo.storage.initialize();
this._initialized=true;
this.available=true;
};
this.isAvailable=function(){
return this.available;
};
this.addOnLoad=function(func){
this._onLoadListeners.push(func);
if(this.isInitialized()==true){
this.fireLoaded();
}
};
this.removeOnLoad=function(func){
for(var i=0;i<this._onLoadListeners.length;i++){
if(func==this._onLoadListeners[i]){
this._onLoadListeners=this._onLoadListeners.splice(i,1);
break;
}
}
};
this.isInitialized=function(){
if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){
return false;
}else{
return this._initialized;
}
};
this.supportsProvider=function(_443){
try{
var _444=eval("new "+_443+"()");
var _445=_444.isAvailable();
if(_445==null||typeof _445=="undefined"){
return false;
}
return _445;
}
catch(exception){
return false;
}
};
this.getProvider=function(){
return this.currentProvider;
};
this.loaded=function(){
this.fireLoaded();
};
this.fireLoaded=function(){
for(var i=0;i<this._onLoadListeners.length;i++){
this._onLoadListeners[i]();
}
};
this.getResourceList=function(){
var _447=new Array();
for(var i=0;i<dojo.storage.manager._providers.length;i++){
var _449=dojo.storage.manager._providers[i];
var _44a=_449.getResourceList();
for(var j=0;j<_44a.length;j++){
_447[_447.length]=_44a[j];
}
}
return _447;
};
};
dojo.provide("dojo.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_44c){
if(_44c==null||dojo.lang.isUndefined(_44c)){
return;
}
if(_44c.flash6!=null&&!dojo.lang.isUndefined(_44c.flash6)){
this.flash6_version=_44c.flash6;
}
if(_44c.flash8!=null&&!dojo.lang.isUndefined(_44c.flash8)){
this.flash8_version=_44c.flash8;
}
if(!dojo.lang.isUndefined(_44c.visible)){
this._visible=_44c.visible;
}
this._initialize();
},useFlash6:function(){
if(this.flash6_version==null){
return false;
}else{
if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){
return true;
}else{
return false;
}
}
},useFlash8:function(){
if(this.flash8_version==null){
return false;
}else{
if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){
return true;
}else{
return false;
}
}
},addLoadedListener:function(_44d){
this._loadedListeners.push(_44d);
},addInstallingListener:function(_44e){
this._installingListeners.push(_44e);
},loaded:function(){
dojo.flash.ready=true;
if(dojo.flash._loadedListeners.length>0){
for(var i=0;i<dojo.flash._loadedListeners.length;i++){
dojo.flash._loadedListeners[i].call(null);
}
}
},installing:function(){
if(dojo.flash._installingListeners.length>0){
for(var i=0;i<dojo.flash._installingListeners.length;i++){
dojo.flash._installingListeners[i].call(null);
}
}
},_initialize:function(){
var _451=new dojo.flash.Install();
dojo.flash.installer=_451;
if(_451.needed()==true){
_451.install();
}else{
dojo.flash.obj=new dojo.flash.Embed(this._visible);
dojo.flash.obj.write(dojo.flash.info.commVersion);
dojo.flash.comm=new dojo.flash.Communicator();
}
}};
dojo.flash.Info=function(){
if(dojo.render.html.ie){
document.writeln("<script language=\"VBScript\" type=\"text/vbscript\">");
document.writeln("Function VBGetSwfVer(i)");
document.writeln("  on error resume next");
document.writeln("  Dim swControl, swVersion");
document.writeln("  swVersion = 0");
document.writeln("  set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i))");
document.writeln("  if (IsObject(swControl)) then");
document.writeln("    swVersion = swControl.GetVariable(\"$version\")");
document.writeln("  end if");
document.writeln("  VBGetSwfVer = swVersion");
document.writeln("End Function");
document.writeln("</script>");
}
this._detectVersion();
this._detectCommunicationVersion();
};
dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(_452,_453,_454){
_454=parseFloat("."+_454);
if(this.versionMajor>=_452&&this.versionMinor>=_453&&this.versionRevision>=_454){
return true;
}else{
return false;
}
},getResourceList:function(_455,_456){
var _457=new Array();
var _458=_455;
_457.push(_458);
var _459=djConfig.baseRelativePath;
_458=_458+"?baseRelativePath="+escape(_459);
_457.push(_458);
_458+="'%20'%20quality=";
_457.push(_458);
_458=_456;
_457.push(_458);
_458+="?baseRelativePath="+escape(_459);
_457.push(_458);
_458+="'%20'%20quality=";
_457.push(_458);
_457.push(djConfig.baseRelativePath+"flash6_gateway.swf");
return _457;
},_detectVersion:function(){
var _45a;
for(var _45b=25;_45b>0;_45b--){
if(dojo.render.html.ie){
_45a=VBGetSwfVer(_45b);
}else{
_45a=this._JSFlashInfo(_45b);
}
if(_45a==-1){
this.capable=false;
return;
}else{
if(_45a!=0){
var _45c;
if(dojo.render.html.ie){
var _45d=_45a.split(" ");
var _45e=_45d[1];
_45c=_45e.split(",");
}else{
_45c=_45a.split(".");
}
this.versionMajor=_45c[0];
this.versionMinor=_45c[1];
this.versionRevision=_45c[2];
var _45f=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_45f);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_460){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _461=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _462=navigator.plugins["Shockwave Flash"+_461].description;
var _463=_462.split(" ");
var _464=_463[2].split(".");
var _465=_464[0];
var _466=_464[1];
if(_463[3]!=""){
var _467=_463[3].split("r");
}else{
var _467=_463[4].split("r");
}
var _468=_467[1]>0?_467[1]:0;
var _469=_465+"."+_466+"."+_468;
return _469;
}
}
return -1;
},_detectCommunicationVersion:function(){
if(this.capable==false){
this.commVersion=null;
return;
}
if(typeof djConfig["forceFlashComm"]!="undefined"&&typeof djConfig["forceFlashComm"]!=null){
this.commVersion=djConfig["forceFlashComm"];
return;
}
if(dojo.render.html.safari==true||dojo.render.html.opera==true){
this.commVersion=8;
}else{
this.commVersion=6;
}
}};
dojo.flash.Embed=function(_46a){
this._visible=_46a;
};
dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){
switch(window.location.protocol){
case "https:":
return "https";
break;
default:
return "http";
break;
}
},write:function(_46b,_46c){
if(dojo.lang.isUndefined(_46c)){
_46c=false;
}
var _46d=new dojo.string.Builder();
_46d.append("width: "+this.width+"px; ");
_46d.append("height: "+this.height+"px; ");
if(this._visible==false){
_46d.append("position: absolute; ");
_46d.append("z-index: 10000; ");
_46d.append("top: -1000px; ");
_46d.append("left: -1000px; ");
}
_46d=_46d.toString();
var _46e;
var _46f;
if(_46b==6){
_46f=dojo.flash.flash6_version;
var _470=djConfig.baseRelativePath;
_46f=_46f+"?baseRelativePath="+escape(_470);
_46e="<embed id=\""+this.id+"\" src=\""+_46f+"\" "+"    quality=\"high\" bgcolor=\"#ffffff\" "+"    width=\""+this.width+"\" height=\""+this.height+"\" "+"    name=\""+this.id+"\" "+"    align=\"middle\" allowScriptAccess=\"sameDomain\" "+"    type=\"application/x-shockwave-flash\" swLiveConnect=\"true\" "+"    pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\">";
}else{
_46f=dojo.flash.flash8_version;
var _471=_46f;
var _472=_46f;
var _470=djConfig.baseRelativePath;
if(_46c){
var _473=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _474=escape(document.title);
_471+="?MMredirectURL="+_473+"&MMplayerType=ActiveX"+"&MMdoctitle="+_474+"&baseRelativePath="+escape(_470);
_472+="?MMredirectURL="+_473+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_470);
}
if(_472.indexOf("?")==-1){
_472+="?baseRelativePath="+escape(_470)+"' ";
}
_46e="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\""+this.protocol()+"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/"+"swflash.cab#version=8,0,0,0\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"align=\"middle\"> "+"<param name=\"allowScriptAccess\" value=\"sameDomain\" /> "+"<param name=\"movie\" value=\""+_471+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_472+"' "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"sameDomain\" "+"type=\"application/x-shockwave-flash\" "+"pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\" />"+"</object>";
}
_46e="<div id=\""+this.id+"Container\" style=\""+_46d+"\"> "+_46e+"</div>";
document.writeln(_46e);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_475){
var _476=dojo.byId(this.id+"Container");
if(_475==true){
_476.style.visibility="visible";
}else{
_476.style.position="absolute";
_476.style.x="-1000px";
_476.style.y="-1000px";
_476.style.visibility="hidden";
}
},center:function(){
var _477=this.width;
var _478=this.height;
var _479=dojo.html.getScroll().offset;
var _47a=dojo.html.getViewport();
var x=_479.x+(_47a.width-_477)/2;
var y=_479.y+(_47a.height-_478)/2;
var _47d=dojo.byId(this.id+"Container");
_47d.style.top=y+"px";
_47d.style.left=x+"px";
}};
dojo.flash.Communicator=function(){
if(dojo.flash.useFlash6()){
this._writeFlash6();
}else{
if(dojo.flash.useFlash8()){
this._writeFlash8();
}
}
};
dojo.flash.Communicator.prototype={_writeFlash6:function(){
var id=dojo.flash.obj.id;
document.writeln("<script language=\"JavaScript\">");
document.writeln("  function "+id+"_DoFSCommand(command, args){ ");
document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");
document.writeln("}");
document.writeln("</script>");
if(dojo.render.html.ie){
document.writeln("<SCRIPT LANGUAGE=VBScript> ");
document.writeln("on error resume next ");
document.writeln("Sub "+id+"_FSCommand(ByVal command, ByVal args)");
document.writeln(" call "+id+"_DoFSCommand(command, args)");
document.writeln("end sub");
document.writeln("</SCRIPT> ");
}
},_writeFlash8:function(){
},_handleFSCommand:function(_47f,args){
if(_47f!=null&&!dojo.lang.isUndefined(_47f)&&/^FSCommand:(.*)/.test(_47f)==true){
_47f=_47f.match(/^FSCommand:(.*)/)[1];
}
if(_47f=="addCallback"){
this._fscommandAddCallback(_47f,args);
}else{
if(_47f=="call"){
this._fscommandCall(_47f,args);
}else{
if(_47f=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_481,args){
var _483=args;
var _484=function(){
return dojo.flash.comm._call(_483,arguments);
};
dojo.flash.comm[_483]=_484;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_485,args){
var _487=dojo.flash.obj.get();
var _488=args;
var _489=parseInt(_487.GetVariable("_numArgs"));
var _48a=new Array();
for(var i=0;i<_489;i++){
var _48c=_487.GetVariable("_"+i);
_48a.push(_48c);
}
var _48d;
if(_488.indexOf(".")==-1){
_48d=window[_488];
}else{
_48d=eval(_488);
}
var _48e=null;
if(!dojo.lang.isUndefined(_48d)&&_48d!=null){
_48e=_48d.apply(null,_48a);
}
_487.SetVariable("_returnResult",_48e);
},_fscommandReady:function(){
var _48f=dojo.flash.obj.get();
_48f.SetVariable("fscommandReady","true");
},_call:function(_490,args){
var _492=dojo.flash.obj.get();
_492.SetVariable("_functionName",_490);
_492.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _494=args[i];
_494=_494.replace(/\0/g,"\\0");
_492.SetVariable("_"+i,_494);
}
_492.TCallLabel("/_flashRunner","execute");
var _495=_492.GetVariable("_returnResult");
_495=_495.replace(/\\0/g,"\x00");
return _495;
},_addExternalInterfaceCallback:function(_496){
var _497=function(){
var _498=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_498[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_496,_498);
};
dojo.flash.comm[_496]=_497;
},_encodeData:function(data){
var _49b=/\&([^;]*)\;/g;
data=data.replace(_49b,"&amp;$1;");
data=data.replace(/</g,"&lt;");
data=data.replace(/>/g,"&gt;");
data=data.replace("\\","&custom_backslash;&custom_backslash;");
data=data.replace(/\n/g,"\\n");
data=data.replace(/\r/g,"\\r");
data=data.replace(/\f/g,"\\f");
data=data.replace(/\0/g,"\\0");
data=data.replace(/\'/g,"\\'");
data=data.replace(/\"/g,"\\\"");
return data;
},_decodeData:function(data){
if(data==null||typeof data=="undefined"){
return data;
}
data=data.replace(/\&custom_lt\;/g,"<");
data=data.replace(/\&custom_gt\;/g,">");
data=eval("\""+data+"\"");
return data;
},_chunkArgumentData:function(_49d,_49e){
var _49f=dojo.flash.obj.get();
var _4a0=Math.ceil(_49d.length/1024);
for(var i=0;i<_4a0;i++){
var _4a2=i*1024;
var _4a3=i*1024+1024;
if(i==(_4a0-1)){
_4a3=i*1024+_49d.length;
}
var _4a4=_49d.substring(_4a2,_4a3);
_4a4=this._encodeData(_4a4);
_49f.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_4a4+"</string>"+"<number>"+_49e+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _4a5=dojo.flash.obj.get();
var _4a6=_4a5.getReturnLength();
var _4a7=new Array();
for(var i=0;i<_4a6;i++){
var _4a9=_4a5.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_4a9=="\"\""||_4a9=="''"){
_4a9="";
}else{
_4a9=_4a9.substring(1,_4a9.length-1);
}
_4a7.push(_4a9);
}
var _4aa=_4a7.join("");
return _4aa;
},_execFlash:function(_4ab,_4ac){
var _4ad=dojo.flash.obj.get();
_4ad.startExec();
_4ad.setNumberArguments(_4ac.length);
for(var i=0;i<_4ac.length;i++){
this._chunkArgumentData(_4ac[i],i);
}
_4ad.exec(_4ab);
var _4af=this._chunkReturnData();
_4af=this._decodeData(_4af);
_4ad.endExec();
return _4af;
}};
dojo.flash.Install=function(){
};
dojo.flash.Install.prototype={needed:function(){
if(dojo.flash.info.capable==false){
return true;
}
if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){
return true;
}
if(!dojo.flash.info.isVersionOrAbove(6,0,0)){
return true;
}
return false;
},install:function(){
dojo.flash.info.installing=true;
dojo.flash.installing();
if(dojo.flash.info.capable==false){
var _4b0=new dojo.flash.Embed(false);
_4b0.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _4b0=new dojo.flash.Embed(false);
_4b0.write(8,true);
_4b0.setVisible(true);
_4b0.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info=new dojo.flash.Info();
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_4b3,wrap,_4b5){
dojo.json.jsonRegistry.register(name,_4b3,wrap,_4b5);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _4b8=typeof (o);
if(_4b8=="undefined"){
return "undefined";
}else{
if((_4b8=="number")||(_4b8=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_4b8=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _4ba;
if(typeof (o.__json__)=="function"){
_4ba=o.__json__();
if(o!==_4ba){
return me(_4ba);
}
}
if(typeof (o.json)=="function"){
_4ba=o.json();
if(o!==_4ba){
return me(_4ba);
}
}
if(_4b8!="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;
_4ba=dojo.json.jsonRegistry.match(o);
return me(_4ba);
}
catch(e){
}
if(_4b8=="function"){
return null;
}
res=[];
for(var k in o){
var _4bf;
if(typeof (k)=="number"){
_4bf="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_4bf=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_4bf+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.storage.browser");
dojo.storage.browser.WhatWGStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.WhatWGStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.WhatWGStorageProvider,{initialized:false,_domain:null,_available:null,_statusHandler:null,_allNamespaces:null,_storageEventListener:null,initialize:function(){
if(djConfig["disableWhatWGStorage"]==true){
return;
}
this._domain=location.hostname;
this.initialized=true;
dojo.storage.manager.loaded();
},isAvailable:function(){
try{
var _4c0=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_4c2,_4c3,_4c4){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
key=this.getFullKey(key,_4c4);
this._statusHandler=_4c3;
if(dojo.lang.isString(_4c2)){
_4c2="string:"+_4c2;
}else{
_4c2=dojo.json.serialize(_4c2);
}
var self=this;
var _4c6=function(evt){
window.removeEventListener("storage",_4c6,false);
_4c3.call(null,dojo.storage.SUCCESS,key);
};
window.addEventListener("storage",_4c6,false);
try{
var _4c8=globalStorage[this._domain];
_4c8.setItem(key,_4c2);
}
catch(e){
this._statusHandler.call(null,dojo.storage.FAILED,key,e.toString());
}
},get:function(key,_4ca){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
key=this.getFullKey(key,_4ca);
var _4cb=globalStorage[this._domain];
var _4cc=_4cb.getItem(key);
if(_4cc==null||_4cc==""){
return null;
}
_4cc=_4cc.value;
if(!dojo.lang.isUndefined(_4cc)&&_4cc!=null&&/^string:/.test(_4cc)){
_4cc=_4cc.substring("string:".length);
}else{
_4cc=dojo.json.evalJson(_4cc);
}
return _4cc;
},getNamespaces:function(){
var _4cd=new Array();
_4cd.push(dojo.storage.DEFAULT_NAMESPACE);
var _4ce=new Object();
var _4cf=globalStorage[this._domain];
var _4d0=/^__([^_]*)_/;
for(var i=0;i<_4cf.length;i++){
var _4d2=_4cf.key(i);
if(_4d0.test(_4d2)==true){
var _4d3=_4d2.match(_4d0)[1];
if(typeof _4ce[_4d3]=="undefined"){
_4ce[_4d3]=true;
_4cd.push(_4d3);
}
}
}
return _4cd;
},getKeys:function(_4d4){
if(_4d4==null||typeof _4d4=="undefined"){
_4d4=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4d4)==false){
dojo.raise("Invalid namespace given: "+_4d4);
}
var _4d5;
if(_4d4==dojo.storage.DEFAULT_NAMESPACE){
_4d5=new RegExp("^([^_]{2}.*)$");
}else{
_4d5=new RegExp("^__"+_4d4+"_(.*)$");
}
var _4d6=globalStorage[this._domain];
var _4d7=new Array();
for(var i=0;i<_4d6.length;i++){
var _4d9=_4d6.key(i);
if(_4d5.test(_4d9)==true){
_4d9=_4d9.match(_4d5)[1];
_4d7.push(_4d9);
}
}
return _4d7;
},clear:function(_4da){
if(_4da==null||typeof _4da=="undefined"){
_4da=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4da)==false){
dojo.raise("Invalid namespace given: "+_4da);
}
var _4db;
if(_4da==dojo.storage.DEFAULT_NAMESPACE){
_4db=new RegExp("^[^_]{2}");
}else{
_4db=new RegExp("^__"+_4da+"_");
}
var _4dc=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_4dc.length;i++){
if(_4db.test(_4dc.key(i))==true){
keys[keys.length]=_4dc.key(i);
}
}
for(var i=0;i<keys.length;i++){
_4dc.removeItem(keys[i]);
}
},remove:function(key,_4e0){
key=this.getFullKey(key,_4e0);
var _4e1=globalStorage[this._domain];
_4e1.removeItem(key);
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},hideSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},getType:function(){
return "dojo.storage.browser.WhatWGProvider";
},getFullKey:function(key,_4e3){
if(_4e3==null||typeof _4e3=="undefined"){
_4e3=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4e3)==false){
dojo.raise("Invalid namespace given: "+_4e3);
}
if(_4e3==dojo.storage.DEFAULT_NAMESPACE){
return key;
}else{
return "__"+_4e3+"_"+key;
}
}});
dojo.storage.browser.FlashStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{initialized:false,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableFlashStorage"]==true){
return;
}
var _4e4=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_4e4);
var _4e5=dojo.uri.moduleUri("dojo","../Storage_version6.swf").toString();
var _4e6=dojo.uri.moduleUri("dojo","../Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_4e5,flash8:_4e6,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_4e8,_4e9,_4ea){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
if(_4ea==null||typeof _4ea=="undefined"){
_4ea=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4ea)==false){
dojo.raise("Invalid namespace given: "+_4ea);
}
this._statusHandler=_4e9;
if(dojo.lang.isString(_4e8)){
_4e8="string:"+_4e8;
}else{
_4e8=dojo.json.serialize(_4e8);
}
dojo.flash.comm.put(key,_4e8,_4ea);
},get:function(key,_4ec){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
if(_4ec==null||typeof _4ec=="undefined"){
_4ec=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4ec)==false){
dojo.raise("Invalid namespace given: "+_4ec);
}
var _4ed=dojo.flash.comm.get(key,_4ec);
if(_4ed==""){
return null;
}
if(!dojo.lang.isUndefined(_4ed)&&_4ed!=null&&/^string:/.test(_4ed)){
_4ed=_4ed.substring("string:".length);
}else{
_4ed=dojo.json.evalJson(_4ed);
}
return _4ed;
},getKeys:function(_4ee){
if(_4ee==null||typeof _4ee=="undefined"){
_4ee=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4ee)==false){
dojo.raise("Invalid namespace given: "+_4ee);
}
var _4ef=dojo.flash.comm.getKeys(_4ee);
if(_4ef==""){
return [];
}
_4ef=_4ef.split(",");
return _4ef;
},getNamespaces:function(){
var _4f0=dojo.flash.comm.getNamespaces();
if(_4f0==""){
return [dojo.storage.DEFAULT_NAMESPACE];
}
_4f0=_4f0.split(",");
return _4f0;
},clear:function(_4f1){
if(_4f1==null||typeof _4f1=="undefined"){
_4f1=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4f1)==false){
dojo.raise("Invalid namespace given: "+_4f1);
}
dojo.flash.comm.clear(_4f1);
},remove:function(key,_4f3){
if(_4f3==null||typeof _4f3=="undefined"){
_4f3=dojo.storage.DEFAULT_NAMESPACE;
}
if(this.isValidKey(_4f3)==false){
dojo.raise("Invalid namespace given: "+_4f3);
}
dojo.flash.comm.remove(key,_4f3);
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return true;
},showSettingsUI:function(){
dojo.flash.comm.showSettings();
dojo.flash.obj.setVisible(true);
dojo.flash.obj.center();
},hideSettingsUI:function(){
dojo.flash.obj.setVisible(false);
if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){
dojo.storage.onHideSettingsUI.call(null);
}
},getType:function(){
return "dojo.storage.browser.FlashStorageProvider";
},getResourceList:function(){
var _4f4=dojo.uri.moduleUri("dojo","../Storage_version6.swf").toString();
var _4f5=dojo.uri.moduleUri("dojo","../Storage_version8.swf").toString();
var _4f6=dojo.flash.info.getResourceList(_4f4,_4f5);
_4f6.push(djConfig.baseRelativePath+"storage_dialog.swf");
return _4f6;
},_flashLoaded:function(){
this._allNamespaces=this.getNamespaces();
this._initialized=true;
dojo.storage.manager.loaded();
},_onStatus:function(_4f7,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_4f7==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_4f7,key);
}
}});
dojo.storage.manager.register("dojo.storage.browser.WhatWGStorageProvider",new dojo.storage.browser.WhatWGStorageProvider());
dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());
dojo.storage.manager.initialize();
dojo.provide("dojo.off");
dojo.lang.mixin(dojo.off,{NETWORK_CHECK:20,STORAGE_NAMESPACE:"dojo_offline",enabled:true,isOnline:false,requireOfflineCache:true,availabilityURL:djConfig.baseRelativePath+"src/off/network_check.txt",pacTestURL:djConfig.baseRelativePath+"src/off/pac_check.txt",goingOnline:false,coreSaveFailed:false,doNetworkChecking:true,hasOfflineCache:null,browserRestart:false,_OFFLINE_CACHE_URL:"http://localhost:8123/polipo/offline?",_onLoadListeners:new Array(),_initializeCalled:false,_storageLoaded:false,_pageLoaded:false,onOnline:function(){
},onOffline:function(){
},goOffline:function(){
if(dojo.sync.isSyncing==true||this.goingOnline==true){
return;
}
this.goingOnline=false;
this.isOnline=false;
this._tellCacheNetworkStatus(false,this.onOffline);
},goOnline:function(_4fb){
if(dojo.sync.isSyncing==true||dojo.off.goingOnline==true){
return;
}
this.goingOnline=true;
this.isOnline=false;
this._isSiteAvailable(_4fb);
},addOnLoad:function(func){
this._onLoadListeners.push(func);
},removeOnLoad:function(func){
for(var i=0;i<this._onLoadListeners.length;i++){
if(func==this._onLoadListeners[i]){
this._onLoadListeners=this._onLoadListeners.splice(i,1);
break;
}
}
},save:function(){
},load:function(_4ff){
dojo.sync.load(_4ff);
},initialize:function(){
this._initializeCalled=true;
if(this._storageLoaded==true&&this._pageLoaded==true&&this._initializeCalled==true){
this._onLoad();
}
},onSave:function(_500,_501,key,_503,_504){
if(_500==true&&_501==dojo.storage.FAILED){
dojo.off.coreSaveFailed=true;
dojo.off.enabled=false;
}
},onOfflineCacheInstalled:function(){
},addOfflineHost:function(_505){
if(this.requireOfflineCache==false){
_505(true);
}
if(this.hasOfflineCache!=true){
_505(false);
}
this._talkToOfflineCache("addOfflineHost",_505);
},removeOfflineHost:function(_506){
if(this.requireOfflineCache==false){
_506(true);
}
if(this.hasOfflineCache!=true){
_506(false);
}
this._talkToOfflineCache("removeOfflineHost",_506);
},isHostAvailableOffline:function(_507){
this._talkToOfflineCache("isHostAvailableOffline",_507);
},standardSaveHandler:function(_508,_509,_50a,item){
if(_508==dojo.storage.FAILED&&_509==true){
this.coreSaveFailed=true;
this.enabled=false;
}
if(this.onSave){
onSave(_508,_509,_50a,item);
}
},_checkOfflineCacheAvailable:function(_50c){
var self=this;
if(this.requireOfflineCache==false){
self.hasOfflineCache=false;
resultsCallback();
return;
}
var _50e=setTimeout(function(){
self.hasOfflineCache=false;
_50c();
},200);
this._talkToOfflineCache("isRunning",function(_50f){
self.hasOfflineCache=true;
window.clearTimeout(_50e);
_50c();
});
},_onLoad:function(){
dojo.off.files.cache(dojo.storage.manager.getResourceList());
this.load(dojo.lang.hitch(this,this._onFrameworkDataLoaded));
},_onFrameworkDataLoaded:function(){
if(this.requireOfflineCache==false){
this._finishStartingUp();
return;
}
this._checkOfflineCacheAvailable(dojo.lang.hitch(this,this._onOfflineCacheChecked));
},_onOfflineCacheChecked:function(){
if(this.hasOfflineCache==true){
this.isHostAvailableOffline(dojo.lang.hitch(this,this._onHostAvailabilityChecked));
}else{
this._keepCheckingUntilInstalled();
}
},_keepCheckingUntilInstalled:function(){
var _510=window.setInterval(dojo.lang.hitch(this,function(){
this._checkOfflineCacheAvailable(dojo.lang.hitch(this,function(){
if(this.hasOfflineCache==true){
window.clearTimeout(_510);
this._onOfflineCacheInstalled();
}
}));
}),1000);
this._finishStartingUp();
},_onHostAvailabilityChecked:function(_511){
if(_511==false){
this.addOfflineHost(dojo.lang.hitch(this,this._onHostAdded));
}else{
this._checkPAC(dojo.lang.hitch(this,this._finishStartingUp));
}
},_onHostAdded:function(){
this._checkPAC(dojo.lang.hitch(this,this._finishStartingUp));
},_finishStartingUp:function(){
this._startNetworkThread();
var self=this;
this.goOnline(function(){
for(var i=0;i<self._onLoadListeners.length;i++){
self._onLoadListeners[i]();
}
});
},_onPageLoad:function(){
this._pageLoaded=true;
if(this._pageLoaded==true&&this._storageLoaded==true&&this._initializeCalled==true){
this._onLoad();
}
},_onStorageLoad:function(){
this._storageLoaded=true;
if(this._pageLoaded==true&&this._storageLoaded==true&&this._initializeCalled==true){
this._onLoad();
}
},_isSiteAvailable:function(_514){
var self=this;
var _516={url:dojo.off._getAvailabilityURL(),sync:false,mimetype:"text/plain",error:function(type,_518){
self.goingOnline=false;
self.isOnline=false;
if(_514){
_514(false);
}
},load:function(type,data,evt){
self.goingOnline=false;
self.isOnline=true;
self._tellCacheNetworkStatus(true,function(){
if(_514){
_514(true);
}else{
if(self.onOnline){
self.onOnline();
}
}
});
}};
dojo.io.bind(_516);
},_startNetworkThread:function(){
if(this.doNetworkChecking==false){
return;
}
window.setInterval(function(){
var _51c={url:dojo.off._getAvailabilityURL(),sync:false,mimetype:"text/plain",error:function(type,_51e){
if(dojo.off.isOnline==true){
dojo.off.isOnline=false;
dojo.off._tellCacheNetworkStatus(false,dojo.lang.hitch(dojo.off,dojo.off.onOffline));
}
},load:function(type,data,evt){
if(dojo.off.isOnline==false){
dojo.off.isOnline=true;
dojo.off._tellCacheNetworkStatus(true,dojo.lang.hitch(dojo.off,dojo.off.onOnline));
}
}};
dojo.io.bind(_51c);
},this.NETWORK_CHECK*1000);
},_getAvailabilityURL:function(){
var url=this.availabilityURL;
if(url.indexOf("?")==-1){
url+="?";
}else{
url+="&";
}
url+="proxybust="+new Date().getTime();
return url;
},_tellCacheNetworkStatus:function(_523,_524){
if(this.requireOfflineCache==false||this.hasOfflineCache==false){
if(_524){
_524();
}
return;
}
var _525;
if(_523==true){
_525="goOnline";
}else{
_525="goOffline";
}
this._talkToOfflineCache(_525,function(_526,_527){
if(_524){
_524();
}
});
},_talkToOfflineCache:function(_528,_529){
var head=document.getElementsByTagName("head")[0];
var _52b=document.createElement("script");
var url=this._OFFLINE_CACHE_URL+_528;
_52b.setAttribute("src",url);
window.offlineCacheCallback=function(name,_52e){
if(name=="UnknownMethod"){
dojo.raise("Programming error in dojo.off._talkToOfflineCache: "+name);
return;
}
head=null;
_52b=null;
_529(_52e);
};
head.appendChild(_52b);
},_checkPAC:function(_52f){
var _530={url:dojo.off.pacTestURL+"?browserbust="+new Date().getTime(),sync:false,mimetype:"text/plain",error:function(type,_532){
dojo.off.browserRestart=false;
_52f();
},load:function(type,data,evt){
if(data.indexOf("the web application is not in PAC file")!=-1){
dojo.off.browserRestart=true;
}else{
dojo.off.browserRestart=false;
}
_52f();
}};
dojo.io.bind(_530);
},_onOfflineCacheInstalled:function(){
this.addOfflineHost(dojo.lang.hitch(this,function(){
this._checkPAC(dojo.lang.hitch(this,function(){
if(this.onOfflineCacheInstalled){
this.onOfflineCacheInstalled();
}
}));
}));
}});
dojo.storage.manager.addOnLoad(dojo.lang.hitch(dojo.off,dojo.off._onStorageLoad));
dojo.event.connect(window,"onload",dojo.off,dojo.off._onPageLoad);
dojo.provide("dojo.off.files");
dojo.off.files={listOfURLs:new Array(),_refreshCounter:0,_error:false,_errorMessages:new Array(),_finishedCallback:null,cache:function(_536){
if(dojo.lang.isString(_536)){
var url=_536;
this.listOfURLs.push(url);
}else{
var _538=_536;
for(var i=0;i<_538.length;i++){
this.listOfURLs.push(_538[i]);
}
}
},remove:function(url){
for(var i=0;i<this.listOfURLs.length;i++){
if(this.listOfURLs[i]==url){
this.listOfURLs=this.listOfURLs.splice(i,1);
break;
}
}
},isAvailable:function(url){
for(var i=0;i<this.listOfURLs.length;i++){
if(this.listOfURLs[i]==url){
return true;
}
}
return false;
},refresh:function(_53e){
dojo.off.files._refreshCounter=0;
dojo.off.files._error=false;
dojo.off.files._errorMessages=new Array();
dojo.off.files._finishedCallback=_53e;
for(var i=0;i<this.listOfURLs.length;i++){
var url=this.listOfURLs[i];
if(dojo.off.requireOfflineCache==true){
if(url.indexOf("?")==-1){
url+="?";
}else{
url+="&";
}
url+="browserbust="+new Date().getTime();
}
window.setTimeout("dojo.off.files._loadFile(\""+url+"\")",10);
}
},_loadFile:function(url){
var xhr=dojo.hostenv.getXmlhttpObject();
var _543=url;
xhr.onreadystatechange=function(){
if(xhr.readyState==4&&dojo.off.files._error!=true){
if(xhr.status==200){
}else{
if(_543.indexOf("browserbust=")!=-1){
_543=_543.replace(/browserbust\=[0-9]*/,"");
if(_543.charAt(_543.length-1)=="?"){
_543=_543.replace(/\?$/,"");
}
}
dojo.off.files._error=true;
var msg="Error loading offline resource "+_543+": "+xhr.statusText;
dojo.off.files._errorMessages.push(msg);
}
dojo.off.files._refreshCounter++;
if(dojo.off.files._refreshCounter==dojo.off.files.listOfURLs.length||dojo.off.files._error==true){
dojo.off.files._finishedCallback(dojo.off.files._error,dojo.off.files._errorMessages);
}
}
};
xhr.open("GET",url,true);
xhr.send(null);
}};
dojo.kwCompoundRequire({common:["dojo.off","dojo.off.files"]});
dojo.provide("dojo.off.*");
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,_54a){
return (new RegExp("(^|\\s+)"+_54a+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_54c){
_54c+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_54c);
};
dojo.html.addClass=function(node,_54e){
if(dojo.html.hasClass(node,_54e)){
return false;
}
_54e=(dojo.html.getClass(node)+" "+_54e).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_54e);
};
dojo.html.setClass=function(node,_550){
node=dojo.byId(node);
var cs=new String(_550);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_550);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_553,_554){
try{
if(!_554){
var _555=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_553+"(\\s+|$)"),"$1$2");
}else{
var _555=dojo.html.getClass(node).replace(_553,"");
}
dojo.html.setClass(node,_555);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_557,_558){
dojo.html.removeClass(node,_558);
dojo.html.addClass(node,_557);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_559,_55a,_55b,_55c,_55d){
_55d=false;
var _55e=dojo.doc();
_55a=dojo.byId(_55a)||_55e;
var _55f=_559.split(/\s+/g);
var _560=[];
if(_55c!=1&&_55c!=2){
_55c=0;
}
var _561=new RegExp("(\\s|^)(("+_55f.join(")|(")+"))(\\s|$)");
var _562=_55f.join(" ").length;
var _563=[];
if(!_55d&&_55e.evaluate){
var _564=".//"+(_55b||"*")+"[contains(";
if(_55c!=dojo.html.classMatchType.ContainsAny){
_564+="concat(' ',@class,' '), ' "+_55f.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_55c==2){
_564+=" and string-length(@class)="+_562+"]";
}else{
_564+="]";
}
}else{
_564+="concat(' ',@class,' '), ' "+_55f.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _565=_55e.evaluate(_564,_55a,null,XPathResult.ANY_TYPE,null);
var _566=_565.iterateNext();
while(_566){
try{
_563.push(_566);
_566=_565.iterateNext();
}
catch(e){
break;
}
}
return _563;
}else{
if(!_55b){
_55b="*";
}
_563=_55a.getElementsByTagName(_55b);
var node,i=0;
outer:
while(node=_563[i++]){
var _569=dojo.html.getClasses(node);
if(_569.length==0){
continue outer;
}
var _56a=0;
for(var j=0;j<_569.length;j++){
if(_561.test(_569[j])){
if(_55c==dojo.html.classMatchType.ContainsAny){
_560.push(node);
continue outer;
}else{
_56a++;
}
}else{
if(_55c==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_56a==_55f.length){
if((_55c==dojo.html.classMatchType.IsOnly)&&(_56a==_569.length)){
_560.push(node);
}else{
if(_55c==dojo.html.classMatchType.ContainsAll){
_560.push(node);
}
}
}
}
return _560;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_56c){
var arr=_56c.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(_570){
return _570.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_572,_573){
node=dojo.byId(node);
if(!node||!node.style){
return _573;
}
return node.currentStyle[dojo.html.toCamelCase(_572)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_576,_577){
node=dojo.byId(node);
if(!node||!node.style){
return _577;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_576)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_57b){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_57b)]:undefined);
};
dojo.html.getStyle=function(node,_57d){
var _57e=dojo.html.getStyleProperty(node,_57d);
return (_57e?_57e:dojo.html.getComputedStyle(node,_57d));
};
dojo.html.setStyle=function(node,_580,_581){
node=dojo.byId(node);
if(node&&node.style){
var _582=dojo.html.toCamelCase(_580);
node.style[_582]=_581;
}
};
dojo.html.setStyleText=function(_583,text){
try{
_583.style.cssText=text;
}
catch(e){
_583.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_585,_586){
if(!_586.style.cssText){
_585.setAttribute("style",_586.getAttribute("style"));
}else{
_585.style.cssText=_586.style.cssText;
}
dojo.html.addClass(_585,dojo.html.getClass(_586));
};
dojo.html.getUnitValue=function(node,_588,_589){
var s=dojo.html.getComputedStyle(node,_588);
if((!s)||((s=="auto")&&(_589))){
return {value:0,units:"px"};
}
var _58b=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_58b){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_58b[1]),units:_58b[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_58c,_58d){
if(!_58d){
return 0;
}
if(_58d.slice(-2)=="px"){
return parseFloat(_58d);
}
var _58e=0;
with(_58c){
var _58f=style.left;
var _590=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_58d||0;
_58e=style.pixelLeft;
style.left=_58f;
runtimeStyle.left=_590;
}
catch(e){
}
}
return _58e;
};
}else{
dojo.html.toPixelValue=function(_591,_592){
return (_592&&(_592.slice(-2)=="px")?parseFloat(_592):0);
};
}
dojo.html.getPixelValue=function(node,_594,_595){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_594));
};
dojo.html.setPositivePixelValue=function(node,_597,_598){
if(isNaN(_598)){
return false;
}
node.style[_597]=Math.max(0,_598)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_599,_59a,_59b){
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){
_59b=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_59b=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_599+" { "+_59a+" }";
return dojo.html.styleSheet.insertRule(rule,_59b);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_599,_59a,_59b);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_59d){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_59d){
_59d=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_59d);
}
}else{
if(document.styleSheets[0]){
if(!_59d){
_59d=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_59d);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_5a0,_5a1){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _5a2=dojo.hostenv.getText(URI,false,_5a1);
if(_5a2===null){
return;
}
_5a2=dojo.html.fixPathsInCssText(_5a2,URI);
if(_5a0){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_5a2)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _5a7=doc.getElementsByTagName("style");
for(var i=0;i<_5a7.length;i++){
if(_5a7[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _5a8=dojo.html.insertCssText(_5a2,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_5a2,"nodeRef":_5a8});
if(_5a8&&djConfig.isDebug){
_5a8.setAttribute("dbgHref",URI);
}
return _5a8;
};
dojo.html.insertCssText=function(_5a9,doc,URI){
if(!_5a9){
return;
}
if(!doc){
doc=document;
}
if(URI){
_5a9=dojo.html.fixPathsInCssText(_5a9,URI);
}
var _5ac=doc.createElement("style");
_5ac.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(_5ac);
}
if(_5ac.styleSheet){
var _5ae=function(){
try{
_5ac.styleSheet.cssText=_5a9;
}
catch(e){
dojo.debug(e);
}
};
if(_5ac.styleSheet.disabled){
setTimeout(_5ae,10);
}else{
_5ae();
}
}else{
var _5af=doc.createTextNode(_5a9);
_5ac.appendChild(_5af);
}
return _5ac;
};
dojo.html.fixPathsInCssText=function(_5b0,URI){
if(!_5b0||!URI){
return;
}
var _5b2,str="",url="",_5b5="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _5b6=new RegExp("url\\(\\s*("+_5b5+")\\s*\\)");
var _5b7=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_5b5+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _5b8=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_5b5+")['\"]");
while(_5b2=_5b8.exec(_5b0)){
url=_5b2[2].replace(regexTrim,"$2");
if(!_5b7.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_5b0.substring(0,_5b2.index)+"AlphaImageLoader("+_5b2[1]+"src='"+url+"'";
_5b0=_5b0.substr(_5b2.index+_5b2[0].length);
}
_5b0=str+_5b0;
str="";
}
while(_5b2=_5b6.exec(_5b0)){
url=_5b2[1].replace(regexTrim,"$2");
if(!_5b7.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_5b0.substring(0,_5b2.index)+"url("+url+")";
_5b0=_5b0.substr(_5b2.index+_5b2[0].length);
}
return str+_5b0;
};
dojo.html.setActiveStyleSheet=function(_5b9){
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")==_5b9){
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 _5c5={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 _5c5){
if(_5c5[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.off.ui");
dojo.lang.mixin(dojo.off.ui,{appName:"setme",autoEmbed:true,autoEmbedID:"dot-widget",runLink:window.location.href,runLinkTitle:"Run Application",learnHowPath:djConfig.baseRelativePath+"src/off/ui-template/learnhow.html",customLearnHowPath:false,htmlTemplatePath:djConfig.baseRelativePath+"src/off/ui-template/widget.html",cssTemplatePath:djConfig.baseRelativePath+"src/off/ui-template/widget.css",onlineImagePath:djConfig.baseRelativePath+"src/off/ui-template/greenball.png",offlineImagePath:djConfig.baseRelativePath+"src/off/ui-template/redball.png",rollerImagePath:djConfig.baseRelativePath+"src/off/ui-template/roller.gif",checkmarkImagePath:djConfig.baseRelativePath+"src/off/ui-template/checkmark.png",learnHowJSPath:djConfig.baseRelativePath+"src/off/ui-template/learnhow.js",onStart:function(){
this._updateSyncUI();
},onRefreshUI:function(){
this._setSyncMessage("Downloading UI...");
},onUpload:function(){
this._setSyncMessage("Uploading new data...");
},onDownload:function(){
this._setSyncMessage("Downloading new data...");
},onFinished:function(){
this._updateSyncUI();
var _5c7=dojo.byId("dot-success-checkmark");
var _5c8=dojo.byId("dot-sync-details");
if(dojo.sync.successful==true){
this._setSyncMessage("Sync Successful");
if(_5c7){
_5c7.style.display="inline";
}
}else{
if(dojo.sync.cancelled==true){
this._setSyncMessage("Sync Cancelled");
if(_5c7){
_5c7.style.display="none";
}
}else{
this._setSyncMessage("Sync Error");
var _5c9=dojo.byId("dot-sync-messages");
if(_5c9){
dojo.html.addClass(_5c9,"dot-sync-error");
}
if(_5c7){
_5c7.style.display="none";
}
}
}
if(dojo.sync.details.length>0&&_5c8){
_5c8.style.display="inline";
}
},onCancel:function(){
this._setSyncMessage("Canceling Sync...");
},onOnline:function(){
this._updateNetworkIndicator();
if(dojo.sync.autoSync==true){
window.setTimeout(dojo.lang.hitch(dojo.sync,dojo.sync.synchronize),1000);
}
},onOffline:function(){
this._updateNetworkIndicator();
this._setSyncMessage("You are working offline");
var _5ca=dojo.byId("dot-sync-details");
if(_5ca){
_5ca.style.display="none";
}
},onSave:function(_5cb,_5cc,_5cd,item){
if(_5cb==dojo.storage.FAILED&&_5cc==true){
alert("Please increase the amount of local storage available "+"to this application");
this._showConfiguration();
if(dojo.storage.hasSettingsUI()){
dojo.storage.showSettingsUI();
}
}
},onLoad:function(){
},onOfflineCacheInstalled:function(){
this._hideNeedsOfflineCache();
if(dojo.off.requireOfflineCache==true&&dojo.off.hasOfflineCache==true&&dojo.off.browserRestart==true){
this._needsBrowserRestart();
return;
}else{
var _5cf=dojo.byId("dot-widget-browser-restart");
if(_5cf){
_5cf.style.display="none";
}
}
this._updateSyncUI();
this._initMainEvtHandlers();
this._setOfflineEnabled(dojo.off.enabled);
this._testNetwork();
},_initialize:function(){
dojo.debug("dojo.off.ui._initialize");
if(this._validateAppName(this.appName)==false){
alert("You must set dojo.off.ui.appName; it can only contain "+"letters, numbers, and spaces; right now it "+"is incorrectly set to '"+dojo.off.ui.appName+"'");
dojo.off.enabled=false;
return;
}
this.runLinkText="Run "+this.appName;
dojo.sync.onStart=dojo.lang.hitch(this,this.onStart);
dojo.sync.onRefreshUI=dojo.lang.hitch(this,this.onRefreshUI);
dojo.sync.onUpload=dojo.lang.hitch(this,this.onUpload);
dojo.sync.onDownload=dojo.lang.hitch(this,this.onDownload);
dojo.sync.onFinished=dojo.lang.hitch(this,this.onFinished);
dojo.sync.onCancel=dojo.lang.hitch(this,this.onCancel);
dojo.off.onOnline=dojo.lang.hitch(this,this.onOnline);
dojo.off.onOffline=dojo.lang.hitch(this,this.onOffline);
dojo.off.files.cache([this.htmlTemplatePath,this.cssTemplatePath,this.onlineImagePath,this.offlineImagePath,this.rollerImagePath,this.checkmarkImagePath]);
if(this.autoEmbed==true){
this._doAutoEmbed();
}
},_doAutoEmbed:function(){
dojo.debug("dojo.off.ui._doAutoEmbed");
var _5d0=this.htmlTemplatePath;
var _5d1={url:_5d0,sync:false,mimetype:"text/html",error:function(type,_5d3){
dojo.off.enabled=false;
alert("Error loading the Dojo Offline Widget from "+_5d0+": "+_5d3.message);
},load:dojo.lang.hitch(this,this._templateLoaded)};
dojo.io.bind(_5d1);
},_templateLoaded:function(type,data,evt){
dojo.debug("dojo.of.ui._templateLoaded");
var _5d7=dojo.byId(this.autoEmbedID);
if(_5d7){
_5d7.innerHTML=data;
}
this._initImages();
this._updateNetworkIndicator();
this._initLearnHow();
if(dojo.off.requireOfflineCache==true&&dojo.off.hasOfflineCache==false){
this._showNeedsOfflineCache();
return;
}
if(dojo.off.requireOfflineCache==true&&dojo.off.hasOfflineCache==true&&dojo.off.browserRestart==true){
this._needsBrowserRestart();
return;
}else{
var _5d8=dojo.byId("dot-widget-browser-restart");
if(_5d8){
_5d8.style.display="none";
}
}
this._updateSyncUI();
this._initMainEvtHandlers();
this._setOfflineEnabled(dojo.off.enabled);
this._testNetwork();
},_testNetwork:function(){
var _5d9=dojo.lang.hitch(this,function(_5da){
this._goOnlineFinished(_5da);
if(this.onLoad){
this.onLoad();
}
});
dojo.off.goOnline(_5d9);
},_updateNetworkIndicator:function(){
var _5db=dojo.byId("dot-widget-network-indicator-online");
var _5dc=dojo.byId("dot-widget-network-indicator-offline");
var _5dd=dojo.byId("dot-widget-title-text");
if(_5db&&_5dc){
if(dojo.off.isOnline==true){
_5db.style.display="inline";
_5dc.style.display="none";
}else{
_5db.style.display="none";
_5dc.style.display="inline";
}
}
if(_5dd){
if(dojo.off.isOnline==true){
_5dd.innerHTML="Online";
}else{
_5dd.innerHTML="Offline";
}
}
},_initLearnHow:function(){
var _5de=dojo.byId("dot-widget-learn-how-link");
if(_5de==null||typeof _5de=="undefined"){
return;
}
if(this.customLearnHowPath==false){
var _5df=djConfig.baseRelativePath;
this.learnHowPath+="?appName="+encodeURIComponent(this.appName)+"&requireOfflineCache="+dojo.off.requireOfflineCache+"&hasOfflineCache="+dojo.off.hasOfflineCache+"&runLink="+encodeURIComponent(this.runLink)+"&runLinkText="+encodeURIComponent(this.runLinkText)+"&baseRelativePath="+encodeURIComponent(_5df);
dojo.off.files.cache(this.learnHowJSPath);
dojo.off.files.cache(this.learnHowPath);
}
_5de.setAttribute("href",this.learnHowPath);
var _5e0=dojo.byId("dot-widget-learn-how-app-name");
if(_5e0==null||typeof _5e0=="undefined"){
return;
}
_5e0.innerHTML="";
_5e0.appendChild(document.createTextNode(this.appName));
},_validateAppName:function(_5e1){
if(_5e1==null||typeof _5e1=="undefined"){
return false;
}
return (/^[a-z0-9 ]*$/i.test(_5e1));
},_updateSyncUI:function(){
var _5e2=dojo.byId("dot-roller");
var _5e3=dojo.byId("dot-success-checkmark");
var _5e4=dojo.byId("dot-sync-messages");
var _5e5=dojo.byId("dot-sync-details");
var _5e6=dojo.byId("dot-sync-cancel");
if(dojo.sync.isSyncing==true){
this._clearSyncMessage();
if(_5e2){
_5e2.style.display="inline";
}
if(_5e3){
_5e3.style.display="none";
}
if(_5e4){
dojo.html.removeClass(_5e4,"dot-sync-error");
}
if(_5e5){
_5e5.style.display="none";
}
if(_5e6){
_5e6.style.display="inline";
}
}else{
if(_5e2){
_5e2.style.display="none";
}
if(_5e6){
_5e6.style.display="none";
}
}
},_setSyncMessage:function(_5e7){
var _5e8=dojo.byId("dot-sync-messages");
if(_5e8){
_5e8.innerHTML=_5e7;
}
},_clearSyncMessage:function(){
this._setSyncMessage("");
},_initImages:function(){
var _5e9=dojo.byId("dot-widget-network-indicator-online");
if(_5e9){
_5e9.setAttribute("src",this.onlineImagePath);
}
var _5ea=dojo.byId("dot-widget-network-indicator-offline");
if(_5ea){
_5ea.setAttribute("src",this.offlineImagePath);
}
var _5eb=dojo.byId("dot-roller");
if(_5eb){
_5eb.setAttribute("src",this.rollerImagePath);
}
var _5ec=dojo.byId("dot-success-checkmark");
if(_5ec){
_5ec.setAttribute("src",this.checkmarkImagePath);
}
},_showDetails:function(evt){
evt.preventDefault();
evt.stopPropagation();
if(dojo.sync.details.length==0){
return;
}
var html="";
html+="<html><head><title>Sync Details</title><head><body>";
html+="<h1>Sync Details</h1>\n";
html+="<ul>\n";
for(var i=0;i<dojo.sync.details.length;i++){
html+="<li>";
html+=dojo.sync.details[i];
html+="</li>";
}
html+="</ul>\n";
html+="<a href='javascript:window.close()' "+"style='text-align: right; padding-right: 2em;'>"+"Close Window"+"</a>\n";
html+="</body></html>";
var _5f0="height=400,width=600,resizable=true,"+"scrollbars=true,toolbar=no,menubar=no,"+"location=no,directories=no,dependent=yes";
var _5f1=window.open("","SyncDetails",_5f0);
if(_5f1==null||typeof _5f1=="undefined"){
alert("Please allow popup windows for this domain; can't display sync details window");
return;
}
_5f1.document.open();
_5f1.document.write(html);
_5f1.document.close();
if(_5f1.focus){
_5f1.focus();
}
},_cancel:function(evt){
evt.preventDefault();
evt.stopPropagation();
dojo.sync.cancel();
},_goOnlineFinished:function(_5f3){
var _5f4=dojo.byId("dot-roller");
if(_5f4){
_5f4.style.display="none";
}
if(_5f3){
this._clearSyncMessage();
this.onOnline();
}else{
this._setSyncMessage("Network not available");
this.onOffline();
}
},_needsBrowserRestart:function(){
var _5f5=dojo.byId("dot-widget-browser-restart");
if(_5f5){
dojo.html.addClass(_5f5,"dot-needs-browser-restart");
}
var _5f6=dojo.byId("dot-widget-browser-restart-app-name");
if(_5f6){
_5f6.innerHTML="";
_5f6.appendChild(document.createTextNode(this.appName));
}
var _5f7=dojo.byId("dot-sync-status");
if(_5f7){
_5f7.style.display="none";
}
},_showNeedsOfflineCache:function(){
var _5f8=dojo.byId("dot-widget-container");
if(_5f8){
dojo.html.addClass(_5f8,"dot-needs-offline-cache");
}
},_hideNeedsOfflineCache:function(){
var _5f9=dojo.byId("dot-widget-container");
if(_5f9){
dojo.html.removeClass(_5f9,"dot-needs-offline-cache");
}
},_initMainEvtHandlers:function(){
var _5fa=dojo.byId("dot-sync-details-button");
if(_5fa){
dojo.event.connect(_5fa,"onclick",this,this._showDetails);
}
var _5fb=dojo.byId("dot-sync-cancel-button");
if(_5fb){
dojo.event.connect(_5fb,"onclick",this,this._cancel);
}
},_setOfflineEnabled:function(_5fc){
var _5fd=new Array();
_5fd.push(dojo.byId("dot-sync-status"));
for(var i=0;i<_5fd.length;i++){
if(_5fd[i]){
if(_5fc){
_5fd[i].style.visibility="visible";
}else{
_5fd[i].style.visibility="hidden";
}
}
}
}});
dojo.off.onSave=dojo.lang.hitch(dojo.off.ui,dojo.off.ui.onSave);
dojo.off.onOfflineCacheInstalled=dojo.lang.hitch(dojo.off.ui,dojo.off.ui.onOfflineCacheInstalled);
dojo.off.addOnLoad(dojo.lang.hitch(dojo.off.ui,dojo.off.ui._initialize));
dojo.provide("dojo.sync");
dojo.sync.CommandLog=function(){
};
dojo.sync.CommandLog.prototype={commands:new Array(),autoSave:true,reasonHalted:null,isReplaying:false,onReplayFinished:null,replay:function(){
if(this.isReplaying==true){
return;
}
this.reasonHalted=null;
if(this.commands.length==0){
this.onReplayFinished();
return;
}
this.isReplaying=true;
var _5ff=this.commands[0];
this.onCommand(_5ff);
},onCommand:function(_600){
},add:function(_601){
if(this.isReplaying==true){
throw new String("Programming error: you can not call log.add() while "+"we are replaying a command log");
}
this.commands.push(_601);
if(this.autoSave==true){
this.save();
}
},length:function(){
return this.commands.length;
},haltReplay:function(_602){
if(this.isReplaying==false){
return;
}
if(_602!=null&&typeof _602!="undefined"){
this.reasonHalted=_602.toString();
}
if(this.autoSave==true){
var self=this;
this.save(function(){
self.isReplaying=false;
self.onReplayFinished();
});
}else{
this.isReplaying=false;
this.onReplayFinished();
}
},continueReplay:function(){
if(this.isReplaying==false){
return;
}
this.commands.shift();
if(this.commands.length==0){
if(this.autoSave==true){
var self=this;
this.save(function(){
self.isReplaying=false;
self.onReplayFinished();
});
return;
}else{
this.isReplaying=false;
this.onReplayFinished();
return;
}
}
var _605=this.commands[0];
this.onCommand(_605);
},clear:function(){
if(this.isReplaying==true){
return;
}
this.commands=new Array();
if(this.autoSave==true){
this.save();
}
},save:function(_606){
try{
var self=this;
var _608=function(_609,key,_60b){
if(_609==dojo.storage.FAILED){
dojo.off.onSave(true,_60b,key,self.commands,dojo.off.STORAGE_NAMESPACE);
if(_606){
_606();
}
}else{
if(_609==dojo.storage.SUCCESS){
if(_606){
_606();
}
}
}
};
dojo.storage.put("commandlog",this.commands,_608,dojo.off.STORAGE_NAMESPACE);
}
catch(exp){
dojo.off.onSave(true,exp.toString(),"commandlog",this.commands,dojo.off.STORAGE_NAMESPACE);
}
},load:function(_60c){
var _60d=dojo.storage.get("commandlog",dojo.off.STORAGE_NAMESPACE);
if(_60d==null||typeof _60d=="undefined"){
_60d=new Array();
}
this.commands=_60d;
_60c();
},toString:function(){
var _60e=new String();
_60e+="[";
for(var i=0;i<this.commands.length;i++){
_60e+="{";
for(var j in this.commands[i]){
_60e+=j+": \""+this.commands[i][j]+"\"";
_60e+=", ";
}
_60e+="}, ";
}
_60e+="]";
return _60e;
}};
dojo.lang.mixin(dojo.sync,{onStart:null,onRefreshFiles:null,onUpload:null,onDownload:null,onFinished:null,onCancel:null,isSyncing:false,cancelled:false,successful:true,details:new Array(),autoSync:true,error:false,log:new dojo.sync.CommandLog(),synchronize:function(){
if(this.isSyncing==true||dojo.off.goingOnline==true||dojo.off.isOnline==false){
return;
}
this.isSyncing=true;
this.successful=false;
this.details=new Array();
this.cancelled=false;
this.start();
},cancel:function(){
if(this.isSyncing==false){
return;
}
this.cancelled=true;
if(this.onCancel){
this.onCancel();
}
},start:function(){
if(this.cancelled==true){
this.finished();
return;
}
if(this.onStart){
this.onStart();
}
this.refreshUI();
},refreshUI:function(){
if(this.cancelled==true){
this.finished();
return;
}
if(this.onRefreshUI){
this.onRefreshUI();
}
dojo.off.files.refresh(dojo.lang.hitch(this,function(_611,_612){
if(_611==true){
this.error=true;
this.successful=false;
for(var i=0;i<_612.length;i++){
this.details.push(_612[i]);
}
this.finished();
}else{
this.upload();
}
}));
},upload:function(){
if(this.cancelled==true){
this.finished();
return;
}
if(this.onUpload){
this.onUpload();
}
var self=this;
if(this.log.onReplayFinished==null){
this.log.onReplayFinished=function(){
self.download();
};
}
this.log.replay();
},download:function(){
if(this.cancelled==true){
this.finished();
return;
}
if(this.onDownload){
this.onDownload();
}
this.doDownload();
},doDownload:function(){
},finishedDownloading:function(_615,_616){
if(_615==false){
this.successful=false;
this.details.push(_616);
this.error=true;
}
this.finished();
},finished:function(){
this.isSyncing=false;
if(this.cancelled==false&&this.error==false){
this.successful=true;
}else{
this.successful=false;
}
if(this.onFinished){
this.onFinished();
}
},save:function(_617){
this.log.save(function(){
_617();
});
},load:function(_618){
this.log.load(function(){
_618();
});
}});

