/*
	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);
_76.send(null);
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.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 _df in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[_df](wh)){
return _df;
}
}
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(_e3,_e4){
if(dojo.lang.isArray(_e4)){
var _e5=_e4;
for(var i in _e5){
var _e7=_e5[i];
if(dojo.lang.isOfType(_e3,_e7)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(_e4)){
_e4=_e4.toLowerCase();
}
switch(_e4){
case Array:
case "array":
return dojo.lang.isArray(_e3);
break;
case Function:
case "function":
return dojo.lang.isFunction(_e3);
break;
case String:
case "string":
return dojo.lang.isString(_e3);
break;
case Number:
case "number":
return dojo.lang.isNumber(_e3);
break;
case "numeric":
return dojo.lang.isNumeric(_e3);
break;
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_e3);
break;
case Object:
case "object":
return dojo.lang.isObject(_e3);
break;
case "pureobject":
return dojo.lang.isPureObject(_e3);
break;
case "builtin":
return dojo.lang.isBuiltIn(_e3);
break;
case "alien":
return dojo.lang.isAlien(_e3);
break;
case "undefined":
return dojo.lang.isUndefined(_e3);
break;
case null:
case "null":
return (_e3===null);
break;
case "optional":
return ((_e3===null)||dojo.lang.isUndefined(_e3));
break;
default:
if(dojo.lang.isFunction(_e4)){
return (_e3 instanceof _e4);
}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.extras");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.setTimeout=function(_e8,_e9){
var _ea=window,argsStart=2;
if(!dojo.lang.isFunction(_e8)){
_ea=_e8;
_e8=_e9;
_e9=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_e8)){
_e8=_ea[_e8];
}
var _eb=[];
for(var i=argsStart;i<arguments.length;i++){
_eb.push(arguments[i]);
}
return setTimeout(function(){
_e8.apply(_ea,_eb);
},_e9);
};
dojo.lang.getNameInObj=function(ns,_ee){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_ee){
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(_f3){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(_f3.length>2)?_f3[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};
switch(_f3.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=_f3[0];
ao.adviceFunc=_f3[1];
break;
case 3:
if((dl.isObject(_f3[0]))&&(dl.isString(_f3[1]))&&(dl.isString(_f3[2]))){
ao.adviceType="after";
ao.srcObj=_f3[0];
ao.srcFunc=_f3[1];
ao.adviceFunc=_f3[2];
}else{
if((dl.isString(_f3[1]))&&(dl.isString(_f3[2]))){
ao.srcFunc=_f3[1];
ao.adviceFunc=_f3[2];
}else{
if((dl.isObject(_f3[0]))&&(dl.isString(_f3[1]))&&(dl.isFunction(_f3[2]))){
ao.adviceType="after";
ao.srcObj=_f3[0];
ao.srcFunc=_f3[1];
var _f6=dojo.lang.nameAnonFunc(_f3[2],ao.adviceObj);
ao.adviceFunc=_f6;
}else{
if((dl.isFunction(_f3[0]))&&(dl.isObject(_f3[1]))&&(dl.isString(_f3[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _f6=dojo.lang.nameAnonFunc(_f3[0],ao.srcObj);
ao.srcFunc=_f6;
ao.adviceObj=_f3[1];
ao.adviceFunc=_f3[2];
}
}
}
}
break;
case 4:
if((dl.isObject(_f3[0]))&&(dl.isObject(_f3[2]))){
ao.adviceType="after";
ao.srcObj=_f3[0];
ao.srcFunc=_f3[1];
ao.adviceObj=_f3[2];
ao.adviceFunc=_f3[3];
}else{
if((dl.isString(_f3[0]))&&(dl.isString(_f3[1]))&&(dl.isObject(_f3[2]))){
ao.adviceType=_f3[0];
ao.srcObj=dj_global;
ao.srcFunc=_f3[1];
ao.adviceObj=_f3[2];
ao.adviceFunc=_f3[3];
}else{
if((dl.isString(_f3[0]))&&(dl.isFunction(_f3[1]))&&(dl.isObject(_f3[2]))){
ao.adviceType=_f3[0];
ao.srcObj=dj_global;
var _f6=dojo.lang.nameAnonFunc(_f3[1],dj_global);
ao.srcFunc=_f6;
ao.adviceObj=_f3[2];
ao.adviceFunc=_f3[3];
}else{
if(dl.isObject(_f3[1])){
ao.srcObj=_f3[1];
ao.srcFunc=_f3[2];
ao.adviceObj=dj_global;
ao.adviceFunc=_f3[3];
}else{
if(dl.isObject(_f3[2])){
ao.srcObj=dj_global;
ao.srcFunc=_f3[1];
ao.adviceObj=_f3[2];
ao.adviceFunc=_f3[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=_f3[1];
ao.adviceFunc=_f3[2];
ao.aroundFunc=_f3[3];
}
}
}
}
}
break;
case 6:
ao.srcObj=_f3[1];
ao.srcFunc=_f3[2];
ao.adviceObj=_f3[3];
ao.adviceFunc=_f3[4];
ao.aroundFunc=_f3[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=_f3[1];
ao.srcFunc=_f3[2];
ao.adviceObj=_f3[3];
ao.adviceFunc=_f3[4];
ao.aroundObj=_f3[5];
ao.aroundFunc=_f3[6];
ao.once=_f3[7];
ao.delay=_f3[8];
ao.rate=_f3[9];
ao.adviceMsg=_f3[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 _f9=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);
}
mjp.kwAddAdvice(ao);
return mjp;
};
this.connectBefore=function(){
var _fa=["before"];
for(var i=0;i<arguments.length;i++){
_fa.push(arguments[i]);
}
return this.connect.apply(this,_fa);
};
this.connectAround=function(){
var _fc=["around"];
for(var i=0;i<arguments.length;i++){
_fc.push(arguments[i]);
}
return this.connect.apply(this,_fc);
};
this._kwConnectImpl=function(_fe,_ff){
var fn=(_ff)?"disconnect":"connect";
if(typeof _fe["srcFunc"]=="function"){
_fe.srcObj=_fe["srcObj"]||dj_global;
var _101=dojo.lang.nameAnonFunc(_fe.srcFunc,_fe.srcObj);
_fe.srcFunc=_101;
}
if(typeof _fe["adviceFunc"]=="function"){
_fe.adviceObj=_fe["adviceObj"]||dj_global;
var _101=dojo.lang.nameAnonFunc(_fe.adviceFunc,_fe.adviceObj);
_fe.adviceFunc=_101;
}
return dojo.event[fn]((_fe["type"]||_fe["adviceType"]||"after"),_fe["srcObj"]||dj_global,_fe["srcFunc"],_fe["adviceObj"]||_fe["targetObj"]||dj_global,_fe["adviceFunc"]||_fe["targetFunc"],_fe["aroundObj"],_fe["aroundFunc"],_fe["once"],_fe["delay"],_fe["rate"],_fe["adviceMsg"]||false);
};
this.kwConnect=function(_102){
return this._kwConnectImpl(_102,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(_105){
return this._kwConnectImpl(_105,true);
};
};
dojo.event.MethodInvocation=function(_106,obj,args){
this.jp_=_106;
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,_10e){
this.object=obj||dj_global;
this.methodname=_10e;
this.methodfunc=this.object[_10e];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_110){
if(!obj){
obj=dj_global;
}
if(!obj[_110]){
obj[_110]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_110]))&&(!dojo.lang.isAlien(obj[_110]))){
return null;
}
}
var _111=_110+"$joinpoint";
var _112=_110+"$joinpoint$method";
var _113=obj[_111];
if(!_113){
var _114=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_114=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_111,_112,_110]);
}
}
obj[_112]=obj[_110];
_113=obj[_111]=new dojo.event.MethodJoinPoint(obj,_112);
obj[_110]=function(){
var args=[];
if((_114)&&(!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)&&(_114)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x]));
}else{
args.push(arguments[x]);
}
}
}
return _113.run.apply(_113,args);
};
}
return _113;
};
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 _11a=[];
for(var x=0;x<args.length;x++){
_11a[x]=args[x];
}
var _11c=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _11e=marr[0]||dj_global;
var _11f=marr[1];
if(!_11e[_11f]){
dojo.raise("function \""+_11f+"\" does not exist on \""+_11e+"\"");
}
var _120=marr[2]||dj_global;
var _121=marr[3];
var msg=marr[6];
var _123;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _11e[_11f].apply(_11e,to.args);
}};
to.args=_11a;
var _125=parseInt(marr[4]);
var _126=((!isNaN(_125))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _129=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;
_11c(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_121){
_120[_121].call(_120,to);
}else{
if((_126)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_11e[_11f].call(_11e,to);
}else{
_11e[_11f].apply(_11e,args);
}
},_125);
}else{
if(msg){
_11e[_11f].call(_11e,to);
}else{
_11e[_11f].apply(_11e,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_11c,true);
}
var _12c;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_12c=mi.proceed();
}else{
if(this.methodfunc){
_12c=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_11c,true);
}
return (this.methodfunc)?_12c: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(_131,_132,_133,_134,_135,_136,once,_138,rate,_13a){
var arr=this.getArr(_135);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_131,_132,_133,_134,_138,rate,_13a];
if(once){
if(this.hasAdvice(_131,_132,_135,arr)>=0){
return;
}
}
if(_136=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_13d,_13e,_13f,arr){
if(!arr){
arr=this.getArr(_13f);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_13d)&&(arr[x][1]==_13e)){
ind=x;
}
}
return ind;
},removeAdvice:function(_143,_144,_145,once){
var arr=this.getArr(_145);
var ind=this.hasAdvice(_143,_144,_145,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_143,_144,_145,arr);
}
return true;
}});
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(node){
var _14b=node.tagName;
if(_14b.substr(0,5).toLowerCase()!="dojo:"){
if(_14b.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_14b.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _14d=node.className||node.getAttribute("class");
if((_14d)&&(_14d.indexOf)&&(_14d.indexOf("dojo-")!=-1)){
var _14e=_14d.split(" ");
for(var x=0;x<_14e.length;x++){
if((_14e[x].length>5)&&(_14e[x].indexOf("dojo-")>=0)){
return "dojo:"+_14e[x].substr(5).toLowerCase();
}
}
}
}
}
return _14b.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(_151,_152){
var node=_151.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_152&&node&&node.tagName&&node.tagName.toLowerCase()!=_152.toLowerCase()){
node=dojo.dom.nextElement(node,_152);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_154,_155){
var node=_154.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_155&&node&&node.tagName&&node.tagName.toLowerCase()!=_155.toLowerCase()){
node=dojo.dom.prevElement(node,_155);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_158){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_158&&_158.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_158);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_15a){
if(!node){
return null;
}
if(_15a){
_15a=_15a.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_15a&&_15a.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_15a);
}
return node;
};
dojo.dom.moveChildren=function(_15b,_15c,trim){
var _15e=0;
if(trim){
while(_15b.hasChildNodes()&&_15b.firstChild.nodeType==dojo.dom.TEXT_NODE){
_15b.removeChild(_15b.firstChild);
}
while(_15b.hasChildNodes()&&_15b.lastChild.nodeType==dojo.dom.TEXT_NODE){
_15b.removeChild(_15b.lastChild);
}
}
while(_15b.hasChildNodes()){
_15c.appendChild(_15b.firstChild);
_15e++;
}
return _15e;
};
dojo.dom.copyChildren=function(_15f,_160,trim){
var _162=_15f.cloneNode(true);
return this.moveChildren(_162,_160,trim);
};
dojo.dom.removeChildren=function(node){
var _164=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _164;
};
dojo.dom.replaceChildren=function(node,_166){
dojo.dom.removeChildren(node);
node.appendChild(_166);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_169,_16a){
var _16b=[];
var _16c=dojo.lang.isFunction(_169);
while(node){
if(!_16c||_169(node)){
_16b.push(node);
}
if(_16a&&_16b.length>0){
return _16b[0];
}
node=node.parentNode;
}
if(_16a){
return null;
}
return _16b;
};
dojo.dom.getAncestorsByTag=function(node,tag,_16f){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_16f);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_174,_175){
if(_175&&node){
node=node.parentNode;
}
while(node){
if(node==_174){
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,_178){
if(!_178){
_178="text/xml";
}
if(typeof DOMParser!="undefined"){
var _179=new DOMParser();
return _179.parseFromString(str,_178);
}else{
if(typeof ActiveXObject!="undefined"){
var _17a=new ActiveXObject("Microsoft.XMLDOM");
if(_17a){
_17a.async=false;
_17a.loadXML(str);
return _17a;
}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 _17c=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_17c.importNode(tmp.childNodes.item(i),true);
}
return _17c;
}
return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_17f){
if(_17f.firstChild){
_17f.insertBefore(node,_17f.firstChild);
}else{
_17f.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_182){
if(_182!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _183=ref.parentNode;
_183.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_186){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_186!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_186);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_18a){
if((!node)||(!ref)||(!_18a)){
return false;
}
switch(_18a.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,_18c,_18d){
var _18e=_18c.childNodes;
if(!_18e.length){
_18c.appendChild(node);
return true;
}
var _18f=null;
for(var i=0;i<_18e.length;i++){
var _191=_18e.item(i)["getAttribute"]?parseInt(_18e.item(i).getAttribute("dojoinsertionindex")):-1;
if(_191<_18d){
_18f=_18e.item(i);
}
}
if(_18f){
return dojo.dom.insertAfter(node,_18f);
}else{
return dojo.dom.insertBefore(node,_18e.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _194="";
if(node==null){
return _194;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_194+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_194+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _194;
}
};
dojo.dom.collectionToArray=function(_196){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead");
return dojo.lang.toArray(_196);
};
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(_19a){
var _19b={};
var _19c=dojo.dom.getTagName(_19a);
_19b[_19c]=new Array(_19a.tagName);
var _19d=this.parseAttributes(_19a);
for(var attr in _19d){
if(!_19b[attr]){
_19b[attr]=[];
}
_19b[attr][_19b[attr].length]=_19d[attr];
}
var _19f=_19a.childNodes;
for(var _1a0 in _19f){
switch(_19f[_1a0].nodeType){
case dojo.dom.ELEMENT_NODE:
_19b[_19c].push(this.parseElement(_19f[_1a0]));
break;
case dojo.dom.TEXT_NODE:
if(_19f.length==1){
if(!_19b[_19a.tagName]){
_19b[_19c]=[];
}
_19b[_19c].push({value:_19f[0].nodeValue});
}
break;
}
}
return _19b;
};
this.parseElement=function(node,_1a2,_1a3,_1a4){
var _1a5={};
var _1a6=dojo.dom.getTagName(node);
_1a5[_1a6]=[];
if((!_1a3)||(_1a6.substr(0,4).toLowerCase()=="dojo")){
var _1a7=this.parseAttributes(node);
for(var attr in _1a7){
if((!_1a5[_1a6][attr])||(typeof _1a5[_1a6][attr]!="array")){
_1a5[_1a6][attr]=[];
}
_1a5[_1a6][attr].push(_1a7[attr]);
}
_1a5[_1a6].nodeRef=node;
_1a5.tagName=_1a6;
_1a5.index=_1a4||0;
}
var _1a9=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_1a9++;
var ctn=dojo.dom.getTagName(tcn);
if(!_1a5[ctn]){
_1a5[ctn]=[];
}
_1a5[ctn].push(this.parseElement(tcn,true,_1a3,_1a9));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_1a5[ctn][_1a5[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_1a5[_1a6].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _1a5;
};
this.parseAttributes=function(node){
var _1ae={};
var atts=node.attributes;
for(var i=0;i<atts.length;i++){
var _1b1=atts.item(i);
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_1b1){
continue;
}
if((typeof _1b1=="object")&&(typeof _1b1.nodeValue=="undefined")||(_1b1.nodeValue==null)||(_1b1.nodeValue=="")){
continue;
}
}
var nn=(_1b1.nodeName.indexOf("dojo:")==-1)?_1b1.nodeName:_1b1.nodeName.split("dojo:")[1];
_1ae[nn]={value:_1b1.nodeValue};
}
return _1ae;
};
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.hitch=function(_1b3,_1b4){
if(dojo.lang.isString(_1b4)){
var fcn=_1b3[_1b4];
}else{
var fcn=_1b4;
}
return function(){
return fcn.apply(_1b3,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1b6,_1b7){
var nso=(_1b7||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_1b6){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1b6;
return ret;
};
dojo.lang.forward=function(_1bb){
return function(){
return this[_1bb].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _1be=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_1be.push(arguments[x]);
}
var _1c0=func.length-_1be.length;
function gather(_1c1,_1c2,_1c3){
var _1c4=_1c3;
var _1c5=_1c2.slice(0);
for(var x=0;x<_1c1.length;x++){
_1c5.push(_1c1[x]);
}
_1c3=_1c3-_1c1.length;
if(_1c3<=0){
var res=func.apply(ns,_1c5);
_1c3=_1c4;
return res;
}else{
return function(){
return gather(arguments,_1c5,_1c3);
};
}
}
return gather([],_1be,_1c0);
};
dojo.lang.curryArguments=function(ns,func,args,_1cb){
var _1cc=[];
var x=_1cb||0;
for(x=_1cb;x<args.length;x++){
_1cc.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_1cc));
};
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,_1d2,_1d3){
if(!farr.length){
if(typeof _1d3=="function"){
_1d3();
}
return;
}
if((typeof _1d2=="undefined")&&(typeof cb=="number")){
_1d2=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1d2){
_1d2=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1d2,_1d3);
},_1d2);
};
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,_246){
if(_246){
this.destroyDescendants(_245);
}
this.uninitialize();
this.destroyRendering(_245);
dojo.widget.manager.removeById(this.widgetId);
},destroyDescendants:function(_247){
for(var x=0;x<this.children.length;x++){
this.children[x].destroy(_247,true);
}
this.children=[];
},destroyChildren:function(_249){
_249=(!_249)?function(){
return true;
}:_249;
for(var x=0;x<this.children.length;x++){
var tc=this.children[x];
if((tc)&&(_249(tc))){
tc.destroy();
}
}
},destroyChildrenOfType:function(type){
type=type.toLowerCase();
this.destroyChildren(function(item){
if(item.widgetType.toLowerCase()==type){
return true;
}else{
return false;
}
});
},getChildrenOfType:function(type,_24f){
var ret=[];
var _251=dojo.lang.isFunction(type);
if(!_251){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_251){
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(_24f){
ret=ret.concat(this.children[x].getChildrenOfType(type,_24f));
}
}
return ret;
},getDescendants:function(){
var _253=[];
var _254=[this];
var elem;
while(elem=_254.pop()){
_253.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_254.push(elem);
});
}
return _253;
},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 _25b;
var _25c=dojo.widget.lcArgsCache[this.widgetType];
if(_25c==null){
_25c={};
for(var y in this){
_25c[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_25c;
}
var _25e={};
for(var x in args){
if(!this[x]){
var y=_25c[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_25e[x]){
continue;
}
_25e[x]=true;
if((typeof this[x])!=(typeof _25b)){
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 _260=args[x].split(";");
for(var y=0;y<_260.length;y++){
var si=_260[y].indexOf(":");
if((si!=-1)&&(_260[y].length>si)){
this[x][_260[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_260[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(_268){
},addChild:function(_269){
dj_unimplemented("dojo.widget.Widget.addChild");
return false;
},addChildAtIndex:function(_26a,_26b){
dj_unimplemented("dojo.widget.Widget.addChildAtIndex");
return false;
},removeChild:function(_26c){
dj_unimplemented("dojo.widget.Widget.removeChild");
return false;
},removeChildAtIndex:function(_26d){
dj_unimplemented("dojo.widget.Widget.removeChildAtIndex");
return false;
},resize:function(_26e,_26f){
this.setWidth(_26e);
this.setHeight(_26f);
},setWidth:function(_270){
if((typeof _270=="string")&&(_270.substr(-1)=="%")){
this.setPercentageWidth(_270);
}else{
this.setNativeWidth(_270);
}
},setHeight:function(_271){
if((typeof _271=="string")&&(_271.substr(-1)=="%")){
this.setPercentageHeight(_271);
}else{
this.setNativeHeight(_271);
}
},setPercentageHeight:function(_272){
return false;
},setNativeHeight:function(_273){
return false;
},setPercentageWidth:function(_274){
return false;
},setNativeWidth:function(_275){
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 _279=type.toLowerCase();
this[_279]=function(_27a,_27b,_27c,_27d,_27e){
return dojo.widget.buildWidgetFromParseTree(_279,_27a,_27b,_27c,_27d,_27e);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_27f,_280,_281){
var _282=_280.parseProperties(_27f["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_283,_284,_285){
var _286=_284.parseProperties(_283["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_289,_28a,_28b,_28c){
var _28d=type.split(":");
_28d=(_28d.length==2)?_28d[1]:type;
var _28e=_28c||_289.parseProperties(frag["dojo:"+_28d]);
var _28f=dojo.widget.manager.getImplementation(_28d);
if(!_28f){
throw new Error("cannot find \""+_28d+"\" widget");
}else{
if(!_28f.create){
throw new Error("\""+_28d+"\" widget object does not appear to implement *Widget");
}
}
_28e["dojoinsertionindex"]=_28b;
var ret=_28f.create(_28e,frag,_28a);
return ret;
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_291){
this.propertySetsList=[];
this.fragment=_291;
this.createComponents=function(_292,_293){
var _294=dojo.widget.tags;
var _295=[];
for(var item in _292){
var _297=false;
try{
if(_292[item]&&(_292[item]["tagName"])&&(_292[item]!=_292["nodeRef"])){
var tn=new String(_292[item]["tagName"]);
var tna=tn.split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_294[ltn]){
_297=true;
_292[item].tagName=ltn;
var ret=_294[ltn](_292[item],this,_293,_292[item]["index"]);
_295.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((!_297)&&(typeof _292[item]=="object")&&(_292[item]!=_292.nodeRef)&&(_292[item]!=_292["tagName"])){
_295.push(this.createComponents(_292[item],_293));
}
}
return _295;
};
this.parsePropertySets=function(_29d){
return [];
var _29e=[];
for(var item in _29d){
if((_29d[item]["tagName"]=="dojo:propertyset")){
_29e.push(_29d[item]);
}
}
this.propertySetsList.push(_29e);
return _29e;
};
this.parseProperties=function(_2a0){
var _2a1={};
for(var item in _2a0){
if((_2a0[item]==_2a0["tagName"])||(_2a0[item]==_2a0.nodeRef)){
}else{
if((_2a0[item]["tagName"])&&(dojo.widget.tags[_2a0[item].tagName.toLowerCase()])){
}else{
if((_2a0[item][0])&&(_2a0[item][0].value!="")){
try{
if(item.toLowerCase()=="dataprovider"){
var _2a3=this;
this.getDataProvider(_2a3,_2a0[item][0].value);
_2a1.dataProvider=this.dataProvider;
}
_2a1[item]=_2a0[item][0].value;
var _2a4=this.parseProperties(_2a0[item]);
for(var _2a5 in _2a4){
_2a1[_2a5]=_2a4[_2a5];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _2a1;
};
this.getDataProvider=function(_2a6,_2a7){
dojo.io.bind({url:_2a7,load:function(type,_2a9){
if(type=="load"){
_2a6.dataProvider=_2a9;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_2aa){
for(var x=0;x<this.propertySetsList.length;x++){
if(_2aa==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_2ac){
var _2ad=[];
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)){
_2ad.push(cpl);
}
}
return _2ad;
};
this.getPropertySets=function(_2b1){
var ppl="dojo:propertyproviderlist";
var _2b3=[];
var _2b4=_2b1["tagName"];
if(_2b1[ppl]){
var _2b5=_2b1[ppl].value.split(" ");
for(propertySetId in _2b5){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _2b6=this.getPropertySetById(propertySetId);
if(_2b6!=""){
_2b3.push(_2b6);
}
}else{
}
}
}
return (this.getPropertySetsByType(_2b4)).concat(_2b3);
};
this.createComponentFromScript=function(_2b7,_2b8,_2b9){
var ltn="dojo:"+_2b8.toLowerCase();
if(dojo.widget.tags[ltn]){
_2b9.fastMixIn=true;
return [dojo.widget.tags[ltn](_2b9,this,null,null,_2b9)];
}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,_2bd,_2be,_2bf){
function fromScript(_2c0,name,_2c2){
var _2c3=name.toLowerCase();
var _2c4="dojo:"+_2c3;
_2c2[_2c4]={dojotype:[{value:_2c3}],nodeRef:_2c0,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_2c0,name,_2c2,true);
}
if(typeof name!="string"&&typeof _2bd=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])");
return fromScript(name,_2bd,_2be);
}
_2bd=_2bd||{};
var _2c5=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_2be){
_2c5=true;
_2be=tn;
if(h){
document.body.appendChild(_2be);
}
}else{
if(_2bf){
dojo.dom.insertAtPosition(tn,_2be,_2bf);
}else{
tn=_2be;
}
}
var _2c8=fromScript(tn,name,_2bd);
if(!_2c8[0]||typeof _2c8[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_2c5){
if(_2c8[0].domNode.parentNode){
_2c8[0].domNode.parentNode.removeChild(_2c8[0].domNode);
}
}
return _2c8[0];
};
dojo.widget.fromScript=function(name,_2ca,_2cb,_2cc){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead");
return dojo.widget.createWidget(name,_2ca,_2cb,_2cc);
};
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 _2d2=new dojo.uri.Uri(arguments[i].toString());
var _2d3=new dojo.uri.Uri(uri.toString());
if(_2d2.path==""&&_2d2.scheme==null&&_2d2.authority==null&&_2d2.query==null){
if(_2d2.fragment!=null){
_2d3.fragment=_2d2.fragment;
}
_2d2=_2d3;
}else{
if(_2d2.scheme==null){
_2d2.scheme=_2d3.scheme;
if(_2d2.authority==null){
_2d2.authority=_2d3.authority;
if(_2d2.path.charAt(0)!="/"){
var path=_2d3.path.substring(0,_2d3.path.lastIndexOf("/")+1)+_2d2.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;
}
}
}
}
_2d2.path=segs.join("/");
}
}
}
}
uri="";
if(_2d2.scheme!=null){
uri+=_2d2.scheme+":";
}
if(_2d2.authority!=null){
uri+="//"+_2d2.authority;
}
uri+=_2d2.path;
if(_2d2.query!=null){
uri+="?"+_2d2.query;
}
if(_2d2.fragment!=null){
uri+="#"+_2d2.fragment;
}
}
this.uri=uri.toString();
var _2d7="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_2d7));
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){
_2d7="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_2d7));
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.widget._cssFiles={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(obj,_2da,_2db,_2dc){
var _2dd=_2da||obj.templatePath;
var _2de=_2db||obj.templateCssPath;
if(!_2de&&obj.templateCSSPath){
obj.templateCssPath=_2de=obj.templateCSSPath;
obj.templateCSSPath=null;
dj_deprecated("templateCSSPath is deprecated, use templateCssPath");
}
if(_2dd&&!(_2dd instanceof dojo.uri.Uri)){
_2dd=dojo.uri.dojoUri(_2dd);
dj_deprecated("templatePath should be of type dojo.uri.Uri");
}
if(_2de&&!(_2de instanceof dojo.uri.Uri)){
_2de=dojo.uri.dojoUri(_2de);
dj_deprecated("templateCssPath should be of type dojo.uri.Uri");
}
var _2df=dojo.widget.DomWidget.templates;
if(!obj["widgetType"]){
do{
var _2e0="__dummyTemplate__"+dojo.widget.buildFromTemplate.dummyCount++;
}while(_2df[_2e0]);
obj.widgetType=_2e0;
}
if((_2de)&&(!dojo.widget._cssFiles[_2de])){
dojo.style.insertCssFile(_2de);
obj.templateCssPath=null;
dojo.widget._cssFiles[_2de]=true;
}
var ts=_2df[obj.widgetType];
if(!ts){
_2df[obj.widgetType]={};
ts=_2df[obj.widgetType];
}
if(!obj.templateString){
obj.templateString=_2dc||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_2dd)){
var _2e2=dojo.hostenv.getText(_2dd);
if(_2e2){
var _2e3=_2e2.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_2e3){
_2e2=_2e3[1];
}
}else{
_2e2="";
}
obj.templateString=_2e2;
ts.string=_2e2;
}
if(!ts["string"]){
ts.string=obj.templateString;
}
};
dojo.widget.buildFromTemplate.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.attachTemplateNodes=function(_2e4,_2e5,_2e6){
var _2e7=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_2e4){
_2e4=_2e5.domNode;
}
if(_2e4.nodeType!=_2e7){
return;
}
var _2e9=_2e4.getElementsByTagName("*");
var _2ea=_2e5;
for(var x=-1;x<_2e9.length;x++){
var _2ec=(x==-1)?_2e4:_2e9[x];
var _2ed=[];
for(var y=0;y<this.attachProperties.length;y++){
var _2ef=_2ec.getAttribute(this.attachProperties[y]);
if(_2ef){
_2ed=_2ef.split(";");
for(var z=0;z<this.attachProperties.length;z++){
if((_2e5[_2ed[z]])&&(dojo.lang.isArray(_2e5[_2ed[z]]))){
_2e5[_2ed[z]].push(_2ec);
}else{
_2e5[_2ed[z]]=_2ec;
}
}
break;
}
}
var _2f1=_2ec.getAttribute(this.templateProperty);
if(_2f1){
_2e5[_2f1]=_2ec;
}
var _2f2=_2ec.getAttribute(this.eventAttachProperty);
if(_2f2){
var evts=_2f2.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _2f4=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _2f6=tevt.split(":");
tevt=trim(_2f6[0]);
_2f4=trim(_2f6[1]);
}
if(!_2f4){
_2f4=tevt;
}
var tf=function(){
var ntf=new String(_2f4);
return function(evt){
if(_2ea[ntf]){
_2ea[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2ec,tevt,tf,false,true);
}
}
for(var y=0;y<_2e6.length;y++){
var _2fa=_2ec.getAttribute(_2e6[y]);
if((_2fa)&&(_2fa.length)){
var _2f4=null;
var _2fb=_2e6[y].substr(4);
_2f4=trim(_2fa);
var tf=function(){
var ntf=new String(_2f4);
return function(evt){
if(_2ea[ntf]){
_2ea[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_2ec,_2fb,tf,false,true);
}
}
var _2fe=_2ec.getAttribute(this.onBuildProperty);
if(_2fe){
eval("var node = baseNode; var widget = targetObj; "+_2fe);
}
_2ec.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,_307,_308,_309,_30a){
this.buildFromTemplate(obj,_307,_308,_309);
var node=dojo.dom.createNodesFromText(obj.templateString,true)[0];
this.attachTemplateNodes(node,_30a||obj,dojo.widget.getDojoEventsFromStr(_309));
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(_30c,_30d,pos,ref,_310){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_30c,_30d,pos,ref,_310);
this.registerChild(_30c,_310);
}
return _30c;
},addWidgetAsDirectChild:function(_311,_312,pos,ref,_315){
if((!this.containerNode)&&(!_312)){
this.containerNode=this.domNode;
}
var cn=(_312)?_312:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
ref=cn.lastChild;
}
if(!_315){
_315=0;
}
_311.domNode.setAttribute("dojoinsertionindex",_315);
if(!ref){
cn.appendChild(_311.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_311.domNode,ref.parentNode,_315);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_311.domNode);
}else{
dojo.dom.insertAtPosition(_311.domNode,cn,pos);
}
}
}
},registerChild:function(_317,_318){
_317.dojoInsertionIndex=_318;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_318){
idx=i;
}
}
this.children.splice(idx+1,0,_317);
_317.parent=this;
_317.addedTo(this);
delete dojo.widget.manager.topWidgets[_317.widgetId];
},removeChild:function(_31b){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_31b){
this.children.splice(x,1);
break;
}
}
return _31b;
},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,_320){
var _321=this.getFragNodeRef(frag);
if(_320&&(_320.snarfChildDomOutput||!_321)){
_320.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_321);
}else{
if(_321){
if(this.domNode&&(this.domNode!==_321)){
var _322=_321.parentNode.replaceChild(this.domNode,_321);
}
}
}
if(_320){
_320.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _323=dojo.widget.getParser();
_323.createComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget.DomWidget.templates[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 ts=dojo.widget.DomWidget.templates[this.widgetType];
if(ts){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _32a=false;
var node=null;
var tstr=new String(this.templateString);
if((!this.templateNode)&&(this.templateString)){
_32a=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_32a){
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<_32a.length;i++){
var key=_32a[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _331;
if((kval)||(dojo.lang.isString(kval))){
_331=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_32a[i],_331);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_32a)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_32a){
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(_333,_334){
if(!_334){
_334=this;
}
return dojo.widget.attachTemplateNodes(_333,_334,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
var _335=this.domNode.parentNode.removeChild(this.domNode);
delete _335;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
return dojo.html.getInnerHeight(this.domNode.parentNode);
},getContainerWidth:function(){
return dojo.html.getInnerWidth(this.domNode.parentNode);
},createNodesFromText:function(){
dj_unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.widget.DomWidget.templates={};
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 _339=1;
for(var i=1;i<=n;i++){
_339*=i;
}
return _339;
};
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 _345=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_345.length;i++){
mean+=_345[i];
}
return mean/_345.length;
};
dojo.math.round=function(_348,_349){
if(!_349){
var _34a=1;
}else{
var _34a=Math.pow(10,_349);
}
return Math.round(_348*_34a)/_34a;
};
dojo.math.sd=function(){
var _34b=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_34b));
};
dojo.math.variance=function(){
var _34c=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,squares=0;
for(var i=0;i<_34c.length;i++){
mean+=_34c[i];
squares+=Math.pow(_34c[i],2);
}
return (squares/_34c.length)-Math.pow(mean/_34c.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _352=[];
if(step>0){
for(var i=a;i<b;i+=step){
_352.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_352.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _352;
};
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(_35a){
if(_35a){
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(_35b,_35c){
return dojo.graphics.color.blend(this.toRgb(),new Color(_35b).toRgb(),_35c);
}});
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,_35f){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_35f);
}
if(!_35f){
_35f=0;
}else{
if(_35f>1){
_35f=1;
}else{
if(_35f<-1){
_35f=-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*_35f));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_365){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_365));
};
dojo.graphics.color.extractRGB=function(_366){
var hex="0123456789abcdef";
_366=_366.toLowerCase();
if(_366.indexOf("rgb")==0){
var _368=_366.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_368.splice(1,3);
return ret;
}else{
var _36a=dojo.graphics.color.hex2rgb(_366);
if(_36a){
return _36a;
}else{
return dojo.graphics.color.named[_366]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _36c="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_36c+"]","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]=_36c.indexOf(rgb[i].charAt(0))*16+_36c.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 _37d=v-min;
s=(v==0)?0:_37d/v;
if(s==0){
h=0;
}else{
if(r==v){
h=60*(g-b)/_37d;
}else{
if(g==v){
h=120+60*(b-r)/_37d;
}else{
if(b==v){
h=240+60*(r-g)/_37d;
}
}
}
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 _384=h/60;
var i=Math.floor(_384);
var f=_384-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 _392=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_392/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_392>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_392;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_392);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_392);
}
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 _39e=dojo.style.getStyle(node,"-moz-box-sizing");
if(!_39e){
_39e=dojo.style.getStyle(node,"box-sizing");
}
return (_39e?_39e:dojo.style.boxSizing.contentBox);
}
};
dojo.style.isBorderBox=function(node){
return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox);
};
dojo.style.getUnitValue=function(node,_3a1,_3a2){
node=dojo.byId(node);
var _3a3={value:0,units:"px"};
var s=dojo.style.getComputedStyle(node,_3a1);
if(s==""||(s=="auto"&&_3a2)){
return _3a3;
}
if(dojo.lang.isUndefined(s)){
_3a3.value=NaN;
}else{
var _3a5=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3a5){
_3a3.value=NaN;
}else{
_3a3.value=Number(_3a5[1]);
_3a3.units=_3a5[2].toLowerCase();
}
}
return _3a3;
};
dojo.style.getPixelValue=function(node,_3a7,_3a8){
node=dojo.byId(node);
var _3a9=dojo.style.getUnitValue(node,_3a7,_3a8);
if(isNaN(_3a9.value)){
return 0;
}
if((_3a9.value)&&(_3a9.units!="px")){
return NaN;
}
return _3a9.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 _3ac=dojo.style.isPositionAbsolute(node);
var left=dojo.style.getPixelValue(node,"margin-left",_3ac);
var _3ae=dojo.style.getPixelValue(node,"margin-right",_3ac);
return left+_3ae;
};
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 _3b1=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width"));
return left+_3b1;
};
dojo.style.getPaddingWidth=function(node){
node=dojo.byId(node);
var left=dojo.style.getPixelValue(node,"padding-left",true);
var _3b4=dojo.style.getPixelValue(node,"padding-right",true);
return left+_3b4;
};
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,_3b9){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3b9-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
_3b9-=dojo.style.getMarginWidth(node);
if(!isNaN(_3b9)&&_3b9>0){
node.style.width=_3b9+"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 _3bb=dojo.style.isPositionAbsolute(node);
var top=dojo.style.getPixelValue(node,"margin-top",_3bb);
var _3bd=dojo.style.getPixelValue(node,"margin-bottom",_3bb);
return top+_3bd;
};
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 _3c0=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width"));
return top+_3c0;
};
dojo.style.getPaddingHeight=function(node){
node=dojo.byId(node);
var top=dojo.style.getPixelValue(node,"padding-top",true);
var _3c3=dojo.style.getPixelValue(node,"padding-bottom",true);
return top+_3c3;
};
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,_3c8){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_3c8-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
_3c8-=dojo.style.getMarginHeight(node);
if(!isNaN(_3c8)&&_3c8>0){
node.style.height=_3c8+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentWidth=function(node,_3ca){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3ca+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
if(!isNaN(_3ca)&&_3ca>0){
node.style.width=_3ca+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentHeight=function(node,_3cc){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_3cc+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
if(!isNaN(_3cc)&&_3cc>0){
node.style.height=_3cc+"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,_3cf){
node=dojo.byId(node);
var _3d0=(type=="top")?"offsetTop":"offsetLeft";
var _3d1=(type=="top")?"scrollTop":"scrollLeft";
var _3d2=(type=="top")?"y":"x";
var _3d3=0;
if(node["offsetParent"]){
if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==document.body){
var _3d4=document.body;
}else{
var _3d4=document.body.parentNode;
}
if(_3cf&&node.parentNode!=document.body){
_3d3-=dojo.style.sumAncestorProperties(node,_3d1);
}
do{
var n=node[_3d0];
_3d3+=isNaN(n)?0:n;
node=node.offsetParent;
}while(node!=_3d4&&node!=null);
}else{
if(node[_3d2]){
var n=node[_3d2];
_3d3+=isNaN(n)?0:n;
}
}
return _3d3;
};
dojo.style.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _3d8=0;
while(node){
var val=node[prop];
if(val){
_3d8+=val-0;
}
node=node.parentNode;
}
return _3d8;
};
dojo.style.totalOffsetLeft=function(node,_3db){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"left",_3db);
};
dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;
dojo.style.totalOffsetTop=function(node,_3dd){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"top",_3dd);
};
dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;
dojo.style.getAbsolutePosition=function(node,_3df){
node=dojo.byId(node);
var _3e0=[dojo.style.getAbsoluteX(node,_3df),dojo.style.getAbsoluteY(node,_3df)];
_3e0.x=_3e0[0];
_3e0.y=_3e0[1];
return _3e0;
};
dojo.style.styleSheet=null;
dojo.style.insertCssRule=function(_3e1,_3e2,_3e3){
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){
_3e3=dojo.style.styleSheet.cssRules.length;
}else{
if(dojo.style.styleSheet.rules){
_3e3=dojo.style.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.style.styleSheet.insertRule){
var rule=_3e1+" { "+_3e2+" }";
return dojo.style.styleSheet.insertRule(rule,_3e3);
}else{
if(dojo.style.styleSheet.addRule){
return dojo.style.styleSheet.addRule(_3e1,_3e2,_3e3);
}else{
return null;
}
}
};
dojo.style.removeCssRule=function(_3e5){
if(!dojo.style.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_3e5){
_3e5=dojo.style.styleSheet.rules.length;
dojo.style.styleSheet.removeRule(_3e5);
}
}else{
if(document.styleSheets[0]){
if(!_3e5){
_3e5=dojo.style.styleSheet.cssRules.length;
}
dojo.style.styleSheet.deleteRule(_3e5);
}
}
return true;
};
dojo.style.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3e7;
do{
_3e7=dojo.style.getStyle(node,"background-color");
if(_3e7.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3e7="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_3e7,["transparent",""]));
if(_3e7=="transparent"){
_3e7=[255,255,255,0];
}else{
_3e7=dojo.graphics.color.extractRGB(_3e7);
}
return _3e7;
};
dojo.style.getComputedStyle=function(node,_3e9,_3ea){
node=dojo.byId(node);
var _3eb=_3ea;
if(node.style.getPropertyValue){
_3eb=node.style.getPropertyValue(_3e9);
}
if(!_3eb){
if(document.defaultView){
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
_3eb=cs.getPropertyValue(_3e9);
}
}else{
if(node.currentStyle){
_3eb=node.currentStyle[dojo.style.toCamelCase(_3e9)];
}
}
}
return _3eb;
};
dojo.style.getStyle=function(node,_3ee){
node=dojo.byId(node);
var _3ef=dojo.style.toCamelCase(_3ee);
var _3f0=node.style[_3ef];
return (_3f0?_3f0:dojo.style.getComputedStyle(node,_3ee,_3f0));
};
dojo.style.toCamelCase=function(_3f1){
var arr=_3f1.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(_3f4){
return _3f4.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.style.setOpacity=function setOpacity(node,_3f6,_3f7){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_3f7){
if(_3f6>=1){
if(h.ie){
dojo.style.clearOpacity(node);
return;
}else{
_3f6=0.999999;
}
}else{
if(_3f6<0){
_3f6=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="+_3f6*100+")";
}
}
node.style.filter="Alpha(Opacity="+_3f6*100+")";
}else{
if(h.moz){
node.style.opacity=_3f6;
node.style.MozOpacity=_3f6;
}else{
if(h.safari){
node.style.opacity=_3f6;
node.style.KhtmlOpacity=_3f6;
}else{
node.style.opacity=_3f6;
}
}
}
};
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(_403,_404){
if(dojo.lang.isArray(_403)){
while(_403.length<4){
_403.push(0);
}
while(_403.length>4){
_403.pop();
}
var ret=_403;
}else{
var node=dojo.byId(_403);
var ret=[dojo.style.getAbsoluteX(node,_404),dojo.style.getAbsoluteY(node,_404),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,_40d,_40e){
var out="";
for(var i=0;i<_40d;i++){
out+=str;
if(_40e&&i<_40d-1){
out+=_40e;
}
}
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,_41d,_41e){
for(var name in _41d){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_41d[name]);
}
if(_41e){
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 _422=str.split(" ");
var _423="";
var len=_422.length;
for(var i=0;i<len;i++){
var word=_422[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_423+=word;
if(i<len-1){
_423+=" ";
}
}
return new String(_423);
};
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 _42a=escape(str);
var _42b,re=/%u([0-9A-F]{4})/i;
while((_42b=_42a.match(re))){
var num=Number("0x"+_42b[1]);
var _42d=escape("&#"+num+";");
ret+=_42a.substring(0,_42b.index)+_42d;
_42a=_42a.substring(_42b.index+_42b[0].length);
}
ret+=_42a.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,_433){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_433){
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,_43b){
if(_43b){
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,_43f,_440){
if(_440){
str=str.toLowerCase();
_43f=_43f.toLowerCase();
}
return str.indexOf(_43f)==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,_446){
if(_446=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_446=="\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,_448){
var _449=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_448){
_449.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_449.push(str.substr(prevcomma));
return _449;
};
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(_44b){
_44b=dojo.byId(_44b)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_44b.style.MozUserSelect="none";
}else{
if(h.safari){
_44b.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_44b.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_44d){
_44d=dojo.byId(_44d)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_44d.style.MozUserSelect="";
}else{
if(h.safari){
_44d.style.KhtmlUserSelect="";
}else{
if(h.ie){
_44d.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_44f){
_44f=dojo.byId(_44f);
if(document.selection&&document.body.createTextRange){
var _450=document.body.createTextRange();
_450.moveToElementText(_44f);
_450.select();
}else{
if(window["getSelection"]){
var _451=window.getSelection();
if(_451["selectAllChildren"]){
_451.selectAllChildren(_44f);
}
}
}
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _452=window.getSelection();
if(dojo.lang.isString(_452)){
return _452=="";
}else{
return _452.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 _45c=dojo.byId(node);
type=type.toLowerCase();
while((_45c)&&(_45c.nodeName.toLowerCase()!=type)){
if(_45c==(document["body"]||document["documentElement"])){
return null;
}
_45c=_45c.parentNode;
}
return _45c;
};
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,_468){
node=dojo.byId(node);
return dojo.lang.inArray(dojo.html.getClasses(node),_468);
};
dojo.html.prependClass=function(node,_46a){
node=dojo.byId(node);
if(!node){
return false;
}
_46a+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_46a);
};
dojo.html.addClass=function(node,_46c){
node=dojo.byId(node);
if(!node){
return false;
}
if(dojo.html.hasClass(node,_46c)){
return false;
}
_46c=dojo.string.trim(dojo.html.getClass(node)+" "+_46c);
return dojo.html.setClass(node,_46c);
};
dojo.html.setClass=function(node,_46e){
node=dojo.byId(node);
if(!node){
return false;
}
var cs=new String(_46e);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_46e);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_471,_472){
node=dojo.byId(node);
if(!node){
return false;
}
var _471=dojo.string.trim(new String(_471));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_472){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_471)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_471){
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,_477,_478){
node=dojo.byId(node);
dojo.html.removeClass(node,_478);
dojo.html.addClass(node,_477);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_479,_47a,_47b,_47c){
_47a=dojo.byId(_47a);
if(!_47a){
_47a=document;
}
var _47d=_479.split(/\s+/g);
var _47e=[];
if(_47c!=1&&_47c!=2){
_47c=0;
}
var _47f=new RegExp("(\\s|^)(("+_47d.join(")|(")+"))(\\s|$)");
if(!_47b){
_47b="*";
}
var _480=_47a.getElementsByTagName(_47b);
outer:
for(var i=0;i<_480.length;i++){
var node=_480[i];
var _483=dojo.html.getClasses(node);
if(_483.length==0){
continue outer;
}
var _484=0;
for(var j=0;j<_483.length;j++){
if(_47f.test(_483[j])){
if(_47c==dojo.html.classMatchType.ContainsAny){
_47e.push(node);
continue outer;
}else{
_484++;
}
}else{
if(_47c==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_484==_47d.length){
if(_47c==dojo.html.classMatchType.IsOnly&&_484==_483.length){
_47e.push(node);
}else{
if(_47c==dojo.html.classMatchType.ContainsAll){
_47e.push(node);
}
}
}
}
return _47e;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _488=e.pageX||e.clientX+document.body.scrollLeft;
var _489=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var _48a=getAbsoluteX(node)+(getInnerWidth(node)/2);
var _48b=getAbsoluteY(node)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_488<_48a?WEST:EAST)|(_489<_48b?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(_48c,e){
_48c=dojo.byId(_48c);
var _48e=e.pageX||e.clientX+document.body.scrollLeft;
var _48f=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var top=getAbsoluteY(_48c);
var _491=top+getInnerHeight(_48c);
var left=getAbsoluteX(_48c);
var _493=left+getInnerWidth(_48c);
}
return (_48e>=left&&_48e<=_493&&_48f>=top&&_48f<=_491);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _495="";
if(node==null){
return _495;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _497="unknown";
try{
_497=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_497){
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":
_495+="\n";
_495+=dojo.html.renderedTextContent(node.childNodes[i]);
_495+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_495+="\n";
}else{
_495+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _499="unknown";
try{
_499=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_499){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_499){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_495)){
text.replace(/^\s/,"");
}
break;
}
_495+=text;
break;
default:
break;
}
}
return _495;
};
dojo.html.setActiveStyleSheet=function(_49a){
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")==_49a){
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 _4a1="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_4a1="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_4a1="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_4a1="section";
}
}
}
tn.innerHTML=txt;
tn.normalize();
var _4a2=null;
switch(_4a1){
case "cell":
_4a2=tn.getElementsByTagName("tr")[0];
break;
case "row":
_4a2=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_4a2=tn.getElementsByTagName("table")[0];
break;
default:
_4a2=tn;
break;
}
var _4a3=[];
for(var x=0;x<_4a2.childNodes.length;x++){
_4a3.push(_4a2.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _4a3;
};
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,_4a9,_4aa,_4ab,_4ac){
if(dojo.lang.isArray(_4a9)){
_4ac=_4ab;
_4ab=_4aa;
_4aa=_4a9[1];
_4a9=_4a9[0];
}
if(!isNaN(_4ab)){
_4ab=[Number(_4ab),Number(_4ab)];
}else{
if(!dojo.lang.isArray(_4ab)){
_4ab=[0,0];
}
}
var _4ad=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_4ab[0];
var h=node.offsetHeight+_4ab[1];
if(_4ac){
_4a9-=_4ad.x;
_4aa-=_4ad.y;
}
var x=_4a9+w;
if(x>view.w){
x=view.w-w;
}else{
x=_4a9;
}
x=Math.max(_4ab[0],x)+_4ad.x;
var y=_4aa+h;
if(y>view.h){
y=view.h-h;
}else{
y=_4aa;
}
y=Math.max(_4ab[1],y)+_4ad.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,_4b5,_4b6,_4b7,_4b8){
if(dojo.lang.isArray(_4b5)){
_4b8=_4b7;
_4b7=_4b6;
_4b6=_4b5[1];
_4b5=_4b5[0];
}
var _4b9=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth;
var h=node.offsetHeight;
if(_4b8){
_4b5-=_4b9.x;
_4b6-=_4b9.y;
}
var x=-1,y=-1;
if(_4b5+w<=view.w&&_4b6+h<=view.h){
x=_4b5;
y=_4b6;
}
if((x<0||y<0)&&_4b5<=view.w&&_4b6+h<=view.h){
x=_4b5-w;
y=_4b6;
}
if((x<0||y<0)&&_4b5+w<=view.w&&_4b6<=view.h){
x=_4b5;
y=_4b6-h;
}
if((x<0||y<0)&&_4b5<=view.w&&_4b6<=view.h){
x=_4b5-w;
y=_4b6-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_4b5,_4b6,_4b7,_4b8);
}
x+=_4b9.x;
y+=_4b9.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,_4c1){
if(!URI){
return;
}
if(!doc){
doc=document;
}
if(doc.baseURI){
URI=new dojo.uri.Uri(doc.baseURI,URI);
}
if(_4c1&&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(_4d2){
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);
},_old_buildFromTemplate:dojo.widget.DomWidget.prototype.buildFromTemplate,buildFromTemplate:function(args,frag){
if(dojo.widget.DomWidget.templates[this.widgetType]){
var ot=dojo.widget.DomWidget.templates[this.widgetType];
dojo.widget.DomWidget.templates[this.widgetType]={};
}
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.buildFromTemplate(this,args["templatePath"],args["templateCssPath"]);
this._old_buildFromTemplate(args,frag);
dojo.widget.DomWidget.templates[this.widgetType]=ot;
},destroyRendering:function(_4d9){
try{
var _4da=this.domNode.parentNode.removeChild(this.domNode);
if(!_4d9){
dojo.event.browser.clean(_4da);
}
delete _4da;
}
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,_4dc,_4dd,_4de){
dojo.style.show(node);
if(dojo.lang.isFunction(_4de)){
_4de();
}
},hide:function(node,_4e0,_4e1,_4e2){
dojo.html.hide(node);
if(dojo.lang.isFunction(_4e2)){
_4e2();
}
}};
dojo.widget.HtmlWidget.toggle.fade={show:function(node,_4e4,_4e5,_4e6){
dojo.fx.html.fadeShow(node,_4e4,_4e6);
},hide:function(node,_4e8,_4e9,_4ea){
dojo.fx.html.fadeHide(node,_4e8,_4ea);
}};
dojo.widget.HtmlWidget.toggle.wipe={show:function(node,_4ec,_4ed,_4ee){
dojo.fx.html.wipeIn(node,_4ec,_4ee);
},hide:function(node,_4f0,_4f1,_4f2){
dojo.fx.html.wipeOut(node,_4f0,_4f2);
}};
dojo.widget.HtmlWidget.toggle.explode={show:function(node,_4f4,_4f5,_4f6){
dojo.fx.html.explode(_4f5||[0,0,0,0],node,_4f4,_4f6);
},hide:function(node,_4f8,_4f9,_4fa){
dojo.fx.html.implode(node,_4f9||[0,0,0,0],_4f8,_4fa);
}};
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,_4fd,_4fe,_4ff,_500,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_4fd;
this.x=_4fd[0];
this.y=_4fd[1];
this.z=_4fd[2];
this.startTime=_4fe;
this.currentTime=_4ff;
this.endTime=_500;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _504=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_504[i]=Math.round(this.coords[i]);
}
return _504;
}});
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_506,end){
this.start=_506;
this.end=end;
this.dimensions=_506.length;
for(var i=0;i<_506.length;i++){
_506[i]=Number(_506[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _50a=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_50a[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _50a;
};
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 _50e=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_50e[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);
}
_50e[j]=C/D;
}
return _50e;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _518=step*(this.p.length-1);
var node=Math.floor(_518);
var _51a=_518-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=_51a;
var u2=_51a*_51a;
var u3=_51a*_51a*_51a;
var _522=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];
_522[k]=x1*u3+x2*u2+x3*u+x4;
}
return _522;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_528,end,ccw){
var _52b=dojo.math.points.midpoint(_528,end);
var _52c=dojo.math.points.translate(dojo.math.points.invert(_52b),_528);
var rad=Math.sqrt(Math.pow(_52c[0],2)+Math.pow(_52c[1],2));
var _52e=dojo.math.radToDeg(Math.atan(_52c[1]/_52c[0]));
if(_52c[0]<0){
_52e-=90;
}else{
_52e+=90;
}
dojo.math.curves.CenteredArc.call(this,_52b,rad,_52e,_52e+(ccw?-180:180));
},CenteredArc:function(_52f,_530,_531,end){
this.center=_52f;
this.radius=_530;
this.start=_531||0;
this.end=end;
this.getValue=function(n){
var _534=new Array(2);
var _535=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_534[0]=this.center[0]+this.radius*Math.sin(_535);
_534[1]=this.center[1]-this.radius*Math.cos(_535);
return _534;
};
return this;
},Circle:function(_536,_537){
dojo.math.curves.CenteredArc.call(this,_536,_537,0,360);
return this;
},Path:function(){
var _538=[];
var _539=[];
var _53a=[];
var _53b=0;
this.add=function(_53c,_53d){
if(_53d<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_538.push(_53c);
_539.push(_53d);
_53b+=_53d;
computeRanges();
};
this.remove=function(_53e){
for(var i=0;i<_538.length;i++){
if(_538[i]==_53e){
_538.splice(i,1);
_53b-=_539.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_538=[];
_539=[];
_53b=0;
};
this.getValue=function(n){
var _541=false,value=0;
for(var i=0;i<_53a.length;i++){
var r=_53a[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_538[i].getValue(subN);
_541=true;
break;
}
}
if(!_541){
value=_538[_538.length-1].getValue(1);
}
for(j=0;j<i;j++){
value=dojo.math.points.translate(value,_538[j].getValue(1));
}
return value;
};
function computeRanges(){
var _545=0;
for(var i=0;i<_539.length;i++){
var end=_545+_539[i]/_53b;
var len=end-_545;
_53a[i]=[_545,end,len];
_545=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(_549,_54a,_54b,_54c,rate){
if(dojo.lang.isArray(_549)){
_549=new dojo.math.curves.Line(_549[0],_549[1]);
}
this.curve=_549;
this.duration=_54a;
this.repeatCount=_54c||0;
this.rate=rate||25;
if(_54b){
if(dojo.lang.isFunction(_54b.getValue)){
this.accel=_54b;
}else{
var i=0.35*_54b+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(_54f){
if(_54f){
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,_553){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_553){
this.play();
}
},stop:function(_554){
clearTimeout(this._timer);
var step=this._percent/100;
if(_554){
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,_55c,_55d,_55e){
return dojo.fx.html.fade(node,_55c,dojo.style.getOpacity(node),0,_55d,_55e);
};
dojo.fx.html.fadeIn=function(node,_560,_561,_562){
return dojo.fx.html.fade(node,_560,dojo.style.getOpacity(node),1,_561,_562);
};
dojo.fx.html.fadeHide=function(node,_564,_565,_566){
node=dojo.byId(node);
if(!_564){
_564=150;
}
return dojo.fx.html.fadeOut(node,_564,function(node){
node.style.display="none";
if(typeof _565=="function"){
_565(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_569,_56a,_56b){
node=dojo.byId(node);
if(!_569){
_569=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_569,0,1,_56a,_56b);
};
dojo.fx.html.fade=function(node,_56d,_56e,_56f,_570,_571){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_56e],[_56f]),_56d||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_570){
dojo.event.connect(anim,"onEnd",function(e){
_570(node,anim);
});
}
if(!_571){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_576,_577,_578,_579){
if(!dojo.lang.isNumber(_576)){
var tmp=_576;
_576=_577;
_577=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,_576,[left,top],_577,_578,_579);
};
dojo.fx.html.slideBy=function(node,_57f,_580,_581,_582){
if(!dojo.lang.isNumber(_57f)){
var tmp=_57f;
_57f=_580;
_580=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,_57f,[left+_580[0],top+_580[1]],_581,_582);
};
dojo.fx.html.slide=function(node,_588,_589,_58a,_58b,_58c){
if(!dojo.lang.isNumber(_588)){
var tmp=_588;
_588=_58a;
_58a=_589;
_589=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(_589,_58a),_588||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_58b){
dojo.event.connect(anim,"onEnd",function(e){
_58b(node,anim);
});
}
if(!_58c){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_592,_593,_594,_595,_596){
if(!dojo.lang.isNumber(_592)){
var tmp=_592;
_592=_593;
_593=tmp;
}
node=dojo.byId(node);
var _598=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _59a=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_598.length>3){
_598.pop();
}
var rgb=new dojo.graphics.color.Color(_593).toRgb();
var anim=dojo.fx.html.colorFade(node,_592||dojo.fx.duration,_593,_598,_595,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_59a){
node.style.backgroundColor="transparent";
}
});
if(_594>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_596){
setTimeout(function(){
anim.play(true);
},_594);
}
}else{
if(!_596){
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,_59f,_5a0,_5a1,_5a2,_5a3){
if(!dojo.lang.isNumber(_59f)){
var tmp=_59f;
_59f=_5a0;
_5a0=tmp;
}
node=dojo.byId(node);
var _5a5=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_5a0).toRgb();
var anim=dojo.fx.html.colorFade(node,_59f||dojo.fx.duration,_5a5,rgb,_5a2,_5a1>0||_5a3);
if(_5a1>0){
node.style.backgroundColor="rgb("+_5a5.join(",")+")";
if(!_5a3){
setTimeout(function(){
anim.play(true);
},_5a1);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_5a9,_5aa,_5ab,_5ac,_5ad){
if(!dojo.lang.isNumber(_5a9)){
var tmp=_5a9;
_5a9=_5ab;
_5ab=_5aa;
_5aa=tmp;
}
node=dojo.byId(node);
var _5af=new dojo.graphics.color.Color(_5aa).toRgb();
var _5b0=new dojo.graphics.color.Color(_5ab).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5af,_5b0),_5a9||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_5ac){
dojo.event.connect(anim,"onEnd",function(e){
_5ac(node,anim);
});
}
if(!_5ad){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_5b5,_5b6,_5b7){
node=dojo.byId(node);
var _5b8=dojo.style.getStyle(node,"overflow");
if(_5b8=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_5b5,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_5b8;
node.style.height="auto";
if(_5b6){
_5b6(node,anim);
}
});
if(!_5b7){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_5bb,_5bc,_5bd){
node=dojo.byId(node);
var _5be=dojo.style.getStyle(node,"overflow");
if(_5be=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_5bb,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.overflow=_5be;
if(_5bc){
_5bc(node,anim);
}
});
if(!_5bd){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_5c1,_5c2,_5c3,_5c4,_5c5){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_5c2],[_5c3]],_5c1||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_5c4){
_5c4(node,anim);
}
});
if(!_5c5){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_5c9){
this.node=dojo.byId(node);
if(_5c9){
dojo.event.connect(dojo.byId(_5c9),"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(_5cb,_5cc,_5cd,_5ce,_5cf){
var _5d0=dojo.style.toCoordinateArray(_5cb);
var _5d1=document.createElement("div");
with(_5d1.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_5d1);
_5cc=dojo.byId(_5cc);
with(_5cc.style){
visibility="hidden";
display="block";
}
var _5d2=dojo.style.toCoordinateArray(_5cc);
with(_5cc.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5d0,_5d2),_5cd||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_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(){
_5cc.style.display="block";
_5d1.parentNode.removeChild(_5d1);
if(_5ce){
_5ce(_5cc,anim);
}
});
if(!_5cf){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_5d6,end,_5d8,_5d9,_5da){
var _5db=dojo.style.toCoordinateArray(_5d6);
var _5dc=dojo.style.toCoordinateArray(end);
_5d6=dojo.byId(_5d6);
var _5dd=document.createElement("div");
with(_5dd.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_5dd);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_5db,_5dc),_5d8||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_5d6.style.display="none";
_5dd.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_5dd.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(){
_5dd.parentNode.removeChild(_5dd);
if(_5d9){
_5d9(_5d6,anim);
}
});
if(!_5da){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_5e1,_5e2){
_5e1=dojo.byId(_5e1);
_5e2=dojo.byId(_5e2);
var _5e3=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _5e4=null;
var _5e5=null;
var _5e6=null;
var _5e7=null;
var _5e8=null;
var _5e9=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(_5e6);
_5e6=setTimeout(_5e3.show,_5e3.waitToShow);
};
this.show=function(){
clearTimeout(_5e6);
clearTimeout(_5e7);
if((_5e5&&_5e5.status()=="playing")||(_5e4&&_5e4.status()=="playing")||_5e3.showing){
return;
}
if(typeof _5e3.onBeforeExplode=="function"){
_5e3.onBeforeExplode(_5e1,_5e2);
}
_5e4=dojo.fx.html.explode(_5e1,_5e2,_5e3.timeToShow,function(e){
_5e3.showing=true;
if(typeof _5e3.onAfterExplode=="function"){
_5e3.onAfterExplode(_5e1,_5e2);
}
});
if(typeof _5e3.onExploding=="function"){
dojo.event.connect(_5e4,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_5e6);
clearTimeout(_5e7);
if(_5e3.showing){
_5e7=setTimeout(_5e3.hide,_5e3.waitToHide);
}
};
this.hide=function(){
clearTimeout(_5e6);
clearTimeout(_5e7);
if(_5e4&&_5e4.status()=="playing"){
return;
}
_5e3.showing=false;
if(typeof _5e3.onBeforeImplode=="function"){
_5e3.onBeforeImplode(_5e1,_5e2);
}
_5e5=dojo.fx.html.implode(_5e2,_5e1,_5e3.timeToHide,function(e){
if(typeof _5e3.onAfterImplode=="function"){
_5e3.onAfterImplode(_5e1,_5e2);
}
});
if(typeof _5e3.onImploding=="function"){
dojo.event.connect(_5e5,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_5e1,"onclick",function(e){
if(_5e3.showing){
_5e3.hide();
}else{
_5e3.show();
}
});
dojo.event.connect(_5e1,"onmouseover",function(e){
if(_5e3.autoShow){
_5e3.timeShow();
}
});
dojo.event.connect(_5e1,"onmouseout",function(e){
if(_5e3.autoHide){
_5e3.timeHide();
}
});
dojo.event.connect(_5e2,"onmouseover",function(e){
clearTimeout(_5e7);
});
dojo.event.connect(_5e2,"onmouseout",function(e){
if(_5e3.autoHide){
_5e3.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_5f3){
while(node){
if(node==_5f3){
return true;
}
node=node.parentNode;
}
return false;
}
if(_5e3.autoHide&&_5e3.showing&&!isDesc(e.target,_5e2)&&!isDesc(e.target,_5e1)){
_5e3.hide();
}
});
return this;
};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.provide("dojo.widget.SlideShow");
dojo.provide("dojo.widget.html.SlideShow");
dojo.require("dojo.event");
dojo.require("dojo.widget.*");
dojo.require("dojo.fx.html");
dojo.require("dojo.style");
dojo.widget.html.SlideShow=function(){
dojo.widget.HtmlWidget.call(this);
this.templatePath=dojo.uri.dojoUri("src/widget/templates/HtmlSlideShow.html");
this.templateCssPath=dojo.uri.dojoUri("src/widget/templates/HtmlSlideShow.css");
this.isContainer=false;
this.widgetType="SlideShow";
this.imgUrls=[];
this.imgUrlBase="";
this.urlsIdx=0;
this.delay=4000;
this.transitionInterval=2000;
this.imgWidth=800;
this.imgHeight=600;
this.background="img2";
this.foreground="img1";
this.stopped=false;
this.fadeAnim=null;
this.imagesContainer=null;
this.startStopButton=null;
this.controlsContainer=null;
this.img1=null;
this.img2=null;
this.fillInTemplate=function(){
dojo.style.setOpacity(this.img1,0.9999);
dojo.style.setOpacity(this.img2,0.9999);
with(this.imagesContainer.style){
width=this.imgWidth+"px";
height=this.imgHeight+"px";
}
with(this.img1.style){
width=this.imgWidth+"px";
height=this.imgHeight+"px";
}
with(this.img2.style){
width=this.imgWidth+"px";
height=this.imgHeight+"px";
}
if(this.imgUrls.length>1){
this.img2.src=this.imgUrlBase+this.imgUrls[this.urlsIdx++];
this.endTransition();
}else{
this.img1.src=this.imgUrlBase+this.imgUrls[this.urlsIdx++];
}
};
this.togglePaused=function(){
if(this.stopped){
this.stopped=false;
this.endTransition();
this.startStopButton.value="pause";
}else{
this.stopped=true;
this.startStopButton.value="play";
}
};
this.backgroundImageLoaded=function(){
if(this.stopped){
return;
}
var _5f4=this;
var _5f5=function(){
_5f4.endTransition();
};
if(this.fadeAnim){
this.fadeAnim.stop();
}
this.fadeAnim=dojo.fx.html.fadeOut(this[this.foreground],this.transitionInterval,_5f5);
};
this.endTransition=function(){
with(this[this.background].style){
zIndex=parseInt(zIndex)+1;
}
with(this[this.foreground].style){
zIndex=parseInt(zIndex)-1;
}
var tmp=this.foreground;
this.foreground=this.background;
this.background=tmp;
this.loadNextImage();
};
this.loadNextImage=function(){
dojo.event.kwConnect({srcObj:this[this.background],srcFunc:"onload",adviceObj:this,adviceFunc:"backgroundImageLoaded",once:true,delay:this.delay});
dojo.style.setOpacity(this[this.background],1);
this[this.background].src=this.imgUrlBase+this.imgUrls[this.urlsIdx++];
if(this.urlsIdx>(this.imgUrls.length-1)){
this.urlsIdx=0;
}
};
};
dojo.inherits(dojo.widget.html.SlideShow,dojo.widget.HtmlWidget);
dojo.widget.tags.addParseTreeHandler("dojo:slideshow");


