/*
	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;
}
return _76.responseText;
};
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.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
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.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.hitch=function(_152,_153){
if(dojo.lang.isString(_153)){
var fcn=_152[_153];
}else{
var fcn=_153;
}
return function(){
return fcn.apply(_152,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_155,_156){
var nso=(_156||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_155){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_155;
return ret;
};
dojo.lang.forward=function(_15a){
return function(){
return this[_15a].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _15d=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_15d.push(arguments[x]);
}
var _15f=func.length-_15d.length;
function gather(_160,_161,_162){
var _163=_162;
var _164=_161.slice(0);
for(var x=0;x<_160.length;x++){
_164.push(_160[x]);
}
_162=_162-_160.length;
if(_162<=0){
var res=func.apply(ns,_164);
_162=_163;
return res;
}else{
return function(){
return gather(arguments,_164,_162);
};
}
}
return gather([],_15d,_15f);
};
dojo.lang.curryArguments=function(ns,func,args,_16a){
var _16b=[];
var x=_16a||0;
for(x=_16a;x<args.length;x++){
_16b.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_16b));
};
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,_171,_172){
if(!farr.length){
if(typeof _172=="function"){
_172();
}
return;
}
if((typeof _171=="undefined")&&(typeof cb=="number")){
_171=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_171){
_171=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_171,_172);
},_171);
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.setTimeout=function(func,_174){
var _175=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_175=func;
func=_174;
_174=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_175[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_175,args);
},_174);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj){
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.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 _181=dojo.lang.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceFunc=_181;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _181=dojo.lang.nameAnonFunc(args[0],ao.srcObj);
ao.srcFunc=_181;
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 _181=dojo.lang.nameAnonFunc(args[1],dj_global);
ao.srcFunc=_181;
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(_189,_18a){
var fn=(_18a)?"disconnect":"connect";
if(typeof _189["srcFunc"]=="function"){
_189.srcObj=_189["srcObj"]||dj_global;
var _18c=dojo.lang.nameAnonFunc(_189.srcFunc,_189.srcObj);
_189.srcFunc=_18c;
}
if(typeof _189["adviceFunc"]=="function"){
_189.adviceObj=_189["adviceObj"]||dj_global;
var _18c=dojo.lang.nameAnonFunc(_189.adviceFunc,_189.adviceObj);
_189.adviceFunc=_18c;
}
return dojo.event[fn]((_189["type"]||_189["adviceType"]||"after"),_189["srcObj"]||dj_global,_189["srcFunc"],_189["adviceObj"]||_189["targetObj"]||dj_global,_189["adviceFunc"]||_189["targetFunc"],_189["aroundObj"],_189["aroundFunc"],_189["once"],_189["delay"],_189["rate"],_189["adviceMsg"]||false);
};
this.kwConnect=function(_18d){
return this._kwConnectImpl(_18d,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(_190){
return this._kwConnectImpl(_190,true);
};
};
dojo.event.MethodInvocation=function(_191,obj,args){
this.jp_=_191;
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,_199){
this.object=obj||dj_global;
this.methodname=_199;
this.methodfunc=this.object[_199];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_19b){
if(!obj){
obj=dj_global;
}
if(!obj[_19b]){
obj[_19b]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_19b]))&&(!dojo.lang.isAlien(obj[_19b]))){
return null;
}
}
var _19c=_19b+"$joinpoint";
var _19d=_19b+"$joinpoint$method";
var _19e=obj[_19c];
if(!_19e){
var _19f=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_19f=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_19c,_19d,_19b]);
}
}
obj[_19d]=obj[_19b];
_19e=obj[_19c]=new dojo.event.MethodJoinPoint(obj,_19d);
obj[_19b]=function(){
var args=[];
if((_19f)&&(!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)&&(_19f)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x]));
}else{
args.push(arguments[x]);
}
}
}
return _19e.run.apply(_19e,args);
};
}
return _19e;
};
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 _1a5=[];
for(var x=0;x<args.length;x++){
_1a5[x]=args[x];
}
var _1a7=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1a9=marr[0]||dj_global;
var _1aa=marr[1];
if(!_1a9[_1aa]){
dojo.raise("function \""+_1aa+"\" does not exist on \""+_1a9+"\"");
}
var _1ab=marr[2]||dj_global;
var _1ac=marr[3];
var msg=marr[6];
var _1ae;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1a9[_1aa].apply(_1a9,to.args);
}};
to.args=_1a5;
var _1b0=parseInt(marr[4]);
var _1b1=((!isNaN(_1b0))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1b4=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;
_1a7(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1ac){
_1ab[_1ac].call(_1ab,to);
}else{
if((_1b1)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1a9[_1aa].call(_1a9,to);
}else{
_1a9[_1aa].apply(_1a9,args);
}
},_1b0);
}else{
if(msg){
_1a9[_1aa].call(_1a9,to);
}else{
_1a9[_1aa].apply(_1a9,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_1a7,true);
}
var _1b7;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1b7=mi.proceed();
}else{
if(this.methodfunc){
_1b7=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_1a7,true);
}
return (this.methodfunc)?_1b7: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(_1bc,_1bd,_1be,_1bf,_1c0,_1c1,once,_1c3,rate,_1c5){
var arr=this.getArr(_1c0);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1bc,_1bd,_1be,_1bf,_1c3,rate,_1c5];
if(once){
if(this.hasAdvice(_1bc,_1bd,_1c0,arr)>=0){
return;
}
}
if(_1c1=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_1c8,_1c9,_1ca,arr){
if(!arr){
arr=this.getArr(_1ca);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_1c8)&&(arr[x][1]==_1c9)){
ind=x;
}
}
return ind;
},removeAdvice:function(_1ce,_1cf,_1d0,once){
var arr=this.getArr(_1d0);
var ind=this.hasAdvice(_1ce,_1cf,_1d0,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_1ce,_1cf,_1d0,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_1d4){
if(!this.topics[_1d4]){
this.topics[_1d4]=new this.TopicImpl(_1d4);
}
return this.topics[_1d4];
};
this.registerPublisher=function(_1d5,obj,_1d7){
var _1d5=this.getTopic(_1d5);
_1d5.registerPublisher(obj,_1d7);
};
this.subscribe=function(_1d8,obj,_1da){
var _1d8=this.getTopic(_1d8);
_1d8.subscribe(obj,_1da);
};
this.unsubscribe=function(_1db,obj,_1dd){
var _1db=this.getTopic(_1db);
_1db.unsubscribe(obj,_1dd);
};
this.publish=function(_1de,_1df){
var _1de=this.getTopic(_1de);
var args=[];
if(arguments.length==2&&(dojo.lang.isArray(_1df)||_1df.callee)){
args=_1df;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_1de.sendMessage.apply(_1de,args);
};
};
dojo.event.topic.TopicImpl=function(_1e2){
this.topicName=_1e2;
var self=this;
self.subscribe=function(_1e4,_1e5){
var tf=_1e5||_1e4;
var to=(!_1e5)?dj_global:_1e4;
dojo.event.kwConnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.unsubscribe=function(_1e8,_1e9){
var tf=(!_1e9)?_1e8:_1e9;
var to=(!_1e9)?null:_1e8;
dojo.event.kwDisconnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.registerPublisher=function(_1ec,_1ed){
dojo.event.connect(_1ec,_1ed,self,"sendMessage");
};
self.sendMessage=function(_1ee){
};
};
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(_1f1){
var na;
var tna;
if(_1f1){
tna=_1f1.getElementsByTagName("*");
na=[_1f1];
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 _1f5={};
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 _1f9=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,_1fd){
this.addClobberNode(node);
for(var x=0;x<_1fd.length;x++){
node.__clobberAttrs__.push(_1fd[x]);
}
};
this.removeListener=function(node,_200,fp,_202){
if(!_202){
var _202=false;
}
_200=_200.toLowerCase();
if(_200.substr(0,2)=="on"){
_200=_200.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_200,fp,_202);
}
};
this.addListener=function(node,_204,fp,_206,_207){
if(!node){
return;
}
if(!_206){
var _206=false;
}
_204=_204.toLowerCase();
if(_204.substr(0,2)!="on"){
_204="on"+_204;
}
if(!_207){
var _208=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt));
if(_206){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_208=fp;
}
if(node.addEventListener){
node.addEventListener(_204.substr(2),_208,_206);
return _208;
}else{
if(typeof node[_204]=="function"){
var _20b=node[_204];
node[_204]=function(e){
_20b(e);
return _208(e);
};
}else{
node[_204]=_208;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_204]);
}
return _208;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_20e,_20f){
if(typeof _20e!="function"){
dojo.raise("listener not a function: "+_20e);
}
dojo.event.browser.currentEvent.currentTarget=_20f;
return _20e.call(_20f,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 _214={};
var _215=[];
this.getUniqueId=function(_216){
return _216+"_"+(_214[_216]!=undefined?++_214[_216]:_214[_216]=0);
};
this.add=function(_217){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_217);
if(_217.widgetId==""){
if(_217["id"]){
_217.widgetId=_217["id"];
}else{
if(_217.extraArgs["id"]){
_217.widgetId=_217.extraArgs["id"];
}else{
_217.widgetId=this.getUniqueId(_217.widgetType);
}
}
}
if(this.widgetIds[_217.widgetId]){
dojo.debug("widget ID collision on ID: "+_217.widgetId);
}
this.widgetIds[_217.widgetId]=_217;
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(_219){
var tw=this.widgets[_219].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_219,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(_223){
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_223(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 _229={};
var _22a=["dojo.widget"];
for(var i=0;i<_22a.length;i++){
_22a[_22a[i]]=true;
}
this.registerWidgetPackage=function(_22c){
if(!_22a[_22c]){
_22a[_22c]=true;
_22a.push(_22c);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_22a,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_22e,_22f,_230){
var impl=this.getImplementationName(_22e);
if(impl){
var ret=new impl(_22f);
return ret;
}
};
this.getImplementationName=function(_233){
var _234=_233.toLowerCase();
var impl=_229[_234];
if(impl){
return impl;
}
if(!_215.length){
for(var _236 in dojo.render){
if(dojo.render[_236]["capable"]===true){
var _237=dojo.render[_236].prefixes;
for(var i=0;i<_237.length;i++){
_215.push(_237[i].toLowerCase());
}
}
}
_215.push("");
}
for(var i=0;i<_22a.length;i++){
var _239=dojo.evalObjPath(_22a[i]);
if(!_239){
continue;
}
for(var j=0;j<_215.length;j++){
if(!_239[_215[j]]){
continue;
}
for(var _23b in _239[_215[j]]){
if(_23b.toLowerCase()!=_234){
continue;
}
_229[_234]=_239[_215[j]][_23b];
return _229[_234];
}
}
for(var j=0;j<_215.length;j++){
for(var _23b in _239){
if(_23b.toLowerCase()!=(_215[j]+_234)){
continue;
}
_229[_234]=_239[_23b];
return _229[_234];
}
}
}
throw new Error("Could not locate \""+_233+"\" class");
};
this.resizing=false;
this.onResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _23d=this.topWidgets[id];
if(_23d.onResized){
_23d.onResized();
}
}
}
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 _23f=dojo.widget.manager.getAllWidgets.apply(dojo.widget.manager,arguments);
if(arguments.length>0){
return _23f[n];
}
return _23f;
};
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 _241=this.children[i];
if(_241.onResized){
_241.onResized();
}
}
},create:function(args,_243,_244){
this.satisfyPropertySets(args,_243,_244);
this.mixInProperties(args,_243,_244);
this.postMixInProperties(args,_243,_244);
dojo.widget.manager.add(this);
this.buildRendering(args,_243,_244);
this.initialize(args,_243,_244);
this.postInitialize(args,_243,_244);
this.postCreate(args,_243,_244);
return this;
},destroy:function(_245){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_245);
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,_248){
var ret=[];
var _24a=dojo.lang.isFunction(type);
if(!_24a){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_24a){
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(_248){
ret=ret.concat(this.children[x].getChildrenOfType(type,_248));
}
}
return ret;
},getDescendants:function(){
var _24c=[];
var _24d=[this];
var elem;
while(elem=_24d.pop()){
_24c.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_24d.push(elem);
});
}
return _24c;
},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 _254;
var _255=dojo.widget.lcArgsCache[this.widgetType];
if(_255==null){
_255={};
for(var y in this){
_255[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_255;
}
var _257={};
for(var x in args){
if(!this[x]){
var y=_255[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_257[x]){
continue;
}
_257[x]=true;
if((typeof this[x])!=(typeof _254)){
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 _259=args[x].split(";");
for(var y=0;y<_259.length;y++){
var si=_259[y].indexOf(":");
if((si!=-1)&&(_259[y].length>si)){
this[x][_259[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_259[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(_261){
},addChild:function(_262){
dj_unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_263){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_263){
this.children.splice(x,1);
break;
}
}
return _263;
},resize:function(_265,_266){
this.setWidth(_265);
this.setHeight(_266);
},setWidth:function(_267){
if((typeof _267=="string")&&(_267.substr(-1)=="%")){
this.setPercentageWidth(_267);
}else{
this.setNativeWidth(_267);
}
},setHeight:function(_268){
if((typeof _268=="string")&&(_268.substr(-1)=="%")){
this.setPercentageHeight(_268);
}else{
this.setNativeHeight(_268);
}
},setPercentageHeight:function(_269){
return false;
},setNativeHeight:function(_26a){
return false;
},setPercentageWidth:function(_26b){
return false;
},setNativeWidth:function(_26c){
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 _270=type.toLowerCase();
this[_270]=function(_271,_272,_273,_274,_275){
return dojo.widget.buildWidgetFromParseTree(_270,_271,_272,_273,_274,_275);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_276,_277,_278){
var _279=_277.parseProperties(_276["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_27a,_27b,_27c){
var _27d=_27b.parseProperties(_27a["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_280,_281,_282,_283){
var _284=type.split(":");
_284=(_284.length==2)?_284[1]:type;
var _285=_283||_280.parseProperties(frag["dojo:"+_284]);
var _286=dojo.widget.manager.getImplementation(_284);
if(!_286){
throw new Error("cannot find \""+_284+"\" widget");
}else{
if(!_286.create){
throw new Error("\""+_284+"\" widget object does not appear to implement *Widget");
}
}
_285["dojoinsertionindex"]=_282;
var ret=_286.create(_285,frag,_281);
return ret;
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_288){
this.propertySetsList=[];
this.fragment=_288;
this.createComponents=function(_289,_28a){
var _28b=dojo.widget.tags;
var _28c=[];
for(var item in _289){
var _28e=false;
try{
if(_289[item]&&(_289[item]["tagName"])&&(_289[item]!=_289["nodeRef"])){
var tn=new String(_289[item]["tagName"]);
var tna=tn.split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_28b[ltn]){
_28e=true;
_289[item].tagName=ltn;
var ret=_28b[ltn](_289[item],this,_28a,_289[item]["index"]);
_28c.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((!_28e)&&(typeof _289[item]=="object")&&(_289[item]!=_289.nodeRef)&&(_289[item]!=_289["tagName"])){
_28c.push(this.createComponents(_289[item],_28a));
}
}
return _28c;
};
this.parsePropertySets=function(_294){
return [];
var _295=[];
for(var item in _294){
if((_294[item]["tagName"]=="dojo:propertyset")){
_295.push(_294[item]);
}
}
this.propertySetsList.push(_295);
return _295;
};
this.parseProperties=function(_297){
var _298={};
for(var item in _297){
if((_297[item]==_297["tagName"])||(_297[item]==_297.nodeRef)){
}else{
if((_297[item]["tagName"])&&(dojo.widget.tags[_297[item].tagName.toLowerCase()])){
}else{
if((_297[item][0])&&(_297[item][0].value!="")&&(_297[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _29a=this;
this.getDataProvider(_29a,_297[item][0].value);
_298.dataProvider=this.dataProvider;
}
_298[item]=_297[item][0].value;
var _29b=this.parseProperties(_297[item]);
for(var _29c in _29b){
_298[_29c]=_29b[_29c];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _298;
};
this.getDataProvider=function(_29d,_29e){
dojo.io.bind({url:_29e,load:function(type,_2a0){
if(type=="load"){
_29d.dataProvider=_2a0;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_2a1){
for(var x=0;x<this.propertySetsList.length;x++){
if(_2a1==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_2a3){
var _2a4=[];
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)){
_2a4.push(cpl);
}
}
return _2a4;
};
this.getPropertySets=function(_2a8){
var ppl="dojo:propertyproviderlist";
var _2aa=[];
var _2ab=_2a8["tagName"];
if(_2a8[ppl]){
var _2ac=_2a8[ppl].value.split(" ");
for(propertySetId in _2ac){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _2ad=this.getPropertySetById(propertySetId);
if(_2ad!=""){
_2aa.push(_2ad);
}
}else{
}
}
}
return (this.getPropertySetsByType(_2ab)).concat(_2aa);
};
this.createComponentFromScript=function(_2ae,_2af,_2b0){
var ltn="dojo:"+_2af.toLowerCase();
if(dojo.widget.tags[ltn]){
_2b0.fastMixIn=true;
return [dojo.widget.tags[ltn](_2b0,this,null,null,_2b0)];
}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,_2b4,_2b5,_2b6){
function fromScript(_2b7,name,_2b9){
var _2ba=name.toLowerCase();
var _2bb="dojo:"+_2ba;
_2b9[_2bb]={dojotype:[{value:_2ba}],nodeRef:_2b7,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_2b7,name,_2b9,true);
}
if(typeof name!="string"&&typeof _2b4=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])");
return fromScript(name,_2b4,_2b5);
}
_2b4=_2b4||{};
var _2bc=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_2b5){
_2bc=true;
_2b5=tn;
if(h){
document.body.appendChild(_2b5);
}
}else{
if(_2b6){
dojo.dom.insertAtPosition(tn,_2b5,_2b6);
}else{
tn=_2b5;
}
}
var _2bf=fromScript(tn,name,_2b4);
if(!_2bf[0]||typeof _2bf[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_2bc){
if(_2bf[0].domNode.parentNode){
_2bf[0].domNode.parentNode.removeChild(_2bf[0].domNode);
}
}
return _2bf[0];
};
dojo.widget.fromScript=function(name,_2c1,_2c2,_2c3){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead");
return dojo.widget.createWidget(name,_2c1,_2c2,_2c3);
};
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 _2c9=new dojo.uri.Uri(arguments[i].toString());
var _2ca=new dojo.uri.Uri(uri.toString());
if(_2c9.path==""&&_2c9.scheme==null&&_2c9.authority==null&&_2c9.query==null){
if(_2c9.fragment!=null){
_2ca.fragment=_2c9.fragment;
}
_2c9=_2ca;
}else{
if(_2c9.scheme==null){
_2c9.scheme=_2ca.scheme;
if(_2c9.authority==null){
_2c9.authority=_2ca.authority;
if(_2c9.path.charAt(0)!="/"){
var path=_2ca.path.substring(0,_2ca.path.lastIndexOf("/")+1)+_2c9.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;
}
}
}
}
_2c9.path=segs.join("/");
}
}
}
}
uri="";
if(_2c9.scheme!=null){
uri+=_2c9.scheme+":";
}
if(_2c9.authority!=null){
uri+="//"+_2c9.authority;
}
uri+=_2c9.path;
if(_2c9.query!=null){
uri+="?"+_2c9.query;
}
if(_2c9.fragment!=null){
uri+="#"+_2c9.fragment;
}
}
this.uri=uri.toString();
var _2ce="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2ce));
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){
_2ce="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2ce));
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,_2d1,_2d2,_2d3,_2d4){
var _2d5=_2d1||obj.templatePath;
var _2d6=_2d2||obj.templateCssPath;
if(_2d5&&!(_2d5 instanceof dojo.uri.Uri)){
_2d5=dojo.uri.dojoUri(_2d5);
dojo.deprecated("templatePath should be of type dojo.uri.Uri");
}
if(_2d6&&!(_2d6 instanceof dojo.uri.Uri)){
_2d6=dojo.uri.dojoUri(_2d6);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri");
}
var _2d7=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _2d8="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_2d7[_2d8]);
obj.widgetType=_2d8;
}
var wt=obj.widgetType;
if((_2d6)&&(!dojo.widget._cssFiles[_2d6])){
dojo.style.insertCssFile(_2d6);
obj.templateCssPath=null;
dojo.widget._cssFiles[_2d6]=true;
}
var ts=_2d7[wt];
if(!ts){
_2d7[wt]={"string":null,"node":null};
if(_2d4){
ts={};
}else{
ts=_2d7[wt];
}
}
if(!obj.templateString){
obj.templateString=_2d3||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_2d5)){
var _2db=dojo.hostenv.getText(_2d5);
if(_2db){
var _2dc=_2db.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2dc){
_2db=_2dc[1];
}
}else{
_2db="";
}
obj.templateString=_2db;
if(!_2d4){
_2d7[wt]["string"]=_2db;
}
}
if((!ts["string"])&&(!_2d4)){
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(_2dd,_2de,_2df){
var _2e0=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_2dd){
_2dd=_2de.domNode;
}
if(_2dd.nodeType!=_2e0){
return;
}
var _2e2=_2dd.getElementsByTagName("*");
var _2e3=_2de;
for(var x=-1;x<_2e2.length;x++){
var _2e5=(x==-1)?_2dd:_2e2[x];
var _2e6=[];
for(var y=0;y<this.attachProperties.length;y++){
var _2e8=_2e5.getAttribute(this.attachProperties[y]);
if(_2e8){
_2e6=_2e8.split(";");
for(var z=0;z<this.attachProperties.length;z++){
if((_2de[_2e6[z]])&&(dojo.lang.isArray(_2de[_2e6[z]]))){
_2de[_2e6[z]].push(_2e5);
}else{
_2de[_2e6[z]]=_2e5;
}
}
break;
}
}
var _2ea=_2e5.getAttribute(this.templateProperty);
if(_2ea){
_2de[_2ea]=_2e5;
}
var _2eb=_2e5.getAttribute(this.eventAttachProperty);
if(_2eb){
var evts=_2eb.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _2ed=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _2ef=tevt.split(":");
tevt=trim(_2ef[0]);
_2ed=trim(_2ef[1]);
}
if(!_2ed){
_2ed=tevt;
}
var tf=function(){
var ntf=new String(_2ed);
return function(evt){
if(_2e3[ntf]){
_2e3[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2e5,tevt,tf,false,true);
}
}
for(var y=0;y<_2df.length;y++){
var _2f3=_2e5.getAttribute(_2df[y]);
if((_2f3)&&(_2f3.length)){
var _2ed=null;
var _2f4=_2df[y].substr(4);
_2ed=trim(_2f3);
var tf=function(){
var ntf=new String(_2ed);
return function(evt){
if(_2e3[ntf]){
_2e3[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2e5,_2f4,tf,false,true);
}
}
var _2f7=_2e5.getAttribute(this.onBuildProperty);
if(_2f7){
eval("var node = baseNode; var widget = targetObj; "+_2f7);
}
_2e5.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,_300,_301,_302,_303){
this.buildFromTemplate(obj,_300,_301,_302);
var node=dojo.dom.createNodesFromText(obj.templateString,true)[0];
this.attachTemplateNodes(node,_303||obj,dojo.widget.getDojoEventsFromStr(_302));
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(_305,_306,pos,ref,_309){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_305,_306,pos,ref,_309);
this.registerChild(_305,_309);
}
return _305;
},addWidgetAsDirectChild:function(_30a,_30b,pos,ref,_30e){
if((!this.containerNode)&&(!_30b)){
this.containerNode=this.domNode;
}
var cn=(_30b)?_30b:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
ref=cn.lastChild;
}
if(!_30e){
_30e=0;
}
_30a.domNode.setAttribute("dojoinsertionindex",_30e);
if(!ref){
cn.appendChild(_30a.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_30a.domNode,ref.parentNode,_30e);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_30a.domNode);
}else{
dojo.dom.insertAtPosition(_30a.domNode,cn,pos);
}
}
}
},registerChild:function(_310,_311){
_310.dojoInsertionIndex=_311;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_311){
idx=i;
}
}
this.children.splice(idx+1,0,_310);
_310.parent=this;
_310.addedTo(this);
delete dojo.widget.manager.topWidgets[_310.widgetId];
},removeChild:function(_314){
dojo.dom.removeNode(_314.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_314);
},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,_318){
var _319=this.getFragNodeRef(frag);
if(_318&&(_318.snarfChildDomOutput||!_319)){
_318.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_319);
}else{
if(_319){
if(this.domNode&&(this.domNode!==_319)){
var _31a=_319.parentNode.replaceChild(this.domNode,_319);
}
}
}
if(_318){
_318.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _31b=dojo.widget.getParser();
_31b.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 _321=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_321=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_321);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_321)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _323=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_323=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_323){
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<_323.length;i++){
var key=_323[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _32a;
if((kval)||(dojo.lang.isString(kval))){
_32a=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_323[i],_32a);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_323)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_323){
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(_32c,_32d){
if(!_32d){
_32d=this;
}
return dojo.widget.attachTemplateNodes(_32c,_32d,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.math");
dojo.math.degToRad=function(x){
return (x*Math.PI)/180;
};
dojo.math.radToDeg=function(x){
return (x*180)/Math.PI;
};
dojo.math.factorial=function(n){
if(n<1){
return 0;
}
var _331=1;
for(var i=1;i<=n;i++){
_331*=i;
}
return _331;
};
dojo.math.permutations=function(n,k){
if(n==0||k==0){
return 1;
}
return (dojo.math.factorial(n)/dojo.math.factorial(n-k));
};
dojo.math.combinations=function(n,r){
if(n==0||r==0){
return 1;
}
return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r)));
};
dojo.math.bernstein=function(t,n,i){
return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i));
};
dojo.math.gaussianRandom=function(){
var k=2;
do{
var i=2*Math.random()-1;
var j=2*Math.random()-1;
k=i*i+j*j;
}while(k>=1);
k=Math.sqrt((-2*Math.log(k))/k);
return i*k;
};
dojo.math.mean=function(){
var _33d=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_33d.length;i++){
mean+=_33d[i];
}
return mean/_33d.length;
};
dojo.math.round=function(_340,_341){
if(!_341){
var _342=1;
}else{
var _342=Math.pow(10,_341);
}
return Math.round(_340*_342)/_342;
};
dojo.math.sd=function(){
var _343=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_343));
};
dojo.math.variance=function(){
var _344=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,squares=0;
for(var i=0;i<_344.length;i++){
mean+=_344[i];
squares+=Math.pow(_344[i],2);
}
return (squares/_344.length)-Math.pow(mean/_344.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _34a=[];
if(step>0){
for(var i=a;i<b;i+=step){
_34a.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_34a.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _34a;
};
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang.array");
dojo.require("dojo.math");
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(_352){
if(_352){
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(_353,_354){
return dojo.graphics.color.blend(this.toRgb(),new Color(_353).toRgb(),_354);
}});
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,_357){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_357);
}
if(!_357){
_357=0;
}else{
if(_357>1){
_357=1;
}else{
if(_357<-1){
_357=-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*_357));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_35d){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_35d));
};
dojo.graphics.color.extractRGB=function(_35e){
var hex="0123456789abcdef";
_35e=_35e.toLowerCase();
if(_35e.indexOf("rgb")==0){
var _360=_35e.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_360.splice(1,3);
return ret;
}else{
var _362=dojo.graphics.color.hex2rgb(_35e);
if(_362){
return _362;
}else{
return dojo.graphics.color.named[_35e]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _364="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_364+"]","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]=_364.indexOf(rgb[i].charAt(0))*16+_364.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 _375=v-min;
s=(v==0)?0:_375/v;
if(s==0){
h=0;
}else{
if(r==v){
h=60*(g-b)/_375;
}else{
if(g==v){
h=120+60*(b-r)/_375;
}else{
if(b==v){
h=240+60*(r-g)/_375;
}
}
}
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 _37c=h/60;
var i=Math.floor(_37c);
var f=_37c-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 _38a=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_38a/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_38a>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_38a;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_38a);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_38a);
}
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 _396=dojo.style.getStyle(node,"-moz-box-sizing");
if(!_396){
_396=dojo.style.getStyle(node,"box-sizing");
}
return (_396?_396:dojo.style.boxSizing.contentBox);
}
};
dojo.style.isBorderBox=function(node){
return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox);
};
dojo.style.getUnitValue=function(node,_399,_39a){
node=dojo.byId(node);
var _39b={value:0,units:"px"};
var s=dojo.style.getComputedStyle(node,_399);
if(s==""||(s=="auto"&&_39a)){
return _39b;
}
if(dojo.lang.isUndefined(s)){
_39b.value=NaN;
}else{
var _39d=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_39d){
_39b.value=NaN;
}else{
_39b.value=Number(_39d[1]);
_39b.units=_39d[2].toLowerCase();
}
}
return _39b;
};
dojo.style.getPixelValue=function(node,_39f,_3a0){
node=dojo.byId(node);
var _3a1=dojo.style.getUnitValue(node,_39f,_3a0);
if(isNaN(_3a1.value)){
return 0;
}
if((_3a1.value)&&(_3a1.units!="px")){
return NaN;
}
return _3a1.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 _3a4=dojo.style.isPositionAbsolute(node);
var left=dojo.style.getPixelValue(node,"margin-left",_3a4);
var _3a6=dojo.style.getPixelValue(node,"margin-right",_3a4);
return left+_3a6;
};
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 _3a9=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width"));
return left+_3a9;
};
dojo.style.getPaddingWidth=function(node){
node=dojo.byId(node);
var left=dojo.style.getPixelValue(node,"padding-left",true);
var _3ac=dojo.style.getPixelValue(node,"padding-right",true);
return left+_3ac;
};
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,_3b1){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3b1-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
_3b1-=dojo.style.getMarginWidth(node);
if(!isNaN(_3b1)&&_3b1>0){
node.style.width=_3b1+"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 _3b3=dojo.style.isPositionAbsolute(node);
var top=dojo.style.getPixelValue(node,"margin-top",_3b3);
var _3b5=dojo.style.getPixelValue(node,"margin-bottom",_3b3);
return top+_3b5;
};
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 _3b8=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width"));
return top+_3b8;
};
dojo.style.getPaddingHeight=function(node){
node=dojo.byId(node);
var top=dojo.style.getPixelValue(node,"padding-top",true);
var _3bb=dojo.style.getPixelValue(node,"padding-bottom",true);
return top+_3bb;
};
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,_3c0){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3c0-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
_3c0-=dojo.style.getMarginHeight(node);
if(!isNaN(_3c0)&&_3c0>0){
node.style.height=_3c0+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentWidth=function(node,_3c2){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3c2+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
if(!isNaN(_3c2)&&_3c2>0){
node.style.width=_3c2+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentHeight=function(node,_3c4){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3c4+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
if(!isNaN(_3c4)&&_3c4>0){
node.style.height=_3c4+"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,_3c7){
node=dojo.byId(node);
var _3c8=(type=="top")?"offsetTop":"offsetLeft";
var _3c9=(type=="top")?"scrollTop":"scrollLeft";
var _3ca=(type=="top")?"y":"x";
var _3cb=0;
if(node["offsetParent"]){
if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==document.body){
var _3cc=document.body;
}else{
var _3cc=document.body.parentNode;
}
if(_3c7&&node.parentNode!=document.body){
_3cb-=dojo.style.sumAncestorProperties(node,_3c9);
}
do{
var n=node[_3c8];
_3cb+=isNaN(n)?0:n;
node=node.offsetParent;
}while(node!=_3cc&&node!=null);
}else{
if(node[_3ca]){
var n=node[_3ca];
_3cb+=isNaN(n)?0:n;
}
}
return _3cb;
};
dojo.style.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _3d0=0;
while(node){
var val=node[prop];
if(val){
_3d0+=val-0;
}
node=node.parentNode;
}
return _3d0;
};
dojo.style.totalOffsetLeft=function(node,_3d3){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"left",_3d3);
};
dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;
dojo.style.totalOffsetTop=function(node,_3d5){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"top",_3d5);
};
dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;
dojo.style.getAbsolutePosition=function(node,_3d7){
node=dojo.byId(node);
var _3d8=[dojo.style.getAbsoluteX(node,_3d7),dojo.style.getAbsoluteY(node,_3d7)];
_3d8.x=_3d8[0];
_3d8.y=_3d8[1];
return _3d8;
};
dojo.style.styleSheet=null;
dojo.style.insertCssRule=function(_3d9,_3da,_3db){
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){
_3db=dojo.style.styleSheet.cssRules.length;
}else{
if(dojo.style.styleSheet.rules){
_3db=dojo.style.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.style.styleSheet.insertRule){
var rule=_3d9+" { "+_3da+" }";
return dojo.style.styleSheet.insertRule(rule,_3db);
}else{
if(dojo.style.styleSheet.addRule){
return dojo.style.styleSheet.addRule(_3d9,_3da,_3db);
}else{
return null;
}
}
};
dojo.style.removeCssRule=function(_3dd){
if(!dojo.style.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3dd){
_3dd=dojo.style.styleSheet.rules.length;
dojo.style.styleSheet.removeRule(_3dd);
}
}else{
if(document.styleSheets[0]){
if(!_3dd){
_3dd=dojo.style.styleSheet.cssRules.length;
}
dojo.style.styleSheet.deleteRule(_3dd);
}
}
return true;
};
dojo.style.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3df;
do{
_3df=dojo.style.getStyle(node,"background-color");
if(_3df.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3df="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_3df,["transparent",""]));
if(_3df=="transparent"){
_3df=[255,255,255,0];
}else{
_3df=dojo.graphics.color.extractRGB(_3df);
}
return _3df;
};
dojo.style.getComputedStyle=function(node,_3e1,_3e2){
node=dojo.byId(node);
var _3e3=_3e2;
if(node.style.getPropertyValue){
_3e3=node.style.getPropertyValue(_3e1);
}
if(!_3e3){
if(document.defaultView){
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
_3e3=cs.getPropertyValue(_3e1);
}
}else{
if(node.currentStyle){
_3e3=node.currentStyle[dojo.style.toCamelCase(_3e1)];
}
}
}
return _3e3;
};
dojo.style.getStyle=function(node,_3e6){
node=dojo.byId(node);
var _3e7=dojo.style.toCamelCase(_3e6);
var _3e8=node.style[_3e7];
return (_3e8?_3e8:dojo.style.getComputedStyle(node,_3e6,_3e8));
};
dojo.style.toCamelCase=function(_3e9){
var arr=_3e9.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(_3ec){
return _3ec.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.style.setOpacity=function setOpacity(node,_3ee,_3ef){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_3ef){
if(_3ee>=1){
if(h.ie){
dojo.style.clearOpacity(node);
return;
}else{
_3ee=0.999999;
}
}else{
if(_3ee<0){
_3ee=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="+_3ee*100+")";
}
}
node.style.filter="Alpha(Opacity="+_3ee*100+")";
}else{
if(h.moz){
node.style.opacity=_3ee;
node.style.MozOpacity=_3ee;
}else{
if(h.safari){
node.style.opacity=_3ee;
node.style.KhtmlOpacity=_3ee;
}else{
node.style.opacity=_3ee;
}
}
}
};
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(_3fb,_3fc){
if(dojo.lang.isArray(_3fb)){
while(_3fb.length<4){
_3fb.push(0);
}
while(_3fb.length>4){
_3fb.pop();
}
var ret=_3fb;
}else{
var node=dojo.byId(_3fb);
var ret=[dojo.style.getAbsoluteX(node,_3fc),dojo.style.getAbsoluteY(node,_3fc),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,_405,_406){
var out="";
for(var i=0;i<_405;i++){
out+=str;
if(_406&&i<_405-1){
out+=_406;
}
}
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,_415,_416){
for(var name in _415){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_415[name]);
}
if(_416){
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 _41a=str.split(" ");
var _41b="";
var len=_41a.length;
for(var i=0;i<len;i++){
var word=_41a[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_41b+=word;
if(i<len-1){
_41b+=" ";
}
}
return new String(_41b);
};
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 _422=escape(str);
var _423,re=/%u([0-9A-F]{4})/i;
while((_423=_422.match(re))){
var num=Number("0x"+_423[1]);
var _425=escape("&#"+num+";");
ret+=_422.substring(0,_423.index)+_425;
_422=_422.substring(_423.index+_423[0].length);
}
ret+=_422.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,_42b){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_42b){
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,_433){
if(_433){
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,_437,_438){
if(_438){
str=str.toLowerCase();
_437=_437.toLowerCase();
}
return str.indexOf(_437)==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,_43e){
if(_43e=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_43e=="\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,_440){
var _441=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_440){
_441.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_441.push(str.substr(prevcomma));
return _441;
};
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(_443){
_443=dojo.byId(_443)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_443.style.MozUserSelect="none";
}else{
if(h.safari){
_443.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_443.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_445){
_445=dojo.byId(_445)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_445.style.MozUserSelect="";
}else{
if(h.safari){
_445.style.KhtmlUserSelect="";
}else{
if(h.ie){
_445.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_447){
_447=dojo.byId(_447);
if(document.selection&&document.body.createTextRange){
var _448=document.body.createTextRange();
_448.moveToElementText(_447);
_448.select();
}else{
if(window["getSelection"]){
var _449=window.getSelection();
if(_449["selectAllChildren"]){
_449.selectAllChildren(_447);
}
}
}
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _44a=window.getSelection();
if(dojo.lang.isString(_44a)){
return _44a=="";
}else{
return _44a.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.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 _454=dojo.byId(node);
type=type.toLowerCase();
while((_454)&&(_454.nodeName.toLowerCase()!=type)){
if(_454==(document["body"]||document["documentElement"])){
return null;
}
_454=_454.parentNode;
}
return _454;
};
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,_460){
node=dojo.byId(node);
return dojo.lang.inArray(dojo.html.getClasses(node),_460);
};
dojo.html.prependClass=function(node,_462){
node=dojo.byId(node);
if(!node){
return false;
}
_462+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_462);
};
dojo.html.addClass=function(node,_464){
node=dojo.byId(node);
if(!node){
return false;
}
if(dojo.html.hasClass(node,_464)){
return false;
}
_464=dojo.string.trim(dojo.html.getClass(node)+" "+_464);
return dojo.html.setClass(node,_464);
};
dojo.html.setClass=function(node,_466){
node=dojo.byId(node);
if(!node){
return false;
}
var cs=new String(_466);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_466);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_469,_46a){
node=dojo.byId(node);
if(!node){
return false;
}
var _469=dojo.string.trim(new String(_469));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_46a){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_469)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_469){
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,_46f,_470){
node=dojo.byId(node);
dojo.html.removeClass(node,_470);
dojo.html.addClass(node,_46f);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_471,_472,_473,_474){
_472=dojo.byId(_472);
if(!_472){
_472=document;
}
var _475=_471.split(/\s+/g);
var _476=[];
if(_474!=1&&_474!=2){
_474=0;
}
var _477=new RegExp("(\\s|^)(("+_475.join(")|(")+"))(\\s|$)");
if(!_473){
_473="*";
}
var _478=_472.getElementsByTagName(_473);
outer:
for(var i=0;i<_478.length;i++){
var node=_478[i];
var _47b=dojo.html.getClasses(node);
if(_47b.length==0){
continue outer;
}
var _47c=0;
for(var j=0;j<_47b.length;j++){
if(_477.test(_47b[j])){
if(_474==dojo.html.classMatchType.ContainsAny){
_476.push(node);
continue outer;
}else{
_47c++;
}
}else{
if(_474==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_47c==_475.length){
if(_474==dojo.html.classMatchType.IsOnly&&_47c==_47b.length){
_476.push(node);
}else{
if(_474==dojo.html.classMatchType.ContainsAll){
_476.push(node);
}
}
}
}
return _476;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _480=e.pageX||e.clientX+document.body.scrollLeft;
var _481=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var _482=getAbsoluteX(node)+(getInnerWidth(node)/2);
var _483=getAbsoluteY(node)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_480<_482?WEST:EAST)|(_481<_483?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(_484,e){
_484=dojo.byId(_484);
var _486=e.pageX||e.clientX+document.body.scrollLeft;
var _487=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var top=getAbsoluteY(_484);
var _489=top+getInnerHeight(_484);
var left=getAbsoluteX(_484);
var _48b=left+getInnerWidth(_484);
}
return (_486>=left&&_486<=_48b&&_487>=top&&_487<=_489);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _48d="";
if(node==null){
return _48d;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _48f="unknown";
try{
_48f=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_48f){
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":
_48d+="\n";
_48d+=dojo.html.renderedTextContent(node.childNodes[i]);
_48d+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_48d+="\n";
}else{
_48d+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _491="unknown";
try{
_491=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_491){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_491){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_48d)){
text.replace(/^\s/,"");
}
break;
}
_48d+=text;
break;
default:
break;
}
}
return _48d;
};
dojo.html.setActiveStyleSheet=function(_492){
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")==_492){
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 _499="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_499="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_499="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_499="section";
}
}
}
tn.innerHTML=txt;
tn.normalize();
var _49a=null;
switch(_499){
case "cell":
_49a=tn.getElementsByTagName("tr")[0];
break;
case "row":
_49a=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_49a=tn.getElementsByTagName("table")[0];
break;
default:
_49a=tn;
break;
}
var _49b=[];
for(var x=0;x<_49a.childNodes.length;x++){
_49b.push(_49a.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _49b;
};
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,_4a1,_4a2,_4a3,_4a4){
if(dojo.lang.isArray(_4a1)){
_4a4=_4a3;
_4a3=_4a2;
_4a2=_4a1[1];
_4a1=_4a1[0];
}
if(!isNaN(_4a3)){
_4a3=[Number(_4a3),Number(_4a3)];
}else{
if(!dojo.lang.isArray(_4a3)){
_4a3=[0,0];
}
}
var _4a5=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_4a3[0];
var h=node.offsetHeight+_4a3[1];
if(_4a4){
_4a1-=_4a5.x;
_4a2-=_4a5.y;
}
var x=_4a1+w;
if(x>view.w){
x=view.w-w;
}else{
x=_4a1;
}
x=Math.max(_4a3[0],x)+_4a5.x;
var y=_4a2+h;
if(y>view.h){
y=view.h-h;
}else{
y=_4a2;
}
y=Math.max(_4a3[1],y)+_4a5.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,_4ad,_4ae,_4af,_4b0){
if(dojo.lang.isArray(_4ad)){
_4b0=_4af;
_4af=_4ae;
_4ae=_4ad[1];
_4ad=_4ad[0];
}
var _4b1=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth;
var h=node.offsetHeight;
if(_4b0){
_4ad-=_4b1.x;
_4ae-=_4b1.y;
}
var x=-1,y=-1;
if(_4ad+w<=view.w&&_4ae+h<=view.h){
x=_4ad;
y=_4ae;
}
if((x<0||y<0)&&_4ad<=view.w&&_4ae+h<=view.h){
x=_4ad-w;
y=_4ae;
}
if((x<0||y<0)&&_4ad+w<=view.w&&_4ae<=view.h){
x=_4ad;
y=_4ae-h;
}
if((x<0||y<0)&&_4ad<=view.w&&_4ae<=view.h){
x=_4ad-w;
y=_4ae-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_4ad,_4ae,_4af,_4b0);
}
x+=_4b1.x;
y+=_4b1.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.style.insertCssFile=function(URI,doc,_4b9){
if(!URI){
return;
}
if(!doc){
doc=document;
}
if(doc.baseURI){
URI=new dojo.uri.Uri(doc.baseURI,URI);
}
if(_4b9&&doc.styleSheets){
var loc=location.href.split("#")[0].substring(0,location.href.indexOf(location.pathname));
for(var i=0;i<doc.styleSheets.length;i++){
if(doc.styleSheets[i].href&&URI.toString()==new dojo.uri.Uri(doc.styleSheets[i].href.toString())){
return;
}
}
}
var file=doc.createElement("link");
file.setAttribute("type","text/css");
file.setAttribute("rel","stylesheet");
file.setAttribute("href",URI);
var head=doc.getElementsByTagName("head")[0];
if(head){
head.appendChild(file);
}
};
dojo.html.BackgroundIframe=function(){
if(this.ie){
this.iframe=document.createElement("<iframe frameborder='0' src='about:blank'>");
var s=this.iframe.style;
s.position="absolute";
s.left=s.top="0px";
s.zIndex=2;
s.display="none";
dojo.style.setOpacity(this.iframe,0);
document.body.appendChild(this.iframe);
}else{
this.enabled=false;
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{ie:dojo.render.html.ie,enabled:true,visibile:false,iframe:null,sizeNode:null,sizeCoords:null,size:function(node){
if(!this.ie||!this.enabled){
return;
}
if(dojo.dom.isNode(node)){
this.sizeNode=node;
}else{
if(arguments.length>0){
this.sizeNode=null;
this.sizeCoords=node;
}
}
this.update();
},update:function(){
if(!this.ie||!this.enabled){
return;
}
if(this.sizeNode){
this.sizeCoords=dojo.html.toCoordinateArray(this.sizeNode,true);
}else{
if(this.sizeCoords){
this.sizeCoords=dojo.html.toCoordinateArray(this.sizeCoords,true);
}else{
return;
}
}
var s=this.iframe.style;
var dims=this.sizeCoords;
s.width=dims.w+"px";
s.height=dims.h+"px";
s.left=dims.x+"px";
s.top=dims.y+"px";
},setZIndex:function(node){
if(!this.ie||!this.enabled){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.zIndex=node;
}
}
},show:function(node){
if(!this.ie||!this.enabled){
return;
}
this.size(node);
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
s.width=s.height="1px";
},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,allowResizeX:true,allowResizeY:true,resizeGhost:null,initialResizeCoords:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
this.toggleObj=dojo.widget.HtmlWidget.toggle[this.toggle.toLowerCase()]||dojo.widget.HtmlWidget.toggle.plain;
},getContainerHeight:function(){
dj_unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_4ca){
var ch=this.getContainerHeight();
},resizeSoon:function(){
if(this.isVisible()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_4ce){
try{
if(!_4ce){
dojo.event.browser.clean(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;
}});
dojo.widget.HtmlWidget.toggle={};
dojo.widget.HtmlWidget.toggle.plain={show:function(node,_4d0,_4d1,_4d2){
dojo.style.show(node);
if(dojo.lang.isFunction(_4d2)){
_4d2();
}
},hide:function(node,_4d4,_4d5,_4d6){
dojo.html.hide(node);
if(dojo.lang.isFunction(_4d6)){
_4d6();
}
}};
dojo.widget.HtmlWidget.toggle.fade={show:function(node,_4d8,_4d9,_4da){
dojo.fx.html.fadeShow(node,_4d8,_4da);
},hide:function(node,_4dc,_4dd,_4de){
dojo.fx.html.fadeHide(node,_4dc,_4de);
}};
dojo.widget.HtmlWidget.toggle.wipe={show:function(node,_4e0,_4e1,_4e2){
dojo.fx.html.wipeIn(node,_4e0,_4e2);
},hide:function(node,_4e4,_4e5,_4e6){
dojo.fx.html.wipeOut(node,_4e4,_4e6);
}};
dojo.widget.HtmlWidget.toggle.explode={show:function(node,_4e8,_4e9,_4ea){
dojo.fx.html.explode(_4e9||[0,0,0,0],node,_4e8,_4ea);
},hide:function(node,_4ec,_4ed,_4ee){
dojo.fx.html.implode(node,_4ed||[0,0,0,0],_4ec,_4ee);
}};
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"];
dojo.io.Request=function(url,_4f0,_4f1,_4f2){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_4f0){
this.mimetype=_4f0;
}
if(_4f1){
this.transport=_4f1;
}
if(arguments.length>=4){
this.changeUrl=_4f2;
}
}
};
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,_4f7){
},handle:function(){
},abort:function(){
},fromKwArgs:function(_4f8){
if(_4f8["url"]){
_4f8.url=_4f8.url.toString();
}
if(_4f8["formNode"]){
_4f8.formNode=dojo.byId(_4f8.formNode);
}
if(!_4f8["method"]&&_4f8["formNode"]&&_4f8["formNode"].method){
_4f8.method=_4f8["formNode"].method;
}
if(!_4f8["handle"]&&_4f8["handler"]){
_4f8.handle=_4f8.handler;
}
if(!_4f8["load"]&&_4f8["loaded"]){
_4f8.load=_4f8.loaded;
}
if(!_4f8["changeUrl"]&&_4f8["changeURL"]){
_4f8.changeUrl=_4f8.changeURL;
}
_4f8.encoding=dojo.lang.firstValued(_4f8["encoding"],djConfig["bindEncoding"],"");
_4f8.sendTransport=dojo.lang.firstValued(_4f8["sendTransport"],djConfig["ioSendTransport"],false);
var _4f9=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_4f9(_4f8[fn])){
continue;
}
if(_4f9(_4f8["handle"])){
_4f8[fn]=_4f8.handle;
}
}
dojo.lang.mixin(this,_4f8);
}});
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(_500){
if(!(_500 instanceof dojo.io.Request)){
try{
_500=new dojo.io.Request(_500);
}
catch(e){
dojo.debug(e);
}
}
var _501="";
if(_500["transport"]){
_501=_500["transport"];
if(!this[_501]){
return _500;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_500))){
_501=tmp;
}
}
if(_501==""){
return _500;
}
}
this[_501].bind(_500);
_500.bindSuccess=true;
return _500;
};
dojo.io.queueBind=function(_504){
if(!(_504 instanceof dojo.io.Request)){
try{
_504=new dojo.io.Request(_504);
}
catch(e){
dojo.debug(e);
}
}
var _505=_504.load;
_504.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_505.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _507=_504.error;
_504.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_507.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_504);
dojo.io._dispatchNextQueueBind();
return _504;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
dojo.io.bind(dojo.io._bindQueue.shift());
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_50a){
var _50b=new Object();
var _50c="";
var enc=/utf/i.test(_50a||"")?encodeURIComponent:dojo.string.encodeAscii;
for(var x in map){
if(!_50b[x]){
_50c+=enc(x)+"="+enc(map[x])+"&";
}
}
return _50c;
};
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");
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.io.checkChildrenForFile=function(node){
var _510=false;
var _511=node.getElementsByTagName("input");
dojo.lang.forEach(_511,function(_512){
if(_510){
return;
}
if(_512.getAttribute("type")=="file"){
_510=true;
}
});
return _510;
};
dojo.io.formHasFile=function(_513){
return dojo.io.checkChildrenForFile(_513);
};
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(_516,_517,_518){
if((!_516)||(!_516.tagName)||(!_516.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_518){
_518=dojo.io.formFilter;
}
var enc=/utf/i.test(_517||"")?encodeURIComponent:dojo.string.encodeAscii;
var _51a=[];
for(var i=0;i<_516.elements.length;i++){
var elm=_516.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_518(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){
_51a.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_51a.push(name+"="+enc(elm.value));
}
}else{
_51a.push(name+"="+enc(elm.value));
}
}
}
var _520=_516.getElementsByTagName("input");
for(var i=0;i<_520.length;i++){
var _521=_520[i];
if(_521.type.toLowerCase()=="image"&&_521.form==_516&&_518(_521)){
var name=enc(_521.name);
_51a.push(name+"="+enc(_521.value));
_51a.push(name+".x=0");
_51a.push(name+".y=0");
}
}
return _51a.join("&")+"&";
};
dojo.io.setIFrameSrc=function(_522,src,_524){
try{
var r=dojo.render.html;
if(!_524){
if(r.safari){
_522.location=src;
}else{
frames[_522.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_522.contentWindow.document;
}else{
if(r.moz){
idoc=_522.contentWindow;
}else{
if(r.safari){
idoc=_522.document;
}
}
}
idoc.location.replace(src);
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
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;
this.initialHref=window.location.href;
this.initialHash=window.location.hash;
this.moveForward=false;
var _53b={};
this.useCache=false;
this.preventCache=false;
this.historyStack=[];
this.forwardStack=[];
this.historyIframe=null;
this.bookmarkAnchor=null;
this.locationTimer=null;
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)||(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.addToHistory=function(args){
var _555=args["back"]||args["backButton"]||args["handle"];
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 _558=_555;
var lh=null;
var hsl=this.historyStack.length-1;
if(hsl>=0){
while(!this.historyStack[hsl]["urlHash"]){
hsl--;
}
lh=this.historyStack[hsl]["urlHash"];
}
if(lh){
_555=function(){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+lh+"';",1);
}
_558();
};
}
this.forwardStack=[];
var _55b=args["forward"]||args["forwardButton"];
var tfw=function(){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_55b){
_55b();
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.io.XMLHTTPTransport.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"callback":_555,"kwArgs":args,"urlHash":hash});
};
this.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;
}
}
};
this.iframeLoaded=function(evt,_55f){
var isp=_55f.href.split("?");
if(isp.length<2){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
var _561=isp[1];
if(this.moveForward){
this.moveForward=false;
return;
}
var last=this.historyStack.pop();
if(!last){
if(this.forwardStack.length>0){
var next=this.forwardStack[this.forwardStack.length-1];
if(_561==next.url.split("?")[1]){
this.handleForwardButton();
}
}
return;
}
this.historyStack.push(last);
if(this.historyStack.length>=2){
if(isp[1]==this.historyStack[this.historyStack.length-2].url.split("?")[1]){
this.handleBackButton();
}
}else{
this.handleBackButton();
}
};
this.handleBackButton=function(){
var last=this.historyStack.pop();
if(!last){
return;
}
if(last["callback"]){
last.callback();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(last);
};
this.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);
};
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 _568=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_569){
return _568&&dojo.lang.inArray((_569["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_569["method"].toLowerCase(),["post","get","head"])&&!(_569["formNode"]&&dojo.io.formHasFile(_569["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_56a){
if(!_56a["url"]){
if(!_56a["formNode"]&&(_56a["backButton"]||_56a["back"]||_56a["changeUrl"]||_56a["watchForURL"])&&(!djConfig.preventBackButtonFix)){
this.addToHistory(_56a);
return true;
}
}
var url=_56a.url;
var _56c="";
if(_56a["formNode"]){
var ta=_56a.formNode.getAttribute("action");
if((ta)&&(!_56a["url"])){
url=ta;
}
var tp=_56a.formNode.getAttribute("method");
if((tp)&&(!_56a["method"])){
_56a.method=tp;
}
_56c+=dojo.io.encodeForm(_56a.formNode,_56a.encoding,_56a["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_56a["file"]){
_56a.method="post";
}
if(!_56a["method"]){
_56a.method="get";
}
if(_56a.method.toLowerCase()=="get"){
_56a.multipart=false;
}else{
if(_56a["file"]){
_56a.multipart=true;
}else{
if(!_56a["multipart"]){
_56a.multipart=false;
}
}
}
if(_56a["backButton"]||_56a["back"]||_56a["changeUrl"]){
this.addToHistory(_56a);
}
var _56f=_56a["content"]||{};
if(_56a.sendTransport){
_56f["dojo.transport"]="xmlhttp";
}
do{
if(_56a.postContent){
_56c=_56a.postContent;
break;
}
if(_56f){
_56c+=dojo.io.argsFromMap(_56f,_56a.encoding);
}
if(_56a.method.toLowerCase()=="get"||!_56a.multipart){
break;
}
var t=[];
if(_56c.length){
var q=_56c.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(_56a.file){
if(dojo.lang.isArray(_56a.file)){
for(var i=0;i<_56a.file.length;++i){
var o=_56a.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=_56a.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+"--","");
_56c=t.join("\r\n");
}
}while(false);
var _575=_56a["sync"]?false:true;
var _576=_56a["preventCache"]||(this.preventCache==true&&_56a["preventCache"]!=false);
var _577=_56a["useCache"]==true||(this.useCache==true&&_56a["useCache"]!=false);
if(!_576&&_577){
var _578=getFromCache(url,_56c,_56a.method);
if(_578){
doLoad(_56a,_578,url,_56c,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_56a);
var _57a=false;
if(_575){
this.inFlight.push({"req":_56a,"http":http,"url":url,"query":_56c,"useCache":_577});
this.startWatchingInFlight();
}
if(_56a.method.toLowerCase()=="post"){
http.open("POST",url,_575);
setHeaders(http,_56a);
http.setRequestHeader("Content-Type",_56a.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_56a.contentType||"application/x-www-form-urlencoded"));
http.send(_56c);
}else{
var _57b=url;
if(_56c!=""){
_57b+=(_57b.indexOf("?")>-1?"&":"?")+_56c;
}
if(_576){
_57b+=(dojo.string.endsWithAny(_57b,"?","&")?"":(_57b.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_56a.method.toUpperCase(),_57b,_575);
setHeaders(http,_56a);
http.send(null);
}
if(!_575){
doLoad(_56a,http,url,_56c,_577);
}
_56a.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_57d,days,path,_580,_581){
var _582=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_582=d.toGMTString();
}
_57d=escape(_57d);
document.cookie=name+"="+_57d+";"+(_582!=-1?" expires="+_582+";":"")+(path?"path="+path:"")+(_580?"; domain="+_580:"")+(_581?"; 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,_58c,_58d,_58e){
if(arguments.length==5){
_58e=_58c;
_58c=null;
_58d=null;
}
var _58f=[],cookie,value="";
if(!_58e){
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){
_58f.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_58f.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_58c,_58d);
};
dojo.io.cookie.getObjectCookie=function(name){
var _592=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_592={};
var _593=cookie.split("&");
for(var i=0;i<_593.length;i++){
var pair=_593[i].split("=");
var _596=pair[1];
if(isNaN(_596)){
_596=unescape(pair[1]);
}
_592[unescape(pair[0])]=_596;
}
}
return _592;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _597=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_597=="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.*");


