/*
	Copyright (c) 2004-2005, 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.
*/

var dj_global=this;
function dj_undef(_1,_2){
if(!_2){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
var dojo;
if(dj_undef("dojo")){
dojo={};
}
dojo.version={major:0,minor:2,patch:2,flag:"+",revision:Number("$Rev: 2889 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalObjPath=function(_3,_4){
if(typeof _3!="string"){
return dj_global;
}
if(_3.indexOf(".")==-1){
if((dj_undef(_3,dj_global))&&(_4)){
dj_global[_3]={};
}
return dj_global[_3];
}
var _5=_3.split(/\./);
var _6=dj_global;
for(var i=0;i<_5.length;++i){
if(!_4){
_6=_6[_5[i]];
if((typeof _6=="undefined")||(!_6)){
return _6;
}
}else{
if(dj_undef(_5[i],_6)){
_6[_5[i]]={};
}
_6=_6[_5[i]];
}
}
return _6;
};
dojo.errorToString=function(_8){
return ((!dj_undef("message",_8))?_8.message:(dj_undef("description",_8)?_8:_8.description));
};
dojo.raise=function(_9,_a){
if(_a){
_9=_9+": "+dojo.errorToString(_a);
}
var he=dojo.hostenv;
if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){
dojo.hostenv.println("FATAL: "+_9);
}
throw Error(_9);
};
dj_throw=dj_rethrow=function(m,e){
dojo.deprecated("dj_throw and dj_rethrow deprecated, use dojo.raise instead");
dojo.raise(m,e);
};
dojo.debug=function(){
if(!djConfig.isDebug){
return;
}
var _e=arguments;
if(dj_undef("println",dojo.hostenv)){
dojo.raise("dojo.debug not available (yet?)");
}
var _f=dj_global["jum"]&&!dj_global["jum"].isBrowser;
var s=[(_f?"":"DEBUG: ")];
for(var i=0;i<_e.length;++i){
if(!false&&_e[i] instanceof Error){
var msg="["+_e[i].name+": "+dojo.errorToString(_e[i])+(_e[i].fileName?", file: "+_e[i].fileName:"")+(_e[i].lineNumber?", line: "+_e[i].lineNumber:"")+"]";
}else{
try{
var msg=String(_e[i]);
}
catch(e){
if(dojo.render.html.ie){
var msg="[ActiveXObject]";
}else{
var msg="[unknown]";
}
}
}
s.push(msg);
}
if(_f){
jum.debug(s.join(" "));
}else{
dojo.hostenv.println(s.join(" "));
}
};
dojo.debugShallow=function(obj){
if(!djConfig.isDebug){
return;
}
dojo.debug("------------------------------------------------------------");
dojo.debug("Object: "+obj);
var _14=[];
for(var _15 in obj){
try{
_14.push(_15+": "+obj[_15]);
}
catch(E){
_14.push(_15+": ERROR - "+E.message);
}
}
_14.sort();
for(var i=0;i<_14.length;i++){
dojo.debug(_14[i]);
}
dojo.debug("------------------------------------------------------------");
};
var dj_debug=dojo.debug;
function dj_eval(s){
return dj_global.eval?dj_global.eval(s):eval(s);
}
dj_unimplemented=dojo.unimplemented=function(_18,_19){
var _1a="'"+_18+"' not implemented";
if((!dj_undef(_19))&&(_19)){
_1a+=" "+_19;
}
dojo.raise(_1a);
};
dj_deprecated=dojo.deprecated=function(_1b,_1c,_1d){
var _1e="DEPRECATED: "+_1b;
if(_1c){
_1e+=" "+_1c;
}
if(_1d){
_1e+=" -- will be removed in version: "+_1d;
}
dojo.debug(_1e);
};
dojo.inherits=function(_1f,_20){
if(typeof _20!="function"){
dojo.raise("superclass: "+_20+" borken");
}
_1f.prototype=new _20();
_1f.prototype.constructor=_1f;
_1f.superclass=_20.prototype;
_1f["super"]=_20.prototype;
};
dj_inherits=function(_21,_22){
dojo.deprecated("dj_inherits deprecated, use dojo.inherits instead");
dojo.inherits(_21,_22);
};
dojo.render=(function(){
function vscaffold(_23,_24){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_23};
for(var x in _24){
tmp[x]=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 _27={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_27;
}else{
for(var _28 in _27){
if(typeof djConfig[_28]=="undefined"){
djConfig[_28]=_27[_28];
}
}
}
var djc=djConfig;
function _def(obj,_2b,def){
return (dj_undef(_2b,obj)?def:obj[_2b]);
}
return {name_:"(unset)",version_:"(unset)",pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_2d,_2e){
this.modulePrefixes_[_2d]={name:_2d,value:_2e};
},getModulePrefix:function(_2f){
var mp=this.modulePrefixes_;
if((mp[_2f])&&(mp[_2f]["name"])){
return mp[_2f].value;
}
return _2f;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
},getLibraryScriptUri:function(){
dojo.unimplemented("getLibraryScriptUri","");
}};
})();
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 _33=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
dojo.hostenv.setBaseScriptUri=function(uri){
djConfig.baseScriptUri=uri;
};
dojo.hostenv.loadPath=function(_35,_36,cb){
if((_35.charAt(0)=="/")||(_35.match(/^\w+:/))){
dojo.raise("relpath '"+_35+"'; must be relative");
}
var uri=this.getBaseScriptUri()+_35;
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_36)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_36,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return;
}
var _3b=this.getText(uri,null,true);
if(_3b==null){
return 0;
}
this.loadedUris[uri]=true;
var _3c=dj_eval(_3b);
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_3e,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_3e,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.hostenv.loaded=function(){
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
dojo.loaded();
};
dojo.addOnLoad=function(obj,_44){
if(arguments.length==1){
dojo.hostenv.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dojo.hostenv.modulesLoadedListeners.push(function(){
obj[_44]();
});
}
}
};
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;
}
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
}
};
dojo.hostenv.moduleLoaded=function(_45){
var _46=dojo.evalObjPath((_45.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_45)).toLowerCase()]=_46;
};
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=_47.split(".");
for(var i=_4c.length-1;i>0;i--){
var _4f=_4c.slice(0,i).join(".");
var _50=this.getModulePrefix(_4f);
if(_50!=_4f){
_4c.splice(0,i,_50);
break;
}
}
var _51=_4c[_4c.length-1];
if(_51=="*"){
_47=(_4d.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4d.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_49)){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_53){
var _54=_53.split(/\./);
if(_54[_54.length-1]=="*"){
_54.pop();
}
return dojo.evalObjPath(_54.join("."),true);
};
dojo.hostenv.findModule=function(_55,_56){
var lmn=(new String(_55)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _58=dojo.evalObjPath(_55);
if((_55)&&(typeof _58!="undefined")&&(_58)){
this.loaded_modules_[lmn]=_58;
return _58;
}
if(_56){
dojo.raise("no loaded module named '"+_55+"'");
}
return null;
};
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _59=document.location.toString();
var _5a=_59.split("?",2);
if(_5a.length>1){
var _5b=_5a[1];
var _5c=_5b.split("&");
for(var x in _5c){
var sp=_5c[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 _60=document.getElementsByTagName("script");
var _61=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_60.length;i++){
var src=_60[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_61);
if(m){
root=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
root+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=root;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=root;
}
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 _6c=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_6c>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_6c+6,_6c+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;
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
drs.adobe=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
drs.adobe=f;
}else{
if(navigator.mimeTypes&&navigator.mimeTypes.length>0){
var _6d=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"];
if(_6d){
drs.adobe=_6d&&_6d.enabledPlugin&&_6d.enabledPlugin.description&&(_6d.enabledPlugin.description.indexOf("Adobe")>-1);
if(drs.adobe){
drs.capable=t;
drs.support.plugin=t;
}
}
}else{
if(drh.ie&&dr.os.win){
var _6d=f;
try{
var _6e=new ActiveXObject("Adobe.SVGCtl");
_6d=t;
}
catch(e){
}
if(_6d){
drs.capable=t;
drs.support.plugin=t;
drs.adobe=t;
}
}else{
drs.capable=f;
drs.support.plugin=f;
drs.adobe=f;
}
}
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _6f=null;
var _70=null;
try{
_6f=new XMLHttpRequest();
}
catch(e){
}
if(!_6f){
for(var i=0;i<3;++i){
var _72=DJ_XMLHTTP_PROGIDS[i];
try{
_6f=new ActiveXObject(_72);
}
catch(e){
_70=e;
}
if(_6f){
DJ_XMLHTTP_PROGIDS=[_72];
break;
}
}
}
if(!_6f){
return dojo.raise("XMLHTTP not available",_70);
}
return _6f;
};
dojo.hostenv.getText=function(uri,_74,_75){
var _76=this.getXmlhttpObject();
if(_74){
_76.onreadystatechange=function(){
if((4==_76.readyState)&&(_76["status"])){
if(_76.status==200){
_74(_76.responseText);
}
}
};
}
_76.open("GET",uri,_74?true:false);
try{
_76.send(null);
}
catch(e){
if(_75&&!_74){
return null;
}else{
throw e;
}
}
if(_74){
return null;
}
if(_76.status==200){
return _76.responseText;
}
if(_75){
dojo.debug("Failed to sync load URI: "+uri);
return null;
}
throw "Failed to load URI:"+uri;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_77){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_77);
}else{
try{
var _78=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_78){
_78=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_77));
_78.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_77+"</div>");
}
catch(e2){
window.status=_77;
}
}
}
};
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(_7a,_7b,fp,_7d){
var _7e=_7a["on"+_7b]||function(){
};
_7a["on"+_7b]=function(){
fp.apply(_7a,arguments);
_7e.apply(_7a,arguments);
};
return true;
}
dj_load_init=function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
dojo.hostenv.modulesLoaded();
};
dj_addNodeEvtHdlr(window,"load",dj_load_init);
dojo.hostenv.makeWidgets=function(){
var _7f=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_7f=_7f.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_7f=_7f.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_7f.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
try{
var _80=new dojo.xml.Parse();
if(_7f.length>0){
for(var x=0;x<_7f.length;x++){
var _82=document.getElementById(_7f[x]);
if(!_82){
continue;
}
var _83=_80.parseElement(_82,null,true);
dojo.widget.getParser().createComponents(_83);
}
}else{
if(djConfig.parseWidgets){
var _83=_80.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_83);
}
}
}
catch(e){
dojo.debug("auto-build-widgets error:",e);
}
}
}
};
dojo.hostenv.modulesLoadedListeners.push(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(){
};
dojo.hostenv.byId=dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
dojo.hostenv.byIdArray=dojo.byIdArray=function(){
var ids=[];
for(var i=0;i<arguments.length;i++){
if((arguments[i] instanceof Array)||(typeof arguments[i]=="array")){
for(var j=0;j<arguments[i].length;j++){
ids=ids.concat(dojo.hostenv.byIdArray(arguments[i][j]));
}
}else{
ids.push(dojo.hostenv.byId(arguments[i]));
}
}
return ids;
};
dojo.hostenv.conditionalLoadModule=function(_89){
var _8a=_89["common"]||[];
var _8b=(_89[dojo.hostenv.name_])?_8a.concat(_89[dojo.hostenv.name_]||[]):_8a.concat(_89["default"]||[]);
for(var x=0;x<_8b.length;x++){
var _8d=_8b[x];
if(_8d.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_8d);
}else{
dojo.hostenv.loadModule(_8d);
}
}
};
dojo.hostenv.require=dojo.hostenv.loadModule;
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireAfter=dojo.require;
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(dojo.render[arguments[0]].capable)){
var _8e=[];
for(var i=1;i<arguments.length;i++){
_8e.push(arguments[i]);
}
dojo.require.apply(dojo,_8e);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.conditionalRequire=dojo.requireIf;
dojo.requireAll=function(){
for(var i=0;i<arguments.length;i++){
dojo.require(arguments[i]);
}
};
dojo.kwCompoundRequire=function(){
dojo.hostenv.conditionalLoadModule.apply(dojo.hostenv,arguments);
};
dojo.hostenv.provide=dojo.hostenv.startPackage;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_91,_92){
return dojo.hostenv.setModulePrefix(_91,_92);
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
dojo.exists=function(obj,_94){
var p=_94.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang.mixin=function(obj,_98){
var _99={};
for(var x in _98){
if(typeof _99[x]=="undefined"||_99[x]!=_98[x]){
obj[x]=_98[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_98["toString"])&&_98["toString"]!=obj["toString"]){
obj.toString=_98.toString;
}
return obj;
};
dojo.lang.extend=function(_9b,_9c){
this.mixin(_9b.prototype,_9c);
};
dojo.lang.find=function(arr,val,_9f,_a0){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _a2=dojo.lang.isString(arr);
if(_a2){
arr=arr.split("");
}
if(_a0){
var _a3=-1;
var i=arr.length-1;
var end=-1;
}else{
var _a3=1;
var i=0;
var end=arr.length;
}
if(_9f){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_a3;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_a3;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_a8){
return dojo.lang.find(arr,val,_a8,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
return typeof wh=="object"||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh);
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,_b5){
return (typeof obj[_b5]!=="undefined");
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _b8=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_b8++;
break;
}
}
return (_b8==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.forEach=function(arr,_bb,_bc){
var _bd=dojo.lang.isString(arr);
if(_bd){
arr=arr.split("");
}
var il=arr.length;
for(var i=0;i<((_bc)?il:arr.length);i++){
if(_bb(arr[i],i,arr)=="break"){
break;
}
}
};
dojo.lang.map=function(arr,obj,_c2){
var _c3=dojo.lang.isString(arr);
if(_c3){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_c2)){
_c2=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_c2){
var _c4=obj;
obj=_c2;
_c2=_c4;
}
}
if(Array.map){
var _c5=Array.map(arr,_c2,obj);
}else{
var _c5=[];
for(var i=0;i<arr.length;++i){
_c5.push(_c2.call(obj,arr[i]));
}
}
if(_c3){
return _c5.join("");
}else{
return _c5;
}
};
dojo.lang.every=function(arr,_c8,_c9){
var _ca=dojo.lang.isString(arr);
if(_ca){
arr=arr.split("");
}
if(Array.every){
return Array.every(arr,_c8,_c9);
}else{
if(!_c9){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_c9=dj_global;
}
for(var i=0;i<arr.length;i++){
if(!_c8.call(_c9,arr[i],i,arr)){
return false;
}
}
return true;
}
};
dojo.lang.some=function(arr,_cd,_ce){
var _cf=dojo.lang.isString(arr);
if(_cf){
arr=arr.split("");
}
if(Array.some){
return Array.some(arr,_cd,_ce);
}else{
if(!_ce){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_ce=dj_global;
}
for(var i=0;i<arr.length;i++){
if(_cd.call(_ce,arr[i],i,arr)){
return true;
}
}
return false;
}
};
dojo.lang.filter=function(arr,_d2,_d3){
var _d4=dojo.lang.isString(arr);
if(_d4){
arr=arr.split("");
}
if(Array.filter){
var _d5=Array.filter(arr,_d2,_d3);
}else{
if(!_d3){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_d3=dj_global;
}
var _d5=[];
for(var i=0;i<arr.length;i++){
if(_d2.call(_d3,arr[i],i,arr)){
_d5.push(arr[i]);
}
}
}
if(_d4){
return _d5.join("");
}else{
return _d5;
}
};
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(_da,_db){
var _dc=[];
for(var i=_db||0;i<_da.length;i++){
_dc.push(_da[i]);
}
return _dc;
};
dojo.provide("dojo.dom");
dojo.require("dojo.lang.array");
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=="object"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getTagName=function(_df){
var _e0=_df.tagName;
if(_e0.substr(0,5).toLowerCase()!="dojo:"){
if(_e0.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_e0.substring(4).toLowerCase();
}
var djt=_df.getAttribute("dojoType")||_df.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((_df.getAttributeNS)&&(_df.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+_df.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=_df.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _e2=_df.className||_df.getAttribute("class");
if((_e2)&&(_e2.indexOf)&&(_e2.indexOf("dojo-")!=-1)){
var _e3=_e2.split(" ");
for(var x=0;x<_e3.length;x++){
if((_e3[x].length>5)&&(_e3[x].indexOf("dojo-")>=0)){
return "dojo:"+_e3[x].substr(5).toLowerCase();
}
}
}
}
}
return _e0.toLowerCase();
};
dojo.dom.getUniqueId=function(){
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(document.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_e6,_e7){
var _e8=_e6.firstChild;
while(_e8&&_e8.nodeType!=dojo.dom.ELEMENT_NODE){
_e8=_e8.nextSibling;
}
if(_e7&&_e8&&_e8.tagName&&_e8.tagName.toLowerCase()!=_e7.toLowerCase()){
_e8=dojo.dom.nextElement(_e8,_e7);
}
return _e8;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_e9,_ea){
var _eb=_e9.lastChild;
while(_eb&&_eb.nodeType!=dojo.dom.ELEMENT_NODE){
_eb=_eb.previousSibling;
}
if(_ea&&_eb&&_eb.tagName&&_eb.tagName.toLowerCase()!=_ea.toLowerCase()){
_eb=dojo.dom.prevElement(_eb,_ea);
}
return _eb;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(_ec,_ed){
if(!_ec){
return null;
}
do{
_ec=_ec.nextSibling;
}while(_ec&&_ec.nodeType!=dojo.dom.ELEMENT_NODE);
if(_ec&&_ed&&_ed.toLowerCase()!=_ec.tagName.toLowerCase()){
return dojo.dom.nextElement(_ec,_ed);
}
return _ec;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(_ee,_ef){
if(!_ee){
return null;
}
if(_ef){
_ef=_ef.toLowerCase();
}
do{
_ee=_ee.previousSibling;
}while(_ee&&_ee.nodeType!=dojo.dom.ELEMENT_NODE);
if(_ee&&_ef&&_ef.toLowerCase()!=_ee.tagName.toLowerCase()){
return dojo.dom.prevElement(_ee,_ef);
}
return _ee;
};
dojo.dom.moveChildren=function(_f0,_f1,_f2){
var _f3=0;
if(_f2){
while(_f0.hasChildNodes()&&_f0.firstChild.nodeType==dojo.dom.TEXT_NODE){
_f0.removeChild(_f0.firstChild);
}
while(_f0.hasChildNodes()&&_f0.lastChild.nodeType==dojo.dom.TEXT_NODE){
_f0.removeChild(_f0.lastChild);
}
}
while(_f0.hasChildNodes()){
_f1.appendChild(_f0.firstChild);
_f3++;
}
return _f3;
};
dojo.dom.copyChildren=function(_f4,_f5,_f6){
var _f7=_f4.cloneNode(true);
return this.moveChildren(_f7,_f5,_f6);
};
dojo.dom.removeChildren=function(_f8){
var _f9=_f8.childNodes.length;
while(_f8.hasChildNodes()){
_f8.removeChild(_f8.firstChild);
}
return _f9;
};
dojo.dom.replaceChildren=function(_fa,_fb){
dojo.dom.removeChildren(_fa);
_fa.appendChild(_fb);
};
dojo.dom.removeNode=function(_fc){
if(_fc&&_fc.parentNode){
return _fc.parentNode.removeChild(_fc);
}
};
dojo.dom.getAncestors=function(_fd,_fe,_ff){
var _100=[];
var _101=dojo.lang.isFunction(_fe);
while(_fd){
if(!_101||_fe(_fd)){
_100.push(_fd);
}
if(_ff&&_100.length>0){
return _100[0];
}
_fd=_fd.parentNode;
}
if(_ff){
return null;
}
return _100;
};
dojo.dom.getAncestorsByTag=function(node,tag,_104){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_104);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_109,_10a){
if(_10a&&node){
node=node.parentNode;
}
while(node){
if(node==_109){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
};
dojo.dom.createDocumentFromText=function(str,_10d){
if(!_10d){
_10d="text/xml";
}
if(typeof DOMParser!="undefined"){
var _10e=new DOMParser();
return _10e.parseFromString(str,_10d);
}else{
if(typeof ActiveXObject!="undefined"){
var _10f=new ActiveXObject("Microsoft.XMLDOM");
if(_10f){
_10f.async=false;
_10f.loadXML(str);
return _10f;
}else{
dojo.debug("toXml didn't work?");
}
}else{
if(document.createElement){
var tmp=document.createElement("xml");
tmp.innerHTML=str;
if(document.implementation&&document.implementation.createDocument){
var _111=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_111.importNode(tmp.childNodes.item(i),true);
}
return _111;
}
return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_114){
if(_114.firstChild){
_114.insertBefore(node,_114.firstChild);
}else{
_114.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_117){
if(_117!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _118=ref.parentNode;
_118.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_11b){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_11b!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_11b);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_11f){
if((!node)||(!ref)||(!_11f)){
return false;
}
switch(_11f.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,_121,_122){
var _123=_121.childNodes;
if(!_123.length){
_121.appendChild(node);
return true;
}
var _124=null;
for(var i=0;i<_123.length;i++){
var _126=_123.item(i)["getAttribute"]?parseInt(_123.item(i).getAttribute("dojoinsertionindex")):-1;
if(_126<_122){
_124=_123.item(i);
}
}
if(_124){
return dojo.dom.insertAfter(node,_124);
}else{
return dojo.dom.insertBefore(node,_123.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _129="";
if(node==null){
return _129;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_129+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_129+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _129;
}
};
dojo.dom.collectionToArray=function(_12b){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead");
return dojo.lang.toArray(_12b);
};
dojo.dom.hasParent=function(node){
if(!node||!node.parentNode||(node.parentNode&&!node.parentNode.tagName)){
return false;
}
return true;
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
var arr=dojo.lang.toArray(arguments,1);
return arr[dojo.lang.find(node.tagName,arr)]||"";
}
return "";
};
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
this.parseFragment=function(_12f){
var _130={};
var _131=dojo.dom.getTagName(_12f);
_130[_131]=new Array(_12f.tagName);
var _132=this.parseAttributes(_12f);
for(var attr in _132){
if(!_130[attr]){
_130[attr]=[];
}
_130[attr][_130[attr].length]=_132[attr];
}
var _134=_12f.childNodes;
for(var _135 in _134){
switch(_134[_135].nodeType){
case dojo.dom.ELEMENT_NODE:
_130[_131].push(this.parseElement(_134[_135]));
break;
case dojo.dom.TEXT_NODE:
if(_134.length==1){
if(!_130[_12f.tagName]){
_130[_131]=[];
}
_130[_131].push({value:_134[0].nodeValue});
}
break;
}
}
return _130;
};
this.parseElement=function(node,_137,_138,_139){
var _13a={};
var _13b=dojo.dom.getTagName(node);
_13a[_13b]=[];
if((!_138)||(_13b.substr(0,4).toLowerCase()=="dojo")){
var _13c=this.parseAttributes(node);
for(var attr in _13c){
if((!_13a[_13b][attr])||(typeof _13a[_13b][attr]!="array")){
_13a[_13b][attr]=[];
}
_13a[_13b][attr].push(_13c[attr]);
}
_13a[_13b].nodeRef=node;
_13a.tagName=_13b;
_13a.index=_139||0;
}
var _13e=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_13e++;
var ctn=dojo.dom.getTagName(tcn);
if(!_13a[ctn]){
_13a[ctn]=[];
}
_13a[ctn].push(this.parseElement(tcn,true,_138,_13e));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_13a[ctn][_13a[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_13a[_13b].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _13a;
};
this.parseAttributes=function(node){
var _143={};
var atts=node.attributes;
for(var i=0;i<atts.length;i++){
var _146=atts.item(i);
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_146){
continue;
}
if((typeof _146=="object")&&(typeof _146.nodeValue=="undefined")||(_146.nodeValue==null)||(_146.nodeValue=="")){
continue;
}
}
var nn=(_146.nodeName.indexOf("dojo:")==-1)?_146.nodeName:_146.nodeName.split("dojo:")[1];
_143[nn]={value:_146.nodeValue};
}
return _143;
};
};
dojo.provide("dojo.lang.type");
dojo.require("dojo.lang.common");
dojo.lang.whatAmI=function(wh){
try{
if(dojo.lang.isArray(wh)){
return "array";
}
if(dojo.lang.isFunction(wh)){
return "function";
}
if(dojo.lang.isString(wh)){
return "string";
}
if(dojo.lang.isNumber(wh)){
return "number";
}
if(dojo.lang.isBoolean(wh)){
return "boolean";
}
if(dojo.lang.isAlien(wh)){
return "alien";
}
if(dojo.lang.isUndefined(wh)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](wh)){
return name;
}
}
if(dojo.lang.isObject(wh)){
return "object";
}
}
catch(E){
}
return "unknown";
};
dojo.lang.whatAmI.custom={};
dojo.lang.isNumeric=function(wh){
return (!isNaN(wh)&&isFinite(wh)&&(wh!=null)&&!dojo.lang.isBoolean(wh)&&!dojo.lang.isArray(wh));
};
dojo.lang.isBuiltIn=function(wh){
return (dojo.lang.isArray(wh)||dojo.lang.isFunction(wh)||dojo.lang.isString(wh)||dojo.lang.isNumber(wh)||dojo.lang.isBoolean(wh)||(wh==null)||(wh instanceof Error)||(typeof wh=="error"));
};
dojo.lang.isPureObject=function(wh){
return ((wh!=null)&&dojo.lang.isObject(wh)&&wh.constructor==Object);
};
dojo.lang.isOfType=function(_14d,type){
if(dojo.lang.isArray(type)){
var _14f=type;
for(var i in _14f){
var _151=_14f[i];
if(dojo.lang.isOfType(_14d,_151)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_14d);
break;
case Function:
case "function":
return dojo.lang.isFunction(_14d);
break;
case String:
case "string":
return dojo.lang.isString(_14d);
break;
case Number:
case "number":
return dojo.lang.isNumber(_14d);
break;
case "numeric":
return dojo.lang.isNumeric(_14d);
break;
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_14d);
break;
case Object:
case "object":
return dojo.lang.isObject(_14d);
break;
case "pureobject":
return dojo.lang.isPureObject(_14d);
break;
case "builtin":
return dojo.lang.isBuiltIn(_14d);
break;
case "alien":
return dojo.lang.isAlien(_14d);
break;
case "undefined":
return dojo.lang.isUndefined(_14d);
break;
case null:
case "null":
return (_14d===null);
break;
case "optional":
return ((_14d===null)||dojo.lang.isUndefined(_14d));
break;
default:
if(dojo.lang.isFunction(type)){
return (_14d instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
break;
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _153=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_153[i++]];
}while(i<_153.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _155=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_155[i++]];
}while(i<_155.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.lang.getConstructor=function(obj){
return obj.constructor;
};
dojo.lang.isConstructedBy=function(obj,type){
return dojo.lang.getConstructor(obj)==type;
};
dojo.lang.isSubOf=function(obj,type){
return obj instanceof type;
};
dojo.lang.isBaseOf=function(type,obj){
return obj instanceof type;
};
dojo.lang.createInstance=function(type){
var o=null;
var f=type;
if(typeof (f)=="string"){
f=dojo.lang.getObject(type);
}
if(typeof (f)=="function"){
try{
o=new f();
}
catch(e){
}
}
return o;
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.hitch=function(_160,_161){
if(dojo.lang.isString(_161)){
var fcn=_160[_161];
}else{
var fcn=_161;
}
return function(){
return fcn.apply(_160,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_163,_164){
var nso=(_164||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_163){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_163;
return ret;
};
dojo.lang.forward=function(_168){
return function(){
return this[_168].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _16b=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_16b.push(arguments[x]);
}
var _16d=func.length-_16b.length;
function gather(_16e,_16f,_170){
var _171=_170;
var _172=_16f.slice(0);
for(var x=0;x<_16e.length;x++){
_172.push(_16e[x]);
}
_170=_170-_16e.length;
if(_170<=0){
var res=func.apply(ns,_172);
_170=_171;
return res;
}else{
return function(){
return gather(arguments,_172,_170);
};
}
}
return gather([],_16b,_16d);
};
dojo.lang.curryArguments=function(ns,func,args,_178){
var _179=[];
var x=_178||0;
for(x=_178;x<args.length;x++){
_179.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_179));
};
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,_17f,_180){
if(!farr.length){
if(typeof _180=="function"){
_180();
}
return;
}
if((typeof _17f=="undefined")&&(typeof cb=="number")){
_17f=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_17f){
_17f=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_17f,_180);
},_17f);
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.setTimeout=function(func,_182){
var _183=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_183=func;
func=_182;
_182=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_183[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_183,args);
},_182);
};
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){
var ret={},key;
for(key in obj){
if(dojo.lang.isUndefined(ret[key])){
ret[key]=obj[key];
}
}
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.provide("dojo.event");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args){
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 _18f=dojo.lang.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceFunc=_18f;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _18f=dojo.lang.nameAnonFunc(args[0],ao.srcObj);
ao.srcFunc=_18f;
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 _18f=dojo.lang.nameAnonFunc(args[1],dj_global);
ao.srcFunc=_18f;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}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((typeof ao.srcFunc).toLowerCase()!="string"){
ao.srcFunc=dojo.lang.getNameInObj(ao.srcObj,ao.srcFunc);
}
if((typeof ao.adviceFunc).toLowerCase()!="string"){
ao.adviceFunc=dojo.lang.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&((typeof ao.aroundFunc).toLowerCase()!="string")){
ao.aroundFunc=dojo.lang.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);
}
return ao;
}
this.connect=function(){
var ao=interpolateArgs(arguments);
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.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._kwConnectImpl=function(_197,_198){
var fn=(_198)?"disconnect":"connect";
if(typeof _197["srcFunc"]=="function"){
_197.srcObj=_197["srcObj"]||dj_global;
var _19a=dojo.lang.nameAnonFunc(_197.srcFunc,_197.srcObj);
_197.srcFunc=_19a;
}
if(typeof _197["adviceFunc"]=="function"){
_197.adviceObj=_197["adviceObj"]||dj_global;
var _19a=dojo.lang.nameAnonFunc(_197.adviceFunc,_197.adviceObj);
_197.adviceFunc=_19a;
}
return dojo.event[fn]((_197["type"]||_197["adviceType"]||"after"),_197["srcObj"]||dj_global,_197["srcFunc"],_197["adviceObj"]||_197["targetObj"]||dj_global,_197["adviceFunc"]||_197["targetFunc"],_197["aroundObj"],_197["aroundFunc"],_197["once"],_197["delay"],_197["rate"],_197["adviceMsg"]||false);
};
this.kwConnect=function(_19b){
return this._kwConnectImpl(_19b,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments);
if(!ao.adviceFunc){
return;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_19e){
return this._kwConnectImpl(_19e,true);
};
};
dojo.event.MethodInvocation=function(_19f,obj,args){
this.jp_=_19f;
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,_1a7){
this.object=obj||dj_global;
this.methodname=_1a7;
this.methodfunc=this.object[_1a7];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1a9){
if(!obj){
obj=dj_global;
}
if(!obj[_1a9]){
obj[_1a9]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_1a9]))&&(!dojo.lang.isAlien(obj[_1a9]))){
return null;
}
}
var _1aa=_1a9+"$joinpoint";
var _1ab=_1a9+"$joinpoint$method";
var _1ac=obj[_1aa];
if(!_1ac){
var _1ad=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1ad=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1aa,_1ab,_1a9]);
}
}
obj[_1ab]=obj[_1a9];
_1ac=obj[_1aa]=new dojo.event.MethodJoinPoint(obj,_1ab);
obj[_1a9]=function(){
var args=[];
if((_1ad)&&(!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{
evt=window.event;
}
}
}
catch(E){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_1ad)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x]));
}else{
args.push(arguments[x]);
}
}
}
return _1ac.run.apply(_1ac,args);
};
}
return _1ac;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){
this.object[this.methodname]=this.methodfunc;
},run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _1b3=[];
for(var x=0;x<args.length;x++){
_1b3[x]=args[x];
}
var _1b5=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1b7=marr[0]||dj_global;
var _1b8=marr[1];
if(!_1b7[_1b8]){
dojo.raise("function \""+_1b8+"\" does not exist on \""+_1b7+"\"");
}
var _1b9=marr[2]||dj_global;
var _1ba=marr[3];
var msg=marr[6];
var _1bc;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1b7[_1b8].apply(_1b7,to.args);
}};
to.args=_1b3;
var _1be=parseInt(marr[4]);
var _1bf=((!isNaN(_1be))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1c2=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;
_1b5(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1ba){
_1b9[_1ba].call(_1b9,to);
}else{
if((_1bf)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1b7[_1b8].call(_1b7,to);
}else{
_1b7[_1b8].apply(_1b7,args);
}
},_1be);
}else{
if(msg){
_1b7[_1b8].call(_1b7,to);
}else{
_1b7[_1b8].apply(_1b7,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_1b5,true);
}
var _1c5;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1c5=mi.proceed();
}else{
if(this.methodfunc){
_1c5=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_1b5,true);
}
return (this.methodfunc)?_1c5:null;
},getArr:function(kind){
var arr=this.after;
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
arr=this.before;
}else{
if(kind=="around"){
arr=this.around;
}
}
return arr;
},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(_1ca,_1cb,_1cc,_1cd,_1ce,_1cf,once,_1d1,rate,_1d3){
var arr=this.getArr(_1ce);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1ca,_1cb,_1cc,_1cd,_1d1,rate,_1d3];
if(once){
if(this.hasAdvice(_1ca,_1cb,_1ce,arr)>=0){
return;
}
}
if(_1cf=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_1d6,_1d7,_1d8,arr){
if(!arr){
arr=this.getArr(_1d8);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_1d6)&&(arr[x][1]==_1d7)){
ind=x;
}
}
return ind;
},removeAdvice:function(_1dc,_1dd,_1de,once){
var arr=this.getArr(_1de);
var ind=this.hasAdvice(_1dc,_1dd,_1de,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_1dc,_1dd,_1de,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_1e2){
if(!this.topics[_1e2]){
this.topics[_1e2]=new this.TopicImpl(_1e2);
}
return this.topics[_1e2];
};
this.registerPublisher=function(_1e3,obj,_1e5){
var _1e3=this.getTopic(_1e3);
_1e3.registerPublisher(obj,_1e5);
};
this.subscribe=function(_1e6,obj,_1e8){
var _1e6=this.getTopic(_1e6);
_1e6.subscribe(obj,_1e8);
};
this.unsubscribe=function(_1e9,obj,_1eb){
var _1e9=this.getTopic(_1e9);
_1e9.unsubscribe(obj,_1eb);
};
this.publish=function(_1ec,_1ed){
var _1ec=this.getTopic(_1ec);
var args=[];
if(arguments.length==2&&(dojo.lang.isArray(_1ed)||_1ed.callee)){
args=_1ed;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_1ec.sendMessage.apply(_1ec,args);
};
};
dojo.event.topic.TopicImpl=function(_1f0){
this.topicName=_1f0;
var self=this;
self.subscribe=function(_1f2,_1f3){
var tf=_1f3||_1f2;
var to=(!_1f3)?dj_global:_1f2;
dojo.event.kwConnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.unsubscribe=function(_1f6,_1f7){
var tf=(!_1f7)?_1f6:_1f7;
var to=(!_1f7)?null:_1f6;
dojo.event.kwDisconnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.registerPublisher=function(_1fa,_1fb){
dojo.event.connect(_1fa,_1fb,self,"sendMessage");
};
self.sendMessage=function(_1fc){
};
};
dojo.provide("dojo.event.browser");
dojo.require("dojo.event");
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(_1ff){
var na;
var tna;
if(_1ff){
tna=_1ff.getElementsByTagName("*");
na=[_1ff];
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 _203={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
if(el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
na=null;
};
};
if(dojo.render.html.ie){
window.onunload=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 _207=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo_ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo_ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_20b){
this.addClobberNode(node);
for(var x=0;x<_20b.length;x++){
node.__clobberAttrs__.push(_20b[x]);
}
};
this.removeListener=function(node,_20e,fp,_210){
if(!_210){
var _210=false;
}
_20e=_20e.toLowerCase();
if(_20e.substr(0,2)=="on"){
_20e=_20e.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_20e,fp,_210);
}
};
this.addListener=function(node,_212,fp,_214,_215){
if(!node){
return;
}
if(!_214){
var _214=false;
}
_212=_212.toLowerCase();
if(_212.substr(0,2)!="on"){
_212="on"+_212;
}
if(!_215){
var _216=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt));
if(_214){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_216=fp;
}
if(node.addEventListener){
node.addEventListener(_212.substr(2),_216,_214);
return _216;
}else{
if(typeof node[_212]=="function"){
var _219=node[_212];
node[_212]=function(e){
_219(e);
return _216(e);
};
}else{
node[_212]=_216;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_212]);
}
return _216;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_21c,_21d){
if(typeof _21c!="function"){
dojo.raise("listener not a function: "+_21c);
}
dojo.event.browser.currentEvent.currentTarget=_21d;
return _21c.call(_21d,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_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_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,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_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){
if((!evt)&&(window["event"])){
var 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((dojo.render.html.ie)&&(evt["type"]=="keypress")){
evt.charCode=evt.keyCode;
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=evt.srcElement;
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
if(evt.fromElement){
evt.relatedTarget=evt.fromElement;
}
if(evt.toElement){
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.hostenv.conditionalLoadModule({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.hostenv.moduleLoaded("dojo.event.*");
dojo.provide("dojo.widget.Manager");
dojo.require("dojo.lang.array");
dojo.require("dojo.event.*");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _222={};
var _223=[];
this.getUniqueId=function(_224){
return _224+"_"+(_222[_224]!=undefined?++_222[_224]:_222[_224]=0);
};
this.add=function(_225){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_225);
if(_225.widgetId==""){
if(_225["id"]){
_225.widgetId=_225["id"];
}else{
if(_225.extraArgs["id"]){
_225.widgetId=_225.extraArgs["id"];
}else{
_225.widgetId=this.getUniqueId(_225.widgetType);
}
}
}
if(this.widgetIds[_225.widgetId]){
dojo.debug("widget ID collision on ID: "+_225.widgetId);
}
this.widgetIds[_225.widgetId]=_225;
dojo.profile.end("dojo.widget.manager.add");
};
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(_227){
var tw=this.widgets[_227].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_227,1);
};
this.removeById=function(id){
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
return this.widgetIds[id];
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(x.widgetType.toLowerCase()==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsOfType=function(id){
dj_deprecated("getWidgetsOfType is depecrecated, use getWidgetsByType");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_231){
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_231(x)){
ret.push(x);
}
});
return ret;
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
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 _237={};
var _238=["dojo.widget"];
for(var i=0;i<_238.length;i++){
_238[_238[i]]=true;
}
this.registerWidgetPackage=function(_23a){
if(!_238[_23a]){
_238[_23a]=true;
_238.push(_23a);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_238,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_23c,_23d,_23e){
var impl=this.getImplementationName(_23c);
if(impl){
var ret=new impl(_23d);
return ret;
}
};
this.getImplementationName=function(_241){
var _242=_241.toLowerCase();
var impl=_237[_242];
if(impl){
return impl;
}
if(!_223.length){
for(var _244 in dojo.render){
if(dojo.render[_244]["capable"]===true){
var _245=dojo.render[_244].prefixes;
for(var i=0;i<_245.length;i++){
_223.push(_245[i].toLowerCase());
}
}
}
_223.push("");
}
for(var i=0;i<_238.length;i++){
var _247=dojo.evalObjPath(_238[i]);
if(!_247){
continue;
}
for(var j=0;j<_223.length;j++){
if(!_247[_223[j]]){
continue;
}
for(var _249 in _247[_223[j]]){
if(_249.toLowerCase()!=_242){
continue;
}
_237[_242]=_247[_223[j]][_249];
return _237[_242];
}
}
for(var j=0;j<_223.length;j++){
for(var _249 in _247){
if(_249.toLowerCase()!=(_223[j]+_242)){
continue;
}
_237[_242]=_247[_249];
return _237[_242];
}
}
}
throw new Error("Could not locate \""+_241+"\" class");
};
this.resizing=false;
this.onResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _24b=this.topWidgets[id];
if(_24b.onResized){
_24b.onResized();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onResized");
dojo.event.connect(window,"onresize",this,"onResized");
}
};
dojo.widget.getUniqueId=function(){
return dojo.widget.manager.getUniqueId.apply(dojo.widget.manager,arguments);
};
dojo.widget.addWidget=function(){
return dojo.widget.manager.add.apply(dojo.widget.manager,arguments);
};
dojo.widget.destroyAllWidgets=function(){
return dojo.widget.manager.destroyAll.apply(dojo.widget.manager,arguments);
};
dojo.widget.removeWidget=function(){
return dojo.widget.manager.remove.apply(dojo.widget.manager,arguments);
};
dojo.widget.removeWidgetById=function(){
return dojo.widget.manager.removeById.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetById=function(){
return dojo.widget.manager.getWidgetById.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetsByType=function(){
return dojo.widget.manager.getWidgetsByType.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetsByFilter=function(){
return dojo.widget.manager.getWidgetsByFilter.apply(dojo.widget.manager,arguments);
};
dojo.widget.byId=function(){
return dojo.widget.manager.getWidgetById.apply(dojo.widget.manager,arguments);
};
dojo.widget.byType=function(){
return dojo.widget.manager.getWidgetsByType.apply(dojo.widget.manager,arguments);
};
dojo.widget.byFilter=function(){
return dojo.widget.manager.getWidgetsByFilter.apply(dojo.widget.manager,arguments);
};
dojo.widget.byNode=function(){
return dojo.widget.manager.getWidgetByNode.apply(dojo.widget.manager,arguments);
};
dojo.widget.all=function(n){
var _24d=dojo.widget.manager.getAllWidgets.apply(dojo.widget.manager,arguments);
if(arguments.length>0){
return _24d[n];
}
return _24d;
};
dojo.widget.registerWidgetPackage=function(){
return dojo.widget.manager.registerWidgetPackage.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetImplementation=function(){
return dojo.widget.manager.getImplementation.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetImplementationName=function(){
return dojo.widget.manager.getImplementationName.apply(dojo.widget.manager,arguments);
};
dojo.widget.widgets=dojo.widget.manager.widgets;
dojo.widget.widgetIds=dojo.widget.manager.widgetIds;
dojo.widget.root=dojo.widget.manager.root;
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.array");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.event.*");
dojo.widget.Widget=function(){
this.children=[];
this.extraArgs={};
};
dojo.lang.extend(dojo.widget.Widget,{parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){
return "[Widget "+this.widgetType+", "+(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 _24f=this.children[i];
if(_24f.onResized){
_24f.onResized();
}
}
},create:function(args,_251,_252){
this.satisfyPropertySets(args,_251,_252);
this.mixInProperties(args,_251,_252);
this.postMixInProperties(args,_251,_252);
dojo.widget.manager.add(this);
this.buildRendering(args,_251,_252);
this.initialize(args,_251,_252);
this.postInitialize(args,_251,_252);
this.postCreate(args,_251,_252);
return this;
},destroy:function(_253){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_253);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_256){
var ret=[];
var _258=dojo.lang.isFunction(type);
if(!_258){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_258){
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(_256){
ret=ret.concat(this.children[x].getChildrenOfType(type,_256));
}
}
return ret;
},getDescendants:function(){
var _25a=[];
var _25b=[this];
var elem;
while(elem=_25b.pop()){
_25a.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_25b.push(elem);
});
}
return _25a;
},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 _262;
var _263=dojo.widget.lcArgsCache[this.widgetType];
if(_263==null){
_263={};
for(var y in this){
_263[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_263;
}
var _265={};
for(var x in args){
if(!this[x]){
var y=_263[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_265[x]){
continue;
}
_265[x]=true;
if((typeof this[x])!=(typeof _262)){
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])){
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.connect(this,x,this,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"){
var _267=args[x].split(";");
for(var y=0;y<_267.length;y++){
var si=_267[y].indexOf(":");
if((si!=-1)&&(_267[y].length>si)){
this[x][_267[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_267[y].substr(si+1);
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x]=args[x];
}
}
},postMixInProperties:function(){
},initialize:function(args,frag){
return false;
},postInitialize:function(args,frag){
return false;
},postCreate:function(args,frag){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(){
dj_unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dj_unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dj_unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_26f){
},addChild:function(_270){
dj_unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_271){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_271){
this.children.splice(x,1);
break;
}
}
return _271;
},resize:function(_273,_274){
this.setWidth(_273);
this.setHeight(_274);
},setWidth:function(_275){
if((typeof _275=="string")&&(_275.substr(-1)=="%")){
this.setPercentageWidth(_275);
}else{
this.setNativeWidth(_275);
}
},setHeight:function(_276){
if((typeof _276=="string")&&(_276.substr(-1)=="%")){
this.setPercentageHeight(_276);
}else{
this.setNativeHeight(_276);
}
},setPercentageHeight:function(_277){
return false;
},setNativeHeight:function(_278){
return false;
},setPercentageWidth:function(_279){
return false;
},setNativeWidth:function(_27a){
return false;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.getSiblings()[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.getSiblings(),this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.getSiblings().length-1){
return null;
}
if(idx<0){
return null;
}
return this.getSiblings()[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _27e=type.toLowerCase();
this[_27e]=function(_27f,_280,_281,_282,_283){
return dojo.widget.buildWidgetFromParseTree(_27e,_27f,_280,_281,_282,_283);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_284,_285,_286){
var _287=_285.parseProperties(_284["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_288,_289,_28a){
var _28b=_289.parseProperties(_288["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_28e,_28f,_290,_291){
var _292=type.split(":");
_292=(_292.length==2)?_292[1]:type;
var _293=_291||_28e.parseProperties(frag["dojo:"+_292]);
var _294=dojo.widget.manager.getImplementation(_292);
if(!_294){
throw new Error("cannot find \""+_292+"\" widget");
}else{
if(!_294.create){
throw new Error("\""+_292+"\" widget object does not appear to implement *Widget");
}
}
_293["dojoinsertionindex"]=_290;
var ret=_294.create(_293,frag,_28f);
return ret;
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_296){
this.propertySetsList=[];
this.fragment=_296;
this.createComponents=function(_297,_298){
var _299=dojo.widget.tags;
var _29a=[];
for(var item in _297){
var _29c=false;
try{
if(_297[item]&&(_297[item]["tagName"])&&(_297[item]!=_297["nodeRef"])){
var tn=new String(_297[item]["tagName"]);
var tna=tn.split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_299[ltn]){
_29c=true;
_297[item].tagName=ltn;
var ret=_299[ltn](_297[item],this,_298,_297[item]["index"]);
_29a.push(ret);
}else{
if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug("fragment creation error:",e);
}
if((!_29c)&&(typeof _297[item]=="object")&&(_297[item]!=_297.nodeRef)&&(_297[item]!=_297["tagName"])){
_29a.push(this.createComponents(_297[item],_298));
}
}
return _29a;
};
this.parsePropertySets=function(_2a2){
return [];
var _2a3=[];
for(var item in _2a2){
if((_2a2[item]["tagName"]=="dojo:propertyset")){
_2a3.push(_2a2[item]);
}
}
this.propertySetsList.push(_2a3);
return _2a3;
};
this.parseProperties=function(_2a5){
var _2a6={};
for(var item in _2a5){
if((_2a5[item]==_2a5["tagName"])||(_2a5[item]==_2a5.nodeRef)){
}else{
if((_2a5[item]["tagName"])&&(dojo.widget.tags[_2a5[item].tagName.toLowerCase()])){
}else{
if((_2a5[item][0])&&(_2a5[item][0].value!="")&&(_2a5[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _2a8=this;
this.getDataProvider(_2a8,_2a5[item][0].value);
_2a6.dataProvider=this.dataProvider;
}
_2a6[item]=_2a5[item][0].value;
var _2a9=this.parseProperties(_2a5[item]);
for(var _2aa in _2a9){
_2a6[_2aa]=_2a9[_2aa];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _2a6;
};
this.getDataProvider=function(_2ab,_2ac){
dojo.io.bind({url:_2ac,load:function(type,_2ae){
if(type=="load"){
_2ab.dataProvider=_2ae;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_2af){
for(var x=0;x<this.propertySetsList.length;x++){
if(_2af==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_2b1){
var _2b2=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
if((cpcc)&&(propertySetId==cpcc[0].value)){
_2b2.push(cpl);
}
}
return _2b2;
};
this.getPropertySets=function(_2b6){
var ppl="dojo:propertyproviderlist";
var _2b8=[];
var _2b9=_2b6["tagName"];
if(_2b6[ppl]){
var _2ba=_2b6[ppl].value.split(" ");
for(propertySetId in _2ba){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _2bb=this.getPropertySetById(propertySetId);
if(_2bb!=""){
_2b8.push(_2bb);
}
}else{
}
}
}
return (this.getPropertySetsByType(_2b9)).concat(_2b8);
};
this.createComponentFromScript=function(_2bc,_2bd,_2be){
var ltn="dojo:"+_2bd.toLowerCase();
if(dojo.widget.tags[ltn]){
_2be.fastMixIn=true;
return [dojo.widget.tags[ltn](_2be,this,null,null,_2be)];
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
};
};
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,_2c2,_2c3,_2c4){
function fromScript(_2c5,name,_2c7){
var _2c8=name.toLowerCase();
var _2c9="dojo:"+_2c8;
_2c7[_2c9]={dojotype:[{value:_2c8}],nodeRef:_2c5,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_2c5,name,_2c7,true);
}
if(typeof name!="string"&&typeof _2c2=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])");
return fromScript(name,_2c2,_2c3);
}
_2c2=_2c2||{};
var _2ca=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_2c3){
_2ca=true;
_2c3=tn;
if(h){
document.body.appendChild(_2c3);
}
}else{
if(_2c4){
dojo.dom.insertAtPosition(tn,_2c3,_2c4);
}else{
tn=_2c3;
}
}
var _2cd=fromScript(tn,name,_2c2);
if(!_2cd[0]||typeof _2cd[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_2ca){
if(_2cd[0].domNode.parentNode){
_2cd[0].domNode.parentNode.removeChild(_2cd[0].domNode);
}
}
return _2cd[0];
};
dojo.widget.fromScript=function(name,_2cf,_2d0,_2d1){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead");
return dojo.widget.createWidget(name,_2cf,_2d0,_2d1);
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _2d7=new dojo.uri.Uri(arguments[i].toString());
var _2d8=new dojo.uri.Uri(uri.toString());
if(_2d7.path==""&&_2d7.scheme==null&&_2d7.authority==null&&_2d7.query==null){
if(_2d7.fragment!=null){
_2d8.fragment=_2d7.fragment;
}
_2d7=_2d8;
}else{
if(_2d7.scheme==null){
_2d7.scheme=_2d8.scheme;
if(_2d7.authority==null){
_2d7.authority=_2d8.authority;
if(_2d7.path.charAt(0)!="/"){
var path=_2d8.path.substring(0,_2d8.path.lastIndexOf("/")+1)+_2d7.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;
}
}
}
}
_2d7.path=segs.join("/");
}
}
}
}
uri="";
if(_2d7.scheme!=null){
uri+=_2d7.scheme+":";
}
if(_2d7.authority!=null){
uri+="//"+_2d7.authority;
}
uri+=_2d7.path;
if(_2d7.query!=null){
uri+="?"+_2d7.query;
}
if(_2d7.fragment!=null){
uri+="#"+_2d7.fragment;
}
}
this.uri=uri.toString();
var _2dc="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2dc));
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){
_2dc="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2dc));
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.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]});
dojo.hostenv.moduleLoaded("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.require("dojo.lang.func");
dojo.widget._cssFiles={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_2df,_2e0,_2e1,_2e2){
var _2e3=_2df||obj.templatePath;
var _2e4=_2e0||obj.templateCssPath;
if(_2e3&&!(_2e3 instanceof dojo.uri.Uri)){
_2e3=dojo.uri.dojoUri(_2e3);
dojo.deprecated("templatePath should be of type dojo.uri.Uri");
}
if(_2e4&&!(_2e4 instanceof dojo.uri.Uri)){
_2e4=dojo.uri.dojoUri(_2e4);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri");
}
var _2e5=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _2e6="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_2e5[_2e6]);
obj.widgetType=_2e6;
}
var wt=obj.widgetType;
if((_2e4)&&(!dojo.widget._cssFiles[_2e4])){
dojo.style.insertCssFile(_2e4);
obj.templateCssPath=null;
dojo.widget._cssFiles[_2e4]=true;
}
var ts=_2e5[wt];
if(!ts){
_2e5[wt]={"string":null,"node":null};
if(_2e2){
ts={};
}else{
ts=_2e5[wt];
}
}
if(!obj.templateString){
obj.templateString=_2e1||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_2e3)){
var _2e9=dojo.hostenv.getText(_2e3);
if(_2e9){
var _2ea=_2e9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2ea){
_2e9=_2ea[1];
}
}else{
_2e9="";
}
obj.templateString=_2e9;
if(!_2e2){
_2e5[wt]["string"]=_2e9;
}
}
if((!ts["string"])&&(!_2e2)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.attachTemplateNodes=function(_2eb,_2ec,_2ed){
var _2ee=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_2eb){
_2eb=_2ec.domNode;
}
if(_2eb.nodeType!=_2ee){
return;
}
var _2f0=_2eb.getElementsByTagName("*");
var _2f1=_2ec;
for(var x=-1;x<_2f0.length;x++){
var _2f3=(x==-1)?_2eb:_2f0[x];
var _2f4=[];
for(var y=0;y<this.attachProperties.length;y++){
var _2f6=_2f3.getAttribute(this.attachProperties[y]);
if(_2f6){
_2f4=_2f6.split(";");
for(var z=0;z<this.attachProperties.length;z++){
if((_2ec[_2f4[z]])&&(dojo.lang.isArray(_2ec[_2f4[z]]))){
_2ec[_2f4[z]].push(_2f3);
}else{
_2ec[_2f4[z]]=_2f3;
}
}
break;
}
}
var _2f8=_2f3.getAttribute(this.templateProperty);
if(_2f8){
_2ec[_2f8]=_2f3;
}
var _2f9=_2f3.getAttribute(this.eventAttachProperty);
if(_2f9){
var evts=_2f9.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _2fb=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _2fd=tevt.split(":");
tevt=trim(_2fd[0]);
_2fb=trim(_2fd[1]);
}
if(!_2fb){
_2fb=tevt;
}
var tf=function(){
var ntf=new String(_2fb);
return function(evt){
if(_2f1[ntf]){
_2f1[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2f3,tevt,tf,false,true);
}
}
for(var y=0;y<_2ed.length;y++){
var _301=_2f3.getAttribute(_2ed[y]);
if((_301)&&(_301.length)){
var _2fb=null;
var _302=_2ed[y].substr(4);
_2fb=trim(_301);
var tf=function(){
var ntf=new String(_2fb);
return function(evt){
if(_2f1[ntf]){
_2f1[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2f3,_302,tf,false,true);
}
}
var _305=_2f3.getAttribute(this.onBuildProperty);
if(_305){
eval("var node = baseNode; var widget = targetObj; "+_305);
}
_2f3.id="";
}
};
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].legth<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.widget.buildAndAttachTemplate=function(obj,_30e,_30f,_310,_311){
this.buildFromTemplate(obj,_30e,_30f,_310);
var node=dojo.dom.createNodesFromText(obj.templateString,true)[0];
this.attachTemplateNodes(node,_311||obj,dojo.widget.getDojoEventsFromStr(_310));
return node;
};
dojo.widget.DomWidget=function(){
dojo.widget.Widget.call(this);
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
};
dojo.inherits(dojo.widget.DomWidget,dojo.widget.Widget);
dojo.lang.extend(dojo.widget.DomWidget,{templateNode:null,templateString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_313,_314,pos,ref,_317){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_313,_314,pos,ref,_317);
this.registerChild(_313,_317);
}
return _313;
},addWidgetAsDirectChild:function(_318,_319,pos,ref,_31c){
if((!this.containerNode)&&(!_319)){
this.containerNode=this.domNode;
}
var cn=(_319)?_319:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
ref=cn.lastChild;
}
if(!_31c){
_31c=0;
}
_318.domNode.setAttribute("dojoinsertionindex",_31c);
if(!ref){
cn.appendChild(_318.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_318.domNode,ref.parentNode,_31c);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_318.domNode);
}else{
dojo.dom.insertAtPosition(_318.domNode,cn,pos);
}
}
}
},registerChild:function(_31e,_31f){
_31e.dojoInsertionIndex=_31f;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_31f){
idx=i;
}
}
this.children.splice(idx+1,0,_31e);
_31e.parent=this;
_31e.addedTo(this);
delete dojo.widget.manager.topWidgets[_31e.widgetId];
},removeChild:function(_322){
dojo.dom.removeNode(_322.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_322);
},getFragNodeRef:function(frag){
if(!frag["dojo:"+this.widgetType.toLowerCase()]){
dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);
},postInitialize:function(args,frag,_326){
var _327=this.getFragNodeRef(frag);
if(_326&&(_326.snarfChildDomOutput||!_327)){
_326.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_327);
}else{
if(_327){
if(this.domNode&&(this.domNode!==_327)){
var _328=_327.parentNode.replaceChild(this.domNode,_327);
}
}
}
if(_326){
_326.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _329=dojo.widget.getParser();
_329.createComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
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 _32f=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_32f=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_32f);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_32f)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _331=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_331=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_331){
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<_331.length;i++){
var key=_331[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _338;
if((kval)||(dojo.lang.isString(kval))){
_338=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_331[i],_338);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_331)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_331){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes(this.domNode,this);
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_33a,_33b){
if(!_33b){
_33b=this;
}
return dojo.widget.attachTemplateNodes(_33a,_33b,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dj_unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dj_unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dj_unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang.array");
dojo.graphics.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.graphics.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.graphics.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.graphics.color.Color.fromArray=function(arr){
return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_342){
if(_342){
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.graphics.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},toHsv:function(){
return dojo.graphics.color.rgb2hsv(this.toRgb());
},toHsl:function(){
return dojo.graphics.color.rgb2hsl(this.toRgb());
},blend:function(_343,_344){
return dojo.graphics.color.blend(this.toRgb(),new Color(_343).toRgb(),_344);
}});
dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.graphics.color.blend=function(a,b,_347){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_347);
}
if(!_347){
_347=0;
}else{
if(_347>1){
_347=1;
}else{
if(_347<-1){
_347=-1;
}
}
}
var c=new Array(3);
for(var i=0;i<3;i++){
var half=Math.abs(a[i]-b[i])/2;
c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_347));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_34d){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_34d));
};
dojo.graphics.color.extractRGB=function(_34e){
var hex="0123456789abcdef";
_34e=_34e.toLowerCase();
if(_34e.indexOf("rgb")==0){
var _350=_34e.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_350.splice(1,3);
return ret;
}else{
var _352=dojo.graphics.color.hex2rgb(_34e);
if(_352){
return _352;
}else{
return dojo.graphics.color.named[_34e]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _354="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_354+"]","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]=_354.indexOf(rgb[i].charAt(0))*16+_354.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
function pad(x){
while(x.length<2){
x="0"+x;
}
return x;
}
var ret=dojo.lang.map([r,g,b],function(x){
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.graphics.color.rgb2hsv=function(r,g,b){
if(dojo.lang.isArray(r)){
b=r[2]||0;
g=r[1]||0;
r=r[0]||0;
}
var h=null;
var s=null;
var v=null;
var min=Math.min(r,g,b);
v=Math.max(r,g,b);
var _365=v-min;
s=(v==0)?0:_365/v;
if(s==0){
h=0;
}else{
if(r==v){
h=60*(g-b)/_365;
}else{
if(g==v){
h=120+60*(b-r)/_365;
}else{
if(b==v){
h=240+60*(r-g)/_365;
}
}
}
if(h<0){
h+=360;
}
}
h=(h==0)?360:Math.ceil((h/360)*255);
s=Math.ceil(s*255);
return [h,s,v];
};
dojo.graphics.color.hsv2rgb=function(h,s,v){
if(dojo.lang.isArray(h)){
v=h[2]||0;
s=h[1]||0;
h=h[0]||0;
}
h=(h/255)*360;
if(h==360){
h=0;
}
s=s/255;
v=v/255;
var r=null;
var g=null;
var b=null;
if(s==0){
r=v;
g=v;
b=v;
}else{
var _36c=h/60;
var i=Math.floor(_36c);
var f=_36c-i;
var p=v*(1-s);
var q=v*(1-(s*f));
var t=v*(1-(s*(1-f)));
switch(i){
case 0:
r=v;
g=t;
b=p;
break;
case 1:
r=q;
g=v;
b=p;
break;
case 2:
r=p;
g=v;
b=t;
break;
case 3:
r=p;
g=q;
b=v;
break;
case 4:
r=t;
g=p;
b=v;
break;
case 5:
r=v;
g=p;
b=q;
break;
}
}
r=Math.ceil(r*255);
g=Math.ceil(g*255);
b=Math.ceil(b*255);
return [r,g,b];
};
dojo.graphics.color.rgb2hsl=function(r,g,b){
if(dojo.lang.isArray(r)){
b=r[2]||0;
g=r[1]||0;
r=r[0]||0;
}
r/=255;
g/=255;
b/=255;
var h=null;
var s=null;
var l=null;
var min=Math.min(r,g,b);
var max=Math.max(r,g,b);
var _37a=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_37a/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_37a>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_37a;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_37a);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_37a);
}
h*=60;
}
h=(h==0)?360:Math.ceil((h/360)*255);
s=Math.ceil(s*255);
l=Math.ceil(l*255);
return [h,s,l];
};
dojo.graphics.color.hsl2rgb=function(h,s,l){
if(dojo.lang.isArray(h)){
l=h[2]||0;
s=h[1]||0;
h=h[0]||0;
}
h=(h/255)*360;
if(h==360){
h=0;
}
s=s/255;
l=l/255;
while(h<0){
h+=360;
}
while(h>360){
h-=360;
}
if(h<120){
r=(120-h)/60;
g=h/60;
b=0;
}else{
if(h<240){
r=0;
g=(240-h)/60;
b=(h-120)/60;
}else{
r=(h-240)/60;
g=0;
b=(360-h)/60;
}
}
r=Math.min(r,1);
g=Math.min(g,1);
b=Math.min(b,1);
r=2*s*r+(1-s);
g=2*s*g+(1-s);
b=2*s*b+(1-s);
if(l<0.5){
r=l*r;
g=l*g;
b=l*b;
}else{
r=(1-l)*r+2*l-1;
g=(1-l)*g+2*l-1;
b=(1-l)*b+2*l-1;
}
r=Math.ceil(r*255);
g=Math.ceil(g*255);
b=Math.ceil(b*255);
return [r,g,b];
};
dojo.graphics.color.hsl2hex=function(h,s,l){
var rgb=dojo.graphics.color.hsl2rgb(h,s,l);
return dojo.graphics.color.rgb2hex(rgb[0],rgb[1],rgb[2]);
};
dojo.graphics.color.hex2hsl=function(hex){
var rgb=dojo.graphics.color.hex2rgb(hex);
return dojo.graphics.color.rgb2hsl(rgb[0],rgb[1],rgb[2]);
};
dojo.provide("dojo.style");
dojo.require("dojo.graphics.color");
dojo.style.boxSizing={marginBox:"margin-box",borderBox:"border-box",paddingBox:"padding-box",contentBox:"content-box"};
dojo.style.getBoxSizing=function(node){
node=dojo.byId(node);
if(dojo.render.html.ie||dojo.render.html.opera){
var cm=document["compatMode"];
if(cm=="BackCompat"||cm=="QuirksMode"){
return dojo.style.boxSizing.borderBox;
}else{
return dojo.style.boxSizing.contentBox;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _386=dojo.style.getStyle(node,"-moz-box-sizing");
if(!_386){
_386=dojo.style.getStyle(node,"box-sizing");
}
return (_386?_386:dojo.style.boxSizing.contentBox);
}
};
dojo.style.isBorderBox=function(node){
return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox);
};
dojo.style.getUnitValue=function(node,_389,_38a){
node=dojo.byId(node);
var _38b={value:0,units:"px"};
var s=dojo.style.getComputedStyle(node,_389);
if(s==""||(s=="auto"&&_38a)){
return _38b;
}
if(dojo.lang.isUndefined(s)){
_38b.value=NaN;
}else{
var _38d=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_38d){
_38b.value=NaN;
}else{
_38b.value=Number(_38d[1]);
_38b.units=_38d[2].toLowerCase();
}
}
return _38b;
};
dojo.style.getPixelValue=function(node,_38f,_390){
node=dojo.byId(node);
var _391=dojo.style.getUnitValue(node,_38f,_390);
if(isNaN(_391.value)){
return 0;
}
if((_391.value)&&(_391.units!="px")){
return NaN;
}
return _391.value;
};
dojo.style.getNumericStyle=dojo.style.getPixelValue;
dojo.style.isPositionAbsolute=function(node){
node=dojo.byId(node);
return (dojo.style.getComputedStyle(node,"position")=="absolute");
};
dojo.style.getMarginWidth=function(node){
node=dojo.byId(node);
var _394=dojo.style.isPositionAbsolute(node);
var left=dojo.style.getPixelValue(node,"margin-left",_394);
var _396=dojo.style.getPixelValue(node,"margin-right",_394);
return left+_396;
};
dojo.style.getBorderWidth=function(node){
node=dojo.byId(node);
var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width"));
var _399=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width"));
return left+_399;
};
dojo.style.getPaddingWidth=function(node){
node=dojo.byId(node);
var left=dojo.style.getPixelValue(node,"padding-left",true);
var _39c=dojo.style.getPixelValue(node,"padding-right",true);
return left+_39c;
};
dojo.style.getContentWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth-dojo.style.getPaddingWidth(node)-dojo.style.getBorderWidth(node);
};
dojo.style.getInnerWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth;
};
dojo.style.getOuterWidth=function(node){
node=dojo.byId(node);
return dojo.style.getInnerWidth(node)+dojo.style.getMarginWidth(node);
};
dojo.style.setOuterWidth=function(node,_3a1){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3a1-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
_3a1-=dojo.style.getMarginWidth(node);
if(!isNaN(_3a1)&&_3a1>0){
node.style.width=_3a1+"px";
return true;
}else{
return false;
}
};
dojo.style.getContentBoxWidth=dojo.style.getContentWidth;
dojo.style.getBorderBoxWidth=dojo.style.getInnerWidth;
dojo.style.getMarginBoxWidth=dojo.style.getOuterWidth;
dojo.style.setMarginBoxWidth=dojo.style.setOuterWidth;
dojo.style.getMarginHeight=function(node){
node=dojo.byId(node);
var _3a3=dojo.style.isPositionAbsolute(node);
var top=dojo.style.getPixelValue(node,"margin-top",_3a3);
var _3a5=dojo.style.getPixelValue(node,"margin-bottom",_3a3);
return top+_3a5;
};
dojo.style.getBorderHeight=function(node){
node=dojo.byId(node);
var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width"));
var _3a8=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width"));
return top+_3a8;
};
dojo.style.getPaddingHeight=function(node){
node=dojo.byId(node);
var top=dojo.style.getPixelValue(node,"padding-top",true);
var _3ab=dojo.style.getPixelValue(node,"padding-bottom",true);
return top+_3ab;
};
dojo.style.getContentHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight-dojo.style.getPaddingHeight(node)-dojo.style.getBorderHeight(node);
};
dojo.style.getInnerHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight;
};
dojo.style.getOuterHeight=function(node){
node=dojo.byId(node);
return dojo.style.getInnerHeight(node)+dojo.style.getMarginHeight(node);
};
dojo.style.setOuterHeight=function(node,_3b0){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3b0-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
_3b0-=dojo.style.getMarginHeight(node);
if(!isNaN(_3b0)&&_3b0>0){
node.style.height=_3b0+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentWidth=function(node,_3b2){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3b2+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
if(!isNaN(_3b2)&&_3b2>0){
node.style.width=_3b2+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentHeight=function(node,_3b4){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3b4+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
if(!isNaN(_3b4)&&_3b4>0){
node.style.height=_3b4+"px";
return true;
}else{
return false;
}
};
dojo.style.getContentBoxHeight=dojo.style.getContentHeight;
dojo.style.getBorderBoxHeight=dojo.style.getInnerHeight;
dojo.style.getMarginBoxHeight=dojo.style.getOuterHeight;
dojo.style.setMarginBoxHeight=dojo.style.setOuterHeight;
dojo.style.getTotalOffset=function(node,type,_3b7){
node=dojo.byId(node);
var _3b8=(type=="top")?"offsetTop":"offsetLeft";
var _3b9=(type=="top")?"scrollTop":"scrollLeft";
var _3ba=(type=="top")?"y":"x";
var _3bb=0;
if(node["offsetParent"]){
if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==document.body){
var _3bc=document.body;
}else{
var _3bc=document.body.parentNode;
}
if(_3b7&&node.parentNode!=document.body){
_3bb-=dojo.style.sumAncestorProperties(node,_3b9);
}
do{
var n=node[_3b8];
_3bb+=isNaN(n)?0:n;
node=node.offsetParent;
}while(node!=_3bc&&node!=null);
}else{
if(node[_3ba]){
var n=node[_3ba];
_3bb+=isNaN(n)?0:n;
}
}
return _3bb;
};
dojo.style.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _3c0=0;
while(node){
var val=node[prop];
if(val){
_3c0+=val-0;
}
node=node.parentNode;
}
return _3c0;
};
dojo.style.totalOffsetLeft=function(node,_3c3){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"left",_3c3);
};
dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;
dojo.style.totalOffsetTop=function(node,_3c5){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"top",_3c5);
};
dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;
dojo.style.getAbsolutePosition=function(node,_3c7){
node=dojo.byId(node);
var _3c8=[dojo.style.getAbsoluteX(node,_3c7),dojo.style.getAbsoluteY(node,_3c7)];
_3c8.x=_3c8[0];
_3c8.y=_3c8[1];
return _3c8;
};
dojo.style.styleSheet=null;
dojo.style.insertCssRule=function(_3c9,_3ca,_3cb){
if(!dojo.style.styleSheet){
if(document.createStyleSheet){
dojo.style.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.style.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.style.styleSheet.cssRules){
_3cb=dojo.style.styleSheet.cssRules.length;
}else{
if(dojo.style.styleSheet.rules){
_3cb=dojo.style.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.style.styleSheet.insertRule){
var rule=_3c9+" { "+_3ca+" }";
return dojo.style.styleSheet.insertRule(rule,_3cb);
}else{
if(dojo.style.styleSheet.addRule){
return dojo.style.styleSheet.addRule(_3c9,_3ca,_3cb);
}else{
return null;
}
}
};
dojo.style.removeCssRule=function(_3cd){
if(!dojo.style.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3cd){
_3cd=dojo.style.styleSheet.rules.length;
dojo.style.styleSheet.removeRule(_3cd);
}
}else{
if(document.styleSheets[0]){
if(!_3cd){
_3cd=dojo.style.styleSheet.cssRules.length;
}
dojo.style.styleSheet.deleteRule(_3cd);
}
}
return true;
};
dojo.style.insertCssFile=function(URI,doc,_3d0){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3d1=dojo.hostenv.getText(URI);
var _3d1=dojo.style.fixPathsInCssText(_3d1,URI);
if(_3d0){
var _3d2=doc.getElementsByTagName("style");
var _3d3="";
for(var i=0;i<_3d2.length;i++){
_3d3=(_3d2[i].styleSheet&&_3d2[i].styleSheet.cssText)?_3d2[i].styleSheet.cssText:_3d2[i].innerHTML;
if(_3d1==_3d3){
return;
}
}
}
var _3d5=dojo.style.insertCssText(_3d1);
if(_3d5&&djConfig.isDebug){
_3d5.setAttribute("dbgHref",URI);
}
return _3d5;
};
dojo.style.insertCssText=function(_3d6,doc,URI){
if(!_3d6){
return;
}
if(!doc){
doc=document;
}
if(URI){
_3d6=dojo.style.fixPathsInCssText(_3d6,URI);
}
var _3d9=doc.createElement("style");
_3d9.setAttribute("type","text/css");
if(_3d9.styleSheet){
_3d9.styleSheet.cssText=_3d6;
}else{
var _3da=doc.createTextNode(_3d6);
_3d9.appendChild(_3da);
}
var head=doc.getElementsByTagName("head")[0];
if(head){
head.appendChild(_3d9);
}
return _3d9;
};
dojo.style.fixPathsInCssText=function(_3dc,URI){
if(!_3dc||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_3dc.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_3dc.slice(0,pos+4);
_3dc=_3dc.substring(pos+4,_3dc.length);
url+=_3dc.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_3dc=_3dc.substring(url.length-1,_3dc.length);
url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");
if(url.search(/(file|https?|ftps?):\/\//)==-1){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=url;
}
return str+_3dc;
};
dojo.style.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3e2;
do{
_3e2=dojo.style.getStyle(node,"background-color");
if(_3e2.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3e2="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_3e2,["transparent",""]));
if(_3e2=="transparent"){
_3e2=[255,255,255,0];
}else{
_3e2=dojo.graphics.color.extractRGB(_3e2);
}
return _3e2;
};
dojo.style.getComputedStyle=function(node,_3e4,_3e5){
node=dojo.byId(node);
var _3e6=_3e5;
if(node.style.getPropertyValue){
_3e6=node.style.getPropertyValue(_3e4);
}
if(!_3e6){
if(document.defaultView){
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
_3e6=cs.getPropertyValue(_3e4);
}
}else{
if(node.currentStyle){
_3e6=node.currentStyle[dojo.style.toCamelCase(_3e4)];
}
}
}
return _3e6;
};
dojo.style.getStyle=function(node,_3e9){
node=dojo.byId(node);
var _3ea=dojo.style.toCamelCase(_3e9);
var _3eb=node.style[_3ea];
return (_3eb?_3eb:dojo.style.getComputedStyle(node,_3e9,_3eb));
};
dojo.style.toCamelCase=function(_3ec){
var arr=_3ec.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.style.toSelectorCase=function(_3ef){
return _3ef.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.style.setOpacity=function setOpacity(node,_3f1,_3f2){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_3f2){
if(_3f1>=1){
if(h.ie){
dojo.style.clearOpacity(node);
return;
}else{
_3f1=0.999999;
}
}else{
if(_3f1<0){
_3f1=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="+_3f1*100+")";
}
}
node.style.filter="Alpha(Opacity="+_3f1*100+")";
}else{
if(h.moz){
node.style.opacity=_3f1;
node.style.MozOpacity=_3f1;
}else{
if(h.safari){
node.style.opacity=_3f1;
node.style.KhtmlOpacity=_3f1;
}else{
node.style.opacity=_3f1;
}
}
}
};
dojo.style.getOpacity=function getOpacity(node){
node=dojo.byId(node);
if(dojo.render.html.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.style.clearOpacity=function clearOpacity(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
if(node.filters&&node.filters.alpha){
node.style.filter="";
}
}else{
if(h.moz){
node.style.opacity=1;
node.style.MozOpacity=1;
}else{
if(h.safari){
node.style.opacity=1;
node.style.KhtmlOpacity=1;
}else{
node.style.opacity=1;
}
}
}
};
dojo.style.isVisible=function(node){
node=dojo.byId(node);
return dojo.style.getComputedStyle(node||this.domNode,"display")!="none";
};
dojo.style.show=function(node){
node=dojo.byId(node);
if(node.style){
node.style.display=dojo.lang.inArray(["tr","td","th"],node.tagName.toLowerCase())?"":"block";
}
};
dojo.style.hide=function(node){
node=dojo.byId(node);
if(node.style){
node.style.display="none";
}
};
dojo.style.toggleVisible=function(node){
if(dojo.style.isVisible(node)){
dojo.style.hide(node);
return false;
}else{
dojo.style.show(node);
return true;
}
};
dojo.style.toCoordinateArray=function(_3fe,_3ff){
if(dojo.lang.isArray(_3fe)){
while(_3fe.length<4){
_3fe.push(0);
}
while(_3fe.length>4){
_3fe.pop();
}
var ret=_3fe;
}else{
var node=dojo.byId(_3fe);
var ret=[dojo.style.getAbsoluteX(node,_3ff),dojo.style.getAbsoluteY(node,_3ff),dojo.style.getInnerWidth(node),dojo.style.getInnerHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
dojo.provide("dojo.string.common");
dojo.require("dojo.string");
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,_408,_409){
var out="";
for(var i=0;i<_408;i++){
out+=str;
if(_409&&i<_408-1){
out+=_409;
}
}
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.require("dojo.string.common");
dojo.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.paramString=function(str,_418,_419){
for(var name in _418){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_418[name]);
}
if(_419){
str=str.replace(/%\{([^\}\s]+)\}/g,"");
}
return str;
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _41d=str.split(" ");
var _41e="";
var len=_41d.length;
for(var i=0;i<len;i++){
var word=_41d[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_41e+=word;
if(i<len-1){
_41e+=" ";
}
}
return new String(_41e);
};
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 _425=escape(str);
var _426,re=/%u([0-9A-F]{4})/i;
while((_426=_425.match(re))){
var num=Number("0x"+_426[1]);
var _428=escape("&#"+num+";");
ret+=_425.substring(0,_426.index)+_428;
_425=_425.substring(_426.index+_426[0].length);
}
ret+=_425.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=[];
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
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,_42e){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_42e){
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.summary=function(str,len){
if(!len||str.length<=len){
return str;
}else{
return str.substring(0,len).replace(/\.+$/,"")+"...";
}
};
dojo.string.endsWith=function(str,end,_436){
if(_436){
str=str.toLowerCase();
end=end.toLowerCase();
}
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,_43a,_43b){
if(_43b){
str=str.toLowerCase();
_43a=_43a.toLowerCase();
}
return str.indexOf(_43a)==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,_441){
if(_441=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_441=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n");
text=text.replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_443){
var _444=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_443){
_444.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_444.push(str.substr(prevcomma));
return _444;
};
dojo.provide("dojo.html");
dojo.require("dojo.lang.func");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.string");
dojo.require("dojo.string.extras");
dojo.require("dojo.uri.Uri");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.lang.mixin(dojo.html,dojo.style);
dojo.html.clearSelection=function(){
try{
if(window["getSelection"]){
if(dojo.render.html.safari){
window.getSelection().collapse();
}else{
window.getSelection().removeAllRanges();
}
}else{
if(document.selection){
if(document.selection.empty){
document.selection.empty();
}else{
if(document.selection.clear){
document.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_446){
_446=dojo.byId(_446)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_446.style.MozUserSelect="none";
}else{
if(h.safari){
_446.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_446.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_448){
_448=dojo.byId(_448)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_448.style.MozUserSelect="";
}else{
if(h.safari){
_448.style.KhtmlUserSelect="";
}else{
if(h.ie){
_448.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_44a){
_44a=dojo.byId(_44a);
if(document.selection&&document.body.createTextRange){
var _44b=document.body.createTextRange();
_44b.moveToElementText(_44a);
_44b.select();
}else{
if(window["getSelection"]){
var _44c=window.getSelection();
if(_44c["selectAllChildren"]){
_44c.selectAllChildren(_44a);
}
}
}
};
dojo.html.selectInputText=function(_44d){
_44d=dojo.byId(_44d);
if(document.selection&&document.body.createTextRange){
var _44e=_44d.createTextRange();
_44e.moveStart("character",0);
_44e.moveEnd("character",_44d.value.length);
_44e.select();
}else{
if(window["getSelection"]){
var _44f=window.getSelection();
_44d.setSelectionRange(0,_44d.value.length);
}
}
_44d.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _450=window.getSelection();
if(dojo.lang.isString(_450)){
return _450=="";
}else{
return _450.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
if(evt.srcElement){
return evt.srcElement;
}else{
if(evt.target){
return evt.target;
}
}
return null;
};
dojo.html.getScrollTop=function(){
return document.documentElement.scrollTop||document.body.scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
return dojo.html.getViewportSize();
};
dojo.html.getViewportWidth=function(){
var w=0;
if(window.innerWidth){
w=window.innerWidth;
}
if(dojo.exists(document,"documentElement.clientWidth")){
var w2=document.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
return w;
}
if(document.body){
return document.body.clientWidth;
}
return 0;
};
dojo.html.getViewportHeight=function(){
if(window.innerHeight){
return window.innerHeight;
}
if(dojo.exists(document,"documentElement.clientHeight")){
return document.documentElement.clientHeight;
}
if(document.body){
return document.body.clientHeight;
}
return 0;
};
dojo.html.getViewportSize=function(){
var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];
ret.w=ret[0];
ret.h=ret[1];
return ret;
};
dojo.html.getScrollOffset=function(){
var ret=[0,0];
if(window.pageXOffset||window.pageYOffset){
ret=[window.pageXOffset,window.pageYOffset];
}else{
if(dojo.exists(document,"documentElement.scrollTop")){
ret=[document.documentElement.scrollLeft,document.documentElement.scrollTop];
}else{
if(document.body){
ret=[document.body.scrollLeft,document.body.scrollTop];
}
}
}
ret.x=ret[0];
ret.y=ret[1];
return ret;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType has been deprecated in favor of dojo.html.getParentByType*");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _45a=dojo.byId(node);
type=type.toLowerCase();
while((_45a)&&(_45a.nodeName.toLowerCase()!=type)){
if(_45a==(document["body"]||document["documentElement"])){
return null;
}
_45a=_45a.parentNode;
}
return _45a;
};
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){
node=dojo.byId(node);
return dojo.html.getAttribute(node,attr)?true:false;
};
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 dojo.string.trim(cs);
};
dojo.html.getClasses=function(node){
node=dojo.byId(node);
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_466){
node=dojo.byId(node);
return dojo.lang.inArray(dojo.html.getClasses(node),_466);
};
dojo.html.prependClass=function(node,_468){
node=dojo.byId(node);
if(!node){
return false;
}
_468+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_468);
};
dojo.html.addClass=function(node,_46a){
node=dojo.byId(node);
if(!node){
return false;
}
if(dojo.html.hasClass(node,_46a)){
return false;
}
_46a=dojo.string.trim(dojo.html.getClass(node)+" "+_46a);
return dojo.html.setClass(node,_46a);
};
dojo.html.setClass=function(node,_46c){
node=dojo.byId(node);
if(!node){
return false;
}
var cs=new String(_46c);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_46c);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_46f,_470){
node=dojo.byId(node);
if(!node){
return false;
}
var _46f=dojo.string.trim(new String(_46f));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_470){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_46f)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_46f){
nca.push(cs[i]);
}
}
}
dojo.html.setClass(node,nca.join(" "));
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_475,_476){
node=dojo.byId(node);
dojo.html.removeClass(node,_476);
dojo.html.addClass(node,_475);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_477,_478,_479,_47a){
_478=dojo.byId(_478);
if(!_478){
_478=document;
}
var _47b=_477.split(/\s+/g);
var _47c=[];
if(_47a!=1&&_47a!=2){
_47a=0;
}
var _47d=new RegExp("(\\s|^)(("+_47b.join(")|(")+"))(\\s|$)");
if(!_479){
_479="*";
}
var _47e=_478.getElementsByTagName(_479);
outer:
for(var i=0;i<_47e.length;i++){
var node=_47e[i];
var _481=dojo.html.getClasses(node);
if(_481.length==0){
continue outer;
}
var _482=0;
for(var j=0;j<_481.length;j++){
if(_47d.test(_481[j])){
if(_47a==dojo.html.classMatchType.ContainsAny){
_47c.push(node);
continue outer;
}else{
_482++;
}
}else{
if(_47a==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_482==_47b.length){
if(_47a==dojo.html.classMatchType.IsOnly&&_482==_481.length){
_47c.push(node);
}else{
if(_47a==dojo.html.classMatchType.ContainsAll){
_47c.push(node);
}
}
}
}
return _47c;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _486=e.pageX||e.clientX+document.body.scrollLeft;
var _487=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var _488=getAbsoluteX(node)+(getInnerWidth(node)/2);
var _489=getAbsoluteY(node)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_486<_488?WEST:EAST)|(_487<_489?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(_48a,e){
_48a=dojo.byId(_48a);
var _48c=e.pageX||e.clientX+document.body.scrollLeft;
var _48d=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var top=getAbsoluteY(_48a);
var _48f=top+getInnerHeight(_48a);
var left=getAbsoluteX(_48a);
var _491=left+getInnerWidth(_48a);
}
return (_48c>=left&&_48c<=_491&&_48d>=top&&_48d<=_48f);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _493="";
if(node==null){
return _493;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _495="unknown";
try{
_495=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_495){
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":
_493+="\n";
_493+=dojo.html.renderedTextContent(node.childNodes[i]);
_493+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_493+="\n";
}else{
_493+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _497="unknown";
try{
_497=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_497){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_497){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_493)){
text.replace(/^\s/,"");
}
break;
}
_493+=text;
break;
default:
break;
}
}
return _493;
};
dojo.html.setActiveStyleSheet=function(_498){
var i,a,main;
for(i=0;(a=document.getElementsByTagName("link")[i]);i++){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_498){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);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,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);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.body=function(){
dojo.deprecated("dojo.html.body","use document.body instead");
return document.body||document.getElementsByTagName("body")[0];
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
var _49f="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_49f="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_49f="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_49f="section";
}
}
}
tn.innerHTML=txt;
tn.normalize();
var _4a0=null;
switch(_49f){
case "cell":
_4a0=tn.getElementsByTagName("tr")[0];
break;
case "row":
_4a0=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_4a0=tn.getElementsByTagName("table")[0];
break;
default:
_4a0=tn;
break;
}
var _4a1=[];
for(var x=0;x<_4a0.childNodes.length;x++){
_4a1.push(_4a0.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _4a1;
};
if(!dojo.evalObjPath("dojo.dom.createNodesFromText")){
dojo.dom.createNodesFromText=function(){
dojo.deprecated("dojo.dom.createNodesFromText","use dojo.html.createNodesFromText instead");
return dojo.html.createNodesFromText.apply(dojo.html,arguments);
};
}
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){
return String(a).toLowerCase();
});
return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||"";
}
return "";
};
dojo.html.placeOnScreen=function(node,_4a7,_4a8,_4a9,_4aa){
if(dojo.lang.isArray(_4a7)){
_4aa=_4a9;
_4a9=_4a8;
_4a8=_4a7[1];
_4a7=_4a7[0];
}
if(!isNaN(_4a9)){
_4a9=[Number(_4a9),Number(_4a9)];
}else{
if(!dojo.lang.isArray(_4a9)){
_4a9=[0,0];
}
}
var _4ab=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_4a9[0];
var h=node.offsetHeight+_4a9[1];
if(_4aa){
_4a7-=_4ab.x;
_4a8-=_4ab.y;
}
var x=_4a7+w;
if(x>view.w){
x=view.w-w;
}else{
x=_4a7;
}
x=Math.max(_4a9[0],x)+_4ab.x;
var y=_4a8+h;
if(y>view.h){
y=view.h-h;
}else{
y=_4a8;
}
y=Math.max(_4a9[1],y)+_4ab.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.placeOnScreenPoint=function(node,_4b3,_4b4,_4b5,_4b6){
if(dojo.lang.isArray(_4b3)){
_4b6=_4b5;
_4b5=_4b4;
_4b4=_4b3[1];
_4b3=_4b3[0];
}
if(!isNaN(_4b5)){
_4b5=[Number(_4b5),Number(_4b5)];
}else{
if(!dojo.lang.isArray(_4b5)){
_4b5=[0,0];
}
}
var _4b7=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _4b9=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_4b9;
if(_4b6){
_4b3-=_4b7.x;
_4b4-=_4b7.y;
}
var x=-1,y=-1;
if((_4b3+_4b5[0])+w<=view.w&&(_4b4+_4b5[1])+h<=view.h){
x=(_4b3+_4b5[0]);
y=(_4b4+_4b5[1]);
}
if((x<0||y<0)&&(_4b3-_4b5[0])<=view.w&&(_4b4+_4b5[1])+h<=view.h){
x=(_4b3-_4b5[0])-w;
y=(_4b4+_4b5[1]);
}
if((x<0||y<0)&&(_4b3+_4b5[0])+w<=view.w&&(_4b4-_4b5[1])<=view.h){
x=(_4b3+_4b5[0]);
y=(_4b4-_4b5[1])-h;
}
if((x<0||y<0)&&(_4b3-_4b5[0])<=view.w&&(_4b4-_4b5[1])<=view.h){
x=(_4b3-_4b5[0])-w;
y=(_4b4-_4b5[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_4b3,_4b4,_4b5,_4b6);
}
x+=_4b7.x;
y+=_4b7.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie){
var html="<iframe src='javascript:void(0)' "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=document.createElement(html);
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
document.body.appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
coords=dojo.html.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=coords.w+"px";
s.height=coords.h+"px";
s.left=coords.x+"px";
s.top=coords.y+"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.ie){
return;
}
var s=this.iframe.style;
s.display="none";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.DomWidget");
dojo.require("dojo.html");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.widget.HtmlWidget=function(args){
dojo.widget.DomWidget.call(this);
};
dojo.inherits(dojo.widget.HtmlWidget,dojo.widget.DomWidget);
dojo.lang.extend(dojo.widget.HtmlWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,bgIframe:null,initialize:function(args,frag){
},toggleObj:{show:function(node,_4cb,_4cc,_4cd){
dojo.style.show(node);
if(dojo.lang.isFunction(_4cd)){
_4cd();
}
},hide:function(node,_4cf,_4d0,_4d1){
dojo.style.hide(node);
if(dojo.lang.isFunction(_4d1)){
_4d1();
}
}},postMixInProperties:function(args,frag){
var _4d4=(dojo.fx&&dojo.fx.html&&dojo.fx.html.toggle[this.toggle.toLowerCase()]);
if(_4d4){
this.toggleObj=_4d4;
}
},getContainerHeight:function(){
dj_unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_4d5){
var ch=this.getContainerHeight();
},resizeSoon:function(){
if(this.isVisible()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},resizeTo:function(w,h){
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_4db){
try{
if(!_4db){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isVisible:function(){
return dojo.style.isVisible(this.domNode);
},doToggle:function(){
this.isVisible()?this.hide():this.show();
},show:function(){
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,this.onShow));
},onShow:function(){
this.animationInProgress=false;
},hide:function(){
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,this.onHide));
},onHide:function(){
this.animationInProgress=false;
},onResized:function(){
dojo.widget.HtmlWidget.superclass.onResized.call(this);
if(this.bgIframe){
this.bgIframe.onResized();
}
}});
dojo.hostenv.conditionalLoadModule({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"]});
dojo.hostenv.moduleLoaded("dojo.widget.*");
dojo.provide("dojo.io.IO");
dojo.require("dojo.string");
dojo.require("dojo.lang.extras");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_4dd,_4de,_4df){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_4dd){
this.mimetype=_4dd;
}
if(_4de){
this.transport=_4de;
}
if(arguments.length>=4){
this.changeUrl=_4df;
}
}
};
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,_4e4){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_4e6){
if(_4e6["url"]){
_4e6.url=_4e6.url.toString();
}
if(_4e6["formNode"]){
_4e6.formNode=dojo.byId(_4e6.formNode);
}
if(!_4e6["method"]&&_4e6["formNode"]&&_4e6["formNode"].method){
_4e6.method=_4e6["formNode"].method;
}
if(!_4e6["handle"]&&_4e6["handler"]){
_4e6.handle=_4e6.handler;
}
if(!_4e6["load"]&&_4e6["loaded"]){
_4e6.load=_4e6.loaded;
}
if(!_4e6["changeUrl"]&&_4e6["changeURL"]){
_4e6.changeUrl=_4e6.changeURL;
}
_4e6.encoding=dojo.lang.firstValued(_4e6["encoding"],djConfig["bindEncoding"],"");
_4e6.sendTransport=dojo.lang.firstValued(_4e6["sendTransport"],djConfig["ioSendTransport"],false);
var _4e7=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_4e7(_4e6[fn])){
continue;
}
if(_4e7(_4e6["handle"])){
_4e6[fn]=_4e6.handle;
}
}
dojo.lang.mixin(this,_4e6);
}});
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(_4ee){
if(!(_4ee instanceof dojo.io.Request)){
try{
_4ee=new dojo.io.Request(_4ee);
}
catch(e){
dojo.debug(e);
}
}
var _4ef="";
if(_4ee["transport"]){
_4ef=_4ee["transport"];
if(!this[_4ef]){
return _4ee;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_4ee))){
_4ef=tmp;
}
}
if(_4ef==""){
return _4ee;
}
}
this[_4ef].bind(_4ee);
_4ee.bindSuccess=true;
return _4ee;
};
dojo.io.queueBind=function(_4f2){
if(!(_4f2 instanceof dojo.io.Request)){
try{
_4f2=new dojo.io.Request(_4f2);
}
catch(e){
dojo.debug(e);
}
}
var _4f3=_4f2.load;
_4f2.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_4f3.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _4f5=_4f2.error;
_4f2.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_4f5.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_4f2);
dojo.io._dispatchNextQueueBind();
return _4f2;
};
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,_4f8){
var _4f9=new Object();
var _4fa="";
var enc=/utf/i.test(_4f8||"")?encodeURIComponent:dojo.string.encodeAscii;
for(var x in map){
if(!_4f9[x]){
_4fa+=enc(x)+"="+enc(map[x])+"&";
}
}
return _4fa;
};
dojo.io.setIFrameSrc=function(_4fd,src,_4ff){
try{
var r=dojo.render.html;
if(!_4ff){
if(r.safari){
_4fd.location=src;
}else{
frames[_4fd.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_4fd.contentWindow.document;
}else{
if(r.moz){
idoc=_4fd.contentWindow;
}else{
if(r.safari){
idoc=_4fd.document;
}
}
}
idoc.location.replace(src);
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.undo.browser");
dojo.require("dojo.io");
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){
}
dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,addToHistory:function(args){
var hash=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if((!args["changeUrl"])||(dojo.render.html.ie)){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"';",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _505=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_507){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_505.apply(this,[_507]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _508=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_50a){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_508){
_508.apply(this,[_50a]);
}
};
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);
}
}
}
}
this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});
},checkLocation:function(){
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,_50d){
var _50e=this._getUrlQuery(_50d.href);
if(_50e==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_50e==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_50e==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
},handleBackButton:function(){
var _50f=this.historyStack.pop();
var last=this.historyStack[this.historyStack.length-1];
if(!_50f){
return;
}
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(_50f);
},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);
},_getUrlQuery:function(url){
var _513=url.split("?");
if(_513.length<2){
return null;
}else{
return _513[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.require("dojo.io");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.dom");
dojo.require("dojo.undo.browser");
dojo.io.checkChildrenForFile=function(node){
var _515=false;
var _516=node.getElementsByTagName("input");
dojo.lang.forEach(_516,function(_517){
if(_515){
return;
}
if(_517.getAttribute("type")=="file"){
_515=true;
}
});
return _515;
};
dojo.io.formHasFile=function(_518){
return dojo.io.checkChildrenForFile(_518);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);
};
dojo.io.encodeForm=function(_51b,_51c,_51d){
if((!_51b)||(!_51b.tagName)||(!_51b.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_51d){
_51d=dojo.io.formFilter;
}
var enc=/utf/i.test(_51c||"")?encodeURIComponent:dojo.string.encodeAscii;
var _51f=[];
for(var i=0;i<_51b.elements.length;i++){
var elm=_51b.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_51d(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){
_51f.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_51f.push(name+"="+enc(elm.value));
}
}else{
_51f.push(name+"="+enc(elm.value));
}
}
}
var _525=_51b.getElementsByTagName("input");
for(var i=0;i<_525.length;i++){
var _526=_525[i];
if(_526.type.toLowerCase()=="image"&&_526.form==_51b&&_51d(_526)){
var name=enc(_526.name);
_51f.push(name+"="+enc(_526.value));
_51f.push(name+".x=0");
_51f.push(name+".y=0");
}
}
return _51f.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(node.type.toLowerCase(),["submit","button"])){
this.connect(node,"onclick","click");
}
}
var _52c=form.getElementsByTagName("input");
for(var i=0;i<_52c.length;i++){
var _52d=_52c[i];
if(_52d.type.toLowerCase()=="image"&&_52d.form==form){
this.connect(_52d,"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 _534=false;
if(node.disabled||!node.name){
_534=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_534=node==this.clickedButton;
}else{
_534=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _534;
},connect:function(_535,_536,_537){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_535,_536,this,_537);
}else{
var fcn=dojo.lang.hitch(this,_537);
_535[_536]=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 _53a=this;
var _53b={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_53d,_53e){
return url+"|"+_53d+"|"+_53e.toLowerCase();
}
function addToCache(url,_540,_541,http){
_53b[getCacheKey(url,_540,_541)]=http;
}
function getFromCache(url,_544,_545){
return _53b[getCacheKey(url,_544,_545)];
}
this.clearCache=function(){
_53b={};
};
function doLoad(_546,http,url,_549,_54a){
if((http.status==200)||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))){
var ret;
if(_546.method.toLowerCase()=="head"){
var _54c=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _54c;
};
var _54d=_54c.split(/[\r\n]+/g);
for(var i=0;i<_54d.length;i++){
var pair=_54d[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_546.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_546.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_546.mimetype=="application/xml")||(_546.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_54a){
addToCache(url,_549,_546.method,http);
}
_546[(typeof _546.load=="function")?"load":"handle"]("load",ret,http);
}else{
var _550=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_546[(typeof _546.error=="function")?"error":"handle"]("error",_550,http);
}
}
function setHeaders(http,_552){
if(_552["headers"]){
for(var _553 in _552["headers"]){
if(_553.toLowerCase()=="content-type"&&!_552["contentType"]){
_552["contentType"]=_552["headers"][_553];
}else{
http.setRequestHeader(_553,_552["headers"][_553]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
for(var x=this.inFlight.length-1;x>=0;x--){
var tif=this.inFlight[x];
if(!tif){
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);
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
}
}
};
var _556=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_557){
return _556&&dojo.lang.inArray((_557["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_557["method"].toLowerCase(),["post","get","head"])&&!(_557["formNode"]&&dojo.io.formHasFile(_557["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_558){
if(!_558["url"]){
if(!_558["formNode"]&&(_558["backButton"]||_558["back"]||_558["changeUrl"]||_558["watchForURL"])&&(!djConfig.preventBackButtonFix)){
dj_deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request is deprecated. Use dojo.undo.browser.addToHistory() instead.");
dojo.undo.browser.addToHistory(_558);
return true;
}
}
var url=_558.url;
var _55a="";
if(_558["formNode"]){
var ta=_558.formNode.getAttribute("action");
if((ta)&&(!_558["url"])){
url=ta;
}
var tp=_558.formNode.getAttribute("method");
if((tp)&&(!_558["method"])){
_558.method=tp;
}
_55a+=dojo.io.encodeForm(_558.formNode,_558.encoding,_558["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_558["file"]){
_558.method="post";
}
if(!_558["method"]){
_558.method="get";
}
if(_558.method.toLowerCase()=="get"){
_558.multipart=false;
}else{
if(_558["file"]){
_558.multipart=true;
}else{
if(!_558["multipart"]){
_558.multipart=false;
}
}
}
if(_558["backButton"]||_558["back"]||_558["changeUrl"]){
dojo.undo.browser.addToHistory(_558);
}
var _55d=_558["content"]||{};
if(_558.sendTransport){
_55d["dojo.transport"]="xmlhttp";
}
do{
if(_558.postContent){
_55a=_558.postContent;
break;
}
if(_55d){
_55a+=dojo.io.argsFromMap(_55d,_558.encoding);
}
if(_558.method.toLowerCase()=="get"||!_558.multipart){
break;
}
var t=[];
if(_55a.length){
var q=_55a.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(_558.file){
if(dojo.lang.isArray(_558.file)){
for(var i=0;i<_558.file.length;++i){
var o=_558.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=_558.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+"--","");
_55a=t.join("\r\n");
}
}while(false);
var _563=_558["sync"]?false:true;
var _564=_558["preventCache"]||(this.preventCache==true&&_558["preventCache"]!=false);
var _565=_558["useCache"]==true||(this.useCache==true&&_558["useCache"]!=false);
if(!_564&&_565){
var _566=getFromCache(url,_55a,_558.method);
if(_566){
doLoad(_558,_566,url,_55a,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_558);
var _568=false;
if(_558["attach"]){
http["attach"]=_558["attach"];
}
if(_563){
this.inFlight.push({"req":_558,"http":http,"url":url,"query":_55a,"useCache":_565});
this.startWatchingInFlight();
}
if(_558.method.toLowerCase()=="post"){
http.open("POST",url,_563);
setHeaders(http,_558);
http.setRequestHeader("Content-Type",_558.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_558.contentType||"application/x-www-form-urlencoded"));
http.send(_55a);
}else{
var _569=url;
if(_55a!=""){
_569+=(_569.indexOf("?")>-1?"&":"?")+_55a;
}
if(_564){
_569+=(dojo.string.endsWithAny(_569,"?","&")?"":(_569.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_558.method.toUpperCase(),_569,_563);
setHeaders(http,_558);
http.send(null);
}
if(!_563){
doLoad(_558,http,url,_55a,_565);
}
_558.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_56b,days,path,_56e,_56f){
var _570=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_570=d.toGMTString();
}
_56b=escape(_56b);
document.cookie=name+"="+_56b+";"+(_570!=-1?" expires="+_570+";":"")+(path?"path="+path:"")+(_56e?"; domain="+_56e:"")+(_56f?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.indexOf(name+"=");
if(idx==-1){
return null;
}
value=document.cookie.substring(idx+name.length+1);
var end=value.indexOf(";");
if(end==-1){
end=value.length;
}
value=value.substring(0,end);
value=unescape(value);
return value;
};
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,_57a,_57b,_57c){
if(arguments.length==5){
_57c=_57a;
_57a=null;
_57b=null;
}
var _57d=[],cookie,value="";
if(!_57c){
cookie=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!cookie){
cookie={};
}
for(var prop in obj){
if(prop==null){
delete cookie[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
cookie[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in cookie){
_57d.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_57d.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_57a,_57b);
};
dojo.io.cookie.getObjectCookie=function(name){
var _580=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_580={};
var _581=cookie.split("&");
for(var i=0;i<_581.length;i++){
var pair=_581[i].split("=");
var _584=pair[1];
if(isNaN(_584)){
_584=unescape(pair[1]);
}
_580[unescape(pair[0])]=_584;
}
}
return _580;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _585=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_585=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.hostenv.conditionalLoadModule({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.hostenv.moduleLoaded("dojo.io.*");

