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

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

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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 8617 $".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;
}
dojo.hostenv._djInitFired=false;
function dj_load_init(e){
dojo.hostenv._djInitFired=true;
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.lang.common");
dojo.lang.inherits=function(_ee,_ef){
if(!dojo.lang.isFunction(_ef)){
dojo.raise("dojo.inherits: superclass argument ["+_ef+"] must be a function (subclass: ["+_ee+"']");
}
_ee.prototype=new _ef();
_ee.prototype.constructor=_ee;
_ee.superclass=_ef.prototype;
_ee["super"]=_ef.prototype;
};
dojo.lang._mixin=function(obj,_f1){
var _f2={};
for(var x in _f1){
if((typeof _f2[x]=="undefined")||(_f2[x]!=_f1[x])){
obj[x]=_f1[x];
}
}
if(dojo.render.html.ie&&(typeof (_f1["toString"])=="function")&&(_f1["toString"]!=obj["toString"])&&(_f1["toString"]!=_f2["toString"])){
obj.toString=_f1.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_f5){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_f8,_f9){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_f8.prototype,arguments[i]);
}
return _f8;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_fc,_fd,_fe,_ff){
if(!dojo.lang.isArrayLike(_fc)&&dojo.lang.isArrayLike(_fd)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_fc;
_fc=_fd;
_fd=temp;
}
var _101=dojo.lang.isString(_fc);
if(_101){
_fc=_fc.split("");
}
if(_ff){
var step=-1;
var i=_fc.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_fc.length;
}
if(_fe){
while(i!=end){
if(_fc[i]===_fd){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_fc[i]==_fd){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_105,_106,_107){
return dojo.lang.find(_105,_106,_107,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_108,_109){
return dojo.lang.find(_108,_109)>-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.func");
dojo.lang.hitch=function(_114,_115){
var args=[];
for(var x=2;x<arguments.length;x++){
args.push(arguments[x]);
}
var fcn=(dojo.lang.isString(_115)?_114[_115]:_115)||function(){
};
return function(){
var ta=args.concat([]);
for(var x=0;x<arguments.length;x++){
ta.push(arguments[x]);
}
return fcn.apply(_114,ta);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_11b,_11c,_11d){
var nso=(_11c||dojo.lang.anon);
if((_11d)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_11b){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_11b;
return ret;
};
dojo.lang.forward=function(_121){
return function(){
return this[_121].apply(this,arguments);
};
};
dojo.lang.curry=function(_122,func){
var _124=[];
_122=_122||dj_global;
if(dojo.lang.isString(func)){
func=_122[func];
}
for(var x=2;x<arguments.length;x++){
_124.push(arguments[x]);
}
var _126=(func["__preJoinArity"]||func.length)-_124.length;
function gather(_127,_128,_129){
var _12a=_129;
var _12b=_128.slice(0);
for(var x=0;x<_127.length;x++){
_12b.push(_127[x]);
}
_129=_129-_127.length;
if(_129<=0){
var res=func.apply(_122,_12b);
_129=_12a;
return res;
}else{
return function(){
return gather(arguments,_12b,_129);
};
}
}
return gather([],_124,_126);
};
dojo.lang.curryArguments=function(_12e,func,args,_131){
var _132=[];
var x=_131||0;
for(x=_131;x<args.length;x++){
_132.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_12e,func].concat(_132));
};
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,_138,_139){
if(!farr.length){
if(typeof _139=="function"){
_139();
}
return;
}
if((typeof _138=="undefined")&&(typeof cb=="number")){
_138=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_138){
_138=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_138,_139);
},_138);
};
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 _13e=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_13e++;
break;
}
}
return _13e==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_142){
var _143=dojo.lang.isString(arr);
if(_143){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_142)){
_142=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_142){
var _144=obj;
obj=_142;
_142=_144;
}
}
if(Array.map){
var _145=Array.map(arr,_142,obj);
}else{
var _145=[];
for(var i=0;i<arr.length;++i){
_145.push(_142.call(obj,arr[i]));
}
}
if(_143){
return _145.join("");
}else{
return _145;
}
},reduce:function(arr,_148,obj,_14a){
var _14b=_148;
if(arguments.length==2){
_14a=_148;
_14b=arr[0];
arr=arr.slice(1);
}else{
if(arguments.length==3){
if(dojo.lang.isFunction(obj)){
_14a=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_14a;
_14a=obj;
obj=tmp;
}
}
}
var ob=obj||dj_global;
dojo.lang.map(arr,function(val){
_14b=_14a.call(ob,_14b,val);
});
return _14b;
},forEach:function(_14f,_150,_151){
if(dojo.lang.isString(_14f)){
_14f=_14f.split("");
}
if(Array.forEach){
Array.forEach(_14f,_150,_151);
}else{
if(!_151){
_151=dj_global;
}
for(var i=0,l=_14f.length;i<l;i++){
_150.call(_151,_14f[i],i,_14f);
}
}
},_everyOrSome:function(_154,arr,_156,_157){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_154?"every":"some"](arr,_156,_157);
}else{
if(!_157){
_157=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _15a=_156.call(_157,arr[i],i,arr);
if(_154&&!_15a){
return false;
}else{
if((!_154)&&(_15a)){
return true;
}
}
}
return Boolean(_154);
}
},every:function(arr,_15c,_15d){
return this._everyOrSome(true,arr,_15c,_15d);
},some:function(arr,_15f,_160){
return this._everyOrSome(false,arr,_15f,_160);
},filter:function(arr,_162,_163){
var _164=dojo.lang.isString(arr);
if(_164){
arr=arr.split("");
}
var _165;
if(Array.filter){
_165=Array.filter(arr,_162,_163);
}else{
if(!_163){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_163=dj_global;
}
_165=[];
for(var i=0;i<arr.length;i++){
if(_162.call(_163,arr[i],i,arr)){
_165.push(arr[i]);
}
}
}
if(_164){
return _165.join("");
}else{
return _165;
}
},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(_16a,_16b){
var _16c=[];
for(var i=_16b||0;i<_16a.length;i++){
_16c.push(_16a[i]);
}
return _16c;
}});
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_16f){
var _170=window,_171=2;
if(!dojo.lang.isFunction(func)){
_170=func;
func=_16f;
_16f=arguments[2];
_171++;
}
if(dojo.lang.isString(func)){
func=_170[func];
}
var args=[];
for(var i=_171;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_170,args);
},_16f);
};
dojo.lang.clearTimeout=function(_174){
dojo.global().clearTimeout(_174);
};
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(_17d,_17e,_17f){
with(dojo.parseObjPath(_17d,_17e,_17f)){
return dojo.evalProp(prop,obj,_17f);
}
};
dojo.lang.setObjPathValue=function(_180,_181,_182,_183){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_183=true;
}
with(dojo.parseObjPath(_180,_182,_183)){
if(obj&&(_183||(prop in obj))){
obj[prop]=_181;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_184,_185,init,_187){
if((dojo.lang.isFunction(_187))||((!_187)&&(!dojo.lang.isFunction(init)))){
var temp=_187;
_187=init;
init=temp;
}
var _189=[];
if(dojo.lang.isArray(_185)){
_189=_185;
_185=_189.shift();
}
if(!init){
init=dojo.evalObjPath(_184,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_185?_185.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _185();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_189;
for(var i=0,l=_189.length;i<l;i++){
dojo.lang.extend(ctor,_189[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_184;
if(dojo.lang.isArray(_187)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_187));
}else{
dojo.lang.extend(ctor,(_187)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _18e=dojo.parseObjPath(_184,null,true);
_18e.obj[_18e.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(_194,_195,args){
var _197,_198=this.___proto;
this.___proto=_194;
try{
_197=_194[_195].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_198;
}
return _197;
},_inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._contextMethod(p,prop,args):p[prop]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_19f,_1a0,_1a1){
if(!_1a1||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_19f,_1a0);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_1a8,_1a9){
this.name=name;
this.module=_1a8;
this.resolver=_1a9;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_1ab,_1ac){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _1ad=this.resolver(name,_1ab);
if((_1ad)&&(!this._loaded[_1ad])&&(!this._failed[_1ad])){
var req=dojo.require;
req(_1ad,false,true);
if(dojo.hostenv.findModule(_1ad,false)){
this._loaded[_1ad]=true;
}else{
if(!_1ac){
dojo.raise("dojo.ns.Ns.resolve: module '"+_1ad+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_1ad]=true;
}
}
return Boolean(this._loaded[_1ad]);
};
dojo.registerNamespace=function(name,_1b0,_1b1){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_1b3){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_1b3;
}
};
dojo.registerNamespaceManifest=function(_1b5,path,name,_1b8,_1b9){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_1b8,_1b9);
};
dojo.registerNamespace("dojo","dojo.widget");
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,_1bb){
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 _1be=dl.nameAnonFunc(args[2],ao.adviceObj,_1bb);
ao.adviceFunc=_1be;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _1be=dl.nameAnonFunc(args[0],ao.srcObj,_1bb);
ao.srcFunc=_1be;
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 _1be=dl.nameAnonFunc(args[1],dj_global,_1bb);
ao.srcFunc=_1be;
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 _1be=dl.nameAnonFunc(args[3],dj_global,_1bb);
ao.adviceObj=dj_global;
ao.adviceFunc=_1be;
}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 _1be=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_1bb);
ao.aroundFunc=_1be;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _1c0={};
for(var x in ao){
_1c0[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);
}
_1c0.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_1c0));
});
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 _1c8;
if((arguments.length==1)&&(typeof a1=="object")){
_1c8=a1;
}else{
_1c8={srcObj:a1,srcFunc:a2};
}
_1c8.adviceFunc=function(){
var _1c9=[];
for(var x=0;x<arguments.length;x++){
_1c9.push(arguments[x]);
}
dojo.debug("("+_1c8.srcObj+")."+_1c8.srcFunc,":",_1c9.join(", "));
};
this.kwConnect(_1c8);
};
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(_1d1,_1d2){
var fn=(_1d2)?"disconnect":"connect";
if(typeof _1d1["srcFunc"]=="function"){
_1d1.srcObj=_1d1["srcObj"]||dj_global;
var _1d4=dojo.lang.nameAnonFunc(_1d1.srcFunc,_1d1.srcObj,true);
_1d1.srcFunc=_1d4;
}
if(typeof _1d1["adviceFunc"]=="function"){
_1d1.adviceObj=_1d1["adviceObj"]||dj_global;
var _1d4=dojo.lang.nameAnonFunc(_1d1.adviceFunc,_1d1.adviceObj,true);
_1d1.adviceFunc=_1d4;
}
_1d1.srcObj=_1d1["srcObj"]||dj_global;
_1d1.adviceObj=_1d1["adviceObj"]||_1d1["targetObj"]||dj_global;
_1d1.adviceFunc=_1d1["adviceFunc"]||_1d1["targetFunc"];
return dojo.event[fn](_1d1);
};
this.kwConnect=function(_1d5){
return this._kwConnectImpl(_1d5,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(_1d8){
return this._kwConnectImpl(_1d8,true);
};
};
dojo.event.MethodInvocation=function(_1d9,obj,args){
this.jp_=_1d9;
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,_1e1){
this.object=obj||dj_global;
this.methodname=_1e1;
this.methodfunc=this.object[_1e1];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1e3){
if(!obj){
obj=dj_global;
}
var ofn=obj[_1e3];
if(!ofn){
ofn=obj[_1e3]=function(){
};
if(!obj[_1e3]){
dojo.raise("Cannot set do-nothing method on that object "+_1e3);
}
}else{
if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){
return null;
}
}
var _1e5=_1e3+"$joinpoint";
var _1e6=_1e3+"$joinpoint$method";
var _1e7=obj[_1e5];
if(!_1e7){
var _1e8=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1e8=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1e5,_1e6,_1e3]);
}
}
var _1e9=ofn.length;
obj[_1e6]=ofn;
_1e7=obj[_1e5]=new dojo.event.MethodJoinPoint(obj,_1e6);
if(!_1e8){
obj[_1e3]=function(){
return _1e7.run.apply(_1e7,arguments);
};
}else{
obj[_1e3]=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 _1e7.run.apply(_1e7,args);
};
}
obj[_1e3].__preJoinArity=_1e9;
}
return _1e7;
};
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 _1ef=[];
for(var x=0;x<args.length;x++){
_1ef[x]=args[x];
}
var _1f1=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1f3=marr[0]||dj_global;
var _1f4=marr[1];
if(!_1f3[_1f4]){
dojo.raise("function \""+_1f4+"\" does not exist on \""+_1f3+"\"");
}
var _1f5=marr[2]||dj_global;
var _1f6=marr[3];
var msg=marr[6];
var _1f8=marr[7];
if(_1f8>-1){
if(_1f8==0){
return;
}
marr[7]--;
}
var _1f9;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1f3[_1f4].apply(_1f3,to.args);
}};
to.args=_1ef;
var _1fb=parseInt(marr[4]);
var _1fc=((!isNaN(_1fb))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1ff=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;
_1f1(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1f6){
_1f5[_1f6].call(_1f5,to);
}else{
if((_1fc)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1f3[_1f4].call(_1f3,to);
}else{
_1f3[_1f4].apply(_1f3,args);
}
},_1fb);
}else{
if(msg){
_1f3[_1f4].call(_1f3,to);
}else{
_1f3[_1f4].apply(_1f3,args);
}
}
}
};
var _202=function(){
if(this.squelch){
try{
return _1f1.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _1f1.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_202);
}
var _203;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_203=mi.proceed();
}else{
if(this.methodfunc){
_203=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()),_202);
}
return (this.methodfunc)?_203: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(_208,_209,_20a,_20b,_20c,_20d,once,_20f,rate,_211,_212){
var arr=this.getArr(_20c);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_208,_209,_20a,_20b,_20f,rate,_211,_212];
if(once){
if(this.hasAdvice(_208,_209,_20c,arr)>=0){
return;
}
}
if(_20d=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_215,_216,_217,arr){
if(!arr){
arr=this.getArr(_217);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _216=="object")?(new String(_216)).toString():_216;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_215)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_21d,_21e,_21f,once){
var arr=this.getArr(_21f);
var ind=this.hasAdvice(_21d,_21e,_21f,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_21d,_21e,_21f,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_223){
if(!this.topics[_223]){
this.topics[_223]=new this.TopicImpl(_223);
}
return this.topics[_223];
};
this.registerPublisher=function(_224,obj,_226){
var _224=this.getTopic(_224);
_224.registerPublisher(obj,_226);
};
this.subscribe=function(_227,obj,_229){
var _227=this.getTopic(_227);
_227.subscribe(obj,_229);
};
this.unsubscribe=function(_22a,obj,_22c){
var _22a=this.getTopic(_22a);
_22a.unsubscribe(obj,_22c);
};
this.destroy=function(_22d){
this.getTopic(_22d).destroy();
delete this.topics[_22d];
};
this.publishApply=function(_22e,args){
var _22e=this.getTopic(_22e);
_22e.sendMessage.apply(_22e,args);
};
this.publish=function(_230,_231){
var _230=this.getTopic(_230);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_230.sendMessage.apply(_230,args);
};
};
dojo.event.topic.TopicImpl=function(_234){
this.topicName=_234;
this.subscribe=function(_235,_236){
var tf=_236||_235;
var to=(!_236)?dj_global:_235;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_239,_23a){
var tf=(!_23a)?_239:_23a;
var to=(!_23a)?null:_239;
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(_23d){
this._getJoinPoint().squelch=_23d;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_23e,_23f){
dojo.event.connect(_23e,_23f,this,"sendMessage");
};
this.sendMessage=function(_240){
};
};
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(_243){
var na;
var tna;
if(_243){
tna=_243.all||_243.getElementsByTagName("*");
na=[_243];
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 _247={};
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 _24c=0;
this.normalizedEventName=function(_24d){
switch(_24d){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _24d;
break;
default:
var lcn=_24d.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,_252){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_252.length;x++){
node.__clobberAttrs__.push(_252[x]);
}
};
this.removeListener=function(node,_255,fp,_257){
if(!_257){
var _257=false;
}
_255=dojo.event.browser.normalizedEventName(_255);
if(_255=="key"){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_257);
}
_255="keypress";
}
if(node.removeEventListener){
node.removeEventListener(_255,fp,_257);
}
};
this.addListener=function(node,_259,fp,_25b,_25c){
if(!node){
return;
}
if(!_25b){
var _25b=false;
}
_259=dojo.event.browser.normalizedEventName(_259);
if(_259=="key"){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_25b,_25c);
}
_259="keypress";
}
if(!_25c){
var _25d=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_25b){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_25d=fp;
}
if(node.addEventListener){
node.addEventListener(_259,_25d,_25b);
return _25d;
}else{
_259="on"+_259;
if(typeof node[_259]=="function"){
var _260=node[_259];
node[_259]=function(e){
_260(e);
return _25d(e);
};
}else{
node[_259]=_25d;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_259]);
}
return _25d;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_263,_264){
if(typeof _263!="function"){
dojo.raise("listener not a function: "+_263);
}
dojo.event.browser.currentEvent.currentTarget=_264;
return _263.call(_264,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,_267){
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 _269=evt.keyCode;
if(_269>=65&&_269<=90&&evt.shiftKey==false){
_269+=32;
}
if(_269>=1&&_269<=26&&evt.ctrlKey){
_269+=96;
}
evt.key=String.fromCharCode(_269);
}
}
}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 _269=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_269+=32;
}
evt.key=String.fromCharCode(_269);
}
}
}
}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=(_267?_267: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 _26b=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_26b.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_26b.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.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _26d={};
var _26e=[];
this.getUniqueId=function(_26f){
var _270;
do{
_270=_26f+"_"+(_26d[_26f]!=undefined?++_26d[_26f]:_26d[_26f]=0);
}while(this.getWidgetById(_270));
return _270;
};
this.add=function(_271){
this.widgets.push(_271);
if(!_271.extraArgs["id"]){
_271.extraArgs["id"]=_271.extraArgs["ID"];
}
if(_271.widgetId==""){
if(_271["id"]){
_271.widgetId=_271["id"];
}else{
if(_271.extraArgs["id"]){
_271.widgetId=_271.extraArgs["id"];
}else{
_271.widgetId=this.getUniqueId(_271.ns+"_"+_271.widgetType);
}
}
}
if(this.widgetIds[_271.widgetId]){
dojo.debug("widget ID collision on ID: "+_271.widgetId);
}
this.widgetIds[_271.widgetId]=_271;
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_273){
if(dojo.lang.isNumber(_273)){
var tw=this.widgets[_273].widgetId;
delete this.topWidgets[tw];
delete this.widgetIds[tw];
this.widgets.splice(_273,1);
}else{
this.removeById(_273);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _27a=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_27a(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_27f,_280){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_27f(x)){
ret.push(x);
if(_280){
return false;
}
}
return true;
});
return (_280?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _286={};
var _287=["dojo.widget"];
for(var i=0;i<_287.length;i++){
_287[_287[i]]=true;
}
this.registerWidgetPackage=function(_289){
if(!_287[_289]){
_287[_289]=true;
_287.push(_289);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_287,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_28b,_28c,_28d,ns){
var impl=this.getImplementationName(_28b,ns);
if(impl){
var ret=_28c?new impl(_28c):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _291 in dojo.render){
if(dojo.render[_291]["capable"]===true){
var _292=dojo.render[_291].prefixes;
for(var i=0;i<_292.length;i++){
_26e.push(_292[i].toLowerCase());
}
}
}
}
var _294=function(_295,_296){
if(!_296){
return null;
}
for(var i=0,l=_26e.length,_299;i<=l;i++){
_299=(i<l?_296[_26e[i]]:_296);
if(!_299){
continue;
}
for(var name in _299){
if(name.toLowerCase()==_295){
return _299[name];
}
}
}
return null;
};
var _29b=function(_29c,_29d){
var _29e=dojo.evalObjPath(_29d,false);
return (_29e?_294(_29c,_29e):null);
};
this.getImplementationName=function(_29f,ns){
var _2a1=_29f.toLowerCase();
ns=ns||"dojo";
var imps=_286[ns]||(_286[ns]={});
var impl=imps[_2a1];
if(impl){
return impl;
}
if(!_26e.length){
buildPrefixCache();
}
var _2a4=dojo.ns.get(ns);
if(!_2a4){
dojo.ns.register(ns,ns+".widget");
_2a4=dojo.ns.get(ns);
}
if(_2a4){
_2a4.resolve(_29f);
}
impl=_29b(_2a1,_2a4.module);
if(impl){
return (imps[_2a1]=impl);
}
_2a4=dojo.ns.require(ns);
if((_2a4)&&(_2a4.resolver)){
_2a4.resolve(_29f);
impl=_29b(_2a1,_2a4.module);
if(impl){
return (imps[_2a1]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_29f+"\" in \""+_2a4.module+"\" registered to namespace \""+_2a4.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_287.length;i++){
impl=_29b(_2a1,_287[i]);
if(impl){
return (imps[_2a1]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_29f+"\" in \""+_2a4.module+"\" registered to namespace \""+_2a4.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _2a7=this.topWidgets[id];
if(_2a7.checkSize){
_2a7.checkSize();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_2ac,_2ad){
dw[(_2ad||_2ac)]=h(_2ac);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _2af=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _2af[n];
}
return _2af;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_2b1,uri){
var loc=dojo.hostenv.getModuleSymbols(_2b1).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _2b4=loc.indexOf(":");
var _2b5=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_2b4==-1||_2b4>_2b5)){
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 _2b8=new dojo.uri.Uri(arguments[i].toString());
var _2b9=new dojo.uri.Uri(uri.toString());
if((_2b8.path=="")&&(_2b8.scheme==null)&&(_2b8.authority==null)&&(_2b8.query==null)){
if(_2b8.fragment!=null){
_2b9.fragment=_2b8.fragment;
}
_2b8=_2b9;
}else{
if(_2b8.scheme==null){
_2b8.scheme=_2b9.scheme;
if(_2b8.authority==null){
_2b8.authority=_2b9.authority;
if(_2b8.path.charAt(0)!="/"){
var path=_2b9.path.substring(0,_2b9.path.lastIndexOf("/")+1)+_2b8.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;
}
}
}
}
_2b8.path=segs.join("/");
}
}
}
}
uri="";
if(_2b8.scheme!=null){
uri+=_2b8.scheme+":";
}
if(_2b8.authority!=null){
uri+="//"+_2b8.authority;
}
uri+=_2b8.path;
if(_2b8.query!=null){
uri+="?"+_2b8.query;
}
if(_2b8.fragment!=null){
uri+="#"+_2b8.fragment;
}
}
this.uri=uri.toString();
var _2bd="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2bd));
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){
_2bd="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2bd));
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 _2c0=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_2c0.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_2c2,_2c3){
var node=_2c2.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_2c3&&node&&node.tagName&&node.tagName.toLowerCase()!=_2c3.toLowerCase()){
node=dojo.dom.nextElement(node,_2c3);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_2c5,_2c6){
var node=_2c5.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_2c6&&node&&node.tagName&&node.tagName.toLowerCase()!=_2c6.toLowerCase()){
node=dojo.dom.prevElement(node,_2c6);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_2c9){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2c9&&_2c9.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_2c9);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_2cb){
if(!node){
return null;
}
if(_2cb){
_2cb=_2cb.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2cb&&_2cb.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_2cb);
}
return node;
};
dojo.dom.moveChildren=function(_2cc,_2cd,trim){
var _2cf=0;
if(trim){
while(_2cc.hasChildNodes()&&_2cc.firstChild.nodeType==dojo.dom.TEXT_NODE){
_2cc.removeChild(_2cc.firstChild);
}
while(_2cc.hasChildNodes()&&_2cc.lastChild.nodeType==dojo.dom.TEXT_NODE){
_2cc.removeChild(_2cc.lastChild);
}
}
while(_2cc.hasChildNodes()){
_2cd.appendChild(_2cc.firstChild);
_2cf++;
}
return _2cf;
};
dojo.dom.copyChildren=function(_2d0,_2d1,trim){
var _2d3=_2d0.cloneNode(true);
return this.moveChildren(_2d3,_2d1,trim);
};
dojo.dom.replaceChildren=function(node,_2d5){
var _2d6=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_2d6.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_2d5);
for(var i=0;i<_2d6.length;i++){
dojo.dom.destroyNode(_2d6[i]);
}
};
dojo.dom.removeChildren=function(node){
var _2d9=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _2d9;
};
dojo.dom.replaceNode=function(node,_2db){
return node.parentNode.replaceChild(_2db,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,_2df,_2e0){
var _2e1=[];
var _2e2=(_2df&&(_2df instanceof Function||typeof _2df=="function"));
while(node){
if(!_2e2||_2df(node)){
_2e1.push(node);
}
if(_2e0&&_2e1.length>0){
return _2e1[0];
}
node=node.parentNode;
}
if(_2e0){
return null;
}
return _2e1;
};
dojo.dom.getAncestorsByTag=function(node,tag,_2e5){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_2e5);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_2ea,_2eb){
if(_2eb&&node){
node=node.parentNode;
}
while(node){
if(node==_2ea){
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 _2ee=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _2ef=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_2ef.length;i++){
try{
doc=new ActiveXObject(_2ef[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_2ee.implementation)&&(_2ee.implementation.createDocument)){
doc=_2ee.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_2f2){
if(!_2f2){
_2f2="text/xml";
}
if(!dj_undef("DOMParser")){
var _2f3=new DOMParser();
return _2f3.parseFromString(str,_2f2);
}else{
if(!dj_undef("ActiveXObject")){
var _2f4=dojo.dom.createDocument();
if(_2f4){
_2f4.async=false;
_2f4.loadXML(str);
return _2f4;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _2f5=dojo.doc();
if(_2f5.createElement){
var tmp=_2f5.createElement("xml");
tmp.innerHTML=str;
if(_2f5.implementation&&_2f5.implementation.createDocument){
var _2f7=_2f5.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_2f7.importNode(tmp.childNodes.item(i),true);
}
return _2f7;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_2fa){
if(_2fa.firstChild){
_2fa.insertBefore(node,_2fa.firstChild);
}else{
_2fa.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_2fd){
if((_2fd!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _2fe=ref.parentNode;
_2fe.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_301){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_301!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_301);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_305){
if((!node)||(!ref)||(!_305)){
return false;
}
switch(_305.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,_307,_308){
var _309=_307.childNodes;
if(!_309.length||_309.length==_308){
_307.appendChild(node);
return true;
}
if(_308==0){
return dojo.dom.prependChild(node,_307);
}
return dojo.dom.insertAfter(node,_309[_308-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _30c=dojo.doc();
dojo.dom.replaceChildren(node,_30c.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _30d="";
if(node==null){
return _30d;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_30d+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_30d+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _30d;
}
};
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,_313,_314,_315){
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(_313,_314,_315);
}else{
var _316=elem.ownerDocument;
var _317=_316.createNode(2,_314,_313);
_317.nodeValue=_315;
elem.setAttributeNode(_317);
}
};
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 _31a=dojo.global();
var _31b=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_31b.documentElement.clientWidth;
h=_31a.innerHeight;
}else{
if(!dojo.render.html.opera&&_31a.innerWidth){
w=_31a.innerWidth;
h=_31a.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_31b,"documentElement.clientWidth")){
var w2=_31b.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_31b.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 _31f=dojo.global();
var _320=dojo.doc();
var top=_31f.pageYOffset||_320.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_31f.pageXOffset||_320.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _325=dojo.doc();
var _326=dojo.byId(node);
type=type.toLowerCase();
while((_326)&&(_326.nodeName.toLowerCase()!=type)){
if(_326==(_325["body"]||_325["documentElement"])){
return null;
}
_326=_326.parentNode;
}
return _326;
};
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 _32e={x:0,y:0};
if(e.pageX||e.pageY){
_32e.x=e.pageX;
_32e.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_32e.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_32e.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _32e;
};
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 _333=dojo.doc().createElement("script");
_333.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_333);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_336,_337,args,_339,_33a){
dojo.deprecated("dojo.html."+_336,"replaced by dojo.html."+_337+"("+(_339?"node, {"+_339+": "+_339+"}":"")+")"+(_33a?"."+_33a:""),"0.5");
var _33b=[];
if(_339){
var _33c={};
_33c[_339]=args[1];
_33b.push(args[0]);
_33b.push(_33c);
}else{
_33b=args;
}
var ret=dojo.html[_337].apply(dojo.html,args);
if(_33a){
return ret[_33a];
}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.a11y");
dojo.a11y={imgPath:dojo.uri.moduleUri("dojo.widget","templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _33f=null;
if(window.getComputedStyle){
var _340=getComputedStyle(div,"");
_33f=_340.getPropertyValue("background-image");
}else{
_33f=div.currentStyle.backgroundImage;
}
var _341=false;
if(_33f!=null&&(_33f=="none"||_33f=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_342){
this.doAccessibleCheck=_342;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _344=this.children[i];
if(_344.onResized){
_344.onResized();
}
}
},create:function(args,_346,_347,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_346,_347);
this.mixInProperties(args,_346,_347);
this.postMixInProperties(args,_346,_347);
dojo.widget.manager.add(this);
this.buildRendering(args,_346,_347);
this.initialize(args,_346,_347);
this.postInitialize(args,_346,_347);
this.postCreate(args,_346,_347);
return this;
},destroy:function(_349){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_349);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _34a;
var i=0;
while(this.children.length>i){
_34a=this.children[i];
if(_34a instanceof dojo.widget.Widget){
this.removeChild(_34a);
_34a.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_34d){
var ret=[];
var _34f=dojo.lang.isFunction(type);
if(!_34f){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_34f){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_34d){
ret=ret.concat(this.children[x].getChildrenOfType(type,_34d));
}
}
return ret;
},getDescendants:function(){
var _351=[];
var _352=[this];
var elem;
while((elem=_352.pop())){
_351.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_352.push(elem);
});
}
}
return _351;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _359;
var _35a=dojo.widget.lcArgsCache[this.widgetType];
if(_35a==null){
_35a={};
for(var y in this){
_35a[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_35a;
}
var _35c={};
for(var x in args){
if(!this[x]){
var y=_35a[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_35c[x]){
continue;
}
_35c[x]=true;
if((typeof this[x])!=(typeof _359)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc:tn});
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=dojo.uri.dojoUri(args[x]);
}else{
var _35e=args[x].split(";");
for(var y=0;y<_35e.length;y++){
var si=_35e[y].indexOf(":");
if((si!=-1)&&(_35e[y].length>si)){
this[x][_35e[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_35e[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_362){
},initialize:function(args,frag,_365){
return false;
},postInitialize:function(args,frag,_368){
return false;
},postCreate:function(args,frag,_36b){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_36e){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_36f){
},addChild:function(_370){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_371){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_371){
this.children.splice(x,1);
_371.parent=null;
break;
}
}
return _371;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_376,_377,_378){
var _379=_377.parseProperties(_376["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_37a,_37b,_37c){
var _37d=_37b.parseProperties(_37a["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_380,_381,_382,_383){
dojo.a11y.setAccessibleMode();
var _384=type.split(":");
_384=(_384.length==2)?_384[1]:type;
var _385=_383||_380.parseProperties(frag[frag["ns"]+":"+_384]);
var _386=dojo.widget.manager.getImplementation(_384,null,null,frag["ns"]);
if(!_386){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_386.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_385["dojoinsertionindex"]=_382;
var ret=_386.create(_385,frag,_381,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_388,_389,_38a,init,_38c){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_38f,_390,_391,init,_393){
var _394=_38f.split(".");
var type=_394.pop();
var regx="\\.("+(_390?_390+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_38f.search(new RegExp(regx));
_394=(r<0?_394.join("."):_38f.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_394);
var pos=_394.indexOf(".");
var _399=(pos>-1)?_394.substring(0,pos):_394;
_393=(_393)||{};
_393.widgetType=type;
if((!init)&&(_393["classConstructor"])){
init=_393.classConstructor;
delete _393.classConstructor;
}
dojo.declare(_38f,_391,init,_393);
};
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,_39f){
return (new RegExp("(^|\\s+)"+_39f+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_3a1){
_3a1+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_3a1);
};
dojo.html.addClass=function(node,_3a3){
if(dojo.html.hasClass(node,_3a3)){
return false;
}
_3a3=(dojo.html.getClass(node)+" "+_3a3).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_3a3);
};
dojo.html.setClass=function(node,_3a5){
node=dojo.byId(node);
var cs=new String(_3a5);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_3a5);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3a8,_3a9){
try{
if(!_3a9){
var _3aa=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3a8+"(\\s+|$)"),"$1$2");
}else{
var _3aa=dojo.html.getClass(node).replace(_3a8,"");
}
dojo.html.setClass(node,_3aa);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3ac,_3ad){
dojo.html.removeClass(node,_3ad);
dojo.html.addClass(node,_3ac);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3ae,_3af,_3b0,_3b1,_3b2){
_3b2=false;
var _3b3=dojo.doc();
_3af=dojo.byId(_3af)||_3b3;
var _3b4=_3ae.split(/\s+/g);
var _3b5=[];
if(_3b1!=1&&_3b1!=2){
_3b1=0;
}
var _3b6=new RegExp("(\\s|^)(("+_3b4.join(")|(")+"))(\\s|$)");
var _3b7=_3b4.join(" ").length;
var _3b8=[];
if(!_3b2&&_3b3.evaluate){
var _3b9=".//"+(_3b0||"*")+"[contains(";
if(_3b1!=dojo.html.classMatchType.ContainsAny){
_3b9+="concat(' ',@class,' '), ' "+_3b4.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3b1==2){
_3b9+=" and string-length(@class)="+_3b7+"]";
}else{
_3b9+="]";
}
}else{
_3b9+="concat(' ',@class,' '), ' "+_3b4.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _3ba=_3b3.evaluate(_3b9,_3af,null,XPathResult.ANY_TYPE,null);
var _3bb=_3ba.iterateNext();
while(_3bb){
try{
_3b8.push(_3bb);
_3bb=_3ba.iterateNext();
}
catch(e){
break;
}
}
return _3b8;
}else{
if(!_3b0){
_3b0="*";
}
_3b8=_3af.getElementsByTagName(_3b0);
var node,i=0;
outer:
while(node=_3b8[i++]){
var _3be=dojo.html.getClasses(node);
if(_3be.length==0){
continue outer;
}
var _3bf=0;
for(var j=0;j<_3be.length;j++){
if(_3b6.test(_3be[j])){
if(_3b1==dojo.html.classMatchType.ContainsAny){
_3b5.push(node);
continue outer;
}else{
_3bf++;
}
}else{
if(_3b1==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_3bf==_3b4.length){
if((_3b1==dojo.html.classMatchType.IsOnly)&&(_3bf==_3be.length)){
_3b5.push(node);
}else{
if(_3b1==dojo.html.classMatchType.ContainsAll){
_3b5.push(node);
}
}
}
}
return _3b5;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_3c1){
var arr=_3c1.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(_3c5){
return _3c5.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_3c7,_3c8){
node=dojo.byId(node);
if(!node||!node.currentStyle){
return _3c8;
}
return node.currentStyle[dojo.html.toCamelCase(_3c7)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_3cb,_3cc){
node=dojo.byId(node);
if(!node||!node.style){
return _3cc;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_3cb)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_3d0){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_3d0)]:undefined);
};
dojo.html.getStyle=function(node,_3d2){
var _3d3=dojo.html.getStyleProperty(node,_3d2);
return (_3d3?_3d3:dojo.html.getComputedStyle(node,_3d2));
};
dojo.html.setStyle=function(node,_3d5,_3d6){
node=dojo.byId(node);
if(node&&node.style){
var _3d7=dojo.html.toCamelCase(_3d5);
node.style[_3d7]=_3d6;
}
};
dojo.html.setStyleText=function(_3d8,text){
try{
_3d8.style.cssText=text;
}
catch(e){
_3d8.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_3da,_3db){
if(!_3db.style.cssText){
_3da.setAttribute("style",_3db.getAttribute("style"));
}else{
_3da.style.cssText=_3db.style.cssText;
}
dojo.html.addClass(_3da,dojo.html.getClass(_3db));
};
dojo.html.getUnitValue=function(node,_3dd,_3de){
var s=dojo.html.getComputedStyle(node,_3dd);
if((!s)||((s=="auto")&&(_3de))){
return {value:0,units:"px"};
}
var _3e0=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3e0){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_3e0[1]),units:_3e0[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_3e1,_3e2){
if(!_3e2){
return 0;
}
if(_3e2.slice(-2)=="px"){
return parseFloat(_3e2);
}
var _3e3=0;
with(_3e1){
var _3e4=style.left;
var _3e5=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_3e2||0;
_3e3=style.pixelLeft;
style.left=_3e4;
runtimeStyle.left=_3e5;
}
catch(e){
}
}
return _3e3;
};
}else{
dojo.html.toPixelValue=function(_3e6,_3e7){
return (_3e7&&(_3e7.slice(-2)=="px")?parseFloat(_3e7):0);
};
}
dojo.html.getPixelValue=function(node,_3e9,_3ea){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_3e9));
};
dojo.html.setPositivePixelValue=function(node,_3ec,_3ed){
if(isNaN(_3ed)){
return false;
}
node.style[_3ec]=Math.max(0,_3ed)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_3ee,_3ef,_3f0){
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){
_3f0=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_3f0=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_3ee+" { "+_3ef+" }";
return dojo.html.styleSheet.insertRule(rule,_3f0);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_3ee,_3ef,_3f0);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_3f2){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3f2){
_3f2=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_3f2);
}
}else{
if(document.styleSheets[0]){
if(!_3f2){
_3f2=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_3f2);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_3f5,_3f6){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3f7=dojo.hostenv.getText(URI,false,_3f6);
if(_3f7===null){
return;
}
_3f7=dojo.html.fixPathsInCssText(_3f7,URI);
if(_3f5){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_3f7)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _3fc=doc.getElementsByTagName("style");
for(var i=0;i<_3fc.length;i++){
if(_3fc[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _3fd=dojo.html.insertCssText(_3f7,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_3f7,"nodeRef":_3fd});
if(_3fd&&djConfig.isDebug){
_3fd.setAttribute("dbgHref",URI);
}
return _3fd;
};
dojo.html.insertCssText=function(_3fe,doc,URI){
if(!_3fe){
return;
}
if(!doc){
doc=document;
}
if(URI){
_3fe=dojo.html.fixPathsInCssText(_3fe,URI);
}
var _401=doc.createElement("style");
_401.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(_401);
}
if(_401.styleSheet){
var _403=function(){
try{
_401.styleSheet.cssText=_3fe;
}
catch(e){
dojo.debug(e);
}
};
if(_401.styleSheet.disabled){
setTimeout(_403,10);
}else{
_403();
}
}else{
var _404=doc.createTextNode(_3fe);
_401.appendChild(_404);
}
return _401;
};
dojo.html.fixPathsInCssText=function(_405,URI){
if(!_405||!URI){
return;
}
var _407,str="",url="",_40a="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _40b=new RegExp("url\\(\\s*("+_40a+")\\s*\\)");
var _40c=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_40a+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _40d=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_40a+")['\"]");
while(_407=_40d.exec(_405)){
url=_407[2].replace(regexTrim,"$2");
if(!_40c.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_405.substring(0,_407.index)+"AlphaImageLoader("+_407[1]+"src='"+url+"'";
_405=_405.substr(_407.index+_407[0].length);
}
_405=str+_405;
str="";
}
while(_407=_40b.exec(_405)){
url=_407[1].replace(regexTrim,"$2");
if(!_40c.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_405.substring(0,_407.index)+"url("+url+")";
_405=_405.substr(_407.index+_407[0].length);
}
return str+_405;
};
dojo.html.setActiveStyleSheet=function(_40e){
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")==_40e){
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 _41a={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 _41a){
if(_41a[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _41f=getTagName(node);
if(!_41f){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_41f])){
return _41f;
}
var p=_41f.indexOf(":");
if(p>=0){
return _41f;
}
if(_41f.substr(0,5)=="dojo:"){
return _41f;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_41f;
}
if(_41f.substr(0,4)=="dojo"){
return "dojo:"+_41f.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _422=node.className||node.getAttribute("class");
if((_422)&&(_422.indexOf)&&(_422.indexOf("dojo-")!=-1)){
var _423=_422.split(" ");
for(var x=0,c=_423.length;x<c;x++){
if(_423[x].slice(0,5)=="dojo-"){
return "dojo:"+_423[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_427,_428,_429){
var _42a=getTagName(node);
if(isIE&&_42a.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _42c=true;
if(_428){
var _42d=getDojoTagName(node);
_42a=_42d||_42a;
_42c=Boolean(_42d);
}
var _42e={};
_42e[_42a]=[];
var pos=_42a.indexOf(":");
if(pos>0){
var ns=_42a.substring(0,pos);
_42e["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_42c=false;
}
}
if(_42c){
var _431=this.parseAttributes(node);
for(var attr in _431){
if((!_42e[_42a][attr])||(typeof _42e[_42a][attr]!="array")){
_42e[_42a][attr]=[];
}
_42e[_42a][attr].push(_431[attr]);
}
_42e[_42a].nodeRef=node;
_42e.tagName=_42a;
_42e.index=_429||0;
}
var _432=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_42e[ctn]){
_42e[ctn]=[];
}
_42e[ctn].push(this.parseElement(tcn,true,_428,_432));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_42e[ctn][_42e[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_432++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_42e[_42a].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _42e;
};
this.parseAttributes=function(node){
var _437={};
var atts=node.attributes;
var _439,i=0;
while((_439=atts[i++])){
if(isIE){
if(!_439){
continue;
}
if((typeof _439=="object")&&(typeof _439.nodeValue=="undefined")||(_439.nodeValue==null)||(_439.nodeValue=="")){
continue;
}
}
var nn=_439.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_439.nodeName;
_437[nn]={value:_439.nodeValue};
}
return _437;
};
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),dojoWidgetModuleUri:dojo.uri.moduleUri("dojo.widget"),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_43d,_43e,_43f){
var _440=_43d||obj.templatePath;
var _441=dojo.widget._templateCache;
if(!_440&&!obj["widgetType"]){
do{
var _442="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_441[_442]);
obj.widgetType=_442;
}
var wt=_440?_440.toString():obj.widgetType;
var ts=_441[wt];
if(!ts){
_441[wt]={"string":null,"node":null};
if(_43f){
ts={};
}else{
ts=_441[wt];
}
}
if((!obj.templateString)&&(!_43f)){
obj.templateString=_43e||ts["string"];
}
if(obj.templateString){
obj.templateString=this._sanitizeTemplateString(obj.templateString);
}
if((!obj.templateNode)&&(!_43f)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_440)){
var _445=this._sanitizeTemplateString(dojo.hostenv.getText(_440));
obj.templateString=_445;
if(!_43f){
_441[wt]["string"]=_445;
}
}
if((!ts["string"])&&(!_43f)){
ts.string=obj.templateString;
}
};
dojo.widget._sanitizeTemplateString=function(_446){
if(_446){
_446=_446.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _447=_446.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_447){
_446=_447[1];
}
}else{
_446="";
}
return _446;
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_44b){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_44b);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_44b);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _452=true;
if(dojo.render.html.ie){
_452=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _452;
}};
dojo.widget.attachTemplateNodes=function(_453,_454,_455){
var _456=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_453){
_453=_454.domNode;
}
if(_453.nodeType!=_456){
return;
}
var _458=_453.all||_453.getElementsByTagName("*");
var _459=_454;
for(var x=-1;x<_458.length;x++){
var _45b=(x==-1)?_453:_458[x];
var _45c=[];
if(!_454.widgetsInTemplate||!_45b.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _45e=_45b.getAttribute(this.attachProperties[y]);
if(_45e){
_45c=_45e.split(";");
for(var z=0;z<_45c.length;z++){
if(dojo.lang.isArray(_454[_45c[z]])){
_454[_45c[z]].push(_45b);
}else{
_454[_45c[z]]=_45b;
}
}
break;
}
}
var _460=_45b.getAttribute(this.eventAttachProperty);
if(_460){
var evts=_460.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _462=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _464=tevt.split(":");
tevt=trim(_464[0]);
_462=trim(_464[1]);
}
if(!_462){
_462=tevt;
}
var tf=function(){
var ntf=new String(_462);
return function(evt){
if(_459[ntf]){
_459[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_45b,tevt,tf,false,true);
}
}
for(var y=0;y<_455.length;y++){
var _468=_45b.getAttribute(_455[y]);
if((_468)&&(_468.length)){
var _462=null;
var _469=_455[y].substr(4);
_462=trim(_468);
var _46a=[_462];
if(_462.indexOf(";")>=0){
_46a=dojo.lang.map(_462.split(";"),trim);
}
for(var z=0;z<_46a.length;z++){
if(!_46a[z].length){
continue;
}
var tf=function(){
var ntf=new String(_46a[z]);
return function(evt){
if(_459[ntf]){
_459[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_45b,_469,tf,false,true);
}
}
}
}
var _46d=_45b.getAttribute(this.templateProperty);
if(_46d){
_454[_46d]=_45b;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_45b.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_45b,wai.name,"role",val);
}else{
var _471=val.split("-");
dojo.widget.wai.setAttr(_45b,wai.name,_471[0],_471[1]);
}
}
},this);
var _472=_45b.getAttribute(this.onBuildProperty);
if(_472){
eval("var node = baseNode; var widget = targetObj; "+_472);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].length<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_47a,_47b,pos,ref,_47e){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_47e==undefined){
_47e=this.children.length;
}
this.addWidgetAsDirectChild(_47a,_47b,pos,ref,_47e);
this.registerChild(_47a,_47e);
}
return _47a;
},addWidgetAsDirectChild:function(_47f,_480,pos,ref,_483){
if((!this.containerNode)&&(!_480)){
this.containerNode=this.domNode;
}
var cn=(_480)?_480:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_483){
_483=0;
}
_47f.domNode.setAttribute("dojoinsertionindex",_483);
if(!ref){
cn.appendChild(_47f.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_47f.domNode,ref.parentNode,_483);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_47f.domNode);
}else{
dojo.dom.insertAtPosition(_47f.domNode,cn,pos);
}
}
}
},registerChild:function(_485,_486){
_485.dojoInsertionIndex=_486;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_486){
idx=i;
}
}
this.children.splice(idx+1,0,_485);
_485.parent=this;
_485.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_485.widgetId];
},removeChild:function(_489){
dojo.dom.removeNode(_489.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_489);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_48d){
var _48e=this.getFragNodeRef(frag);
if(_48d&&(_48d.snarfChildDomOutput||!_48e)){
_48d.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_48e);
}else{
if(_48e){
if(this.domNode&&(this.domNode!==_48e)){
this._sourceNodeRef=dojo.dom.replaceNode(_48e,this.domNode);
}
}
}
if(_48d){
_48d.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _48f=new dojo.xml.Parse();
var _490;
var _491=this.domNode.getElementsByTagName("*");
for(var i=0;i<_491.length;i++){
if(_491[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_490=_491[i];
}
if(_491[i].getAttribute("dojoType")){
_491[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_490){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_490);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _494=_48f.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_494,this);
var _495=[];
var _496=[this];
var w;
while((w=_496.pop())){
for(var i=0;i<w.children.length;i++){
var _498=w.children[i];
if(_498._processedSubWidgets||!_498.extraArgs["issubwidget"]){
continue;
}
_495.push(_498);
if(_498.isContainer){
_496.push(_498);
}
}
}
for(var i=0;i<_495.length;i++){
var _499=_495[i];
if(_499._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_499._processedSubWidgets=true;
if(_499.extraArgs["dojoattachevent"]){
var evts=_499.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _49c=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _49e=tevt.split(":");
tevt=dojo.string.trim(_49e[0]);
_49c=dojo.string.trim(_49e[1]);
}
if(!_49c){
_49c=tevt;
}
if(dojo.lang.isFunction(_499[tevt])){
dojo.event.kwConnect({srcObj:_499,srcFunc:tevt,targetObj:this,targetFunc:_49c});
}else{
alert(tevt+" is not a function in widget "+_499);
}
}
}
if(_499.extraArgs["dojoattachpoint"]){
this[_499.extraArgs["dojoattachpoint"]]=_499;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _4a2=args["templateCssPath"]||this.templateCssPath;
if(_4a2&&!dojo.widget._cssFiles[_4a2.toString()]){
if((!this.templateCssString)&&(_4a2)){
this.templateCssString=dojo.hostenv.getText(_4a2);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_4a2.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_4a2);
dojo.widget._cssStrings[this.templateCssString]=true;
}
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _4a5=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_4a5);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_4a5)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _4a7=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_4a7=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_4a7){
var hash=this.strings||{};
for(var key in dojo.widget.defaultStrings){
if(dojo.lang.isUndefined(hash[key])){
hash[key]=dojo.widget.defaultStrings[key];
}
}
for(var i=0;i<_4a7.length;i++){
var key=_4a7[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _4ae;
if((kval)||(dojo.lang.isString(kval))){
_4ae=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_4ae.indexOf("\"")>-1){
_4ae=_4ae.replace("\"","&quot;");
}
tstr=tstr.replace(_4a7[i],_4ae);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_4a5){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_4a7)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_4a7){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_4b0,_4b1){
if(!_4b0){
_4b0=this.domNode;
}
if(!_4b1){
_4b1=this;
}
return dojo.widget.attachTemplateNodes(_4b0,_4b1,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
dojo.dom.destroyNode(this.domNode);
delete this.domNode;
}
catch(e){
}
if(this._sourceNodeRef){
try{
dojo.dom.destroyNode(this._sourceNodeRef);
}
catch(e){
}
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_4b3,_4b4){
node=dojo.byId(node);
_4b4(node,!_4b3(node));
return _4b3(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_4b9){
dojo.html[(_4b9?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_4bf){
dojo.html.setStyle(node,"display",((_4bf instanceof String||typeof _4bf=="string")?_4bf:(_4bf?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_4c3){
dojo.html.setStyle(node,"visibility",((_4c3 instanceof String||typeof _4c3=="string")?_4c3:(_4c3?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_4c7,_4c8){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_4c8){
if(_4c7>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_4c7=0.999999;
}
}else{
if(_4c7<0){
_4c7=0;
}
}
}
if(h.ie){
if(node.nodeName.toLowerCase()=="tr"){
var tds=node.getElementsByTagName("td");
for(var x=0;x<tds.length;x++){
tds[x].style.filter="Alpha(Opacity="+_4c7*100+")";
}
}
node.style.filter="Alpha(Opacity="+_4c7*100+")";
}else{
if(h.moz){
node.style.opacity=_4c7;
node.style.MozOpacity=_4c7;
}else{
if(h.safari){
node.style.opacity=_4c7;
node.style.KhtmlOpacity=_4c7;
}else{
node.style.opacity=_4c7;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _4d4=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_4d4+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _4d4;
};
dojo.html.setStyleAttributes=function(node,_4d7){
node=dojo.byId(node);
var _4d8=_4d7.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_4d8.length;i++){
var _4da=_4d8[i].split(":");
var name=_4da[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _4dc=_4da[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_4dc);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_4dc});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_4dc});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_4dc});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_4dc});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_4dc;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_4de,_4df){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_4df){
_4df=bs.CONTENT_BOX;
}
var _4e2=2;
var _4e3;
switch(_4df){
case bs.MARGIN_BOX:
_4e3=3;
break;
case bs.BORDER_BOX:
_4e3=2;
break;
case bs.PADDING_BOX:
default:
_4e3=1;
break;
case bs.CONTENT_BOX:
_4e3=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_4e2=1;
try{
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _4e7;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_4e7=db;
}else{
_4e7=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _4e9=node;
do{
var n=_4e9["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_4e9["offsetTop"];
ret.y+=isNaN(m)?0:m;
_4e9=_4e9.offsetParent;
}while((_4e9!=_4e7)&&(_4e9!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_4de){
var _4ec=dojo.html.getScroll();
ret.y+=_4ec.top;
ret.x+=_4ec.left;
}
var _4ed=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_4e2>_4e3){
for(var i=_4e3;i<_4e2;++i){
ret.y+=_4ed[i](node,"top");
ret.x+=_4ed[i](node,"left");
}
}else{
if(_4e2<_4e3){
for(var i=_4e3;i>_4e2;--i){
ret.y-=_4ed[i-1](node,"top");
ret.x-=_4ed[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_4f1,_4f2){
var _4f3=0;
for(var x=0;x<_4f1.length;x++){
_4f3+=dojo.html.getPixelValue(node,_4f1[x],_4f2);
}
return _4f3;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _500=dojo.html.getBorder(node);
return {width:pad.width+_500.width,height:pad.height+_500.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName.toLowerCase()!="img"){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _505;
if(!h.ie){
_505=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_505){
_505=dojo.html.getStyle(node,"box-sizing");
}
}
return (_505?_505:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _50a=dojo.html.getBorder(node);
return {width:box.width-_50a.width,height:box.height-_50a.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _50c=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_50c.width,height:node.offsetHeight-_50c.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _50f=0;
var _510=0;
var isbb=dojo.html.isBorderBox(node);
var _512=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_50f=args.width+_512.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_50f);
}
if(typeof args.height!="undefined"){
_510=args.height+_512.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_510);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _515=dojo.html.getBorderBox(node);
var _516=dojo.html.getMargin(node);
return {width:_515.width+_516.width,height:_515.height+_516.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _519=0;
var _51a=0;
var isbb=dojo.html.isBorderBox(node);
var _51c=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _51d=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_519=args.width-_51c.width;
_519-=_51d.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_519);
}
if(typeof args.height!="undefined"){
_51a=args.height-_51c.height;
_51a-=_51d.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_51a);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_522,_523,_524){
if(_522 instanceof Array||typeof _522=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_522.length<4){
_522.push(0);
}
while(_522.length>4){
_522.pop();
}
var ret={left:_522[0],top:_522[1],width:_522[2],height:_522[3]};
}else{
if(!_522.nodeType&&!(_522 instanceof String||typeof _522=="string")&&("width" in _522||"height" in _522||"left" in _522||"x" in _522||"top" in _522||"y" in _522)){
var ret={left:_522.left||_522.x||0,top:_522.top||_522.y||0,width:_522.width||0,height:_522.height||0};
}else{
var node=dojo.byId(_522);
var pos=dojo.html.abs(node,_523,_524);
var _528=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_528.width,height:_528.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_52a){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_52d){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_52f){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_531){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_533){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_535){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_53f){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_541){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_542){
return dojo.html.getDocumentWindow(_542.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _54a=dojo.html.getCursorPosition(e);
with(dojo.html){
var _54b=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _54d=_54b.x+(bb.width/2);
var _54e=_54b.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_54a.x<_54d?WEST:EAST)|(_54a.y<_54e?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.overElement=function(_54f,e){
_54f=dojo.byId(_54f);
var _551=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_54f);
var _553=dojo.html.getAbsolutePosition(_54f,true,dojo.html.boxSizing.BORDER_BOX);
var top=_553.y;
var _555=top+bb.height;
var left=_553.x;
var _557=left+bb.width;
return (_551.x>=left&&_551.x<=_557&&_551.y>=top&&_551.y<=_555);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _559="";
if(node==null){
return _559;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _55b="unknown";
try{
_55b=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_55b){
case "block":
case "list-item":
case "run-in":
case "table":
case "table-row-group":
case "table-header-group":
case "table-footer-group":
case "table-row":
case "table-column-group":
case "table-column":
case "table-cell":
case "table-caption":
_559+="\n";
_559+=dojo.html.renderedTextContent(node.childNodes[i]);
_559+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_559+="\n";
}else{
_559+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _55d="unknown";
try{
_55d=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_55d){
case "capitalize":
var _55e=text.split(" ");
for(var i=0;i<_55e.length;i++){
_55e[i]=_55e[i].charAt(0).toUpperCase()+_55e[i].substring(1);
}
text=_55e.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_55d){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_559)){
text.replace(/^\s/,"");
}
break;
}
_559+=text;
break;
default:
break;
}
}
return _559;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _562="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_562="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_562="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_562="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _563=null;
switch(_562){
case "cell":
_563=tn.getElementsByTagName("tr")[0];
break;
case "row":
_563=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_563=tn.getElementsByTagName("table")[0];
break;
default:
_563=tn;
break;
}
var _564=[];
for(var x=0;x<_563.childNodes.length;x++){
_564.push(_563.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _564;
};
dojo.html.placeOnScreen=function(node,_567,_568,_569,_56a,_56b,_56c){
if(_567 instanceof Array||typeof _567=="array"){
_56c=_56b;
_56b=_56a;
_56a=_569;
_569=_568;
_568=_567[1];
_567=_567[0];
}
if(_56b instanceof String||typeof _56b=="string"){
_56b=_56b.split(",");
}
if(!isNaN(_569)){
_569=[Number(_569),Number(_569)];
}else{
if(!(_569 instanceof Array||typeof _569=="array")){
_569=[0,0];
}
}
var _56d=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _56f=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_56f;
if(!(_56b instanceof Array||typeof _56b=="array")){
_56b=["TL"];
}
var _573,_574,_575=Infinity,_576;
for(var _577=0;_577<_56b.length;++_577){
var _578=_56b[_577];
var _579=true;
var tryX=_567-(_578.charAt(1)=="L"?0:w)+_569[0]*(_578.charAt(1)=="L"?1:-1);
var tryY=_568-(_578.charAt(0)=="T"?0:h)+_569[1]*(_578.charAt(0)=="T"?1:-1);
if(_56a){
tryX-=_56d.x;
tryY-=_56d.y;
}
if(tryX<0){
tryX=0;
_579=false;
}
if(tryY<0){
tryY=0;
_579=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_579=false;
}else{
x=tryX;
}
x=Math.max(_569[0],x)+_56d.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_579=false;
}else{
y=tryY;
}
y=Math.max(_569[1],y)+_56d.y;
if(_579){
_573=x;
_574=y;
_575=0;
_576=_578;
break;
}else{
var dist=Math.pow(x-tryX-_56d.x,2)+Math.pow(y-tryY-_56d.y,2);
if(_575>dist){
_575=dist;
_573=x;
_574=y;
_576=_578;
}
}
}
if(!_56c){
node.style.left=_573+"px";
node.style.top=_574+"px";
}
return {left:_573,top:_574,x:_573,y:_574,dist:_575,corner:_576};
};
dojo.html.placeOnScreenPoint=function(node,_580,_581,_582,_583){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_580,_581,_582,_583,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_585,_586,_587,_588,_589){
var best,_58b=Infinity;
_585=dojo.byId(_585);
var _58c=_585.style.display;
_585.style.display="";
var mb=dojo.html.getElementBox(_585,_587);
var _58e=mb.width;
var _58f=mb.height;
var _590=dojo.html.getAbsolutePosition(_585,true,_587);
_585.style.display=_58c;
for(var _591 in _588){
var pos,_593,_594;
var _595=_588[_591];
_593=_590.x+(_591.charAt(1)=="L"?0:_58e);
_594=_590.y+(_591.charAt(0)=="T"?0:_58f);
pos=dojo.html.placeOnScreen(node,_593,_594,_586,true,_595,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_58b>pos.dist){
_58b=pos.dist;
best=pos;
}
}
}
if(!_589){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _597=node.parentNode;
var _598=_597.scrollTop+dojo.html.getBorderBox(_597).height;
var _599=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_598<_599){
_597.scrollTop+=(_599-_598);
}else{
if(_597.scrollTop>node.offsetTop){
_597.scrollTop-=(_597.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.gfx.color");
dojo.gfx.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_5a0){
if(_5a0){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_5a1,_5a2){
var rgb=null;
if(dojo.lang.isArray(_5a1)){
rgb=_5a1;
}else{
if(_5a1 instanceof dojo.gfx.color.Color){
rgb=_5a1.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_5a1).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_5a2);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_5a6){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_5a6);
}
if(!_5a6){
_5a6=0;
}
_5a6=Math.min(Math.max(-1,_5a6),1);
_5a6=((_5a6+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_5a6));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_5ab){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_5ab));
};
dojo.gfx.color.extractRGB=function(_5ac){
var hex="0123456789abcdef";
_5ac=_5ac.toLowerCase();
if(_5ac.indexOf("rgb")==0){
var _5ae=_5ac.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_5ae.splice(1,3);
return ret;
}else{
var _5b0=dojo.gfx.color.hex2rgb(_5ac);
if(_5b0){
return _5b0;
}else{
return dojo.gfx.color.named[_5ac]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _5b2="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_5b2+"]","g"),"")!=""){
return null;
}
if(hex.length==3){
rgb[0]=hex.charAt(0)+hex.charAt(0);
rgb[1]=hex.charAt(1)+hex.charAt(1);
rgb[2]=hex.charAt(2)+hex.charAt(2);
}else{
rgb[0]=hex.substring(0,2);
rgb[1]=hex.substring(2,4);
rgb[2]=hex.substring(4);
}
for(var i=0;i<rgb.length;i++){
rgb[i]=_5b2.indexOf(rgb[i].charAt(0))*16+_5b2.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.lfx.Animation");
dojo.lfx.Line=function(_5bb,end){
this.start=_5bb;
this.end=end;
if(dojo.lang.isArray(_5bb)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_5bb;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
if((dojo.render.html.khtml)&&(!dojo.render.html.safari)){
dojo.lfx.easeDefault=function(n){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
};
}else{
dojo.lfx.easeDefault=function(n){
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
};
}
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_5cb,_5cc){
if(!_5cc){
_5cc=_5cb;
_5cb=this;
}
_5cc=dojo.lang.hitch(_5cb,_5cc);
var _5cd=this[evt]||function(){
};
this[evt]=function(){
var ret=_5cd.apply(this,arguments);
_5cc.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_5d1){
this.repeatCount=_5d1;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_5d2,_5d3,_5d4,_5d5,_5d6,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_5d2)||(!_5d2&&_5d3.getValue)){
rate=_5d6;
_5d6=_5d5;
_5d5=_5d4;
_5d4=_5d3;
_5d3=_5d2;
_5d2=null;
}else{
if(_5d2.getValue||dojo.lang.isArray(_5d2)){
rate=_5d5;
_5d6=_5d4;
_5d5=_5d3;
_5d4=_5d2;
_5d3=null;
_5d2=null;
}
}
if(dojo.lang.isArray(_5d4)){
this.curve=new dojo.lfx.Line(_5d4[0],_5d4[1]);
}else{
this.curve=_5d4;
}
if(_5d3!=null&&_5d3>0){
this.duration=_5d3;
}
if(_5d6){
this.repeatCount=_5d6;
}
if(rate){
this.rate=rate;
}
if(_5d2){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_5d2[item]){
this.connect(item,_5d2[item]);
}
},this);
}
if(_5d5&&dojo.lang.isFunction(_5d5)){
this.easing=_5d5;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_5d9,_5da){
if(_5da){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_5d9>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5da);
}),_5d9);
return this;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _5dc=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_5dc]);
this.fire("onBegin",[_5dc]);
}
this.fire("handler",["play",_5dc]);
this.fire("onPlay",[_5dc]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _5dd=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_5dd]);
this.fire("onPause",[_5dd]);
return this;
},gotoPercent:function(pct,_5df){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5df){
this.play();
}
return this;
},stop:function(_5e0){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5e0){
step=1;
}
var _5e2=this.curve.getValue(step);
this.fire("handler",["stop",_5e2]);
this.fire("onStop",[_5e2]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _5e5=this.curve.getValue(step);
this.fire("handler",["animate",_5e5]);
this.fire("onAnimate",[_5e5]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(_5e6){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _5e7=arguments;
if(_5e7.length==1&&(dojo.lang.isArray(_5e7[0])||dojo.lang.isArrayLike(_5e7[0]))){
_5e7=_5e7[0];
}
dojo.lang.forEach(_5e7,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_5e9,_5ea){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_5e9>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5ea);
}),_5e9);
return this;
}
if(_5ea||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_5ea);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_5eb){
this.fire("onStop");
this._animsCall("stop",_5eb);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_5ec){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _5ef=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_5ec](args);
},_5ef);
return this;
}});
dojo.lfx.Chain=function(_5f1){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _5f2=arguments;
if(_5f2.length==1&&(dojo.lang.isArray(_5f2[0])||dojo.lang.isArrayLike(_5f2[0]))){
_5f2=_5f2[0];
}
var _5f3=this;
dojo.lang.forEach(_5f2,function(anim,i,_5f6){
this._anims.push(anim);
if(i<_5f6.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_5f7,_5f8){
if(!this._anims.length){
return this;
}
if(_5f8||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _5f9=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_5f7>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5f8);
}),_5f7);
return this;
}
if(_5f9){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_5f9.play(null,_5f8);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _5fa=this._anims[this._currAnim];
if(_5fa){
if(!_5fa._active||_5fa._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _5fb=this._anims[this._currAnim];
if(_5fb){
_5fb.stop();
this.fire("onStop",[this._currAnim]);
}
return _5fb;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(_5fc){
var _5fd=arguments;
if(dojo.lang.isArray(arguments[0])){
_5fd=arguments[0];
}
if(_5fd.length==1){
return _5fd[0];
}
return new dojo.lfx.Combine(_5fd);
};
dojo.lfx.chain=function(_5fe){
var _5ff=arguments;
if(dojo.lang.isArray(arguments[0])){
_5ff=arguments[0];
}
if(_5ff.length==1){
return _5ff[0];
}
return new dojo.lfx.Chain(_5ff);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _601;
do{
_601=dojo.html.getStyle(node,"background-color");
if(_601.toLowerCase()=="rgba(0, 0, 0, 0)"){
_601="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_601));
if(_601=="transparent"){
_601=[255,255,255,0];
}else{
_601=dojo.gfx.color.extractRGB(_601);
}
return _601;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_602){
if(!_602){
return [];
}
if(dojo.lang.isArrayLike(_602)){
if(!_602.alreadyChecked){
var n=[];
dojo.lang.forEach(_602,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _602;
}
}else{
var n=[];
n.push(dojo.byId(_602));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_605,_606,_607,_608,_609){
_605=dojo.lfx.html._byId(_605);
var _60a={"propertyMap":_606,"nodes":_605,"duration":_607,"easing":_608||dojo.lfx.easeDefault};
var _60b=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _60f in pm){
pm[_60f].property=_60f;
parr.push(pm[_60f]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _611=function(_612){
var _613=[];
dojo.lang.forEach(_612,function(c){
_613.push(Math.round(c));
});
return _613;
};
var _615=function(n,_617){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _617){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_617[s]);
}else{
n.style[s]=_617[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _619=function(_61a){
this._properties=_61a;
this.diffs=new Array(_61a.length);
dojo.lang.forEach(_61a,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _621=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_621=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_621+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_621+=")";
}else{
_621=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_621;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_60b(_60a);
anim.curve=new _619(_60a.propertyMap);
},onAnimate:function(_624){
dojo.lang.forEach(_60a.nodes,function(node){
_615(node,_624);
});
}},_60a.duration,null,_60a.easing);
if(_609){
for(var x in _609){
if(dojo.lang.isFunction(_609[x])){
anim.connect(x,anim,_609[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_627){
var _628=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_627)){
dojo.lang.forEach(_627,_628);
}else{
_628(_627);
}
};
dojo.lfx.html.fade=function(_62a,_62b,_62c,_62d,_62e){
_62a=dojo.lfx.html._byId(_62a);
var _62f={property:"opacity"};
if(!dj_undef("start",_62b)){
_62f.start=_62b.start;
}else{
_62f.start=function(){
return dojo.html.getOpacity(_62a[0]);
};
}
if(!dj_undef("end",_62b)){
_62f.end=_62b.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_62a,[_62f],_62c,_62d);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_62a);
});
if(_62e){
anim.connect("onEnd",function(){
_62e(_62a,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_631,_632,_633,_634){
return dojo.lfx.html.fade(_631,{end:1},_632,_633,_634);
};
dojo.lfx.html.fadeOut=function(_635,_636,_637,_638){
return dojo.lfx.html.fade(_635,{end:0},_636,_637,_638);
};
dojo.lfx.html.fadeShow=function(_639,_63a,_63b,_63c){
_639=dojo.lfx.html._byId(_639);
dojo.lang.forEach(_639,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_639,_63a,_63b,_63c);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_639)){
dojo.lang.forEach(_639,dojo.html.show);
}else{
dojo.html.show(_639);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_63f,_640,_641,_642){
var anim=dojo.lfx.html.fadeOut(_63f,_640,_641,function(){
if(dojo.lang.isArrayLike(_63f)){
dojo.lang.forEach(_63f,dojo.html.hide);
}else{
dojo.html.hide(_63f);
}
if(_642){
_642(_63f,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_644,_645,_646,_647){
_644=dojo.lfx.html._byId(_644);
var _648=[];
dojo.lang.forEach(_644,function(node){
var _64a={};
var _64b,_64c,_64d;
with(node.style){
_64b=top;
_64c=left;
_64d=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _64e=dojo.html.getBorderBox(node).height;
with(node.style){
top=_64b;
left=_64c;
position=_64d;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _64e;
}}},_645,_646);
anim.connect("beforeBegin",function(){
_64a.overflow=node.style.overflow;
_64a.height=node.style.height;
with(node.style){
overflow="hidden";
height="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_64a.overflow;
height=_64a.height;
}
if(_647){
_647(node,anim);
}
});
_648.push(anim);
});
return dojo.lfx.combine(_648);
};
dojo.lfx.html.wipeOut=function(_650,_651,_652,_653){
_650=dojo.lfx.html._byId(_650);
var _654=[];
dojo.lang.forEach(_650,function(node){
var _656={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_651,_652,{"beforeBegin":function(){
_656.overflow=node.style.overflow;
_656.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_656.overflow;
height=_656.height;
}
if(_653){
_653(node,anim);
}
}});
_654.push(anim);
});
return dojo.lfx.combine(_654);
};
dojo.lfx.html.slideTo=function(_658,_659,_65a,_65b,_65c){
_658=dojo.lfx.html._byId(_658);
var _65d=[];
var _65e=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_659)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_659={top:_659[0],left:_659[1]};
}
dojo.lang.forEach(_658,function(node){
var top=null;
var left=null;
var init=(function(){
var _663=node;
return function(){
var pos=_65e(_663,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_65e(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_65e(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_663,true);
dojo.html.setStyleAttributes(_663,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_659.top||0)},"left":{start:left,end:(_659.left||0)}},_65a,_65b,{"beforeBegin":init});
if(_65c){
anim.connect("onEnd",function(){
_65c(_658,anim);
});
}
_65d.push(anim);
});
return dojo.lfx.combine(_65d);
};
dojo.lfx.html.slideBy=function(_667,_668,_669,_66a,_66b){
_667=dojo.lfx.html._byId(_667);
var _66c=[];
var _66d=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_668)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_668={top:_668[0],left:_668[1]};
}
dojo.lang.forEach(_667,function(node){
var top=null;
var left=null;
var init=(function(){
var _672=node;
return function(){
var pos=_66d(_672,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_66d(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_66d(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_672,true);
dojo.html.setStyleAttributes(_672,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_668.top||0)},"left":{start:left,end:left+(_668.left||0)}},_669,_66a).connect("beforeBegin",init);
if(_66b){
anim.connect("onEnd",function(){
_66b(_667,anim);
});
}
_66c.push(anim);
});
return dojo.lfx.combine(_66c);
};
dojo.lfx.html.explode=function(_676,_677,_678,_679,_67a){
var h=dojo.html;
_676=dojo.byId(_676);
_677=dojo.byId(_677);
var _67c=h.toCoordinateObject(_676,true);
var _67d=document.createElement("div");
h.copyStyle(_67d,_677);
if(_677.explodeClassName){
_67d.className=_677.explodeClassName;
}
with(_67d.style){
position="absolute";
display="none";
var _67e=h.getStyle(_676,"background-color");
backgroundColor=_67e?_67e.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_67d);
with(_677.style){
visibility="hidden";
display="block";
}
var _67f=h.toCoordinateObject(_677,true);
with(_677.style){
display="none";
visibility="visible";
}
var _680={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_680[type]={start:_67c[type],end:_67f[type]};
});
var anim=new dojo.lfx.propertyAnimation(_67d,_680,_678,_679,{"beforeBegin":function(){
h.setDisplay(_67d,"block");
},"onEnd":function(){
h.setDisplay(_677,"block");
_67d.parentNode.removeChild(_67d);
}});
if(_67a){
anim.connect("onEnd",function(){
_67a(_677,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_683,end,_685,_686,_687){
var h=dojo.html;
_683=dojo.byId(_683);
end=dojo.byId(end);
var _689=dojo.html.toCoordinateObject(_683,true);
var _68a=dojo.html.toCoordinateObject(end,true);
var _68b=document.createElement("div");
dojo.html.copyStyle(_68b,_683);
if(_683.explodeClassName){
_68b.className=_683.explodeClassName;
}
dojo.html.setOpacity(_68b,0.3);
with(_68b.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_683,"background-color").toLowerCase();
}
dojo.body().appendChild(_68b);
var _68c={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_68c[type]={start:_689[type],end:_68a[type]};
});
var anim=new dojo.lfx.propertyAnimation(_68b,_68c,_685,_686,{"beforeBegin":function(){
dojo.html.hide(_683);
dojo.html.show(_68b);
},"onEnd":function(){
_68b.parentNode.removeChild(_68b);
}});
if(_687){
anim.connect("onEnd",function(){
_687(_683,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_68f,_690,_691,_692,_693){
_68f=dojo.lfx.html._byId(_68f);
var _694=[];
dojo.lang.forEach(_68f,function(node){
var _696=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _698=dojo.html.getStyle(node,"background-image");
var _699=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_696.length>3){
_696.pop();
}
var rgb=new dojo.gfx.color.Color(_690);
var _69b=new dojo.gfx.color.Color(_696);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_69b}},_691,_692,{"beforeBegin":function(){
if(_698){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_698){
node.style.backgroundImage=_698;
}
if(_699){
node.style.backgroundColor="transparent";
}
if(_693){
_693(node,anim);
}
}});
_694.push(anim);
});
return dojo.lfx.combine(_694);
};
dojo.lfx.html.unhighlight=function(_69d,_69e,_69f,_6a0,_6a1){
_69d=dojo.lfx.html._byId(_69d);
var _6a2=[];
dojo.lang.forEach(_69d,function(node){
var _6a4=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_69e);
var _6a6=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_6a4,end:rgb}},_69f,_6a0,{"beforeBegin":function(){
if(_6a6){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_6a4.toRgb().join(",")+")";
},"onEnd":function(){
if(_6a1){
_6a1(node,anim);
}
}});
_6a2.push(anim);
});
return dojo.lfx.combine(_6a2);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_6a9,_6aa,_6ab){
dojo.html.show(node);
if(dojo.lang.isFunction(_6ab)){
_6ab();
}
},hide:function(node,_6ad,_6ae,_6af){
dojo.html.hide(node);
if(dojo.lang.isFunction(_6af)){
_6af();
}
}};
dojo.lfx.toggle.fade={show:function(node,_6b1,_6b2,_6b3){
dojo.lfx.fadeShow(node,_6b1,_6b2,_6b3).play();
},hide:function(node,_6b5,_6b6,_6b7){
dojo.lfx.fadeHide(node,_6b5,_6b6,_6b7).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_6b9,_6ba,_6bb){
dojo.lfx.wipeIn(node,_6b9,_6ba,_6bb).play();
},hide:function(node,_6bd,_6be,_6bf){
dojo.lfx.wipeOut(node,_6bd,_6be,_6bf).play();
}};
dojo.lfx.toggle.explode={show:function(node,_6c1,_6c2,_6c3,_6c4){
dojo.lfx.explode(_6c4||{x:0,y:0,width:0,height:0},node,_6c1,_6c2,_6c3).play();
},hide:function(node,_6c6,_6c7,_6c8,_6c9){
dojo.lfx.implode(node,_6c9||{x:0,y:0,width:0,height:0},_6c6,_6c7,_6c8).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_6d0){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_6d0&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.widget.HtmlWidget.superclass.destroyRendering.call(this);
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
if(!this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _6d4=w||wh.width;
var _6d5=h||wh.height;
if(this.width==_6d4&&this.height==_6d5){
return false;
}
this.width=_6d4;
this.height=_6d5;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_6d8){
if(_6d8.checkSize){
_6d8.checkSize();
}
});
}});
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_6d9){
this.propertySetsList=[];
this.fragment=_6d9;
this.createComponents=function(frag,_6db){
var _6dc=[];
var _6dd=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _6de=dojo.widget.tags;
var tna=String(frag.tagName).split(";");
for(var x=0;x<tna.length;x++){
var ltn=tna[x].replace(/^\s+|\s+$/g,"").toLowerCase();
frag.tagName=ltn;
var ret;
if(_6de[ltn]){
_6dd=true;
ret=_6de[ltn](frag,this,_6db,frag.index);
_6dc.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_6db,frag.index);
if(ret){
_6dd=true;
_6dc.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_6dd){
_6dc=_6dc.concat(this.createSubComponents(frag,_6db));
}
return _6dc;
};
this.createSubComponents=function(_6e3,_6e4){
var frag,_6e6=[];
for(var item in _6e3){
frag=_6e3[item];
if(frag&&typeof frag=="object"&&(frag!=_6e3.nodeRef)&&(frag!=_6e3.tagName)&&(!dojo.dom.isNode(frag))){
_6e6=_6e6.concat(this.createComponents(frag,_6e4));
}
}
return _6e6;
};
this.parsePropertySets=function(_6e8){
return [];
};
this.parseProperties=function(_6e9){
var _6ea={};
for(var item in _6e9){
if((_6e9[item]==_6e9.tagName)||(_6e9[item]==_6e9.nodeRef)){
}else{
var frag=_6e9[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _6ed=this;
this.getDataProvider(_6ed,frag[0].value);
_6ea.dataProvider=this.dataProvider;
}
_6ea[item]=frag[0].value;
var _6ee=this.parseProperties(frag);
for(var _6ef in _6ee){
_6ea[_6ef]=_6ee[_6ef];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _6ea[item]!="boolean"){
_6ea[item]=true;
}
break;
}
}
}
return _6ea;
};
this.getDataProvider=function(_6f0,_6f1){
dojo.io.bind({url:_6f1,load:function(type,_6f3){
if(type=="load"){
_6f0.dataProvider=_6f3;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_6f4){
for(var x=0;x<this.propertySetsList.length;x++){
if(_6f4==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_6f6){
var _6f7=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _6fb=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_6fb==cpcc[0].value)){
_6f7.push(cpl);
}
}
return _6f7;
};
this.getPropertySets=function(_6fc){
var ppl="dojo:propertyproviderlist";
var _6fe=[];
var _6ff=_6fc.tagName;
if(_6fc[ppl]){
var _700=_6fc[ppl].value.split(" ");
for(var _701 in _700){
if((_701.indexOf("..")==-1)&&(_701.indexOf("://")==-1)){
var _702=this.getPropertySetById(_701);
if(_702!=""){
_6fe.push(_702);
}
}else{
}
}
}
return this.getPropertySetsByType(_6ff).concat(_6fe);
};
this.createComponentFromScript=function(_703,_704,_705,ns){
_705.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_704.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_705,this,null,null,_705)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_705,this,null,null,_705)];
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_70a,_70b,_70c){
var _70d=false;
var _70e=(typeof name=="string");
if(_70e){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _711=name.toLowerCase();
var _712=ns+":"+_711;
_70d=(dojo.byId(name)&&!dojo.widget.tags[_712]);
}
if((arguments.length==1)&&(_70d||!_70e)){
var xp=new dojo.xml.Parse();
var tn=_70d?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_715,name,_717,ns){
_717[_712]={dojotype:[{value:_711}],nodeRef:_715,fastMixIn:true};
_717.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_715,name,_717,ns);
}
_70a=_70a||{};
var _719=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_70b){
_719=true;
_70b=tn;
if(h){
dojo.body().appendChild(_70b);
}
}else{
if(_70c){
dojo.dom.insertAtPosition(tn,_70b,_70c);
}else{
tn=_70b;
}
}
var _71b=fromScript(tn,name.toLowerCase(),_70a,ns);
if((!_71b)||(!_71b[0])||(typeof _71b[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_719&&_71b[0].domNode.parentNode){
_71b[0].domNode.parentNode.removeChild(_71b[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _71b[0];
};
dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.Form");
dojo.widget.defineWidget("dojo.widget.Form",dojo.widget.HtmlWidget,{isContainer:true,templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onSubmit:onSubmit'></form>",formElements:[],ignoreNullValues:false,postCreate:function(args,frag){
for(var key in args){
if(key=="dojotype"){
continue;
}
var attr=document.createAttribute(key);
attr.nodeValue=args[key];
this.containerNode.setAttributeNode(attr);
}
},_createRepeaters:function(obj,_721){
for(var i=0;i<_721.children.length;++i){
if(_721.children[i].widgetType=="RepeaterContainer"){
var _723=_721.children[i].index;
var _724=_723.indexOf("%{index}");
_723=_723.substr(0,_724-1);
var _725=this._getObject(obj,_723);
if(typeof (_725)=="object"&&_725.length==0){
_725=new Array();
}
var _726=_721.children[i].getRowCount();
for(var j=0,len=_726;j<len;++j){
_721.children[i].deleteRow(0);
}
for(var j=0;j<_725.length;j++){
_721.children[i].addRow(false);
}
}
if(_721.children[i].isContainer){
this._createRepeaters(obj,_721.children[i]);
}
}
},_createFormElements:function(){
if(dojo.render.html.safari){
this.formElements=[];
var _729=["INPUT","SELECT","TEXTAREA"];
for(var k=0;k<_729.length;k++){
var list=this.containerNode.getElementsByTagName(_729[k]);
for(var j=0,len2=list.length;j<len2;j++){
this.formElements.push(list[j]);
}
}
}else{
this.formElements=this.containerNode.elements;
}
},onSubmit:function(e){
e.preventDefault();
},submit:function(){
this.containerNode.submit();
},_getFormElement:function(name){
if(dojo.render.html.ie){
for(var i=0,len=this.formElements.length;i<len;i++){
var _732=this.formElements[i];
if(_732.name==name){
return _732;
}
}
}else{
var elem=this.formElements[name];
if(typeof (elem)!="undefined"){
return elem;
}
}
return null;
},_getObject:function(obj,_735){
var _736=[];
_736=_735.split(".");
var _737=obj;
var name=_736[_736.length-1];
for(var j=0,len=_736.length;j<len;++j){
var p=_736[j];
if(typeof (_737[p])=="undefined"){
_737[p]={};
}
_737=_737[p];
}
return _737;
},_setToContainers:function(obj,_73d){
for(var i=0,len=_73d.children.length;i<len;++i){
var _740=_73d.children[i];
if(_740.widgetType=="Repeater"){
for(var j=0,len=_740.getRowCount();j<len;++j){
_740._initRow(j);
}
}
if(_740.isContainer){
this._setToContainers(obj,_740);
continue;
}
switch(_740.widgetType){
case "Checkbox":
_740.setValue(_740.inputNode.checked);
break;
case "DropdownDatePicker":
_740.setValue(_740.getValue());
break;
case "Select":
continue;
break;
case "ComboBox":
continue;
break;
default:
break;
}
}
},setValues:function(obj){
this._createFormElements();
this._createRepeaters(obj,this);
for(var i=0,len=this.formElements.length;i<len;i++){
var _745=this.formElements[i];
if(_745.name==""){
continue;
}
var _746=new Array();
_746=_745.name.split(".");
var _747=obj;
var name=_746[_746.length-1];
for(var j=1,len2=_746.length;j<len2;++j){
var p=_746[j-1];
if(typeof (_747[p])=="undefined"){
_747=undefined;
break;
}
_747=_747[p];
}
if(typeof (_747)=="undefined"){
continue;
}
if(typeof (_747[name])=="undefined"&&this.ignoreNullValues){
continue;
}
var type=_745.type;
if(type=="hidden"||type=="text"||type=="textarea"||type=="password"){
type="text";
}
switch(type){
case "checkbox":
_745.checked=false;
if(typeof (_747[name])=="undefined"){
continue;
}
for(var j=0,len2=_747[name].length;j<len2;++j){
if(_745.value==_747[name][j]){
_745.checked=true;
}
}
break;
case "radio":
_745.checked=false;
if(typeof (_747[name])=="undefined"){
continue;
}
if(_747[name]==_745.value){
_745.checked=true;
}
break;
case "select-multiple":
_745.selectedIndex=-1;
for(var j=0,len2=_745.options.length;j<len2;++j){
for(var k=0,len3=_747[name].length;k<len3;++k){
if(_745.options[j].value==_747[name][k]){
_745.options[j].selected=true;
}
}
}
break;
case "select-one":
_745.selectedIndex="0";
for(var j=0,len2=_745.options.length;j<len2;++j){
if(_745.options[j].value==_747[name]){
_745.options[j].selected=true;
}else{
}
}
break;
case "text":
var _74f="";
if(typeof (_747[name])!="undefined"){
_74f=_747[name];
}
_745.value=_74f;
break;
default:
dojo.debug("Not supported type ("+type+")");
break;
}
}
this._setToContainers(obj,this);
},getValues:function(){
this._createFormElements();
var obj={};
for(var i=0,len=this.formElements.length;i<len;i++){
var elm=this.formElements[i];
var _754=[];
if(elm.name==""){
continue;
}
_754=elm.name.split(".");
var _755=obj;
var name=_754[_754.length-1];
for(var j=1,len2=_754.length;j<len2;++j){
var _759=null;
var p=_754[j-1];
var _75b=p.split("[");
if(_75b.length>1){
if(typeof (_755[_75b[0]])=="undefined"){
_755[_75b[0]]=[];
}
_759=parseInt(_75b[1]);
if(typeof (_755[_75b[0]][_759])=="undefined"){
_755[_75b[0]][_759]={};
}
}else{
if(typeof (_755[_75b[0]])=="undefined"){
_755[_75b[0]]={};
}
}
if(_75b.length==1){
_755=_755[_75b[0]];
}else{
_755=_755[_75b[0]][_759];
}
}
if((elm.type!="select-multiple"&&elm.type!="checkbox"&&elm.type!="radio")||(elm.type=="radio"&&elm.checked)){
if(name==name.split("[")[0]){
_755[name]=elm.value;
}else{
}
}else{
if(elm.type=="checkbox"&&elm.checked){
if(typeof (_755[name])=="undefined"){
_755[name]=[];
}
_755[name].push(elm.value);
}else{
if(elm.type=="select-multiple"){
if(typeof (_755[name])=="undefined"){
_755[name]=[];
}
for(var jdx=0,len3=elm.options.length;jdx<len3;++jdx){
if(elm.options[jdx].selected){
_755[name].push(elm.options[jdx].value);
}
}
}
}
}
name=undefined;
}
return obj;
}});
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_75e,_75f,_760){
dojo.hostenv.preloadLocalizations();
_760=dojo.hostenv.normalizeLocale(_760);
var _761=_760.split("-");
var _762=[_75e,"nls",_75f].join(".");
var _763=dojo.hostenv.findModule(_762,true);
var _764;
for(var i=_761.length;i>0;i--){
var loc=_761.slice(0,i).join("_");
if(_763[loc]){
_764=_763[loc];
break;
}
}
if(!_764){
_764=_763.ROOT;
}
if(_764){
var _767=function(){
};
_767.prototype=_764;
return new _767();
}
dojo.raise("Bundle not found: "+_75f+" in "+_75e+" , locale="+_760);
};
dojo.i18n.isLTR=function(_768){
var lang=dojo.hostenv.normalizeLocale(_768).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.widget.Textbox");
dojo.widget.defineWidget("dojo.widget.Textbox",dojo.widget.HtmlWidget,{className:"",name:"",value:"",type:"",trim:false,uppercase:false,lowercase:false,ucFirst:false,digit:false,htmlfloat:"none",templateString:"<span style='float:${this.htmlfloat};'>\n\t<input dojoAttachPoint='textbox' dojoAttachEvent='onblur;onfocus'\n\t\tid='${this.widgetId}' name='${this.name}'\n\t\tclass='${this.className}' type='${this.type}' >\n</span>\n",textbox:null,fillInTemplate:function(){
this.textbox.value=this.value;
},filter:function(){
if(this.trim){
this.textbox.value=this.textbox.value.replace(/(^\s*|\s*$)/g,"");
}
if(this.uppercase){
this.textbox.value=this.textbox.value.toUpperCase();
}
if(this.lowercase){
this.textbox.value=this.textbox.value.toLowerCase();
}
if(this.ucFirst){
this.textbox.value=this.textbox.value.replace(/\b\w+\b/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1).toLowerCase();
});
}
if(this.digit){
this.textbox.value=this.textbox.value.replace(/\D/g,"");
}
},onfocus:function(){
},onblur:function(){
this.filter();
},mixInProperties:function(_76c,frag){
dojo.widget.Textbox.superclass.mixInProperties.apply(this,arguments);
if(_76c["class"]){
this.className=_76c["class"];
}
}});
dojo.provide("dojo.widget.ValidationTextbox");
dojo.widget.defineWidget("dojo.widget.ValidationTextbox",dojo.widget.Textbox,function(){
this.flags={};
},{required:false,rangeClass:"range",invalidClass:"invalid",missingClass:"missing",classPrefix:"dojoValidate",size:"",maxlength:"",promptMessage:"",invalidMessage:"",missingMessage:"",rangeMessage:"",listenOnKeyPress:true,htmlfloat:"none",lastCheckedValue:null,templateString:"<span style='float:${this.htmlfloat};'>\n\t<input dojoAttachPoint='textbox' type='${this.type}' dojoAttachEvent='onblur;onfocus;onkeyup'\n\t\tid='${this.widgetId}' name='${this.name}' size='${this.size}' maxlength='${this.maxlength}'\n\t\tclass='${this.className}' style=''>\n\t<span dojoAttachPoint='invalidSpan' class='${this.invalidClass}'>${this.messages.invalidMessage}</span>\n\t<span dojoAttachPoint='missingSpan' class='${this.missingClass}'>${this.messages.missingMessage}</span>\n\t<span dojoAttachPoint='rangeSpan' class='${this.rangeClass}'>${this.messages.rangeMessage}</span>\n</span>\n",templateCssString:".dojoValidateEmpty{\n\tbackground-color: #00FFFF;\n}\n.dojoValidateValid{\n\tbackground-color: #cfc;\n}\n.dojoValidateInvalid{\n\tbackground-color: #fcc;\n}\n.dojoValidateRange{\n\tbackground-color: #ccf;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Validate.css"),invalidSpan:null,missingSpan:null,rangeSpan:null,getValue:function(){
return this.textbox.value;
},setValue:function(_76e){
this.textbox.value=_76e;
this.update();
},isValid:function(){
return true;
},isInRange:function(){
return true;
},isEmpty:function(){
return (/^\s*$/.test(this.textbox.value));
},isMissing:function(){
return (this.required&&this.isEmpty());
},update:function(){
this.lastCheckedValue=this.textbox.value;
this.missingSpan.style.display="none";
this.invalidSpan.style.display="none";
this.rangeSpan.style.display="none";
var _76f=this.isEmpty();
var _770=true;
if(this.promptMessage!=this.textbox.value){
_770=this.isValid();
}
var _771=this.isMissing();
if(_771){
this.missingSpan.style.display="";
}else{
if(!_76f&&!_770){
this.invalidSpan.style.display="";
}else{
if(!_76f&&!this.isInRange()){
this.rangeSpan.style.display="";
}
}
}
this.highlight();
},updateClass:function(_772){
var pre=this.classPrefix;
dojo.html.removeClass(this.textbox,pre+"Empty");
dojo.html.removeClass(this.textbox,pre+"Valid");
dojo.html.removeClass(this.textbox,pre+"Invalid");
dojo.html.addClass(this.textbox,pre+_772);
},highlight:function(){
if(this.isEmpty()){
this.updateClass("Empty");
}else{
if(this.isValid()&&this.isInRange()){
this.updateClass("Valid");
}else{
if(this.textbox.value!=this.promptMessage){
this.updateClass("Invalid");
}else{
this.updateClass("Empty");
}
}
}
},onfocus:function(evt){
if(!this.listenOnKeyPress){
this.updateClass("Empty");
}
},onblur:function(evt){
this.filter();
this.update();
},onkeyup:function(evt){
if(this.listenOnKeyPress){
this.update();
}else{
if(this.textbox.value!=this.lastCheckedValue){
this.updateClass("Empty");
}
}
},postMixInProperties:function(_777,frag){
dojo.widget.ValidationTextbox.superclass.postMixInProperties.apply(this,arguments);
this.messages=dojo.i18n.getLocalization("dojo.widget","validate",this.lang);
dojo.lang.forEach(["invalidMessage","missingMessage","rangeMessage"],function(prop){
if(this[prop]){
this.messages[prop]=this[prop];
}
},this);
},fillInTemplate:function(){
dojo.widget.ValidationTextbox.superclass.fillInTemplate.apply(this,arguments);
this.textbox.isValid=function(){
this.isValid.call(this);
};
this.textbox.isMissing=function(){
this.isMissing.call(this);
};
this.textbox.isInRange=function(){
this.isInRange.call(this);
};
dojo.html.setClass(this.invalidSpan,this.invalidClass);
this.update();
this.filter();
if(dojo.render.html.ie){
dojo.html.addClass(this.domNode,"ie");
}
if(dojo.render.html.moz){
dojo.html.addClass(this.domNode,"moz");
}
if(dojo.render.html.opera){
dojo.html.addClass(this.domNode,"opera");
}
if(dojo.render.html.safari){
dojo.html.addClass(this.domNode,"safari");
}
}});
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,_780,_781){
var out="";
for(var i=0;i<_780;i++){
out+=str;
if(_781&&i<_780-1){
out+=_781;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_790,_791,_792){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_790){
this.mimetype=_790;
}
if(_791){
this.transport=_791;
}
if(arguments.length>=4){
this.changeUrl=_792;
}
}
};
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,jsonFilter:function(_793){
if((this.mimetype=="text/json-comment-filtered")||(this.mimetype=="application/json-comment-filtered")){
var _794=_793.indexOf("/*");
var _795=_793.lastIndexOf("*/");
if((_794==-1)||(_795==-1)){
dojo.debug("your JSON wasn't comment filtered!");
return "";
}
return _793.substring(_794+2,_795);
}
dojo.debug("please consider using a mimetype of text/json-comment-filtered to avoid potential security issues with JSON endpoints");
return _793;
},load:function(type,data,_798,_799){
},error:function(type,_79b,_79c,_79d){
},timeout:function(type,_79f,_7a0,_7a1){
},handle:function(type,data,_7a4,_7a5){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_7a6){
if(_7a6["url"]){
_7a6.url=_7a6.url.toString();
}
if(_7a6["formNode"]){
_7a6.formNode=dojo.byId(_7a6.formNode);
}
if(!_7a6["method"]&&_7a6["formNode"]&&_7a6["formNode"].method){
_7a6.method=_7a6["formNode"].method;
}
if(!_7a6["handle"]&&_7a6["handler"]){
_7a6.handle=_7a6.handler;
}
if(!_7a6["load"]&&_7a6["loaded"]){
_7a6.load=_7a6.loaded;
}
if(!_7a6["changeUrl"]&&_7a6["changeURL"]){
_7a6.changeUrl=_7a6.changeURL;
}
_7a6.encoding=dojo.lang.firstValued(_7a6["encoding"],djConfig["bindEncoding"],"");
_7a6.sendTransport=dojo.lang.firstValued(_7a6["sendTransport"],djConfig["ioSendTransport"],false);
var _7a7=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_7a6[fn]&&_7a7(_7a6[fn])){
continue;
}
if(_7a6["handle"]&&_7a7(_7a6["handle"])){
_7a6[fn]=_7a6.handle;
}
}
dojo.lang.mixin(this,_7a6);
}});
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(_7ae){
if(!(_7ae instanceof dojo.io.Request)){
try{
_7ae=new dojo.io.Request(_7ae);
}
catch(e){
dojo.debug(e);
}
}
var _7af="";
if(_7ae["transport"]){
_7af=_7ae["transport"];
if(!this[_7af]){
dojo.io.sendBindError(_7ae,"No dojo.io.bind() transport with name '"+_7ae["transport"]+"'.");
return _7ae;
}
if(!this[_7af].canHandle(_7ae)){
dojo.io.sendBindError(_7ae,"dojo.io.bind() transport with name '"+_7ae["transport"]+"' cannot handle this type of request.");
return _7ae;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_7ae))){
_7af=tmp;
break;
}
}
if(_7af==""){
dojo.io.sendBindError(_7ae,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _7ae;
}
}
this[_7af].bind(_7ae);
_7ae.bindSuccess=true;
return _7ae;
};
dojo.io.sendBindError=function(_7b2,_7b3){
if((typeof _7b2.error=="function"||typeof _7b2.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _7b4=new dojo.io.Error(_7b3);
setTimeout(function(){
_7b2[(typeof _7b2.error=="function")?"error":"handle"]("error",_7b4,null,_7b2);
},50);
}else{
dojo.raise(_7b3);
}
};
dojo.io.queueBind=function(_7b5){
if(!(_7b5 instanceof dojo.io.Request)){
try{
_7b5=new dojo.io.Request(_7b5);
}
catch(e){
dojo.debug(e);
}
}
var _7b6=_7b5.load;
_7b5.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_7b6.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _7b8=_7b5.error;
_7b5.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_7b8.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_7b5);
dojo.io._dispatchNextQueueBind();
return _7b5;
};
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,_7bb,last){
var enc=/utf/i.test(_7bb||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7be=[];
var _7bf=new Object();
for(var name in map){
var _7c1=function(elt){
var val=enc(name)+"="+enc(elt);
_7be[(last==name)?"push":"unshift"](val);
};
if(!_7bf[name]){
var _7c4=map[name];
if(dojo.lang.isArray(_7c4)){
dojo.lang.forEach(_7c4,_7c1);
}else{
_7c1(_7c4);
}
}
}
return _7be.join("&");
};
dojo.io.setIFrameSrc=function(_7c5,src,_7c7){
try{
var r=dojo.render.html;
if(!_7c7){
if(r.safari){
_7c5.location=src;
}else{
frames[_7c5.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_7c5.contentWindow.document;
}else{
if(r.safari){
idoc=_7c5.document;
}else{
idoc=_7c5.contentWindow;
}
}
if(!idoc){
_7c5.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_7ca,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _7ca.replace(/\%\{(\w+)\}/g,function(_7cd,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 _7d0=str.split(" ");
for(var i=0;i<_7d0.length;i++){
_7d0[i]=_7d0[i].charAt(0).toUpperCase()+_7d0[i].substring(1);
}
return _7d0.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 _7d5=escape(str);
var _7d6,re=/%u([0-9A-F]{4})/i;
while((_7d6=_7d5.match(re))){
var num=Number("0x"+_7d6[1]);
var _7d9=escape("&#"+num+";");
ret+=_7d5.substring(0,_7d6.index)+_7d9;
_7d5=_7d5.substring(_7d6.index+_7d6[0].length);
}
ret+=_7d5.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,_7de){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_7de){
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,_7e7){
if(_7e7){
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,_7eb,_7ec){
if(_7ec){
str=str.toLowerCase();
_7eb=_7eb.toLowerCase();
}
return str.indexOf(_7eb)==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,_7f2){
if(_7f2=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_7f2=="\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,_7f4){
var _7f5=[];
for(var i=0,_7f7=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_7f4){
_7f5.push(str.substring(_7f7,i));
_7f7=i+1;
}
}
_7f5.push(str.substr(_7f7));
return _7f5;
};
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 _7fc=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_7fe){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_7fc.apply(this,[_7fe]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _7ff=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_801){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_7ff){
_7ff.apply(this,[_801]);
}
};
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,_804){
if(!dojo.render.html.opera){
var _805=this._getUrlQuery(_804.href);
if(_805==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_805==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_805==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _806=this.historyStack.pop();
if(!_806){
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(_806);
},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 _80d=url.split("?");
if(_80d.length<2){
return null;
}else{
return _80d[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 _810=false;
var _811=node.getElementsByTagName("input");
dojo.lang.forEach(_811,function(_812){
if(_810){
return;
}
if(_812.getAttribute("type")=="file"){
_810=true;
}
});
return _810;
};
dojo.io.formHasFile=function(_813){
return dojo.io.checkChildrenForFile(_813);
};
dojo.io.updateNode=function(node,_815){
node=dojo.byId(node);
var args=_815;
if(dojo.lang.isString(_815)){
args={url:_815};
}
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(_81c,_81d,_81e){
if((!_81c)||(!_81c.tagName)||(!_81c.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_81e){
_81e=dojo.io.formFilter;
}
var enc=/utf/i.test(_81d||"")?encodeURIComponent:dojo.string.encodeAscii;
var _820=[];
for(var i=0;i<_81c.elements.length;i++){
var elm=_81c.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_81e(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){
_820.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_820.push(name+"="+enc(elm.value));
}
}else{
_820.push(name+"="+enc(elm.value));
}
}
}
var _826=_81c.getElementsByTagName("input");
for(var i=0;i<_826.length;i++){
var _827=_826[i];
if(_827.type.toLowerCase()=="image"&&_827.form==_81c&&_81e(_827)){
var name=enc(_827.name);
_820.push(name+"="+enc(_827.value));
_820.push(name+".x=0");
_820.push(name+".y=0");
}
}
return _820.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 _82d=form.getElementsByTagName("input");
for(var i=0;i<_82d.length;i++){
var _82e=_82d[i];
if(_82e.type.toLowerCase()=="image"&&_82e.form==form){
this.connect(_82e,"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 _835=false;
if(node.disabled||!node.name){
_835=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_835=node==this.clickedButton;
}else{
_835=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _835;
},connect:function(_836,_837,_838){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_836,_837,this,_838);
}else{
var fcn=dojo.lang.hitch(this,_838);
_836[_837]=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 _83b=this;
var _83c={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_83e,_83f){
return url+"|"+_83e+"|"+_83f.toLowerCase();
}
function addToCache(url,_841,_842,http){
_83c[getCacheKey(url,_841,_842)]=http;
}
function getFromCache(url,_845,_846){
return _83c[getCacheKey(url,_845,_846)];
}
this.clearCache=function(){
_83c={};
};
function doLoad(_847,http,url,_84a,_84b){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(http.status==1223)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_847.method.toLowerCase()=="head"){
var _84d=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _84d;
};
var _84e=_84d.split(/[\r\n]+/g);
for(var i=0;i<_84e.length;i++){
var pair=_84e[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_847.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_847.mimetype.substr(0,9)=="text/json"||_847.mimetype.substr(0,16)=="application/json"){
try{
ret=dj_eval("("+_847.jsonFilter(http.responseText)+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_847.mimetype=="application/xml")||(_847.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(_84b){
addToCache(url,_84a,_847.method,http);
}
_847[(typeof _847.load=="function")?"load":"handle"]("load",ret,http,_847);
}else{
var _851=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_847[(typeof _847.error=="function")?"error":"handle"]("error",_851,http,_847);
}
}
function setHeaders(http,_853){
if(_853["headers"]){
for(var _854 in _853["headers"]){
if(_854.toLowerCase()=="content-type"&&!_853["contentType"]){
_853["contentType"]=_853["headers"][_854];
}else{
http.setRequestHeader(_854,_853["headers"][_854]);
}
}
}
}
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&&!_83b._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 _858=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_858,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 _859=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_85a){
var mlc=_85a["mimetype"].toLowerCase()||"";
return _859&&((dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript"],mlc))||(mlc.substr(0,9)=="text/json"||mlc.substr(0,16)=="application/json"))&&!(_85a["formNode"]&&dojo.io.formHasFile(_85a["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_85c){
if(!_85c["url"]){
if(!_85c["formNode"]&&(_85c["backButton"]||_85c["back"]||_85c["changeUrl"]||_85c["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(_85c);
return true;
}
}
var url=_85c.url;
var _85e="";
if(_85c["formNode"]){
var ta=_85c.formNode.getAttribute("action");
if((ta)&&(!_85c["url"])){
url=ta;
}
var tp=_85c.formNode.getAttribute("method");
if((tp)&&(!_85c["method"])){
_85c.method=tp;
}
_85e+=dojo.io.encodeForm(_85c.formNode,_85c.encoding,_85c["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_85c["file"]){
_85c.method="post";
}
if(!_85c["method"]){
_85c.method="get";
}
if(_85c.method.toLowerCase()=="get"){
_85c.multipart=false;
}else{
if(_85c["file"]){
_85c.multipart=true;
}else{
if(!_85c["multipart"]){
_85c.multipart=false;
}
}
}
if(_85c["backButton"]||_85c["back"]||_85c["changeUrl"]){
dojo.undo.browser.addToHistory(_85c);
}
var _861=_85c["content"]||{};
if(_85c.sendTransport){
_861["dojo.transport"]="xmlhttp";
}
do{
if(_85c.postContent){
_85e=_85c.postContent;
break;
}
if(_861){
_85e+=dojo.io.argsFromMap(_861,_85c.encoding);
}
if(_85c.method.toLowerCase()=="get"||!_85c.multipart){
break;
}
var t=[];
if(_85e.length){
var q=_85e.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(_85c.file){
if(dojo.lang.isArray(_85c.file)){
for(var i=0;i<_85c.file.length;++i){
var o=_85c.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=_85c.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+"--","");
_85e=t.join("\r\n");
}
}while(false);
var _867=_85c["sync"]?false:true;
var _868=_85c["preventCache"]||(this.preventCache==true&&_85c["preventCache"]!=false);
var _869=_85c["useCache"]==true||(this.useCache==true&&_85c["useCache"]!=false);
if(!_868&&_869){
var _86a=getFromCache(url,_85e,_85c.method);
if(_86a){
doLoad(_85c,_86a,url,_85e,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_85c);
var _86c=false;
if(_867){
var _86d=this.inFlight.push({"req":_85c,"http":http,"url":url,"query":_85e,"useCache":_869,"startTime":_85c.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_83b._blockAsync=true;
}
if(_85c.method.toLowerCase()=="post"){
if(!_85c.user){
http.open("POST",url,_867);
}else{
http.open("POST",url,_867,_85c.user,_85c.password);
}
setHeaders(http,_85c);
http.setRequestHeader("Content-Type",_85c.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_85c.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_85e);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_85c,{status:404},url,_85e,_869);
}
}else{
var _86e=url;
if(_85e!=""){
_86e+=(_86e.indexOf("?")>-1?"&":"?")+_85e;
}
if(_868){
_86e+=(dojo.string.endsWithAny(_86e,"?","&")?"":(_86e.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_85c.user){
http.open(_85c.method.toUpperCase(),_86e,_867);
}else{
http.open(_85c.method.toUpperCase(),_86e,_867,_85c.user,_85c.password);
}
setHeaders(http,_85c);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_85c,{status:404},url,_85e,_869);
}
}
if(!_867){
doLoad(_85c,http,url,_85e,_869);
_83b._blockAsync=false;
}
_85c.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,_870,days,path,_873,_874){
var _875=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_875=d.toGMTString();
}
_870=escape(_870);
document.cookie=name+"="+_870+";"+(_875!=-1?" expires="+_875+";":"")+(path?"path="+path:"")+(_873?"; domain="+_873:"")+(_874?"; 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 _879=document.cookie.substring(idx+name.length+1);
var end=_879.indexOf(";");
if(end==-1){
end=_879.length;
}
_879=_879.substring(0,end);
_879=unescape(_879);
return _879;
};
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,_880,_881,_882){
if(arguments.length==5){
_882=_880;
_880=null;
_881=null;
}
var _883=[],_884,_885="";
if(!_882){
_884=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_884){
_884={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _884[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_884[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _884){
_883.push(escape(prop)+"="+escape(_884[prop]));
}
_885=_883.join("&");
}
dojo.io.cookie.setCookie(name,_885,days,path,_880,_881);
};
dojo.io.cookie.getObjectCookie=function(name){
var _888=null,_889=dojo.io.cookie.getCookie(name);
if(_889){
_888={};
var _88a=_889.split("&");
for(var i=0;i<_88a.length;i++){
var pair=_88a[i].split("=");
var _88d=pair[1];
if(isNaN(_88d)){
_88d=unescape(pair[1]);
}
_888[unescape(pair[0])]=_88d;
}
}
return _888;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _88e=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_88e=="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.AdapterRegistry");
dojo.AdapterRegistry=function(_88f){
this.pairs=[];
this.returnWrappers=_88f||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_891,wrap,_893,_894){
var type=(_894)?"unshift":"push";
this.pairs[type]([name,_891,wrap,_893]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_89c,wrap,_89e){
dojo.json.jsonRegistry.register(name,_89c,wrap,_89e);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _8a1=typeof (o);
if(_8a1=="undefined"){
return "undefined";
}else{
if((_8a1=="number")||(_8a1=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_8a1=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _8a3;
if(typeof (o.__json__)=="function"){
_8a3=o.__json__();
if(o!==_8a3){
return me(_8a3);
}
}
if(typeof (o.json)=="function"){
_8a3=o.json();
if(o!==_8a3){
return me(_8a3);
}
}
if(_8a1!="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;
_8a3=dojo.json.jsonRegistry.match(o);
return me(_8a3);
}
catch(e){
}
if(_8a1=="function"){
return null;
}
res=[];
for(var k in o){
var _8a8;
if(typeof (k)=="number"){
_8a8="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_8a8=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_8a8+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.Deferred");
dojo.Deferred=function(_8a9){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_8a9;
this.silentlyCancelled=false;
};
dojo.lang.extend(dojo.Deferred,{getFunctionFromArgs:function(){
var a=arguments;
if((a[0])&&(!a[1])){
if(dojo.lang.isFunction(a[0])){
return a[0];
}else{
if(dojo.lang.isString(a[0])){
return dj_global[a[0]];
}
}
}else{
if((a[0])&&(a[1])){
return dojo.lang.hitch(a[0],a[1]);
}
}
return null;
},makeCalled:function(){
var _8ab=new dojo.Deferred();
_8ab.callback();
return _8ab;
},repr:function(){
var _8ac;
if(this.fired==-1){
_8ac="unfired";
}else{
if(this.fired==0){
_8ac="success";
}else{
_8ac="error";
}
}
return "Deferred("+this.id+", "+_8ac+")";
},toString:dojo.lang.forward("repr"),_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
if(this.fired==-1){
if(this.canceller){
this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
this.errback(new Error(this.repr()));
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_pause:function(){
this.paused++;
},_unpause:function(){
this.paused--;
if((this.paused==0)&&(this.fired>=0)){
this._fire();
}
},_continue:function(res){
this._resback(res);
this._unpause();
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
dojo.raise("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _8b4=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_8b4=dojo.lang.curryArguments(null,_8b4,arguments,2);
}
return this.addCallbacks(_8b4,_8b4);
},addCallback:function(cb,cbfn){
var _8b7=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_8b7=dojo.lang.curryArguments(null,_8b7,arguments,2);
}
return this.addCallbacks(_8b7,null);
},addErrback:function(cb,cbfn){
var _8ba=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_8ba=dojo.lang.curryArguments(null,_8ba,arguments,2);
}
return this.addCallbacks(null,_8ba);
return this.addCallbacks(null,cbfn);
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _8bd=this.chain;
var _8be=this.fired;
var res=this.results[_8be];
var self=this;
var cb=null;
while(_8bd.length>0&&this.paused==0){
var pair=_8bd.shift();
var f=pair[_8be];
if(f==null){
continue;
}
try{
res=f(res);
_8be=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._continue(res);
};
this._pause();
}
}
catch(err){
_8be=1;
res=err;
}
}
this.fired=_8be;
this.results[_8be]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
dojo.provide("dojo.rpc.RpcService");
dojo.rpc.RpcService=function(url){
if(url){
this.connect(url);
}
};
dojo.lang.extend(dojo.rpc.RpcService,{strictArgChecks:true,serviceUrl:"",parseResults:function(obj){
return obj;
},errorCallback:function(_8c7){
return function(type,e){
_8c7.errback(new Error(e.message));
};
},resultCallback:function(_8ca){
var tf=dojo.lang.hitch(this,function(type,obj,e){
if(obj["error"]!=null){
var err=new Error(obj.error["msg"]!=null?obj.error["msg"]:obj.error["msg"]);
err.id=obj.id;
_8ca.errback(err);
}else{
var _8d0=this.parseResults(obj);
_8ca.callback(_8d0);
}
});
return tf;
},generateMethod:function(_8d1,_8d2,url){
return dojo.lang.hitch(this,function(){
var _8d4=new dojo.Deferred();
if((this.strictArgChecks)&&(_8d2!=null)&&(arguments.length!=_8d2.length)){
dojo.raise("Invalid number of parameters for remote method.");
}else{
this.bind(_8d1,arguments,_8d4,url);
}
return _8d4;
});
},processSmd:function(_8d5){
dojo.debug("RpcService: Processing returned SMD.");
if(_8d5.methods){
dojo.lang.forEach(_8d5.methods,function(m){
if(m&&m["name"]){
dojo.debug("RpcService: Creating Method: this.",m.name,"()");
this[m.name]=this.generateMethod(m.name,m.parameters,m["url"]||m["serviceUrl"]||m["serviceURL"]);
if(dojo.lang.isFunction(this[m.name])){
dojo.debug("RpcService: Successfully created",m.name,"()");
}else{
dojo.debug("RpcService: Failed to create",m.name,"()");
}
}
},this);
}
this.serviceUrl=_8d5.serviceUrl||_8d5.serviceURL;
dojo.debug("RpcService: Dojo RpcService is ready for use.");
},connect:function(_8d7){
dojo.debug("RpcService: Attempting to load SMD document from:",_8d7);
dojo.io.bind({url:_8d7,mimetype:"text/json-comment-filtered",load:dojo.lang.hitch(this,function(type,_8d9,e){
return this.processSmd(_8d9);
}),sync:true});
}});
dojo.provide("dojo.rpc.JsonService");
dojo.rpc.JsonService=function(args){
if(args){
if(dojo.lang.isString(args)){
this.connect(args);
}else{
if(args["smdUrl"]){
this.connect(args.smdUrl);
}
if(args["smdStr"]){
this.processSmd(dj_eval("("+args.smdStr+")"));
}
if(args["smdObj"]){
this.processSmd(args.smdObj);
}
if(args["serviceUrl"]){
this.serviceUrl=args.serviceUrl;
}
if(typeof args["strictArgChecks"]!="undefined"){
this.strictArgChecks=args.strictArgChecks;
}
}
}
};
dojo.inherits(dojo.rpc.JsonService,dojo.rpc.RpcService);
dojo.extend(dojo.rpc.JsonService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_8dc,_8dd){
var _8de=new dojo.Deferred();
this.bind(_8dc,_8dd,_8de);
return _8de;
},bind:function(_8df,_8e0,_8e1,url){
dojo.io.bind({url:url||this.serviceUrl,postContent:this.createRequest(_8df,_8e0),method:"POST",contentType:this.contentType,mimetype:"text/json-comment-filtered",load:this.resultCallback(_8e1),error:this.errorCallback(_8e1),preventCache:this.bustCache});
},createRequest:function(_8e3,_8e4){
var req={"params":_8e4,"method":_8e3,"id":++this.lastSubmissionId};
var data=dojo.json.serialize(req);
dojo.debug("JsonService: JSON-RPC Request: "+data);
return data;
},parseResults:function(obj){
if(!obj){
return;
}
if(obj["Result"]!=null){
return obj["Result"];
}else{
if(obj["result"]!=null){
return obj["result"];
}else{
if(obj["ResultSet"]){
return obj["ResultSet"];
}else{
return obj;
}
}
}
}});
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_8e8,_8e9){
_8e8.setMonth(0);
_8e8.setDate(_8e9);
return _8e8;
};
dojo.date.getDayOfYear=function(_8ea){
var _8eb=_8ea.getFullYear();
var _8ec=new Date(_8eb-1,11,31);
return Math.floor((_8ea.getTime()-_8ec.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_8ed,week,_8ef){
if(arguments.length==1){
_8ef=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_8f0,_8f1){
if(arguments.length==1){
_8f1=0;
}
var _8f2=new Date(_8f0.getFullYear(),0,1);
var day=_8f2.getDay();
_8f2.setDate(_8f2.getDate()-day+_8f1-(day>_8f1?7:0));
return Math.floor((_8f0.getTime()-_8f2.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_8f4,week,_8f6){
if(arguments.length==1){
_8f6=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_8f7,_8f8){
if(arguments.length==1){
_8f8=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];
dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];
dojo.date.getDaysInMonth=function(_8f9){
var _8fa=_8f9.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_8fa==1&&dojo.date.isLeapYear(_8f9)){
return 29;
}else{
return days[_8fa];
}
};
dojo.date.isLeapYear=function(_8fc){
var year=_8fc.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_8fe){
var str=_8fe.toString();
var tz="";
var _901;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_901=str.match(pat))){
tz=_901[1];
}else{
str=_8fe.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_901=str.match(pat))){
tz=_901[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_904){
var date=_904.getDate();
if(date%100!=11&&date%10==1){
return "st";
}else{
if(date%100!=12&&date%10==2){
return "nd";
}else{
if(date%100!=13&&date%10==3){
return "rd";
}else{
return "th";
}
}
}
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_906,_907,_908){
var dA=_906;
var dB=_907||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_908||(DATE|TIME);
var d1=new Date((opt&DATE)?dA.getFullYear():now.getFullYear(),(opt&DATE)?dA.getMonth():now.getMonth(),(opt&DATE)?dA.getDate():now.getDate(),(opt&TIME)?dA.getHours():0,(opt&TIME)?dA.getMinutes():0,(opt&TIME)?dA.getSeconds():0);
var d2=new Date((opt&DATE)?dB.getFullYear():now.getFullYear(),(opt&DATE)?dB.getMonth():now.getMonth(),(opt&DATE)?dB.getDate():now.getDate(),(opt&TIME)?dB.getHours():0,(opt&TIME)?dB.getMinutes():0,(opt&TIME)?dB.getSeconds():0);
}
if(d1.valueOf()>d2.valueOf()){
return 1;
}
if(d1.valueOf()<d2.valueOf()){
return -1;
}
return 0;
};
dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6,QUARTER:7,WEEK:8,WEEKDAY:9};
dojo.date.add=function(dt,_910,incr){
if(typeof dt=="number"){
dt=new Date(dt);
}
function fixOvershoot(){
if(sum.getDate()<dt.getDate()){
sum.setDate(0);
}
}
var sum=new Date(dt);
with(dojo.date.dateParts){
switch(_910){
case YEAR:
sum.setFullYear(dt.getFullYear()+incr);
fixOvershoot();
break;
case QUARTER:
incr*=3;
case MONTH:
sum.setMonth(dt.getMonth()+incr);
fixOvershoot();
break;
case WEEK:
incr*=7;
case DAY:
sum.setDate(dt.getDate()+incr);
break;
case WEEKDAY:
var dat=dt.getDate();
var _914=0;
var days=0;
var strt=0;
var trgt=0;
var adj=0;
var mod=incr%5;
if(mod==0){
days=(incr>0)?5:-5;
_914=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_914=parseInt(incr/5);
}
strt=dt.getDay();
if(strt==6&&incr>0){
adj=1;
}else{
if(strt==0&&incr<0){
adj=-1;
}
}
trgt=(strt+days);
if(trgt==0||trgt==6){
adj=(incr>0)?2:-2;
}
sum.setDate(dat+(7*_914)+days+adj);
break;
case HOUR:
sum.setHours(sum.getHours()+incr);
break;
case MINUTE:
sum.setMinutes(sum.getMinutes()+incr);
break;
case SECOND:
sum.setSeconds(sum.getSeconds()+incr);
break;
case MILLISECOND:
sum.setMilliseconds(sum.getMilliseconds()+incr);
break;
default:
break;
}
}
return sum;
};
dojo.date.diff=function(dtA,dtB,_91c){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _91d=dtB.getFullYear()-dtA.getFullYear();
var _91e=(dtB.getMonth()-dtA.getMonth())+(_91d*12);
var _91f=dtB.getTime()-dtA.getTime();
var _920=_91f/1000;
var _921=_920/60;
var _922=_921/60;
var _923=_922/24;
var _924=_923/7;
var _925=0;
with(dojo.date.dateParts){
switch(_91c){
case YEAR:
_925=_91d;
break;
case QUARTER:
var mA=dtA.getMonth();
var mB=dtB.getMonth();
var qA=Math.floor(mA/3)+1;
var qB=Math.floor(mB/3)+1;
qB+=(_91d*4);
_925=qB-qA;
break;
case MONTH:
_925=_91e;
break;
case WEEK:
_925=parseInt(_924);
break;
case DAY:
_925=_923;
break;
case WEEKDAY:
var days=Math.round(_923);
var _92b=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_92b*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_92b=parseInt(days/7);
mod=days%7;
var _930=new Date(dtA);
_930.setDate(_930.getDate()+(_92b*7));
var _931=_930.getDay();
if(_923>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_931+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_923<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_931+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_92b*2);
}
_925=days;
break;
case HOUR:
_925=_922;
break;
case MINUTE:
_925=_921;
break;
case SECOND:
_925=_920;
break;
case MILLISECOND:
_925=_91f;
break;
default:
break;
}
}
return Math.round(_925);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_932){
var _933={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};
_932=dojo.hostenv.normalizeLocale(_932);
var _934=_932.split("-")[1];
var dow=_933[_934];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_936){
var _937={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _938={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
_936=dojo.hostenv.normalizeLocale(_936);
var _939=_936.split("-")[1];
var _93a=_937[_939];
var end=_938[_939];
if(typeof _93a=="undefined"){
_93a=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_93a,end:end};
};
dojo.date.isWeekend=function(_93c,_93d){
var _93e=dojo.date.getWeekend(_93d);
var day=(_93c||new Date()).getDay();
if(_93e.end<_93e.start){
_93e.end+=7;
if(day<_93e.start){
day+=7;
}
}
return day>=_93e.start&&day<=_93e.end;
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_940,_941){
if(typeof _941=="string"){
dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");
return dojo.date.strftime(_940,_941);
}
function formatPattern(_942,_943){
return _943.replace(/([a-z])\1*/ig,function(_944){
var s;
var c=_944.charAt(0);
var l=_944.length;
var pad;
var _949=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_942.getFullYear()<0?1:0];
break;
case "y":
s=_942.getFullYear();
switch(l){
case 1:
break;
case 2:
s=String(s).substr(-2);
break;
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_942.getMonth()+1)/3);
switch(l){
case 1:
case 2:
pad=true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m=_942.getMonth();
var _94c;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_94c=_949[l-3];
break;
}
if(_94c){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_94c].join("-");
s=info[prop][m];
}
break;
case "w":
var _94f=0;
s=dojo.date.getWeekOfYear(_942,_94f);
pad=true;
break;
case "d":
s=_942.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_942);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_942.getDay();
var _94c;
switch(l){
case 1:
case 2:
if(c=="e"){
var _951=dojo.date.getFirstDayOfWeek(_941.locale);
d=(d-_951+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_94c=_949[l-3];
break;
}
if(_94c){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_94c].join("-");
s=info[prop][d];
}
break;
case "a":
var _952=(_942.getHours()<12)?"am":"pm";
s=info[_952];
break;
case "h":
case "H":
case "K":
case "k":
var h=_942.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_942.getMinutes();
pad=true;
break;
case "s":
s=_942.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_942.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_942);
if(s){
break;
}
l=4;
case "Z":
var _954=_942.getTimezoneOffset();
var tz=[(_954<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_954)/60),2),dojo.string.pad(Math.abs(_954)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
case "Y":
case "u":
case "W":
case "F":
case "g":
case "A":
dojo.debug(_944+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_943);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_941=_941||{};
var _956=dojo.hostenv.normalizeLocale(_941.locale);
var _957=_941.formatLength||"full";
var info=dojo.date._getGregorianBundle(_956);
var str=[];
var _959=dojo.lang.curry(this,formatPattern,_940);
if(_941.selector!="timeOnly"){
var _95a=_941.datePattern||info["dateFormat-"+_957];
if(_95a){
str.push(_processPattern(_95a,_959));
}
}
if(_941.selector!="dateOnly"){
var _95b=_941.timePattern||info["timeFormat-"+_957];
if(_95b){
str.push(_processPattern(_95b,_959));
}
}
var _95c=str.join(" ");
return _95c;
};
dojo.date.parse=function(_95d,_95e){
_95e=_95e||{};
var _95f=dojo.hostenv.normalizeLocale(_95e.locale);
var info=dojo.date._getGregorianBundle(_95f);
var _961=_95e.formatLength||"full";
if(!_95e.selector){
_95e.selector="dateOnly";
}
var _962=_95e.datePattern||info["dateFormat-"+_961];
var _963=_95e.timePattern||info["timeFormat-"+_961];
var _964;
if(_95e.selector=="dateOnly"){
_964=_962;
}else{
if(_95e.selector=="timeOnly"){
_964=_963;
}else{
if(_95e.selector=="dateTime"){
_964=_962+" "+_963;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_95e.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_964=_962;
}
}
}
var _966=[];
var _967=_processPattern(_964,dojo.lang.curry(this,_buildDateTimeRE,_966,info,_95e));
var _968=new RegExp("^"+_967+"$");
var _969=_968.exec(_95d);
if(!_969){
return null;
}
var _96a=["abbr","wide","narrow"];
var _96b=new Date(1972,0);
var _96c={};
for(var i=1;i<_969.length;i++){
var grp=_966[i-1];
var l=grp.length;
var v=_969[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_96b.setFullYear(v);
_96c.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _972=year.substring(0,2)*100;
var _973=Number(year.substring(2,4));
var _974=Math.min(_973+20,99);
var num=(v<_974)?_972+v:_972-100+v;
_96b.setFullYear(num);
_96c.year=num;
}else{
if(_95e.strict){
return null;
}
_96b.setFullYear(v);
_96c.year=v;
}
}
break;
case "M":
if(l>2){
if(!_95e.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _976=info["months-format-"+_96a[l-3]].concat();
for(var j=0;j<_976.length;j++){
if(!_95e.strict){
_976[j]=_976[j].toLowerCase();
}
if(v==_976[j]){
_96b.setMonth(j);
_96c.month=j;
break;
}
}
if(j==_976.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_96b.setMonth(v-1);
_96c.month=v-1;
}
break;
case "E":
case "e":
if(!_95e.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_96a[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_95e.strict){
days[j]=days[j].toLowerCase();
}
if(v==days[j]){
break;
}
}
if(j==days.length){
dojo.debug("dojo.date.parse: Could not parse weekday name: '"+v+"'.");
return null;
}
break;
case "d":
_96b.setDate(v);
_96c.date=v;
break;
case "a":
var am=_95e.am||info.am;
var pm=_95e.pm||info.pm;
if(!_95e.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_95e.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _97b=_96b.getHours();
if(v==pm&&_97b<12){
_96b.setHours(_97b+12);
}else{
if(v==am&&_97b==12){
_96b.setHours(0);
}
}
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
dojo.debug("dojo.date.parse: Illegal hours value");
return null;
}
_96b.setHours(v);
break;
case "m":
_96b.setMinutes(v);
break;
case "s":
_96b.setSeconds(v);
break;
case "S":
_96b.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_96c.year&&_96b.getFullYear()!=_96c.year){
dojo.debug("Parsed year: '"+_96b.getFullYear()+"' did not match input year: '"+_96c.year+"'.");
return null;
}
if(_96c.month&&_96b.getMonth()!=_96c.month){
dojo.debug("Parsed month: '"+_96b.getMonth()+"' did not match input month: '"+_96c.month+"'.");
return null;
}
if(_96c.date&&_96b.getDate()!=_96c.date){
dojo.debug("Parsed day of month: '"+_96b.getDate()+"' did not match input day of month: '"+_96c.date+"'.");
return null;
}
return _96b;
};
function _processPattern(_97c,_97d,_97e,_97f){
var _980=function(x){
return x;
};
_97d=_97d||_980;
_97e=_97e||_980;
_97f=_97f||_980;
var _982=_97c.match(/(''|[^'])+/g);
var _983=false;
for(var i=0;i<_982.length;i++){
if(!_982[i]){
_982[i]="";
}else{
_982[i]=(_983?_97e:_97d)(_982[i]);
_983=!_983;
}
}
return _97f(_982.join(""));
}
function _buildDateTimeRE(_985,info,_987,_988){
return _988.replace(/([a-z])\1*/ig,function(_989){
var s;
var c=_989.charAt(0);
var l=_989.length;
switch(c){
case "y":
s="\\d"+((l==2)?"{2,4}":"+");
break;
case "M":
s=(l>2)?"\\S+":"\\d{1,2}";
break;
case "d":
s="\\d{1,2}";
break;
case "E":
s="\\S+";
break;
case "h":
case "H":
case "K":
case "k":
s="\\d{1,2}";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{1,3}";
break;
case "a":
var am=_987.am||info.am||"AM";
var pm=_987.pm||info.pm||"PM";
if(_987.strict){
s=am+"|"+pm;
}else{
s=am;
s+=(am!=am.toLowerCase())?"|"+am.toLowerCase():"";
s+="|";
s+=(pm!=pm.toLowerCase())?pm+"|"+pm.toLowerCase():pm;
}
break;
default:
dojo.unimplemented("parse of date format, pattern="+_988);
}
if(_985){
_985.push(_989);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_98f,_990,_991){
var _992=null;
function _(s,n){
return dojo.string.pad(s,n||2,_992||"0");
}
var info=dojo.date._getGregorianBundle(_991);
function $(_996){
switch(_996){
case "a":
return dojo.date.getDayShortName(_98f,_991);
case "A":
return dojo.date.getDayName(_98f,_991);
case "b":
case "h":
return dojo.date.getMonthShortName(_98f,_991);
case "B":
return dojo.date.getMonthName(_98f,_991);
case "c":
return dojo.date.format(_98f,{locale:_991});
case "C":
return _(Math.floor(_98f.getFullYear()/100));
case "d":
return _(_98f.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_992==null){
_992=" ";
}
return _(_98f.getDate());
case "f":
if(_992==null){
_992=" ";
}
return _(_98f.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_98f.getHours());
case "I":
return _(_98f.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_98f),3);
case "k":
if(_992==null){
_992=" ";
}
return _(_98f.getHours());
case "l":
if(_992==null){
_992=" ";
}
return _(_98f.getHours()%12||12);
case "m":
return _(_98f.getMonth()+1);
case "M":
return _(_98f.getMinutes());
case "n":
return "\n";
case "p":
return info[_98f.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_98f.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_98f.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_98f));
case "V":
return _(dojo.date.getIsoWeekOfYear(_98f));
case "W":
return _(dojo.date.getWeekOfYear(_98f,1));
case "w":
return String(_98f.getDay());
case "x":
return dojo.date.format(_98f,{selector:"dateOnly",locale:_991});
case "X":
return dojo.date.format(_98f,{selector:"timeOnly",locale:_991});
case "y":
return _(_98f.getFullYear()%100);
case "Y":
return String(_98f.getFullYear());
case "z":
var _997=_98f.getTimezoneOffset();
return (_997>0?"-":"+")+_(Math.floor(Math.abs(_997)/60))+":"+_(Math.abs(_997)%60);
case "Z":
return dojo.date.getTimezoneName(_98f);
case "%":
return "%";
}
}
var _998="";
var i=0;
var _99a=0;
var _99b=null;
while((_99a=_990.indexOf("%",i))!=-1){
_998+=_990.substring(i,_99a++);
switch(_990.charAt(_99a++)){
case "_":
_992=" ";
break;
case "-":
_992="";
break;
case "0":
_992="0";
break;
case "^":
_99b="upper";
break;
case "*":
_99b="lower";
break;
case "#":
_99b="swap";
break;
default:
_992=null;
_99a--;
break;
}
var _99c=$(_990.charAt(_99a++));
switch(_99b){
case "upper":
_99c=_99c.toUpperCase();
break;
case "lower":
_99c=_99c.toLowerCase();
break;
case "swap":
var _99d=_99c.toLowerCase();
var _99e="";
var j=0;
var ch="";
while(j<_99c.length){
ch=_99c.charAt(j);
_99e+=(ch==_99d.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_99c=_99e;
break;
default:
break;
}
_99b=null;
_998+=_99c;
i=_99a;
}
_998+=_990.substring(i);
return _998;
};
(function(){
var _9a1=[];
dojo.date.addCustomFormats=function(_9a2,_9a3){
_9a1.push({pkg:_9a2,name:_9a3});
};
dojo.date._getGregorianBundle=function(_9a4){
var _9a5={};
dojo.lang.forEach(_9a1,function(desc){
var _9a7=dojo.i18n.getLocalization(desc.pkg,desc.name,_9a4);
_9a5=dojo.lang.mixin(_9a5,_9a7);
},this);
return _9a5;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_9ab){
var _9ac;
var _9ad=dojo.date._getGregorianBundle(_9ab);
var _9ae=[item,use,type];
if(use=="standAlone"){
_9ac=_9ad[_9ae.join("-")];
}
_9ae[1]="format";
return (_9ac||_9ad[_9ae.join("-")]).concat();
};
dojo.date.getDayName=function(_9af,_9b0){
return dojo.date.getNames("days","wide","format",_9b0)[_9af.getDay()];
};
dojo.date.getDayShortName=function(_9b1,_9b2){
return dojo.date.getNames("days","abbr","format",_9b2)[_9b1.getDay()];
};
dojo.date.getMonthName=function(_9b3,_9b4){
return dojo.date.getNames("months","wide","format",_9b4)[_9b3.getMonth()];
};
dojo.date.getMonthShortName=function(_9b5,_9b6){
return dojo.date.getNames("months","abbr","format",_9b6)[_9b5.getMonth()];
};
dojo.date.toRelativeString=function(_9b7){
var now=new Date();
var diff=(now-_9b7)/1000;
var end=" ago";
var _9bb=false;
if(diff<0){
_9bb=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}
if(diff<60*60){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}
if(diff<60*60*24){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}
if(diff<60*60*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _9bb?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_9b7);
};
dojo.date.toSql=function(_9bc,_9bd){
return dojo.date.strftime(_9bc,"%F"+!_9bd?" %T":"");
};
dojo.date.fromSql=function(_9be){
var _9bf=_9be.split(/[\- :]/g);
while(_9bf.length<6){
_9bf.push(0);
}
return new Date(_9bf[0],(parseInt(_9bf[1],10)-1),_9bf[2],_9bf[3],_9bf[4],_9bf[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_9c0,_9c1){
var _9c2=(_9c1.indexOf("T")==-1)?_9c1.split(" "):_9c1.split("T");
_9c0=dojo.date.setIso8601Date(_9c0,_9c2[0]);
if(_9c2.length==2){
_9c0=dojo.date.setIso8601Time(_9c0,_9c2[1]);
}
return _9c0;
};
dojo.date.fromIso8601=function(_9c3){
return dojo.date.setIso8601(new Date(0,0),_9c3);
};
dojo.date.setIso8601Date=function(_9c4,_9c5){
var _9c6="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_9c5.match(new RegExp(_9c6));
if(!d){
dojo.debug("invalid date string: "+_9c5);
return null;
}
var year=d[1];
var _9c9=d[4];
var date=d[6];
var _9cb=d[8];
var week=d[10];
var _9cd=d[12]?d[12]:1;
_9c4.setFullYear(year);
if(_9cb){
_9c4.setMonth(0);
_9c4.setDate(Number(_9cb));
}else{
if(week){
_9c4.setMonth(0);
_9c4.setDate(1);
var gd=_9c4.getDay();
var day=gd?gd:7;
var _9d0=Number(_9cd)+(7*Number(week));
if(day<=4){
_9c4.setDate(_9d0+1-day);
}else{
_9c4.setDate(_9d0+8-day);
}
}else{
if(_9c9){
_9c4.setDate(1);
_9c4.setMonth(_9c9-1);
}
if(date){
_9c4.setDate(date);
}
}
}
return _9c4;
};
dojo.date.fromIso8601Date=function(_9d1){
return dojo.date.setIso8601Date(new Date(0,0),_9d1);
};
dojo.date.setIso8601Time=function(_9d2,_9d3){
var _9d4="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_9d3.match(new RegExp(_9d4));
var _9d6=0;
if(d){
if(d[0]!="Z"){
_9d6=(Number(d[3])*60)+Number(d[5]);
_9d6*=((d[2]=="-")?1:-1);
}
_9d6-=_9d2.getTimezoneOffset();
_9d3=_9d3.substr(0,_9d3.length-d[0].length);
}
var _9d7="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_9d3.match(new RegExp(_9d7));
if(!d){
dojo.debug("invalid time string: "+_9d3);
return null;
}
var _9d8=d[1];
var mins=Number((d[3])?d[3]:0);
var secs=(d[5])?d[5]:0;
var ms=d[7]?(Number("0."+d[7])*1000):0;
_9d2.setHours(_9d8);
_9d2.setMinutes(mins);
_9d2.setSeconds(secs);
_9d2.setMilliseconds(ms);
if(_9d6!==0){
_9d2.setTime(_9d2.getTime()+_9d6*60000);
}
return _9d2;
};
dojo.date.fromIso8601Time=function(_9dc){
return dojo.date.setIso8601Time(new Date(0,0),_9dc);
};
dojo.date.toRfc3339=function(_9dd,_9de){
if(!_9dd){
_9dd=new Date();
}
var _=dojo.string.pad;
var _9e0=[];
if(_9de!="timeOnly"){
var date=[_(_9dd.getFullYear(),4),_(_9dd.getMonth()+1,2),_(_9dd.getDate(),2)].join("-");
_9e0.push(date);
}
if(_9de!="dateOnly"){
var time=[_(_9dd.getHours(),2),_(_9dd.getMinutes(),2),_(_9dd.getSeconds(),2)].join(":");
var _9e3=_9dd.getTimezoneOffset();
time+=(_9e3>0?"-":"+")+_(Math.floor(Math.abs(_9e3)/60),2)+":"+_(Math.abs(_9e3)%60,2);
_9e0.push(time);
}
return _9e0.join("T");
};
dojo.date.fromRfc3339=function(_9e4){
if(_9e4.indexOf("Tany")!=-1){
_9e4=_9e4.replace("Tany","");
}
var _9e5=new Date();
return dojo.date.setIso8601(_9e5,_9e4);
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _9e6=dojo.global();
var _9e7=dojo.doc();
try{
if(_9e6["getSelection"]){
if(dojo.render.html.safari){
_9e6.getSelection().collapse();
}else{
_9e6.getSelection().removeAllRanges();
}
}else{
if(_9e7.selection){
if(_9e7.selection.empty){
_9e7.selection.empty();
}else{
if(_9e7.selection.clear){
_9e7.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_9e8){
_9e8=dojo.byId(_9e8)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_9e8.style.MozUserSelect="none";
}else{
if(h.safari){
_9e8.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_9e8.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_9ea){
_9ea=dojo.byId(_9ea)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_9ea.style.MozUserSelect="";
}else{
if(h.safari){
_9ea.style.KhtmlUserSelect="";
}else{
if(h.ie){
_9ea.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_9ec){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_9ed){
var _9ee=dojo.global();
var _9ef=dojo.doc();
_9ed=dojo.byId(_9ed);
if(_9ef["selection"]&&dojo.body()["createTextRange"]){
var _9f0=_9ed.createTextRange();
_9f0.moveStart("character",0);
_9f0.moveEnd("character",_9ed.value.length);
_9f0.select();
}else{
if(_9ee["getSelection"]){
var _9f1=_9ee.getSelection();
_9ed.setSelectionRange(0,_9ed.value.length);
}
}
_9ed.focus();
};
dojo.html.isSelectionCollapsed=function(){
dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);
return dojo.html.selection.isCollapsed();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _9f2=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _9f4=oSel.getRangeAt(0);
if(_9f4.startContainer==_9f4.endContainer&&(_9f4.endOffset-_9f4.startOffset)==1&&_9f4.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_9f2=dojo.html.selectionType.CONTROL;
}
}
return _9f2;
}
},isCollapsed:function(){
var _9f5=dojo.global();
var _9f6=dojo.doc();
if(_9f6["selection"]){
return _9f6.selection.createRange().text=="";
}else{
if(_9f5["getSelection"]){
var _9f7=_9f5.getSelection();
if(dojo.lang.isString(_9f7)){
return _9f7=="";
}else{
return _9f7.isCollapsed||_9f7.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _9f8=dojo.doc().selection.createRange();
if(_9f8&&_9f8.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _9f9=dojo.global().getSelection();
return _9f9.anchorNode.childNodes[_9f9.anchorOffset];
}
}
},getParentElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
var p=dojo.html.selection.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc()["selection"]){
return dojo.doc().selection.createRange().parentElement();
}else{
var _9fb=dojo.global().getSelection();
if(_9fb){
var node=_9fb.anchorNode;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.parentNode;
}
return node;
}
}
}
},getSelectedText:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().text;
}else{
var _9fd=dojo.global().getSelection();
if(_9fd){
return _9fd.toString();
}
}
},getSelectedHtml:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().htmlText;
}else{
var _9fe=dojo.global().getSelection();
if(_9fe&&_9fe.rangeCount){
var frag=_9fe.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_a01){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_a02){
var node=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();
while(node){
if(dojo.html.selection.isTag(node,arguments).length>0){
return node;
}
node=node.parentNode;
}
return null;
},isTag:function(node,tags){
if(node&&node.tagName){
for(var i=0;i<tags.length;i++){
if(node.tagName.toLowerCase()==String(tags[i]).toLowerCase()){
return String(tags[i]).toLowerCase();
}
}
}
return "";
},selectElement:function(_a07){
var _a08=dojo.global();
var _a09=dojo.doc();
_a07=dojo.byId(_a07);
if(_a09.selection&&dojo.body().createTextRange){
try{
var _a0a=dojo.body().createControlRange();
_a0a.addElement(_a07);
_a0a.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_a07);
}
}else{
if(_a08["getSelection"]){
var _a0b=_a08.getSelection();
if(_a0b["removeAllRanges"]){
var _a0a=_a09.createRange();
_a0a.selectNode(_a07);
_a0b.removeAllRanges();
_a0b.addRange(_a0a);
}
}
}
},selectElementChildren:function(_a0c){
var _a0d=dojo.global();
var _a0e=dojo.doc();
_a0c=dojo.byId(_a0c);
if(_a0e.selection&&dojo.body().createTextRange){
var _a0f=dojo.body().createTextRange();
_a0f.moveToElementText(_a0c);
_a0f.select();
}else{
if(_a0d["getSelection"]){
var _a10=_a0d.getSelection();
if(_a10["setBaseAndExtent"]){
_a10.setBaseAndExtent(_a0c,0,_a0c,_a0c.innerText.length-1);
}else{
if(_a10["selectAllChildren"]){
_a10.selectAllChildren(_a0c);
}
}
}
}
},getBookmark:function(){
var _a11;
var _a12=dojo.doc();
if(_a12["selection"]){
var _a13=_a12.selection.createRange();
_a11=_a13.getBookmark();
}else{
var _a14;
try{
_a14=dojo.global().getSelection();
}
catch(e){
}
if(_a14){
var _a13=_a14.getRangeAt(0);
_a11=_a13.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _a11;
},moveToBookmark:function(_a15){
var _a16=dojo.doc();
if(_a16["selection"]){
var _a17=_a16.selection.createRange();
_a17.moveToBookmark(_a15);
_a17.select();
}else{
var _a18;
try{
_a18=dojo.global().getSelection();
}
catch(e){
}
if(_a18&&_a18["removeAllRanges"]){
_a18.removeAllRanges();
_a18.addRange(_a15);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_a19){
if(dojo.global()["getSelection"]){
var _a1a=dojo.global().getSelection();
if(_a1a.removeAllRanges){
if(_a19){
_a1a.collapseToStart();
}else{
_a1a.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_a19);
}
}else{
if(dojo.doc().selection){
var _a1b=dojo.doc().selection.createRange();
_a1b.collapse(_a19);
_a1b.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _a1c=dojo.doc().selection;
if(_a1c.type.toUpperCase()!="NONE"){
_a1c.clear();
}
return _a1c;
}else{
var _a1c=dojo.global().getSelection();
for(var i=0;i<_a1c.rangeCount;i++){
_a1c.getRangeAt(i).deleteContents();
}
return _a1c;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_a1e){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_a1e))||dojo.html.iframeContentDocument(_a1e).__parent__||(_a1e.name&&document.frames[_a1e.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_a20){
var doc=_a20.contentDocument||((_a20.contentWindow)&&(_a20.contentWindow.document))||((_a20.name)&&(document.frames[_a20.name])&&(document.frames[_a20.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.body().appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentNode){
var _a24=dojo.html.getMarginBox(this.domNode);
if(_a24.width==0||_a24.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_a24.width+"px";
this.iframe.style.height=_a24.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _a26=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_a26.width+"px";
height=_a26.height+"px";
left=_a26.left+"px";
top=_a26.top+"px";
}
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(this.iframe){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_a2b,_a2c,_a2d,_a2e){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _a2f=false,node,_a31;
if(typeof x=="object"){
node=x;
_a31=_a2c;
_a2c=_a2b;
_a2b=y;
_a2f=true;
}
this.parent=_a2b;
dojo.body().appendChild(this.domNode);
_a2c=_a2c||_a2b["domNode"]||[];
var _a32=null;
this.isTopLevel=true;
while(_a2b){
if(_a2b!==this&&(_a2b.setOpenedSubpopup!=undefined&&_a2b.applyPopupBasicStyle!=undefined)){
_a32=_a2b;
this.isTopLevel=false;
_a32.setOpenedSubpopup(this);
break;
}
_a2b=_a2b.parent;
}
this.parentPopup=_a32;
this.popupIndex=_a32?_a32.popupIndex+1:1;
if(this.isTopLevel){
var _a33=dojo.html.isNode(_a2c)?_a2c:null;
dojo.widget.PopupManager.opened(this,_a33);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_a2c instanceof Array){
_a2c={left:_a2c[0],top:_a2c[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_a2f){
this.move(node,_a2e,_a31);
}else{
this.move(x,y,_a2e,_a2d);
}
this.domNode.style.display="none";
this.explodeSrc=_a2c;
this.show();
this.isShowingNow=true;
},move:function(x,y,_a36,_a37){
var _a38=(typeof x=="object");
if(_a38){
var _a39=_a36;
var node=x;
_a36=y;
if(!_a39){
_a39={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_a36,this.aroundBox,_a39);
}else{
if(!_a37){
_a37="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_a36,true,_a37);
}
},close:function(_a3b){
if(_a3b){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_a3b);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
if(this.parent){
setTimeout(dojo.lang.hitch(this,function(){
try{
if(this.parent["focus"]){
this.parent.focus();
}else{
this.parent.domNode.focus();
}
}
catch(e){
dojo.debug("No idea how to focus to parent",e);
}
}),10);
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
try{
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
catch(e){
}
}
this._bookmark=null;
},closeAll:function(_a3c){
if(this.parentPopup){
this.parentPopup.closeAll(_a3c);
}else{
this.close(_a3c);
}
},setOpenedSubpopup:function(_a3d){
this.currentSubpopup=_a3d;
},closeSubpopup:function(_a3e){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_a3e);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();
}
this.processQueue();
},processQueue:function(){
if(!this.queueOnAnimationFinish.length){
return;
}
var func=this.queueOnAnimationFinish.shift();
var args=this.queueOnAnimationFinish.shift();
func.apply(this,args);
},onHide:function(){
dojo.widget.HtmlWidget.prototype.onHide.call(this);
if(this.openedSize){
with(this.domNode.style){
width=this.openedSize.w;
height=this.openedSize.h;
}
}
this.processQueue();
}});
dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{isContainer:true,fillInTemplate:function(){
this.applyPopupBasicStyle();
dojo.widget.PopupContainer.superclass.fillInTemplate.apply(this,arguments);
}});
dojo.widget.PopupManager=new function(){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
this.focusNode=null;
this.registeredWindows=[];
this.registerWin=function(win){
if(!win.__PopupManagerRegistered){
dojo.event.connect(win.document,"onmousedown",this,"onClick");
dojo.event.connect(win,"onscroll",this,"onClick");
dojo.event.connect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_a42){
if(!_a42){
_a42=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_a42);
for(var i=0;i<_a42.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_a42.frames[i].document);
if(win){
this.registerAllWindows(win);
}
}
catch(e){
}
}
};
this.unRegisterWin=function(win){
if(win.__PopupManagerRegistered){
dojo.event.disconnect(win.document,"onmousedown",this,"onClick");
dojo.event.disconnect(win,"onscroll",this,"onClick");
dojo.event.disconnect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=false;
}
};
this.unRegisterAllWindows=function(){
for(var i=0;i<this.registeredWindows.length;++i){
this.unRegisterWin(this.registeredWindows[i]);
}
this.registeredWindows=[];
};
dojo.addOnLoad(this,"registerAllWindows");
dojo.addOnUnload(this,"unRegisterAllWindows");
this.closed=function(menu){
if(this.currentMenu==menu){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
}
};
this.opened=function(menu,_a49){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_a49;
};
this.setFocusedMenu=function(menu){
this.currentFocusMenu=menu;
};
this.onKey=function(e){
if(!e.key){
return;
}
if(!this.currentMenu||!this.currentMenu.isShowingNow){
return;
}
var m=this.currentFocusMenu;
while(m){
if(m.processKey(e)){
e.preventDefault();
e.stopPropagation();
break;
}
m=m.parentPopup||m.parentMenu;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _a4e=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.closeAll(true);
};
};
dojo.provide("dojo.widget.Menu2");
dojo.declare("dojo.widget.MenuBase",null,function(){
this.eventNames={open:""};
},{isContainer:true,isMenu:true,eventNaming:"default",templateCssString:"\n.dojoPopupMenu2 {\n\tposition: absolute;\n\tborder: 1px solid #7298d0;\n\tbackground:#85aeec url(images/soriaMenuBg.gif) repeat-x bottom left !important;\n\tpadding: 1px;\n\tmargin-top: 1px;\n\tmargin-bottom: 1px;\n}\n\n.dojoMenuItem2{\n\twhite-space: nowrap;\n\tfont: menu;\n\tmargin: 0;\n}\n\n.dojoMenuItem2Hover {\n\tbackground-color: #D2E4FD;\n\tcursor:pointer;\n\tcursor:hand;\n}\n\n.dojoMenuItem2Icon {\n\tposition: relative;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n\tpadding-right: 3px;\n}\n\n.dojoMenuItem2Label {\n\tposition: relative;\n\tvertical-align: middle;\n}\n\n/* main label text */\n.dojoMenuItem2Label {\n\tposition: relative;\n\tvertical-align: middle;\n}\n\n.dojoMenuItem2Accel {\n\tposition: relative;\n\tvertical-align: middle;\n\tpadding-left: 3px;\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Label,\n.dojoMenuItem2Disabled .dojoMenuItem2Accel {\n\tcolor: #607a9e;\n}\n\n.dojoMenuItem2Submenu {\n\tposition: relative;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: url(images/submenu_off.gif);\n\twidth: 5px;\n\theight: 9px;\n\tpadding-left: 3px;\n}\n.dojoMenuItem2Hover .dojoMenuItem2Submenu {\n\tbackground-image: url(images/submenu_on.gif);\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Submenu {\n\tbackground-image: url(images/submenu_disabled.gif);\n}\n\n.dojoMenuSeparator2 {\n\tfont-size: 1px;\n\tmargin: 0;\n}\n\n.dojoMenuSeparator2Top {\n\theight: 50%;\n\tborder-bottom: 1px solid #7a98c4;\n\tmargin: 0px 2px;\n\tfont-size: 1px;\n}\n\n.dojoMenuSeparator2Bottom {\n\theight: 50%;\n\tborder-top: 1px solid #c9deff;\n\tmargin: 0px 2px;\n\tfont-size: 1px;\n}\n\n.dojoMenuBar2 {\n\tbackground:#85aeec url(images/soriaBarBg.gif) repeat-x top left;\n\t/*border-bottom:1px solid #6b9fec;*/\n\tpadding: 1px;\n}\n\n.dojoMenuBar2 .dojoMenuItem2 {\n\twhite-space: nowrap;\n\tfont: menu;\n\tmargin: 0;\n\tposition: relative;\n\tvertical-align: middle;\n\tz-index: 1;\n\tpadding: 3px 8px;\n\tdisplay: inline;/* needed in khtml to display correctly */\n\tdisplay: -moz-inline-box;/* needed in firefox */\n\tcursor:pointer;\n\tcursor:hand;\n}\n\n.dojoMenuBar2 .dojoMenuItem2Hover {\n\tbackground-color:#d2e4fd;\n}\n\n.dojoMenuBar2 .dojoMenuItem2Disabled span {\n\tcolor: #4f6582;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Menu2.css"),submenuDelay:500,initialize:function(args,frag){
if(this.eventNaming=="default"){
for(var _a52 in this.eventNames){
this.eventNames[_a52]=this.widgetId+"/"+_a52;
}
}
},_moveToNext:function(evt){
this._highlightOption(1);
return true;
},_moveToPrevious:function(evt){
this._highlightOption(-1);
return true;
},_moveToParentMenu:function(evt){
if(this._highlighted_option&&this.parentMenu){
if(evt._menu2UpKeyProcessed){
return true;
}else{
this._highlighted_option.onUnhover();
this.closeSubmenu();
evt._menu2UpKeyProcessed=true;
}
}
return false;
},_moveToChildMenu:function(evt){
if(this._highlighted_option&&this._highlighted_option.submenuId){
this._highlighted_option._onClick(true);
return true;
}
return false;
},_selectCurrentItem:function(evt){
if(this._highlighted_option){
this._highlighted_option._onClick();
return true;
}
return false;
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToPrevious(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToParentMenu(evt);
break;
case " ":
case evt.KEY_ENTER:
if(rval=this._selectCurrentItem(evt)){
break;
}
case evt.KEY_ESCAPE:
case evt.KEY_TAB:
this.close(true);
rval=true;
break;
}
return rval;
},_findValidItem:function(dir,_a5b){
if(_a5b){
_a5b=dir>0?_a5b.getNextSibling():_a5b.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_a5b){
_a5b=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_a5b.onHover&&_a5b.isShowing()){
return _a5b;
}
_a5b=dir>0?_a5b.getNextSibling():_a5b.getPreviousSibling();
}
},_highlightOption:function(dir){
var item;
if((!this._highlighted_option)){
item=this._findValidItem(dir);
}else{
item=this._findValidItem(dir,this._highlighted_option);
}
if(item){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
item.onHover();
dojo.html.scrollIntoView(item.domNode);
try{
var node=dojo.html.getElementsByClass("dojoMenuItem2Label",item.domNode)[0];
node.focus();
}
catch(e){
}
}
},onItemClick:function(item){
},closeSubmenu:function(_a61){
if(this.currentSubmenu==null){
return;
}
this.currentSubmenu.close(_a61);
this.currentSubmenu=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_a61);
this.currentSubmenuTrigger=null;
}});
dojo.widget.defineWidget("dojo.widget.PopupMenu2",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase,dojo.widget.MenuBase],function(){
this.targetNodeIds=[];
},{templateString:"<table class=\"dojoPopupMenu2\" border=0 cellspacing=0 cellpadding=0 style=\"display: none; position: absolute;\">"+"<tbody dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",submenuOverlap:5,contextMenuForWindow:false,parentMenu:null,postCreate:function(){
if(this.contextMenuForWindow){
var doc=dojo.body();
this.bindDomNode(doc);
}else{
if(this.targetNodeIds.length>0){
dojo.lang.forEach(this.targetNodeIds,this.bindDomNode,this);
}
}
this._subscribeSubitemsOnOpen();
},_subscribeSubitemsOnOpen:function(){
var _a63=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_a63.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_a63[i],"menuOpen");
}
},getTopOpenEvent:function(){
var menu=this;
while(menu.parentMenu){
menu=menu.parentMenu;
}
return menu.openEvent;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dojo.html.getElementWindow(node);
if(dojo.html.isTag(node,"iframe")=="iframe"){
win=dojo.html.iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
dojo.widget.Menu2.OperaAndKonqFixer.fixNode(node);
dojo.event.kwConnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
if(dojo.render.html.moz&&win.document.designMode.toLowerCase()=="on"){
dojo.event.browser.addListener(node,"contextmenu",dojo.lang.hitch(this,"onOpen"));
}
dojo.widget.PopupManager.registerWin(win);
},unBindDomNode:function(_a68){
var node=dojo.byId(_a68);
dojo.event.kwDisconnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(node);
},_openAsSubmenu:function(_a6a,_a6b,_a6c){
if(this.isShowingNow){
return;
}
this.parentMenu=_a6a;
this.open(_a6b,_a6a,_a6b,_a6c);
},close:function(_a6d){
if(this.animationInProgress){
dojo.widget.PopupContainerBase.prototype.close.call(this,_a6d);
return;
}
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
dojo.widget.PopupContainerBase.prototype.close.call(this,_a6d);
this.parentMenu=null;
},closeAll:function(_a6e){
if(this.parentMenu){
this.parentMenu.closeAll(_a6e);
}else{
this.close(_a6e);
}
},_openSubmenu:function(_a6f,_a70){
_a6f._openAsSubmenu(this,_a70.arrow,{"TR":"TL","TL":"TR"});
this.currentSubmenu=_a6f;
this.currentSubmenuTrigger=_a70;
this.currentSubmenuTrigger.is_open=true;
},focus:function(){
if(this.currentSubmenuTrigger){
if(this.currentSubmenuTrigger.caption){
try{
this.currentSubmenuTrigger.caption.focus();
}
catch(e){
}
}else{
try{
this.currentSubmenuTrigger.domNode.focus();
}
catch(e){
}
}
}
},onOpen:function(e){
this.openEvent=e;
if(e["target"]){
this.openedForWindow=dojo.html.getElementWindow(e.target);
}else{
this.openedForWindow=null;
}
var x=e.pageX,y=e.pageY;
var win=dojo.html.getElementWindow(e.target);
var _a75=win._frameElement||win.frameElement;
if(_a75){
var cood=dojo.html.abs(_a75,true);
x+=cood.x-dojo.withGlobal(win,dojo.html.getScroll).left;
y+=cood.y-dojo.withGlobal(win,dojo.html.getScroll).top;
}
this.open(x,y,null,[x,y]);
dojo.event.browser.stopEvent(e);
}});
dojo.widget.defineWidget("dojo.widget.MenuItem2",dojo.widget.HtmlWidget,function(){
this.eventNames={engage:""};
},{templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td><div class=\"${this.iconClass}\" style=\"${this.iconStyle}\"></div></td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\" dojoAttachPoint=\"caption\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"<td><div class=\"dojoMenuItem2Submenu\" style=\"display:${this.arrowDisplay};\" dojoAttachPoint=\"arrow\"></div></td>"+"</tr>",is_hovering:false,hover_timer:null,is_open:false,topPosition:0,caption:"Untitled",accelKey:"",iconSrc:"",disabledClass:"dojoMenuItem2Disabled",iconClass:"dojoMenuItem2Icon",submenuId:"",eventNaming:"default",highlightClass:"dojoMenuItem2Hover",postMixInProperties:function(){
this.iconStyle="";
if(this.iconSrc){
if((this.iconSrc.toLowerCase().substring(this.iconSrc.length-4)==".png")&&(dojo.render.html.ie55||dojo.render.html.ie60)){
this.iconStyle="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.iconSrc+"', sizingMethod='image')";
}else{
this.iconStyle="background-image: url("+this.iconSrc+")";
}
}
this.arrowDisplay=this.submenuId?"block":"none";
dojo.widget.MenuItem2.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.domNode);
if(this.disabled){
this.setDisabled(true);
}
if(this.eventNaming=="default"){
for(var _a77 in this.eventNames){
this.eventNames[_a77]=this.widgetId+"/"+_a77;
}
}
},onHover:function(){
this.onUnhover();
if(this.is_hovering){
return;
}
if(this.is_open){
return;
}
if(this.parent._highlighted_option){
this.parent._highlighted_option.onUnhover();
}
this.parent.closeSubmenu();
this.parent._highlighted_option=this;
dojo.widget.PopupManager.setFocusedMenu(this.parent);
this._highlightItem();
if(this.is_hovering){
this._stopSubmenuTimer();
}
this.is_hovering=true;
this._startSubmenuTimer();
},onUnhover:function(){
if(!this.is_open){
this._unhighlightItem();
}
this.is_hovering=false;
this.parent._highlighted_option=null;
if(this.parent.parentMenu){
dojo.widget.PopupManager.setFocusedMenu(this.parent.parentMenu);
}
this._stopSubmenuTimer();
},_onClick:function(_a78){
var _a79=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_a79=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_a79&&_a78){
dojo.widget.getWidgetById(this.submenuId)._highlightOption(1);
}
return;
},onClick:function(){
this.parent.onItemClick(this);
},_highlightItem:function(){
dojo.html.addClass(this.domNode,this.highlightClass);
},_unhighlightItem:function(){
dojo.html.removeClass(this.domNode,this.highlightClass);
},_startSubmenuTimer:function(){
this._stopSubmenuTimer();
if(this.disabled){
return;
}
var self=this;
var _a7b=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_a7b,this.parent.submenuDelay);
},_stopSubmenuTimer:function(){
if(this.hover_timer){
dojo.lang.clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_openSubmenu:function(){
if(this.disabled){
return;
}
this.parent.closeSubmenu();
var _a7c=dojo.widget.getWidgetById(this.submenuId);
if(_a7c){
this.parent._openSubmenu(_a7c,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_a7d){
this.disabled=_a7d;
if(this.disabled){
dojo.html.addClass(this.domNode,this.disabledClass);
}else{
dojo.html.removeClass(this.domNode,this.disabledClass);
}
},enable:function(){
this.setDisabled(false);
},disable:function(){
this.setDisabled(true);
},menuOpen:function(_a7e){
}});
dojo.widget.defineWidget("dojo.widget.MenuSeparator2",dojo.widget.HtmlWidget,{templateString:"<tr class=\"dojoMenuSeparator2\"><td colspan=4>"+"<div class=\"dojoMenuSeparator2Top\"></div>"+"<div class=\"dojoMenuSeparator2Bottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.html.disableSelection(this.domNode);
}});
dojo.widget.defineWidget("dojo.widget.MenuBar2",[dojo.widget.HtmlWidget,dojo.widget.MenuBase],{menuOverlap:2,templateString:"<div class=\"dojoMenuBar2\" dojoAttachPoint=\"containerNode\" tabIndex=\"0\"></div>",close:function(_a7f){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubmenu(_a7f);
},closeAll:function(_a80){
this.close(_a80);
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToParentMenu(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToPrevious(evt);
break;
default:
rval=dojo.widget.MenuBar2.superclass.processKey.apply(this,arguments);
break;
}
return rval;
},postCreate:function(){
dojo.widget.MenuBar2.superclass.postCreate.apply(this,arguments);
this.isShowingNow=true;
},_openSubmenu:function(_a83,_a84){
_a83._openAsSubmenu(this,_a84.domNode,{"BL":"TL","TL":"BL"});
this.currentSubmenu=_a83;
this.currentSubmenuTrigger=_a84;
this.currentSubmenuTrigger.is_open=true;
}});
dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:"<span class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;\">${this.caption}</span>"});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _a85=true;
var _a86=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_a85=false;
_a86=true;
};
}
if(dojo.doc().createEvent){
try{
var e=dojo.doc().createEvent("MouseEvents");
e.initMouseEvent("contextmenu",1,1,dojo.global(),1,0,0,0,0,0,0,0,0,0,null);
dojo.doc().dispatchEvent(e);
}
catch(e){
}
}else{
_a85=false;
}
if(_a86){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_a85){
if(!dojo.lang.isFunction(node.oncontextmenu)){
node.oncontextmenu=function(e){
};
}
if(dojo.render.html.opera){
node._menufixer_opera=function(e){
if(e.ctrlKey){
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onclick",node,"_menufixer_opera");
}else{
node._menufixer_konq=function(e){
if(e.button==2){
e.preventDefault();
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onmousedown",node,"_menufixer_konq");
}
}
};
this.cleanNode=function(node){
if(_a85){
if(node._menufixer_opera){
dojo.event.disconnect(node,"onclick",node,"_menufixer_opera");
delete node._menufixer_opera;
}else{
if(node._menufixer_konq){
dojo.event.disconnect(node,"onmousedown",node,"_menufixer_konq");
delete node._menufixer_konq;
}
}
if(node.oncontextmenu){
delete node.oncontextmenu;
}
}
};
};
dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]});
dojo.provide("dojo.html.*");
dojo.provide("dojo.lfx.shadow");
dojo.lfx.shadow=function(node){
this.shadowPng=dojo.uri.moduleUri("dojo.html","images/shadow");
this.shadowThickness=8;
this.shadowOffset=15;
this.init(node);
};
dojo.extend(dojo.lfx.shadow,{init:function(node){
this.node=node;
this.pieces={};
var x1=-1*this.shadowThickness;
var y0=this.shadowOffset;
var y1=this.shadowOffset+this.shadowThickness;
this._makePiece("tl","top",y0,"left",x1);
this._makePiece("l","top",y1,"left",x1,"scale");
this._makePiece("tr","top",y0,"left",0);
this._makePiece("r","top",y1,"left",0,"scale");
this._makePiece("bl","top",0,"left",x1);
this._makePiece("b","top",0,"left",0,"crop");
this._makePiece("br","top",0,"left",0);
},_makePiece:function(name,_a93,_a94,_a95,_a96,_a97){
var img;
var url=this.shadowPng+name.toUpperCase()+".png";
if(dojo.render.html.ie55||dojo.render.html.ie60){
img=dojo.doc().createElement("div");
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_a97?", sizingMethod='"+_a97+"'":"")+")";
}else{
img=dojo.doc().createElement("img");
img.src=url;
}
img.style.position="absolute";
img.style[_a93]=_a94+"px";
img.style[_a95]=_a96+"px";
img.style.width=this.shadowThickness+"px";
img.style.height=this.shadowThickness+"px";
this.pieces[name]=img;
this.node.appendChild(img);
},size:function(_a9a,_a9b){
var _a9c=_a9b-(this.shadowOffset+this.shadowThickness+1);
if(_a9c<0){
_a9c=0;
}
if(_a9b<1){
_a9b=1;
}
if(_a9a<1){
_a9a=1;
}
with(this.pieces){
l.style.height=_a9c+"px";
r.style.height=_a9c+"px";
b.style.width=(_a9a-1)+"px";
bl.style.top=(_a9b-1)+"px";
b.style.top=(_a9b-1)+"px";
br.style.top=(_a9b-1)+"px";
tr.style.left=(_a9a-1)+"px";
r.style.left=(_a9a-1)+"px";
br.style.left=(_a9a-1)+"px";
}
}});
dojo.provide("dojo.widget.html.layout");
dojo.widget.html.layout=function(_a9d,_a9e,_a9f){
dojo.html.addClass(_a9d,"dojoLayoutContainer");
_a9e=dojo.lang.filter(_a9e,function(_aa0,idx){
_aa0.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_aa0.layoutAlign);
});
if(_a9f&&_a9f!="none"){
var rank=function(_aa3){
switch(_aa3.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_a9f=="left-right")?2:3;
case "top":
case "bottom":
return (_a9f=="left-right")?3:2;
default:
return 4;
}
};
_a9e.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_a9d,"padding-top",true),left:dojo.html.getPixelValue(_a9d,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_a9d));
dojo.lang.forEach(_a9e,function(_aa7){
var elm=_aa7.domNode;
var pos=_aa7.layoutAlign;
with(elm.style){
left=f.left+"px";
top=f.top+"px";
bottom="auto";
right="auto";
}
dojo.html.addClass(elm,"dojoAlign"+dojo.string.capitalize(pos));
if((pos=="top")||(pos=="bottom")){
dojo.html.setMarginBox(elm,{width:f.width});
var h=dojo.html.getMarginBox(elm).height;
f.height-=h;
if(pos=="top"){
f.top+=h;
}else{
elm.style.top=f.top+f.height+"px";
}
if(_aa7.onResized){
_aa7.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_aa7.resizeTo){
_aa7.resizeTo(w,f.height);
}else{
dojo.html.setMarginBox(elm,{width:w,height:f.height});
}
f.width-=w;
if(pos=="left"){
f.left+=w;
}else{
elm.style.left=f.left+f.width+"px";
}
}else{
if(pos=="flood"||pos=="client"){
if(_aa7.resizeTo){
_aa7.resizeTo(f.width,f.height);
}else{
dojo.html.setMarginBox(elm,{width:f.width,height:f.height});
}
}
}
}
});
};
dojo.html.insertCssText(".dojoLayoutContainer{ position: relative; display: block; overflow: hidden; }\n"+"body .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; }\n"+"body .dojoAlignClient { position: absolute }\n"+".dojoAlignClient { overflow: auto; }\n");
dojo.provide("dojo.widget.ContentPane");
dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
this._styleNodes=[];
this._onLoadStack=[];
this._onUnloadStack=[];
this._callOnUnload=false;
this._ioBindObj;
this.scriptScope;
this.bindArgs={};
},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"Loading...",isLoaded:false,postCreate:function(args,frag,_aae){
if(this.handler!==""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},abort:function(){
var bind=this._ioBindObj;
if(!bind||!bind.abort){
return;
}
bind.abort();
delete this._ioBindObj;
},_downloadExternalContent:function(url,_ab2){
this.abort();
this._handleDefaults(this.loadingMessage,"onDownloadStart");
var self=this;
this._ioBindObj=dojo.io.bind(this._cacheSetting({url:url,mimetype:"text/html",handler:function(type,data,xhr){
delete self._ioBindObj;
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
var e={responseText:xhr.responseText,status:xhr.status,statusText:xhr.statusText,responseHeaders:xhr.getAllResponseHeaders(),text:"Error loading '"+url+"' ("+xhr.status+" "+xhr.statusText+")"};
self._handleDefaults.call(self,e,"onDownloadError");
self.onLoad();
}
}},_ab2));
},_cacheSetting:function(_ab8,_ab9){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_ab8[x])){
_ab8[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_ab8.useCache)){
_ab8.useCache=_ab9;
}
if(dojo.lang.isUndefined(_ab8.preventCache)){
_ab8.preventCache=!_ab9;
}
if(dojo.lang.isUndefined(_ab8.mimetype)){
_ab8.mimetype="text/html";
}
return _ab8;
},onLoad:function(e){
this._runStack("_onLoadStack");
this.isLoaded=true;
},onUnLoad:function(e){
dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
},onUnload:function(e){
this._runStack("_onUnloadStack");
delete this.scriptScope;
if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
this.onUnLoad.apply(this,arguments);
}
},_runStack:function(_abe){
var st=this[_abe];
var err="";
var _ac1=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_ac1);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_abe]=[];
if(err.length){
var name=(_abe=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnload:function(obj,func){
this._pushOnStack(this._onUnloadStack,obj,func);
},addOnUnLoad:function(){
dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
this.addOnUnload.apply(this,arguments);
},_pushOnStack:function(_ac8,obj,func){
if(typeof func=="undefined"){
_ac8.push(obj);
}else{
_ac8.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnload();
dojo.widget.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_ad2,_ad3){
if(!_ad2){
_ad2="onContentError";
}
if(dojo.lang.isString(e)){
e={text:e};
}
if(!e.text){
e.text=e.toString();
}
e.toString=function(){
return this.text;
};
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_ad2](e);
if(e.returnValue){
switch(_ad3){
case true:
case "alert":
alert(e.toString());
break;
case "debug":
dojo.debug(e.toString());
break;
default:
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=false;
if(arguments.callee._loopStop){
dojo.debug(e.toString());
}else{
arguments.callee._loopStop=true;
this._setContent(e.toString());
}
}
}
arguments.callee._loopStop=false;
},splitAndFixPaths:function(s,url){
var _ad6=[],_ad7=[],tmp=[];
var _ad9=[],_ada=[],attr=[],_adc=[];
var str="",path="",fix="",_ae0="",tag="",_ae2="";
if(!url){
url="./";
}
if(s){
var _ae3=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_ad9=_ae3.exec(s)){
_ad6.push(_ad9[1]);
s=s.substring(0,_ad9.index)+s.substr(_ad9.index+_ad9[0].length);
}
if(this.adjustPaths){
var _ae4=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _ae5=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _ae6=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_ae4.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_ae0="";
while(attr=_ae5.exec(tag)){
path="";
_ae2=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_ae6.exec(_ae2)){
path=_ae2;
}else{
path=(new dojo.uri.Uri(url,_ae2).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_ae2,url);
break;
default:
path=_ae2;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_ae0+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_ae0+tag;
}
s=str+s;
}
_ae3=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_ad9=_ae3.exec(s)){
if(_ad9[1]&&_ad9[1].toLowerCase()=="style"){
_adc.push(dojo.html.fixPathsInCssText(_ad9[2],url));
}else{
if(attr=_ad9[3].match(/href=(['"]?)([^'">]*)\1/i)){
_adc.push({path:attr[2]});
}
}
s=s.substring(0,_ad9.index)+s.substr(_ad9.index+_ad9[0].length);
}
var _ae3=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _ae7=/src=(['"]?)([^"']*)\1/i;
var _ae8=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _ae9=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _aea=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_ad9=_ae3.exec(s)){
if(this.executeScripts&&_ad9[1]){
if(attr=_ae7.exec(_ad9[1])){
if(_ae8.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_ad7.push({path:attr[2]});
}
}
}
if(_ad9[2]){
var sc=_ad9[2].replace(_ae9,"");
if(!sc){
continue;
}
while(tmp=_aea.exec(sc)){
_ada.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_ad7.push(sc);
}
}
s=s.substr(0,_ad9.index)+s.substr(_ad9.index+_ad9[0].length);
}
if(this.extractContent){
_ad9=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_ad9){
s=_ad9[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _ae3=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _aec=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_ae3.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_aec.exec(tag[2])){
tag[2]=tag[2].substring(0,attr.index)+attr[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+attr[2];
}
str+=tag[2];
s=s.substr(tag.index+tag[0].length);
}
s=str+s;
}
}
return {"xml":s,"styles":_adc,"titles":_ad6,"requires":_ada,"scripts":_ad7,"url":url};
},_setContent:function(cont){
this.destroyChildren();
for(var i=0;i<this._styleNodes.length;i++){
if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
}
}
this._styleNodes=[];
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo.html.destroyNode(node.firstChild);
}
if(typeof cont!="string"){
node.appendChild(cont);
}else{
node.innerHTML=cont;
}
}
catch(e){
e.text="Couldn't load content:"+e.description;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
this.abort();
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=true;
if(!data||dojo.html.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if(typeof data.xml!="string"){
this.href="";
data=this.splitAndFixPaths(data);
}
this._setContent(data.xml);
for(var i=0;i<data.styles.length;i++){
if(data.styles[i].path){
this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true));
}else{
this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));
}
}
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
e.text="ContentPane: error in package loading calls, "+(e.description||e);
this._handleDefaults(e,"onContentError","debug");
}
}
}
var _af2=this;
function asyncParse(){
if(_af2.executeScripts){
_af2._executeScripts(data.scripts);
}
if(_af2.parseContent){
var node=_af2.containerNode||_af2.domNode;
var _af4=new dojo.xml.Parse();
var frag=_af4.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_af2);
}
_af2.onResized();
_af2.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_af6){
var fcn=dojo.lang.isFunction(_af6)?_af6:window[_af6];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_af6+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
var ret=true;
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
ret=false;
}
this.onLoad();
return ret;
},_executeScripts:function(_af9){
var self=this;
var tmp="",code="";
for(var i=0;i<_af9.length;i++){
if(_af9[i].path){
dojo.io.bind(this._cacheSetting({"url":_af9[i].path,"load":function(type,_aff){
dojo.lang.hitch(self,tmp=";"+_aff);
},"error":function(type,_b01){
_b01.text=type+" downloading remote script";
self._handleDefaults.call(self,_b01,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_af9[i];
}
}
try{
if(this.scriptSeparation){
delete this.scriptScope;
this.scriptScope=new (new Function("_container_",code+"; return this;"))(self);
}else{
var djg=dojo.global();
if(djg.execScript){
djg.execScript(code);
}else{
var djd=dojo.doc();
var sc=djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode||this.domNode).appendChild(sc);
}
}
}
catch(e){
e.text="Error running scripts from content:\n"+e.description;
this._handleDefaults(e,"onExecError","debug");
}
}});
dojo.provide("dojo.dnd.DragAndDrop");
dojo.declare("dojo.dnd.DragSource",null,{type:"",onDragEnd:function(evt){
},onDragStart:function(evt){
},onSelected:function(evt){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.declare("dojo.dnd.DragObject",null,{type:"",register:function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
},onDragStart:function(evt){
},onDragMove:function(evt){
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragEnd:function(evt){
},onDragLeave:dojo.lang.forward("onDragOut"),onDragEnter:dojo.lang.forward("onDragOver"),ondragout:dojo.lang.forward("onDragOut"),ondragover:dojo.lang.forward("onDragOver")});
dojo.declare("dojo.dnd.DropTarget",null,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_b0f){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_b0f.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_b0f[i].type)){
return false;
}
}
}
return true;
},unregister:function(){
dojo.dnd.dragManager.unregisterDropTarget(this);
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragMove:function(evt){
},onDropStart:function(evt){
},onDrop:function(evt){
},onDropEnd:function(){
}},function(){
this.acceptedTypes=[];
});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.declare("dojo.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(_b16){
},dropTargets:[],registerDropTarget:function(_b17){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.declare("dojo.dnd.HtmlDragManager",dojo.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],dropTargets:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){
e.stopPropagation();
e.preventDefault();
},registerDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _b1b=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_b1b;
this.dragSources[_b1b]=ds;
ds.domNode.setAttribute(dp,_b1b);
if(dojo.render.html.ie){
dojo.event.browser.addListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _b1e=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_b1e];
ds.domNode.setAttribute(dp,null);
if(dojo.render.html.ie){
dojo.event.browser.removeListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _b21=dojo.lang.find(this.dropTargets,dt,true);
if(_b21>=0){
this.dropTargets.splice(_b21,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===dojo.body()){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===dojo.body())){
return;
}
ta=dojo.html.getAttribute(tn,this.dsPrefix);
}
return this.dragSources[ta];
},onKeyDown:function(e){
},onMouseDown:function(e){
if(this.disabled){
return;
}
if(dojo.render.html.ie){
if(e.button!=1){
return;
}
}else{
if(e.which!=1){
return;
}
}
var _b27=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_b27,"button","textarea","input","select","option")){
return;
}
var ds=this.getDragSource(e);
if(!ds){
return;
}
if(!dojo.lang.inArray(this.selectedSources,ds)){
this.selectedSources.push(ds);
ds.onSelected();
}
this.mouseDownX=e.pageX;
this.mouseDownY=e.pageY;
e.preventDefault();
dojo.event.connect(document,"onmousemove",this,"onMouseMove");
},onMouseUp:function(e,_b2a){
if(this.selectedSources.length==0){
return;
}
this.mouseDownX=null;
this.mouseDownY=null;
this._dragTriggered=false;
e.dragSource=this.dragSource;
if((!e.shiftKey)&&(!e.ctrlKey)){
if(this.currentDropTarget){
this.currentDropTarget.onDropStart();
}
dojo.lang.forEach(this.dragObjects,function(_b2b){
var ret=null;
if(!_b2b){
return;
}
if(this.currentDropTarget){
e.dragObject=_b2b;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_b2b.domNode){
e.dropTarget=e.dropTarget.nextSibling;
}
}else{
e.dropTarget=this.currentDropTarget.domNode;
}
if(this.dropAcceptable){
ret=this.currentDropTarget.onDrop(e);
}else{
this.currentDropTarget.onDragOut(e);
}
}
e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";
dojo.lang.delayThese([function(){
try{
_b2b.dragSource.onDragEnd(e);
}
catch(err){
var _b2e={};
for(var i in e){
if(i=="type"){
_b2e.type="mouseup";
continue;
}
_b2e[i]=e[i];
}
_b2b.dragSource.onDragEnd(_b2e);
}
},function(){
_b2b.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}else{
}
dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");
this.currentDropTarget=null;
},onScroll:function(){
for(var i=0;i<this.dragObjects.length;i++){
if(this.dragObjects[i].updateDragOffset){
this.dragObjects[i].updateDragOffset();
}
}
if(this.dragObjects.length){
this.cacheTargetLocations();
}
},_dragStartDistance:function(x,y){
if((!this.mouseDownX)||(!this.mouseDownX)){
return;
}
var dx=Math.abs(x-this.mouseDownX);
var dx2=dx*dx;
var dy=Math.abs(y-this.mouseDownY);
var dy2=dy*dy;
return parseInt(Math.sqrt(dx2+dy2),10);
},cacheTargetLocations:function(){
dojo.profile.start("cacheTargetLocations");
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_b37){
var tn=_b37.domNode;
if(!tn||!_b37.accepts([this.dragSource])){
return;
}
var abs=dojo.html.getAbsolutePosition(tn,true);
var bb=dojo.html.getBorderBox(tn);
this.dropTargetDimensions.push([[abs.x,abs.y],[abs.x+bb.width,abs.y+bb.height],_b37]);
},this);
dojo.profile.end("cacheTargetLocations");
},onMouseMove:function(e){
if((dojo.render.html.ie)&&(e.button!=1)){
this.currentDropTarget=null;
this.onMouseUp(e,true);
return;
}
if((this.selectedSources.length)&&(!this.dragObjects.length)){
var dx;
var dy;
if(!this._dragTriggered){
this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);
if(!this._dragTriggered){
return;
}
dx=e.pageX-this.mouseDownX;
dy=e.pageY-this.mouseDownY;
}
this.dragSource=this.selectedSources[0];
dojo.lang.forEach(this.selectedSources,function(_b3e){
if(!_b3e){
return;
}
var tdo=_b3e.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.y+=dy;
tdo.dragOffset.x+=dx;
tdo.dragSource=_b3e;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_b40){
if(_b40){
_b40.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true);
var dtp=[[c.x,c.y],[c.x+c.width,c.y+c.height]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _b43=this.findBestTarget(e);
if(_b43.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_b43.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_b43.target;
e.dragObjects=this.dragObjects;
this.dropAcceptable=this.currentDropTarget.onDragOver(e);
}else{
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}
}
},findBestTarget:function(e){
var _b45=this;
var _b46=new Object();
_b46.target=null;
_b46.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_b47){
if(!_b45.isInsideBox(e,_b47)){
return true;
}
_b46.target=_b47[2];
_b46.points=_b47;
return Boolean(_b45.nestedTargets);
});
return _b46;
},isInsideBox:function(e,_b49){
if((e.pageX>_b49[0][0])&&(e.pageX<_b49[1][0])&&(e.pageY>_b49[0][1])&&(e.pageY<_b49[1][1])){
return true;
}
return false;
},onMouseOver:function(e){
},onMouseOut:function(e){
}});
dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();
(function(){
var d=document;
var dm=dojo.dnd.dragManager;
dojo.event.connect(d,"onkeydown",dm,"onKeyDown");
dojo.event.connect(d,"onmouseover",dm,"onMouseOver");
dojo.event.connect(d,"onmouseout",dm,"onMouseOut");
dojo.event.connect(d,"onmousedown",dm,"onMouseDown");
dojo.event.connect(d,"onmouseup",dm,"onMouseUp");
dojo.event.connect(window,"onscroll",dm,"onScroll");
})();
dojo.provide("dojo.dnd.HtmlDragAndDrop");
dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){
var _b4e=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_b4e.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_b4e.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _b4e;
},setDragHandle:function(node){
node=dojo.byId(node);
dojo.dnd.dragManager.unregisterDragSource(this);
this.domNode=node;
dojo.dnd.dragManager.registerDragSource(this);
},setDragTarget:function(node){
this.dragObject=node;
},constrainTo:function(_b51){
this.constrainToContainer=true;
if(_b51){
this.constrainingContainer=_b51;
}
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));
}
},addDragObjects:function(el){
for(var i=0;i<arguments.length;i++){
this.dragObjects.push(dojo.byId(arguments[i]));
}
}},function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
this.type=(type)||(this.domNode.nodeName.toLowerCase());
dojo.dnd.DragSource.prototype.reregister.call(this);
}
});
dojo.declare("dojo.dnd.HtmlDragObject",dojo.dnd.DragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){
var node=this.domNode.cloneNode(true);
if(this.dragClass){
dojo.html.addClass(node,this.dragClass);
}
if(this.opacity<1){
dojo.html.setOpacity(node,this.opacity);
}
var ltn=node.tagName.toLowerCase();
var isTr=(ltn=="tr");
if((isTr)||(ltn=="tbody")){
var doc=this.domNode.ownerDocument;
var _b5b=doc.createElement("table");
if(isTr){
var _b5c=doc.createElement("tbody");
_b5b.appendChild(_b5c);
_b5c.appendChild(node);
}else{
_b5b.appendChild(node);
}
var _b5d=((isTr)?this.domNode:this.domNode.firstChild);
var _b5e=((isTr)?node:node.firstChild);
var _b5f=_b5d.childNodes;
var _b60=_b5e.childNodes;
for(var i=0;i<_b5f.length;i++){
if((_b60[i])&&(_b60[i].style)){
_b60[i].style.width=dojo.html.getContentBox(_b5f[i]).width+"px";
}
}
node=_b5b;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _b62=document.createElement("div");
_b62.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_b62);
_b62.appendChild(this.bgIframe.iframe);
node=_b62;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScroll().offset;
this.dragStartPosition=dojo.html.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.dragClone=this.createDragNode();
this.containingBlockPosition=this.domNode.offsetParent?dojo.html.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
with(this.dragClone.style){
position="absolute";
top=this.dragOffset.y+e.pageY+"px";
left=this.dragOffset.x+e.pageX+"px";
}
dojo.body().appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _b64=dojo.html.getViewport();
var _b65=_b64.width;
var _b66=_b64.height;
var _b67=dojo.html.getScroll().offset;
var x=_b67.x;
var y=_b67.y;
}else{
var _b6a=dojo.html.getContentBox(this.constrainingContainer);
_b65=_b6a.width;
_b66=_b6a.height;
x=this.containingBlockPosition.x+dojo.html.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.html.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.html.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.html.getBorderExtent(this.constrainingContainer,"top");
}
var mb=dojo.html.getMarginBox(this.domNode);
return {minX:x,minY:y,maxX:x+_b65-mb.width,maxY:y+_b66-mb.height};
},updateDragOffset:function(){
var _b6c=dojo.html.getScroll().offset;
if(_b6c.y!=this.scrollOffset.y){
var diff=_b6c.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_b6c.y;
}
if(_b6c.x!=this.scrollOffset.x){
var diff=_b6c.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_b6c.x;
}
},onDragMove:function(e){
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX;
}
if(y<this.constraints.minY){
y=this.constraints.minY;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.dragClone.style.top=y+"px";
}
if(!this.disableX){
this.dragClone.style.left=x+"px";
}
},onDragEnd:function(e){
switch(e.dragStatus){
case "dropSuccess":
dojo.html.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _b74=dojo.html.getAbsolutePosition(this.dragClone,true);
var _b75={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};
var anim=dojo.lfx.slideTo(this.dragClone,_b75,300);
var _b77=this;
dojo.event.connect(anim,"onEnd",function(e){
dojo.html.removeNode(_b77.dragClone);
_b77.dragClone=null;
});
anim.play();
break;
}
dojo.event.topic.publish("dragEnd",{source:this});
},constrainTo:function(_b79){
this.constrainToContainer=true;
if(_b79){
this.constrainingContainer=_b79;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}},function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
dojo.dnd.DragObject.prototype.register.call(this);
});
dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,_b7e;i<this.domNode.childNodes.length;i++){
_b7e=this.domNode.childNodes[i];
if(_b7e.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(_b7e,true);
var _b80=dojo.html.getBorderBox(_b7e);
this.childBoxes.push({top:pos.y,bottom:pos.y+_b80.height,left:pos.x,right:pos.x+_b80.width,height:_b80.height,width:_b80.width,node:_b7e});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_b83;i<this.childBoxes.length;i++){
with(this.childBoxes[i]){
if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){
return i;
}
}
}
return -1;
},createDropIndicator:function(){
this.dropIndicator=document.createElement("div");
with(this.dropIndicator.style){
position="absolute";
zIndex=999;
if(this.vertical){
borderLeftWidth="1px";
borderLeftColor="black";
borderLeftStyle="solid";
height=dojo.html.getBorderBox(this.domNode).height+"px";
top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px";
}else{
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.html.getBorderBox(this.domNode).width+"px";
left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px";
}
}
},onDragMove:function(e,_b85){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
var _b87=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
var hide=false;
if(i<0){
if(this.childBoxes.length){
var _b89=(dojo.html.gravity(this.childBoxes[0].node,e)&_b87);
if(_b89){
hide=true;
}
}else{
var _b89=true;
}
}else{
var _b8a=this.childBoxes[i];
var _b89=(dojo.html.gravity(_b8a.node,e)&_b87);
if(_b8a.node===_b85[0].dragSource.domNode){
hide=true;
}else{
var _b8b=_b89?(i>0?this.childBoxes[i-1]:_b8a):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_b8a);
if(_b8b.node===_b85[0].dragSource.domNode){
hide=true;
}
}
}
if(hide){
this.dropIndicator.style.display="none";
return;
}else{
this.dropIndicator.style.display="";
}
this.placeIndicator(e,_b85,i,_b89);
if(!dojo.html.hasParent(this.dropIndicator)){
dojo.body().appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_b8d,_b8e,_b8f){
var _b90=this.vertical?"left":"top";
var _b91;
if(_b8e<0){
if(this.childBoxes.length){
_b91=_b8f?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];
}else{
this.dropIndicator.style[_b90]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";
}
}else{
_b91=this.childBoxes[_b8e];
}
if(_b91){
this.dropIndicator.style[_b90]=(_b8f?_b91[_b90]:_b91[this.vertical?"right":"bottom"])+"px";
if(this.vertical){
this.dropIndicator.style.height=_b91.height+"px";
this.dropIndicator.style.top=_b91.top+"px";
}else{
this.dropIndicator.style.width=_b91.width+"px";
this.dropIndicator.style.left=_b91.left+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.html.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
var _b95=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&_b95){
return this.insert(e,this.childBoxes[0].node,"before");
}else{
return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");
}
}
return this.insert(e,this.domNode,"append");
}
var _b96=this.childBoxes[i];
if(dojo.html.gravity(_b96.node,e)&_b95){
return this.insert(e,_b96.node,"before");
}else{
return this.insert(e,_b96.node,"after");
}
},insert:function(e,_b98,_b99){
var node=e.dragObject.domNode;
if(_b99=="before"){
return dojo.html.insertBefore(node,_b98);
}else{
if(_b99=="after"){
return dojo.html.insertAfter(node,_b98);
}else{
if(_b99=="append"){
_b98.appendChild(node);
return true;
}
}
}
return false;
}},function(node,_b9c){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_b9c&&dojo.lang.isString(_b9c)){
_b9c=[_b9c];
}
this.acceptedTypes=_b9c||[];
dojo.dnd.dragManager.registerDropTarget(this);
});
dojo.kwCompoundRequire({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]});
dojo.provide("dojo.dnd.*");
dojo.provide("dojo.dnd.HtmlDragMove");
dojo.declare("dojo.dnd.HtmlDragMoveSource",dojo.dnd.HtmlDragSource,{onDragStart:function(){
var _b9d=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);
if(this.constrainToContainer){
_b9d.constrainTo(this.constrainingContainer);
}
return _b9d;
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragMoveSource(this.dragObjects[i]));
}
}});
dojo.declare("dojo.dnd.HtmlDragMoveObject",dojo.dnd.HtmlDragObject,{onDragStart:function(e){
dojo.html.clearSelection();
this.dragClone=this.domNode;
if(dojo.html.getComputedStyle(this.domNode,"position")!="absolute"){
this.domNode.style.position="relative";
}
var left=parseInt(dojo.html.getComputedStyle(this.domNode,"left"));
var top=parseInt(dojo.html.getComputedStyle(this.domNode,"top"));
this.dragStartPosition={x:isNaN(left)?0:left,y:isNaN(top)?0:top};
this.scrollOffset=dojo.html.getScroll().offset;
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.containingBlockPosition={x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
dojo.event.connect(this.domNode,"onclick",this,"_squelchOnClick");
},onDragEnd:function(e){
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.domNode.style.top=y+"px";
}
if(!this.disableX){
this.domNode.style.left=x+"px";
}
},_squelchOnClick:function(e){
dojo.event.browser.stopEvent(e);
dojo.event.disconnect(this.domNode,"onclick",this,"_squelchOnClick");
}});
dojo.provide("dojo.widget.Dialog");
dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(e){
if(e.target==this.tabStartOuter){
if(this._fromTrap){
this.tabStart.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabStart){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabEndOuter){
if(this._fromTrap){
this.tabEnd.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}else{
if(e.target==this.tabEnd){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}
}
}
}
},clearTrap:function(e){
var _ba8=this;
setTimeout(function(){
_ba8._fromTrap=false;
},100);
},postCreate:function(){
with(this.domNode.style){
position="absolute";
zIndex=999;
display="none";
overflow="visible";
}
var b=dojo.body();
b.appendChild(this.domNode);
this.bg=document.createElement("div");
this.bg.className="dialogUnderlay";
with(this.bg.style){
position="absolute";
left=top="0px";
zIndex=998;
display="none";
}
b.appendChild(this.bg);
this.setBackgroundColor(this.bgColor);
this.bgIframe=new dojo.html.BackgroundIframe();
if(this.bgIframe.iframe){
with(this.bgIframe.iframe.style){
position="absolute";
left=top="0px";
zIndex=90;
display="none";
}
}
if(this.closeOnBackgroundClick){
dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true});
}
},uninitialize:function(){
this.bgIframe.remove();
dojo.html.removeNode(this.bg,true);
},setBackgroundColor:function(_baa){
if(arguments.length>=3){
_baa=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_baa=new dojo.gfx.color.Color(_baa);
}
this.bg.style.backgroundColor=_baa.toString();
return this.bgColor=_baa;
},setBackgroundOpacity:function(op){
if(arguments.length==0){
op=this.bgOpacity;
}
dojo.html.setOpacity(this.bg,op);
try{
this.bgOpacity=dojo.html.getOpacity(this.bg);
}
catch(e){
this.bgOpacity=op;
}
return this.bgOpacity;
},_sizeBackground:function(){
if(this.bgOpacity>0){
var _bac=dojo.html.getViewport();
var h=_bac.height;
var w=_bac.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _baf=dojo.html.getScroll().offset;
this.bg.style.top=_baf.y+"px";
this.bg.style.left=_baf.x+"px";
var _bac=dojo.html.getViewport();
if(_bac.width!=w){
this.bg.style.width=_bac.width+"px";
}
if(_bac.height!=h){
this.bg.style.height=_bac.height+"px";
}
}
this.bgIframe.size(this.bg);
},_showBackground:function(){
if(this.bgOpacity>0){
this.bg.style.display="block";
}
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},placeModalDialog:function(){
var _bb0=dojo.html.getScroll().offset;
var _bb1=dojo.html.getViewport();
var mb;
if(this.isShowing()){
mb=dojo.html.getMarginBox(this.domNode);
}else{
dojo.html.setVisibility(this.domNode,false);
dojo.html.show(this.domNode);
mb=dojo.html.getMarginBox(this.domNode);
dojo.html.hide(this.domNode);
dojo.html.setVisibility(this.domNode,true);
}
var x=_bb0.x+(_bb1.width-mb.width)/2;
var y=_bb0.y+(_bb1.height-mb.height)/2;
with(this.domNode.style){
left=x+"px";
top=y+"px";
}
},_onKey:function(evt){
if(evt.key){
var node=evt.target;
while(node!=null){
if(node==this.domNode){
return;
}
node=node.parentNode;
}
if(evt.key!=evt.KEY_TAB){
dojo.event.browser.stopEvent(evt);
}else{
if(!dojo.render.html.opera){
try{
this.tabStart.focus();
}
catch(e){
}
}
}
}
},showModalDialog:function(){
if(this.followScroll&&!this._scrollConnected){
this._scrollConnected=true;
dojo.event.connect(window,"onscroll",this,"_onScroll");
}
dojo.event.connect(document.documentElement,"onkey",this,"_onKey");
this.placeModalDialog();
this.setBackgroundOpacity();
this._sizeBackground();
this._showBackground();
this._fromTrap=true;
setTimeout(dojo.lang.hitch(this,function(){
try{
this.tabStart.focus();
}
catch(e){
}
}),50);
},hideModalDialog:function(){
if(this.focusElement){
dojo.byId(this.focusElement).focus();
dojo.byId(this.focusElement).blur();
}
this.bg.style.display="none";
this.bg.style.width=this.bg.style.height="1px";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");
if(this._scrollConnected){
this._scrollConnected=false;
dojo.event.disconnect(window,"onscroll",this,"_onScroll");
}
},_onScroll:function(){
var _bb7=dojo.html.getScroll().offset;
this.bg.style.top=_bb7.y+"px";
this.bg.style.left=_bb7.x+"px";
this.placeModalDialog();
},checkSize:function(){
if(this.isShowing()){
this._sizeBackground();
this.placeModalDialog();
this.onResized();
}
},onBackgroundClick:function(){
if(this.lifetime-this.timeRemaining>=this.blockDuration){
return;
}
this.hide();
}});
dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:"<div id=\"${this.widgetId}\" class=\"dojoDialog\" dojoattachpoint=\"wrapper\">\n\t<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"\ttabindex=\"0\"></span>\n\t<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n\t<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\n\t<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n\t<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n</div>\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){
dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);
if(this.closeNode){
this.setCloseControl(this.closeNode);
}
},postCreate:function(){
dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);
dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);
},show:function(){
if(this.lifetime){
this.timeRemaining=this.lifetime;
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
if(this.blockDuration&&this.closeNode){
if(this.lifetime>this.blockDuration){
this.closeNode.style.visibility="hidden";
}else{
this.closeNode.style.display="none";
}
}
if(this.timer){
clearInterval(this.timer);
}
this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100);
}
this.showModalDialog();
dojo.widget.Dialog.superclass.show.call(this);
},onLoad:function(){
this.placeModalDialog();
dojo.widget.Dialog.superclass.onLoad.call(this);
},fillInTemplate:function(){
},hide:function(){
this.hideModalDialog();
dojo.widget.Dialog.superclass.hide.call(this);
if(this.timer){
clearInterval(this.timer);
}
},setTimerNode:function(node){
this.timerNode=node;
},setCloseControl:function(node){
this.closeNode=dojo.byId(node);
dojo.event.connect(this.closeNode,"onclick",this,"hide");
},setShowControl:function(node){
node=dojo.byId(node);
dojo.event.connect(node,"onclick",this,"show");
},_onTick:function(){
if(this.timer){
this.timeRemaining-=100;
if(this.lifetime-this.timeRemaining>=this.blockDuration){
if(this.closeNode){
this.closeNode.style.visibility="visible";
}
}
if(!this.timeRemaining){
clearInterval(this.timer);
this.hide();
}else{
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
}
}
}});
dojo.provide("dojo.widget.ResizeHandle");
dojo.widget.defineWidget("dojo.widget.ResizeHandle",dojo.widget.HtmlWidget,{targetElmId:"",templateCssString:".dojoHtmlResizeHandle {\n\tfloat: right;\n\tposition: absolute;\n\tright: 2px;\n\tbottom: 2px;\n\twidth: 13px;\n\theight: 13px;\n\tz-index: 20;\n\tcursor: nw-resize;\n\tbackground-image: url(grabCorner.gif);\n\tline-height: 0px;\n}\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ResizeHandle.css"),templateString:"<div class=\"dojoHtmlResizeHandle\"><div></div></div>",postCreate:function(){
dojo.event.connect(this.domNode,"onmousedown",this,"_beginSizing");
},_beginSizing:function(e){
if(this._isSizing){
return false;
}
this.targetWidget=dojo.widget.byId(this.targetElmId);
this.targetDomNode=this.targetWidget?this.targetWidget.domNode:dojo.byId(this.targetElmId);
if(!this.targetDomNode){
return;
}
this._isSizing=true;
this.startPoint={"x":e.clientX,"y":e.clientY};
var mb=dojo.html.getMarginBox(this.targetDomNode);
this.startSize={"w":mb.width,"h":mb.height};
dojo.event.kwConnect({srcObj:dojo.body(),srcFunc:"onmousemove",targetObj:this,targetFunc:"_changeSizing",rate:25});
dojo.event.connect(dojo.body(),"onmouseup",this,"_endSizing");
e.preventDefault();
},_changeSizing:function(e){
try{
if(!e.clientX||!e.clientY){
return;
}
}
catch(e){
return;
}
var dx=this.startPoint.x-e.clientX;
var dy=this.startPoint.y-e.clientY;
var newW=this.startSize.w-dx;
var newH=this.startSize.h-dy;
if(this.minSize){
var mb=dojo.html.getMarginBox(this.targetDomNode);
if(newW<this.minSize.w){
newW=mb.width;
}
if(newH<this.minSize.h){
newH=mb.height;
}
}
if(this.targetWidget){
this.targetWidget.resizeTo(newW,newH);
}else{
dojo.html.setMarginBox(this.targetDomNode,{width:newW,height:newH});
}
e.preventDefault();
},_endSizing:function(e){
dojo.event.disconnect(dojo.body(),"onmousemove",this,"_changeSizing");
dojo.event.disconnect(dojo.body(),"onmouseup",this,"_endSizing");
this._isSizing=false;
}});
dojo.provide("dojo.widget.FloatingPane");
dojo.declare("dojo.widget.FloatingPaneBase",null,{title:"",iconSrc:"",hasShadow:false,constrainToContainer:false,taskBarId:"",resizable:true,titleBarDisplay:true,windowState:"normal",displayCloseAction:false,displayMinimizeAction:false,displayMaximizeAction:false,_max_taskBarConnectAttempts:5,_taskBarConnectAttempts:0,templateString:"<div id=\"${this.widgetId}\" dojoAttachEvent=\"onMouseDown\" class=\"dojoFloatingPane\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dojoFloatingPaneTitleBar\"  style=\"display:none\">\n\t  \t<img dojoAttachPoint=\"titleBarIcon\"  class=\"dojoFloatingPaneTitleBarIcon\">\n\t\t<div dojoAttachPoint=\"closeAction\" dojoAttachEvent=\"onClick:closeWindow\"\n   \t  \t\tclass=\"dojoFloatingPaneCloseIcon\"></div>\n\t\t<div dojoAttachPoint=\"restoreAction\" dojoAttachEvent=\"onClick:restoreWindow\"\n   \t  \t\tclass=\"dojoFloatingPaneRestoreIcon\"></div>\n\t\t<div dojoAttachPoint=\"maximizeAction\" dojoAttachEvent=\"onClick:maximizeWindow\"\n   \t  \t\tclass=\"dojoFloatingPaneMaximizeIcon\"></div>\n\t\t<div dojoAttachPoint=\"minimizeAction\" dojoAttachEvent=\"onClick:minimizeWindow\"\n   \t  \t\tclass=\"dojoFloatingPaneMinimizeIcon\"></div>\n\t  \t<div dojoAttachPoint=\"titleBarText\" class=\"dojoFloatingPaneTitleText\">${this.title}</div>\n\t</div>\n\n\t<div id=\"${this.widgetId}_container\" dojoAttachPoint=\"containerNode\" class=\"dojoFloatingPaneClient\"></div>\n\n\t<div dojoAttachPoint=\"resizeBar\" class=\"dojoFloatingPaneResizebar\" style=\"display:none\"></div>\n</div>\n",templateCssString:"\n/********** Outer Window ***************/\n\n.dojoFloatingPane {\n\t/* essential css */\n\tposition: absolute;\n\toverflow: visible;\t\t/* so drop shadow is displayed */\n\tz-index: 10;\n\n\t/* styling css */\n\tborder: 1px solid;\n\tborder-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;\n\tbackground-color: ThreeDFace;\n}\n\n\n/********** Title Bar ****************/\n\n.dojoFloatingPaneTitleBar {\n\tvertical-align: top;\n\tmargin: 2px 2px 2px 2px;\n\tz-index: 10;\n\tbackground-color: #7596c6;\n\tcursor: default;\n\toverflow: hidden;\n\tborder-color: ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight;\n\tvertical-align: middle;\n}\n\n.dojoFloatingPaneTitleText {\n\tfloat: left;\n\tpadding: 2px 4px 2px 2px;\n\twhite-space: nowrap;\n\tcolor: CaptionText;\n\tfont: small-caption;\n}\n\n.dojoTitleBarIcon {\n\tfloat: left;\n\theight: 22px;\n\twidth: 22px;\n\tvertical-align: middle;\n\tmargin-right: 5px;\n\tmargin-left: 5px;\n}\n\n.dojoFloatingPaneActions{\n\tfloat: right;\n\tposition: absolute;\n\tright: 2px;\n\ttop: 2px;\n\tvertical-align: middle;\n}\n\n\n.dojoFloatingPaneActionItem {\n\tvertical-align: middle;\n\tmargin-right: 1px;\n\theight: 22px;\n\twidth: 22px;\n}\n\n\n.dojoFloatingPaneTitleBarIcon {\n\t/* essential css */\n\tfloat: left;\n\n\t/* styling css */\n\tmargin-left: 2px;\n\tmargin-right: 4px;\n\theight: 22px;\n}\n\n/* minimize/maximize icons are specified by CSS only */\n.dojoFloatingPaneMinimizeIcon,\n.dojoFloatingPaneMaximizeIcon,\n.dojoFloatingPaneRestoreIcon,\n.dojoFloatingPaneCloseIcon {\n\tvertical-align: middle;\n\theight: 22px;\n\twidth: 22px;\n\tfloat: right;\n}\n.dojoFloatingPaneMinimizeIcon {\n\tbackground-image: url(images/floatingPaneMinimize.gif);\n}\n.dojoFloatingPaneMaximizeIcon {\n\tbackground-image: url(images/floatingPaneMaximize.gif);\n}\n.dojoFloatingPaneRestoreIcon {\n\tbackground-image: url(images/floatingPaneRestore.gif);\n}\n.dojoFloatingPaneCloseIcon {\n\tbackground-image: url(images/floatingPaneClose.gif);\n}\n\n/* bar at bottom of window that holds resize handle */\n.dojoFloatingPaneResizebar {\n\tz-index: 10;\n\theight: 13px;\n\tbackground-color: ThreeDFace;\n}\n\n/************* Client Area ***************/\n\n.dojoFloatingPaneClient {\n\tposition: relative;\n\tz-index: 10;\n\tborder: 1px solid;\n\tborder-color: ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow;\n\tmargin: 2px;\n\tbackground-color: ThreeDFace;\n\tpadding: 8px;\n\tfont-family: Verdana, Helvetica, Garamond, sans-serif;\n\tfont-size: 12px;\n\toverflow: auto;\n}\n\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/FloatingPane.css"),fillInFloatingPaneTemplate:function(args,frag){
var _bc6=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_bc6);
dojo.body().appendChild(this.domNode);
if(!this.isShowing()){
this.windowState="minimized";
}
if(this.iconSrc==""){
dojo.html.removeNode(this.titleBarIcon);
}else{
this.titleBarIcon.src=this.iconSrc.toString();
}
if(this.titleBarDisplay){
this.titleBar.style.display="";
dojo.html.disableSelection(this.titleBar);
this.titleBarIcon.style.display=(this.iconSrc==""?"none":"");
this.minimizeAction.style.display=(this.displayMinimizeAction?"":"none");
this.maximizeAction.style.display=(this.displayMaximizeAction&&this.windowState!="maximized"?"":"none");
this.restoreAction.style.display=(this.displayMaximizeAction&&this.windowState=="maximized"?"":"none");
this.closeAction.style.display=(this.displayCloseAction?"":"none");
this.drag=new dojo.dnd.HtmlDragMoveSource(this.domNode);
if(this.constrainToContainer){
this.drag.constrainTo();
}
this.drag.setDragHandle(this.titleBar);
var self=this;
dojo.event.topic.subscribe("dragMove",function(info){
if(info.source.domNode==self.domNode){
dojo.event.topic.publish("floatingPaneMove",{source:self});
}
});
}
if(this.resizable){
this.resizeBar.style.display="";
this.resizeHandle=dojo.widget.createWidget("ResizeHandle",{targetElmId:this.widgetId,id:this.widgetId+"_resize"});
this.resizeBar.appendChild(this.resizeHandle.domNode);
}
if(this.hasShadow){
this.shadow=new dojo.lfx.shadow(this.domNode);
}
this.bgIframe=new dojo.html.BackgroundIframe(this.domNode);
if(this.taskBarId){
this._taskBarSetup();
}
dojo.body().removeChild(this.domNode);
},postCreate:function(){
if(dojo.hostenv.post_load_){
this._setInitialWindowState();
}else{
dojo.addOnLoad(this,"_setInitialWindowState");
}
},maximizeWindow:function(evt){
var mb=dojo.html.getMarginBox(this.domNode);
this.previous={width:mb.width||this.width,height:mb.height||this.height,left:this.domNode.style.left,top:this.domNode.style.top,bottom:this.domNode.style.bottom,right:this.domNode.style.right};
if(this.domNode.parentNode.style.overflow.toLowerCase()!="hidden"){
this.parentPrevious={overflow:this.domNode.parentNode.style.overflow};
dojo.debug(this.domNode.parentNode.style.overflow);
this.domNode.parentNode.style.overflow="hidden";
}
this.domNode.style.left=dojo.html.getPixelValue(this.domNode.parentNode,"padding-left",true)+"px";
this.domNode.style.top=dojo.html.getPixelValue(this.domNode.parentNode,"padding-top",true)+"px";
if((this.domNode.parentNode.nodeName.toLowerCase()=="body")){
var _bcb=dojo.html.getViewport();
var _bcc=dojo.html.getPadding(dojo.body());
this.resizeTo(_bcb.width-_bcc.width,_bcb.height-_bcc.height);
}else{
var _bcd=dojo.html.getContentBox(this.domNode.parentNode);
this.resizeTo(_bcd.width,_bcd.height);
}
this.maximizeAction.style.display="none";
this.restoreAction.style.display="";
if(this.resizeHandle){
this.resizeHandle.domNode.style.display="none";
}
this.drag.setDragHandle(null);
this.windowState="maximized";
},minimizeWindow:function(evt){
this.hide();
for(var attr in this.parentPrevious){
this.domNode.parentNode.style[attr]=this.parentPrevious[attr];
}
this.lastWindowState=this.windowState;
this.windowState="minimized";
},restoreWindow:function(evt){
if(this.windowState=="minimized"){
this.show();
if(this.lastWindowState=="maximized"){
this.domNode.parentNode.style.overflow="hidden";
this.windowState="maximized";
}else{
this.windowState="normal";
}
}else{
if(this.windowState=="maximized"){
for(var attr in this.previous){
this.domNode.style[attr]=this.previous[attr];
}
for(var attr in this.parentPrevious){
this.domNode.parentNode.style[attr]=this.parentPrevious[attr];
}
this.resizeTo(this.previous.width,this.previous.height);
this.previous=null;
this.parentPrevious=null;
this.restoreAction.style.display="none";
this.maximizeAction.style.display=this.displayMaximizeAction?"":"none";
if(this.resizeHandle){
this.resizeHandle.domNode.style.display="";
}
this.drag.setDragHandle(this.titleBar);
this.windowState="normal";
}else{
}
}
},toggleDisplay:function(){
if(this.windowState=="minimized"){
this.restoreWindow();
}else{
this.minimizeWindow();
}
},closeWindow:function(evt){
dojo.html.removeNode(this.domNode);
this.destroy();
},onMouseDown:function(evt){
this.bringToTop();
},bringToTop:function(){
var _bd4=dojo.widget.manager.getWidgetsByType(this.widgetType);
var _bd5=[];
for(var x=0;x<_bd4.length;x++){
if(this.widgetId!=_bd4[x].widgetId){
_bd5.push(_bd4[x]);
}
}
_bd5.sort(function(a,b){
return a.domNode.style.zIndex-b.domNode.style.zIndex;
});
_bd5.push(this);
var _bd9=100;
for(x=0;x<_bd5.length;x++){
_bd5[x].domNode.style.zIndex=_bd9+x*2;
}
},_setInitialWindowState:function(){
if(this.isShowing()){
this.width=-1;
var mb=dojo.html.getMarginBox(this.domNode);
this.resizeTo(mb.width,mb.height);
}
if(this.windowState=="maximized"){
this.maximizeWindow();
this.show();
return;
}
if(this.windowState=="normal"){
this.show();
return;
}
if(this.windowState=="minimized"){
this.hide();
return;
}
this.windowState="minimized";
},_taskBarSetup:function(){
var _bdb=dojo.widget.getWidgetById(this.taskBarId);
if(!_bdb){
if(this._taskBarConnectAttempts<this._max_taskBarConnectAttempts){
dojo.lang.setTimeout(this,this._taskBarSetup,50);
this._taskBarConnectAttempts++;
}else{
dojo.debug("Unable to connect to the taskBar");
}
return;
}
_bdb.addChild(this);
},showFloatingPane:function(){
this.bringToTop();
},onFloatingPaneShow:function(){
var mb=dojo.html.getMarginBox(this.domNode);
this.resizeTo(mb.width,mb.height);
},resizeTo:function(_bdd,_bde){
dojo.html.setMarginBox(this.domNode,{width:_bdd,height:_bde});
dojo.widget.html.layout(this.domNode,[{domNode:this.titleBar,layoutAlign:"top"},{domNode:this.resizeBar,layoutAlign:"bottom"},{domNode:this.containerNode,layoutAlign:"client"}]);
dojo.widget.html.layout(this.containerNode,this.children,"top-bottom");
this.bgIframe.onResized();
if(this.shadow){
this.shadow.size(_bdd,_bde);
}
this.onResized();
},checkSize:function(){
},destroyFloatingPane:function(){
if(this.resizeHandle){
this.resizeHandle.destroy();
this.resizeHandle=null;
}
}});
dojo.widget.defineWidget("dojo.widget.FloatingPane",[dojo.widget.ContentPane,dojo.widget.FloatingPaneBase],{fillInTemplate:function(args,frag){
this.fillInFloatingPaneTemplate(args,frag);
dojo.widget.FloatingPane.superclass.fillInTemplate.call(this,args,frag);
},postCreate:function(){
dojo.widget.FloatingPaneBase.prototype.postCreate.apply(this,arguments);
dojo.widget.FloatingPane.superclass.postCreate.apply(this,arguments);
},show:function(){
dojo.widget.FloatingPane.superclass.show.apply(this,arguments);
this.showFloatingPane();
},onShow:function(){
dojo.widget.FloatingPane.superclass.onShow.call(this);
this.onFloatingPaneShow();
},destroy:function(){
this.destroyFloatingPane();
dojo.widget.FloatingPane.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.ModalFloatingPane",[dojo.widget.FloatingPane,dojo.widget.ModalDialogBase],{windowState:"minimized",displayCloseAction:true,postCreate:function(){
dojo.widget.ModalDialogBase.prototype.postCreate.call(this);
dojo.widget.ModalFloatingPane.superclass.postCreate.call(this);
},show:function(){
this.showModalDialog();
dojo.widget.ModalFloatingPane.superclass.show.apply(this,arguments);
this.bg.style.zIndex=this.domNode.style.zIndex-1;
},hide:function(){
this.hideModalDialog();
dojo.widget.ModalFloatingPane.superclass.hide.apply(this,arguments);
},closeWindow:function(){
this.hide();
dojo.widget.ModalFloatingPane.superclass.closeWindow.apply(this,arguments);
}});
dojo.provide("dojo.widget.TimePicker");
dojo.widget.defineWidget("dojo.widget.TimePicker",dojo.widget.HtmlWidget,function(){
this.time="";
this.useDefaultTime=false;
this.useDefaultMinutes=false;
this.storedTime="";
this.currentTime={};
this.classNames={selectedTime:"selectedItem"};
this.any="any";
this.selectedTime={hour:"",minute:"",amPm:"",anyTime:false};
this.hourIndexMap=["",2,4,6,8,10,1,3,5,7,9,11,0];
this.minuteIndexMap=[0,2,4,6,8,10,1,3,5,7,9,11];
},{isContainer:false,templateString:"<div class=\"timePickerContainer\" dojoAttachPoint=\"timePickerContainerNode\">\n\t<table class=\"timeContainer\" cellspacing=\"0\" >\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<td class=\"timeCorner cornerTopLeft\" valign=\"top\">&nbsp;</td>\n\t\t\t\t<td class=\"timeLabelContainer hourSelector\">${this.calendar.field-hour}</td>\n\t\t\t\t<td class=\"timeLabelContainer minutesHeading\">${this.calendar.field-minute}</td>\n\t\t\t\t<td class=\"timeCorner cornerTopRight\" valign=\"top\">&nbsp;</td>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td valign=\"top\" colspan=\"2\" class=\"hours\">\n\t\t\t\t\t<table align=\"center\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"hourContainerNode\"  \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedHour;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>12</td>\n\t\t\t\t\t\t\t\t<td>6</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>1</td>\n\t\t\t\t\t\t\t\t<td>7</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>2</td>\n\t\t\t\t\t\t\t\t<td>8</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>3</td>\n\t\t\t\t\t\t\t\t<td>9</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>4</td>\n\t\t\t\t\t\t\t\t<td>10</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>5</td>\n\t\t\t\t\t\t\t\t<td>11</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t\t<td valign=\"top\" class=\"minutes\" colspan=\"2\">\n\t\t\t\t\t<table align=\"center\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"minuteContainerNode\" \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedMinute;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>00</td>\n\t\t\t\t\t\t\t\t<td>30</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>05</td>\n\t\t\t\t\t\t\t\t<td>35</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>10</td>\n\t\t\t\t\t\t\t\t<td>40</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>15</td>\n\t\t\t\t\t\t\t\t<td>45</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>20</td>\n\t\t\t\t\t\t\t\t<td>50</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>25</td>\n\t\t\t\t\t\t\t\t<td>55</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"cornerBottomLeft\">&nbsp;</td>\n\t\t\t\t<td valign=\"top\" class=\"timeOptions\">\n\t\t\t\t\t<table class=\"amPmContainer\">\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"amPmContainerNode\" \n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedAmPm;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td id=\"am\">${this.calendar.am}</td>\n\t\t\t\t\t\t\t\t<td id=\"pm\">${this.calendar.pm}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"timeOptions\">\n\t\t\t\t\t<div dojoAttachPoint=\"anyTimeContainerNode\" \n\t\t\t\t\t\tdojoAttachEvent=\"onClick: onSetSelectedAnyTime;\" \n\t\t\t\t\t\tclass=\"anyTimeContainer\">${this.widgetStrings.any}</div>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"cornerBottomRight\">&nbsp;</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n",templateCssString:"/*Time Picker */\n.timePickerContainer {\n\twidth:122px;\n\tfont-family:Tahoma, Myriad, Helvetica, Arial, Verdana, sans-serif;\n\tfont-size:16px;\n}\n\n.timeContainer {\n\tborder-collapse:collapse;\n\tborder-spacing:0;\n}\n\n.timeContainer thead {\n\tcolor:#293a4b;\n\tfont-size:0.9em;\n\tfont-weight:700;\n}\n\n.timeContainer thead td {\n\tpadding:0.25em;\n\tfont-size:0.80em;\n\tborder-bottom:1px solid #6782A8;\n}\n\n.timeCorner {\n\twidth:10px;\n}\n\n.cornerTopLeft {\n\tbackground: url(\"images/dpCurveTL.png\") top left no-repeat;\n}\n\n.cornerTopRight {\n\tbackground: url(\"images/dpCurveTR.png\") top right no-repeat;\n}\n\n.timeLabelContainer {\n\tbackground: url(\"images/dpMonthBg.png\") top left repeat-x;\n}\n\n.hours, .minutes, .timeBorder {\n\tbackground: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\n\n}\n\n.hours td, .minutes td {\n\tpadding:0.2em;\n\ttext-align:center;\n\tfont-size:0.7em;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff;\n}\n\n.minutes {\n\tborder-left:1px solid #f5d1db;\n}\n\n.hours {\n\tborder-right:1px solid #6782A8;\n}\n\n.hourSelector {\n\tborder-right:1px solid #6782A8;\n\tpadding:5px;\n\tpadding-right:10px;\n}\n\n.minutesSelector {\n\tpadding:5px;\n\tborder-left:1px solid #f5c7d4;\n\ttext-align:center;\n}\n\n.minutesHeading {\n\tpadding-left:9px !important;\n}\n\n.timeOptions {\n\tbackground-color:#F9C9D7;\n}\n\n.timeContainer .cornerBottomLeft, .timeContainer .cornerBottomRight, .timeContainer .timeOptions {\n\tborder-top:1px solid #6782A8;\n}\n\n.timeContainer .cornerBottomLeft {\n\tbackground: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n.timeContainer .cornerBottomRight {\n\tbackground: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\n\twidth:9px !important;\n\tpadding:0;\n\tmargin:0;\n}\n\n.timeOptions {\n\tcolor:#fff;\n\tbackground:url(\"images/dpYearBg.png\") top left repeat-x;\n\n}\n\n.selectedItem {\n\tbackground-color:#fff;\n\tcolor:#6782a8 !important;\n}\n\n.timeOptions .selectedItem {\n\tcolor:#fff !important;\n\tbackground-color:#9ec3fb !important;\n}\n\n.anyTimeContainer {\n\ttext-align:center;\n\tfont-weight:bold;\n\tfont-size:0.7em;\n\tpadding:0.1em;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff !important;\n}\n\n.amPmContainer {\n\twidth:100%;\n}\n\n.amPmContainer td {\n\ttext-align:center;\n\tfont-size:0.7em;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tcursor:hand;\n\tcolor:#fff;\n}\n\n\n\n/*.timePickerContainer {\n\tmargin:1.75em 0 0.5em 0;\n\twidth:10em;\n\tfloat:left;\n}\n\n.timeContainer {\n\tborder-collapse:collapse;\n\tborder-spacing:0;\n}\n\n.timeContainer thead td{\n\tborder-bottom:1px solid #e6e6e6;\n\tpadding:0 0.4em 0.2em 0.4em;\n}\n\n.timeContainer td {\n\tfont-size:0.9em;\n\tpadding:0 0.25em 0 0.25em;\n\ttext-align:left;\n\tcursor:pointer;cursor:hand;\n}\n\n.timeContainer td.minutesHeading {\n\tborder-left:1px solid #e6e6e6;\n\tborder-right:1px solid #e6e6e6;\t\n}\n\n.timeContainer .minutes {\n\tborder-left:1px solid #e6e6e6;\n\tborder-right:1px solid #e6e6e6;\n}\n\n.selectedItem {\n\tbackground-color:#3a3a3a;\n\tcolor:#ffffff;\n}*/\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TimePicker.css"),postMixInProperties:function(_be1,frag){
dojo.widget.TimePicker.superclass.postMixInProperties.apply(this,arguments);
this.calendar=dojo.i18n.getLocalization("dojo.i18n.calendar","gregorian",this.lang);
this.widgetStrings=dojo.i18n.getLocalization("dojo.widget","TimePicker",this.lang);
},fillInTemplate:function(args,frag){
var _be5=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_be5);
if(args.value){
if(args.value instanceof Date){
this.storedTime=dojo.date.toRfc3339(args.value);
}else{
this.storedTime=args.value;
}
}
this.initData();
this.initUI();
},initData:function(){
if(this.storedTime.indexOf("T")!=-1&&this.storedTime.split("T")[1]&&this.storedTime!=" "&&this.storedTime.split("T")[1]!="any"){
this.time=dojo.widget.TimePicker.util.fromRfcDateTime(this.storedTime,this.useDefaultMinutes,this.selectedTime.anyTime);
}else{
if(this.useDefaultTime){
this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",this.useDefaultMinutes,this.selectedTime.anyTime);
}else{
this.selectedTime.anyTime=true;
this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",0,1);
}
}
},initUI:function(){
if(!this.selectedTime.anyTime&&this.time){
var _be6=dojo.widget.TimePicker.util.toAmPmHour(this.time.getHours());
var hour=_be6[0];
var isAm=_be6[1];
var _be9=this.time.getMinutes();
var _bea=parseInt(_be9/5);
this.onSetSelectedHour(this.hourIndexMap[hour]);
this.onSetSelectedMinute(this.minuteIndexMap[_bea]);
this.onSetSelectedAmPm(isAm);
}else{
this.onSetSelectedAnyTime();
}
},setTime:function(date){
if(date){
this.selectedTime.anyTime=false;
this.setDateTime(dojo.date.toRfc3339(date));
}else{
this.selectedTime.anyTime=true;
}
this.initData();
this.initUI();
},setDateTime:function(_bec){
this.storedTime=_bec;
},onClearSelectedHour:function(evt){
this.clearSelectedHour();
},onClearSelectedMinute:function(evt){
this.clearSelectedMinute();
},onClearSelectedAmPm:function(evt){
this.clearSelectedAmPm();
},onClearSelectedAnyTime:function(evt){
this.clearSelectedAnyTime();
if(this.selectedTime.anyTime){
this.selectedTime.anyTime=false;
this.time=dojo.widget.TimePicker.util.fromRfcDateTime("",this.useDefaultMinutes);
this.initUI();
}
},clearSelectedHour:function(){
var _bf1=this.hourContainerNode.getElementsByTagName("td");
for(var i=0;i<_bf1.length;i++){
dojo.html.setClass(_bf1.item(i),"");
}
},clearSelectedMinute:function(){
var _bf3=this.minuteContainerNode.getElementsByTagName("td");
for(var i=0;i<_bf3.length;i++){
dojo.html.setClass(_bf3.item(i),"");
}
},clearSelectedAmPm:function(){
var _bf5=this.amPmContainerNode.getElementsByTagName("td");
for(var i=0;i<_bf5.length;i++){
dojo.html.setClass(_bf5.item(i),"");
}
},clearSelectedAnyTime:function(){
dojo.html.setClass(this.anyTimeContainerNode,"anyTimeContainer");
},onSetSelectedHour:function(evt){
this.onClearSelectedAnyTime();
this.onClearSelectedHour();
this.setSelectedHour(evt);
this.onSetTime();
},setSelectedHour:function(evt){
if(evt&&evt.target){
if(evt.target.nodeType==dojo.dom.ELEMENT_NODE){
var _bf9=evt.target;
}else{
var _bf9=evt.target.parentNode;
}
dojo.event.browser.stopEvent(evt);
dojo.html.setClass(_bf9,this.classNames.selectedTime);
this.selectedTime["hour"]=_bf9.innerHTML;
}else{
if(!isNaN(evt)){
var _bfa=this.hourContainerNode.getElementsByTagName("td");
if(_bfa.item(evt)){
dojo.html.setClass(_bfa.item(evt),this.classNames.selectedTime);
this.selectedTime["hour"]=_bfa.item(evt).innerHTML;
}
}
}
this.selectedTime.anyTime=false;
},onSetSelectedMinute:function(evt){
this.onClearSelectedAnyTime();
this.onClearSelectedMinute();
this.setSelectedMinute(evt);
this.selectedTime.anyTime=false;
this.onSetTime();
},setSelectedMinute:function(evt){
if(evt&&evt.target){
if(evt.target.nodeType==dojo.dom.ELEMENT_NODE){
var _bfd=evt.target;
}else{
var _bfd=evt.target.parentNode;
}
dojo.event.browser.stopEvent(evt);
dojo.html.setClass(_bfd,this.classNames.selectedTime);
this.selectedTime["minute"]=_bfd.innerHTML;
}else{
if(!isNaN(evt)){
var _bfe=this.minuteContainerNode.getElementsByTagName("td");
if(_bfe.item(evt)){
dojo.html.setClass(_bfe.item(evt),this.classNames.selectedTime);
this.selectedTime["minute"]=_bfe.item(evt).innerHTML;
}
}
}
},onSetSelectedAmPm:function(evt){
this.onClearSelectedAnyTime();
this.onClearSelectedAmPm();
this.setSelectedAmPm(evt);
this.selectedTime.anyTime=false;
this.onSetTime();
},setSelectedAmPm:function(evt){
var _c01=evt.target;
if(evt&&_c01){
if(_c01.nodeType!=dojo.dom.ELEMENT_NODE){
_c01=_c01.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedTime.amPm=_c01.id;
dojo.html.setClass(_c01,this.classNames.selectedTime);
}else{
evt=evt?0:1;
var _c02=this.amPmContainerNode.getElementsByTagName("td");
if(_c02.item(evt)){
this.selectedTime.amPm=_c02.item(evt).id;
dojo.html.setClass(_c02.item(evt),this.classNames.selectedTime);
}
}
},onSetSelectedAnyTime:function(evt){
this.onClearSelectedHour();
this.onClearSelectedMinute();
this.onClearSelectedAmPm();
this.setSelectedAnyTime();
this.onSetTime();
},setSelectedAnyTime:function(evt){
this.selectedTime.anyTime=true;
dojo.html.setClass(this.anyTimeContainerNode,this.classNames.selectedTime+" "+"anyTimeContainer");
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},onSetTime:function(){
if(this.selectedTime.anyTime){
this.time=new Date();
var _c06=dojo.widget.TimePicker.util.toRfcDateTime(this.time);
this.setDateTime(_c06.split("T")[0]);
}else{
var hour=12;
var _c08=0;
var isAm=false;
if(this.selectedTime["hour"]){
hour=parseInt(this.selectedTime["hour"],10);
}
if(this.selectedTime["minute"]){
_c08=parseInt(this.selectedTime["minute"],10);
}
if(this.selectedTime["amPm"]){
isAm=(this.selectedTime["amPm"].toLowerCase()=="am");
}
this.time=new Date();
this.time.setHours(dojo.widget.TimePicker.util.fromAmPmHour(hour,isAm));
this.time.setMinutes(_c08);
this.setDateTime(dojo.widget.TimePicker.util.toRfcDateTime(this.time));
}
this.onValueChanged(this.time);
},onValueChanged:function(date){
}});
dojo.widget.TimePicker.util=new function(){
this.toRfcDateTime=function(_c0b){
if(!_c0b){
_c0b=new Date();
}
_c0b.setSeconds(0);
return dojo.date.strftime(_c0b,"%Y-%m-%dT%H:%M:00%z");
};
this.fromRfcDateTime=function(_c0c,_c0d,_c0e){
var _c0f=new Date();
if(!_c0c||_c0c.indexOf("T")==-1){
if(_c0d){
_c0f.setMinutes(Math.floor(_c0f.getMinutes()/5)*5);
}else{
_c0f.setMinutes(0);
}
}else{
var _c10=_c0c.split("T")[1].split(":");
var _c0f=new Date();
_c0f.setHours(_c10[0]);
_c0f.setMinutes(_c10[1]);
}
return _c0f;
};
this.toAmPmHour=function(hour){
var _c12=hour;
var isAm=true;
if(_c12==0){
_c12=12;
}else{
if(_c12>12){
_c12=_c12-12;
isAm=false;
}else{
if(_c12==12){
isAm=false;
}
}
}
return [_c12,isAm];
};
this.fromAmPmHour=function(_c14,isAm){
var hour=parseInt(_c14,10);
if(isAm&&hour==12){
hour=0;
}else{
if(!isAm&&hour<12){
hour=hour+12;
}
}
return hour;
};
};
dojo.provide("mpiwidgets.widget.ModalAlert");
dojo.declare("mpiwidgets.widget.ModalAlert",null,function(_c17){
this.widgetId=(_c17.widgetId?_c17.widgetId:this.widgetId);
this.title=(_c17.title?_c17.title:this.title);
this.iconSrc=(_c17.iconSrc?_c17.iconSrc:this.iconSrc);
this.alertText=(_c17.alertText?_c17.alertText:this.alertText);
this.width=(_c17.width?_c17.width:this.width);
this.height=(_c17.height?_c17.height:this.height);
this.execute();
},{widgetId:"modalAlert",title:"Attention",iconSrc:"",alertText:"",width:"350px",height:"150px",execute:function(){
var _c18="<br /><br /><br /><p align=center><button style=\"width:60px;\" onClick=\"dojo.widget.byId('"+this.widgetId+"').hide();\">OK</button></p>";
if(!dojo.widget.byId(this.widgetId)){
var div=document.createElement("div");
div.style.position="absolute";
div.innerHTML=this.alertText+_c18;
dojo.body().appendChild(div);
div.style.width=this.width;
div.style.height=this.height;
var _c1a={widgetId:this.widgetId,title:this.title,iconSrc:this.iconSrc,toggle:"fade",resizable:false,windowState:"normal",hasShadow:true};
var _c1b=dojo.widget.createWidget("dojo:ModalFloatingPane",_c1a,div);
}else{
dojo.byId(this.widgetId+"_container").innerHTML=this.alertText+_c18;
dojo.widget.byId(this.widgetId).show();
}
}});
dojo.provide("mpiwidgets.widget.Calendar");
dojo.widget.defineWidget("mpiwidgets.widget.Calendar",dojo.widget.HtmlWidget,{value:"",calendarType:"month",m_WeekStartsOn:"",w_WeekStartsOn:1,ShowWeekNo:false,selectedtimezone:"",timezones:"",eventtypes:{meeting:{title:"Meeting",src:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/meeting.gif")},reminder:{title:"Reminder",src:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/reminder.gif")},appointment:{title:"Appointment",src:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/appointment.gif")}},calendarEvents:{},changeEventTimes:false,createNewEntries:false,DragObject:"",DropObject:"",templatePath:dojo.uri.dojoUri("../mpiwidgets/widget/templates/Calendar.html"),templateCssPath:dojo.uri.dojoUri("../mpiwidgets/widget/templates/Calendar.css"),postMixInProperties:function(){
mpiwidgets.widget.Calendar.superclass.postMixInProperties.apply(this,arguments);
if(!this.m_WeekStartsOn){
this.m_WeekStartsOn=dojo.date.getFirstDayOfWeek(this.lang);
}
this.monthLabels=dojo.lang.unnest(dojo.date.getNames("months","wide","standAlone",this.lang));
var _c1c=dojo.lang.unnest(dojo.date.getNames("days","wide","standAlone",this.lang));
if(this.m_WeekStartsOn>0){
for(var i=0;i<this.m_WeekStartsOn;i++){
_c1c.push(_c1c.shift());
}
}
this.m_DayLabels=_c1c;
this.today=new Date();
},fillInTemplate:function(args,frag){
mpiwidgets.widget.Calendar.superclass.fillInTemplate.apply(this,arguments);
var _c20=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_c20);
this._preInitUI(this.today);
},_preInitUI:function(_c21){
dojo.dom.removeChildren(this.calendarHeadNode);
dojo.dom.removeChildren(this.calendarBodyNode);
dojo.dom.removeChildren(this.calendarFootNode);
this.value=new Date(_c21);
this.firstDay=this._initFirstDay(_c21);
this._setLabels();
if(this.calendarType=="month"){
this._initMonthUI();
}else{
if(this.calendarType=="week"){
this._initWeekUI();
}else{
if(this.calendarType=="day"){
this._initDayUI();
}
}
}
this.onValueChanged(new Date(_c21));
},refreshScreen:function(){
this._preInitUI(new Date(this.value));
},onSetCalendarEntries:function(){
var _c22=false;
if(typeof this.selectedtimezone!="string"&&this.selectedtimezone!=null){
_c22=true;
}
var _c23=false;
var _c24,_c25,_c26,_c27,oLI,_c29,_c2a,src,_c2c,_c2d;
var oDiv,_c2f,_c30,_c31,_c32;
for(var i in this.calendarEvents){
_c23=this.calendarEvents[i].allday;
_c24=dojo.date.fromRfc3339(this.calendarEvents[i].starttime);
if(!_c23&&_c22){
_c24=this.setTZDate(_c24);
}
_c27=dojo.byId(dojo.date.toRfc3339(_c24,"dateOnly"));
if(_c27){
if(this.calendarType=="month"){
if(_c27.childNodes.length==2){
oLI=document.createElement("li");
dojo.html.setClass(oLI,"listItem calendarMore");
oLI.setAttribute("starttime",9999999);
oLI.setAttribute("endtime",9999999);
oA=document.createElement("a");
oA.setAttribute("href","#");
oA.setAttribute("date",dojo.date.toRfc3339(_c24,"dateOnly"));
oA.innerHTML="More...";
dojo.event.connect(oA,"onclick",this,"onDateClicked");
oLI.appendChild(oA);
_c27.appendChild(oLI);
}
if(_c27.childNodes.length>=2){
continue;
}
}
_c25=dojo.date.fromRfc3339(this.calendarEvents[i].endtime);
if(!_c23&&_c22){
_c25=this.setTZDate(_c25);
}
oLI=document.createElement("li");
dojo.html.setClass(oLI,"listItem");
if(_c23){
dojo.html.setClass(oLI,"listItem allDayEvent");
}
oLI.setAttribute("starttime",Number(_c24));
oLI.setAttribute("endtime",Number(_c25));
oLI.setAttribute("eventid",i);
if(_c27.childNodes.length>0){
if(_c23){
_c27.insertBefore(oLI,_c27.childNodes[0]);
}else{
insertedLI=false;
for(var r=0;r<_c27.childNodes.length;r++){
_c26=_c27.childNodes[r].getAttribute("starttime");
if(Number(_c25)<=_c26||Number(_c24)<=_c26){
if(_c27.childNodes[r].getAttribute("eventid")!=oLI.getAttribute("eventid")){
_c27.insertBefore(oLI,_c27.childNodes[r]);
}
insertedLI=true;
break;
}
}
if(!insertedLI){
_c27.appendChild(oLI);
}
}
}else{
_c27.appendChild(oLI);
}
_c30=document.createElement("span");
_c32=document.createElement("div");
_c30.appendChild(_c32);
if(this.calendarType!="month"){
_c29=document.createElement("span");
}
for(var t=0;t<this.calendarEvents[i].type.length;t++){
if(this.eventtypes[this.calendarEvents[i].type[t]]){
oImage=document.createElement("img");
oImage.setAttribute("title",this.eventtypes[this.calendarEvents[i].type[t]].title);
oImage.setAttribute("src",this.eventtypes[this.calendarEvents[i].type[t]].src);
if(this.calendarType!="month"){
_c29.appendChild(oImage);
oLI.appendChild(_c29);
}
_c32.appendChild(oImage.cloneNode(true));
}
}
oDiv=document.createElement("div");
dojo.html.setClass(oDiv,"toolkittime");
sDate=dojo.date.format(_c24,{formatLength:"medium",selector:"dateOnly",locale:this.lang})+"<br />";
sStart=_c2a=sEnd="";
if(!_c23){
_c29=document.createElement("span");
if(!this.calendarEvents[i].repeated&&this.changeEventTimes){
dojo.html.setClass(_c29,"timetext");
}
sStart=dojo.date.format(_c24,{formatLength:"short",selector:"timeOnly",locale:this.lang});
_c2a="";
_c2a+=" - ";
_c2a+=dojo.date.format(_c25,{formatLength:"short",selector:"timeOnly",locale:this.lang});
sEnd=(_c22?" ("+unescape(this.selectedtimezone.sn)+")":"");
sEnd += "<a style=\"cursor:pointer;\" onclick=\"openReminderWindow('" + this.calendarEvents[i].id.substring(4) + "');return false;\"><img src='icon_ical.gif' align='absmiddle' border='0'></a>"
_c29.innerHTML=this.calendarType!="month"&&Number(_c24)!=Number(_c25)?sStart+_c2a:sStart;
oLI.appendChild(_c29);
}
oDiv.innerHTML=sDate+sStart+(Number(_c24)!=Number(_c25)?_c2a:"")+ sEnd;
_c30.appendChild(oDiv);
oDiv=document.createElement("div");
dojo.html.setClass(oDiv,"toolkittitle");
oDiv.innerHTML=this.calendarEvents[i].title;
_c30.appendChild(oDiv);
if(this.calendarEvents[i].body!=""){
oDiv=document.createElement("div");
dojo.html.setClass(oDiv,"toolkitbody");
oDiv.innerHTML=this.calendarEvents[i].body;
_c30.appendChild(oDiv);
}
oLI.setAttribute("itemid",i);
_c29=document.createElement("span");
dojo.html.setClass(_c29,"titletext");
_c2a=this.calendarEvents[i].title;
if(_c2a.length>23&&this.calendarType=="month"){
_c2a=_c2a.substr(0,20)+"...";
}
if(this.calendarEvents[i].url!=""){
_c2a="<a href=\""+this.calendarEvents[i].url+"\">"+_c2a+"</a>";
}
_c29.innerHTML=_c2a;
sHTMLA="";
_c2c=this.calendarEvents[i].attributes;
_c2d=0;
for(var a in _c2c){
if(_c2d>0){
sHTMLA+="<br />";
}
sHTMLA+=a+": "+_c2c[a];
_c2d++;
}
if(sHTMLA!=""){
oDiv=document.createElement("div");
dojo.html.setClass(oDiv,"toolkitattributes");
oDiv.innerHTML=sHTMLA;
_c30.appendChild(oDiv);
}
oLI.appendChild(_c29);
_c29.id="toolTip"+i;
dojo.body().appendChild(_c30);
_c31={connectId:"toolTip"+i,templateCssPath:"",toggle:"fade"};
_c2f=dojo.widget.createWidget("dojo:Tooltip",_c31,_c30);
}
}
},setCalendarEntries:function(_c37){
if(_c37!=""&&typeof _c37=="string"){
_c37=dojo.json.evalJson(_c37);
}
if(_c37){
this.calendarEvents=_c37;
this.onSetCalendarEntries();
}
},setTimeZones:function(_c38){
if(_c38!=""&&typeof _c38=="string"){
_c38=dojo.json.evalJson(_c38);
}
if(_c38){
dojo.html.setClass(this.timezoneLabelNode,"selecticon timezoneicon");
this.timezones=_c38;
}
},_initMonthUI:function(){
var _c39=new Date(this.firstDay);
this.curMonth=new Date(_c39);
this.curMonth.setDate(_c39.getDate()+6);
this.curMonth.setDate(1);
var _c3a=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth,this.m_WeekStartsOn))/7);
var _c3b=this.calendarHeadNode.insertRow(-1);
var _c3c;
for(var i=0;i<7;i++){
_c3c=_c3b.insertCell(-1);
_c3c.innerHTML=this.m_DayLabels[i];
}
var oTR,oTD,_c40,_c41;
for(var week=0;week<_c3a;week++){
oTR=this.calendarBodyNode.insertRow(-1);
oTR.valign="top";
for(var day=0;day<7;++day){
oTD=oTR.insertCell(-1);
var _c44=(_c39.getMonth()<this.value.getMonth())?"otherMonth":(_c39.getMonth()==this.value.getMonth())?"currentMonth":"otherMonth";
if(dojo.date.toRfc3339(_c39,"dateOnly")==dojo.date.toRfc3339(this.today,"dateOnly")){
_c44=_c44+" "+"currentDate";
}
dojo.html.setClass(oTD,_c44);
_c40=document.createElement("div");
dojo.html.setClass(_c40,"clickDate");
_c40.setAttribute("date",dojo.date.toRfc3339(_c39,"dateOnly"));
dojo.event.connect(_c40,"onclick",this,"onDateClicked");
_c40.innerHTML=_c39.getDate();
oTD.appendChild(_c40);
_c41=document.createElement("div");
dojo.html.setClass(_c41,"calendarItems");
var oUL=document.createElement("ul");
oUL.id=dojo.date.toRfc3339(_c39,"dateOnly");
dojo.html.setClass(oUL,"listItems");
_c41.appendChild(oUL);
oTD.appendChild(_c41);
_c39=dojo.date.add(_c39,dojo.date.dateParts.DAY,1);
}
}
},_initWeekUI:function(){
function createDateContent(_c46,_c47,that){
var _c49=document.createElement("div");
dojo.html.setClass(_c49,"clickDate weekDate");
_c49.setAttribute("date",dojo.date.toRfc3339(_c47,"dateOnly"));
dojo.event.connect(_c49,"onclick",that,"onDateClicked");
_c49.innerHTML=_c47.getDate();
_c46.appendChild(_c49);
var _c4a=document.createElement("div");
dojo.html.setClass(_c4a,"weekMonth");
sHTML=dojo.date.format(_c47,{datePattern:"eeee",selector:"dateOnly",locale:that.lang})+"<br />";
sHTML+=dojo.date.format(_c47,{datePattern:"MMMM yyyy",selector:"dateOnly",locale:that.lang});
_c4a.innerHTML=sHTML;
_c46.appendChild(_c4a);
var _c4b=document.createElement("div");
dojo.html.setClass(_c4b,"calendarItems");
var oUL=document.createElement("ul");
oUL.id=dojo.date.toRfc3339(_c47,"dateOnly");
dojo.html.setClass(oUL,"listItems");
_c4b.appendChild(oUL);
_c46.appendChild(_c4b);
}
var _c4d=new Date(this.firstDay);
var oTR,oTD;
for(var r=0;r<4;++r){
oTR=this.calendarBodyNode.insertRow(-1);
if(r<3){
oTD=oTR.insertCell(-1);
var _c51="weekDay currentMonth";
if(dojo.date.toRfc3339(_c4d,"dateOnly")==dojo.date.toRfc3339(this.today,"dateOnly")){
_c51+=" "+"currentDate";
}
dojo.html.setClass(oTD,_c51);
if(r==2){
oTD.rowSpan=2;
}
createDateContent(oTD,_c4d,this);
_c4d=dojo.date.add(_c4d,dojo.date.dateParts.DAY,3);
}
oTD=oTR.insertCell(-1);
var _c51="weekDay currentMonth";
if(dojo.date.toRfc3339(_c4d,"dateOnly")==dojo.date.toRfc3339(this.today,"dateOnly")){
_c51+=" "+"currentDate";
}
dojo.html.setClass(oTD,_c51);
createDateContent(oTD,_c4d,this);
if(r==2){
_c4d=dojo.date.add(_c4d,dojo.date.dateParts.DAY,1);
}else{
_c4d=dojo.date.add(_c4d,dojo.date.dateParts.DAY,-2);
}
}
},_initDayUI:function(){
function createDateContent(_c52,_c53,that){
var _c55=document.createElement("div");
dojo.html.setClass(_c55,"weekDate");
_c55.innerHTML=_c53.getDate();
_c52.appendChild(_c55);
var _c56=document.createElement("div");
dojo.html.setClass(_c56,"weekMonth");
sHTML=dojo.date.format(_c53,{datePattern:"eeee",selector:"dateOnly",locale:that.lang})+"<br />";
sHTML+=dojo.date.format(_c53,{datePattern:"MMMM yyyy",selector:"dateOnly",locale:that.lang});
_c56.innerHTML=sHTML;
_c52.appendChild(_c56);
var _c57=document.createElement("div");
dojo.html.setClass(_c57,"calendarItems");
var oUL=document.createElement("ul");
oUL.id=dojo.date.toRfc3339(_c53,"dateOnly");
dojo.html.setClass(oUL,"listItems");
_c57.appendChild(oUL);
_c52.appendChild(_c57);
}
var _c59=new Date(this.firstDay);
var oTR,oTD;
oTR=this.calendarBodyNode.insertRow(-1);
oTD=oTR.insertCell(-1);
var _c5c="currentMonth";
if(dojo.date.toRfc3339(_c59,"dateOnly")==dojo.date.toRfc3339(this.today,"dateOnly")){
_c5c+=" "+"currentDate";
}
dojo.html.setClass(oTD,_c5c);
createDateContent(oTD,_c59,this);
},getValue:function(){
return dojo.date.toRfc3339(new Date(this.value),"dateOnly");
},getDate:function(){
return this.value;
},onValueChanged:function(_c5d){
},onEventChanged:function(_c5e,_c5f){
},_eventChanged:function(_c60,_c61,_c62,_c63){
if(_c60&&this.calendarEvents[_c61]){
this.calendarEvents[_c61].starttime=this.updateToRfc3339(_c62);
this.calendarEvents[_c61].endtime=this.updateToRfc3339(_c63);
this.onEventChanged(_c61,this.calendarEvents[_c61]);
}
if(!_c60){
this.refreshScreen();
}
},onMoveToDate:function(evt){
evt.stopPropagation();
var d=new Date();
this.moveToDate(d);
},moveToDate:function(_c66){
if(typeof _c66=="string"){
this.value=dojo.date.fromRfc3339(_c66);
}else{
this.value=new Date(_c66);
}
this._preInitUI(this.value);
},onSetCalendarType:function(evt){
evt.stopPropagation();
switch(evt.currentTarget){
case this.dayLabelNode:
this.setCalendarType("day");
break;
case this.weekLabelNode:
this.setCalendarType("week");
break;
case this.monthLabelNode:
this.setCalendarType("month");
break;
}
},onDateClicked:function(evt){
var _c69=evt.target;
dojo.event.browser.stopEvent(evt);
this.value=dojo.date.fromRfc3339(_c69.getAttribute("date"));
this.setCalendarType("day");
},setCalendarType:function(_c6a){
this.calendarType=_c6a;
var d=new Date(this.value);
this._preInitUI(d);
},toProperCase:function(_c6c){
var _c6d=_c6c.split(" ");
var _c6e="";
for(var i=0;i<_c6d.length;i++){
if(i>0){
_c6e+=" ";
}
_c6e+=_c6d[i].charAt(0).toUpperCase()+_c6d[i].substring(1,_c6d[i].length).toLowerCase();
}
return _c6e;
},_setLabels:function(){
var d=new Date(this.value);
var _c71=this.monthLabels[d.getMonth()];
var _c72=d.getFullYear();
var _c73,_c74,_c75,_c76;
var _c77=dojo.date._getGregorianBundle(this.lang);
if(this.calendarType=="month"){
_c73=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
_c74=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
_c75=dojo.date.format(_c73,{datePattern:"MMM yyyy",selector:"dateOnly",locale:this.lang});
_c76=dojo.date.format(_c74,{datePattern:"MMM yyyy",selector:"dateOnly",locale:this.lang});
}else{
if(this.calendarType=="week"){
d=new Date(this.firstDay);
var end=dojo.date.add(d,dojo.date.dateParts.DAY,6);
if(d.getMonth()!=end.getMonth()){
_c71=this.monthLabels[d.getMonth()]+" - "+this.monthLabels[end.getMonth()];
}
if(d.getFullYear()!=end.getFullYear()){
_c72=d.getFullYear()+" - "+end.getFullYear();
}
_c73=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
_c74=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(this.ShowWeekNo){
var _c79=dojo.date.getWeekOfYear(_c73,this.w_WeekStartsOn)+1;
var _c7a=dojo.date.getWeekOfYear(d,this.w_WeekStartsOn)+1;
var _c7b=dojo.date.getWeekOfYear(_c74,this.w_WeekStartsOn)+1;
var _c7c=_c77["field-week"];
_c75=_c7c+" "+_c79;
_c76=_c7c+" "+_c7b;
currentLabel=_c7c+" "+_c7a+" - "+currentLabel;
}else{
_c75=dojo.date.format(_c73,{formatLength:"medium",selector:"dateOnly",locale:this.lang});
_c76=dojo.date.format(_c74,{formatLength:"medium",selector:"dateOnly",locale:this.lang});
}
}else{
if(this.calendarType=="day"){
d=new Date(this.firstDay);
_c73=dojo.date.add(d,dojo.date.dateParts.DAY,-1);
_c74=dojo.date.add(d,dojo.date.dateParts.DAY,1);
_c75=dojo.date.format(_c73,{formatLength:"medium",selector:"dateOnly",locale:this.lang});
_c76=dojo.date.format(_c74,{formatLength:"medium",selector:"dateOnly",locale:this.lang});
}
}
}
this.prevLabelNode.innerHTML=_c75;
this.currentMonthLabelNode.innerHTML=_c71;
this.currentYearLabelNode.innerHTML=_c72;
this.nextLabelNode.innerHTML=_c76;
this.dayLabelNode.title=this.toProperCase(_c77["field-day"]);
this.weekLabelNode.title=this.toProperCase(_c77["field-week"]);
this.monthLabelNode.title=this.toProperCase(_c77["field-month"]);
this.todayLabelNode.title=this.toProperCase(dojo.date.format(this.today,{formatLength:"long",selector:"dateOnly",locale:this.lang}));
if(this.createNewEntries){
dojo.html.setClass(this.newEntryLabelNode,"selecticon newentryicon");
}else{
dojo.html.setClass(this.newEntryLabelNode,"");
}
if(this.timezones!=""){
dojo.html.setClass(this.timezoneLabelNode,"selecticon timezoneicon");
if(typeof this.selectedtimezone!="string"&&this.selectedtimezone!=null){
this.timezoneLabelNode.title=this.toProperCase(_c77["field-zone"])+": "+unescape(this.selectedtimezone.sn);
var oTR=document.createElement("tr");
var oTD=document.createElement("td");
oTD.colSpan="6";
oTD.style.paddingLeft="3px";
oTD.innerHTML=this.toProperCase(_c77["field-zone"])+": "+this.selectedtimezone.name;
oTR.appendChild(oTD);
this.calendarFootNode.appendChild(oTR);
}else{
this.timezoneLabelNode.title=this.toProperCase(_c77["field-zone"]);
}
}else{
dojo.html.setClass(this.timezoneLabelNode,"");
}
},menuItemSelected:function(type,_c80){
var d=new Date(this.value);
if(type=="month"){
d=d.setMonth(_c80);
var _c82=new Date(d);
if(_c82.getMonth()!=_c80){
var days=dojo.date.getDaysInMonth(new Date(_c82.getFullYear(),_c82.getMonth()-1));
d=new Date(_c82.getFullYear(),_c82.getMonth()-1,days);
}
}else{
if(type=="year"){
d=d.setFullYear(_c80);
}
}
this.moveToDate(d);
},showMenu:function(evt){
evt.stopPropagation();
var _c85=this.widgetId;
var d=new Date(this.value);
var menu;
switch(evt.currentTarget){
case this.currentMonthLabelNode:
menu=dojo.widget.createWidget("PopupMenu2",{});
var attr,_c89;
var _c8a=0;
for(var i=0;i<this.monthLabels.length;i++){
var _c8c=this.monthLabels[i]+" hello";
attr={templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td>&nbsp;</td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"</tr>",caption:this.toProperCase(this.monthLabels[i]),month:i,disabled:(d.getMonth()==i?true:false),onClick:function(){
dojo.widget.byId(_c85).menuItemSelected("month",this.month);
}};
menu.addChild(dojo.widget.createWidget("MenuItem2",attr));
_c8a++;
}
break;
case this.currentYearLabelNode:
var _c8d=dojo.date.add(d,dojo.date.dateParts.YEAR,-2);
menu=dojo.widget.createWidget("PopupMenu2",{});
var attr,_c89;
for(var i=0;i<13;i++){
attr={templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td>&nbsp;</td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"</tr>",caption:_c8d.getFullYear()+i,disabled:(_c8d.getFullYear()+i==d.getFullYear()?true:false),onClick:function(){
dojo.widget.byId(_c85).menuItemSelected("year",this.caption);
}};
menu.addChild(dojo.widget.createWidget("MenuItem2",attr));
}
break;
}
menu.open(evt.currentTarget,null,evt.currentTarget);
},dayOfWeek:function(day,_c8f,year){
var a=Math.floor((14-_c8f)/12);
var y=year-a;
var m=_c8f+12*a-2;
var d=(day+y+Math.floor(y/4)-Math.floor(y/100)+Math.floor(y/400)+Math.floor((31*m)/12))%7;
return d+1;
},NthDay:function(nth,_c96,_c97,year){
if(nth>0){
return (nth-1)*7+1+(7+_c96-this.dayOfWeek((nth-1)*7+1,_c97,year))%7;
}
var days=dojo.date.getDaysInMonth(new Date(year,_c97));
return days-(this.dayOfWeek(days,_c97,year)-_c96+7)%7;
},isDST:function(_c9a){
if(this.selectedtimezone.dst==0){
return false;
}else{
var year=_c9a.getFullYear();
var aDST=this.selectedtimezone.dst.split(",");
var _c9d=this.selectedtimezone.standard.split(",");
var _c9e=aDST[0];
var _c9f=aDST[1];
var _ca0=aDST[2];
var _ca1=_c9d[0];
var _ca2=_c9d[1];
var _ca3=_c9d[2];
var _ca4=new Date(year,_c9e-1,this.NthDay(_c9f,_ca0,_c9e,year),2,_c9a.getTimezoneOffset()+this.selectedtimezone.offset);
var _ca5=new Date(year,_ca1-1,this.NthDay(_ca2,_ca3,_ca1,year),2,_c9a.getTimezoneOffset()+this.selectedtimezone.offset);
if(Number(_ca4)<Number(_ca5)){
if(Number(_c9a)>Number(_ca4)&&Number(_c9a)<Number(_ca5)){
return true;
}else{
return false;
}
}else{
_ca5=new Date(year+1,_ca1-1,this.NthDay(_ca2,_ca3,_ca1,year+1),2,_c9a.getTimezoneOffset()+this.selectedtimezone.offset);
if(Number(_c9a)>Number(_ca4)&&Number(_c9a)<Number(_ca5)){
return true;
}else{
return false;
}
}
}
},setTZDate:function(_ca6){
var _ca7=this.isDST(_ca6)?3600000:0;
var utc=_ca6.getTime()+(_ca6.getTimezoneOffset()*60000);
return new Date(utc+(this.selectedtimezone.offset*60000)+_ca7);
},setAbleToCreateNew:function(_ca9){
this.createNewEntries=_ca9;
if(_ca9){
dojo.html.setClass(this.newEntryLabelNode,"selecticon newentryicon");
}
},createNewEntry:function(evt){
evt.stopPropagation();
if(dojo.widget.byId("newentrydialog")){
dojo.widget.byId("newentrydialog").show();
}else{
var _cab="460px";
var _cac="350px";
var div=document.createElement("div");
div.style.position="absolute";
div.style.width=_cab;
div.style.height=_cac;
dojo.body().appendChild(div);
var pars={contentClass:"mpiwidgets:CalendarDialogNewEntry",openerId:this.widgetId,title:"New Entry",iconSrc:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/calendar_add.gif"),id:"newentrydialog",width:_cab,height:_cac,resizable:false};
var _caf=dojo.widget.createWidget("mpiwidgets:CalendarDialog",pars,div);
}
},onNewEntry:function(_cb0){
},_createNewEntry:function(_cb1){
this.onNewEntry(_cb1);
var d=new Date(this.value);
this._preInitUI(d);
},showTimeZone:function(evt){
evt.stopPropagation();
if(dojo.widget.byId("timezonedialog")){
dojo.widget.byId("timezonedialog").show();
}else{
if(this.timezones!=""){
var _cb4=dojo.date._getGregorianBundle(this.lang);
var _cb5="445px";
var _cb6="130px";
var div=document.createElement("div");
div.style.position="absolute";
div.style.width=_cb5;
div.style.height=_cb6;
dojo.body().appendChild(div);
var pars={contentClass:"mpiwidgets:CalendarDialogTimezone",openerId:this.widgetId,title:this.toProperCase(_cb4["field-zone"]),iconSrc:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/timezone_icon.png"),id:"timezonedialog",width:_cb5,height:_cb6,resizable:false};
var _cb9=dojo.widget.createWidget("mpiwidgets:CalendarDialog",pars,div);
}
}
},onSetTimeZone:function(){
},_setTimeZone:function(_cba){
if(_cba==""){
this.selectedtimezone="";
}else{
for(var i=0;i<this.timezones.length;i++){
if(this.timezones[i].sn==_cba){
this.selectedtimezone=this.timezones[i];
break;
}
}
}
this.onSetTimeZone();
var d=new Date(this.value);
this._preInitUI(d);
},updateToRfc3339:function(_cbd){
var _=dojo.string.pad;
var _cbf=[];
var date=[_(_cbd.getFullYear(),4),_(_cbd.getMonth()+1,2),_(_cbd.getDate(),2)].join("-");
_cbf.push(date);
var time=[_(_cbd.getHours(),2),_(_cbd.getMinutes(),2),_(_cbd.getSeconds(),2)].join(":");
var _cc2=_cbd.getTimezoneOffset();
if(typeof this.selectedtimezone!="string"&&this.selectedtimezone!=null){
_cc2=-this.selectedtimezone.offset;
}
time+=(_cc2>0?"-":"+")+_(Math.floor(Math.abs(_cc2)/60),2)+":"+_(Math.abs(_cc2)%60,2);
_cbf.push(time);
return _cbf.join("T");
},_dropFunction:function(evt){
evt.stopPropagation();
try{
this.DragObject=evt.dragObject.domNode;
this.DropObject=evt.dropTarget;
if(this.DropObject.tagName=="LI"){
this.DropObject=this.DropObject.parentNode;
}
var _cc4=this.DragObject.getAttribute("itemid");
if(this.calendarEvents[_cc4].allday){
var _cc5=new Date(parseInt(this.DragObject.getAttribute("starttime")));
var _cc6=new Date(parseInt(this.DragObject.getAttribute("endtime")));
var _cc7=dojo.date.fromRfc3339(this.DropObject.getAttribute("id"));
_cc5.setFullYear(_cc7.getFullYear());
_cc5.setMonth(_cc7.getMonth());
_cc5.setDate(_cc7.getDate());
_cc6.setFullYear(_cc7.getFullYear());
_cc6.setMonth(_cc7.getMonth());
_cc6.setDate(_cc7.getDate());
this._eventChanged(true,_cc4,_cc5,_cc6);
}else{
var _cc8="300px";
var _cc9="290px";
var div=document.createElement("div");
div.style.position="absolute";
div.style.width=_cc8;
div.style.height=_cc9;
dojo.body().appendChild(div);
var pars={contentClass:"mpiwidgets:CalendarDialogChangeTime",openerId:this.widgetId,title:"Change",iconSrc:dojo.uri.dojoUri("../mpiwidgets/widget/templates/calimages/timezone_icon.png"),width:_cc8,height:_cc9,resizable:false};
var _ccc=dojo.widget.createWidget("mpiwidgets:CalendarDialog",pars,div);
}
}
catch(e){
}
},onIncrementCalendar:function(evt){
evt.stopPropagation();
var d=new Date(this.value);
switch(evt.currentTarget){
case this.nextLabelNode:
if(this.calendarType=="month"){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
if(this.calendarType=="week"){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
}else{
if(this.calendarType=="day"){
d=dojo.date.add(d,dojo.date.dateParts.DAY,1);
}
}
}
break;
case this.prevLabelNode:
if(this.calendarType=="month"){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
if(this.calendarType=="week"){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
}else{
if(this.calendarType=="day"){
d=dojo.date.add(d,dojo.date.dateParts.DAY,-1);
}
}
}
break;
}
this._preInitUI(d);
},_initFirstDay:function(_ccf){
var d=new Date(_ccf);
if(this.calendarType=="month"){
d.setDate(1);
d.setDate(d.getDate()-this._getAdjustedDay(d,this.m_WeekStartsOn));
}else{
if(this.calendarType=="week"){
d.setDate(d.getDate()-this._getAdjustedDay(d,this.w_WeekStartsOn));
}
}
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_cd1,_cd2){
var days=[0,1,2,3,4,5,6];
if(_cd2>0){
for(var i=0;i<_cd2;i++){
days.unshift(days.pop());
}
}
return days[_cd1.getDay()];
},destroy:function(){
mpiwidgets.widget.Calendar.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("mpiwidgets.widget.CalendarDialog",[dojo.widget.HtmlWidget,dojo.widget.FloatingPaneBase,dojo.widget.ModalDialogBase],{templatePath:dojo.uri.dojoUri("src/widget/templates/Editor2/EditorDialog.html"),modal:true,width:"",height:"",windowState:"normal",displayCloseAction:true,contentClass:"",openerId:"",fillInTemplate:function(args,frag){
this.fillInFloatingPaneTemplate(args,frag);
mpiwidgets.widget.CalendarDialog.superclass.fillInTemplate.call(this,args,frag);
},postCreate:function(){
if(this.modal){
dojo.widget.ModalDialogBase.prototype.postCreate.call(this);
}else{
with(this.domNode.style){
zIndex=999;
display="none";
}
}
dojo.widget.FloatingPaneBase.prototype.postCreate.apply(this,arguments);
mpiwidgets.widget.CalendarDialog.superclass.postCreate.call(this);
if(this.width&&this.height){
with(this.domNode.style){
width=this.width;
height=this.height;
}
}
},createContent:function(){
if(!this.contentWidget&&this.contentClass){
this.contentWidget=dojo.widget.createWidget(this.contentClass);
this.addChild(this.contentWidget);
}
},show:function(){
if(!this.contentWidget){
mpiwidgets.widget.CalendarDialog.superclass.show.apply(this,arguments);
this.createContent();
mpiwidgets.widget.CalendarDialog.superclass.hide.call(this);
}
if(!this.contentWidget||!this.contentWidget.loadContent()){
return;
}
this.showFloatingPane();
mpiwidgets.widget.CalendarDialog.superclass.show.apply(this,arguments);
if(this.modal){
this.showModalDialog();
}
if(this.modal){
this.bg.style.zIndex=this.domNode.style.zIndex-1;
}
},onShow:function(){
mpiwidgets.widget.CalendarDialog.superclass.onShow.call(this);
this.onFloatingPaneShow();
},closeWindow:function(){
this.hide();
mpiwidgets.widget.CalendarDialog.superclass.closeWindow.apply(this,arguments);
},hide:function(){
if(this.modal){
this.hideModalDialog();
}
mpiwidgets.widget.CalendarDialog.superclass.hide.call(this);
},checkSize:function(){
if(this.isShowing()){
if(this.modal){
this._sizeBackground();
}
this.placeModalDialog();
this.onResized();
}
}});
dojo.widget.defineWidget("mpiwidgets.widget.CalendarDialogTimezone",dojo.widget.HtmlWidget,{templatePath:dojo.uri.dojoUri("../mpiwidgets/widget/templates/timezones.html"),widgetsInTemplate:true,openerId:"",loadContent:function(){
this.openerId=dojo.widget.byId(this.parent.openerId);
this.timezonesnode.options.length=0;
this.timezonesnode.options[this.timezonesnode.options.length]=new Option("Default","");
for(var i=0;i<this.openerId.timezones.length;i++){
this.timezonesnode.options[this.timezonesnode.options.length]=new Option(this._buildGMT(this.openerId.timezones[i].offset)+this.openerId.timezones[i].name,this.openerId.timezones[i].sn);
if(this.openerId.selectedtimezone&&this.openerId.timezones[i].sn==this.openerId.selectedtimezone.sn){
this.timezonesnode.options[this.timezonesnode.options.length-1].selected=true;
}
}
return true;
},_buildGMT:function(_cd8){
if(_cd8==0){
return "(GMT) ";
}
var hour=Math.abs(parseInt(_cd8/60));
var _cda=60*(Math.abs(_cd8/60)-hour);
return "(GMT"+(_cd8<0?"-":"+")+dojo.string.pad(""+hour,2)+":"+dojo.string.pad(""+_cda,2)+") ";
},ok:function(){
this.openerId._setTimeZone(this.timezonesnode.options[this.timezonesnode.selectedIndex].value);
this.cancel();
},cancel:function(){
this.parent.hide();
}});
dojo.widget.defineWidget("mpiwidgets.widget.CalendarDialogChangeTime",dojo.widget.HtmlWidget,{templatePath:dojo.uri.dojoUri("../mpiwidgets/widget/templates/changetime.html"),widgetsInTemplate:true,openerId:"",itemId:"",eventChanged:false,dropDate:"",starttime:"",endtime:"",newstarttime:"",newendtime:"",loadContent:function(){
this.openerId=dojo.widget.byId(this.parent.openerId);
var _cdb=this.openerId.DragObject;
var _cdc=this.openerId.DropObject;
this.itemId=_cdb.getAttribute("itemid");
this.starttime=new Date(parseInt(_cdb.getAttribute("starttime")));
this.endtime=new Date(parseInt(_cdb.getAttribute("endtime")));
this.dropDate=dojo.date.fromRfc3339(_cdc.getAttribute("id"));
this.date_node.innerHTML=dojo.date.format(this.dropDate,{formatLength:"medium",selector:"dateOnly",locale:this.openerId.lang});
var _cdd={storedTime:dojo.date.toRfc3339(this.starttime),lang:this.openerId.lang};
this.startPicker=dojo.widget.createWidget("TimePicker",_cdd,this.starttime_node);
var _cde={storedTime:dojo.date.toRfc3339(this.endtime),lang:this.openerId.lang};
this.endPicker=dojo.widget.createWidget("TimePicker",_cde,this.endtime_node);
return true;
},ok:function(){
this.eventChanged=true;
this.newstarttime=new Date(this.startPicker.time);
this.newendtime=new Date(this.endPicker.time);
this.newstarttime.setFullYear(this.dropDate.getFullYear());
this.newstarttime.setMonth(this.dropDate.getMonth());
this.newstarttime.setDate(this.dropDate.getDate());
this.newendtime.setFullYear(this.dropDate.getFullYear());
this.newendtime.setMonth(this.dropDate.getMonth());
this.newendtime.setDate(this.dropDate.getDate());
this.cancel();
},cancel:function(){
this.parent.hide();
this.openerId._eventChanged(this.eventChanged,this.itemId,this.newstarttime,this.newendtime);
this.startPicker.destroy();
this.endPicker.destroy();
}});
dojo.widget.defineWidget("mpiwidgets.widget.CalendarDialogNewEntry",dojo.widget.HtmlWidget,{templatePath:dojo.uri.dojoUri("../mpiwidgets/widget/templates/newcalendarentry.html"),widgetsInTemplate:true,openerId:"",loadContent:function(){
this.openerId=dojo.widget.byId(this.parent.openerId);
this.ne_subject.value="";
this.ne_location.value="";
this.ne_categories.value="";
this.ne_body.value="";
this.ne_alldayevent.checked=false;
var _cdf=new Date();
this.ne_starttime.value=dojo.date.format(_cdf,{formatLength:"short",selector:"dateTime"});
_cdf.setHours(_cdf.getHours()+1);
this.ne_endtime.value=dojo.date.format(_cdf,{formatLength:"short",selector:"dateTime"});
var _ce0=this.openerId.eventtypes;
this.ne_type.options.length=0;
this.ne_type.options[this.ne_type.options.length]=new Option("No Type","");
for(var i in _ce0){
this.ne_type.options[this.ne_type.options.length]=new Option(_ce0[i].title,_ce0[i].title);
}
return true;
},alldayclicked:function(){
if(this.ne_alldayevent.checked){
var _ce2=dojo.date.parse(this.ne_starttime.value,{selector:"dateTime",formatLength:"short"});
if(_ce2==null){
_ce2=new Date();
}
this.ne_starttime.value=dojo.date.format(_ce2,{formatLength:"short",selector:"dateOnly"});
this.ne_endtime.value="";
this.ne_endtime.disabled=true;
}else{
var _ce2=dojo.date.parse(this.ne_starttime.value,{selector:"dateOnly",formatLength:"short"});
if(_ce2==null){
_ce2=new Date();
}else{
var _ce3=new Date();
_ce2.setHours(_ce3.getHours(),_ce3.getMinutes());
}
this.ne_starttime.value=dojo.date.format(_ce2,{formatLength:"short",selector:"dateTime"});
_ce2.setHours(_ce2.getHours()+1);
this.ne_endtime.disabled=false;
this.ne_endtime.value=dojo.date.format(_ce2,{formatLength:"short",selector:"dateTime"});
}
},ok:function(){
var isOk=true;
var _ce5="";
if(this.ne_subject.value==""){
isOk=false;
_ce5+="<br />"+"Title:";
}
var attr;
if(this.ne_alldayevent.checked){
attr={selector:"dateOnly",formatLength:"short"};
}else{
attr={selector:"dateTime",formatLength:"short"};
}
var _ce7=dojo.date.parse(this.ne_starttime.value,attr);
if(_ce7==null){
isOk=false;
_ce7=new Date();
_ce5+="<br />"+"Start time: Please format time correctly!<br />i.e. "+dojo.date.format(_ce7,attr);
}
var _ce8;
if(!this.ne_alldayevent.checked){
_ce8=dojo.date.parse(this.ne_endtime.value,{selector:"dateTime",formatLength:"short"});
if(_ce8==null){
isOk=false;
_ce8=new Date();
_ce5+="<br />"+"End time: Please format time correctly!<br />i.e. "+dojo.date.format(_ce8,{formatLength:"short"});
}
}else{
_ce8=_ce7;
}
if(!isOk){
var _ce9={height:"230px",iconSrc:dojo.uri.dojoUri("../mpiwidgets/widget/templates/images/error.gif"),alertText:"<strong>Please edit/complete the following field(s):</strong><br />"+_ce5};
var _cea=new mpiwidgets.widget.ModalAlert(_ce9);
}else{
var _ceb={starttime:dojo.date.toRfc3339(_ce7),endtime:dojo.date.toRfc3339(_ce8),allday:this.ne_alldayevent.checked,repeated:false,title:this.ne_subject.value,url:"",body:this.ne_body.value,attributes:{Location:this.ne_location.value,Categories:this.ne_categories.value},type:[this.ne_type.options[this.ne_type.selectedIndex].value]};
this.openerId._createNewEntry(_ceb);
this.cancel();
}
},cancel:function(){
this.parent.hide();
}});
dojo.provide("mpiwidgets.widget.CloseableWindow");
dojo.widget.defineWidget("mpiwidgets.widget.CloseableWindow",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{isContainer:true,caption:"",connectId:"",templatePath:dojo.uri.moduleUri("mpiwidgets.widget","templates/CloseableWindow.html"),/*templateCssPath:dojo.uri.moduleUri("mpiwidgets.widget","templates/CloseableWindow.css"),*/postCreate:function(args,frag){
if(this._connectNode){
dojo.debug("Connecting CloseableWindow to node: "+this._connectNode);
dojo.event.connect(this._connectNode,"onclick",this,"_toggle");
}
mpiwidgets.widget.CloseableWindow.superclass.postCreate.call(this,args,frag);
},fillInTemplate:function(){
this._connectNode=dojo.byId(this.connectId);
this.applyPopupBasicStyle();
if(this.caption!=""){
this.labelText.appendChild(document.createTextNode(this.caption));
}
mpiwidgets.widget.CloseableWindow.superclass.fillInTemplate.apply(this,arguments);
},open:function(x,y,_cf0){
var _cf1={setOpenedSubpopup:function(){
},applyPopupBasicStyle:function(){
},popupIndex:-10};
dojo.widget.PopupContainerBase.prototype.open.call(this,x,y,_cf1,_cf0);
},_toggle:function(e){
dojo.debug("showing now: "+this.isShowingNow);
if(!this.isShowingNow){
dojo.debug("showing closeablewindow");
var x=dojo.html.getAbsolutePosition(this._connectNode).x;
var y=dojo.html.getAbsolutePosition(this._connectNode).y;
this.open(x,y,this._connectNode);
}else{
dojo.debug("hiding closeablewindow");
this.close();
}
e.preventDefault();
}});
dojo.provide("mpiwidgets.widget.PageableContentPane");
dojo.widget.defineWidget("mpiwidgets.widget.PageableContentPane",[dojo.widget.HtmlWidget,dojo.widget.ContentPane],{currentIndex:0,pageSize:0,totalResults:0,baseUrl:"",sortColumns:"",currentSort:"",isContainer:true,currentSortOrder:0,templatePath:dojo.uri.moduleUri("mpiwidgets.widget","templates/PageableContentPane.html"),/*templateCssPath:dojo.uri.moduleUri("mpiwidgets.widget","templates/PageableContentPane.css"),*/postCreate:function(args,frag){
if(this.baseUrl==""){
this.baseUrl=location.href.replace(/#$/,"");
}
},fillInTemplate:function(){
var _cf7=this.currentIndex;
if(_cf7>this.totalResults){
var opt=document.createElement("OPTION");
opt.value=_cf7;
opt.innerHTML="All";
opt.startIndex=_cf7;
this.pageSelect.appendChild(opt);
return;
}
while(_cf7<=this.totalResults){
var end=_cf7+this.pageSize-1;
if(end>this.totalResults){
end=this.totalResults;
}
dojo.debug("creating select for page range "+_cf7+"-"+end);
var opt=document.createElement("OPTION");
opt.value=_cf7;
opt.innerHTML=_cf7+"-"+end;
opt.startIndex=_cf7;
this.pageSelect.appendChild(opt);
_cf7=end+1;
}
if(this.sortColumns!=""&&typeof this.sortColumns=="string"){
this.sortColumns=dojo.json.evalJson(this.sortColumns);
dojo.html.setStyle(this.orderBySelect,"display","");
for(k in this.sortColumns){
if(this.currentSort==""){
this.currentSort=k;
}
dojo.debug("creating select for sort "+k);
var opt=document.createElement("OPTION");
opt.value=k;
var _cfa=(typeof this.sortColumns[k]=="object")?this.sortColumns[k].order:0;
if(this.currentSort==k){
opt.selected=true;
this.currentSortOrder=_cfa;
}
opt.innerHTML=(typeof this.sortColumns[k]=="object")?this.sortColumns[k].name:this.sortColumns[k];
this.orderBySelect.appendChild(opt);
}
}
mpiwidgets.widget.PageableContentPane.superclass.fillInTemplate.apply(this,arguments);
},selectPage:function(){
this.currentIndex=this.pageSelect.options[this.pageSelect.selectedIndex].startIndex;
this._updateState();
},selectSort:function(){
this.currentSort=this.orderBySelect.options[this.orderBySelect.selectedIndex].value;
this.currentSortOrder=(typeof this.sortColumns[this.currentSort]=="object")?this.sortColumns[this.currentSort].order:0;
this._updateState();
},nextPage:function(){
var _cfb=this.currentIndex+this.pageSize;
if(_cfb>this.totalResults){
return;
}
if(_cfb<=this.currentIndex){
return;
}
this.currentIndex=_cfb;
this._updateState();
},previousPage:function(){
var _cfc=this.currentIndex-this.pageSize;
if(_cfc<1){
_cfc=1;
}
if(_cfc>=this.currentIndex){
return;
}
this.currentIndex=_cfc;
this._updateState();
},forceReload:function(){
var _cfd=this.baseUrl;
var _cfe="&";
if(_cfd.indexOf("?")==-1){
_cfe="?";
}
_cfd+=_cfe+"_forceReload="+new Date().getTime();
this.baseUrl=_cfd;
this._updateState();
},_updateState:function(){
var _cff=this.baseUrl;
var _d00="&";
if(_cff.indexOf("?")==-1){
_d00="?";
}
_cff+=_d00+"mpi.page.subpage=true&mpi.page.startIndex="+(this.currentIndex-1)+"&mpi.page.resultCount="+this.pageSize;
if(this.currentSort!=""){
_cff+="&mpi.page.orderBy="+this.currentSort;
_cff+="&mpi.page.order="+this.currentSortOrder;
}
dojo.debug("Loading page: "+_cff);
this.setUrl(_cff);
this.pageSelect.selectedIndex=Math.floor(this.currentIndex/this.pageSize);
}});

