/*
	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: 5779 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.global());
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_36,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(){
var _5f=arguments[0];
if((_5f===true)||(_5f=="common")||(_5f&&dojo.render[_5f].capable)){
var _60=[];
for(var i=1;i<arguments.length;i++){
_60.push(arguments[i]);
}
dojo.require.apply(dojo,_60);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_62,_63){
return dojo.hostenv.setModulePrefix(_62,_63);
};
dojo.setModulePrefix=function(_64,_65){
dojo.deprecated("dojo.setModulePrefix(\""+_64+"\", \""+_65+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_64,_65);
};
dojo.exists=function(obj,_67){
var p=_67.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(_6a){
return _6a?_6a.toLowerCase():dojo.locale;
};
dojo.hostenv.searchLocalePath=function(_6b,_6c,_6d){
_6b=dojo.hostenv.normalizeLocale(_6b);
var _6e=_6b.split("-");
var _6f=[];
for(var i=_6e.length;i>0;i--){
_6f.push(_6e.slice(0,i).join("-"));
}
_6f.push(false);
if(_6c){
_6f.reverse();
}
for(var j=_6f.length-1;j>=0;j--){
var loc=_6f[j]||"ROOT";
var _73=_6d(loc);
if(_73){
break;
}
}
};
dojo.hostenv.preloadLocalizations=function(){
var _74=["se","da","ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","da-da","en-us","pt","se-se","zh","fr","it","xx","en-gb","zh-tw","de-de","ko-kr","ja-jp","ko","en","ja"];
if(_74){
dojo.registerModulePath("nls","nls");
function preload(_75){
_75=dojo.hostenv.normalizeLocale(_75);
dojo.hostenv.searchLocalePath(_75,true,function(loc){
for(var i=0;i<_74.length;i++){
if(_74[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _78=djConfig.extraLocale||[];
for(var i=0;i<_78.length;i++){
preload(_78[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7a,_7b,_7c){
dojo.hostenv.preloadLocalizations();
var _7d=[_7a,"nls",_7b].join(".");
var _7e=dojo.hostenv.findModule(_7d);
if(_7e){
if(djConfig.localizationComplete&&_7e._built){
return;
}
var _7f=dojo.hostenv.normalizeLocale(_7c).replace("-","_");
var _80=_7d+"."+_7f;
if(dojo.hostenv.findModule(_80)){
return;
}
}
_7e=dojo.hostenv.startPackage(_7d);
var _81=dojo.hostenv.getModuleSymbols(_7a);
var _82=_81.concat("nls").join("/");
var _83;
dojo.hostenv.searchLocalePath(_7c,false,function(loc){
var _85=loc.replace("-","_");
var _86=_7d+"."+_85;
var _87=false;
if(!dojo.hostenv.findModule(_86)){
dojo.hostenv.startPackage(_86);
var _88=[_82];
if(loc!="ROOT"){
_88.push(loc);
}
_88.push(_7b);
var _89=_88.join("/")+".js";
_87=dojo.hostenv.loadPath(_89,null,function(_8a){
var _8b=function(){
};
_8b.prototype=_83;
_7e[_85]=new _8b();
for(var j in _8a){
_7e[_85][j]=_8a[j];
}
});
}else{
_87=true;
}
if(_87&&_7e[_85]){
_83=_7e[_85];
}else{
_7e[_85]=_83;
}
});
};
(function(){
var _8d=djConfig.extraLocale;
if(_8d){
if(!_8d instanceof Array){
_8d=[_8d];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_91){
req(m,b,_91);
if(_91){
return;
}
for(var i=0;i<_8d.length;i++){
req(m,b,_8d[i]);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _93=document.location.toString();
var _94=_93.split("?",2);
if(_94.length>1){
var _95=_94[1];
var _96=_95.split("&");
for(var x in _96){
var sp=_96[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 _9a=document.getElementsByTagName("script");
var _9b=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_9a.length;i++){
var src=_9a[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_9b);
if(m){
var _9f=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_9f+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_9f;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_9f;
}
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 _a7=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_a7>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_a7+6,_a7+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 _a9=window["document"];
var tdi=_a9["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _ad=null;
var _ae=null;
try{
_ad=new XMLHttpRequest();
}
catch(e){
}
if(!_ad){
for(var i=0;i<3;++i){
var _b0=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_ad=new ActiveXObject(_b0);
}
catch(e){
_ae=e;
}
if(_ad){
dojo.hostenv._XMLHTTP_PROGIDS=[_b0];
break;
}
}
}
if(!_ad){
return dojo.raise("XMLHTTP not available",_ae);
}
return _ad;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_b2,_b3){
if(!_b2){
this._blockAsync=true;
}
var _b4=this.getXmlhttpObject();
function isDocumentOk(_b5){
var _b6=_b5["status"];
return Boolean((!_b6)||((200<=_b6)&&(300>_b6))||(_b6==304));
}
if(_b2){
var _b7=this,_b8=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_b4.onreadystatechange=function(){
if(_b8){
gbl.clearTimeout(_b8);
_b8=null;
}
if(_b7._blockAsync||(xhr&&xhr._blockAsync)){
_b8=gbl.setTimeout(function(){
_b4.onreadystatechange.apply(this);
},10);
}else{
if(4==_b4.readyState){
if(isDocumentOk(_b4)){
_b2(_b4.responseText);
}
}
}
};
}
_b4.open("GET",uri,_b2?true:false);
try{
_b4.send(null);
if(_b2){
return null;
}
if(!isDocumentOk(_b4)){
var err=Error("Unable to load "+uri+" status:"+_b4.status);
err.status=_b4.status;
err.responseText=_b4.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_b3)&&(!_b2)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _b4.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_bc){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_bc);
}else{
try{
var _bd=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_bd){
_bd=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_bc));
_bd.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_bc+"</div>");
}
catch(e2){
window.status=_bc;
}
}
}
};
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(_bf,_c0,fp,_c2){
var _c3=_bf["on"+_c0]||function(){
};
_bf["on"+_c0]=function(){
fp.apply(_bf,arguments);
_c3.apply(_bf,arguments);
};
return true;
}
function dj_load_init(e){
var _c5=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_c5!="domcontentloaded"&&_c5!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _c6=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_c6();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_c6);
}
}
if(document.addEventListener){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
document.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);
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _c8=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_c8=_c8.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_c8=_c8.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_c8.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _c9=new dojo.xml.Parse();
if(_c8.length>0){
for(var x=0;x<_c8.length;x++){
var _cb=document.getElementById(_c8[x]);
if(!_cb){
continue;
}
var _cc=_c9.parseElement(_cb,null,true);
dojo.widget.getParser().createComponents(_cc);
}
}else{
if(djConfig.parseWidgets){
var _cc=_c9.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_cc);
}
}
}
}
};
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(_d1,_d2){
dj_currentContext=_d1;
dj_currentDocument=_d2;
};
dojo._fireCallback=function(_d3,_d4,_d5){
if((_d4)&&((typeof _d3=="string")||(_d3 instanceof String))){
_d3=_d4[_d3];
}
return (_d4?_d3.apply(_d4,_d5||[]):_d3());
};
dojo.withGlobal=function(_d6,_d7,_d8,_d9){
var _da;
var _db=dj_currentContext;
var _dc=dj_currentDocument;
try{
dojo.setContext(_d6,_d6.document);
_da=dojo._fireCallback(_d7,_d8,_d9);
}
finally{
dojo.setContext(_db,_dc);
}
return _da;
};
dojo.withDoc=function(_dd,_de,_df,_e0){
var _e1;
var _e2=dj_currentDocument;
try{
dj_currentDocument=_dd;
_e1=dojo._fireCallback(_de,_df,_e0);
}
finally{
dj_currentDocument=_e2;
}
return _e1;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _e3=false;
var _e4=false;
var _e5=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_e3=true;
}else{
if(typeof this["load"]=="function"){
_e4=true;
}else{
if(window.widget){
_e5=true;
}
}
}
var _e6=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_e6.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_e3)&&(!_e5)){
_e6.push("browser_debug.js");
}
var _e7=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_e7=djConfig["baseLoaderUri"];
}
for(var x=0;x<_e6.length;x++){
var _e9=_e7+"src/"+_e6[x];
if(_e3||_e4){
load(_e9);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_e9+"'></scr"+"ipt>");
}
catch(e){
var _ea=document.createElement("script");
_ea.src=_e9;
document.getElementsByTagName("head")[0].appendChild(_ea);
}
}
}
})();
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,_f1,_f2){
var out="";
for(var i=0;i<_f1;i++){
out+=str;
if(_f2&&i<_f1-1){
out+=_f2;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_100,_101){
if(typeof _101!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_101+"] must be a function (subclass: ["+_100+"']");
}
_100.prototype=new _101();
_100.prototype.constructor=_100;
_100.superclass=_101.prototype;
_100["super"]=_101.prototype;
};
dojo.lang._mixin=function(obj,_103){
var tobj={};
for(var x in _103){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_103[x])){
obj[x]=_103[x];
}
}
if(dojo.render.html.ie&&(typeof (_103["toString"])=="function")&&(_103["toString"]!=obj["toString"])&&(_103["toString"]!=tobj["toString"])){
obj.toString=_103.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_107){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_10a,_10b){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_10a.prototype,arguments[i]);
}
return _10a;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_10e,_10f,_110,_111){
if(!dojo.lang.isArrayLike(_10e)&&dojo.lang.isArrayLike(_10f)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_10e;
_10e=_10f;
_10f=temp;
}
var _113=dojo.lang.isString(_10e);
if(_113){
_10e=_10e.split("");
}
if(_111){
var step=-1;
var i=_10e.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_10e.length;
}
if(_110){
while(i!=end){
if(_10e[i]===_10f){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_10e[i]==_10f){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_117,_118,_119){
return dojo.lang.find(_117,_118,_119,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_11a,_11b){
return dojo.lang.find(_11a,_11b)>-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){
if(!it){
return false;
}
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()&&/\{\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.extras");
dojo.lang.setTimeout=function(func,_126){
var _127=window,_128=2;
if(!dojo.lang.isFunction(func)){
_127=func;
func=_126;
_126=arguments[2];
_128++;
}
if(dojo.lang.isString(func)){
func=_127[func];
}
var args=[];
for(var i=_128;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_127,args);
},_126);
};
dojo.lang.clearTimeout=function(_12b){
dojo.global().clearTimeout(_12b);
};
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(_134,_135,_136){
with(dojo.parseObjPath(_134,_135,_136)){
return dojo.evalProp(prop,obj,_136);
}
};
dojo.lang.setObjPathValue=function(_137,_138,_139,_13a){
if(arguments.length<4){
_13a=true;
}
with(dojo.parseObjPath(_137,_139,_13a)){
if(obj&&(_13a||(prop in obj))){
obj[prop]=_138;
}
}
};
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_13c,_13d,_13e){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_13c){
this.mimetype=_13c;
}
if(_13d){
this.transport=_13d;
}
if(arguments.length>=4){
this.changeUrl=_13e;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){
},error:function(type,_143){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_145){
if(_145["url"]){
_145.url=_145.url.toString();
}
if(_145["formNode"]){
_145.formNode=dojo.byId(_145.formNode);
}
if(!_145["method"]&&_145["formNode"]&&_145["formNode"].method){
_145.method=_145["formNode"].method;
}
if(!_145["handle"]&&_145["handler"]){
_145.handle=_145.handler;
}
if(!_145["load"]&&_145["loaded"]){
_145.load=_145.loaded;
}
if(!_145["changeUrl"]&&_145["changeURL"]){
_145.changeUrl=_145.changeURL;
}
_145.encoding=dojo.lang.firstValued(_145["encoding"],djConfig["bindEncoding"],"");
_145.sendTransport=dojo.lang.firstValued(_145["sendTransport"],djConfig["ioSendTransport"],false);
var _146=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_145[fn]&&_146(_145[fn])){
continue;
}
if(_145["handle"]&&_146(_145["handle"])){
_145[fn]=_145.handle;
}
}
dojo.lang.mixin(this,_145);
}});
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(_14d){
if(!(_14d instanceof dojo.io.Request)){
try{
_14d=new dojo.io.Request(_14d);
}
catch(e){
dojo.debug(e);
}
}
var _14e="";
if(_14d["transport"]){
_14e=_14d["transport"];
if(!this[_14e]){
dojo.io.sendBindError(_14d,"No dojo.io.bind() transport with name '"+_14d["transport"]+"'.");
return _14d;
}
if(!this[_14e].canHandle(_14d)){
dojo.io.sendBindError(_14d,"dojo.io.bind() transport with name '"+_14d["transport"]+"' cannot handle this type of request.");
return _14d;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_14d))){
_14e=tmp;
}
}
if(_14e==""){
dojo.io.sendBindError(_14d,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _14d;
}
}
this[_14e].bind(_14d);
_14d.bindSuccess=true;
return _14d;
};
dojo.io.sendBindError=function(_151,_152){
if((typeof _151.error=="function"||typeof _151.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _153=new dojo.io.Error(_152);
setTimeout(function(){
_151[(typeof _151.error=="function")?"error":"handle"]("error",_153,null,_151);
},50);
}else{
dojo.raise(_152);
}
};
dojo.io.queueBind=function(_154){
if(!(_154 instanceof dojo.io.Request)){
try{
_154=new dojo.io.Request(_154);
}
catch(e){
dojo.debug(e);
}
}
var _155=_154.load;
_154.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_155.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _157=_154.error;
_154.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_157.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_154);
dojo.io._dispatchNextQueueBind();
return _154;
};
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,_15a,last){
var enc=/utf/i.test(_15a||"")?encodeURIComponent:dojo.string.encodeAscii;
var _15d=[];
var _15e=new Object();
for(var name in map){
var _160=function(elt){
var val=enc(name)+"="+enc(elt);
_15d[(last==name)?"push":"unshift"](val);
};
if(!_15e[name]){
var _163=map[name];
if(dojo.lang.isArray(_163)){
dojo.lang.forEach(_163,_160);
}else{
_160(_163);
}
}
}
return _15d.join("&");
};
dojo.io.setIFrameSrc=function(_164,src,_166){
try{
var r=dojo.render.html;
if(!_166){
if(r.safari){
_164.location=src;
}else{
frames[_164.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_164.contentWindow.document;
}else{
if(r.safari){
idoc=_164.document;
}else{
idoc=_164.contentWindow;
}
}
if(!idoc){
_164.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.array");
dojo.lang.has=function(obj,name){
try{
return (typeof obj[name]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _16d=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_16d++;
break;
}
}
return (_16d==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_171){
var _172=dojo.lang.isString(arr);
if(_172){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_171)){
_171=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_171){
var _173=obj;
obj=_171;
_171=_173;
}
}
if(Array.map){
var _174=Array.map(arr,_171,obj);
}else{
var _174=[];
for(var i=0;i<arr.length;++i){
_174.push(_171.call(obj,arr[i]));
}
}
if(_172){
return _174.join("");
}else{
return _174;
}
};
dojo.lang.reduce=function(arr,_177,obj,_179){
var _17a=_177;
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_17a=_179.call(ob,_17a,val);
});
return _17a;
};
dojo.lang.forEach=function(_17d,_17e,_17f){
if(dojo.lang.isString(_17d)){
_17d=_17d.split("");
}
if(Array.forEach){
Array.forEach(_17d,_17e,_17f);
}else{
if(!_17f){
_17f=dj_global;
}
for(var i=0,l=_17d.length;i<l;i++){
_17e.call(_17f,_17d[i],i,_17d);
}
}
};
dojo.lang._everyOrSome=function(_182,arr,_184,_185){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_182)?"every":"some"](arr,_184,_185);
}else{
if(!_185){
_185=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _188=_184.call(_185,arr[i],i,arr);
if((_182)&&(!_188)){
return false;
}else{
if((!_182)&&(_188)){
return true;
}
}
}
return (_182)?true:false;
}
};
dojo.lang.every=function(arr,_18a,_18b){
return this._everyOrSome(true,arr,_18a,_18b);
};
dojo.lang.some=function(arr,_18d,_18e){
return this._everyOrSome(false,arr,_18d,_18e);
};
dojo.lang.filter=function(arr,_190,_191){
var _192=dojo.lang.isString(arr);
if(_192){
arr=arr.split("");
}
if(Array.filter){
var _193=Array.filter(arr,_190,_191);
}else{
if(!_191){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_191=dj_global;
}
var _193=[];
for(var i=0;i<arr.length;i++){
if(_190.call(_191,arr[i],i,arr)){
_193.push(arr[i]);
}
}
}
if(_192){
return _193.join("");
}else{
return _193;
}
};
dojo.lang.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;
};
dojo.lang.toArray=function(_198,_199){
var _19a=[];
for(var i=_199||0;i<_198.length;i++){
_19a.push(_198[i]);
}
return _19a;
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_19c,_19d){
var fcn=(dojo.lang.isString(_19d)?_19c[_19d]:_19d)||function(){
};
return function(){
return fcn.apply(_19c,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_19f,_1a0,_1a1){
var nso=(_1a0||dojo.lang.anon);
if((_1a1)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_19f){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_19f;
return ret;
};
dojo.lang.forward=function(_1a5){
return function(){
return this[_1a5].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _1a8=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_1a8.push(arguments[x]);
}
var _1aa=(func["__preJoinArity"]||func.length)-_1a8.length;
function gather(_1ab,_1ac,_1ad){
var _1ae=_1ad;
var _1af=_1ac.slice(0);
for(var x=0;x<_1ab.length;x++){
_1af.push(_1ab[x]);
}
_1ad=_1ad-_1ab.length;
if(_1ad<=0){
var res=func.apply(ns,_1af);
_1ad=_1ae;
return res;
}else{
return function(){
return gather(arguments,_1af,_1ad);
};
}
}
return gather([],_1a8,_1aa);
};
dojo.lang.curryArguments=function(ns,func,args,_1b5){
var _1b6=[];
var x=_1b5||0;
for(x=_1b5;x<args.length;x++){
_1b6.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_1b6));
};
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,_1bc,_1bd){
if(!farr.length){
if(typeof _1bd=="function"){
_1bd();
}
return;
}
if((typeof _1bc=="undefined")&&(typeof cb=="number")){
_1bc=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1bc){
_1bc=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1bc,_1bd);
},_1bc);
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_1be,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _1be.replace(/\%\{(\w+)\}/g,function(_1c1,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 _1c4=str.split(" ");
for(var i=0;i<_1c4.length;i++){
_1c4[i]=_1c4[i].charAt(0).toUpperCase()+_1c4[i].substring(1);
}
return _1c4.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 _1c9=escape(str);
var _1ca,re=/%u([0-9A-F]{4})/i;
while((_1ca=_1c9.match(re))){
var num=Number("0x"+_1ca[1]);
var _1cd=escape("&#"+num+";");
ret+=_1c9.substring(0,_1ca.index)+_1cd;
_1c9=_1c9.substring(_1ca.index+_1ca[0].length);
}
ret+=_1c9.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,_1d2){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1d2){
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,_1db){
if(_1db){
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,_1df,_1e0){
if(_1e0){
str=str.toLowerCase();
_1df=_1df.toLowerCase();
}
return str.indexOf(_1df)==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,_1e6){
if(_1e6=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1e6=="\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,_1e8){
var _1e9=[];
for(var i=0,_1eb=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1e8){
_1e9.push(str.substring(_1eb,i));
_1eb=i+1;
}
}
_1e9.push(str.substr(_1eb));
return _1e9;
};
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 _1ed=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_1ed.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1ef,_1f0){
var node=_1ef.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1f0&&node&&node.tagName&&node.tagName.toLowerCase()!=_1f0.toLowerCase()){
node=dojo.dom.nextElement(node,_1f0);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1f2,_1f3){
var node=_1f2.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_1f3&&node&&node.tagName&&node.tagName.toLowerCase()!=_1f3.toLowerCase()){
node=dojo.dom.prevElement(node,_1f3);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1f6){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1f6&&_1f6.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1f6);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1f8){
if(!node){
return null;
}
if(_1f8){
_1f8=_1f8.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1f8&&_1f8.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1f8);
}
return node;
};
dojo.dom.moveChildren=function(_1f9,_1fa,trim){
var _1fc=0;
if(trim){
while(_1f9.hasChildNodes()&&_1f9.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1f9.removeChild(_1f9.firstChild);
}
while(_1f9.hasChildNodes()&&_1f9.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1f9.removeChild(_1f9.lastChild);
}
}
while(_1f9.hasChildNodes()){
_1fa.appendChild(_1f9.firstChild);
_1fc++;
}
return _1fc;
};
dojo.dom.copyChildren=function(_1fd,_1fe,trim){
var _200=_1fd.cloneNode(true);
return this.moveChildren(_200,_1fe,trim);
};
dojo.dom.removeChildren=function(node){
var _202=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _202;
};
dojo.dom.replaceChildren=function(node,_204){
dojo.dom.removeChildren(node);
node.appendChild(_204);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_207,_208){
var _209=[];
var _20a=(_207&&(_207 instanceof Function||typeof _207=="function"));
while(node){
if(!_20a||_207(node)){
_209.push(node);
}
if(_208&&_209.length>0){
return _209[0];
}
node=node.parentNode;
}
if(_208){
return null;
}
return _209;
};
dojo.dom.getAncestorsByTag=function(node,tag,_20d){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_20d);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_212,_213){
if(_213&&node){
node=node.parentNode;
}
while(node){
if(node==_212){
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 _216=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _217=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_217.length;i++){
try{
doc=new ActiveXObject(_217[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_216.implementation)&&(_216.implementation.createDocument)){
doc=_216.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_21a){
if(!_21a){
_21a="text/xml";
}
if(!dj_undef("DOMParser")){
var _21b=new DOMParser();
return _21b.parseFromString(str,_21a);
}else{
if(!dj_undef("ActiveXObject")){
var _21c=dojo.dom.createDocument();
if(_21c){
_21c.async=false;
_21c.loadXML(str);
return _21c;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _21d=dojo.doc();
if(_21d.createElement){
var tmp=_21d.createElement("xml");
tmp.innerHTML=str;
if(_21d.implementation&&_21d.implementation.createDocument){
var _21f=_21d.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_21f.importNode(tmp.childNodes.item(i),true);
}
return _21f;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_222){
if(_222.firstChild){
_222.insertBefore(node,_222.firstChild);
}else{
_222.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_225){
if(_225!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _226=ref.parentNode;
_226.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_229){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_229!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_229);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_22d){
if((!node)||(!ref)||(!_22d)){
return false;
}
switch(_22d.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,_22f,_230){
var _231=_22f.childNodes;
if(!_231.length){
_22f.appendChild(node);
return true;
}
var _232=null;
for(var i=0;i<_231.length;i++){
var _234=_231.item(i)["getAttribute"]?parseInt(_231.item(i).getAttribute("dojoinsertionindex")):-1;
if(_234<_230){
_232=_231.item(i);
}
}
if(_232){
return dojo.dom.insertAfter(node,_232);
}else{
return dojo.dom.insertBefore(node,_231.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _237=dojo.doc();
dojo.dom.replaceChildren(node,_237.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _238="";
if(node==null){
return _238;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_238+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_238+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _238;
}
};
dojo.dom.hasParent=function(node){
return 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,_23e,_23f,_240){
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(_23e,_23f,_240);
}else{
var _241=elem.ownerDocument;
var _242=_241.createNode(2,_23f,_23e);
_242.nodeValue=_240;
elem.setAttributeNode(_242);
}
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _247=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_249){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_247.apply(this,[_249]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _24a=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_24c){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_24a){
_24a.apply(this,[_24c]);
}
};
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,_24f){
if(!dojo.render.html.opera){
var _250=this._getUrlQuery(_24f.href);
if(_250==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_250==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_250==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _251=this.historyStack.pop();
if(!_251){
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(_251);
},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 _258=url.split("?");
if(_258.length<2){
return null;
}else{
return _258[1];
}
},_loadIframeHistory:function(){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
dojo.io.checkChildrenForFile=function(node){
var _25b=false;
var _25c=node.getElementsByTagName("input");
dojo.lang.forEach(_25c,function(_25d){
if(_25b){
return;
}
if(_25d.getAttribute("type")=="file"){
_25b=true;
}
});
return _25b;
};
dojo.io.formHasFile=function(_25e){
return dojo.io.checkChildrenForFile(_25e);
};
dojo.io.updateNode=function(node,_260){
node=dojo.byId(node);
var args=_260;
if(dojo.lang.isString(_260)){
args={url:_260};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
if(dojo["event"]){
try{
dojo.event.browser.clean(node.firstChild);
}
catch(e){
}
}
node.removeChild(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(_267,_268,_269){
if((!_267)||(!_267.tagName)||(!_267.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_269){
_269=dojo.io.formFilter;
}
var enc=/utf/i.test(_268||"")?encodeURIComponent:dojo.string.encodeAscii;
var _26b=[];
for(var i=0;i<_267.elements.length;i++){
var elm=_267.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_269(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){
_26b.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_26b.push(name+"="+enc(elm.value));
}
}else{
_26b.push(name+"="+enc(elm.value));
}
}
}
var _271=_267.getElementsByTagName("input");
for(var i=0;i<_271.length;i++){
var _272=_271[i];
if(_272.type.toLowerCase()=="image"&&_272.form==_267&&_269(_272)){
var name=enc(_272.name);
_26b.push(name+"="+enc(_272.value));
_26b.push(name+".x=0");
_26b.push(name+".y=0");
}
}
return _26b.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 _278=form.getElementsByTagName("input");
for(var i=0;i<_278.length;i++){
var _279=_278[i];
if(_279.type.toLowerCase()=="image"&&_279.form==form){
this.connect(_279,"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 _280=false;
if(node.disabled||!node.name){
_280=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_280=node==this.clickedButton;
}else{
_280=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _280;
},connect:function(_281,_282,_283){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_281,_282,this,_283);
}else{
var fcn=dojo.lang.hitch(this,_283);
_281[_282]=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 _286=this;
var _287={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_289,_28a){
return url+"|"+_289+"|"+_28a.toLowerCase();
}
function addToCache(url,_28c,_28d,http){
_287[getCacheKey(url,_28c,_28d)]=http;
}
function getFromCache(url,_290,_291){
return _287[getCacheKey(url,_290,_291)];
}
this.clearCache=function(){
_287={};
};
function doLoad(_292,http,url,_295,_296){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_292.method.toLowerCase()=="head"){
var _298=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _298;
};
var _299=_298.split(/[\r\n]+/g);
for(var i=0;i<_299.length;i++){
var pair=_299[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_292.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_292.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_292.mimetype=="application/xml")||(_292.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(_296){
addToCache(url,_295,_292.method,http);
}
_292[(typeof _292.load=="function")?"load":"handle"]("load",ret,http,_292);
}else{
var _29c=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_292[(typeof _292.error=="function")?"error":"handle"]("error",_29c,http,_292);
}
}
function setHeaders(http,_29e){
if(_29e["headers"]){
for(var _29f in _29e["headers"]){
if(_29f.toLowerCase()=="content-type"&&!_29e["contentType"]){
_29e["contentType"]=_29e["headers"][_29f];
}else{
http.setRequestHeader(_29f,_29e["headers"][_29f]);
}
}
}
}
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&&!_286._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 _2a3=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2a3,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 _2a4=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_2a5){
return _2a4&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"],(_2a5["mimetype"].toLowerCase()||""))&&!(_2a5["formNode"]&&dojo.io.formHasFile(_2a5["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_2a6){
if(!_2a6["url"]){
if(!_2a6["formNode"]&&(_2a6["backButton"]||_2a6["back"]||_2a6["changeUrl"]||_2a6["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(_2a6);
return true;
}
}
var url=_2a6.url;
var _2a8="";
if(_2a6["formNode"]){
var ta=_2a6.formNode.getAttribute("action");
if((ta)&&(!_2a6["url"])){
url=ta;
}
var tp=_2a6.formNode.getAttribute("method");
if((tp)&&(!_2a6["method"])){
_2a6.method=tp;
}
_2a8+=dojo.io.encodeForm(_2a6.formNode,_2a6.encoding,_2a6["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_2a6["file"]){
_2a6.method="post";
}
if(!_2a6["method"]){
_2a6.method="get";
}
if(_2a6.method.toLowerCase()=="get"){
_2a6.multipart=false;
}else{
if(_2a6["file"]){
_2a6.multipart=true;
}else{
if(!_2a6["multipart"]){
_2a6.multipart=false;
}
}
}
if(_2a6["backButton"]||_2a6["back"]||_2a6["changeUrl"]){
dojo.undo.browser.addToHistory(_2a6);
}
var _2ab=_2a6["content"]||{};
if(_2a6.sendTransport){
_2ab["dojo.transport"]="xmlhttp";
}
do{
if(_2a6.postContent){
_2a8=_2a6.postContent;
break;
}
if(_2ab){
_2a8+=dojo.io.argsFromMap(_2ab,_2a6.encoding);
}
if(_2a6.method.toLowerCase()=="get"||!_2a6.multipart){
break;
}
var t=[];
if(_2a8.length){
var q=_2a8.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(_2a6.file){
if(dojo.lang.isArray(_2a6.file)){
for(var i=0;i<_2a6.file.length;++i){
var o=_2a6.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=_2a6.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+"--","");
_2a8=t.join("\r\n");
}
}while(false);
var _2b1=_2a6["sync"]?false:true;
var _2b2=_2a6["preventCache"]||(this.preventCache==true&&_2a6["preventCache"]!=false);
var _2b3=_2a6["useCache"]==true||(this.useCache==true&&_2a6["useCache"]!=false);
if(!_2b2&&_2b3){
var _2b4=getFromCache(url,_2a8,_2a6.method);
if(_2b4){
doLoad(_2a6,_2b4,url,_2a8,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_2a6);
var _2b6=false;
if(_2b1){
var _2b7=this.inFlight.push({"req":_2a6,"http":http,"url":url,"query":_2a8,"useCache":_2b3,"startTime":_2a6.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_286._blockAsync=true;
}
if(_2a6.method.toLowerCase()=="post"){
if(!_2a6.user){
http.open("POST",url,_2b1);
}else{
http.open("POST",url,_2b1,_2a6.user,_2a6.password);
}
setHeaders(http,_2a6);
http.setRequestHeader("Content-Type",_2a6.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2a6.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_2a8);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2a6,{status:404},url,_2a8,_2b3);
}
}else{
var _2b8=url;
if(_2a8!=""){
_2b8+=(_2b8.indexOf("?")>-1?"&":"?")+_2a8;
}
if(_2b2){
_2b8+=(dojo.string.endsWithAny(_2b8,"?","&")?"":(_2b8.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_2a6.method.toUpperCase(),_2b8,_2b1);
setHeaders(http,_2a6);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2a6,{status:404},url,_2a8,_2b3);
}
}
if(!_2b1){
doLoad(_2a6,http,url,_2a8,_2b3);
_286._blockAsync=false;
}
_2a6.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,_2ba,days,path,_2bd,_2be){
var _2bf=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_2bf=d.toGMTString();
}
_2ba=escape(_2ba);
document.cookie=name+"="+_2ba+";"+(_2bf!=-1?" expires="+_2bf+";":"")+(path?"path="+path:"")+(_2bd?"; domain="+_2bd:"")+(_2be?"; 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 _2c3=document.cookie.substring(idx+name.length+1);
var end=_2c3.indexOf(";");
if(end==-1){
end=_2c3.length;
}
_2c3=_2c3.substring(0,end);
_2c3=unescape(_2c3);
return _2c3;
};
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,_2ca,_2cb,_2cc){
if(arguments.length==5){
_2cc=_2ca;
_2ca=null;
_2cb=null;
}
var _2cd=[],_2ce,_2cf="";
if(!_2cc){
_2ce=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_2ce){
_2ce={};
}
for(var prop in obj){
if(prop==null){
delete _2ce[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
_2ce[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _2ce){
_2cd.push(escape(prop)+"="+escape(_2ce[prop]));
}
_2cf=_2cd.join("&");
}
dojo.io.cookie.setCookie(name,_2cf,days,path,_2ca,_2cb);
};
dojo.io.cookie.getObjectCookie=function(name){
var _2d2=null,_2d3=dojo.io.cookie.getCookie(name);
if(_2d3){
_2d2={};
var _2d4=_2d3.split("&");
for(var i=0;i<_2d4.length;i++){
var pair=_2d4[i].split("=");
var _2d7=pair[1];
if(isNaN(_2d7)){
_2d7=unescape(pair[1]);
}
_2d2[unescape(pair[0])]=_2d7;
}
}
return _2d2;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _2d8=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_2d8=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
dojo.provide("dojo.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 _2db=dojo.global();
var _2dc=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_2dc.documentElement.clientWidth;
h=_2db.innerHeight;
}else{
if(!dojo.render.html.opera&&_2db.innerWidth){
w=_2db.innerWidth;
h=_2db.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_2dc,"documentElement.clientWidth")){
var w2=_2dc.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_2dc.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 _2e0=dojo.global();
var _2e1=dojo.doc();
var top=_2e0.pageYOffset||_2e1.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_2e0.pageXOffset||_2e1.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _2e6=dojo.doc();
var _2e7=dojo.byId(node);
type=type.toLowerCase();
while((_2e7)&&(_2e7.nodeName.toLowerCase()!=type)){
if(_2e7==(_2e6["body"]||_2e6["documentElement"])){
return null;
}
_2e7=_2e7.parentNode;
}
return _2e7;
};
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 _2ef={x:0,y:0};
if(e.pageX||e.pageY){
_2ef.x=e.pageX;
_2ef.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_2ef.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_2ef.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _2ef;
};
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){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _2f4=dojo.doc().createElement("script");
_2f4.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_2f4);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_2f7,_2f8,args,_2fa,_2fb){
dojo.deprecated("dojo.html."+_2f7,"replaced by dojo.html."+_2f8+"("+(_2fa?"node, {"+_2fa+": "+_2fa+"}":"")+")"+(_2fb?"."+_2fb:""),"0.5");
var _2fc=[];
if(_2fa){
var _2fd={};
_2fd[_2fa]=args[1];
_2fc.push(args[0]);
_2fc.push(_2fd);
}else{
_2fc=args;
}
var ret=dojo.html[_2f8].apply(dojo.html,args);
if(_2fb){
return ret[_2fb];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_300,uri){
var loc=dojo.hostenv.getModulePrefix(_300);
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _305=new dojo.uri.Uri(arguments[i].toString());
var _306=new dojo.uri.Uri(uri.toString());
if(_305.path==""&&_305.scheme==null&&_305.authority==null&&_305.query==null){
if(_305.fragment!=null){
_306.fragment=_305.fragment;
}
_305=_306;
}else{
if(_305.scheme==null){
_305.scheme=_306.scheme;
if(_305.authority==null){
_305.authority=_306.authority;
if(_305.path.charAt(0)!="/"){
var path=_306.path.substring(0,_306.path.lastIndexOf("/")+1)+_305.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;
}
}
}
}
_305.path=segs.join("/");
}
}
}
}
uri="";
if(_305.scheme!=null){
uri+=_305.scheme+":";
}
if(_305.authority!=null){
uri+="//"+_305.authority;
}
uri+=_305.path;
if(_305.query!=null){
uri+="?"+_305.query;
}
if(_305.fragment!=null){
uri+="#"+_305.fragment;
}
}
this.uri=uri.toString();
var _30a="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_30a));
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){
_30a="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_30a));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.html.style");
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_311){
return (new RegExp("(^|\\s+)"+_311+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_313){
_313+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_313);
};
dojo.html.addClass=function(node,_315){
if(dojo.html.hasClass(node,_315)){
return false;
}
_315=(dojo.html.getClass(node)+" "+_315).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_315);
};
dojo.html.setClass=function(node,_317){
node=dojo.byId(node);
var cs=new String(_317);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_317);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_31a,_31b){
try{
if(!_31b){
var _31c=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_31a+"(\\s+|$)"),"$1$2");
}else{
var _31c=dojo.html.getClass(node).replace(_31a,"");
}
dojo.html.setClass(node,_31c);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_31e,_31f){
dojo.html.removeClass(node,_31f);
dojo.html.addClass(node,_31e);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_320,_321,_322,_323,_324){
var _325=dojo.doc();
_321=dojo.byId(_321)||_325;
var _326=_320.split(/\s+/g);
var _327=[];
if(_323!=1&&_323!=2){
_323=0;
}
var _328=new RegExp("(\\s|^)(("+_326.join(")|(")+"))(\\s|$)");
var _329=_326.join(" ").length;
var _32a=[];
if(!_324&&_325.evaluate){
var _32b=".//"+(_322||"*")+"[contains(";
if(_323!=dojo.html.classMatchType.ContainsAny){
_32b+="concat(' ',@class,' '), ' "+_326.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_323==2){
_32b+=" and string-length(@class)="+_329+"]";
}else{
_32b+="]";
}
}else{
_32b+="concat(' ',@class,' '), ' "+_326.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _32c=_325.evaluate(_32b,_321,null,XPathResult.ANY_TYPE,null);
var _32d=_32c.iterateNext();
while(_32d){
try{
_32a.push(_32d);
_32d=_32c.iterateNext();
}
catch(e){
break;
}
}
return _32a;
}else{
if(!_322){
_322="*";
}
_32a=_321.getElementsByTagName(_322);
var node,i=0;
outer:
while(node=_32a[i++]){
var _330=dojo.html.getClasses(node);
if(_330.length==0){
continue outer;
}
var _331=0;
for(var j=0;j<_330.length;j++){
if(_328.test(_330[j])){
if(_323==dojo.html.classMatchType.ContainsAny){
_327.push(node);
continue outer;
}else{
_331++;
}
}else{
if(_323==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_331==_326.length){
if((_323==dojo.html.classMatchType.IsOnly)&&(_331==_330.length)){
_327.push(node);
}else{
if(_323==dojo.html.classMatchType.ContainsAll){
_327.push(node);
}
}
}
}
return _327;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_333){
var arr=_333.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(_337){
return _337.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_339,_33a){
node=dojo.byId(node);
var _339=dojo.html.toSelectorCase(_339);
var _33b=dojo.html.toCamelCase(_339);
if(!node||!node.style){
return _33a;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_339);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_339);
}else{
return _33a;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_33b];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_339);
}else{
return _33a;
}
};
dojo.html.getStyleProperty=function(node,_33e){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_33e)]:undefined);
};
dojo.html.getStyle=function(node,_340){
var _341=dojo.html.getStyleProperty(node,_340);
return (_341?_341:dojo.html.getComputedStyle(node,_340));
};
dojo.html.setStyle=function(node,_343,_344){
node=dojo.byId(node);
if(node&&node.style){
var _345=dojo.html.toCamelCase(_343);
node.style[_345]=_344;
}
};
dojo.html.setStyleText=function(_346,text){
try{
_346.style.cssText=text;
}
catch(e){
_346.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_348,_349){
if(!_349.style.cssText){
_348.setAttribute("style",_349.getAttribute("style"));
}else{
_348.style.cssText=_349.style.cssText;
}
dojo.html.addClass(_348,dojo.html.getClass(_349));
};
dojo.html.getUnitValue=function(node,_34b,_34c){
var s=dojo.html.getComputedStyle(node,_34b);
if((!s)||((s=="auto")&&(_34c))){
return {value:0,units:"px"};
}
var _34e=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_34e){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_34e[1]),units:_34e[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_350,_351){
var _352=dojo.html.getUnitValue(node,_350,_351);
if(isNaN(_352.value)){
return 0;
}
if((_352.value)&&(_352.units!="px")){
return NaN;
}
return _352.value;
};
dojo.html.setPositivePixelValue=function(node,_354,_355){
if(isNaN(_355)){
return false;
}
node.style[_354]=Math.max(0,_355)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_356,_357,_358){
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){
_358=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_358=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_356+" { "+_357+" }";
return dojo.html.styleSheet.insertRule(rule,_358);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_356,_357,_358);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_35a){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_35a){
_35a=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_35a);
}
}else{
if(document.styleSheets[0]){
if(!_35a){
_35a=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_35a);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_35d,_35e){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _35f=dojo.hostenv.getText(URI,false,_35e);
if(_35f===null){
return;
}
_35f=dojo.html.fixPathsInCssText(_35f,URI);
if(_35d){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_35f)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _364=doc.getElementsByTagName("style");
for(var i=0;i<_364.length;i++){
if(_364[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _365=dojo.html.insertCssText(_35f);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_35f,"nodeRef":_365});
if(_365&&djConfig.isDebug){
_365.setAttribute("dbgHref",URI);
}
return _365;
};
dojo.html.insertCssText=function(_366,doc,URI){
if(!_366){
return;
}
if(!doc){
doc=document;
}
if(URI){
_366=dojo.html.fixPathsInCssText(_366,URI);
}
var _369=doc.createElement("style");
_369.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(_369);
}
if(_369.styleSheet){
_369.styleSheet.cssText=_366;
}else{
var _36b=doc.createTextNode(_366);
_369.appendChild(_36b);
}
return _369;
};
dojo.html.fixPathsInCssText=function(_36c,URI){
function iefixPathsInCssText(){
var _36e=/AlphaImageLoader\(src\=['"]([\t\s\w()\/.\\'"-:#=&?]*)['"]/;
while(_36f=_36e.exec(_36c)){
url=_36f[1].replace(_371,"$2");
if(!_372.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_36c.substring(0,_36f.index)+"AlphaImageLoader(src='"+url+"'";
_36c=_36c.substr(_36f.index+_36f[0].length);
}
return str+_36c;
}
if(!_36c||!URI){
return;
}
var _36f,str="",url="";
var _374=/url\(\s*([\t\s\w()\/.\\'"-:#=&?]+)\s*\)/;
var _372=/(file|https?|ftps?):\/\//;
var _371=/^[\s]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s]*?$/;
if(dojo.render.html.ie55||dojo.render.html.ie60){
_36c=iefixPathsInCssText();
}
while(_36f=_374.exec(_36c)){
url=_36f[1].replace(_371,"$2");
if(!_372.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_36c.substring(0,_36f.index)+"url("+url+")";
_36c=_36c.substr(_36f.index+_36f[0].length);
}
return str+_36c;
};
dojo.html.setActiveStyleSheet=function(_375){
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")==_375){
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 _381={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 _381){
if(_381[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.*");
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(_389){
if(_389){
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(_38a,_38b){
var rgb=null;
if(dojo.lang.isArray(_38a)){
rgb=_38a;
}else{
if(_38a instanceof dojo.gfx.color.Color){
rgb=_38a.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_38a).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_38b);
}});
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,_38f){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_38f);
}
if(!_38f){
_38f=0;
}
_38f=Math.min(Math.max(-1,_38f),1);
_38f=((_38f+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_38f));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_394){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_394));
};
dojo.gfx.color.extractRGB=function(_395){
var hex="0123456789abcdef";
_395=_395.toLowerCase();
if(_395.indexOf("rgb")==0){
var _397=_395.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_397.splice(1,3);
return ret;
}else{
var _399=dojo.gfx.color.hex2rgb(_395);
if(_399){
return _399;
}else{
return dojo.gfx.color.named[_395]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _39b="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_39b+"]","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]=_39b.indexOf(rgb[i].charAt(0))*16+_39b.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.provide("dojo.lfx.Line");
dojo.lfx.Line=function(_3a4,end){
this.start=_3a4;
this.end=end;
if(dojo.lang.isArray(_3a4)){
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-_3a4;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_3b3,_3b4){
if(!_3b4){
_3b4=_3b3;
_3b3=this;
}
_3b4=dojo.lang.hitch(_3b3,_3b4);
var _3b5=this[evt]||function(){
};
this[evt]=function(){
var ret=_3b5.apply(this,arguments);
_3b4.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_3b9){
this.repeatCount=_3b9;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_3ba,_3bb,_3bc,_3bd,_3be,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_3ba)||(!_3ba&&_3bb.getValue)){
rate=_3be;
_3be=_3bd;
_3bd=_3bc;
_3bc=_3bb;
_3bb=_3ba;
_3ba=null;
}else{
if(_3ba.getValue||dojo.lang.isArray(_3ba)){
rate=_3bd;
_3be=_3bc;
_3bd=_3bb;
_3bc=_3ba;
_3bb=null;
_3ba=null;
}
}
if(dojo.lang.isArray(_3bc)){
this.curve=new dojo.lfx.Line(_3bc[0],_3bc[1]);
}else{
this.curve=_3bc;
}
if(_3bb!=null&&_3bb>0){
this.duration=_3bb;
}
if(_3be){
this.repeatCount=_3be;
}
if(rate){
this.rate=rate;
}
if(_3ba){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_3ba[item]){
this.connect(item,_3ba[item]);
}
},this);
}
if(_3bd&&dojo.lang.isFunction(_3bd)){
this.easing=_3bd;
}
};
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(_3c1,_3c2){
if(_3c2){
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(_3c1>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3c2);
}),_3c1);
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 _3c4=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_3c4]);
this.fire("onBegin",[_3c4]);
}
this.fire("handler",["play",_3c4]);
this.fire("onPlay",[_3c4]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _3c5=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_3c5]);
this.fire("onPause",[_3c5]);
return this;
},gotoPercent:function(pct,_3c7){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_3c7){
this.play();
}
return this;
},stop:function(_3c8){
clearTimeout(this._timer);
var step=this._percent/100;
if(_3c8){
step=1;
}
var _3ca=this.curve.getValue(step);
this.fire("handler",["stop",_3ca]);
this.fire("onStop",[_3ca]);
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 _3cd=this.curve.getValue(step);
this.fire("handler",["animate",_3cd]);
this.fire("onAnimate",[_3cd]);
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(_3ce){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _3cf=arguments;
if(_3cf.length==1&&(dojo.lang.isArray(_3cf[0])||dojo.lang.isArrayLike(_3cf[0]))){
_3cf=_3cf[0];
}
dojo.lang.forEach(_3cf,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(_3d1,_3d2){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_3d1>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3d2);
}),_3d1);
return this;
}
if(_3d2||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_3d2);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_3d3){
this.fire("onStop");
this._animsCall("stop",_3d3);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_3d4){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _3d7=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_3d4](args);
},_3d7);
return this;
}});
dojo.lfx.Chain=function(_3d9){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _3da=arguments;
if(_3da.length==1&&(dojo.lang.isArray(_3da[0])||dojo.lang.isArrayLike(_3da[0]))){
_3da=_3da[0];
}
var _3db=this;
dojo.lang.forEach(_3da,function(anim,i,_3de){
this._anims.push(anim);
if(i<_3de.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(_3df,_3e0){
if(!this._anims.length){
return this;
}
if(_3e0||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _3e1=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_3df>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3e0);
}),_3df);
return this;
}
if(_3e1){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_3e1.play(null,_3e0);
}
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 _3e2=this._anims[this._currAnim];
if(_3e2){
if(!_3e2._active||_3e2._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _3e3=this._anims[this._currAnim];
if(_3e3){
_3e3.stop();
this.fire("onStop",[this._currAnim]);
}
return _3e3;
},_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(_3e4){
var _3e5=arguments;
if(dojo.lang.isArray(arguments[0])){
_3e5=arguments[0];
}
if(_3e5.length==1){
return _3e5[0];
}
return new dojo.lfx.Combine(_3e5);
};
dojo.lfx.chain=function(_3e6){
var _3e7=arguments;
if(dojo.lang.isArray(arguments[0])){
_3e7=arguments[0];
}
if(_3e7.length==1){
return _3e7[0];
}
return new dojo.lfx.Chain(_3e7);
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_3e9,_3ea){
node=dojo.byId(node);
_3ea(node,!_3e9(node));
return _3e9(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,_3ef){
dojo.html[(_3ef?"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,_3f5){
dojo.html.setStyle(node,"display",((_3f5 instanceof String||typeof _3f5=="string")?_3f5:(_3f5?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,_3f9){
dojo.html.setStyle(node,"visibility",((_3f9 instanceof String||typeof _3f9=="string")?_3f9:(_3f9?"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,_3fd,_3fe){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_3fe){
if(_3fd>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_3fd=0.999999;
}
}else{
if(_3fd<0){
_3fd=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="+_3fd*100+")";
}
}
node.style.filter="Alpha(Opacity="+_3fd*100+")";
}else{
if(h.moz){
node.style.opacity=_3fd;
node.style.MozOpacity=_3fd;
}else{
if(h.safari){
node.style.opacity=_3fd;
node.style.KhtmlOpacity=_3fd;
}else{
node.style.opacity=_3fd;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _409;
do{
_409=dojo.html.getStyle(node,"background-color");
if(_409.toLowerCase()=="rgba(0, 0, 0, 0)"){
_409="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_409));
if(_409=="transparent"){
_409=[255,255,255,0];
}else{
_409=dojo.gfx.color.extractRGB(_409);
}
return _409;
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _40c=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_40c+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _40c;
};
dojo.html.setStyleAttributes=function(node,_40f){
node=dojo.byId(node);
var _410=_40f.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_410.length;i++){
var _412=_410[i].split(":");
var name=_412[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _414=_412[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_414);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_414});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_414});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_414});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_414});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_414;
}
}
};
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,_416,_417){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_417){
_417=bs.CONTENT_BOX;
}
var _41a=2;
var _41b;
switch(_417){
case bs.MARGIN_BOX:
_41b=3;
break;
case bs.BORDER_BOX:
_41b=2;
break;
case bs.PADDING_BOX:
default:
_41b=1;
break;
case bs.CONTENT_BOX:
_41b=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){
_41a=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 _41f;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_41f=db;
}else{
_41f=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 _421=node;
do{
var n=_421["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_421["offsetTop"];
ret.y+=isNaN(m)?0:m;
_421=_421.offsetParent;
}while((_421!=_41f)&&(_421!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_416){
var _424=dojo.html.getScroll();
ret.y+=_424.top;
ret.x+=_424.left;
}
var _425=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_41a>_41b){
for(var i=_41b;i<_41a;++i){
ret.y+=_425[i](node,"top");
ret.x+=_425[i](node,"left");
}
}else{
if(_41a<_41b){
for(var i=_41b;i>_41a;--i){
ret.y-=_425[i-1](node,"top");
ret.x-=_425[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,_429,_42a){
var _42b=0;
for(var x=0;x<_429.length;x++){
_42b+=dojo.html.getPixelValue(node,_429[x],_42a);
}
return _42b;
};
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 _438=dojo.html.getBorder(node);
return {width:pad.width+_438.width,height:pad.height+_438.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if((h.ie)||(h.opera)){
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 _43d=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_43d){
_43d=dojo.html.getStyle(node,"box-sizing");
}
return (_43d?_43d: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 _442=dojo.html.getBorder(node);
return {width:box.width-_442.width,height:box.height-_442.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _444=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_444.width,height:node.offsetHeight-_444.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _447=0;
var _448=0;
var isbb=dojo.html.isBorderBox(node);
var _44a=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_447=args.width+_44a.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_447);
}
if(typeof args.height!="undefined"){
_448=args.height+_44a.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_448);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _44d=dojo.html.getBorderBox(node);
var _44e=dojo.html.getMargin(node);
return {width:_44d.width+_44e.width,height:_44d.height+_44e.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _451=0;
var _452=0;
var isbb=dojo.html.isBorderBox(node);
var _454=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _455=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_451=args.width-_454.width;
_451-=_455.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_451);
}
if(typeof args.height!="undefined"){
_452=args.height-_454.height;
_452-=_455.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_452);
}
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(_45a,_45b,_45c){
if(_45a instanceof Array||typeof _45a=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_45a.length<4){
_45a.push(0);
}
while(_45a.length>4){
_45a.pop();
}
var ret={left:_45a[0],top:_45a[1],width:_45a[2],height:_45a[3]};
}else{
if(!_45a.nodeType&&!(_45a instanceof String||typeof _45a=="string")&&("width" in _45a||"height" in _45a||"left" in _45a||"x" in _45a||"top" in _45a||"y" in _45a)){
var ret={left:_45a.left||_45a.x||0,top:_45a.top||_45a.y||0,width:_45a.width||0,height:_45a.height||0};
}else{
var node=dojo.byId(_45a);
var pos=dojo.html.abs(node,_45b,_45c);
var _460=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_460.width,height:_460.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_462){
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,_465){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_467){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_469){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_46b){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_46d){
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,_477){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_479){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_47a){
if(!_47a){
return [];
}
if(dojo.lang.isArrayLike(_47a)){
if(!_47a.alreadyChecked){
var n=[];
dojo.lang.forEach(_47a,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _47a;
}
}else{
var n=[];
n.push(dojo.byId(_47a));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_47d,_47e,_47f,_480,_481){
_47d=dojo.lfx.html._byId(_47d);
var _482={"propertyMap":_47e,"nodes":_47d,"duration":_47f,"easing":_480||dojo.lfx.easeDefault};
var _483=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _487 in pm){
pm[_487].property=_487;
parr.push(pm[_487]);
}
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 _489=function(_48a){
var _48b=[];
dojo.lang.forEach(_48a,function(c){
_48b.push(Math.round(c));
});
return _48b;
};
var _48d=function(n,_48f){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _48f){
if(s=="opacity"){
dojo.html.setOpacity(n,_48f[s]);
}else{
n.style[s]=_48f[s];
}
}
};
var _491=function(_492){
this._properties=_492;
this.diffs=new Array(_492.length);
dojo.lang.forEach(_492,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 _499=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_499=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_499+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_499+=")";
}else{
_499=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_499;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_483(_482);
anim.curve=new _491(_482.propertyMap);
},onAnimate:function(_49c){
dojo.lang.forEach(_482.nodes,function(node){
_48d(node,_49c);
});
}},_482.duration,null,_482.easing);
if(_481){
for(var x in _481){
if(dojo.lang.isFunction(_481[x])){
anim.connect(x,anim,_481[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_49f){
var _4a0=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(_49f)){
dojo.lang.forEach(_49f,_4a0);
}else{
_4a0(_49f);
}
};
dojo.lfx.html.fade=function(_4a2,_4a3,_4a4,_4a5,_4a6){
_4a2=dojo.lfx.html._byId(_4a2);
var _4a7={property:"opacity"};
if(!dj_undef("start",_4a3)){
_4a7.start=_4a3.start;
}else{
_4a7.start=function(){
return dojo.html.getOpacity(_4a2[0]);
};
}
if(!dj_undef("end",_4a3)){
_4a7.end=_4a3.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_4a2,[_4a7],_4a4,_4a5);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_4a2);
});
if(_4a6){
anim.connect("onEnd",function(){
_4a6(_4a2,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_4a9,_4aa,_4ab,_4ac){
return dojo.lfx.html.fade(_4a9,{end:1},_4aa,_4ab,_4ac);
};
dojo.lfx.html.fadeOut=function(_4ad,_4ae,_4af,_4b0){
return dojo.lfx.html.fade(_4ad,{end:0},_4ae,_4af,_4b0);
};
dojo.lfx.html.fadeShow=function(_4b1,_4b2,_4b3,_4b4){
_4b1=dojo.lfx.html._byId(_4b1);
dojo.lang.forEach(_4b1,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_4b1,_4b2,_4b3,_4b4);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_4b1)){
dojo.lang.forEach(_4b1,dojo.html.show);
}else{
dojo.html.show(_4b1);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_4b7,_4b8,_4b9,_4ba){
var anim=dojo.lfx.html.fadeOut(_4b7,_4b8,_4b9,function(){
if(dojo.lang.isArrayLike(_4b7)){
dojo.lang.forEach(_4b7,dojo.html.hide);
}else{
dojo.html.hide(_4b7);
}
if(_4ba){
_4ba(_4b7,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_4bc,_4bd,_4be,_4bf){
_4bc=dojo.lfx.html._byId(_4bc);
var _4c0=[];
dojo.lang.forEach(_4bc,function(node){
var _4c2={overflow:null};
node.style.visibility="hidden";
node.style.display="block";
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return node.scrollHeight;
}}},_4bd,_4be);
anim.connect("beforeBegin",function(){
_4c2.overflow=dojo.html.getStyle(node,"overflow");
with(node.style){
if(_4c2.overflow=="visible"){
overflow="hidden";
}
visibility="visible";
height="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_4c2.overflow;
height="";
visibility="visible";
}
if(_4bf){
_4bf(node,anim);
}
});
_4c0.push(anim);
});
return dojo.lfx.combine(_4c0);
};
dojo.lfx.html.wipeOut=function(_4c4,_4c5,_4c6,_4c7){
_4c4=dojo.lfx.html._byId(_4c4);
var _4c8=[];
dojo.lang.forEach(_4c4,function(node){
var _4ca={overflow:null};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_4c5,_4c6,{"beforeBegin":function(){
_4ca.overflow=dojo.html.getStyle(node,"overflow");
if(_4ca.overflow=="visible"){
node.style.overflow="hidden";
}
node.style.visibility="visible";
dojo.html.show(node);
},"onEnd":function(){
with(node.style){
overflow=_4ca.overflow;
visibility="hidden";
height="1px";
}
if(_4c7){
_4c7(node,anim);
}
}});
_4c8.push(anim);
});
return dojo.lfx.combine(_4c8);
};
dojo.lfx.html.slideTo=function(_4cc,_4cd,_4ce,_4cf,_4d0){
_4cc=dojo.lfx.html._byId(_4cc);
var _4d1=[];
var _4d2=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_4cd)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_4cd={top:_4cd[0],left:_4cd[1]};
}
dojo.lang.forEach(_4cc,function(node){
var top=null;
var left=null;
var init=(function(){
var _4d7=node;
return function(){
var pos=_4d2(_4d7,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_4d2(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_4d2(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_4d7,true);
dojo.html.setStyleAttributes(_4d7,"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:(_4cd.top||0)},"left":{start:left,end:(_4cd.left||0)}},_4ce,_4cf,{"beforeBegin":init});
if(_4d0){
anim.connect("onEnd",function(){
_4d0(_4cc,anim);
});
}
_4d1.push(anim);
});
return dojo.lfx.combine(_4d1);
};
dojo.lfx.html.slideBy=function(_4db,_4dc,_4dd,_4de,_4df){
_4db=dojo.lfx.html._byId(_4db);
var _4e0=[];
var _4e1=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_4dc)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_4dc={top:_4dc[0],left:_4dc[1]};
}
dojo.lang.forEach(_4db,function(node){
var top=null;
var left=null;
var init=(function(){
var _4e6=node;
return function(){
var pos=_4e1(_4e6,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_4e1(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_4e1(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_4e6,true);
dojo.html.setStyleAttributes(_4e6,"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+(_4dc.top||0)},"left":{start:left,end:left+(_4dc.left||0)}},_4dd,_4de).connect("beforeBegin",init);
if(_4df){
anim.connect("onEnd",function(){
_4df(_4db,anim);
});
}
_4e0.push(anim);
});
return dojo.lfx.combine(_4e0);
};
dojo.lfx.html.explode=function(_4ea,_4eb,_4ec,_4ed,_4ee){
var h=dojo.html;
_4ea=dojo.byId(_4ea);
_4eb=dojo.byId(_4eb);
var _4f0=h.toCoordinateObject(_4ea,true);
var _4f1=document.createElement("div");
h.copyStyle(_4f1,_4eb);
if(_4eb.explodeClassName){
_4f1.className=_4eb.explodeClassName;
}
with(_4f1.style){
position="absolute";
display="none";
}
dojo.body().appendChild(_4f1);
with(_4eb.style){
visibility="hidden";
display="block";
}
var _4f2=h.toCoordinateObject(_4eb,true);
with(_4eb.style){
display="none";
visibility="visible";
}
var _4f3={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_4f3[type]={start:_4f0[type],end:_4f2[type]};
});
var anim=new dojo.lfx.propertyAnimation(_4f1,_4f3,_4ec,_4ed,{"beforeBegin":function(){
h.setDisplay(_4f1,"block");
},"onEnd":function(){
h.setDisplay(_4eb,"block");
_4f1.parentNode.removeChild(_4f1);
}});
if(_4ee){
anim.connect("onEnd",function(){
_4ee(_4eb,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_4f6,end,_4f8,_4f9,_4fa){
var h=dojo.html;
_4f6=dojo.byId(_4f6);
end=dojo.byId(end);
var _4fc=dojo.html.toCoordinateObject(_4f6,true);
var _4fd=dojo.html.toCoordinateObject(end,true);
var _4fe=document.createElement("div");
dojo.html.copyStyle(_4fe,_4f6);
if(_4f6.explodeClassName){
_4fe.className=_4f6.explodeClassName;
}
dojo.html.setOpacity(_4fe,0.3);
with(_4fe.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_4f6,"background-color").toLowerCase();
}
dojo.body().appendChild(_4fe);
var _4ff={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_4ff[type]={start:_4fc[type],end:_4fd[type]};
});
var anim=new dojo.lfx.propertyAnimation(_4fe,_4ff,_4f8,_4f9,{"beforeBegin":function(){
dojo.html.hide(_4f6);
dojo.html.show(_4fe);
},"onEnd":function(){
_4fe.parentNode.removeChild(_4fe);
}});
if(_4fa){
anim.connect("onEnd",function(){
_4fa(_4f6,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_502,_503,_504,_505,_506){
_502=dojo.lfx.html._byId(_502);
var _507=[];
dojo.lang.forEach(_502,function(node){
var _509=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _50b=dojo.html.getStyle(node,"background-image");
var _50c=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_509.length>3){
_509.pop();
}
var rgb=new dojo.gfx.color.Color(_503);
var _50e=new dojo.gfx.color.Color(_509);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_50e}},_504,_505,{"beforeBegin":function(){
if(_50b){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_50b){
node.style.backgroundImage=_50b;
}
if(_50c){
node.style.backgroundColor="transparent";
}
if(_506){
_506(node,anim);
}
}});
_507.push(anim);
});
return dojo.lfx.combine(_507);
};
dojo.lfx.html.unhighlight=function(_510,_511,_512,_513,_514){
_510=dojo.lfx.html._byId(_510);
var _515=[];
dojo.lang.forEach(_510,function(node){
var _517=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_511);
var _519=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_517,end:rgb}},_512,_513,{"beforeBegin":function(){
if(_519){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_517.toRgb().join(",")+")";
},"onEnd":function(){
if(_514){
_514(node,anim);
}
}});
_515.push(anim);
});
return dojo.lfx.combine(_515);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
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,_51c){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _51f=dl.nameAnonFunc(args[2],ao.adviceObj,_51c);
ao.adviceFunc=_51f;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _51f=dl.nameAnonFunc(args[0],ao.srcObj,_51c);
ao.srcFunc=_51f;
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 _51f=dl.nameAnonFunc(args[1],dj_global,_51c);
ao.srcFunc=_51f;
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 _51f=dl.nameAnonFunc(args[3],dj_global,_51c);
ao.adviceObj=dj_global;
ao.adviceFunc=_51f;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _51f=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_51c);
ao.aroundFunc=_51f;
}
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 _521={};
for(var x in ao){
_521[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);
}
_521.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_521));
});
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 _529;
if((arguments.length==1)&&(typeof a1=="object")){
_529=a1;
}else{
_529={srcObj:a1,srcFunc:a2};
}
_529.adviceFunc=function(){
var _52a=[];
for(var x=0;x<arguments.length;x++){
_52a.push(arguments[x]);
}
dojo.debug("("+_529.srcObj+")."+_529.srcFunc,":",_52a.join(", "));
};
this.kwConnect(_529);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_531,_532){
var fn=(_532)?"disconnect":"connect";
if(typeof _531["srcFunc"]=="function"){
_531.srcObj=_531["srcObj"]||dj_global;
var _534=dojo.lang.nameAnonFunc(_531.srcFunc,_531.srcObj,true);
_531.srcFunc=_534;
}
if(typeof _531["adviceFunc"]=="function"){
_531.adviceObj=_531["adviceObj"]||dj_global;
var _534=dojo.lang.nameAnonFunc(_531.adviceFunc,_531.adviceObj,true);
_531.adviceFunc=_534;
}
_531.srcObj=_531["srcObj"]||dj_global;
_531.adviceObj=_531["adviceObj"]||_531["targetObj"]||dj_global;
_531.adviceFunc=_531["adviceFunc"]||_531["targetFunc"];
return dojo.event[fn](_531);
};
this.kwConnect=function(_535){
return this._kwConnectImpl(_535,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";
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_538){
return this._kwConnectImpl(_538,true);
};
};
dojo.event.MethodInvocation=function(_539,obj,args){
this.jp_=_539;
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,_541){
this.object=obj||dj_global;
this.methodname=_541;
this.methodfunc=this.object[_541];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_543){
if(!obj){
obj=dj_global;
}
if(!obj[_543]){
obj[_543]=function(){
};
if(!obj[_543]){
dojo.raise("Cannot set do-nothing method on that object "+_543);
}
}else{
if((!dojo.lang.isFunction(obj[_543]))&&(!dojo.lang.isAlien(obj[_543]))){
return null;
}
}
var _544=_543+"$joinpoint";
var _545=_543+"$joinpoint$method";
var _546=obj[_544];
if(!_546){
var _547=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_547=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_544,_545,_543]);
}
}
var _548=obj[_543].length;
obj[_545]=obj[_543];
_546=obj[_544]=new dojo.event.MethodJoinPoint(obj,_545);
obj[_543]=function(){
var args=[];
if((_547)&&(!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)&&(_547)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _546.run.apply(_546,args);
};
obj[_543].__preJoinArity=_548;
}
return _546;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _54e=[];
for(var x=0;x<args.length;x++){
_54e[x]=args[x];
}
var _550=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _552=marr[0]||dj_global;
var _553=marr[1];
if(!_552[_553]){
dojo.raise("function \""+_553+"\" does not exist on \""+_552+"\"");
}
var _554=marr[2]||dj_global;
var _555=marr[3];
var msg=marr[6];
var _557;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _552[_553].apply(_552,to.args);
}};
to.args=_54e;
var _559=parseInt(marr[4]);
var _55a=((!isNaN(_559))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _55d=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;
_550(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_555){
_554[_555].call(_554,to);
}else{
if((_55a)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_552[_553].call(_552,to);
}else{
_552[_553].apply(_552,args);
}
},_559);
}else{
if(msg){
_552[_553].call(_552,to);
}else{
_552[_553].apply(_552,args);
}
}
}
};
var _560=function(){
if(this.squelch){
try{
return _550.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _550.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_560);
}
var _561;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_561=mi.proceed();
}else{
if(this.methodfunc){
_561=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_560);
}
return (this.methodfunc)?_561:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);
},addAdvice:function(_566,_567,_568,_569,_56a,_56b,once,_56d,rate,_56f){
var arr=this.getArr(_56a);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_566,_567,_568,_569,_56d,rate,_56f];
if(once){
if(this.hasAdvice(_566,_567,_56a,arr)>=0){
return;
}
}
if(_56b=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_572,_573,_574,arr){
if(!arr){
arr=this.getArr(_574);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _573=="object")?(new String(_573)).toString():_573;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_572)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_57a,_57b,_57c,once){
var arr=this.getArr(_57c);
var ind=this.hasAdvice(_57a,_57b,_57c,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_57a,_57b,_57c,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_580){
if(!this.topics[_580]){
this.topics[_580]=new this.TopicImpl(_580);
}
return this.topics[_580];
};
this.registerPublisher=function(_581,obj,_583){
var _581=this.getTopic(_581);
_581.registerPublisher(obj,_583);
};
this.subscribe=function(_584,obj,_586){
var _584=this.getTopic(_584);
_584.subscribe(obj,_586);
};
this.unsubscribe=function(_587,obj,_589){
var _587=this.getTopic(_587);
_587.unsubscribe(obj,_589);
};
this.destroy=function(_58a){
this.getTopic(_58a).destroy();
delete this.topics[_58a];
};
this.publishApply=function(_58b,args){
var _58b=this.getTopic(_58b);
_58b.sendMessage.apply(_58b,args);
};
this.publish=function(_58d,_58e){
var _58d=this.getTopic(_58d);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_58d.sendMessage.apply(_58d,args);
};
};
dojo.event.topic.TopicImpl=function(_591){
this.topicName=_591;
this.subscribe=function(_592,_593){
var tf=_593||_592;
var to=(!_593)?dj_global:_592;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_596,_597){
var tf=(!_597)?_596:_597;
var to=(!_597)?null:_596;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_59a){
this._getJoinPoint().squelch=_59a;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_59b,_59c){
dojo.event.connect(_59b,_59c,this,"sendMessage");
};
this.sendMessage=function(_59d){
};
};
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(_5a0){
var na;
var tna;
if(_5a0){
tna=_5a0.all||_5a0.getElementsByTagName("*");
na=[_5a0];
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 _5a4={};
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){
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _5a8=0;
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,_5ac){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_5ac.length;x++){
node.__clobberAttrs__.push(_5ac[x]);
}
};
this.removeListener=function(node,_5af,fp,_5b1){
if(!_5b1){
var _5b1=false;
}
_5af=_5af.toLowerCase();
if((_5af=="onkey")||(_5af=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_5b1);
}
_5af="onkeypress";
}
if(_5af.substr(0,2)=="on"){
_5af=_5af.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_5af,fp,_5b1);
}
};
this.addListener=function(node,_5b3,fp,_5b5,_5b6){
if(!node){
return;
}
if(!_5b5){
var _5b5=false;
}
_5b3=_5b3.toLowerCase();
if((_5b3=="onkey")||(_5b3=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_5b5,_5b6);
}
_5b3="onkeypress";
}
if(_5b3.substr(0,2)!="on"){
_5b3="on"+_5b3;
}
if(!_5b6){
var _5b7=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_5b5){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_5b7=fp;
}
if(node.addEventListener){
node.addEventListener(_5b3.substr(2),_5b7,_5b5);
return _5b7;
}else{
if(typeof node[_5b3]=="function"){
var _5ba=node[_5b3];
node[_5b3]=function(e){
_5ba(e);
return _5b7(e);
};
}else{
node[_5b3]=_5b7;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_5b3]);
}
return _5b7;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_5bd,_5be){
if(typeof _5bd!="function"){
dojo.raise("listener not a function: "+_5bd);
}
dojo.event.browser.currentEvent.currentTarget=_5be;
return _5bd.call(_5be,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,_5c1){
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 _5c3=evt.keyCode;
if(_5c3>=65&&_5c3<=90&&evt.shiftKey==false){
_5c3+=32;
}
if(_5c3>=1&&_5c3<=26&&evt.ctrlKey){
_5c3+=96;
}
evt.key=String.fromCharCode(_5c3);
}
}
}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 _5c3=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_5c3+=32;
}
evt.key=String.fromCharCode(_5c3);
}
}
}
}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 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;
default:
evt.key=evt.charCode>0?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=(_5c1?_5c1: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 _5c5=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_5c5.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_5c5.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(ev){
if(window.event){
ev.returnValue=false;
ev.cancelBubble=true;
}else{
ev.preventDefault();
ev.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _5c7={};
var _5c8=[];
this.getUniqueId=function(_5c9){
return _5c9+"_"+(_5c7[_5c9]!=undefined?++_5c7[_5c9]:_5c7[_5c9]=0);
};
this.add=function(_5ca){
this.widgets.push(_5ca);
if(!_5ca.extraArgs["id"]){
_5ca.extraArgs["id"]=_5ca.extraArgs["ID"];
}
if(_5ca.widgetId==""){
if(_5ca["id"]){
_5ca.widgetId=_5ca["id"];
}else{
if(_5ca.extraArgs["id"]){
_5ca.widgetId=_5ca.extraArgs["id"];
}else{
_5ca.widgetId=this.getUniqueId(_5ca.widgetType);
}
}
}
if(this.widgetIds[_5ca.widgetId]){
dojo.debug("widget ID collision on ID: "+_5ca.widgetId);
}
this.widgetIds[_5ca.widgetId]=_5ca;
};
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(_5cc){
if(dojo.lang.isNumber(_5cc)){
var tw=this.widgets[_5cc].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_5cc,1);
}else{
this.removeById(_5cc);
}
};
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 _5d3=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_5d3(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_5d8,_5d9){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_5d8(x)){
ret.push(x);
if(_5d9){
return false;
}
}
return true;
});
return (_5d9?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 _5df={};
var _5e0=["dojo.widget"];
for(var i=0;i<_5e0.length;i++){
_5e0[_5e0[i]]=true;
}
this.registerWidgetPackage=function(_5e2){
if(!_5e0[_5e2]){
_5e0[_5e2]=true;
_5e0.push(_5e2);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_5e0,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_5e4,_5e5,_5e6,ns){
var impl=this.getImplementationName(_5e4,ns);
if(impl){
var ret=_5e5?new impl(_5e5):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _5ea in dojo.render){
if(dojo.render[_5ea]["capable"]===true){
var _5eb=dojo.render[_5ea].prefixes;
for(var i=0;i<_5eb.length;i++){
_5c8.push(_5eb[i].toLowerCase());
}
}
}
}
var _5ed=function(_5ee,_5ef){
if(!_5ef){
return null;
}
for(var i=0,l=_5c8.length,_5f2;i<=l;i++){
_5f2=(i<l?_5ef[_5c8[i]]:_5ef);
if(!_5f2){
continue;
}
for(var name in _5f2){
if(name.toLowerCase()==_5ee){
return _5f2[name];
}
}
}
return null;
};
var _5f4=function(_5f5,_5f6){
var _5f7=dojo.evalObjPath(_5f6,false);
return (_5f7?_5ed(_5f5,_5f7):null);
};
this.getImplementationName=function(_5f8,ns){
var _5fa=_5f8.toLowerCase();
ns=ns||"dojo";
var imps=_5df[ns]||(_5df[ns]={});
var impl=imps[_5fa];
if(impl){
return impl;
}
if(!_5c8.length){
buildPrefixCache();
}
var _5fd=dojo["namespace"].get(ns);
if(!_5fd){
dojo.namespace.register(ns,ns+".widget");
_5fd=dojo["namespace"].get(ns);
}
if(_5fd){
_5fd.resolve(_5f8);
}
impl=_5f4(_5fa,_5fd.getModule(_5f8));
if(impl){
return (imps[_5fa]=impl);
}
_5fd=dojo["namespace"].require(ns);
if((_5fd)&&(_5fd.resolver)){
_5fd.resolve(_5f8);
impl=_5f4(_5fa,_5fd.getModule(_5f8));
if(impl){
return (imps[_5fa]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_5f8+"\" in \""+_5fd.module+"\" registered to namespace \""+_5fd.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_5e0.length;i++){
impl=_5f4(_5fa,_5e0[i]);
if(impl){
return (imps[_5fa]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_5f8+"\" in \""+_5fd.module+"\" registered to namespace \""+_5fd.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _600=this.topWidgets[id];
if(_600.checkSize){
_600.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(_605,_606){
dw[(_606||_605)]=h(_605);
};
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 _608=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _608[n];
}
return _608;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.namespace");
dojo["namespace"]={dojo:"dojo",namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_60a,_60b,_60c){
if((!_60c)||(!this.namespaces[name])){
this.namespaces[name]=new dojo["namespace"].Namespace(name,_60a,_60b);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
var excl=djConfig.excludeNamespace;
if((excl)&&(dojo.lang.inArray(excl,name))){
return false;
}
var incl=djConfig.includeNamespace;
return ((name==this.dojo)||(!incl)||(dojo.lang.inArray(incl,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==this.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.registerNamespace=function(name,_615,_616){
dojo["namespace"].register.apply(dojo["namespace"],arguments);
};
dojo.registerNamespaceResolver=function(name,_618){
var n=dojo["namespace"].namespaces[name];
if(n){
n.resolver=_618;
}
};
dojo.registerNamespaceManifest=function(_61a,path,name,_61d,_61e){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_61d,_61e);
};
dojo.defineNamespace=function(_61f,_620,_621,_622,_623){
dojo.deprecated("dojo.defineNamespace"," is replaced by other systems. See the Dojo Wiki [http://dojo.jot.com/WikiHome/Modules & Namespaces].","0.5");
dojo.registerNamespaceManifest(_61f,_620,_621,_623,_622);
};
dojo["namespace"].Namespace=function(name,_625,_626){
this.name=name;
this.module=_625;
this.resolver=_626;
};
dojo["namespace"].Namespace.prototype._loaded={};
dojo["namespace"].Namespace.prototype._failed={};
dojo["namespace"].Namespace.prototype.resolve=function(name,_628,_629){
if(!this.resolver){
return false;
}
var _62a=this.resolver(name,_628);
if((_62a)&&(!this._loaded[_62a])&&(!this._failed[_62a])){
var req=dojo.require;
req(_62a,false,true);
if(dojo.hostenv.findModule(_62a,false)){
this._loaded[_62a]=true;
}else{
if(!dj_undef(_629)&!_629){
dojo.raise("dojo.namespace.Namespace.resolve: module '"+_62a+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_62a]=true;
}
}
return Boolean(this._loaded[_62a]);
};
dojo["namespace"].Namespace.prototype.getModule=function(_62c){
if(!this.module){
return null;
}
if(!dojo.lang.isArray(this.module)){
return this.module;
}
if(this.module.length<=0){
return null;
}
if(!this.resolver){
return this.module[0];
}
var _62d=this.resolver(_62c);
if(!_62d){
return this.module[0];
}
var _62e=_62d.lastIndexOf(".");
if(_62e>-1){
return _62d.substr(0,_62e);
}else{
return this.module[0];
}
return null;
};
dojo.registerNamespace("dojo",["dojo.widget","dojo.widget.validate"]);
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_62f){
this.propertySetsList=[];
this.fragment=_62f;
this.createComponents=function(frag,_631){
var _632=[];
var _633=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _634=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;
if(_634[ltn]){
_633=true;
var ret=_634[ltn](frag,this,_631,frag["index"]);
_632.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
var ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_631,frag["index"]);
if(ret){
_633=true;
_632.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:"+e);
}
if(!_633){
_632=_632.concat(this.createSubComponents(frag,_631));
}
return _632;
};
this.createSubComponents=function(_639,_63a){
var frag,_63c=[];
for(var item in _639){
frag=_639[item];
if((frag)&&(typeof frag=="object")&&(frag!=_639.nodeRef)&&(frag!=_639["tagName"])){
_63c=_63c.concat(this.createComponents(frag,_63a));
}
}
return _63c;
};
this.parsePropertySets=function(_63e){
return [];
};
this.parseProperties=function(_63f){
var _640={};
for(var item in _63f){
if((_63f[item]==_63f["tagName"])||(_63f[item]==_63f.nodeRef)){
}else{
if((_63f[item]["tagName"])&&(dojo.widget.tags[_63f[item].tagName.toLowerCase()])){
}else{
if((_63f[item][0])&&(_63f[item][0].value!="")&&(_63f[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _642=this;
this.getDataProvider(_642,_63f[item][0].value);
_640.dataProvider=this.dataProvider;
}
_640[item]=_63f[item][0].value;
var _643=this.parseProperties(_63f[item]);
for(var _644 in _643){
_640[_644]=_643[_644];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
if(!_640[item]||typeof _640[item]=="string"){
_640[item]=Boolean(!_640[item]||_640[item].toLowerCase()=="checked");
}
break;
case "disabled":
if(!_640[item]||typeof _640[item]=="string"){
_640[item]=Boolean(!_640[item]||_640[item].toLowerCase()=="disabled");
}
break;
}
}
}
return _640;
};
this.getDataProvider=function(_645,_646){
dojo.io.bind({url:_646,load:function(type,_648){
if(type=="load"){
_645.dataProvider=_648;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_649){
for(var x=0;x<this.propertySetsList.length;x++){
if(_649==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_64b){
var _64c=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
var _650=this.propertySetsList[x]["id"][0].value;
if((cpcc)&&(_650==cpcc[0].value)){
_64c.push(cpl);
}
}
return _64c;
};
this.getPropertySets=function(_651){
var ppl="dojo:propertyproviderlist";
var _653=[];
var _654=_651["tagName"];
if(_651[ppl]){
var _655=_651[ppl].value.split(" ");
for(var _656 in _655){
if((_656.indexOf("..")==-1)&&(_656.indexOf("://")==-1)){
var _657=this.getPropertySetById(_656);
if(_657!=""){
_653.push(_657);
}
}else{
}
}
}
return (this.getPropertySetsByType(_654)).concat(_653);
};
this.createComponentFromScript=function(_658,_659,_65a,ns){
_65a.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_659.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_65a,this,null,null,_65a)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_65a,this,null,null,_65a)];
};
};
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,_65f,_660,_661){
var _662=false;
var _663=(typeof name=="string");
if(_663){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _666=name.toLowerCase();
var _667=ns+":"+_666;
_662=(dojo.byId(name)&&(!dojo.widget.tags[_667]));
}
if((arguments.length==1)&&((_662)||(!_663))){
var xp=new dojo.xml.Parse();
var tn=(_662)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_66a,name,_66c,ns){
_66c[_667]={dojotype:[{value:_666}],nodeRef:_66a,fastMixIn:true};
_66c["namespace"]=ns;
return dojo.widget.getParser().createComponentFromScript(_66a,name,_66c,ns);
}
_65f=_65f||{};
var _66e=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_660){
_66e=true;
_660=tn;
if(h){
dojo.body().appendChild(_660);
}
}else{
if(_661){
dojo.dom.insertAtPosition(tn,_660,_661);
}else{
tn=_660;
}
}
var _670=fromScript(tn,name.toLowerCase(),_65f,ns);
if(!_670||!_670[0]||typeof _670[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_66e){
if(_670[0].domNode.parentNode){
_670[0].domNode.parentNode.removeChild(_670[0].domNode);
}
}
return _670[0];
};
dojo.provide("dojo.collections.Collections");
dojo.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojo.collections.Iterator=function(arr){
var a=arr;
var _675=0;
this.element=a[_675]||null;
this.atEnd=function(){
return (_675>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_675++];
return this.element;
};
this.map=function(fn,_677){
var s=_677||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_675=0;
this.element=a[_675];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _67d={};
for(var p in obj){
if(!_67d[p]){
a.push(obj[p]);
}
}
var _67f=0;
this.element=a[_67f]||null;
this.atEnd=function(){
return (_67f>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_67f++];
return this.element;
};
this.map=function(fn,_681){
var s=_681||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_67f=0;
this.element=a[_67f];
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.collections.ArrayList=function(arr){
var _686=[];
if(arr){
_686=_686.concat(arr);
}
this.count=_686.length;
this.add=function(obj){
_686.push(obj);
this.count=_686.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_686.length;
}else{
for(var i=0;i<a.length;i++){
_686.push(a[i]);
}
this.count=_686.length;
}
};
this.clear=function(){
_686.splice(0,_686.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_686);
};
this.contains=function(obj){
for(var i=0;i<_686.length;i++){
if(_686[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_68e){
var s=_68e||dj_global;
if(Array.forEach){
Array.forEach(_686,fn,s);
}else{
for(var i=0;i<_686.length;i++){
fn.call(s,_686[i],i,_686);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_686);
};
this.indexOf=function(obj){
for(var i=0;i<_686.length;i++){
if(_686[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_686.splice(i,0,obj);
this.count=_686.length;
};
this.item=function(i){
return _686[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_686.splice(i,1);
}
this.count=_686.length;
};
this.removeAt=function(i){
_686.splice(i,1);
this.count=_686.length;
};
this.reverse=function(){
_686.reverse();
};
this.sort=function(fn){
if(fn){
_686.sort(fn);
}else{
_686.sort();
}
};
this.setByIndex=function(i,obj){
_686[i]=obj;
this.count=_686.length;
};
this.toArray=function(){
return [].concat(_686);
};
this.toString=function(_69c){
return _686.join((_69c||","));
};
};
dojo.provide("dojo.regexp");
dojo.provide("dojo.regexp.us");
dojo.regexp.tld=function(_69d){
_69d=(typeof _69d=="object")?_69d:{};
if(typeof _69d.allowCC!="boolean"){
_69d.allowCC=true;
}
if(typeof _69d.allowInfra!="boolean"){
_69d.allowInfra=true;
}
if(typeof _69d.allowGeneric!="boolean"){
_69d.allowGeneric=true;
}
var _69e="arpa";
var _69f="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";
var ccRE="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|"+"hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la|"+"lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|"+"mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|"+"ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|"+"to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";
var a=[];
if(_69d.allowInfra){
a.push(_69e);
}
if(_69d.allowGeneric){
a.push(_69f);
}
if(_69d.allowCC){
a.push(ccRE);
}
var _6a2="";
if(a.length>0){
_6a2="("+a.join("|")+")";
}
return _6a2;
};
dojo.regexp.ipAddress=function(_6a3){
_6a3=(typeof _6a3=="object")?_6a3:{};
if(typeof _6a3.allowDottedDecimal!="boolean"){
_6a3.allowDottedDecimal=true;
}
if(typeof _6a3.allowDottedHex!="boolean"){
_6a3.allowDottedHex=true;
}
if(typeof _6a3.allowDottedOctal!="boolean"){
_6a3.allowDottedOctal=true;
}
if(typeof _6a3.allowDecimal!="boolean"){
_6a3.allowDecimal=true;
}
if(typeof _6a3.allowHex!="boolean"){
_6a3.allowHex=true;
}
if(typeof _6a3.allowIPv6!="boolean"){
_6a3.allowIPv6=true;
}
if(typeof _6a3.allowHybrid!="boolean"){
_6a3.allowHybrid=true;
}
var _6a4="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var _6a5="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _6a6="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _6a7="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
var _6a8="0[xX]0*[\\da-fA-F]{1,8}";
var _6a9="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _6aa="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var a=[];
if(_6a3.allowDottedDecimal){
a.push(_6a4);
}
if(_6a3.allowDottedHex){
a.push(_6a5);
}
if(_6a3.allowDottedOctal){
a.push(_6a6);
}
if(_6a3.allowDecimal){
a.push(_6a7);
}
if(_6a3.allowHex){
a.push(_6a8);
}
if(_6a3.allowIPv6){
a.push(_6a9);
}
if(_6a3.allowHybrid){
a.push(_6aa);
}
var _6ac="";
if(a.length>0){
_6ac="("+a.join("|")+")";
}
return _6ac;
};
dojo.regexp.host=function(_6ad){
_6ad=(typeof _6ad=="object")?_6ad:{};
if(typeof _6ad.allowIP!="boolean"){
_6ad.allowIP=true;
}
if(typeof _6ad.allowLocal!="boolean"){
_6ad.allowLocal=false;
}
if(typeof _6ad.allowPort!="boolean"){
_6ad.allowPort=true;
}
var _6ae="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_6ad);
var _6af=(_6ad.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _6b0=_6ae;
if(_6ad.allowIP){
_6b0+="|"+dojo.regexp.ipAddress(_6ad);
}
if(_6ad.allowLocal){
_6b0+="|localhost";
}
return "("+_6b0+")"+_6af;
};
dojo.regexp.url=function(_6b1){
_6b1=(typeof _6b1=="object")?_6b1:{};
if(typeof _6b1.scheme=="undefined"){
_6b1.scheme=[true,false];
}
var _6b2=dojo.regexp.buildGroupRE(_6b1.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _6b4="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _6b2+dojo.regexp.host(_6b1)+_6b4;
};
dojo.regexp.emailAddress=function(_6b5){
_6b5=(typeof _6b5=="object")?_6b5:{};
if(typeof _6b5.allowCruft!="boolean"){
_6b5.allowCruft=false;
}
_6b5.allowPort=false;
var _6b6="([\\da-z]+[-._+&'])*[\\da-z]+";
var _6b7=_6b6+"@"+dojo.regexp.host(_6b5);
if(_6b5.allowCruft){
_6b7="<?(mailto\\:)?"+_6b7+">?";
}
return _6b7;
};
dojo.regexp.emailAddressList=function(_6b8){
_6b8=(typeof _6b8=="object")?_6b8:{};
if(typeof _6b8.listSeparator!="string"){
_6b8.listSeparator="\\s;,";
}
var _6b9=dojo.regexp.emailAddress(_6b8);
var _6ba="("+_6b9+"\\s*["+_6b8.listSeparator+"]\\s*)*"+_6b9+"\\s*["+_6b8.listSeparator+"]?\\s*";
return _6ba;
};
dojo.regexp.integer=function(_6bb){
_6bb=(typeof _6bb=="object")?_6bb:{};
if(typeof _6bb.signed=="undefined"){
_6bb.signed=[true,false];
}
if(typeof _6bb.separator=="undefined"){
_6bb.separator="";
}else{
if(typeof _6bb.groupSize=="undefined"){
_6bb.groupSize=3;
}
}
var _6bc=dojo.regexp.buildGroupRE(_6bb.signed,function(q){
return q?"[-+]":"";
});
var _6be=dojo.regexp.buildGroupRE(_6bb.separator,function(sep){
if(sep==""){
return "(0|[1-9]\\d*)";
}
var grp=_6bb.groupSize,grp2=_6bb.groupSize2;
if(typeof grp2!="undefined"){
var _6c2="(0|[1-9]\\d{0,"+(grp2-1)+"}(["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"("+_6c2+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_6c2;
}
return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
});
return _6bc+_6be;
};
dojo.regexp.realNumber=function(_6c3){
_6c3=(typeof _6c3=="object")?_6c3:{};
if(typeof _6c3.places!="number"){
_6c3.places=Infinity;
}
if(typeof _6c3.decimal!="string"){
_6c3.decimal=".";
}
if(typeof _6c3.fractional=="undefined"){
_6c3.fractional=[true,false];
}
if(typeof _6c3.exponent=="undefined"){
_6c3.exponent=[true,false];
}
if(typeof _6c3.eSigned=="undefined"){
_6c3.eSigned=[true,false];
}
var _6c4=dojo.regexp.integer(_6c3);
var _6c5=dojo.regexp.buildGroupRE(_6c3.fractional,function(q){
var re="";
if(q&&(_6c3.places>0)){
re="\\"+_6c3.decimal;
if(_6c3.places==Infinity){
re="("+re+"\\d+)?";
}else{
re=re+"\\d{"+_6c3.places+"}";
}
}
return re;
});
var _6c8=dojo.regexp.buildGroupRE(_6c3.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_6c3.eSigned})+")";
}
return "";
});
return _6c4+_6c5+_6c8;
};
dojo.regexp.currency=function(_6ca){
_6ca=(typeof _6ca=="object")?_6ca:{};
if(typeof _6ca.signed=="undefined"){
_6ca.signed=[true,false];
}
if(typeof _6ca.symbol=="undefined"){
_6ca.symbol="$";
}
if(typeof _6ca.placement!="string"){
_6ca.placement="before";
}
if(typeof _6ca.signPlacement!="string"){
_6ca.signPlacement="before";
}
if(typeof _6ca.separator=="undefined"){
_6ca.separator=",";
}
if(typeof _6ca.fractional=="undefined"&&typeof _6ca.cents!="undefined"){
dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
_6ca.fractional=_6ca.cents;
}
if(typeof _6ca.decimal!="string"){
_6ca.decimal=".";
}
var _6cb=dojo.regexp.buildGroupRE(_6ca.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _6cd=dojo.regexp.buildGroupRE(_6ca.symbol,function(_6ce){
return "\\s?"+_6ce.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_6ca.signPlacement){
case "before":
_6cd=_6cb+_6cd;
break;
case "after":
_6cd=_6cd+_6cb;
break;
}
var _6cf=_6ca;
_6cf.signed=false;
_6cf.exponent=false;
var _6d0=dojo.regexp.realNumber(_6cf);
var _6d1;
switch(_6ca.placement){
case "before":
_6d1=_6cd+_6d0;
break;
case "after":
_6d1=_6d0+_6cd;
break;
}
switch(_6ca.signPlacement){
case "around":
_6d1="("+_6d1+"|"+"\\("+_6d1+"\\)"+")";
break;
case "begin":
_6d1=_6cb+_6d1;
break;
case "end":
_6d1=_6d1+_6cb;
break;
}
return _6d1;
};
dojo.regexp.us.state=function(_6d2){
_6d2=(typeof _6d2=="object")?_6d2:{};
if(typeof _6d2.allowTerritories!="boolean"){
_6d2.allowTerritories=true;
}
if(typeof _6d2.allowMilitary!="boolean"){
_6d2.allowMilitary=true;
}
var _6d3="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _6d4="AS|FM|GU|MH|MP|PW|PR|VI";
var _6d5="AA|AE|AP";
if(_6d2.allowTerritories){
_6d3+="|"+_6d4;
}
if(_6d2.allowMilitary){
_6d3+="|"+_6d5;
}
return "("+_6d3+")";
};
dojo.regexp.time=function(_6d6){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_6d6=(typeof _6d6=="object")?_6d6:{};
if(typeof _6d6.format=="undefined"){
_6d6.format="h:mm:ss t";
}
if(typeof _6d6.amSymbol!="string"){
_6d6.amSymbol="AM";
}
if(typeof _6d6.pmSymbol!="string"){
_6d6.pmSymbol="PM";
}
var _6d7=function(_6d8){
_6d8=_6d8.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_6d6.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_6d6.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_6d8=_6d8.replace("hh","(0[1-9]|1[0-2])");
_6d8=_6d8.replace("h","([1-9]|1[0-2])");
_6d8=_6d8.replace("HH","([01][0-9]|2[0-3])");
_6d8=_6d8.replace("H","([0-9]|1[0-9]|2[0-3])");
_6d8=_6d8.replace("mm","([0-5][0-9])");
_6d8=_6d8.replace("m","([1-5][0-9]|[0-9])");
_6d8=_6d8.replace("ss","([0-5][0-9])");
_6d8=_6d8.replace("s","([1-5][0-9]|[0-9])");
_6d8=_6d8.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _6d8;
};
return dojo.regexp.buildGroupRE(_6d6.format,_6d7);
};
dojo.regexp.numberFormat=function(_6db){
_6db=(typeof _6db=="object")?_6db:{};
if(typeof _6db.format=="undefined"){
_6db.format="###-###-####";
}
var _6dc=function(_6dd){
_6dd=_6dd.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_6dd=_6dd.replace(/\?/g,"\\d?");
_6dd=_6dd.replace(/#/g,"\\d");
return _6dd;
};
return dojo.regexp.buildGroupRE(_6db.format,_6dc);
};
dojo.regexp.buildGroupRE=function(a,re){
if(!(a instanceof Array)){
return re(a);
}
var b=[];
for(var i=0;i<a.length;i++){
b.push(re(a[i]));
}
return "("+b.join("|")+")";
};
dojo.provide("dojo.validate.common");
dojo.validate.isText=function(_6e2,_6e3){
_6e3=(typeof _6e3=="object")?_6e3:{};
if(/^\s*$/.test(_6e2)){
return false;
}
if(typeof _6e3.length=="number"&&_6e3.length!=_6e2.length){
return false;
}
if(typeof _6e3.minlength=="number"&&_6e3.minlength>_6e2.length){
return false;
}
if(typeof _6e3.maxlength=="number"&&_6e3.maxlength<_6e2.length){
return false;
}
return true;
};
dojo.validate.isInteger=function(_6e4,_6e5){
var re=new RegExp("^"+dojo.regexp.integer(_6e5)+"$");
return re.test(_6e4);
};
dojo.validate.isRealNumber=function(_6e7,_6e8){
var re=new RegExp("^"+dojo.regexp.realNumber(_6e8)+"$");
return re.test(_6e7);
};
dojo.validate.isCurrency=function(_6ea,_6eb){
var re=new RegExp("^"+dojo.regexp.currency(_6eb)+"$");
return re.test(_6ea);
};
dojo.validate.isInRange=function(_6ed,_6ee){
_6ed=_6ed.replace((dojo.lang.has(_6ee,"separator"))?_6ee.separator:",","");
if(isNaN(_6ed)){
return false;
}
_6ee=(typeof _6ee=="object")?_6ee:{};
var max=(typeof _6ee.max=="number")?_6ee.max:Infinity;
var min=(typeof _6ee.min=="number")?_6ee.min:-Infinity;
var dec=(typeof _6ee.decimal=="string")?_6ee.decimal:".";
var _6f2="[^"+dec+"\\deE+-]";
_6ed=_6ed.replace(RegExp(_6f2,"g"),"");
_6ed=_6ed.replace(/^([+-]?)(\D*)/,"$1");
_6ed=_6ed.replace(/(\D*)$/,"");
_6f2="(\\d)["+dec+"](\\d)";
_6ed=_6ed.replace(RegExp(_6f2,"g"),"$1.$2");
_6ed=Number(_6ed);
if(_6ed<min||_6ed>max){
return false;
}
return true;
};
dojo.validate.isNumberFormat=function(_6f3,_6f4){
var re=new RegExp("^"+dojo.regexp.numberFormat(_6f4)+"$","i");
return re.test(_6f3);
};
dojo.validate.isValidLuhn=function(_6f6){
var sum,_6f8,_6f9;
if(typeof _6f6!="string"){
_6f6=String(_6f6);
}
_6f6=_6f6.replace(/[- ]/g,"");
_6f8=_6f6.length%2;
sum=0;
for(var i=0;i<_6f6.length;i++){
_6f9=parseInt(_6f6.charAt(i));
if(i%2==_6f8){
_6f9*=2;
}
if(_6f9>9){
_6f9-=9;
}
sum+=_6f9;
}
return !(sum%10);
};
dojo.provide("dojo.validate");
dojo.provide("dojo.validate.check");
dojo.validate.check=function(form,_6fc){
var _6fd=[];
var _6fe=[];
var _6ff={isSuccessful:function(){
return (!this.hasInvalid()&&!this.hasMissing());
},hasMissing:function(){
return (_6fd.length>0);
},getMissing:function(){
return _6fd;
},isMissing:function(_700){
for(var i=0;i<_6fd.length;i++){
if(_700==_6fd[i]){
return true;
}
}
return false;
},hasInvalid:function(){
return (_6fe.length>0);
},getInvalid:function(){
return _6fe;
},isInvalid:function(_702){
for(var i=0;i<_6fe.length;i++){
if(_702==_6fe[i]){
return true;
}
}
return false;
}};
if(_6fc.trim instanceof Array){
for(var i=0;i<_6fc.trim.length;i++){
var elem=form[_6fc.trim[i]];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/(^\s*|\s*$)/g,"");
}
}
if(_6fc.uppercase instanceof Array){
for(var i=0;i<_6fc.uppercase.length;i++){
var elem=form[_6fc.uppercase[i]];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.toUpperCase();
}
}
if(_6fc.lowercase instanceof Array){
for(var i=0;i<_6fc.lowercase.length;i++){
var elem=form[_6fc.lowercase[i]];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.toLowerCase();
}
}
if(_6fc.ucfirst instanceof Array){
for(var i=0;i<_6fc.ucfirst.length;i++){
var elem=form[_6fc.ucfirst[i]];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/\b\w+\b/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1).toLowerCase();
});
}
}
if(_6fc.digit instanceof Array){
for(var i=0;i<_6fc.digit.length;i++){
var elem=form[_6fc.digit[i]];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/\D/g,"");
}
}
if(_6fc.required instanceof Array){
for(var i=0;i<_6fc.required.length;i++){
if(!dojo.lang.isString(_6fc.required[i])){
continue;
}
var elem=form[_6fc.required[i]];
if((elem.type=="text"||elem.type=="textarea"||elem.type=="password")&&/^\s*$/.test(elem.value)){
_6fd[_6fd.length]=elem.name;
}else{
if((elem.type=="select-one"||elem.type=="select-multiple")&&elem.selectedIndex==-1){
_6fd[_6fd.length]=elem.name;
}else{
if(elem instanceof Array){
var _707=false;
for(var j=0;j<elem.length;j++){
if(elem[j].checked){
_707=true;
}
}
if(!_707){
_6fd[_6fd.length]=elem[0].name;
}
}
}
}
}
}
if(_6fc.required instanceof Array){
for(var i=0;i<_6fc.required.length;i++){
if(!dojo.lang.isObject(_6fc.required[i])){
continue;
}
var elem,_709;
for(var name in _6fc.required[i]){
elem=form[name];
_709=_6fc.required[i][name];
}
if(elem instanceof Array){
var _707=0;
for(var j=0;j<elem.length;j++){
if(elem[j].checked){
_707++;
}
}
if(_707<_709){
_6fd[_6fd.length]=elem[0].name;
}
}else{
if(elem.type=="select-multiple"){
var _70b=0;
for(var j=0;j<elem.options.length;j++){
if(elem.options[j].selected){
_70b++;
}
}
if(_70b<_709){
_6fd[_6fd.length]=elem.name;
}
}
}
}
}
if(dojo.lang.isObject(_6fc.dependencies)||dojo.lang.isObject(_6fc.dependancies)){
if(_6fc["dependancies"]){
dojo.deprecated("dojo.validate.check() profile 'dependancies' are deprecated, please use "+"new syntax of 'dependencies'");
_6fc.dependencies=_6fc.dependancies;
}
for(name in _6fc.dependencies){
var elem=form[name];
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
if(/\S+/.test(elem.value)){
continue;
}
if(_6ff.isMissing(elem.name)){
continue;
}
var _70c=form[_6fc.dependencies[name]];
if(_70c.type!="text"&&_70c.type!="textarea"&&_70c.type!="password"){
continue;
}
if(/^\s*$/.test(_70c.value)){
continue;
}
_6fd[_6fd.length]=elem.name;
}
}
if(dojo.lang.isObject(_6fc.constraints)){
for(name in _6fc.constraints){
var elem=form[name];
if((elem.type!="text")&&(elem.type!="textarea")&&(elem.type!="password")){
continue;
}
if(/^\s*$/.test(elem.value)){
continue;
}
var _70d=true;
if(dojo.lang.isFunction(_6fc.constraints[name])){
_70d=_6fc.constraints[name](elem.value);
}else{
if(dojo.lang.isArray(_6fc.constraints[name])){
if(dojo.lang.isArray(_6fc.constraints[name][0])){
for(var i=0;i<_6fc.constraints[name].length;i++){
_70d=dojo.validate.evaluateConstraint(_6fc,_6fc.constraints[name][i],name,elem);
if(!_70d){
break;
}
}
}else{
_70d=dojo.validate.evaluateConstraint(_6fc,_6fc.constraints[name],name,elem);
}
}
}
if(!_70d){
_6fe[_6fe.length]=elem.name;
}
}
}
if(dojo.lang.isObject(_6fc.confirm)){
for(name in _6fc.confirm){
var elem=form[name];
var _70c=form[_6fc.confirm[name]];
if((elem.type!="text"&&elem.type!="textarea"&&elem.type!="password")||(_70c.type!=elem.type)||(_70c.value==elem.value)||(_6ff.isInvalid(elem.name))||(/^\s*$/.test(_70c.value))){
continue;
}
_6fe[_6fe.length]=elem.name;
}
}
return _6ff;
};
dojo.validate.evaluateConstraint=function(_70e,_70f,_710,elem){
var _712=_70f[0];
var _713=_70f.slice(1);
_713.unshift(elem.value);
if(typeof _712!="undefined"){
return _712.apply(null,_713);
}
return false;
};
dojo.provide("dojo.validate.datetime");
dojo.validate.isValidTime=function(_714,_715){
dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
var re=new RegExp("^"+dojo.regexp.time(_715)+"$","i");
return re.test(_714);
};
dojo.validate.is12HourTime=function(_717){
dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
return dojo.validate.isValidTime(_717,{format:["h:mm:ss t","h:mm t"]});
};
dojo.validate.is24HourTime=function(_718){
dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
return dojo.validate.isValidTime(_718,{format:["HH:mm:ss","HH:mm"]});
};
dojo.validate.isValidDate=function(_719,_71a){
dojo.deprecated("dojo.validate.datetime","use dojo.date.parse instead","0.5");
if(typeof _71a=="object"&&typeof _71a.format=="string"){
_71a=_71a.format;
}
if(typeof _71a!="string"){
_71a="MM/DD/YYYY";
}
var _71b=_71a.replace(/([$^.*+?=!:|\/\\\(\)\[\]\{\}])/g,"\\$1");
_71b=_71b.replace("YYYY","([0-9]{4})");
_71b=_71b.replace("MM","(0[1-9]|10|11|12)");
_71b=_71b.replace("M","([1-9]|10|11|12)");
_71b=_71b.replace("DDD","(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])");
_71b=_71b.replace("DD","(0[1-9]|[12][0-9]|30|31)");
_71b=_71b.replace("D","([1-9]|[12][0-9]|30|31)");
_71b=_71b.replace("ww","(0[1-9]|[1-4][0-9]|5[0-3])");
_71b=_71b.replace("d","([1-7])");
_71b="^"+_71b+"$";
var re=new RegExp(_71b);
if(!re.test(_719)){
return false;
}
var year=0,_71e=1,date=1,_720=1,week=1,day=1;
var _723=_71a.match(/(YYYY|MM|M|DDD|DD|D|ww|d)/g);
var _724=re.exec(_719);
for(var i=0;i<_723.length;i++){
switch(_723[i]){
case "YYYY":
year=Number(_724[i+1]);
break;
case "M":
case "MM":
_71e=Number(_724[i+1]);
break;
case "D":
case "DD":
date=Number(_724[i+1]);
break;
case "DDD":
_720=Number(_724[i+1]);
break;
case "ww":
week=Number(_724[i+1]);
break;
case "d":
day=Number(_724[i+1]);
break;
}
}
var _726=(year%4==0&&(year%100!=0||year%400==0));
if(date==31&&(_71e==4||_71e==6||_71e==9||_71e==11)){
return false;
}
if(date>=30&&_71e==2){
return false;
}
if(date==29&&_71e==2&&!_726){
return false;
}
if(_720==366&&!_726){
return false;
}
return true;
};
dojo.provide("dojo.validate.de");
dojo.validate.isGermanCurrency=function(_727){
var _728={symbol:"\u20ac",placement:"after",signPlacement:"begin",decimal:",",separator:"."};
return dojo.validate.isCurrency(_727,_728);
};
dojo.provide("dojo.validate.jp");
dojo.validate.isJapaneseCurrency=function(_729){
var _72a={symbol:"\xa5",fractional:false};
return dojo.validate.isCurrency(_729,_72a);
};
dojo.provide("dojo.validate.us");
dojo.validate.us.isCurrency=function(_72b,_72c){
return dojo.validate.isCurrency(_72b,_72c);
};
dojo.validate.us.isState=function(_72d,_72e){
var re=new RegExp("^"+dojo.regexp.us.state(_72e)+"$","i");
return re.test(_72d);
};
dojo.validate.us.isPhoneNumber=function(_730){
var _731={format:["###-###-####","(###) ###-####","(###) ### ####","###.###.####","###/###-####","### ### ####","###-###-#### x#???","(###) ###-#### x#???","(###) ### #### x#???","###.###.#### x#???","###/###-#### x#???","### ### #### x#???","##########"]};
return dojo.validate.isNumberFormat(_730,_731);
};
dojo.validate.us.isSocialSecurityNumber=function(_732){
var _733={format:["###-##-####","### ## ####","#########"]};
return dojo.validate.isNumberFormat(_732,_733);
};
dojo.validate.us.isZipCode=function(_734){
var _735={format:["#####-####","##### ####","#########","#####"]};
return dojo.validate.isNumberFormat(_734,_735);
};
dojo.provide("dojo.validate.web");
dojo.validate.isIpAddress=function(_736,_737){
var re=new RegExp("^"+dojo.regexp.ipAddress(_737)+"$","i");
return re.test(_736);
};
dojo.validate.isUrl=function(_739,_73a){
var re=new RegExp("^"+dojo.regexp.url(_73a)+"$","i");
return re.test(_739);
};
dojo.validate.isEmailAddress=function(_73c,_73d){
var re=new RegExp("^"+dojo.regexp.emailAddress(_73d)+"$","i");
return re.test(_73c);
};
dojo.validate.isEmailAddressList=function(_73f,_740){
var re=new RegExp("^"+dojo.regexp.emailAddressList(_740)+"$","i");
return re.test(_73f);
};
dojo.validate.getEmailAddressList=function(_742,_743){
if(!_743){
_743={};
}
if(!_743.listSeparator){
_743.listSeparator="\\s;,";
}
if(dojo.validate.isEmailAddressList(_742,_743)){
return _742.split(new RegExp("\\s*["+_743.listSeparator+"]\\s*"));
}
return [];
};
dojo.provide("dojo.validate.*");
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
function getTagName(node){
return ((node)&&(node.tagName)?node.tagName.toLowerCase():"");
}
function getDojoTagName(node){
var _746=getTagName(node);
if(!_746){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_746])){
return _746;
}
var p=_746.indexOf(":");
if(p>=0){
return _746;
}
if(_746.substr(0,5)=="dojo:"){
return _746;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_746;
}
if(_746.substr(0,4)=="dojo"){
return "dojo:"+_746.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 _749=node.className||node.getAttribute("class");
if(_749&&_749.indexOf&&_749.indexOf("dojo-")!=-1){
var _74a=_749.split(" ");
for(var x=0,c=_74a.length;x<c;x++){
if(_74a[x].slice(0,5)=="dojo-"){
return "dojo:"+_74a[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_74e,_74f,_750){
var _751={};
var _752=getTagName(node);
if((_752)&&(_752.indexOf("/")==0)){
return null;
}
var _753=true;
if(_74f){
var _754=getDojoTagName(node);
_752=_754||_752;
_753=Boolean(_754);
}
_751[_752]=[];
var pos=_752.indexOf(":");
if(pos>0){
var ns=_752.substring(0,pos);
_751["namespace"]=ns;
if((dojo["namespace"])&&(!dojo["namespace"].allow(ns))){
_753=false;
}
}
if(_753){
var _757=this.parseAttributes(node);
for(var attr in _757){
if((!_751[_752][attr])||(typeof _751[_752][attr]!="array")){
_751[_752][attr]=[];
}
_751[_752][attr].push(_757[attr]);
}
_751[_752].nodeRef=node;
_751.tagName=_752;
_751.index=_750||0;
}
var _759=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_759++;
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_751[ctn]){
_751[ctn]=[];
}
_751[ctn].push(this.parseElement(tcn,true,_74f,_759));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_751[ctn][_751[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_751[_752].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _751;
};
this.parseAttributes=function(node){
var _75e={};
var atts=node.attributes;
var _760,i=0;
while((_760=atts[i++])){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_760){
continue;
}
if((typeof _760=="object")&&(typeof _760.nodeValue=="undefined")||(_760.nodeValue==null)||(_760.nodeValue=="")){
continue;
}
}
var nn=_760.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_760.nodeName;
_75e[nn]={value:_760.nodeValue};
}
return _75e;
};
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_763,_764,init,_766){
if((dojo.lang.isFunction(_766))||((!_766)&&(!dojo.lang.isFunction(init)))){
var temp=_766;
_766=init;
init=temp;
}
var _768=[];
if(dojo.lang.isArray(_764)){
_768=_764;
_764=_768.shift();
}
if(!init){
init=dojo.evalObjPath(_763,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_764?_764.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _764();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_768;
for(var i=0,l=_768.length;i<l;i++){
dojo.lang.extend(ctor,_768[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_763;
if(dojo.lang.isArray(_766)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_766));
}else{
dojo.lang.extend(ctor,(_766)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_763,ctor,null,true);
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._inherited(s,"constructor",arguments);
}
}
var m=(self.constructor.mixins)||([]);
for(var i=0,l=m.length;i<l;i++){
(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_772,_773,args){
var _775,_776=this.___proto;
this.___proto=_772;
try{
_775=_772[_773].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_776;
}
return _775;
},inheritedFrom:function(ctor,prop,args){
var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));
return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);
},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._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.uri.*");
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/widget/templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _77f=null;
if(window.getComputedStyle){
var _780=getComputedStyle(div,"");
_77f=_780.getPropertyValue("background-image");
}else{
_77f=div.currentStyle.backgroundImage;
}
var _781=false;
if(_77f!=null&&(_77f=="none"||_77f=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_782){
this.doAccessibleCheck=_782;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,children:[],extraArgs:{},isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget","namespace":"dojo",getNamespacedType:function(){
return (this.namespace?this.namespace+":"+this.widgetType:this.widgetType).toLowerCase();
return (this["namespace"]?this["namespace"]+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _784=this.children[i];
if(_784.onResized){
_784.onResized();
}
}
},create:function(args,_786,_787,ns){
if(ns){
this["namespace"]=ns;
}
this.satisfyPropertySets(args,_786,_787);
this.mixInProperties(args,_786,_787);
this.postMixInProperties(args,_786,_787);
dojo.widget.manager.add(this);
this.buildRendering(args,_786,_787);
this.initialize(args,_786,_787);
this.postInitialize(args,_786,_787);
this.postCreate(args,_786,_787);
return this;
},destroy:function(_789){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_789);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _78a;
var i=0;
while(this.children.length>i){
_78a=this.children[i];
if(_78a instanceof dojo.widget.Widget){
this.removeChild(_78a);
_78a.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_78d){
var ret=[];
var _78f=dojo.lang.isFunction(type);
if(!_78f){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_78f){
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(_78d){
ret=ret.concat(this.children[x].getChildrenOfType(type,_78d));
}
}
return ret;
},getDescendants:function(){
var _791=[];
var _792=[this];
var elem;
while((elem=_792.pop())){
_791.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_792.push(elem);
});
}
}
return _791;
},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 _799;
var _79a=dojo.widget.lcArgsCache[this.widgetType];
if(_79a==null){
_79a={};
for(var y in this){
_79a[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_79a;
}
var _79c={};
for(var x in args){
if(!this[x]){
var y=_79a[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_79c[x]){
continue;
}
_79c[x]=true;
if((typeof this[x])!=(typeof _799)){
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]=args[x];
}else{
var _79e=args[x].split(";");
for(var y=0;y<_79e.length;y++){
var si=_79e[y].indexOf(":");
if((si!=-1)&&(_79e[y].length>si)){
this[x][_79e[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_79e[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_7a2){
},initialize:function(args,frag,_7a5){
return false;
},postInitialize:function(args,frag,_7a8){
return false;
},postCreate:function(args,frag,_7ab){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_7ae){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_7af){
},addChild:function(_7b0){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_7b1){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_7b1){
this.children.splice(x,1);
break;
}
}
return _7b1;
},resize:function(_7b3,_7b4){
this.setWidth(_7b3);
this.setHeight(_7b4);
},setWidth:function(_7b5){
if((typeof _7b5=="string")&&(_7b5.substr(-1)=="%")){
this.setPercentageWidth(_7b5);
}else{
this.setNativeWidth(_7b5);
}
},setHeight:function(_7b6){
if((typeof _7b6=="string")&&(_7b6.substr(-1)=="%")){
this.setPercentageHeight(_7b6);
}else{
this.setNativeHeight(_7b6);
}
},setPercentageHeight:function(_7b7){
return false;
},setNativeHeight:function(_7b8){
return false;
},setPercentageWidth:function(_7b9){
return false;
},setNativeWidth:function(_7ba){
return false;
},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(_7be,_7bf,_7c0){
var _7c1=_7bf.parseProperties(_7be["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_7c2,_7c3,_7c4){
var _7c5=_7c3.parseProperties(_7c2["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_7c8,_7c9,_7ca,_7cb){
dojo.a11y.setAccessibleMode();
var _7cc=type.split(":");
_7cc=(_7cc.length==2)?_7cc[1]:type;
var _7cd=_7cb||_7c8.parseProperties(frag[frag["namespace"]+":"+_7cc]);
var _7ce=dojo.widget.manager.getImplementation(_7cc,null,null,frag["namespace"]);
if(!_7ce){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_7ce.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_7cd["dojoinsertionindex"]=_7ca;
var ret=_7ce.create(_7cd,frag,_7c9,frag["namespace"]);
return ret;
};
dojo.widget.defineWidget=function(_7d0,_7d1,_7d2,init,_7d4){
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(_7d7,_7d8,_7d9,init,_7db){
var _7dc=_7d7.split(".");
var type=_7dc.pop();
var regx="\\.("+(_7d8?_7d8+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_7d7.search(new RegExp(regx));
_7dc=(r<0?_7dc.join("."):_7d7.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_7dc);
var pos=_7dc.indexOf(".");
var _7e1=(pos>-1)?_7dc.substring(0,pos):_7dc;
_7db=(_7db)||{};
_7db.widgetType=type;
if((!init)&&(_7db["classConstructor"])){
init=_7db.classConstructor;
delete _7db.classConstructor;
}
dojo.declare(_7d7,_7d9,init,_7db);
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_7e3,_7e4,_7e5){
var _7e6=_7e3||obj.templatePath;
var _7e7=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _7e8="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_7e7[_7e8]);
obj.widgetType=_7e8;
}
var wt=obj.widgetType;
var ts=_7e7[wt];
if(!ts){
_7e7[wt]={"string":null,"node":null};
if(_7e5){
ts={};
}else{
ts=_7e7[wt];
}
}
if((!obj.templateString)&&(!_7e5)){
obj.templateString=_7e4||ts["string"];
}
if((!obj.templateNode)&&(!_7e5)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_7e6)){
var _7eb=dojo.hostenv.getText(_7e6);
if(_7eb){
_7eb=_7eb.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _7ec=_7eb.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_7ec){
_7eb=_7ec[1];
}
}else{
_7eb="";
}
obj.templateString=_7eb;
if(!_7e5){
_7e7[wt]["string"]=_7eb;
}
}
if((!ts["string"])&&(!_7e5)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_7f0){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_7f0);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_7f0);
}
},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);
}
}};
dojo.widget.attachTemplateNodes=function(_7f4,_7f5,_7f6){
var _7f7=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_7f4){
_7f4=_7f5.domNode;
}
if(_7f4.nodeType!=_7f7){
return;
}
var _7f9=_7f4.all||_7f4.getElementsByTagName("*");
var _7fa=_7f5;
for(var x=-1;x<_7f9.length;x++){
var _7fc=(x==-1)?_7f4:_7f9[x];
var _7fd=[];
if(!_7f5.widgetsInTemplate||!_7fc.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _7ff=_7fc.getAttribute(this.attachProperties[y]);
if(_7ff){
_7fd=_7ff.split(";");
for(var z=0;z<_7fd.length;z++){
if(dojo.lang.isArray(_7f5[_7fd[z]])){
_7f5[_7fd[z]].push(_7fc);
}else{
_7f5[_7fd[z]]=_7fc;
}
}
break;
}
}
var _801=_7fc.getAttribute(this.eventAttachProperty);
if(_801){
var evts=_801.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _803=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _805=tevt.split(":");
tevt=trim(_805[0]);
_803=trim(_805[1]);
}
if(!_803){
_803=tevt;
}
var tf=function(){
var ntf=new String(_803);
return function(evt){
if(_7fa[ntf]){
_7fa[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7fc,tevt,tf,false,true);
}
}
for(var y=0;y<_7f6.length;y++){
var _809=_7fc.getAttribute(_7f6[y]);
if((_809)&&(_809.length)){
var _803=null;
var _80a=_7f6[y].substr(4);
_803=trim(_809);
var _80b=[_803];
if(_803.indexOf(";")>=0){
_80b=dojo.lang.map(_803.split(";"),trim);
}
for(var z=0;z<_80b.length;z++){
if(!_80b[z].length){
continue;
}
var tf=function(){
var ntf=new String(_80b[z]);
return function(evt){
if(_7fa[ntf]){
_7fa[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7fc,_80a,tf,false,true);
}
}
}
}
var _80e=_7fc.getAttribute(this.templateProperty);
if(_80e){
_7f5[_80e]=_7fc;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_7fc.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_7fc,wai.name,"role",val);
}else{
var _812=val.split("-");
dojo.widget.wai.setAttr(_7fc,wai.name,_812[0],_812[1]);
}
}
},this);
var _813=_7fc.getAttribute(this.onBuildProperty);
if(_813){
eval("var node = baseNode; var widget = targetObj; "+_813);
}
}
};
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(_81b,_81c,pos,ref,_81f){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_81f==undefined){
_81f=this.children.length;
}
this.addWidgetAsDirectChild(_81b,_81c,pos,ref,_81f);
this.registerChild(_81b,_81f);
}
return _81b;
},addWidgetAsDirectChild:function(_820,_821,pos,ref,_824){
if((!this.containerNode)&&(!_821)){
this.containerNode=this.domNode;
}
var cn=(_821)?_821:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_824){
_824=0;
}
_820.domNode.setAttribute("dojoinsertionindex",_824);
if(!ref){
cn.appendChild(_820.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_820.domNode,ref.parentNode,_824);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_820.domNode);
}else{
dojo.dom.insertAtPosition(_820.domNode,cn,pos);
}
}
}
},registerChild:function(_826,_827){
_826.dojoInsertionIndex=_827;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_827){
idx=i;
}
}
this.children.splice(idx+1,0,_826);
_826.parent=this;
_826.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_826.widgetId];
},removeChild:function(_82a){
dojo.dom.removeNode(_82a.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_82a);
},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,_82e){
var _82f=this.getFragNodeRef(frag);
if(_82e&&(_82e.snarfChildDomOutput||!_82f)){
_82e.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_82f);
}else{
if(_82f){
if(this.domNode&&(this.domNode!==_82f)){
var _830=_82f.parentNode.replaceChild(this.domNode,_82f);
}
}
}
if(_82e){
_82e.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _831=new dojo.xml.Parse();
var _832;
var _833=this.domNode.getElementsByTagName("*");
for(var i=0;i<_833.length;i++){
if(_833[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_832=_833[i];
}
if(_833[i].getAttribute("dojoType")){
_833[i].setAttribute("_isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_832){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_832);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _836=_831.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_836,this);
var _837=[];
var _838=[this];
var w;
while((w=_838.pop())){
for(var i=0;i<w.children.length;i++){
var _83a=w.children[i];
if(_83a._processedSubWidgets||!_83a.extraArgs["_issubwidget"]){
continue;
}
_837.push(_83a);
if(_83a.isContainer){
_838.push(_83a);
}
}
}
for(var i=0;i<_837.length;i++){
var _83b=_837[i];
if(_83b._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_83b._processedSubWidgets=true;
if(_83b.extraArgs["dojoattachevent"]){
var evts=_83b.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _83e=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _840=tevt.split(":");
tevt=dojo.string.trim(_840[0]);
_83e=dojo.string.trim(_840[1]);
}
if(!_83e){
_83e=tevt;
}
if(dojo.lang.isFunction(_83b[tevt])){
dojo.event.kwConnect({srcObj:_83b,srcFunc:tevt,targetObj:this,targetFunc:_83e});
}else{
alert(tevt+" is not a function in widget "+_83b);
}
}
}
if(_83b.extraArgs["dojoattachpoint"]){
this[_83b.extraArgs["dojoattachpoint"]]=_83b;
}
}
}
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 _844=args["templateCssPath"]||this.templateCssPath;
if(_844&&!dojo.widget._cssFiles[_844.toString()]){
if((!this.templateCssString)&&(_844)){
this.templateCssString=dojo.hostenv.getText(_844);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_844.toString()]=true;
}
if((this["templateCssString"])&&(!this.templateCssString["loaded"])){
dojo.html.insertCssText(this.templateCssString,null,_844);
if(!this.templateCssString){
this.templateCssString="";
}
this.templateCssString.loaded=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 _847=false;
if(args["templatepath"]){
_847=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_847);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_847)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _849=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_849=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_849){
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<_849.length;i++){
var key=_849[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 _850;
if((kval)||(dojo.lang.isString(kval))){
_850=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_850.indexOf("\"")>-1){
_850=_850.replace("\"","&quot;");
}
tstr=tstr.replace(_849[i],_850);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_847){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_849)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_849){
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(_852,_853){
if(!_852){
_852=this.domNode;
}
if(!_853){
_853=this;
}
return dojo.widget.attachTemplateNodes(_852,_853,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_854){
return dojo.html.getDocumentWindow(_854.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 _85c=dojo.html.getCursorPosition(e);
with(dojo.html){
var _85d=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _85f=_85d.x+(bb.width/2);
var _860=_85d.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_85c.x<_85f?WEST:EAST)|(_85c.y<_860?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(_861,e){
_861=dojo.byId(_861);
var _863=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_861);
var _865=dojo.html.getAbsolutePosition(_861,true,dojo.html.boxSizing.BORDER_BOX);
var top=_865.y;
var _867=top+bb.height;
var left=_865.x;
var _869=left+bb.width;
return (_863.x>=left&&_863.x<=_869&&_863.y>=top&&_863.y<=_867);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _86b="";
if(node==null){
return _86b;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _86d="unknown";
try{
_86d=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_86d){
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":
_86b+="\n";
_86b+=dojo.html.renderedTextContent(node.childNodes[i]);
_86b+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_86b+="\n";
}else{
_86b+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _86f="unknown";
try{
_86f=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_86f){
case "capitalize":
var _870=text.split(" ");
for(var i=0;i<_870.length;i++){
_870[i]=_870[i].charAt(0).toUpperCase()+_870[i].substring(1);
}
text=_870.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_86f){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_86b)){
text.replace(/^\s/,"");
}
break;
}
_86b+=text;
break;
default:
break;
}
}
return _86b;
};
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 _874="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_874="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_874="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_874="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _875=null;
switch(_874){
case "cell":
_875=tn.getElementsByTagName("tr")[0];
break;
case "row":
_875=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_875=tn.getElementsByTagName("table")[0];
break;
default:
_875=tn;
break;
}
var _876=[];
for(var x=0;x<_875.childNodes.length;x++){
_876.push(_875.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.body().removeChild(tn);
return _876;
};
dojo.html.placeOnScreen=function(node,_879,_87a,_87b,_87c,_87d,_87e){
if(_879 instanceof Array||typeof _879=="array"){
_87e=_87d;
_87d=_87c;
_87c=_87b;
_87b=_87a;
_87a=_879[1];
_879=_879[0];
}
if(_87d instanceof String||typeof _87d=="string"){
_87d=_87d.split(",");
}
if(!isNaN(_87b)){
_87b=[Number(_87b),Number(_87b)];
}else{
if(!(_87b instanceof Array||typeof _87b=="array")){
_87b=[0,0];
}
}
var _87f=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _881=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_881;
if(!(_87d instanceof Array||typeof _87d=="array")){
_87d=["TL"];
}
var _885,_886,_887=Infinity,_888;
for(var _889=0;_889<_87d.length;++_889){
var _88a=_87d[_889];
var _88b=true;
var tryX=_879-(_88a.charAt(1)=="L"?0:w)+_87b[0]*(_88a.charAt(1)=="L"?1:-1);
var tryY=_87a-(_88a.charAt(0)=="T"?0:h)+_87b[1]*(_88a.charAt(0)=="T"?1:-1);
if(_87c){
tryX-=_87f.x;
tryY-=_87f.y;
}
if(tryX<0){
tryX=0;
_88b=false;
}
if(tryY<0){
tryY=0;
_88b=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_88b=false;
}else{
x=tryX;
}
x=Math.max(_87b[0],x)+_87f.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_88b=false;
}else{
y=tryY;
}
y=Math.max(_87b[1],y)+_87f.y;
if(_88b){
_885=x;
_886=y;
_887=0;
_888=_88a;
break;
}else{
var dist=Math.pow(x-tryX-_87f.x,2)+Math.pow(y-tryY-_87f.y,2);
if(_887>dist){
_887=dist;
_885=x;
_886=y;
_888=_88a;
}
}
}
if(!_87e){
node.style.left=_885+"px";
node.style.top=_886+"px";
}
return {left:_885,top:_886,x:_885,y:_886,dist:_887,corner:_888};
};
dojo.html.placeOnScreenPoint=function(node,_892,_893,_894,_895){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_892,_893,_894,_895,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_897,_898,_899,_89a,_89b){
var best,_89d=Infinity;
_897=dojo.byId(_897);
var _89e=_897.style.display;
_897.style.display="";
var mb=dojo.html.getElementBox(_897,_899);
var _8a0=mb.width;
var _8a1=mb.height;
var _8a2=dojo.html.getAbsolutePosition(_897,true,_899);
_897.style.display=_89e;
for(var _8a3 in _89a){
var pos,_8a5,_8a6;
var _8a7=_89a[_8a3];
_8a5=_8a2.x+(_8a3.charAt(1)=="L"?0:_8a0);
_8a6=_8a2.y+(_8a3.charAt(0)=="T"?0:_8a1);
pos=dojo.html.placeOnScreen(node,_8a5,_8a6,_898,true,_8a7,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_89d>pos.dist){
_89d=pos.dist;
best=pos;
}
}
}
if(!_89b){
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 _8a9=node.parentNode;
var _8aa=_8a9.scrollTop+dojo.html.getBorderBox(_8a9).height;
var _8ab=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_8aa<_8ab){
_8a9.scrollTop+=(_8ab-_8aa);
}else{
if(_8a9.scrollTop>node.offsetTop){
_8a9.scrollTop-=(_8a9.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_8ad,_8ae,_8af){
dojo.html.show(node);
if(dojo.lang.isFunction(_8af)){
_8af();
}
},hide:function(node,_8b1,_8b2,_8b3){
dojo.html.hide(node);
if(dojo.lang.isFunction(_8b3)){
_8b3();
}
}};
dojo.lfx.toggle.fade={show:function(node,_8b5,_8b6,_8b7){
dojo.lfx.fadeShow(node,_8b5,_8b6,_8b7).play();
},hide:function(node,_8b9,_8ba,_8bb){
dojo.lfx.fadeHide(node,_8b9,_8ba,_8bb).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_8bd,_8be,_8bf){
dojo.lfx.wipeIn(node,_8bd,_8be,_8bf).play();
},hide:function(node,_8c1,_8c2,_8c3){
dojo.lfx.wipeOut(node,_8c1,_8c2,_8c3).play();
}};
dojo.lfx.toggle.explode={show:function(node,_8c5,_8c6,_8c7,_8c8){
dojo.lfx.explode(_8c8||{x:0,y:0,width:0,height:0},node,_8c5,_8c6,_8c7).play();
},hide:function(node,_8ca,_8cb,_8cc,_8cd){
dojo.lfx.implode(node,_8cd||{x:0,y:0,width:0,height:0},_8ca,_8cb,_8cc).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,animationInProgress:false,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;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_8d2){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_8d6){
try{
if(!_8d6&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
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(){
this.animationInProgress=true;
this.isHidden=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 _8da=w||wh.width;
var _8db=h||wh.height;
if(this.width==_8da&&this.height==_8db){
return false;
}
this.width=_8da;
this.height=_8db;
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(_8de){
if(_8de.checkSize){
_8de.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _8df=dojo.global();
var _8e0=dojo.doc();
try{
if(_8df["getSelection"]){
if(dojo.render.html.safari){
_8df.getSelection().collapse();
}else{
_8df.getSelection().removeAllRanges();
}
}else{
if(_8e0.selection){
if(_8e0.selection.empty){
_8e0.selection.empty();
}else{
if(_8e0.selection.clear){
_8e0.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_8e1){
_8e1=dojo.byId(_8e1)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_8e1.style.MozUserSelect="none";
}else{
if(h.safari){
_8e1.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_8e1.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_8e3){
_8e3=dojo.byId(_8e3)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_8e3.style.MozUserSelect="";
}else{
if(h.safari){
_8e3.style.KhtmlUserSelect="";
}else{
if(h.ie){
_8e3.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_8e5){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_8e6){
var _8e7=dojo.global();
var _8e8=dojo.doc();
_8e6=dojo.byId(_8e6);
if(_8e8["selection"]&&dojo.body()["createTextRange"]){
var _8e9=_8e6.createTextRange();
_8e9.moveStart("character",0);
_8e9.moveEnd("character",_8e6.value.length);
_8e9.select();
}else{
if(_8e7["getSelection"]){
var _8ea=_8e7.getSelection();
_8e6.setSelectionRange(0,_8e6.value.length);
}
}
_8e6.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 _8eb=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _8ed=oSel.getRangeAt(0);
if(_8ed.startContainer==_8ed.endContainer&&(_8ed.endOffset-_8ed.startOffset)==1&&_8ed.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_8eb=dojo.html.selectionType.CONTROL;
}
}
return _8eb;
}
},isCollapsed:function(){
var _8ee=dojo.global();
var _8ef=dojo.doc();
if(_8ef["selection"]){
return _8ef.selection.createRange().text=="";
}else{
if(_8ee["getSelection"]){
var _8f0=_8ee.getSelection();
if(dojo.lang.isString(_8f0)){
return _8f0=="";
}else{
return _8f0.isCollapsed||_8f0.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _8f1=dojo.doc().selection.createRange();
if(_8f1&&_8f1.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _8f2=dojo.global().getSelection();
return _8f2.anchorNode.childNodes[_8f2.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 _8f4=dojo.global().getSelection();
if(_8f4){
var node=_8f4.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 _8f6=dojo.global().getSelection();
if(_8f6){
return _8f6.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 _8f7=dojo.global().getSelection();
if(_8f7&&_8f7.rangeCount){
var frag=_8f7.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_8fa){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_8fb){
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(_900){
var _901=dojo.global();
var _902=dojo.doc();
_900=dojo.byId(_900);
if(_902.selection&&dojo.body().createTextRange){
try{
var _903=dojo.body().createControlRange();
_903.addElement(_900);
_903.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_900);
}
}else{
if(_901["getSelection"]){
var _904=_901.getSelection();
if(_904["removeAllRanges"]){
var _903=_902.createRange();
_903.selectNode(_900);
_904.removeAllRanges();
_904.addRange(_903);
}
}
}
},selectElementChildren:function(_905){
var _906=dojo.global();
var _907=dojo.doc();
_905=dojo.byId(_905);
if(_907.selection&&dojo.body().createTextRange){
var _908=dojo.body().createTextRange();
_908.moveToElementText(_905);
_908.select();
}else{
if(_906["getSelection"]){
var _909=_906.getSelection();
if(_909["setBaseAndExtent"]){
_909.setBaseAndExtent(_905,0,_905,_905.innerText.length-1);
}else{
if(_909["selectAllChildren"]){
_909.selectAllChildren(_905);
}
}
}
}
},getBookmark:function(){
var _90a;
var _90b=dojo.doc();
if(_90b["selection"]){
var _90c=_90b.selection.createRange();
_90a=_90c.getBookmark();
}else{
var _90d;
try{
_90d=dojo.global().getSelection();
}
catch(e){
}
if(_90d){
var _90c=_90d.getRangeAt(0);
_90a=_90c.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _90a;
},moveToBookmark:function(_90e){
var _90f=dojo.doc();
if(_90f["selection"]){
var _910=_90f.selection.createRange();
_910.moveToBookmark(_90e);
_910.select();
}else{
var _911;
try{
_911=dojo.global().getSelection();
}
catch(e){
}
if(_911&&_911["removeAllRanges"]){
_911.removeAllRanges();
_911.addRange(_90e);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_912){
if(dojo.global()["getSelection"]){
var _913=dojo.global().getSelection();
if(_913.removeAllRanges){
if(_912){
_913.collapseToStart();
}else{
_913.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_912);
}
}else{
if(dojo.doc().selection){
var _914=dojo.doc().selection.createRange();
_914.collapse(_912);
_914.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _915=dojo.doc().selection;
if(_915.type.toUpperCase()!="NONE"){
_915.clear();
}
return _915;
}else{
var _915=dojo.global().getSelection();
for(var i=0;i<_915.rangeCount;i++){
_915.getRangeAt(i).deleteContents();
}
return _915;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_917){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_917))||dojo.html.iframeContentDocument(_917).__parent__||(_917.name&&document.frames[_917.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_919){
var doc=_919.contentDocument||((_919.contentWindow)&&(_919.contentWindow.document))||((_919.name)&&(document.frames[_919.name])&&(document.frames[_919.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe "+"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 _91d=dojo.html.getMarginBox(this.domNode);
if(_91d.width==0||_91d.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_91d.width+"px";
this.iframe.style.height=_91d.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _91f=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
this.iframe.style.width=_91f.width+"px";
this.iframe.style.height=_91f.height+"px";
this.iframe.style.left=_91f.left+"px";
this.iframe.style.top=_91f.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){
return;
}
this.iframe.style.display="block";
},hide:function(){
if(!this.iframe){
return;
}
this.iframe.style.display="none";
},remove:function(){
dojo.html.removeNode(this.iframe);
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isContainer:true,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"display:none;position:absolute;\" class=\"dojoPopupContainer\" ></div>",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,_924,_925,_926,_927){
if(this.isShowingNow){
return;
}
this.aboutToShow();
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.parent=_924;
var _928=false,node,_92a;
if(typeof x=="object"){
node=x;
_92a=_925;
_925=_924;
_924=y;
_928=true;
}
dojo.body().appendChild(this.domNode);
_925=_925||_924["domNode"]||[];
var _92b=null;
this.isTopLevel=true;
while(_924){
if(_924!==this&&(_924.setOpenedSubpopup!=undefined&&_924.applyPopupBasicStyle!=undefined)){
_92b=_924;
this.isTopLevel=false;
_92b.setOpenedSubpopup(this);
break;
}
_924=_924.parent;
}
this.parentPopup=_92b;
this.popupIndex=_92b?_92b.popupIndex+1:1;
if(this.isTopLevel){
var _92c=dojo.html.isNode(_925)?_925:null;
dojo.widget.PopupManager.opened(this,_92c);
}
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(_925 instanceof Array){
_925={left:_925[0],top:_925[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_928){
this.move(node,_927,_92a);
}else{
this.move(x,y,_927,_926);
}
this.domNode.style.display="none";
this.explodeSrc=_925;
this.show();
this.isShowingNow=true;
},move:function(x,y,_92f,_930){
var _931=(typeof x=="object");
if(_931){
var _932=_92f;
var node=x;
_92f=y;
if(!_932){
_932={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_92f,this.aroundBox,_932);
}else{
if(!_930){
_930="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_92f,true,_930);
}
},close:function(_934){
if(_934){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_934);
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;
try{
this.parent.domNode.focus();
}
catch(e){
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
this._bookmark=null;
},closeAll:function(_935){
if(this.parentPopup){
this.parentPopup.closeAll(_935);
}else{
this.close(_935);
}
},setOpenedSubpopup:function(_936){
this.currentSubpopup=_936;
},closeSubpopup:function(_937){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_937);
this.currentSubpopup=null;
},onShow:function(){
this.inherited("onShow");
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],{});
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(_93b){
if(!_93b){
_93b=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_93b);
for(var i=0;i<_93b.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_93b.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,_942){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_942;
};
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;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _947=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.close();
};
};
dojo.provide("dojo.widget.DropdownContainer");
dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),iconAlt:"",inputNode:null,buttonNode:null,containerNode:null,containerToggle:"plain",containerToggleDuration:150,containerAnimInProgress:false,templateString:"<span style=\"white-space:nowrap\"><input type=\"hidden\" name=\"\" value=\"\" dojoAttachPoint=\"valueNode\" /><input name=\"\" type=\"text\" value=\"\" style=\"vertical-align:middle;\" dojoAttachPoint=\"inputNode\" autocomplete=\"off\" /> <img src=\"${this.iconURL}\" alt=\"${this.iconAlt}\" dojoAttachEvent=\"onclick: onIconClick\" dojoAttachPoint=\"buttonNode\" style=\"vertical-align:middle; cursor:pointer; cursor:hand\" /></span>",templateCssPath:"",fillInTemplate:function(args,frag){
var _94b=this.getFragNodeRef(frag);
this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});
this.containerNode=this.popup.domNode;
this.domNode.appendChild(this.popup.domNode);
if(this.id){
this.domNode.id=this.id;
}
if(this.inputId){
this.inputNode.id=this.inputId;
}
if(this.inputName){
this.inputNode.name=this.inputName;
}
this.inputNode.style.width=this.inputWidth;
dojo.event.connect(this.inputNode,"onchange",this,"onInputChange");
},onIconClick:function(evt){
if(!this.isEnabled){
return;
}
if(!this.popup.isShowingNow){
this.popup.open(this.inputNode,this,this.buttonNode);
}else{
this.popup.close();
}
},hideContainer:function(){
if(this.popup.isShowingNow){
this.popup.close();
}
},onInputChange:function(){
}});
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_94d,_94e){
_94d.setMonth(0);
_94d.setDate(_94e);
return _94d;
};
dojo.date.getDayOfYear=function(_94f){
var _950=_94f.getFullYear();
var _951=new Date(_950-1,11,31);
return Math.floor((_94f.getTime()-_951.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_952,week,_954){
if(arguments.length==1){
_954=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_955,_956){
if(arguments.length==1){
_956=0;
}
var _957=new Date(_955.getFullYear(),0,1);
var day=_957.getDay();
_957.setDate(_957.getDate()-day+_956-(day>_956?7:0));
return Math.floor((_955.getTime()-_957.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_959,week,_95b){
if(arguments.length==1){
_95b=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_95c,_95d){
if(arguments.length==1){
_95d=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(_95e){
var _95f=_95e.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_95f==1&&dojo.date.isLeapYear(_95e)){
return 29;
}else{
return days[_95f];
}
};
dojo.date.isLeapYear=function(_961){
var year=_961.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_963){
var str=_963.toString();
var tz="";
var _966;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_966=str.match(pat))){
tz=_966[1];
}else{
str=_963.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_966=str.match(pat))){
tz=_966[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_969){
var date=_969.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(_96b,_96c,_96d){
var dA=_96b;
var dB=_96c||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_96d||(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,_975,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(_975){
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 _979=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;
_979=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_979=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*_979)+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,_981){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _982=dtB.getFullYear()-dtA.getFullYear();
var _983=(dtB.getMonth()-dtA.getMonth())+(_982*12);
var _984=dtB.getTime()-dtA.getTime();
var _985=_984/1000;
var _986=_985/60;
var _987=_986/60;
var _988=_987/24;
var _989=_988/7;
var _98a=0;
with(dojo.date.dateParts){
switch(_981){
case YEAR:
_98a=_982;
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+=(_982*4);
_98a=qB-qA;
break;
case MONTH:
_98a=_983;
break;
case WEEK:
_98a=parseInt(_989);
break;
case DAY:
_98a=_988;
break;
case WEEKDAY:
var days=Math.round(_988);
var _990=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_990*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_990=parseInt(days/7);
mod=days%7;
var _995=new Date(dtA);
_995.setDate(_995.getDate()+(_990*7));
var _996=_995.getDay();
if(_988>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 (_996+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_988<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 (_996+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_990*2);
}
_98a=days;
break;
case HOUR:
_98a=_987;
break;
case MINUTE:
_98a=_986;
break;
case SECOND:
_98a=_985;
break;
case MILLISECOND:
_98a=_984;
break;
default:
break;
}
}
return Math.round(_98a);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_997){
var _998={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};
_997=dojo.hostenv.normalizeLocale(_997);
var _999=_997.split("-")[1];
var dow=_998[_999];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_99b){
var _99c={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 _99d={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};
_99b=dojo.hostenv.normalizeLocale(_99b);
var _99e=_99b.split("-")[1];
var _99f=_99c[_99e];
var end=_99d[_99e];
if(typeof _99f=="undefined"){
_99f=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_99f,end:end};
};
dojo.date.isWeekend=function(_9a1,_9a2){
var _9a3=dojo.date.getWeekend(_9a2);
var day=(_9a1||new Date()).getDay();
if(_9a3.end<_9a3.start){
_9a3.end+=7;
if(day<_9a3.start){
day+=7;
}
}
return day>=_9a3.start&&day<=_9a3.end;
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_9a5,_9a6,_9a7){
dojo.hostenv.preloadLocalizations();
_9a7=dojo.hostenv.normalizeLocale(_9a7);
var _9a8=_9a7.split("-");
var _9a9=[_9a5,"nls",_9a6].join(".");
var _9aa=dojo.hostenv.findModule(_9a9,true);
var _9ab;
for(var i=_9a8.length;i>0;i--){
var loc=_9a8.slice(0,i).join("_");
if(_9aa[loc]){
_9ab=_9aa[loc];
break;
}
}
if(!_9ab){
_9ab=_9aa.ROOT;
}
if(_9ab){
var _9ae=function(){
};
_9ae.prototype=_9ab;
return new _9ae();
}
dojo.raise("Bundle not found: "+_9a6+" in "+_9a5+" , locale="+_9a7);
};
dojo.i18n.isLTR=function(_9af){
var lang=dojo.hostenv.normalizeLocale(_9af).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_9b2,_9b3){
if(typeof _9b3=="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(_9b2,_9b3);
}
function formatPattern(_9b4,_9b5){
return _9b5.replace(/[a-zA-Z]+/g,function(_9b6){
var s;
var c=_9b6.charAt(0);
var l=_9b6.length;
var pad;
var _9bb=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_9b4.getFullYear()<0?1:0];
break;
case "y":
s=_9b4.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((_9b4.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=_9b4.getMonth();
var _9be;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_9be=_9bb[l-3];
break;
}
if(_9be){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_9be].join("-");
s=info[prop][m];
}
break;
case "w":
var _9c1=0;
s=dojo.date.getWeekOfYear(_9b4,_9c1);
pad=true;
break;
case "d":
s=_9b4.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_9b4);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_9b4.getDay();
var _9be;
switch(l){
case 1:
case 2:
if(c=="e"){
var _9c3=dojo.date.getFirstDayOfWeek(_9b3.locale);
d=(d-_9c3+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_9be=_9bb[l-3];
break;
}
if(_9be){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_9be].join("-");
s=info[prop][d];
}
break;
case "a":
var _9c4=(_9b4.getHours()<12)?"am":"pm";
s=info[_9c4];
break;
case "h":
case "H":
case "K":
case "k":
var h=_9b4.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=_9b4.getMinutes();
pad=true;
break;
case "s":
s=_9b4.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_9b4.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_9b4);
if(s){
break;
}
l=4;
case "Z":
var _9c6=_9b4.getTimezoneOffset();
var tz=[(_9c6<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_9c6)/60),2),dojo.string.pad(Math.abs(_9c6)%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(_9b6+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_9b5);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_9b3=_9b3||{};
var _9c8=dojo.hostenv.normalizeLocale(_9b3.locale);
var _9c9=_9b3.formatLength||"full";
var info=dojo.date._getGregorianBundle(_9c8);
var str=[];
var _9cb=dojo.lang.curry(this,formatPattern,_9b2);
if(_9b3.selector!="timeOnly"){
var _9cc=_9b3.datePattern||info["dateFormat-"+_9c9];
if(_9cc){
str.push(_processPattern(_9cc,_9cb));
}
}
if(_9b3.selector!="dateOnly"){
var _9cd=_9b3.timePattern||info["timeFormat-"+_9c9];
if(_9cd){
str.push(_processPattern(_9cd,_9cb));
}
}
var _9ce=str.join(" ");
return _9ce;
};
dojo.date.parse=function(_9cf,_9d0){
_9d0=_9d0||{};
var _9d1=dojo.hostenv.normalizeLocale(_9d0.locale);
var info=dojo.date._getGregorianBundle(_9d1);
var _9d3=_9d0.formatLength||"full";
if(!_9d0.selector){
_9d0.selector="dateOnly";
}
var _9d4=_9d0.datePattern||info["dateFormat-"+_9d3];
var _9d5=_9d0.timePattern||info["timeFormat-"+_9d3];
var _9d6;
if(_9d0.selector=="dateOnly"){
_9d6=_9d4;
}else{
if(_9d0.selector=="timeOnly"){
_9d6=_9d5;
}else{
if(_9d0.selector=="dateTime"){
_9d6=_9d4+" "+_9d5;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_9d0.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_9d6=_9d4;
}
}
}
var _9d8=[];
var _9d9=_processPattern(_9d6,dojo.lang.curry(this,_buildDateTimeRE,_9d8,info,_9d0));
var _9da=new RegExp("^"+_9d9+"$");
var _9db=_9da.exec(_9cf);
if(!_9db){
return null;
}
var _9dc=["abbr","wide","narrow"];
var _9dd=new Date(1972,0);
var _9de={};
for(var i=1;i<_9db.length;i++){
var grp=_9d8[i-1];
var l=grp.length;
var v=_9db[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_9dd.setFullYear(v);
_9de.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _9e4=year.substring(0,2)*100;
var _9e5=Number(year.substring(2,4));
var _9e6=Math.min(_9e5+20,99);
var num=(v<_9e6)?_9e4+v:_9e4-100+v;
_9dd.setFullYear(num);
_9de.year=num;
}else{
if(_9d0.strict){
return null;
}
_9dd.setFullYear(v);
_9de.year=v;
}
}
break;
case "M":
if(l>2){
if(!_9d0.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _9e8=info["months-format-"+_9dc[l-3]].concat();
for(var j=0;j<_9e8.length;j++){
if(!_9d0.strict){
_9e8[j]=_9e8[j].toLowerCase();
}
if(v==_9e8[j]){
_9dd.setMonth(j);
_9de.month=j;
break;
}
}
if(j==_9e8.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_9dd.setMonth(v-1);
_9de.month=v-1;
}
break;
case "E":
case "e":
if(!_9d0.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_9dc[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_9d0.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":
_9dd.setDate(v);
_9de.date=v;
break;
case "a":
var am=_9d0.am||info.am;
var pm=_9d0.pm||info.pm;
if(!_9d0.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_9d0.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _9ed=_9dd.getHours();
if(v==pm&&_9ed<12){
_9dd.setHours(_9ed+12);
}else{
if(v==am&&_9ed==12){
_9dd.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;
}
_9dd.setHours(v);
break;
case "m":
_9dd.setMinutes(v);
break;
case "s":
_9dd.setSeconds(v);
break;
case "S":
_9dd.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_9de.year&&_9dd.getFullYear()!=_9de.year){
dojo.debug("Parsed year: '"+_9dd.getFullYear()+"' did not match input year: '"+_9de.year+"'.");
return null;
}
if(_9de.month&&_9dd.getMonth()!=_9de.month){
dojo.debug("Parsed month: '"+_9dd.getMonth()+"' did not match input month: '"+_9de.month+"'.");
return null;
}
if(_9de.date&&_9dd.getDate()!=_9de.date){
dojo.debug("Parsed day of month: '"+_9dd.getDate()+"' did not match input day of month: '"+_9de.date+"'.");
return null;
}
return _9dd;
};
function _processPattern(_9ee,_9ef,_9f0,_9f1){
var _9f2=function(x){
return x;
};
_9ef=_9ef||_9f2;
_9f0=_9f0||_9f2;
_9f1=_9f1||_9f2;
var _9f4=_9ee.match(/(''|[^'])+/g);
var _9f5=false;
for(var i=0;i<_9f4.length;i++){
if(!_9f4[i]){
_9f4[i]="";
}else{
_9f4[i]=(_9f5?_9f0:_9ef)(_9f4[i]);
_9f5=!_9f5;
}
}
return _9f1(_9f4.join(""));
}
function _buildDateTimeRE(_9f7,info,_9f9,_9fa){
return _9fa.replace(/[a-zA-Z]+/g,function(_9fb){
var s;
var c=_9fb.charAt(0);
var l=_9fb.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=_9f9.am||info.am||"AM";
var pm=_9f9.pm||info.pm||"PM";
if(_9f9.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="+_9fa);
}
if(_9f7){
_9f7.push(_9fb);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_a01,_a02,_a03){
var _a04=null;
function _(s,n){
return dojo.string.pad(s,n||2,_a04||"0");
}
var info=dojo.date._getGregorianBundle(_a03);
function $(_a08){
switch(_a08){
case "a":
return dojo.date.getDayShortName(_a01,_a03);
case "A":
return dojo.date.getDayName(_a01,_a03);
case "b":
case "h":
return dojo.date.getMonthShortName(_a01,_a03);
case "B":
return dojo.date.getMonthName(_a01,_a03);
case "c":
return dojo.date.format(_a01,{locale:_a03});
case "C":
return _(Math.floor(_a01.getFullYear()/100));
case "d":
return _(_a01.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_a04==null){
_a04=" ";
}
return _(_a01.getDate());
case "f":
if(_a04==null){
_a04=" ";
}
return _(_a01.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_a01.getHours());
case "I":
return _(_a01.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_a01),3);
case "k":
if(_a04==null){
_a04=" ";
}
return _(_a01.getHours());
case "l":
if(_a04==null){
_a04=" ";
}
return _(_a01.getHours()%12||12);
case "m":
return _(_a01.getMonth()+1);
case "M":
return _(_a01.getMinutes());
case "n":
return "\n";
case "p":
return info[_a01.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_a01.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_a01.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_a01));
case "V":
return _(dojo.date.getIsoWeekOfYear(_a01));
case "W":
return _(dojo.date.getWeekOfYear(_a01,1));
case "w":
return String(_a01.getDay());
case "x":
return dojo.date.format(_a01,{selector:"dateOnly",locale:_a03});
case "X":
return dojo.date.format(_a01,{selector:"timeOnly",locale:_a03});
case "y":
return _(_a01.getFullYear()%100);
case "Y":
return String(_a01.getFullYear());
case "z":
var _a09=_a01.getTimezoneOffset();
return (_a09>0?"-":"+")+_(Math.floor(Math.abs(_a09)/60))+":"+_(Math.abs(_a09)%60);
case "Z":
return dojo.date.getTimezoneName(_a01);
case "%":
return "%";
}
}
var _a0a="";
var i=0;
var _a0c=0;
var _a0d=null;
while((_a0c=_a02.indexOf("%",i))!=-1){
_a0a+=_a02.substring(i,_a0c++);
switch(_a02.charAt(_a0c++)){
case "_":
_a04=" ";
break;
case "-":
_a04="";
break;
case "0":
_a04="0";
break;
case "^":
_a0d="upper";
break;
case "*":
_a0d="lower";
break;
case "#":
_a0d="swap";
break;
default:
_a04=null;
_a0c--;
break;
}
var _a0e=$(_a02.charAt(_a0c++));
switch(_a0d){
case "upper":
_a0e=_a0e.toUpperCase();
break;
case "lower":
_a0e=_a0e.toLowerCase();
break;
case "swap":
var _a0f=_a0e.toLowerCase();
var _a10="";
var j=0;
var ch="";
while(j<_a0e.length){
ch=_a0e.charAt(j);
_a10+=(ch==_a0f.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_a0e=_a10;
break;
default:
break;
}
_a0d=null;
_a0a+=_a0e;
i=_a0c;
}
_a0a+=_a02.substring(i);
return _a0a;
};
(function(){
var _a13=[];
dojo.date.addCustomFormats=function(_a14,_a15){
_a13.push({pkg:_a14,name:_a15});
};
dojo.date._getGregorianBundle=function(_a16){
var _a17={};
dojo.lang.forEach(_a13,function(desc){
var _a19=dojo.i18n.getLocalization(desc.pkg,desc.name,_a16);
_a17=dojo.lang.mixin(_a17,_a19);
},this);
return _a17;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_a1d){
var _a1e;
var _a1f=dojo.date._getGregorianBundle(_a1d);
var _a20=[item,use,type];
if(use=="standAlone"){
_a1e=_a1f[_a20.join("-")];
}
_a20[1]="format";
return (_a1e||_a1f[_a20.join("-")]).concat();
};
dojo.date.getDayName=function(_a21,_a22){
return dojo.date.getNames("days","wide","format",_a22)[_a21.getDay()];
};
dojo.date.getDayShortName=function(_a23,_a24){
return dojo.date.getNames("days","abbr","format",_a24)[_a23.getDay()];
};
dojo.date.getMonthName=function(_a25,_a26){
return dojo.date.getNames("months","wide","format",_a26)[_a25.getMonth()];
};
dojo.date.getMonthShortName=function(_a27,_a28){
return dojo.date.getNames("months","abbr","format",_a28)[_a27.getMonth()];
};
dojo.date.toRelativeString=function(_a29){
var now=new Date();
var diff=(now-_a29)/1000;
var end=" ago";
var _a2d=false;
if(diff<0){
_a2d=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 _a2d?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_a29);
};
dojo.date.toSql=function(_a2e,_a2f){
return dojo.date.strftime(_a2e,"%F"+!_a2f?" %T":"");
};
dojo.date.fromSql=function(_a30){
var _a31=_a30.split(/[\- :]/g);
while(_a31.length<6){
_a31.push(0);
}
return new Date(_a31[0],(parseInt(_a31[1],10)-1),_a31[2],_a31[3],_a31[4],_a31[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_a32,_a33){
var _a34=(_a33.indexOf("T")==-1)?_a33.split(" "):_a33.split("T");
_a32=dojo.date.setIso8601Date(_a32,_a34[0]);
if(_a34.length==2){
_a32=dojo.date.setIso8601Time(_a32,_a34[1]);
}
return _a32;
};
dojo.date.fromIso8601=function(_a35){
return dojo.date.setIso8601(new Date(0,0),_a35);
};
dojo.date.setIso8601Date=function(_a36,_a37){
var _a38="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_a37.match(new RegExp(_a38));
if(!d){
dojo.debug("invalid date string: "+_a37);
return null;
}
var year=d[1];
var _a3b=d[4];
var date=d[6];
var _a3d=d[8];
var week=d[10];
var _a3f=d[12]?d[12]:1;
_a36.setFullYear(year);
if(_a3d){
_a36.setMonth(0);
_a36.setDate(Number(_a3d));
}else{
if(week){
_a36.setMonth(0);
_a36.setDate(1);
var gd=_a36.getDay();
var day=gd?gd:7;
var _a42=Number(_a3f)+(7*Number(week));
if(day<=4){
_a36.setDate(_a42+1-day);
}else{
_a36.setDate(_a42+8-day);
}
}else{
if(_a3b){
_a36.setDate(1);
_a36.setMonth(_a3b-1);
}
if(date){
_a36.setDate(date);
}
}
}
return _a36;
};
dojo.date.fromIso8601Date=function(_a43){
return dojo.date.setIso8601Date(new Date(0,0),_a43);
};
dojo.date.setIso8601Time=function(_a44,_a45){
var _a46="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_a45.match(new RegExp(_a46));
var _a48=0;
if(d){
if(d[0]!="Z"){
_a48=(Number(d[3])*60)+Number(d[5]);
_a48*=((d[2]=="-")?1:-1);
}
_a48-=_a44.getTimezoneOffset();
_a45=_a45.substr(0,_a45.length-d[0].length);
}
var _a49="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_a45.match(new RegExp(_a49));
if(!d){
dojo.debug("invalid time string: "+_a45);
return null;
}
var _a4a=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;
_a44.setHours(_a4a);
_a44.setMinutes(mins);
_a44.setSeconds(secs);
_a44.setMilliseconds(ms);
if(_a48!==0){
_a44.setTime(_a44.getTime()+_a48*60000);
}
return _a44;
};
dojo.date.fromIso8601Time=function(_a4e){
return dojo.date.setIso8601Time(new Date(0,0),_a4e);
};
dojo.date.toRfc3339=function(_a4f,_a50){
if(!_a4f){
_a4f=new Date();
}
var _=dojo.string.pad;
var _a52=[];
if(_a50!="timeOnly"){
var date=[_(_a4f.getFullYear(),4),_(_a4f.getMonth()+1,2),_(_a4f.getDate(),2)].join("-");
_a52.push(date);
}
if(_a50!="dateOnly"){
var time=[_(_a4f.getHours(),2),_(_a4f.getMinutes(),2),_(_a4f.getSeconds(),2)].join(":");
var _a55=_a4f.getTimezoneOffset();
time+=(_a55>0?"-":"+")+_(Math.floor(Math.abs(_a55)/60),2)+":"+_(Math.abs(_a55)%60,2);
_a52.push(time);
}
return _a52.join("T");
};
dojo.date.fromRfc3339=function(_a56){
if(_a56.indexOf("Tany")!=-1){
_a56=_a56.replace("Tany","");
}
var _a57=new Date();
return dojo.date.setIso8601(_a57,_a56);
};
dojo.provide("dojo.widget.DatePicker");
dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",storedDate:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedItem"},templatePath:dojo.uri.dojoUri("src/widget/templates/DatePicker.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/DatePicker.css"),postMixInProperties:function(){
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);
if(this.storedDate){
dojo.deprecated("dojo.widget.DatePicker","use 'date' instead of 'storedDate'","0.5");
this.value=this.storedDate;
}
this.startDate=dojo.date.fromRfc3339(this.startDate);
this.endDate=dojo.date.fromRfc3339(this.endDate);
this.startDate.setHours(0,0,0,0);
this.endDate.setHours(24,0,0,-1);
if(!this.weekStartsOn){
this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang);
}
this.today=new Date();
this.today.setHours(0,0,0,0);
if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){
this.value=dojo.date.fromRfc3339(this.value);
this.value.setHours(0,0,0,0);
}
},fillInTemplate:function(args,frag){
dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments);
var _a5a=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_a5a);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI((this.value)?this.value:this.today,false,true);
var _a5b=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_a5b.push(_a5b.shift());
}
}
var _a5d=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_a5d.item(i).innerHTML=_a5b[i];
}
},getValue:function(){
return dojo.date.toRfc3339(new Date(this.value),"dateOnly");
},getDate:function(){
return this.value;
},setValue:function(_a5e){
this.setDate(_a5e);
},setDate:function(_a5f){
if(typeof _a5f=="string"){
this.value=dojo.date.fromRfc3339(_a5f);
}else{
this.value=new Date(_a5f);
}
this.value.setHours(0,0,0,0);
if(this.selectedNode!=null){
dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate);
}
if(this.clickedNode!=null){
dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);
this.selectedNode=this.clickedNode;
}else{
this._preInitUI(this.value,false,true);
}
this.clickedNode=null;
this.onValueChanged(this.value);
},_preInitUI:function(_a60,_a61,_a62){
this.firstDay=this._initFirstDay(_a60,_a61);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _a63=new Date(this.firstDay);
var _a64=_a63.getMonth();
this.curMonth=new Date(_a63);
this.curMonth.setDate(_a63.getDate()+6);
this.curMonth.setDate(1);
if(this.displayWeeks==""||this.adjustWeeks){
this.adjustWeeks=true;
this.displayWeeks=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth))/7);
}
var days=this.displayWeeks*7;
if(dojo.date.diff(this.startDate,this.endDate,dojo.date.dateParts.DAY)<days){
this.staticDisplay=true;
if(dojo.date.diff(_a63,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_a63=new Date(this.firstDay);
}
this.curMonth=new Date(_a63);
this.curMonth.setDate(_a63.getDate()+6);
this.curMonth.setDate(1);
var _a66=(_a63.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_a62){
this._initUI(days);
}
},_initUI:function(days){
dojo.dom.removeChildren(this.calendarDatesContainerNode);
for(var i=0;i<this.displayWeeks;i++){
this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
}
var _a69=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _a6a=this.calendarDatesContainerNode.getElementsByTagName("td");
var _a6b=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _a6c;
for(i=0;i<days;i++){
_a6c=_a6a.item(i);
_a6c.innerHTML=_a69.getDate();
var _a6d=(_a69.getMonth()<this.curMonth.getMonth())?"previous":(_a69.getMonth()==this.curMonth.getMonth())?"current":"next";
var _a6e=_a6d;
if(this._isDisabledDate(_a69)){
var _a6f={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_a6e=_a6f[_a6d];
}
dojo.html.setClass(_a6c,this._getDateClassName(_a69,_a6e));
if(dojo.html.hasClass(_a6c,this.classNames.selectedDate)){
this.selectedNode=_a6c;
}
_a69=dojo.date.add(_a69,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_a69,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _a72,_a73,_a74,_a75,_a76,_a77;
_a72=_a73=_a74=_a75=_a76=_a77=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_a72&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_a72=_a74=_a76=false;
}
if(_a73&&d2>this.endDate){
_a73=_a75=_a77=false;
}
if(_a74&&add(d,DAY,-1)<this.startDate){
_a74=_a76=false;
}
if(_a75&&add(d2,DAY,1)>this.endDate){
_a75=_a77=false;
}
if(_a76&&add(d2,YEAR,-1)<this.startDate){
_a76=false;
}
if(_a77&&add(d,YEAR,1)>this.endDate){
_a77=false;
}
}
function enableControl(node,_a7a){
dojo.html.setVisibility(node,_a7a?"":"hidden");
}
enableControl(this.decreaseWeekNode,_a72);
enableControl(this.increaseWeekNode,_a73);
enableControl(this.decreaseMonthNode,_a74);
enableControl(this.increaseMonthNode,_a75);
enableControl(this.previousYearLabelNode,_a76);
enableControl(this.nextYearLabelNode,_a77);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _a7d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_a7d<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
}
break;
case this.decreaseWeekNode.getElementsByTagName("img").item(0):
case this.decreaseWeekNode:
if(d>=this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
}
break;
}
this._preInitUI(d,true,true);
},_incrementMonth:function(evt){
var d=new Date(this.curMonth);
var _a80=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_a80=dojo.date.add(_a80,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_a80<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _a81=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_a80>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _a82=true;
}
break;
}
if(_a82){
d=new Date(this.startDate);
}else{
if(_a81){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _a85=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_a85=dojo.date.add(_a85,dojo.date.dateParts.YEAR,1);
if(_a85<this.endDate){
year++;
}else{
var _a86=true;
}
break;
case this.previousYearLabelNode:
_a85=dojo.date.add(_a85,dojo.date.dateParts.YEAR,-1);
if(_a85>this.startDate){
year--;
}else{
var _a87=true;
}
break;
}
var d;
if(_a87){
d=new Date(this.startDate);
}else{
if(_a86){
d=new Date(this.endDate);
}else{
d=new Date(year,this.curMonth.getMonth(),1);
}
}
this._preInitUI(d,false,true);
},onIncrementWeek:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementWeek(evt);
}
},onIncrementMonth:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementMonth(evt);
}
},onIncrementYear:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementYear(evt);
}
},_setMonthLabel:function(_a8c){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_a8c];
},_setYearLabels:function(year){
var y=year-1;
var that=this;
function f(n){
that[n+"YearLabelNode"].innerHTML=dojo.date.format(new Date(y++,0),{formatLength:"yearOnly",locale:that.lang});
}
f("previous");
f("current");
f("next");
},_getDateClassName:function(date,_a92){
var _a93=this.classNames[_a92];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_a93=this.classNames.selectedDate+" "+_a93;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_a93=_a93+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _a93;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _a96=evt.target;
if(_a96.nodeType!=dojo.dom.ELEMENT_NODE){
_a96=_a96.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
var _a97=this.curMonth.getMonth();
var year=this.curMonth.getFullYear();
if(dojo.html.hasClass(_a96,this.classNames["disabledPrevious"])||dojo.html.hasClass(_a96,this.classNames["disabledCurrent"])||dojo.html.hasClass(_a96,this.classNames["disabledNext"])){
return;
}else{
if(dojo.html.hasClass(_a96,this.classNames["next"])){
_a97=++_a97%12;
if(_a97===0){
++year;
}
}else{
if(dojo.html.hasClass(_a96,this.classNames["previous"])){
_a97=--_a97%12;
if(_a97==11){
--year;
}
}
}
}
this.clickedNode=_a96;
this.setDate(new Date(year,_a97,_a96.innerHTML));
},onValueChanged:function(date){
},_isDisabledDate:function(_a9a){
if(_a9a<this.startDate||_a9a>this.endDate){
return true;
}
return this.isDisabledDate(_a9a,this.lang);
},isDisabledDate:function(_a9b,_a9c){
return false;
},_initFirstDay:function(_a9d,adj){
var d=new Date(_a9d);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_aa0){
var days=[0,1,2,3,4,5,6];
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
days.unshift(days.pop());
}
}
return days[_aa0.getDay()];
}});
dojo.provide("dojo.widget.DropdownDatePicker");
dojo.widget.defineWidget("dojo.widget.DropdownDatePicker",dojo.widget.DropdownContainer,{iconURL:dojo.uri.dojoUri("src/widget/templates/images/dateIcon.gif"),zIndex:"10",displayFormat:"",dateFormat:"",saveFormat:"",formatLength:"short",value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",storedDate:"",staticDisplay:false,postMixInProperties:function(_aa3,frag){
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
var _aa5=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
this.iconAlt=_aa5.selectDate;
if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
this.value=new Date();
}
if(this.value&&isNaN(this.value)){
var orig=this.value;
this.value=dojo.date.fromRfc3339(this.value);
if(!this.value){
this.value=new Date(orig);
dojo.deprecated("dojo.widget.DropdownDatePicker","date attributes must be passed in Rfc3339 format","0.5");
}
}
if(this.value&&!isNaN(this.value)){
this.value=new Date(this.value);
}
},fillInTemplate:function(args,frag){
dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this,args,frag);
var _aa9={widgetContainerId:this.widgetId};
if(this.value){
_aa9.value=this.value;
}
if(this.startDate){
_aa9.startDate=this.startDate;
}
if(this.endDate){
_aa9.endDate=this.endDate;
}
if(this.displayWeeks){
_aa9.displayWeeks=this.displayWeeks;
}
if(this.weekStartsOn){
_aa9.weekStartsOn=this.weekStartsOn;
}
if(this.adjustWeeks){
_aa9.adjustWeeks=this.adjustWeeks;
}
if(this.staticDisplay){
_aa9.staticDisplay=this.staticDisplay;
}
if(this.value){
_aa9.date=this.value;
}
if(this.storedDate){
_aa9.storedDate=this.storedDate;
}
this.datePicker=dojo.widget.createWidget("DatePicker",_aa9,this.containerNode,"child");
dojo.event.connect(this.datePicker,"onValueChanged",this,"onSetDate");
if(this.value){
this.onSetDate();
}
this.containerNode.style.zIndex=this.zIndex;
this.containerNode.explodeClassName="calendarBodyContainer";
this.valueNode.name=this.name;
},getValue:function(_aaa){
return (_aaa)?dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang}):dojo.date.toRfc3339(new Date(this.datePicker.value),"dateOnly");
},getDate:function(){
return this.datePicker.value;
},setValue:function(_aab){
this.setDate(_aab);
},setDate:function(_aac){
this.datePicker.setDate(_aac);
this._synchValueNode();
},onSetDate:function(){
if(this.dateFormat){
dojo.deprecated("dojo.widget.DropdownDatePicker","Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5");
this.inputNode.value=dojo.date.strftime(this.datePicker.value,this.dateFormat,this.lang);
}else{
this.inputNode.value=dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
}
this._synchValueNode();
this.onValueChanged(this.getDate());
this.hideContainer();
},onValueChanged:function(date){
},onInputChange:function(){
if(this.dateFormat){
dojo.deprecated("dojo.widget.DropdownDatePicker","Cannot parse user input.  Must use displayFormat attribute instead of dateFormat.  See dojo.date.format for specification.","0.5");
}else{
var _aae=dojo.string.trim(this.inputNode.value);
if(_aae){
var _aaf=dojo.date.parse(_aae,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
if(_aaf){
this.setDate(_aaf);
}
}else{
this.valueNode.value=_aae;
}
}
if(_aae){
this.onSetDate();
}
},_synchValueNode:function(){
var date=this.datePicker.value;
var _ab1;
switch(this.saveFormat.toLowerCase()){
case "rfc":
case "iso":
case "":
_ab1=dojo.date.toRfc3339(date,"dateOnly");
break;
case "posix":
case "unix":
_ab1=Number(date);
break;
default:
_ab1=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
}
this.valueNode.value=_ab1;
},enable:function(){
this.inputNode.disabled=false;
this.datePicker.enable();
this.inherited("enable",[]);
},disable:function(){
this.inputNode.disabled=true;
this.datePicker.disable();
this.inherited("disable",[]);
}});
dojo.provide("dojo.widget.Button");
dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",disabled:false,templatePath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.css"),inactiveImg:"src/widget/templates/images/soriaButton-",activeImg:"src/widget/templates/images/soriaActive-",pressedImg:"src/widget/templates/images/soriaPressed-",disabledImg:"src/widget/templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){
if(this.caption){
this.containerNode.appendChild(document.createTextNode(this.caption));
}
dojo.html.disableSelection(this.containerNode);
},postCreate:function(){
this._sizeMyself();
},_sizeMyself:function(){
if(this.domNode.parentNode){
var _ab2=document.createElement("span");
dojo.html.insertBefore(_ab2,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_ab2){
dojo.html.insertBefore(this.domNode,_ab2);
dojo.html.removeNode(_ab2);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _ab4=this.height*this.width2height;
this.containerNode.style.left=_ab4+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_ab4+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_ab4+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
if(this.disabled){
dojo.html.prependClass(this.domNode,"dojoButtonDisabled");
this.domNode.removeAttribute("tabIndex");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
}else{
dojo.html.removeClass(this.domNode,"dojoButtonDisabled");
this.domNode.setAttribute("tabIndex","0");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
}
this.domNode.style.height=this.height+"px";
this.domNode.style.width=(this.containerWidth+2*_ab4)+"px";
},onMouseOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.activeImg);
},onMouseDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.pressedImg);
},onMouseUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.activeImg);
},onMouseOut:function(e){
if(this.disabled){
return;
}
if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){
return;
}
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.inactiveImg);
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
},onFocus:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(menu){
dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur");
}
},onBlur:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(!menu){
return;
}
if(menu.close&&menu.isShowingNow){
menu.close();
}
},buttonClick:function(e){
if(!this.disabled){
try{
this.domNode.focus();
}
catch(e2){
}
this.onClick(e);
}
},onClick:function(e){
},_setImage:function(_ac1){
this.leftImage.src=dojo.uri.dojoUri(_ac1+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_ac1+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_ac1+"r.gif");
},_toggleMenu:function(_ac2){
var menu=dojo.widget.getWidgetById(_ac2);
if(!menu){
return;
}
if(menu.open&&!menu.isShowingNow){
var pos=dojo.html.getAbsolutePosition(this.domNode,false);
menu.open(pos.x,pos.y+this.height,this);
}else{
if(menu.close&&menu.isShowingNow){
menu.close();
}else{
menu.toggle();
}
}
},setCaption:function(_ac5){
this.caption=_ac5;
this.containerNode.innerHTML=_ac5;
this._sizeMyself();
},setDisabled:function(_ac6){
this.disabled=_ac6;
this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"src/widget/templates/images/whiteDownArrow.gif",disabledDownArrow:"src/widget/templates/images/whiteDownArrow.gif",fillInTemplate:function(){
dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);
this.arrow=document.createElement("img");
dojo.html.setClass(this.arrow,"downArrow");
dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId);
},_sizeMyselfHelper:function(){
this.arrow.src=dojo.uri.dojoUri(this.disabled?this.disabledDownArrow:this.downArrow);
this.containerNode.appendChild(this.arrow);
dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
},onClick:function(e){
this._toggleMenu(this.menuId);
}});
dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templatePath:dojo.uri.dojoUri("src/widget/templates/ComboButtonTemplate.html"),splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _aca=this.height/3;
if(this.disabled){
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
this.domNode.removeAttribute("tabIndex");
}else{
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
this.domNode.setAttribute("tabIndex","0");
}
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;
this.leftImage.width=_aca+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_aca+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_aca+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_aca+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _acb=this.containerWidth+this.splitWidth+this.arrowWidth+2*_aca;
this.domNode.style.width=_acb+"px";
},_setImage:function(_acc){
this.leftImage.src=dojo.uri.dojoUri(_acc+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_acc+"c.gif");
},rightOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.activeImg);
},rightDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.pressedImg);
},rightUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.activeImg);
},rightOut:function(e){
if(this.disabled){
return;
}
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.inactiveImg);
},rightClick:function(e){
if(this.disabled){
return;
}
try{
this.domNode.focus();
}
catch(e2){
}
this._toggleMenu(this.menuId);
},_setImageR:function(_ad2){
this.arrowBackgroundImage.src=dojo.uri.dojoUri(_ad2+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_ad2+"r.gif");
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(e.key==e.KEY_DOWN_ARROW&&e.altKey){
this.rightDown(e);
this.rightClick(e);
dojo.lang.setTimeout(this,"rightUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
}
}
}});

