/*
	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.animation.AnimationEvent");
dojo.require("dojo.lang");
dojo.animation.AnimationEvent=function(anim,type,_4f1,_4f2,_4f3,_4f4,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_4f1;
this.x=_4f1[0];
this.y=_4f1[1];
this.z=_4f1[2];
this.startTime=_4f2;
this.currentTime=_4f3;
this.endTime=_4f4;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _4f8=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_4f8[i]=Math.round(this.coords[i]);
}
return _4f8;
}});
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_4fa,end){
this.start=_4fa;
this.end=end;
this.dimensions=_4fa.length;
for(var i=0;i<_4fa.length;i++){
_4fa[i]=Number(_4fa[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _4fe=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_4fe[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _4fe;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _502=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_502[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_502[j]=C/D;
}
return _502;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _50c=step*(this.p.length-1);
var node=Math.floor(_50c);
var _50e=_50c-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_50e;
var u2=_50e*_50e;
var u3=_50e*_50e*_50e;
var _516=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_516[k]=x1*u3+x2*u2+x3*u+x4;
}
return _516;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_51c,end,ccw){
var _51f=dojo.math.points.midpoint(_51c,end);
var _520=dojo.math.points.translate(dojo.math.points.invert(_51f),_51c);
var rad=Math.sqrt(Math.pow(_520[0],2)+Math.pow(_520[1],2));
var _522=dojo.math.radToDeg(Math.atan(_520[1]/_520[0]));
if(_520[0]<0){
_522-=90;
}else{
_522+=90;
}
dojo.math.curves.CenteredArc.call(this,_51f,rad,_522,_522+(ccw?-180:180));
},CenteredArc:function(_523,_524,_525,end){
this.center=_523;
this.radius=_524;
this.start=_525||0;
this.end=end;
this.getValue=function(n){
var _528=new Array(2);
var _529=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_528[0]=this.center[0]+this.radius*Math.sin(_529);
_528[1]=this.center[1]-this.radius*Math.cos(_529);
return _528;
};
return this;
},Circle:function(_52a,_52b){
dojo.math.curves.CenteredArc.call(this,_52a,_52b,0,360);
return this;
},Path:function(){
var _52c=[];
var _52d=[];
var _52e=[];
var _52f=0;
this.add=function(_530,_531){
if(_531<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_52c.push(_530);
_52d.push(_531);
_52f+=_531;
computeRanges();
};
this.remove=function(_532){
for(var i=0;i<_52c.length;i++){
if(_52c[i]==_532){
_52c.splice(i,1);
_52f-=_52d.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_52c=[];
_52d=[];
_52f=0;
};
this.getValue=function(n){
var _535=false,value=0;
for(var i=0;i<_52e.length;i++){
var r=_52e[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_52c[i].getValue(subN);
_535=true;
break;
}
}
if(!_535){
value=_52c[_52c.length-1].getValue(1);
}
for(j=0;j<i;j++){
value=dojo.math.points.translate(value,_52c[j].getValue(1));
}
return value;
};
function computeRanges(){
var _539=0;
for(var i=0;i<_52d.length;i++){
var end=_539+_52d[i]/_52f;
var len=end-_539;
_52e[i]=[_539,end,len];
_539=end;
}
}
return this;
}};
dojo.provide("dojo.animation.Animation");
dojo.require("dojo.animation.AnimationEvent");
dojo.require("dojo.lang.func");
dojo.require("dojo.math");
dojo.require("dojo.math.curves");
dojo.animation.Animation=function(_53d,_53e,_53f,_540,rate){
if(dojo.lang.isArray(_53d)){
_53d=new dojo.math.curves.Line(_53d[0],_53d[1]);
}
this.curve=_53d;
this.duration=_53e;
this.repeatCount=_540||0;
this.rate=rate||25;
if(_53f){
if(dojo.lang.isFunction(_53f.getValue)){
this.accel=_53f;
}else{
var i=0.35*_53f+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_543){
if(_543){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence._setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_547){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_547){
this.play();
}
},stop:function(_548){
clearTimeout(this._timer);
var step=this._percent/100;
if(_548){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence._playNext();
}
}
}
}
}
}});
dojo.provide("dojo.animation");
dojo.require("dojo.animation.Animation");
dojo.provide("dojo.fx.html");
dojo.require("dojo.style");
dojo.require("dojo.lang.func");
dojo.require("dojo.animation");
dojo.require("dojo.event.*");
dojo.require("dojo.graphics.color");
dojo.fx.duration=300;
dojo.fx.html._makeFadeable=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
dojo.fx.html.fadeOut=function(node,_550,_551,_552){
return dojo.fx.html.fade(node,_550,dojo.style.getOpacity(node),0,_551,_552);
};
dojo.fx.html.fadeIn=function(node,_554,_555,_556){
return dojo.fx.html.fade(node,_554,dojo.style.getOpacity(node),1,_555,_556);
};
dojo.fx.html.fadeHide=function(node,_558,_559,_55a){
node=dojo.byId(node);
if(!_558){
_558=150;
}
return dojo.fx.html.fadeOut(node,_558,function(node){
node.style.display="none";
if(typeof _559=="function"){
_559(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_55d,_55e,_55f){
node=dojo.byId(node);
if(!_55d){
_55d=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_55d,0,1,_55e,_55f);
};
dojo.fx.html.fade=function(node,_561,_562,_563,_564,_565){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_562],[_563]),_561||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_564){
dojo.event.connect(anim,"onEnd",function(e){
_564(node,anim);
});
}
if(!_565){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_56a,_56b,_56c,_56d){
if(!dojo.lang.isNumber(_56a)){
var tmp=_56a;
_56a=_56b;
_56b=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slide(node,_56a,[left,top],_56b,_56c,_56d);
};
dojo.fx.html.slideBy=function(node,_573,_574,_575,_576){
if(!dojo.lang.isNumber(_573)){
var tmp=_573;
_573=_574;
_574=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slideTo(node,_573,[left+_574[0],top+_574[1]],_575,_576);
};
dojo.fx.html.slide=function(node,_57c,_57d,_57e,_57f,_580){
if(!dojo.lang.isNumber(_57c)){
var tmp=_57c;
_57c=_57e;
_57e=_57d;
_57d=tmp;
}
node=dojo.byId(node);
if(dojo.style.getComputedStyle(node,"position")=="static"){
node.style.position="relative";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_57d,_57e),_57c||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_57f){
dojo.event.connect(anim,"onEnd",function(e){
_57f(node,anim);
});
}
if(!_580){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_586,_587,_588,_589,_58a){
if(!dojo.lang.isNumber(_586)){
var tmp=_586;
_586=_587;
_587=tmp;
}
node=dojo.byId(node);
var _58c=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _58e=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_58c.length>3){
_58c.pop();
}
var rgb=new dojo.graphics.color.Color(_587).toRgb();
var anim=dojo.fx.html.colorFade(node,_586||dojo.fx.duration,_587,_58c,_589,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_58e){
node.style.backgroundColor="transparent";
}
});
if(_588>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_58a){
setTimeout(function(){
anim.play(true);
},_588);
}
}else{
if(!_58a){
anim.play(true);
}
}
return anim;
};
dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeOut=function(node,_593,_594,_595,_596,_597){
if(!dojo.lang.isNumber(_593)){
var tmp=_593;
_593=_594;
_594=tmp;
}
node=dojo.byId(node);
var _599=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_594).toRgb();
var anim=dojo.fx.html.colorFade(node,_593||dojo.fx.duration,_599,rgb,_596,_595>0||_597);
if(_595>0){
node.style.backgroundColor="rgb("+_599.join(",")+")";
if(!_597){
setTimeout(function(){
anim.play(true);
},_595);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_59d,_59e,_59f,_5a0,_5a1){
if(!dojo.lang.isNumber(_59d)){
var tmp=_59d;
_59d=_59f;
_59f=_59e;
_59e=tmp;
}
node=dojo.byId(node);
var _5a3=new dojo.graphics.color.Color(_59e).toRgb();
var _5a4=new dojo.graphics.color.Color(_59f).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5a3,_5a4),_59d||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_5a0){
dojo.event.connect(anim,"onEnd",function(e){
_5a0(node,anim);
});
}
if(!_5a1){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_5a9,_5aa,_5ab){
node=dojo.byId(node);
var _5ac=dojo.style.getStyle(node,"overflow");
if(_5ac=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_5a9,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_5ac;
node.style.height="auto";
if(_5aa){
_5aa(node,anim);
}
});
if(!_5ab){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_5af,_5b0,_5b1){
node=dojo.byId(node);
var _5b2=dojo.style.getStyle(node,"overflow");
if(_5b2=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_5af,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.overflow=_5b2;
if(_5b0){
_5b0(node,anim);
}
});
if(!_5b1){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_5b5,_5b6,_5b7,_5b8,_5b9){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_5b6],[_5b7]],_5b5||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_5b8){
_5b8(node,anim);
}
});
if(!_5b9){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_5bd){
this.node=dojo.byId(node);
if(_5bd){
dojo.event.connect(dojo.byId(_5bd),"onclick",this,"toggle");
}
};
dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){
if(!this._anim){
var type="wipe"+(dojo.style.isVisible(this.node)?"Hide":"Show");
this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback"));
}
},_callback:function(){
this._anim=null;
}});
dojo.fx.html.explode=function(_5bf,_5c0,_5c1,_5c2,_5c3){
var _5c4=dojo.style.toCoordinateArray(_5bf);
var _5c5=document.createElement("div");
with(_5c5.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_5c5);
_5c0=dojo.byId(_5c0);
with(_5c0.style){
visibility="hidden";
display="block";
}
var _5c6=dojo.style.toCoordinateArray(_5c0);
with(_5c0.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5c4,_5c6),_5c1||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_5c5.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_5c5.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_5c0.style.display="block";
_5c5.parentNode.removeChild(_5c5);
if(_5c2){
_5c2(_5c0,anim);
}
});
if(!_5c3){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_5ca,end,_5cc,_5cd,_5ce){
var _5cf=dojo.style.toCoordinateArray(_5ca);
var _5d0=dojo.style.toCoordinateArray(end);
_5ca=dojo.byId(_5ca);
var _5d1=document.createElement("div");
with(_5d1.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_5d1);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5cf,_5d0),_5cc||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_5ca.style.display="none";
_5d1.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_5d1.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_5d1.parentNode.removeChild(_5d1);
if(_5cd){
_5cd(_5ca,anim);
}
});
if(!_5ce){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_5d5,_5d6){
_5d5=dojo.byId(_5d5);
_5d6=dojo.byId(_5d6);
var _5d7=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _5d8=null;
var _5d9=null;
var _5da=null;
var _5db=null;
var _5dc=null;
var _5dd=null;
this.showing=false;
this.onBeforeExplode=null;
this.onAfterExplode=null;
this.onBeforeImplode=null;
this.onAfterImplode=null;
this.onExploding=null;
this.onImploding=null;
this.timeShow=function(){
clearTimeout(_5da);
_5da=setTimeout(_5d7.show,_5d7.waitToShow);
};
this.show=function(){
clearTimeout(_5da);
clearTimeout(_5db);
if((_5d9&&_5d9.status()=="playing")||(_5d8&&_5d8.status()=="playing")||_5d7.showing){
return;
}
if(typeof _5d7.onBeforeExplode=="function"){
_5d7.onBeforeExplode(_5d5,_5d6);
}
_5d8=dojo.fx.html.explode(_5d5,_5d6,_5d7.timeToShow,function(e){
_5d7.showing=true;
if(typeof _5d7.onAfterExplode=="function"){
_5d7.onAfterExplode(_5d5,_5d6);
}
});
if(typeof _5d7.onExploding=="function"){
dojo.event.connect(_5d8,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_5da);
clearTimeout(_5db);
if(_5d7.showing){
_5db=setTimeout(_5d7.hide,_5d7.waitToHide);
}
};
this.hide=function(){
clearTimeout(_5da);
clearTimeout(_5db);
if(_5d8&&_5d8.status()=="playing"){
return;
}
_5d7.showing=false;
if(typeof _5d7.onBeforeImplode=="function"){
_5d7.onBeforeImplode(_5d5,_5d6);
}
_5d9=dojo.fx.html.implode(_5d6,_5d5,_5d7.timeToHide,function(e){
if(typeof _5d7.onAfterImplode=="function"){
_5d7.onAfterImplode(_5d5,_5d6);
}
});
if(typeof _5d7.onImploding=="function"){
dojo.event.connect(_5d9,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_5d5,"onclick",function(e){
if(_5d7.showing){
_5d7.hide();
}else{
_5d7.show();
}
});
dojo.event.connect(_5d5,"onmouseover",function(e){
if(_5d7.autoShow){
_5d7.timeShow();
}
});
dojo.event.connect(_5d5,"onmouseout",function(e){
if(_5d7.autoHide){
_5d7.timeHide();
}
});
dojo.event.connect(_5d6,"onmouseover",function(e){
clearTimeout(_5db);
});
dojo.event.connect(_5d6,"onmouseout",function(e){
if(_5d7.autoHide){
_5d7.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_5e7){
while(node){
if(node==_5e7){
return true;
}
node=node.parentNode;
}
return false;
}
if(_5d7.autoHide&&_5d7.showing&&!isDesc(e.target,_5d6)&&!isDesc(e.target,_5d5)){
_5d7.hide();
}
});
return this;
};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.provide("dojo.widget.TreeNav");
dojo.provide("dojo.widget.TreeNavNode");
dojo.require("dojo.event.*");
dojo.require("dojo.fx.html");
dojo.require("dojo.widget.HtmlWidget");
dojo.widget.tags.addParseTreeHandler("dojo:TreeNav");
dojo.widget.tags.addParseTreeHandler("dojo:TreeNavNode");
dojo.widget.TreeNav=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.TreeNav,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.TreeNav,{widgetType:"TreeNav",isContainer:true,templateCssPath:dojo.uri.dojoUri("src/widget/templates/TreeNav.css"),templateString:"<div class=\"dojoTreeNav\"></div>",selectedNode:null,indent:10,toggle:"default",toggleDuration:150,initialize:function(args,frag){
this.toggler=new dojo.widget.TreeNav.DefaultToggle();
},postCreate:function(){
this.buildTree();
},buildTree:function(){
dojo.html.disableSelection(this.domNode);
for(var i=0;i<this.children.length;i++){
this.children[i].isFirstNode=(i===0)?true:false;
this.children[i].isLastNode=(i==this.children.length-1)?true:false;
var node=this.children[i].buildNode(this,0);
this.domNode.appendChild(node);
}
for(i=0;i<this.children.length;i++){
this.children[i].startMe();
}
},addChild:function(_5ec){
if(_5ec.widgetType!="TreeNavNode"){
dojo.raise("You can only add TreeNavNode widgets to a "+this.widgetType+" widget!");
return;
}
if(this.children.length){
var _5ed=this.children[this.children.length-1];
_5ed.isLastNode=false;
_5ed.updateIconTree();
}else{
if(this.widgetType=="TreeNavNode"){
this.isParent=true;
this.isExpanded=false;
}
_5ec.isFirstNode=true;
}
var _5ee,childTree;
if(this.widgetType=="TreeNavNode"){
_5ee=this.depth+1;
childTree=this.tree;
_5ec.parentNode=this;
_5ec.isLastNode=true;
}else{
_5ee=0;
childTree=this;
_5ec.isLastNode=true;
}
this.children.push(_5ec);
var node=_5ec.buildNode(childTree,_5ee);
if(this.widgetType=="TreeNav"){
this.domNode.appendChild(node);
}else{
this.containerNode.appendChild(node);
}
_5ec.startMe();
}});
dojo.widget.TreeNavNode=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.TreeNavNode,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.TreeNavNode,{widgetType:"TreeNavNode",isContainer:true,messWithMyChildren:true,domNode:null,continerNode:null,templateString:"<div class=\"dojoTreeNavNode\"><div dojoAttachPoint=\"containerNode\"></div></div>",title:"",labelNode:null,rowNode:null,tree:null,parentNode:null,depth:0,isFirstNode:false,isLastNode:false,isExpanded:false,isParent:false,booted:false,buildNode:function(tree,_5f1){
this.tree=tree;
this.depth=_5f1;
this.labelNode=document.createElement("a");
this.labelNode.href="#";
this.labelNode.style.marginLeft=this.depth*10+"px";
this.labelNode.appendChild(document.createTextNode(this.title));
this.domNode.insertBefore(this.labelNode,this.containerNode);
dojo.html.addClass(this.labelNode,"dojoTreeNavNodeLabel");
dojo.event.connect(this.labelNode,"onclick",this,"onLabelClick");
for(var i=0;i<this.children.length;i++){
this.children[i].isFirstNode=(i===0)?true:false;
this.children[i].isLastNode=(i==this.children.length-1)?true:false;
this.children[i].parentNode=this;
var node=this.children[i].buildNode(this.tree,this.depth+1);
this.containerNode.appendChild(node);
}
this.isParent=(this.children.length>0)?true:false;
this.collapse();
return this.domNode;
},onLabelClick:function(e){
e.preventDefault();
if(!this.children.length){
window.location=this.widgetId;
}else{
this.select(true);
this.labelNode.blur();
}
},select:function(){
if(this.tree.selectedNode){
this.tree.selectedNode.deselect();
}
this.tree.selectedNode=this;
this.expandParents();
if(this.children.length){
this.expand();
}else{
dojo.html.addClass(this.labelNode,"dojoTreeNavNodeLabelSelected");
}
},deselect:function(){
dojo.html.removeClass(this.tree.selectedNode,"dojoTreeNavNodeLabelSelected");
dojo.html.removeClass(this.labelNode,"dojoTreeNavNodeLabelOpen");
this.collapseAll();
},expand:function(){
dojo.html.addClass(this.labelNode,"dojoTreeNavNodeLabelOpen");
this.showChildren();
this.isExpanded=true;
},expandParents:function(){
if(this.parentNode){
this.parentNode.expandParents();
this.parentNode.expand();
}
},collapse:function(){
dojo.html.removeClass(this.labelNode,"dojoTreeNavNodeLabelOpen");
this.hideChildren();
this.isExpanded=false;
},collapseParents:function(){
if(this.parentNode){
this.parentNode.collapseParents();
this.parentNode.collapse();
}
},collapseAll:function(){
if(this.parentNode){
this.parentNode.collapseAll();
}
this.collapse();
},hideChildren:function(){
if(this.booted){
this.tree.toggler.hide(this.containerNode);
}else{
this.containerNode.style.display="none";
}
},showChildren:function(){
if(this.booted){
this.tree.toggler.show(this.containerNode);
}else{
this.containerNode.style.display="block";
}
},startMe:function(){
this.booted=true;
for(var i=0;i<this.children.length;i++){
this.children[i].startMe();
}
},addChild:function(_5f6){
this.tree.addChild.call(this,_5f6);
}});
dojo.widget.TreeNav.DefaultToggle=function(){
this.show=function(node){
node.style.display="block";
};
this.hide=function(node){
node.style.display="none";
};
};
dojo.provide("dojo.widget.LayoutPane");
dojo.require("dojo.widget.*");
dojo.widget.tags.addParseTreeHandler("dojo:LayoutPane");
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,_5fa,_5fb,_5fc){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_5fa){
this.mimetype=_5fa;
}
if(_5fb){
this.transport=_5fb;
}
if(arguments.length>=4){
this.changeUrl=_5fc;
}
}
};
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,_601){
},handle:function(){
},abort:function(){
},fromKwArgs:function(_602){
if(_602["url"]){
_602.url=_602.url.toString();
}
if(_602["formNode"]){
_602.formNode=dojo.byId(_602.formNode);
}
if(!_602["method"]&&_602["formNode"]&&_602["formNode"].method){
_602.method=_602["formNode"].method;
}
if(!_602["handle"]&&_602["handler"]){
_602.handle=_602.handler;
}
if(!_602["load"]&&_602["loaded"]){
_602.load=_602.loaded;
}
if(!_602["changeUrl"]&&_602["changeURL"]){
_602.changeUrl=_602.changeURL;
}
_602.encoding=dojo.lang.firstValued(_602["encoding"],djConfig["bindEncoding"],"");
_602.sendTransport=dojo.lang.firstValued(_602["sendTransport"],djConfig["ioSendTransport"],false);
var _603=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_603(_602[fn])){
continue;
}
if(_603(_602["handle"])){
_602[fn]=_602.handle;
}
}
dojo.lang.mixin(this,_602);
}});
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(_60a){
if(!(_60a instanceof dojo.io.Request)){
try{
_60a=new dojo.io.Request(_60a);
}
catch(e){
dojo.debug(e);
}
}
var _60b="";
if(_60a["transport"]){
_60b=_60a["transport"];
if(!this[_60b]){
return _60a;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_60a))){
_60b=tmp;
}
}
if(_60b==""){
return _60a;
}
}
this[_60b].bind(_60a);
_60a.bindSuccess=true;
return _60a;
};
dojo.io.queueBind=function(_60e){
if(!(_60e instanceof dojo.io.Request)){
try{
_60e=new dojo.io.Request(_60e);
}
catch(e){
dojo.debug(e);
}
}
var _60f=_60e.load;
_60e.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_60f.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _611=_60e.error;
_60e.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_611.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_60e);
dojo.io._dispatchNextQueueBind();
return _60e;
};
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,_614){
var _615=new Object();
var _616="";
var enc=/utf/i.test(_614||"")?encodeURIComponent:dojo.string.encodeAscii;
for(var x in map){
if(!_615[x]){
_616+=enc(x)+"="+enc(map[x])+"&";
}
}
return _616;
};
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 _61a=false;
var _61b=node.getElementsByTagName("input");
dojo.lang.forEach(_61b,function(_61c){
if(_61a){
return;
}
if(_61c.getAttribute("type")=="file"){
_61a=true;
}
});
return _61a;
};
dojo.io.formHasFile=function(_61d){
return dojo.io.checkChildrenForFile(_61d);
};
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(_620,_621,_622){
if((!_620)||(!_620.tagName)||(!_620.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_622){
_622=dojo.io.formFilter;
}
var enc=/utf/i.test(_621||"")?encodeURIComponent:dojo.string.encodeAscii;
var _624=[];
for(var i=0;i<_620.elements.length;i++){
var elm=_620.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_622(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){
_624.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_624.push(name+"="+enc(elm.value));
}
}else{
_624.push(name+"="+enc(elm.value));
}
}
}
var _62a=_620.getElementsByTagName("input");
for(var i=0;i<_62a.length;i++){
var _62b=_62a[i];
if(_62b.type.toLowerCase()=="image"&&_62b.form==_620&&_622(_62b)){
var name=enc(_62b.name);
_624.push(name+"="+enc(_62b.value));
_624.push(name+".x=0");
_624.push(name+".y=0");
}
}
return _624.join("&")+"&";
};
dojo.io.setIFrameSrc=function(_62c,src,_62e){
try{
var r=dojo.render.html;
if(!_62e){
if(r.safari){
_62c.location=src;
}else{
frames[_62c.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_62c.contentWindow.document;
}else{
if(r.moz){
idoc=_62c.contentWindow;
}else{
if(r.safari){
idoc=_62c.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 _636=form.getElementsByTagName("input");
for(var i=0;i<_636.length;i++){
var _637=_636[i];
if(_637.type.toLowerCase()=="image"&&_637.form==form){
this.connect(_637,"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 _63e=false;
if(node.disabled||!node.name){
_63e=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_63e=node==this.clickedButton;
}else{
_63e=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _63e;
},connect:function(_63f,_640,_641){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_63f,_640,this,_641);
}else{
var fcn=dojo.lang.hitch(this,_641);
_63f[_640]=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 _644=this;
this.initialHref=window.location.href;
this.initialHash=window.location.hash;
this.moveForward=false;
var _645={};
this.useCache=false;
this.preventCache=false;
this.historyStack=[];
this.forwardStack=[];
this.historyIframe=null;
this.bookmarkAnchor=null;
this.locationTimer=null;
function getCacheKey(url,_647,_648){
return url+"|"+_647+"|"+_648.toLowerCase();
}
function addToCache(url,_64a,_64b,http){
_645[getCacheKey(url,_64a,_64b)]=http;
}
function getFromCache(url,_64e,_64f){
return _645[getCacheKey(url,_64e,_64f)];
}
this.clearCache=function(){
_645={};
};
function doLoad(_650,http,url,_653,_654){
if((http.status==200)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))){
var ret;
if(_650.method.toLowerCase()=="head"){
var _656=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _656;
};
var _657=_656.split(/[\r\n]+/g);
for(var i=0;i<_657.length;i++){
var pair=_657[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_650.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_650.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_650.mimetype=="application/xml")||(_650.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_654){
addToCache(url,_653,_650.method,http);
}
_650[(typeof _650.load=="function")?"load":"handle"]("load",ret,http);
}else{
var _65a=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_650[(typeof _650.error=="function")?"error":"handle"]("error",_65a,http);
}
}
function setHeaders(http,_65c){
if(_65c["headers"]){
for(var _65d in _65c["headers"]){
if(_65d.toLowerCase()=="content-type"&&!_65c["contentType"]){
_65c["contentType"]=_65c["headers"][_65d];
}else{
http.setRequestHeader(_65d,_65c["headers"][_65d]);
}
}
}
}
this.addToHistory=function(args){
var _65f=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 _662=_65f;
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){
_65f=function(){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+lh+"';",1);
}
_662();
};
}
this.forwardStack=[];
var _665=args["forward"]||args["forwardButton"];
var tfw=function(){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_665){
_665();
}
};
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":_65f,"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,_669){
var isp=_669.href.split("?");
if(isp.length<2){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
var _66b=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(_66b==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 _672=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_673){
return _672&&dojo.lang.inArray((_673["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_673["method"].toLowerCase(),["post","get","head"])&&!(_673["formNode"]&&dojo.io.formHasFile(_673["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_674){
if(!_674["url"]){
if(!_674["formNode"]&&(_674["backButton"]||_674["back"]||_674["changeUrl"]||_674["watchForURL"])&&(!djConfig.preventBackButtonFix)){
this.addToHistory(_674);
return true;
}
}
var url=_674.url;
var _676="";
if(_674["formNode"]){
var ta=_674.formNode.getAttribute("action");
if((ta)&&(!_674["url"])){
url=ta;
}
var tp=_674.formNode.getAttribute("method");
if((tp)&&(!_674["method"])){
_674.method=tp;
}
_676+=dojo.io.encodeForm(_674.formNode,_674.encoding,_674["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_674["file"]){
_674.method="post";
}
if(!_674["method"]){
_674.method="get";
}
if(_674.method.toLowerCase()=="get"){
_674.multipart=false;
}else{
if(_674["file"]){
_674.multipart=true;
}else{
if(!_674["multipart"]){
_674.multipart=false;
}
}
}
if(_674["backButton"]||_674["back"]||_674["changeUrl"]){
this.addToHistory(_674);
}
var _679=_674["content"]||{};
if(_674.sendTransport){
_679["dojo.transport"]="xmlhttp";
}
do{
if(_674.postContent){
_676=_674.postContent;
break;
}
if(_679){
_676+=dojo.io.argsFromMap(_679,_674.encoding);
}
if(_674.method.toLowerCase()=="get"||!_674.multipart){
break;
}
var t=[];
if(_676.length){
var q=_676.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(_674.file){
if(dojo.lang.isArray(_674.file)){
for(var i=0;i<_674.file.length;++i){
var o=_674.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=_674.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+"--","");
_676=t.join("\r\n");
}
}while(false);
var _67f=_674["sync"]?false:true;
var _680=_674["preventCache"]||(this.preventCache==true&&_674["preventCache"]!=false);
var _681=_674["useCache"]==true||(this.useCache==true&&_674["useCache"]!=false);
if(!_680&&_681){
var _682=getFromCache(url,_676,_674.method);
if(_682){
doLoad(_674,_682,url,_676,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_674);
var _684=false;
if(_67f){
this.inFlight.push({"req":_674,"http":http,"url":url,"query":_676,"useCache":_681});
this.startWatchingInFlight();
}
if(_674.method.toLowerCase()=="post"){
http.open("POST",url,_67f);
setHeaders(http,_674);
http.setRequestHeader("Content-Type",_674.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_674.contentType||"application/x-www-form-urlencoded"));
http.send(_676);
}else{
var _685=url;
if(_676!=""){
_685+=(_685.indexOf("?")>-1?"&":"?")+_676;
}
if(_680){
_685+=(dojo.string.endsWithAny(_685,"?","&")?"":(_685.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_674.method.toUpperCase(),_685,_67f);
setHeaders(http,_674);
http.send(null);
}
if(!_67f){
doLoad(_674,http,url,_676,_681);
}
_674.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_687,days,path,_68a,_68b){
var _68c=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_68c=d.toGMTString();
}
_687=escape(_687);
document.cookie=name+"="+_687+";"+(_68c!=-1?" expires="+_68c+";":"")+(path?"path="+path:"")+(_68a?"; domain="+_68a:"")+(_68b?"; 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,_696,_697,_698){
if(arguments.length==5){
_698=_696;
_696=null;
_697=null;
}
var _699=[],cookie,value="";
if(!_698){
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){
_699.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_699.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_696,_697);
};
dojo.io.cookie.getObjectCookie=function(name){
var _69c=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_69c={};
var _69d=cookie.split("&");
for(var i=0;i<_69d.length;i++){
var pair=_69d[i].split("=");
var _6a0=pair[1];
if(isNaN(_6a0)){
_6a0=unescape(pair[1]);
}
_69c[unescape(pair[0])]=_6a0;
}
}
return _69c;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _6a1=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_6a1=="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.*");
dojo.provide("dojo.widget.LayoutPane");
dojo.provide("dojo.widget.html.LayoutPane");
dojo.require("dojo.string.extras");
dojo.require("dojo.widget.LayoutPane");
dojo.require("dojo.widget.*");
dojo.require("dojo.event.*");
dojo.require("dojo.io.*");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.require("dojo.dom");
dojo.require("dojo.string");
dojo.widget.html.LayoutPane=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.LayoutPane,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.LayoutPane,{widgetType:"LayoutPane",isContainer:true,isChild:false,clientWidth:0,clientHeight:0,layoutChildPriority:"top-bottom",cssPath:dojo.uri.dojoUri("src/widget/templates/HtmlLayoutPane.css"),url:"inline",extractContent:true,parseContent:true,cacheContent:true,handler:"none",minWidth:0,minHeight:0,fillInTemplate:function(){
this.filterAllowed(this,"layoutChildPriority",["left-right","top-bottom"]);
dojo.style.insertCssFile(this.cssPath,null,true);
dojo.html.addClass(this.domNode,"dojoLayoutPane");
},postCreate:function(args,_6a3,_6a4){
for(var i=0;i<this.children.length;i++){
this._injectChild(this.children[i]);
}
if(this.handler!="none"){
this.setHandler(this.handler);
}
if(this.isVisible()){
this.loadContents();
}
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.url!="inline"){
this._downloadExternalContent(this.url,this.cacheContent);
}
}
this.isLoaded=true;
},setUrl:function(url){
this.url=url;
this.isLoaded=false;
if(this.isVisible()){
this.loadContents();
}
},_downloadExternalContent:function(url,_6a8){
dojo.deprecated("LayoutPane url parameter.","use LinkPane to download from a URL","0.4");
var node=this.containerNode||this.domNode;
node.innerHTML="Loading...";
var _6aa=this.extractContent;
var _6ab=this.parseContent;
var self=this;
dojo.io.bind({url:url,useCache:_6a8,mimetype:"text/html",handler:function(type,data,e){
if(type=="load"){
if(_6aa){
var _6b0=data.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_6b0){
data=_6b0[1];
}
}
node.innerHTML=data;
if(_6ab){
var _6b1=new dojo.xml.Parse();
var frag=_6b1.parseElement(node,null,true);
dojo.widget.getParser().createComponents(frag);
}
self.onResized();
}else{
node.innerHTML="Error loading '"+url+"' ("+e.status+" "+e.statusText+")";
}
}});
},setHandler:function(_6b3){
var fcn=dojo.lang.isFunction(_6b3)?_6b3:window[_6b3];
if(!dojo.lang.isFunction(fcn)){
throw new Error("Unable to set handler, '"+_6b3+"' not a function.");
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
if(dojo.lang.isFunction(this.handler)){
dojo.deprecated("use LinkPane to download content from a java function","0.4");
this.handler(this,this.domNode);
return false;
}
return true;
},filterAllowed:function(node,_6b6,_6b7){
if(!dojo.lang.inArray(_6b7,node[_6b6])){
node[_6b6]=_6b7[0];
}
},layoutChildren:function(){
var kids={"left":[],"right":[],"top":[],"bottom":[],"client":[],"flood":[]};
var hits=0;
for(var i=0;i<this.children.length;i++){
if(this.hasLayoutAlign(this.children[i])){
kids[this.children[i].layoutAlign].push(this.children[i]);
hits++;
}
}
if(!hits){
return;
}
var _6bb=this.containerNode||this.domNode;
this.clientWidth=dojo.style.getContentWidth(_6bb);
this.clientHeight=dojo.style.getContentHeight(_6bb);
this.clientRect={};
this.clientRect["left"]=dojo.style.getPixelValue(_6bb,"padding-left",true);
this.clientRect["right"]=dojo.style.getPixelValue(_6bb,"padding-right",true);
this.clientRect["top"]=dojo.style.getPixelValue(_6bb,"padding-top",true);
this.clientRect["bottom"]=dojo.style.getPixelValue(_6bb,"padding-bottom",true);
this._layoutCenter(kids,"flood");
if(this.layoutChildPriority=="top-bottom"){
this._layoutFloat(kids,"top");
this._layoutFloat(kids,"bottom");
this._layoutFloat(kids,"left");
this._layoutFloat(kids,"right");
}else{
this._layoutFloat(kids,"left");
this._layoutFloat(kids,"right");
this._layoutFloat(kids,"top");
this._layoutFloat(kids,"bottom");
}
this._layoutCenter(kids,"client");
},_layoutFloat:function(kids,_6bd){
var ary=kids[_6bd];
var lr=(_6bd=="right")?"right":"left";
var tb=(_6bd=="bottom")?"bottom":"top";
for(var i=0;i<ary.length;i++){
var elm=ary[i];
elm.domNode.style[lr]=this.clientRect[lr]+"px";
elm.domNode.style[tb]=this.clientRect[tb]+"px";
if((_6bd=="top")||(_6bd=="bottom")){
dojo.style.setOuterWidth(elm.domNode,this.clientWidth);
var _6c3=dojo.style.getOuterHeight(elm.domNode);
this.clientHeight-=_6c3;
this.clientRect[_6bd]+=_6c3;
}else{
dojo.style.setOuterHeight(elm.domNode,this.clientHeight);
var _6c4=dojo.style.getOuterWidth(elm.domNode);
this.clientWidth-=_6c4;
this.clientRect[_6bd]+=_6c4;
}
}
},_layoutCenter:function(kids,_6c6){
var ary=kids[_6c6];
for(var i=0;i<ary.length;i++){
var elm=ary[i];
elm.domNode.style.left=this.clientRect.left+"px";
elm.domNode.style.top=this.clientRect.top+"px";
dojo.style.setOuterWidth(elm.domNode,this.clientWidth);
dojo.style.setOuterHeight(elm.domNode,this.clientHeight);
}
},hasLayoutAlign:function(_6ca){
return dojo.lang.inArray(["left","right","top","bottom","client","flood"],_6ca.layoutAlign);
},addChild:function(_6cb,_6cc,pos,ref,_6cf){
this._injectChild(_6cb);
dojo.widget.html.LayoutPane.superclass.addChild.call(this,_6cb,_6cc,pos,ref,_6cf);
this.resizeSoon();
},_injectChild:function(_6d0){
if(this.hasLayoutAlign(_6d0)){
_6d0.domNode.style.position="absolute";
_6d0.isChild=true;
this.filterAllowed(_6d0,"layoutAlign",["none","left","top","right","bottom","client","flood"]);
dojo.html.addClass(_6d0.domNode,"dojoAlign"+dojo.string.capitalize(_6d0.layoutAlign));
}
},removeChild:function(pane){
dojo.widget.html.LayoutPane.superclass.removeChild.call(this,pane);
dojo.dom.removeNode(pane.domNode);
this.resizeSoon();
},onResized:function(){
if(!this.isVisible()){
return;
}
this.layoutChildren();
this.notifyChildrenOfResize();
},resizeTo:function(w,h){
w=Math.max(w,this.getMinWidth());
h=Math.max(h,this.getMinHeight());
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},show:function(){
this.loadContents();
this.domNode.style.display="";
this.onResized();
this.domNode.style.display="none";
this.domNode.style.visibility="";
dojo.widget.html.LayoutPane.superclass.show.call(this);
},getMinWidth:function(){
var w=this.minWidth;
if((this.layoutAlign=="left")||(this.layoutAlign=="right")){
w=dojo.style.getOuterWidth(this.domNode);
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="left")||(a=="right")||(a=="client")){
if(dojo.lang.isFunction(ch.getMinWidth)){
w+=ch.getMinWidth();
}
}
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="top")||(a=="bottom")){
if(dojo.lang.isFunction(ch.getMinWidth)){
w=Math.max(w,ch.getMinWidth());
}
}
}
return w;
},getMinHeight:function(){
var h=this.minHeight;
if((this.layoutAlign=="top")||(this.layoutAlign=="bottom")){
h=dojo.style.getOuterHeight(this.domNode);
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="top")||(a=="bottom")||(a=="client")){
if(dojo.lang.isFunction(ch.getMinHeight)){
h+=ch.getMinHeight();
}
}
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="left")||(a=="right")){
if(dojo.lang.isFunction(ch.getMinHeight)){
h=Math.max(h,ch.getMinHeight());
}
}
}
return h;
}});
dojo.lang.extend(dojo.widget.Widget,{layoutAlign:"none"});
dojo.provide("dojo.widget.PaneSet");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.LayoutPane");
dojo.require("dojo.event.*");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.widget.tags.addParseTreeHandler("dojo:PaneSet");
dojo.widget.tags.addParseTreeHandler("dojo:PaneSetPane");
dojo.widget.PaneSet=function(){
dojo.widget.html.LayoutPane.call(this);
};
dojo.inherits(dojo.widget.PaneSet,dojo.widget.html.LayoutPane);
dojo.lang.extend(dojo.widget.PaneSet,{widgetType:"PaneSet",templateString:"<div class=\"PaneSetContainer\" dojoAttachPoint=\"paneSetNode\">\n    <div class=\"PaneSetButtonHolder\" dojoAttachPoint=\"paneSetControlContainerNode\">\n        <a class=\"PaneSetButtonRight\" href=\"javascript:void(0);\" dojoAttachPoint=\"nextButton\"></a>\n        <a class=\"PaneSetButtonLeft\" href=\"javascript:void(0)\" dojoAttachPoint=\"previousButton\"></a>\n        <span class=\"PaneLabel\" dojoAttachPoint=\"paneLabel\"></span>\n    </div>\n    <div class=\"PaneSetText\" dojoAttachPoint=\"paneSetPanelContainerNode\"></div>\n</div>\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/PaneSet.css"),selected:null,paneSetNode:null,paneSetPanelContainerNode:null,paneSetControlContainerNode:null,paneLabel:null,previousButton:null,nextButton:null,nextButtonLabel:"Next",previousButtonLabel:"Previous",hideDisabledButtons:false,fillInTemplate:function(args,frag){
dojo.event.connect(this.nextButton,"onclick",this,"nextPanel");
dojo.event.connect(this.previousButton,"onclick",this,"previousPanel");
this.nextButton.innerHTML=this.nextButtonLabel;
this.previousButton.innerHTML=this.previousButtonLabel;
},checkButtons:function(){
this.nextButton.disabled=!this.hasNextPanel();
this.setButtonClass(this.nextButton);
this.previousButton.disabled=!this.hasPreviousPanel();
this.setButtonClass(this.previousButton);
},setButtonClass:function(_6de){
if(!this.hideDisabledButtons){
_6de.style.display="";
if(_6de.disabled){
dojo.html.addClass(_6de,"PaneSetButtonDisabled");
}else{
dojo.html.removeClass(_6de,"PaneSetButtonDisabled");
}
}else{
_6de.style.display=_6de.disabled?"none":"";
}
},registerChild:function(_6df,_6e0){
dojo.widget.PaneSet.superclass.registerChild.call(this,_6df,_6e0);
this.paneSetPanelContainerNode.appendChild(_6df.domNode);
_6df.hide();
if(!this.selected){
this.onSelected(_6df);
}
this.checkButtons();
},onSelected:function(_6e1){
if(this.selected){
this.selected.hide();
}
_6e1.show();
this.selected=_6e1;
this.paneLabel.innerHTML=this.selected.paneLabel;
},getPanels:function(){
return this.getChildrenOfType("PaneSetPane",false);
},selectedIndex:function(){
if(this.selected){
return dojo.lang.indexOf(this.getPanels(),this.selected);
}
return -1;
},nextPanel:function(){
var _6e2=this.selectedIndex();
if(_6e2>-1){
var _6e3=this.getPanels();
if(_6e3[_6e2+1]){
this.onSelected(_6e3[_6e2+1]);
}
}
this.checkButtons();
this.nextButton.blur();
dojo.html.clearSelection();
},previousPanel:function(){
var _6e4=this.selectedIndex();
if(_6e4>-1){
var _6e5=this.getPanels();
if(_6e5[_6e4-1]){
this.onSelected(_6e5[_6e4-1]);
}
}
this.checkButtons();
this.previousButton.blur();
dojo.html.clearSelection();
},hasNextPanel:function(){
var _6e6=this.selectedIndex();
return (_6e6<(this.getPanels().length-1));
},hasPreviousPanel:function(){
var _6e7=this.selectedIndex();
return (_6e7>0);
}});
dojo.widget.PaneSetPane=function(){
dojo.widget.html.LayoutPane.call(this);
};
dojo.inherits(dojo.widget.PaneSetPane,dojo.widget.html.LayoutPane);
dojo.lang.extend(dojo.widget.PaneSetPane,{widgetType:"PaneSetPane",paneLabel:"Select Page"});

