/*
	Copyright (c) 2004-2005, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/community/licensing.shtml
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

var dj_global=this;
function dj_undef(_1,_2){
if(!_2){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
var dojo;
if(dj_undef("dojo")){
dojo={};
}
dojo.version={major:0,minor:2,patch:2,flag:"+",revision:Number("$Rev: 2889 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalObjPath=function(_3,_4){
if(typeof _3!="string"){
return dj_global;
}
if(_3.indexOf(".")==-1){
if((dj_undef(_3,dj_global))&&(_4)){
dj_global[_3]={};
}
return dj_global[_3];
}
var _5=_3.split(/\./);
var _6=dj_global;
for(var i=0;i<_5.length;++i){
if(!_4){
_6=_6[_5[i]];
if((typeof _6=="undefined")||(!_6)){
return _6;
}
}else{
if(dj_undef(_5[i],_6)){
_6[_5[i]]={};
}
_6=_6[_5[i]];
}
}
return _6;
};
dojo.errorToString=function(_8){
return ((!dj_undef("message",_8))?_8.message:(dj_undef("description",_8)?_8:_8.description));
};
dojo.raise=function(_9,_a){
if(_a){
_9=_9+": "+dojo.errorToString(_a);
}
var he=dojo.hostenv;
if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){
dojo.hostenv.println("FATAL: "+_9);
}
throw Error(_9);
};
dj_throw=dj_rethrow=function(m,e){
dojo.deprecated("dj_throw and dj_rethrow deprecated, use dojo.raise instead");
dojo.raise(m,e);
};
dojo.debug=function(){
if(!djConfig.isDebug){
return;
}
var _e=arguments;
if(dj_undef("println",dojo.hostenv)){
dojo.raise("dojo.debug not available (yet?)");
}
var _f=dj_global["jum"]&&!dj_global["jum"].isBrowser;
var s=[(_f?"":"DEBUG: ")];
for(var i=0;i<_e.length;++i){
if(!false&&_e[i] instanceof Error){
var msg="["+_e[i].name+": "+dojo.errorToString(_e[i])+(_e[i].fileName?", file: "+_e[i].fileName:"")+(_e[i].lineNumber?", line: "+_e[i].lineNumber:"")+"]";
}else{
try{
var msg=String(_e[i]);
}
catch(e){
if(dojo.render.html.ie){
var msg="[ActiveXObject]";
}else{
var msg="[unknown]";
}
}
}
s.push(msg);
}
if(_f){
jum.debug(s.join(" "));
}else{
dojo.hostenv.println(s.join(" "));
}
};
dojo.debugShallow=function(obj){
if(!djConfig.isDebug){
return;
}
dojo.debug("------------------------------------------------------------");
dojo.debug("Object: "+obj);
var _14=[];
for(var _15 in obj){
try{
_14.push(_15+": "+obj[_15]);
}
catch(E){
_14.push(_15+": ERROR - "+E.message);
}
}
_14.sort();
for(var i=0;i<_14.length;i++){
dojo.debug(_14[i]);
}
dojo.debug("------------------------------------------------------------");
};
var dj_debug=dojo.debug;
function dj_eval(s){
return dj_global.eval?dj_global.eval(s):eval(s);
}
dj_unimplemented=dojo.unimplemented=function(_18,_19){
var _1a="'"+_18+"' not implemented";
if((!dj_undef(_19))&&(_19)){
_1a+=" "+_19;
}
dojo.raise(_1a);
};
dj_deprecated=dojo.deprecated=function(_1b,_1c,_1d){
var _1e="DEPRECATED: "+_1b;
if(_1c){
_1e+=" "+_1c;
}
if(_1d){
_1e+=" -- will be removed in version: "+_1d;
}
dojo.debug(_1e);
};
dojo.inherits=function(_1f,_20){
if(typeof _20!="function"){
dojo.raise("superclass: "+_20+" borken");
}
_1f.prototype=new _20();
_1f.prototype.constructor=_1f;
_1f.superclass=_20.prototype;
_1f["super"]=_20.prototype;
};
dj_inherits=function(_21,_22){
dojo.deprecated("dj_inherits deprecated, use dojo.inherits instead");
dojo.inherits(_21,_22);
};
dojo.render=(function(){
function vscaffold(_23,_24){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_23};
for(var x in _24){
tmp[x]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _27={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_27;
}else{
for(var _28 in _27){
if(typeof djConfig[_28]=="undefined"){
djConfig[_28]=_27[_28];
}
}
}
var djc=djConfig;
function _def(obj,_2b,def){
return (dj_undef(_2b,obj)?def:obj[_2b]);
}
return {name_:"(unset)",version_:"(unset)",pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_2d,_2e){
this.modulePrefixes_[_2d]={name:_2d,value:_2e};
},getModulePrefix:function(_2f){
var mp=this.modulePrefixes_;
if((mp[_2f])&&(mp[_2f]["name"])){
return mp[_2f].value;
}
return _2f;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
},getLibraryScriptUri:function(){
dojo.unimplemented("getLibraryScriptUri","");
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _33=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
dojo.hostenv.setBaseScriptUri=function(uri){
djConfig.baseScriptUri=uri;
};
dojo.hostenv.loadPath=function(_35,_36,cb){
if((_35.charAt(0)=="/")||(_35.match(/^\w+:/))){
dojo.raise("relpath '"+_35+"'; must be relative");
}
var uri=this.getBaseScriptUri()+_35;
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_36)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_36,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return;
}
var _3b=this.getText(uri,null,true);
if(_3b==null){
return 0;
}
this.loadedUris[uri]=true;
var _3c=dj_eval(_3b);
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_3e,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_3e,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.hostenv.loaded=function(){
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
dojo.loaded();
};
dojo.addOnLoad=function(obj,_44){
if(arguments.length==1){
dojo.hostenv.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dojo.hostenv.modulesLoadedListeners.push(function(){
obj[_44]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
}
};
dojo.hostenv.moduleLoaded=function(_45){
var _46=dojo.evalObjPath((_45.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_45)).toLowerCase()]=_46;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=_47.split(".");
for(var i=_4c.length-1;i>0;i--){
var _4f=_4c.slice(0,i).join(".");
var _50=this.getModulePrefix(_4f);
if(_50!=_4f){
_4c.splice(0,i,_50);
break;
}
}
var _51=_4c[_4c.length-1];
if(_51=="*"){
_47=(_4d.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4d.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_49)){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_53){
var _54=_53.split(/\./);
if(_54[_54.length-1]=="*"){
_54.pop();
}
return dojo.evalObjPath(_54.join("."),true);
};
dojo.hostenv.findModule=function(_55,_56){
var lmn=(new String(_55)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _58=dojo.evalObjPath(_55);
if((_55)&&(typeof _58!="undefined")&&(_58)){
this.loaded_modules_[lmn]=_58;
return _58;
}
if(_56){
dojo.raise("no loaded module named '"+_55+"'");
}
return null;
};
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _59=document.location.toString();
var _5a=_59.split("?",2);
if(_5a.length>1){
var _5b=_5a[1];
var _5c=_5b.split("&");
for(var x in _5c){
var sp=_5c[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _60=document.getElementsByTagName("script");
var _61=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_60.length;i++){
var src=_60[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_61);
if(m){
root=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
root+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=root;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=root;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=drh.UA=navigator.userAgent;
var dav=drh.AV=navigator.appVersion;
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _6c=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_6c>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_6c+6,_6c+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
drs.adobe=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
drs.adobe=f;
}else{
if(navigator.mimeTypes&&navigator.mimeTypes.length>0){
var _6d=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"];
if(_6d){
drs.adobe=_6d&&_6d.enabledPlugin&&_6d.enabledPlugin.description&&(_6d.enabledPlugin.description.indexOf("Adobe")>-1);
if(drs.adobe){
drs.capable=t;
drs.support.plugin=t;
}
}
}else{
if(drh.ie&&dr.os.win){
var _6d=f;
try{
var _6e=new ActiveXObject("Adobe.SVGCtl");
_6d=t;
}
catch(e){
}
if(_6d){
drs.capable=t;
drs.support.plugin=t;
drs.adobe=t;
}
}else{
drs.capable=f;
drs.support.plugin=f;
drs.adobe=f;
}
}
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _6f=null;
var _70=null;
try{
_6f=new XMLHttpRequest();
}
catch(e){
}
if(!_6f){
for(var i=0;i<3;++i){
var _72=DJ_XMLHTTP_PROGIDS[i];
try{
_6f=new ActiveXObject(_72);
}
catch(e){
_70=e;
}
if(_6f){
DJ_XMLHTTP_PROGIDS=[_72];
break;
}
}
}
if(!_6f){
return dojo.raise("XMLHTTP not available",_70);
}
return _6f;
};
dojo.hostenv.getText=function(uri,_74,_75){
var _76=this.getXmlhttpObject();
if(_74){
_76.onreadystatechange=function(){
if((4==_76.readyState)&&(_76["status"])){
if(_76.status==200){
_74(_76.responseText);
}
}
};
}
_76.open("GET",uri,_74?true:false);
try{
_76.send(null);
}
catch(e){
if(_75&&!_74){
return null;
}else{
throw e;
}
}
if(_74){
return null;
}
return _76.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_77){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_77);
}else{
try{
var _78=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_78){
_78=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_77));
_78.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_77+"</div>");
}
catch(e2){
window.status=_77;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_7a,_7b,fp,_7d){
var _7e=_7a["on"+_7b]||function(){
};
_7a["on"+_7b]=function(){
fp.apply(_7a,arguments);
_7e.apply(_7a,arguments);
};
return true;
}
dj_load_init=function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
dojo.hostenv.modulesLoaded();
};
dj_addNodeEvtHdlr(window,"load",dj_load_init);
dojo.hostenv.makeWidgets=function(){
var _7f=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_7f=_7f.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_7f=_7f.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_7f.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
try{
var _80=new dojo.xml.Parse();
if(_7f.length>0){
for(var x=0;x<_7f.length;x++){
var _82=document.getElementById(_7f[x]);
if(!_82){
continue;
}
var _83=_80.parseElement(_82,null,true);
dojo.widget.getParser().createComponents(_83);
}
}else{
if(djConfig.parseWidgets){
var _83=_80.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_83);
}
}
}
catch(e){
dojo.debug("auto-build-widgets error:",e);
}
}
}
};
dojo.hostenv.modulesLoadedListeners.push(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
dojo.hostenv.byId=dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
dojo.hostenv.byIdArray=dojo.byIdArray=function(){
var ids=[];
for(var i=0;i<arguments.length;i++){
if((arguments[i] instanceof Array)||(typeof arguments[i]=="array")){
for(var j=0;j<arguments[i].length;j++){
ids=ids.concat(dojo.hostenv.byIdArray(arguments[i][j]));
}
}else{
ids.push(dojo.hostenv.byId(arguments[i]));
}
}
return ids;
};
dojo.hostenv.conditionalLoadModule=function(_89){
var _8a=_89["common"]||[];
var _8b=(_89[dojo.hostenv.name_])?_8a.concat(_89[dojo.hostenv.name_]||[]):_8a.concat(_89["default"]||[]);
for(var x=0;x<_8b.length;x++){
var _8d=_8b[x];
if(_8d.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_8d);
}else{
dojo.hostenv.loadModule(_8d);
}
}
};
dojo.hostenv.require=dojo.hostenv.loadModule;
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireAfter=dojo.require;
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(dojo.render[arguments[0]].capable)){
var _8e=[];
for(var i=1;i<arguments.length;i++){
_8e.push(arguments[i]);
}
dojo.require.apply(dojo,_8e);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.conditionalRequire=dojo.requireIf;
dojo.requireAll=function(){
for(var i=0;i<arguments.length;i++){
dojo.require(arguments[i]);
}
};
dojo.kwCompoundRequire=function(){
dojo.hostenv.conditionalLoadModule.apply(dojo.hostenv,arguments);
};
dojo.hostenv.provide=dojo.hostenv.startPackage;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_91,_92){
return dojo.hostenv.setModulePrefix(_91,_92);
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
dojo.exists=function(obj,_94){
var p=_94.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang.mixin=function(obj,_98){
var _99={};
for(var x in _98){
if(typeof _99[x]=="undefined"||_99[x]!=_98[x]){
obj[x]=_98[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_98["toString"])&&_98["toString"]!=obj["toString"]){
obj.toString=_98.toString;
}
return obj;
};
dojo.lang.extend=function(_9b,_9c){
this.mixin(_9b.prototype,_9c);
};
dojo.lang.find=function(arr,val,_9f,_a0){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _a2=dojo.lang.isString(arr);
if(_a2){
arr=arr.split("");
}
if(_a0){
var _a3=-1;
var i=arr.length-1;
var end=-1;
}else{
var _a3=1;
var i=0;
var end=arr.length;
}
if(_9f){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_a3;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_a3;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_a8){
return dojo.lang.find(arr,val,_a8,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
return typeof wh=="object"||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh);
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.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 _b5 in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[_b5](wh)){
return _b5;
}
}
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(_b9,_ba){
if(dojo.lang.isArray(_ba)){
var _bb=_ba;
for(var i in _bb){
var _bd=_bb[i];
if(dojo.lang.isOfType(_b9,_bd)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(_ba)){
_ba=_ba.toLowerCase();
}
switch(_ba){
case Array:
case "array":
return dojo.lang.isArray(_b9);
break;
case Function:
case "function":
return dojo.lang.isFunction(_b9);
break;
case String:
case "string":
return dojo.lang.isString(_b9);
break;
case Number:
case "number":
return dojo.lang.isNumber(_b9);
break;
case "numeric":
return dojo.lang.isNumeric(_b9);
break;
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_b9);
break;
case Object:
case "object":
return dojo.lang.isObject(_b9);
break;
case "pureobject":
return dojo.lang.isPureObject(_b9);
break;
case "builtin":
return dojo.lang.isBuiltIn(_b9);
break;
case "alien":
return dojo.lang.isAlien(_b9);
break;
case "undefined":
return dojo.lang.isUndefined(_b9);
break;
case null:
case "null":
return (_b9===null);
break;
case "optional":
return ((_b9===null)||dojo.lang.isUndefined(_b9));
break;
default:
if(dojo.lang.isFunction(_ba)){
return (_b9 instanceof _ba);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
break;
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.hitch=function(_be,_bf){
if(dojo.lang.isString(_bf)){
var fcn=_be[_bf];
}else{
var fcn=_bf;
}
return function(){
return fcn.apply(_be,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_c1,_c2){
var nso=(_c2||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_c1){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_c1;
return ret;
};
dojo.lang.forward=function(_c6){
return function(){
return this[_c6].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,_c8){
var _c9=[];
ns=ns||dj_global;
if(dojo.lang.isString(_c8)){
_c8=ns[_c8];
}
for(var x=2;x<arguments.length;x++){
_c9.push(arguments[x]);
}
var _cb=_c8.length-_c9.length;
function gather(_cc,_cd,_ce){
var _cf=_ce;
var _d0=_cd.slice(0);
for(var x=0;x<_cc.length;x++){
_d0.push(_cc[x]);
}
_ce=_ce-_cc.length;
if(_ce<=0){
var res=_c8.apply(ns,_d0);
_ce=_cf;
return res;
}else{
return function(){
return gather(arguments,_d0,_ce);
};
}
}
return gather([],_c9,_cb);
};
dojo.lang.curryArguments=function(ns,_d4,_d5,_d6){
var _d7=[];
var x=_d6||0;
for(x=_d6;x<_d5.length;x++){
_d7.push(_d5[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,_d4].concat(_d7));
};
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(_db,cb,_dd,_de){
if(!_db.length){
if(typeof _de=="function"){
_de();
}
return;
}
if((typeof _dd=="undefined")&&(typeof cb=="number")){
_dd=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_dd){
_dd=0;
}
}
}
setTimeout(function(){
(_db.shift())();
cb();
dojo.lang.delayThese(_db,cb,_dd,_de);
},_dd);
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,_e0){
return (typeof obj[_e0]!=="undefined");
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _e3=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_e3++;
break;
}
}
return (_e3==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.forEach=function(arr,_e6,_e7){
var _e8=dojo.lang.isString(arr);
if(_e8){
arr=arr.split("");
}
var il=arr.length;
for(var i=0;i<((_e7)?il:arr.length);i++){
if(_e6(arr[i],i,arr)=="break"){
break;
}
}
};
dojo.lang.map=function(arr,obj,_ed){
var _ee=dojo.lang.isString(arr);
if(_ee){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_ed)){
_ed=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_ed){
var _ef=obj;
obj=_ed;
_ed=_ef;
}
}
if(Array.map){
var _f0=Array.map(arr,_ed,obj);
}else{
var _f0=[];
for(var i=0;i<arr.length;++i){
_f0.push(_ed.call(obj,arr[i]));
}
}
if(_ee){
return _f0.join("");
}else{
return _f0;
}
};
dojo.lang.every=function(arr,_f3,_f4){
var _f5=dojo.lang.isString(arr);
if(_f5){
arr=arr.split("");
}
if(Array.every){
return Array.every(arr,_f3,_f4);
}else{
if(!_f4){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_f4=dj_global;
}
for(var i=0;i<arr.length;i++){
if(!_f3.call(_f4,arr[i],i,arr)){
return false;
}
}
return true;
}
};
dojo.lang.some=function(arr,_f8,_f9){
var _fa=dojo.lang.isString(arr);
if(_fa){
arr=arr.split("");
}
if(Array.some){
return Array.some(arr,_f8,_f9);
}else{
if(!_f9){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_f9=dj_global;
}
for(var i=0;i<arr.length;i++){
if(_f8.call(_f9,arr[i],i,arr)){
return true;
}
}
return false;
}
};
dojo.lang.filter=function(arr,_fd,_fe){
var _ff=dojo.lang.isString(arr);
if(_ff){
arr=arr.split("");
}
if(Array.filter){
var _100=Array.filter(arr,_fd,_fe);
}else{
if(!_fe){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_fe=dj_global;
}
var _100=[];
for(var i=0;i<arr.length;i++){
if(_fd.call(_fe,arr[i],i,arr)){
_100.push(arr[i]);
}
}
}
if(_ff){
return _100.join("");
}else{
return _100;
}
};
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(_105,_106){
var _107=[];
for(var i=_106||0;i<_105.length;i++){
_107.push(_105[i]);
}
return _107;
};
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 _10b=node.tagName;
if(_10b.substr(0,5).toLowerCase()!="dojo:"){
if(_10b.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_10b.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 _10d=node.className||node.getAttribute("class");
if((_10d)&&(_10d.indexOf)&&(_10d.indexOf("dojo-")!=-1)){
var _10e=_10d.split(" ");
for(var x=0;x<_10e.length;x++){
if((_10e[x].length>5)&&(_10e[x].indexOf("dojo-")>=0)){
return "dojo:"+_10e[x].substr(5).toLowerCase();
}
}
}
}
}
return _10b.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(_111,_112){
var node=_111.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_112&&node&&node.tagName&&node.tagName.toLowerCase()!=_112.toLowerCase()){
node=dojo.dom.nextElement(node,_112);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_114,_115){
var node=_114.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_115&&node&&node.tagName&&node.tagName.toLowerCase()!=_115.toLowerCase()){
node=dojo.dom.prevElement(node,_115);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_118){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_118&&_118.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_118);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_11a){
if(!node){
return null;
}
if(_11a){
_11a=_11a.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_11a&&_11a.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_11a);
}
return node;
};
dojo.dom.moveChildren=function(_11b,_11c,trim){
var _11e=0;
if(trim){
while(_11b.hasChildNodes()&&_11b.firstChild.nodeType==dojo.dom.TEXT_NODE){
_11b.removeChild(_11b.firstChild);
}
while(_11b.hasChildNodes()&&_11b.lastChild.nodeType==dojo.dom.TEXT_NODE){
_11b.removeChild(_11b.lastChild);
}
}
while(_11b.hasChildNodes()){
_11c.appendChild(_11b.firstChild);
_11e++;
}
return _11e;
};
dojo.dom.copyChildren=function(_11f,_120,trim){
var _122=_11f.cloneNode(true);
return this.moveChildren(_122,_120,trim);
};
dojo.dom.removeChildren=function(node){
var _124=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _124;
};
dojo.dom.replaceChildren=function(node,_126){
dojo.dom.removeChildren(node);
node.appendChild(_126);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_129,_12a){
var _12b=[];
var _12c=dojo.lang.isFunction(_129);
while(node){
if(!_12c||_129(node)){
_12b.push(node);
}
if(_12a&&_12b.length>0){
return _12b[0];
}
node=node.parentNode;
}
if(_12a){
return null;
}
return _12b;
};
dojo.dom.getAncestorsByTag=function(node,tag,_12f){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_12f);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_134,_135){
if(_135&&node){
node=node.parentNode;
}
while(node){
if(node==_134){
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,_138){
if(!_138){
_138="text/xml";
}
if(typeof DOMParser!="undefined"){
var _139=new DOMParser();
return _139.parseFromString(str,_138);
}else{
if(typeof ActiveXObject!="undefined"){
var _13a=new ActiveXObject("Microsoft.XMLDOM");
if(_13a){
_13a.async=false;
_13a.loadXML(str);
return _13a;
}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 _13c=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_13c.importNode(tmp.childNodes.item(i),true);
}
return _13c;
}
return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_13f){
if(_13f.firstChild){
_13f.insertBefore(node,_13f.firstChild);
}else{
_13f.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_142){
if(_142!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _143=ref.parentNode;
_143.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_146){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_146!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_146);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_14a){
if((!node)||(!ref)||(!_14a)){
return false;
}
switch(_14a.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,_14c,_14d){
var _14e=_14c.childNodes;
if(!_14e.length){
_14c.appendChild(node);
return true;
}
var _14f=null;
for(var i=0;i<_14e.length;i++){
var _151=_14e.item(i)["getAttribute"]?parseInt(_14e.item(i).getAttribute("dojoinsertionindex")):-1;
if(_151<_14d){
_14f=_14e.item(i);
}
}
if(_14f){
return dojo.dom.insertAfter(node,_14f);
}else{
return dojo.dom.insertBefore(node,_14e.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _154="";
if(node==null){
return _154;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_154+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_154+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _154;
}
};
dojo.dom.collectionToArray=function(_156){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead");
return dojo.lang.toArray(_156);
};
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.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 _15d=1;
for(var i=1;i<=n;i++){
_15d*=i;
}
return _15d;
};
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 _169=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_169.length;i++){
mean+=_169[i];
}
return mean/_169.length;
};
dojo.math.round=function(_16c,_16d){
if(!_16d){
var _16e=1;
}else{
var _16e=Math.pow(10,_16d);
}
return Math.round(_16c*_16e)/_16e;
};
dojo.math.sd=function(){
var _16f=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_16f));
};
dojo.math.variance=function(){
var _170=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,squares=0;
for(var i=0;i<_170.length;i++){
mean+=_170[i];
squares+=Math.pow(_170[i],2);
}
return (squares/_170.length)-Math.pow(mean/_170.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _176=[];
if(step>0){
for(var i=a;i<b;i+=step){
_176.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_176.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _176;
};
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(_17e){
if(_17e){
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(_17f,_180){
return dojo.graphics.color.blend(this.toRgb(),new Color(_17f).toRgb(),_180);
}});
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,_183){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_183);
}
if(!_183){
_183=0;
}else{
if(_183>1){
_183=1;
}else{
if(_183<-1){
_183=-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*_183));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_189){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_189));
};
dojo.graphics.color.extractRGB=function(_18a){
var hex="0123456789abcdef";
_18a=_18a.toLowerCase();
if(_18a.indexOf("rgb")==0){
var _18c=_18a.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_18c.splice(1,3);
return ret;
}else{
var _18e=dojo.graphics.color.hex2rgb(_18a);
if(_18e){
return _18e;
}else{
return dojo.graphics.color.named[_18a]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _190="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_190+"]","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]=_190.indexOf(rgb[i].charAt(0))*16+_190.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 _1a1=v-min;
s=(v==0)?0:_1a1/v;
if(s==0){
h=0;
}else{
if(r==v){
h=60*(g-b)/_1a1;
}else{
if(g==v){
h=120+60*(b-r)/_1a1;
}else{
if(b==v){
h=240+60*(r-g)/_1a1;
}
}
}
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 _1a8=h/60;
var i=Math.floor(_1a8);
var f=_1a8-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 _1b6=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_1b6/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_1b6>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_1b6;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_1b6);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_1b6);
}
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 _1c2=dojo.style.getStyle(node,"-moz-box-sizing");
if(!_1c2){
_1c2=dojo.style.getStyle(node,"box-sizing");
}
return (_1c2?_1c2:dojo.style.boxSizing.contentBox);
}
};
dojo.style.isBorderBox=function(node){
return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox);
};
dojo.style.getUnitValue=function(node,_1c5,_1c6){
node=dojo.byId(node);
var _1c7={value:0,units:"px"};
var s=dojo.style.getComputedStyle(node,_1c5);
if(s==""||(s=="auto"&&_1c6)){
return _1c7;
}
if(dojo.lang.isUndefined(s)){
_1c7.value=NaN;
}else{
var _1c9=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_1c9){
_1c7.value=NaN;
}else{
_1c7.value=Number(_1c9[1]);
_1c7.units=_1c9[2].toLowerCase();
}
}
return _1c7;
};
dojo.style.getPixelValue=function(node,_1cb,_1cc){
node=dojo.byId(node);
var _1cd=dojo.style.getUnitValue(node,_1cb,_1cc);
if(isNaN(_1cd.value)){
return 0;
}
if((_1cd.value)&&(_1cd.units!="px")){
return NaN;
}
return _1cd.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 _1d0=dojo.style.isPositionAbsolute(node);
var left=dojo.style.getPixelValue(node,"margin-left",_1d0);
var _1d2=dojo.style.getPixelValue(node,"margin-right",_1d0);
return left+_1d2;
};
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 _1d5=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width"));
return left+_1d5;
};
dojo.style.getPaddingWidth=function(node){
node=dojo.byId(node);
var left=dojo.style.getPixelValue(node,"padding-left",true);
var _1d8=dojo.style.getPixelValue(node,"padding-right",true);
return left+_1d8;
};
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,_1dd){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_1dd-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
_1dd-=dojo.style.getMarginWidth(node);
if(!isNaN(_1dd)&&_1dd>0){
node.style.width=_1dd+"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 _1df=dojo.style.isPositionAbsolute(node);
var top=dojo.style.getPixelValue(node,"margin-top",_1df);
var _1e1=dojo.style.getPixelValue(node,"margin-bottom",_1df);
return top+_1e1;
};
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 _1e4=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width"));
return top+_1e4;
};
dojo.style.getPaddingHeight=function(node){
node=dojo.byId(node);
var top=dojo.style.getPixelValue(node,"padding-top",true);
var _1e7=dojo.style.getPixelValue(node,"padding-bottom",true);
return top+_1e7;
};
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,_1ec){
node=dojo.byId(node);
if(!dojo.style.isBorderBox(node)){
_1ec-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
_1ec-=dojo.style.getMarginHeight(node);
if(!isNaN(_1ec)&&_1ec>0){
node.style.height=_1ec+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentWidth=function(node,_1ee){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_1ee+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
if(!isNaN(_1ee)&&_1ee>0){
node.style.width=_1ee+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentHeight=function(node,_1f0){
node=dojo.byId(node);
if(dojo.style.isBorderBox(node)){
_1f0+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
if(!isNaN(_1f0)&&_1f0>0){
node.style.height=_1f0+"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,_1f3){
node=dojo.byId(node);
var _1f4=(type=="top")?"offsetTop":"offsetLeft";
var _1f5=(type=="top")?"scrollTop":"scrollLeft";
var _1f6=(type=="top")?"y":"x";
var _1f7=0;
if(node["offsetParent"]){
if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==document.body){
var _1f8=document.body;
}else{
var _1f8=document.body.parentNode;
}
if(_1f3&&node.parentNode!=document.body){
_1f7-=dojo.style.sumAncestorProperties(node,_1f5);
}
do{
var n=node[_1f4];
_1f7+=isNaN(n)?0:n;
node=node.offsetParent;
}while(node!=_1f8&&node!=null);
}else{
if(node[_1f6]){
var n=node[_1f6];
_1f7+=isNaN(n)?0:n;
}
}
return _1f7;
};
dojo.style.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _1fc=0;
while(node){
var val=node[prop];
if(val){
_1fc+=val-0;
}
node=node.parentNode;
}
return _1fc;
};
dojo.style.totalOffsetLeft=function(node,_1ff){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"left",_1ff);
};
dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;
dojo.style.totalOffsetTop=function(node,_201){
node=dojo.byId(node);
return dojo.style.getTotalOffset(node,"top",_201);
};
dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;
dojo.style.getAbsolutePosition=function(node,_203){
node=dojo.byId(node);
var _204=[dojo.style.getAbsoluteX(node,_203),dojo.style.getAbsoluteY(node,_203)];
_204.x=_204[0];
_204.y=_204[1];
return _204;
};
dojo.style.styleSheet=null;
dojo.style.insertCssRule=function(_205,_206,_207){
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){
_207=dojo.style.styleSheet.cssRules.length;
}else{
if(dojo.style.styleSheet.rules){
_207=dojo.style.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.style.styleSheet.insertRule){
var rule=_205+" { "+_206+" }";
return dojo.style.styleSheet.insertRule(rule,_207);
}else{
if(dojo.style.styleSheet.addRule){
return dojo.style.styleSheet.addRule(_205,_206,_207);
}else{
return null;
}
}
};
dojo.style.removeCssRule=function(_209){
if(!dojo.style.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_209){
_209=dojo.style.styleSheet.rules.length;
dojo.style.styleSheet.removeRule(_209);
}
}else{
if(document.styleSheets[0]){
if(!_209){
_209=dojo.style.styleSheet.cssRules.length;
}
dojo.style.styleSheet.deleteRule(_209);
}
}
return true;
};
dojo.style.getBackgroundColor=function(node){
node=dojo.byId(node);
var _20b;
do{
_20b=dojo.style.getStyle(node,"background-color");
if(_20b.toLowerCase()=="rgba(0, 0, 0, 0)"){
_20b="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_20b,["transparent",""]));
if(_20b=="transparent"){
_20b=[255,255,255,0];
}else{
_20b=dojo.graphics.color.extractRGB(_20b);
}
return _20b;
};
dojo.style.getComputedStyle=function(node,_20d,_20e){
node=dojo.byId(node);
var _20f=_20e;
if(node.style.getPropertyValue){
_20f=node.style.getPropertyValue(_20d);
}
if(!_20f){
if(document.defaultView){
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
_20f=cs.getPropertyValue(_20d);
}
}else{
if(node.currentStyle){
_20f=node.currentStyle[dojo.style.toCamelCase(_20d)];
}
}
}
return _20f;
};
dojo.style.getStyle=function(node,_212){
node=dojo.byId(node);
var _213=dojo.style.toCamelCase(_212);
var _214=node.style[_213];
return (_214?_214:dojo.style.getComputedStyle(node,_212,_214));
};
dojo.style.toCamelCase=function(_215){
var arr=_215.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(_218){
return _218.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.style.setOpacity=function setOpacity(node,_21a,_21b){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_21b){
if(_21a>=1){
if(h.ie){
dojo.style.clearOpacity(node);
return;
}else{
_21a=0.999999;
}
}else{
if(_21a<0){
_21a=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="+_21a*100+")";
}
}
node.style.filter="Alpha(Opacity="+_21a*100+")";
}else{
if(h.moz){
node.style.opacity=_21a;
node.style.MozOpacity=_21a;
}else{
if(h.safari){
node.style.opacity=_21a;
node.style.KhtmlOpacity=_21a;
}else{
node.style.opacity=_21a;
}
}
}
};
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(_227,_228){
if(dojo.lang.isArray(_227)){
while(_227.length<4){
_227.push(0);
}
while(_227.length>4){
_227.pop();
}
var ret=_227;
}else{
var node=dojo.byId(_227);
var ret=[dojo.style.getAbsoluteX(node,_228),dojo.style.getAbsoluteY(node,_228),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,_231,_232){
var out="";
for(var i=0;i<_231;i++){
out+=str;
if(_232&&i<_231-1){
out+=_232;
}
}
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,_241,_242){
for(var name in _241){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_241[name]);
}
if(_242){
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 _246=str.split(" ");
var _247="";
var len=_246.length;
for(var i=0;i<len;i++){
var word=_246[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_247+=word;
if(i<len-1){
_247+=" ";
}
}
return new String(_247);
};
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 _24e=escape(str);
var _24f,re=/%u([0-9A-F]{4})/i;
while((_24f=_24e.match(re))){
var num=Number("0x"+_24f[1]);
var _251=escape("&#"+num+";");
ret+=_24e.substring(0,_24f.index)+_251;
_24e=_24e.substring(_24f.index+_24f[0].length);
}
ret+=_24e.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,_257){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_257){
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,_25f){
if(_25f){
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,_263,_264){
if(_264){
str=str.toLowerCase();
_263=_263.toLowerCase();
}
return str.indexOf(_263)==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,_26a){
if(_26a=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_26a=="\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,_26c){
var _26d=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_26c){
_26d.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_26d.push(str.substr(prevcomma));
return _26d;
};
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 _274=new dojo.uri.Uri(arguments[i].toString());
var _275=new dojo.uri.Uri(uri.toString());
if(_274.path==""&&_274.scheme==null&&_274.authority==null&&_274.query==null){
if(_274.fragment!=null){
_275.fragment=_274.fragment;
}
_274=_275;
}else{
if(_274.scheme==null){
_274.scheme=_275.scheme;
if(_274.authority==null){
_274.authority=_275.authority;
if(_274.path.charAt(0)!="/"){
var path=_275.path.substring(0,_275.path.lastIndexOf("/")+1)+_274.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;
}
}
}
}
_274.path=segs.join("/");
}
}
}
}
uri="";
if(_274.scheme!=null){
uri+=_274.scheme+":";
}
if(_274.authority!=null){
uri+="//"+_274.authority;
}
uri+=_274.path;
if(_274.query!=null){
uri+="?"+_274.query;
}
if(_274.fragment!=null){
uri+="#"+_274.fragment;
}
}
this.uri=uri.toString();
var _279="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_279));
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){
_279="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_279));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.html");
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(_27b){
_27b=dojo.byId(_27b)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_27b.style.MozUserSelect="none";
}else{
if(h.safari){
_27b.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_27b.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_27d){
_27d=dojo.byId(_27d)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_27d.style.MozUserSelect="";
}else{
if(h.safari){
_27d.style.KhtmlUserSelect="";
}else{
if(h.ie){
_27d.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_27f){
_27f=dojo.byId(_27f);
if(document.selection&&document.body.createTextRange){
var _280=document.body.createTextRange();
_280.moveToElementText(_27f);
_280.select();
}else{
if(window["getSelection"]){
var _281=window.getSelection();
if(_281["selectAllChildren"]){
_281.selectAllChildren(_27f);
}
}
}
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _282=window.getSelection();
if(dojo.lang.isString(_282)){
return _282=="";
}else{
return _282.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 _28c=dojo.byId(node);
type=type.toLowerCase();
while((_28c)&&(_28c.nodeName.toLowerCase()!=type)){
if(_28c==(document["body"]||document["documentElement"])){
return null;
}
_28c=_28c.parentNode;
}
return _28c;
};
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,_298){
node=dojo.byId(node);
return dojo.lang.inArray(dojo.html.getClasses(node),_298);
};
dojo.html.prependClass=function(node,_29a){
node=dojo.byId(node);
if(!node){
return false;
}
_29a+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_29a);
};
dojo.html.addClass=function(node,_29c){
node=dojo.byId(node);
if(!node){
return false;
}
if(dojo.html.hasClass(node,_29c)){
return false;
}
_29c=dojo.string.trim(dojo.html.getClass(node)+" "+_29c);
return dojo.html.setClass(node,_29c);
};
dojo.html.setClass=function(node,_29e){
node=dojo.byId(node);
if(!node){
return false;
}
var cs=new String(_29e);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_29e);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_2a1,_2a2){
node=dojo.byId(node);
if(!node){
return false;
}
var _2a1=dojo.string.trim(new String(_2a1));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_2a2){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_2a1)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_2a1){
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,_2a7,_2a8){
node=dojo.byId(node);
dojo.html.removeClass(node,_2a8);
dojo.html.addClass(node,_2a7);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_2a9,_2aa,_2ab,_2ac){
_2aa=dojo.byId(_2aa);
if(!_2aa){
_2aa=document;
}
var _2ad=_2a9.split(/\s+/g);
var _2ae=[];
if(_2ac!=1&&_2ac!=2){
_2ac=0;
}
var _2af=new RegExp("(\\s|^)(("+_2ad.join(")|(")+"))(\\s|$)");
if(!_2ab){
_2ab="*";
}
var _2b0=_2aa.getElementsByTagName(_2ab);
outer:
for(var i=0;i<_2b0.length;i++){
var node=_2b0[i];
var _2b3=dojo.html.getClasses(node);
if(_2b3.length==0){
continue outer;
}
var _2b4=0;
for(var j=0;j<_2b3.length;j++){
if(_2af.test(_2b3[j])){
if(_2ac==dojo.html.classMatchType.ContainsAny){
_2ae.push(node);
continue outer;
}else{
_2b4++;
}
}else{
if(_2ac==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_2b4==_2ad.length){
if(_2ac==dojo.html.classMatchType.IsOnly&&_2b4==_2b3.length){
_2ae.push(node);
}else{
if(_2ac==dojo.html.classMatchType.ContainsAll){
_2ae.push(node);
}
}
}
}
return _2ae;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _2b8=e.pageX||e.clientX+document.body.scrollLeft;
var _2b9=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var _2ba=getAbsoluteX(node)+(getInnerWidth(node)/2);
var _2bb=getAbsoluteY(node)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_2b8<_2ba?WEST:EAST)|(_2b9<_2bb?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(_2bc,e){
_2bc=dojo.byId(_2bc);
var _2be=e.pageX||e.clientX+document.body.scrollLeft;
var _2bf=e.pageY||e.clientY+document.body.scrollTop;
with(dojo.html){
var top=getAbsoluteY(_2bc);
var _2c1=top+getInnerHeight(_2bc);
var left=getAbsoluteX(_2bc);
var _2c3=left+getInnerWidth(_2bc);
}
return (_2be>=left&&_2be<=_2c3&&_2bf>=top&&_2bf<=_2c1);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _2c5="";
if(node==null){
return _2c5;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _2c7="unknown";
try{
_2c7=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_2c7){
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":
_2c5+="\n";
_2c5+=dojo.html.renderedTextContent(node.childNodes[i]);
_2c5+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_2c5+="\n";
}else{
_2c5+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _2c9="unknown";
try{
_2c9=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_2c9){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_2c9){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_2c5)){
text.replace(/^\s/,"");
}
break;
}
_2c5+=text;
break;
default:
break;
}
}
return _2c5;
};
dojo.html.setActiveStyleSheet=function(_2ca){
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")==_2ca){
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 _2d1="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_2d1="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_2d1="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_2d1="section";
}
}
}
tn.innerHTML=txt;
tn.normalize();
var _2d2=null;
switch(_2d1){
case "cell":
_2d2=tn.getElementsByTagName("tr")[0];
break;
case "row":
_2d2=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_2d2=tn.getElementsByTagName("table")[0];
break;
default:
_2d2=tn;
break;
}
var _2d3=[];
for(var x=0;x<_2d2.childNodes.length;x++){
_2d3.push(_2d2.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _2d3;
};
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,_2d9,_2da,_2db,_2dc){
if(dojo.lang.isArray(_2d9)){
_2dc=_2db;
_2db=_2da;
_2da=_2d9[1];
_2d9=_2d9[0];
}
if(!isNaN(_2db)){
_2db=[Number(_2db),Number(_2db)];
}else{
if(!dojo.lang.isArray(_2db)){
_2db=[0,0];
}
}
var _2dd=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_2db[0];
var h=node.offsetHeight+_2db[1];
if(_2dc){
_2d9-=_2dd.x;
_2da-=_2dd.y;
}
var x=_2d9+w;
if(x>view.w){
x=view.w-w;
}else{
x=_2d9;
}
x=Math.max(_2db[0],x)+_2dd.x;
var y=_2da+h;
if(y>view.h){
y=view.h-h;
}else{
y=_2da;
}
y=Math.max(_2db[1],y)+_2dd.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,_2e5,_2e6,_2e7,_2e8){
if(dojo.lang.isArray(_2e5)){
_2e8=_2e7;
_2e7=_2e6;
_2e6=_2e5[1];
_2e5=_2e5[0];
}
var _2e9=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth;
var h=node.offsetHeight;
if(_2e8){
_2e5-=_2e9.x;
_2e6-=_2e9.y;
}
var x=-1,y=-1;
if(_2e5+w<=view.w&&_2e6+h<=view.h){
x=_2e5;
y=_2e6;
}
if((x<0||y<0)&&_2e5<=view.w&&_2e6+h<=view.h){
x=_2e5-w;
y=_2e6;
}
if((x<0||y<0)&&_2e5+w<=view.w&&_2e6<=view.h){
x=_2e5;
y=_2e6-h;
}
if((x<0||y<0)&&_2e5<=view.w&&_2e6<=view.h){
x=_2e5-w;
y=_2e6-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_2e5,_2e6,_2e7,_2e8);
}
x+=_2e9.x;
y+=_2e9.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,_2f1){
if(!URI){
return;
}
if(!doc){
doc=document;
}
if(doc.baseURI){
URI=new dojo.uri.Uri(doc.baseURI,URI);
}
if(_2f1&&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.animation.AnimationEvent");
dojo.require("dojo.lang");
dojo.animation.AnimationEvent=function(anim,type,_2ff,_300,_301,_302,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_2ff;
this.x=_2ff[0];
this.y=_2ff[1];
this.z=_2ff[2];
this.startTime=_300;
this.currentTime=_301;
this.endTime=_302;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _306=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_306[i]=Math.round(this.coords[i]);
}
return _306;
}});
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_308,end){
this.start=_308;
this.end=end;
this.dimensions=_308.length;
for(var i=0;i<_308.length;i++){
_308[i]=Number(_308[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _30c=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_30c[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _30c;
};
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 _310=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_310[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);
}
_310[j]=C/D;
}
return _310;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _31a=step*(this.p.length-1);
var node=Math.floor(_31a);
var _31c=_31a-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=_31c;
var u2=_31c*_31c;
var u3=_31c*_31c*_31c;
var _324=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];
_324[k]=x1*u3+x2*u2+x3*u+x4;
}
return _324;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_32a,end,ccw){
var _32d=dojo.math.points.midpoint(_32a,end);
var _32e=dojo.math.points.translate(dojo.math.points.invert(_32d),_32a);
var rad=Math.sqrt(Math.pow(_32e[0],2)+Math.pow(_32e[1],2));
var _330=dojo.math.radToDeg(Math.atan(_32e[1]/_32e[0]));
if(_32e[0]<0){
_330-=90;
}else{
_330+=90;
}
dojo.math.curves.CenteredArc.call(this,_32d,rad,_330,_330+(ccw?-180:180));
},CenteredArc:function(_331,_332,_333,end){
this.center=_331;
this.radius=_332;
this.start=_333||0;
this.end=end;
this.getValue=function(n){
var _336=new Array(2);
var _337=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_336[0]=this.center[0]+this.radius*Math.sin(_337);
_336[1]=this.center[1]-this.radius*Math.cos(_337);
return _336;
};
return this;
},Circle:function(_338,_339){
dojo.math.curves.CenteredArc.call(this,_338,_339,0,360);
return this;
},Path:function(){
var _33a=[];
var _33b=[];
var _33c=[];
var _33d=0;
this.add=function(_33e,_33f){
if(_33f<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_33a.push(_33e);
_33b.push(_33f);
_33d+=_33f;
computeRanges();
};
this.remove=function(_340){
for(var i=0;i<_33a.length;i++){
if(_33a[i]==_340){
_33a.splice(i,1);
_33d-=_33b.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_33a=[];
_33b=[];
_33d=0;
};
this.getValue=function(n){
var _343=false,value=0;
for(var i=0;i<_33c.length;i++){
var r=_33c[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_33a[i].getValue(subN);
_343=true;
break;
}
}
if(!_343){
value=_33a[_33a.length-1].getValue(1);
}
for(j=0;j<i;j++){
value=dojo.math.points.translate(value,_33a[j].getValue(1));
}
return value;
};
function computeRanges(){
var _347=0;
for(var i=0;i<_33b.length;i++){
var end=_347+_33b[i]/_33d;
var len=end-_347;
_33c[i]=[_347,end,len];
_347=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(_34b,_34c,_34d,_34e,rate){
if(dojo.lang.isArray(_34b)){
_34b=new dojo.math.curves.Line(_34b[0],_34b[1]);
}
this.curve=_34b;
this.duration=_34c;
this.repeatCount=_34e||0;
this.rate=rate||25;
if(_34d){
if(dojo.lang.isFunction(_34d.getValue)){
this.accel=_34d;
}else{
var i=0.35*_34d+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(_351){
if(_351){
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,_355){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_355){
this.play();
}
},stop:function(_356){
clearTimeout(this._timer);
var step=this._percent/100;
if(_356){
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.lang.extras");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.type");
dojo.lang.setTimeout=function(func,_35d){
var _35e=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_35e=func;
func=_35d;
_35d=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_35e[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_35e,args);
},_35d);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj){
var ret={},key;
for(key in obj){
if(dojo.lang.isUndefined(ret[key])){
ret[key]=obj[key];
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.provide("dojo.event");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _36a=dojo.lang.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceFunc=_36a;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _36a=dojo.lang.nameAnonFunc(args[0],ao.srcObj);
ao.srcFunc=_36a;
ao.adviceObj=args[1];
ao.adviceFunc=args[2];
}
}
}
}
break;
case 4:
if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
var _36a=dojo.lang.nameAnonFunc(args[1],dj_global);
ao.srcFunc=_36a;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
break;
}
if((typeof ao.srcFunc).toLowerCase()!="string"){
ao.srcFunc=dojo.lang.getNameInObj(ao.srcObj,ao.srcFunc);
}
if((typeof ao.adviceFunc).toLowerCase()!="string"){
ao.adviceFunc=dojo.lang.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&((typeof ao.aroundFunc).toLowerCase()!="string")){
ao.aroundFunc=dojo.lang.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
return ao;
}
this.connect=function(){
var ao=interpolateArgs(arguments);
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
if(ao.adviceFunc){
var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);
}
mjp.kwAddAdvice(ao);
return mjp;
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this._kwConnectImpl=function(_372,_373){
var fn=(_373)?"disconnect":"connect";
if(typeof _372["srcFunc"]=="function"){
_372.srcObj=_372["srcObj"]||dj_global;
var _375=dojo.lang.nameAnonFunc(_372.srcFunc,_372.srcObj);
_372.srcFunc=_375;
}
if(typeof _372["adviceFunc"]=="function"){
_372.adviceObj=_372["adviceObj"]||dj_global;
var _375=dojo.lang.nameAnonFunc(_372.adviceFunc,_372.adviceObj);
_372.adviceFunc=_375;
}
return dojo.event[fn]((_372["type"]||_372["adviceType"]||"after"),_372["srcObj"]||dj_global,_372["srcFunc"],_372["adviceObj"]||_372["targetObj"]||dj_global,_372["adviceFunc"]||_372["targetFunc"],_372["aroundObj"],_372["aroundFunc"],_372["once"],_372["delay"],_372["rate"],_372["adviceMsg"]||false);
};
this.kwConnect=function(_376){
return this._kwConnectImpl(_376,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(_379){
return this._kwConnectImpl(_379,true);
};
};
dojo.event.MethodInvocation=function(_37a,obj,args){
this.jp_=_37a;
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,_382){
this.object=obj||dj_global;
this.methodname=_382;
this.methodfunc=this.object[_382];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_384){
if(!obj){
obj=dj_global;
}
if(!obj[_384]){
obj[_384]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_384]))&&(!dojo.lang.isAlien(obj[_384]))){
return null;
}
}
var _385=_384+"$joinpoint";
var _386=_384+"$joinpoint$method";
var _387=obj[_385];
if(!_387){
var _388=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_388=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_385,_386,_384]);
}
}
obj[_386]=obj[_384];
_387=obj[_385]=new dojo.event.MethodJoinPoint(obj,_386);
obj[_384]=function(){
var args=[];
if((_388)&&(!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)&&(_388)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x]));
}else{
args.push(arguments[x]);
}
}
}
return _387.run.apply(_387,args);
};
}
return _387;
};
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 _38e=[];
for(var x=0;x<args.length;x++){
_38e[x]=args[x];
}
var _390=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _392=marr[0]||dj_global;
var _393=marr[1];
if(!_392[_393]){
dojo.raise("function \""+_393+"\" does not exist on \""+_392+"\"");
}
var _394=marr[2]||dj_global;
var _395=marr[3];
var msg=marr[6];
var _397;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _392[_393].apply(_392,to.args);
}};
to.args=_38e;
var _399=parseInt(marr[4]);
var _39a=((!isNaN(_399))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _39d=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;
_390(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_395){
_394[_395].call(_394,to);
}else{
if((_39a)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_392[_393].call(_392,to);
}else{
_392[_393].apply(_392,args);
}
},_399);
}else{
if(msg){
_392[_393].call(_392,to);
}else{
_392[_393].apply(_392,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_390,true);
}
var _3a0;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_3a0=mi.proceed();
}else{
if(this.methodfunc){
_3a0=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_390,true);
}
return (this.methodfunc)?_3a0: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(_3a5,_3a6,_3a7,_3a8,_3a9,_3aa,once,_3ac,rate,_3ae){
var arr=this.getArr(_3a9);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_3a5,_3a6,_3a7,_3a8,_3ac,rate,_3ae];
if(once){
if(this.hasAdvice(_3a5,_3a6,_3a9,arr)>=0){
return;
}
}
if(_3aa=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_3b1,_3b2,_3b3,arr){
if(!arr){
arr=this.getArr(_3b3);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_3b1)&&(arr[x][1]==_3b2)){
ind=x;
}
}
return ind;
},removeAdvice:function(_3b7,_3b8,_3b9,once){
var arr=this.getArr(_3b9);
var ind=this.hasAdvice(_3b7,_3b8,_3b9,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_3b7,_3b8,_3b9,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_3bd){
if(!this.topics[_3bd]){
this.topics[_3bd]=new this.TopicImpl(_3bd);
}
return this.topics[_3bd];
};
this.registerPublisher=function(_3be,obj,_3c0){
var _3be=this.getTopic(_3be);
_3be.registerPublisher(obj,_3c0);
};
this.subscribe=function(_3c1,obj,_3c3){
var _3c1=this.getTopic(_3c1);
_3c1.subscribe(obj,_3c3);
};
this.unsubscribe=function(_3c4,obj,_3c6){
var _3c4=this.getTopic(_3c4);
_3c4.unsubscribe(obj,_3c6);
};
this.publish=function(_3c7,_3c8){
var _3c7=this.getTopic(_3c7);
var args=[];
if(arguments.length==2&&(dojo.lang.isArray(_3c8)||_3c8.callee)){
args=_3c8;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_3c7.sendMessage.apply(_3c7,args);
};
};
dojo.event.topic.TopicImpl=function(_3cb){
this.topicName=_3cb;
var self=this;
self.subscribe=function(_3cd,_3ce){
var tf=_3ce||_3cd;
var to=(!_3ce)?dj_global:_3cd;
dojo.event.kwConnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.unsubscribe=function(_3d1,_3d2){
var tf=(!_3d2)?_3d1:_3d2;
var to=(!_3d2)?null:_3d1;
dojo.event.kwDisconnect({srcObj:self,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
self.registerPublisher=function(_3d5,_3d6){
dojo.event.connect(_3d5,_3d6,self,"sendMessage");
};
self.sendMessage=function(_3d7){
};
};
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(_3da){
var na;
var tna;
if(_3da){
tna=_3da.getElementsByTagName("*");
na=[_3da];
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 _3de={};
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 _3e2=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,_3e6){
this.addClobberNode(node);
for(var x=0;x<_3e6.length;x++){
node.__clobberAttrs__.push(_3e6[x]);
}
};
this.removeListener=function(node,_3e9,fp,_3eb){
if(!_3eb){
var _3eb=false;
}
_3e9=_3e9.toLowerCase();
if(_3e9.substr(0,2)=="on"){
_3e9=_3e9.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_3e9,fp,_3eb);
}
};
this.addListener=function(node,_3ed,fp,_3ef,_3f0){
if(!node){
return;
}
if(!_3ef){
var _3ef=false;
}
_3ed=_3ed.toLowerCase();
if(_3ed.substr(0,2)!="on"){
_3ed="on"+_3ed;
}
if(!_3f0){
var _3f1=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt));
if(_3ef){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_3f1=fp;
}
if(node.addEventListener){
node.addEventListener(_3ed.substr(2),_3f1,_3ef);
return _3f1;
}else{
if(typeof node[_3ed]=="function"){
var _3f4=node[_3ed];
node[_3ed]=function(e){
_3f4(e);
return _3f1(e);
};
}else{
node[_3ed]=_3f1;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_3ed]);
}
return _3f1;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3f7,_3f8){
if(typeof _3f7!="function"){
dojo.raise("listener not a function: "+_3f7);
}
dojo.event.browser.currentEvent.currentTarget=_3f8;
return _3f7.call(_3f8,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.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,_3ff,_400,_401){
return dojo.fx.html.fade(node,_3ff,dojo.style.getOpacity(node),0,_400,_401);
};
dojo.fx.html.fadeIn=function(node,_403,_404,_405){
return dojo.fx.html.fade(node,_403,dojo.style.getOpacity(node),1,_404,_405);
};
dojo.fx.html.fadeHide=function(node,_407,_408,_409){
node=dojo.byId(node);
if(!_407){
_407=150;
}
return dojo.fx.html.fadeOut(node,_407,function(node){
node.style.display="none";
if(typeof _408=="function"){
_408(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_40c,_40d,_40e){
node=dojo.byId(node);
if(!_40c){
_40c=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_40c,0,1,_40d,_40e);
};
dojo.fx.html.fade=function(node,_410,_411,_412,_413,_414){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_411],[_412]),_410||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_413){
dojo.event.connect(anim,"onEnd",function(e){
_413(node,anim);
});
}
if(!_414){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_419,_41a,_41b,_41c){
if(!dojo.lang.isNumber(_419)){
var tmp=_419;
_419=_41a;
_41a=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,_419,[left,top],_41a,_41b,_41c);
};
dojo.fx.html.slideBy=function(node,_422,_423,_424,_425){
if(!dojo.lang.isNumber(_422)){
var tmp=_422;
_422=_423;
_423=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,_422,[left+_423[0],top+_423[1]],_424,_425);
};
dojo.fx.html.slide=function(node,_42b,_42c,_42d,_42e,_42f){
if(!dojo.lang.isNumber(_42b)){
var tmp=_42b;
_42b=_42d;
_42d=_42c;
_42c=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(_42c,_42d),_42b||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_42e){
dojo.event.connect(anim,"onEnd",function(e){
_42e(node,anim);
});
}
if(!_42f){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_435,_436,_437,_438,_439){
if(!dojo.lang.isNumber(_435)){
var tmp=_435;
_435=_436;
_436=tmp;
}
node=dojo.byId(node);
var _43b=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _43d=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_43b.length>3){
_43b.pop();
}
var rgb=new dojo.graphics.color.Color(_436).toRgb();
var anim=dojo.fx.html.colorFade(node,_435||dojo.fx.duration,_436,_43b,_438,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_43d){
node.style.backgroundColor="transparent";
}
});
if(_437>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_439){
setTimeout(function(){
anim.play(true);
},_437);
}
}else{
if(!_439){
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,_442,_443,_444,_445,_446){
if(!dojo.lang.isNumber(_442)){
var tmp=_442;
_442=_443;
_443=tmp;
}
node=dojo.byId(node);
var _448=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_443).toRgb();
var anim=dojo.fx.html.colorFade(node,_442||dojo.fx.duration,_448,rgb,_445,_444>0||_446);
if(_444>0){
node.style.backgroundColor="rgb("+_448.join(",")+")";
if(!_446){
setTimeout(function(){
anim.play(true);
},_444);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_44c,_44d,_44e,_44f,_450){
if(!dojo.lang.isNumber(_44c)){
var tmp=_44c;
_44c=_44e;
_44e=_44d;
_44d=tmp;
}
node=dojo.byId(node);
var _452=new dojo.graphics.color.Color(_44d).toRgb();
var _453=new dojo.graphics.color.Color(_44e).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_452,_453),_44c||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_44f){
dojo.event.connect(anim,"onEnd",function(e){
_44f(node,anim);
});
}
if(!_450){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_458,_459,_45a){
node=dojo.byId(node);
var _45b=dojo.style.getStyle(node,"overflow");
if(_45b=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_458,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_45b;
node.style.height="auto";
if(_459){
_459(node,anim);
}
});
if(!_45a){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_45e,_45f,_460){
node=dojo.byId(node);
var _461=dojo.style.getStyle(node,"overflow");
if(_461=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_45e,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.overflow=_461;
if(_45f){
_45f(node,anim);
}
});
if(!_460){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_464,_465,_466,_467,_468){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_465],[_466]],_464||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_467){
_467(node,anim);
}
});
if(!_468){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_46c){
this.node=dojo.byId(node);
if(_46c){
dojo.event.connect(dojo.byId(_46c),"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(_46e,_46f,_470,_471,_472){
var _473=dojo.style.toCoordinateArray(_46e);
var _474=document.createElement("div");
with(_474.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_474);
_46f=dojo.byId(_46f);
with(_46f.style){
visibility="hidden";
display="block";
}
var _475=dojo.style.toCoordinateArray(_46f);
with(_46f.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_473,_475),_470||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_474.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_474.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(){
_46f.style.display="block";
_474.parentNode.removeChild(_474);
if(_471){
_471(_46f,anim);
}
});
if(!_472){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_479,end,_47b,_47c,_47d){
var _47e=dojo.style.toCoordinateArray(_479);
var _47f=dojo.style.toCoordinateArray(end);
_479=dojo.byId(_479);
var _480=document.createElement("div");
with(_480.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_480);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_47e,_47f),_47b||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_479.style.display="none";
_480.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_480.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(){
_480.parentNode.removeChild(_480);
if(_47c){
_47c(_479,anim);
}
});
if(!_47d){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_484,_485){
_484=dojo.byId(_484);
_485=dojo.byId(_485);
var _486=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _487=null;
var _488=null;
var _489=null;
var _48a=null;
var _48b=null;
var _48c=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(_489);
_489=setTimeout(_486.show,_486.waitToShow);
};
this.show=function(){
clearTimeout(_489);
clearTimeout(_48a);
if((_488&&_488.status()=="playing")||(_487&&_487.status()=="playing")||_486.showing){
return;
}
if(typeof _486.onBeforeExplode=="function"){
_486.onBeforeExplode(_484,_485);
}
_487=dojo.fx.html.explode(_484,_485,_486.timeToShow,function(e){
_486.showing=true;
if(typeof _486.onAfterExplode=="function"){
_486.onAfterExplode(_484,_485);
}
});
if(typeof _486.onExploding=="function"){
dojo.event.connect(_487,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_489);
clearTimeout(_48a);
if(_486.showing){
_48a=setTimeout(_486.hide,_486.waitToHide);
}
};
this.hide=function(){
clearTimeout(_489);
clearTimeout(_48a);
if(_487&&_487.status()=="playing"){
return;
}
_486.showing=false;
if(typeof _486.onBeforeImplode=="function"){
_486.onBeforeImplode(_484,_485);
}
_488=dojo.fx.html.implode(_485,_484,_486.timeToHide,function(e){
if(typeof _486.onAfterImplode=="function"){
_486.onAfterImplode(_484,_485);
}
});
if(typeof _486.onImploding=="function"){
dojo.event.connect(_488,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_484,"onclick",function(e){
if(_486.showing){
_486.hide();
}else{
_486.show();
}
});
dojo.event.connect(_484,"onmouseover",function(e){
if(_486.autoShow){
_486.timeShow();
}
});
dojo.event.connect(_484,"onmouseout",function(e){
if(_486.autoHide){
_486.timeHide();
}
});
dojo.event.connect(_485,"onmouseover",function(e){
clearTimeout(_48a);
});
dojo.event.connect(_485,"onmouseout",function(e){
if(_486.autoHide){
_486.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_496){
while(node){
if(node==_496){
return true;
}
node=node.parentNode;
}
return false;
}
if(_486.autoHide&&_486.showing&&!isDesc(e.target,_485)&&!isDesc(e.target,_484)){
_486.hide();
}
});
return this;
};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.hostenv.conditionalLoadModule({browser:["dojo.fx.html"],dashboard:["dojo.fx.html"]});
dojo.hostenv.moduleLoaded("dojo.fx.*");
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
this.parseFragment=function(_497){
var _498={};
var _499=dojo.dom.getTagName(_497);
_498[_499]=new Array(_497.tagName);
var _49a=this.parseAttributes(_497);
for(var attr in _49a){
if(!_498[attr]){
_498[attr]=[];
}
_498[attr][_498[attr].length]=_49a[attr];
}
var _49c=_497.childNodes;
for(var _49d in _49c){
switch(_49c[_49d].nodeType){
case dojo.dom.ELEMENT_NODE:
_498[_499].push(this.parseElement(_49c[_49d]));
break;
case dojo.dom.TEXT_NODE:
if(_49c.length==1){
if(!_498[_497.tagName]){
_498[_499]=[];
}
_498[_499].push({value:_49c[0].nodeValue});
}
break;
}
}
return _498;
};
this.parseElement=function(node,_49f,_4a0,_4a1){
var _4a2={};
var _4a3=dojo.dom.getTagName(node);
_4a2[_4a3]=[];
if((!_4a0)||(_4a3.substr(0,4).toLowerCase()=="dojo")){
var _4a4=this.parseAttributes(node);
for(var attr in _4a4){
if((!_4a2[_4a3][attr])||(typeof _4a2[_4a3][attr]!="array")){
_4a2[_4a3][attr]=[];
}
_4a2[_4a3][attr].push(_4a4[attr]);
}
_4a2[_4a3].nodeRef=node;
_4a2.tagName=_4a3;
_4a2.index=_4a1||0;
}
var _4a6=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_4a6++;
var ctn=dojo.dom.getTagName(tcn);
if(!_4a2[ctn]){
_4a2[ctn]=[];
}
_4a2[ctn].push(this.parseElement(tcn,true,_4a0,_4a6));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_4a2[ctn][_4a2[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_4a2[_4a3].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _4a2;
};
this.parseAttributes=function(node){
var _4ab={};
var atts=node.attributes;
for(var i=0;i<atts.length;i++){
var _4ae=atts.item(i);
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_4ae){
continue;
}
if((typeof _4ae=="object")&&(typeof _4ae.nodeValue=="undefined")||(_4ae.nodeValue==null)||(_4ae.nodeValue=="")){
continue;
}
}
var nn=(_4ae.nodeName.indexOf("dojo:")==-1)?_4ae.nodeName:_4ae.nodeName.split("dojo:")[1];
_4ab[nn]={value:_4ae.nodeValue};
}
return _4ab;
};
};
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 _4b0={};
var _4b1=[];
this.getUniqueId=function(_4b2){
return _4b2+"_"+(_4b0[_4b2]!=undefined?++_4b0[_4b2]:_4b0[_4b2]=0);
};
this.add=function(_4b3){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_4b3);
if(_4b3.widgetId==""){
if(_4b3["id"]){
_4b3.widgetId=_4b3["id"];
}else{
if(_4b3.extraArgs["id"]){
_4b3.widgetId=_4b3.extraArgs["id"];
}else{
_4b3.widgetId=this.getUniqueId(_4b3.widgetType);
}
}
}
if(this.widgetIds[_4b3.widgetId]){
dojo.debug("widget ID collision on ID: "+_4b3.widgetId);
}
this.widgetIds[_4b3.widgetId]=_4b3;
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(_4b5){
var tw=this.widgets[_4b5].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_4b5,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(_4bf){
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_4bf(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 _4c5={};
var _4c6=["dojo.widget"];
for(var i=0;i<_4c6.length;i++){
_4c6[_4c6[i]]=true;
}
this.registerWidgetPackage=function(_4c8){
if(!_4c6[_4c8]){
_4c6[_4c8]=true;
_4c6.push(_4c8);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_4c6,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_4ca,_4cb,_4cc){
var impl=this.getImplementationName(_4ca);
if(impl){
var ret=new impl(_4cb);
return ret;
}
};
this.getImplementationName=function(_4cf){
var _4d0=_4cf.toLowerCase();
var impl=_4c5[_4d0];
if(impl){
return impl;
}
if(!_4b1.length){
for(var _4d2 in dojo.render){
if(dojo.render[_4d2]["capable"]===true){
var _4d3=dojo.render[_4d2].prefixes;
for(var i=0;i<_4d3.length;i++){
_4b1.push(_4d3[i].toLowerCase());
}
}
}
_4b1.push("");
}
for(var i=0;i<_4c6.length;i++){
var _4d5=dojo.evalObjPath(_4c6[i]);
if(!_4d5){
continue;
}
for(var j=0;j<_4b1.length;j++){
if(!_4d5[_4b1[j]]){
continue;
}
for(var _4d7 in _4d5[_4b1[j]]){
if(_4d7.toLowerCase()!=_4d0){
continue;
}
_4c5[_4d0]=_4d5[_4b1[j]][_4d7];
return _4c5[_4d0];
}
}
for(var j=0;j<_4b1.length;j++){
for(var _4d7 in _4d5){
if(_4d7.toLowerCase()!=(_4b1[j]+_4d0)){
continue;
}
_4c5[_4d0]=_4d5[_4d7];
return _4c5[_4d0];
}
}
}
throw new Error("Could not locate \""+_4cf+"\" class");
};
this.resizing=false;
this.onResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _4d9=this.topWidgets[id];
if(_4d9.onResized){
_4d9.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 _4db=dojo.widget.manager.getAllWidgets.apply(dojo.widget.manager,arguments);
if(arguments.length>0){
return _4db[n];
}
return _4db;
};
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 _4dd=this.children[i];
if(_4dd.onResized){
_4dd.onResized();
}
}
},create:function(args,_4df,_4e0){
this.satisfyPropertySets(args,_4df,_4e0);
this.mixInProperties(args,_4df,_4e0);
this.postMixInProperties(args,_4df,_4e0);
dojo.widget.manager.add(this);
this.buildRendering(args,_4df,_4e0);
this.initialize(args,_4df,_4e0);
this.postInitialize(args,_4df,_4e0);
this.postCreate(args,_4df,_4e0);
return this;
},destroy:function(_4e1){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_4e1);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_4e4){
var ret=[];
var _4e6=dojo.lang.isFunction(type);
if(!_4e6){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_4e6){
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(_4e4){
ret=ret.concat(this.children[x].getChildrenOfType(type,_4e4));
}
}
return ret;
},getDescendants:function(){
var _4e8=[];
var _4e9=[this];
var elem;
while(elem=_4e9.pop()){
_4e8.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_4e9.push(elem);
});
}
return _4e8;
},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 _4f0;
var _4f1=dojo.widget.lcArgsCache[this.widgetType];
if(_4f1==null){
_4f1={};
for(var y in this){
_4f1[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_4f1;
}
var _4f3={};
for(var x in args){
if(!this[x]){
var y=_4f1[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_4f3[x]){
continue;
}
_4f3[x]=true;
if((typeof this[x])!=(typeof _4f0)){
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 _4f5=args[x].split(";");
for(var y=0;y<_4f5.length;y++){
var si=_4f5[y].indexOf(":");
if((si!=-1)&&(_4f5[y].length>si)){
this[x][_4f5[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_4f5[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(_4fd){
},addChild:function(_4fe){
dj_unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_4ff){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_4ff){
this.children.splice(x,1);
break;
}
}
return _4ff;
},resize:function(_501,_502){
this.setWidth(_501);
this.setHeight(_502);
},setWidth:function(_503){
if((typeof _503=="string")&&(_503.substr(-1)=="%")){
this.setPercentageWidth(_503);
}else{
this.setNativeWidth(_503);
}
},setHeight:function(_504){
if((typeof _504=="string")&&(_504.substr(-1)=="%")){
this.setPercentageHeight(_504);
}else{
this.setNativeHeight(_504);
}
},setPercentageHeight:function(_505){
return false;
},setNativeHeight:function(_506){
return false;
},setPercentageWidth:function(_507){
return false;
},setNativeWidth:function(_508){
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 _50c=type.toLowerCase();
this[_50c]=function(_50d,_50e,_50f,_510,_511){
return dojo.widget.buildWidgetFromParseTree(_50c,_50d,_50e,_50f,_510,_511);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_512,_513,_514){
var _515=_513.parseProperties(_512["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_516,_517,_518){
var _519=_517.parseProperties(_516["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_51c,_51d,_51e,_51f){
var _520=type.split(":");
_520=(_520.length==2)?_520[1]:type;
var _521=_51f||_51c.parseProperties(frag["dojo:"+_520]);
var _522=dojo.widget.manager.getImplementation(_520);
if(!_522){
throw new Error("cannot find \""+_520+"\" widget");
}else{
if(!_522.create){
throw new Error("\""+_520+"\" widget object does not appear to implement *Widget");
}
}
_521["dojoinsertionindex"]=_51e;
var ret=_522.create(_521,frag,_51d);
return ret;
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_524){
this.propertySetsList=[];
this.fragment=_524;
this.createComponents=function(_525,_526){
var _527=dojo.widget.tags;
var _528=[];
for(var item in _525){
var _52a=false;
try{
if(_525[item]&&(_525[item]["tagName"])&&(_525[item]!=_525["nodeRef"])){
var tn=new String(_525[item]["tagName"]);
var tna=tn.split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_527[ltn]){
_52a=true;
_525[item].tagName=ltn;
var ret=_527[ltn](_525[item],this,_526,_525[item]["index"]);
_528.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((!_52a)&&(typeof _525[item]=="object")&&(_525[item]!=_525.nodeRef)&&(_525[item]!=_525["tagName"])){
_528.push(this.createComponents(_525[item],_526));
}
}
return _528;
};
this.parsePropertySets=function(_530){
return [];
var _531=[];
for(var item in _530){
if((_530[item]["tagName"]=="dojo:propertyset")){
_531.push(_530[item]);
}
}
this.propertySetsList.push(_531);
return _531;
};
this.parseProperties=function(_533){
var _534={};
for(var item in _533){
if((_533[item]==_533["tagName"])||(_533[item]==_533.nodeRef)){
}else{
if((_533[item]["tagName"])&&(dojo.widget.tags[_533[item].tagName.toLowerCase()])){
}else{
if((_533[item][0])&&(_533[item][0].value!="")&&(_533[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _536=this;
this.getDataProvider(_536,_533[item][0].value);
_534.dataProvider=this.dataProvider;
}
_534[item]=_533[item][0].value;
var _537=this.parseProperties(_533[item]);
for(var _538 in _537){
_534[_538]=_537[_538];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _534;
};
this.getDataProvider=function(_539,_53a){
dojo.io.bind({url:_53a,load:function(type,_53c){
if(type=="load"){
_539.dataProvider=_53c;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_53d){
for(var x=0;x<this.propertySetsList.length;x++){
if(_53d==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_53f){
var _540=[];
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)){
_540.push(cpl);
}
}
return _540;
};
this.getPropertySets=function(_544){
var ppl="dojo:propertyproviderlist";
var _546=[];
var _547=_544["tagName"];
if(_544[ppl]){
var _548=_544[ppl].value.split(" ");
for(propertySetId in _548){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _549=this.getPropertySetById(propertySetId);
if(_549!=""){
_546.push(_549);
}
}else{
}
}
}
return (this.getPropertySetsByType(_547)).concat(_546);
};
this.createComponentFromScript=function(_54a,_54b,_54c){
var ltn="dojo:"+_54b.toLowerCase();
if(dojo.widget.tags[ltn]){
_54c.fastMixIn=true;
return [dojo.widget.tags[ltn](_54c,this,null,null,_54c)];
}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,_550,_551,_552){
function fromScript(_553,name,_555){
var _556=name.toLowerCase();
var _557="dojo:"+_556;
_555[_557]={dojotype:[{value:_556}],nodeRef:_553,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_553,name,_555,true);
}
if(typeof name!="string"&&typeof _550=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])");
return fromScript(name,_550,_551);
}
_550=_550||{};
var _558=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_551){
_558=true;
_551=tn;
if(h){
document.body.appendChild(_551);
}
}else{
if(_552){
dojo.dom.insertAtPosition(tn,_551,_552);
}else{
tn=_551;
}
}
var _55b=fromScript(tn,name,_550);
if(!_55b[0]||typeof _55b[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_558){
if(_55b[0].domNode.parentNode){
_55b[0].domNode.parentNode.removeChild(_55b[0].domNode);
}
}
return _55b[0];
};
dojo.widget.fromScript=function(name,_55d,_55e,_55f){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead");
return dojo.widget.createWidget(name,_55d,_55e,_55f);
};
dojo.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]});
dojo.hostenv.moduleLoaded("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.require("dojo.lang.func");
dojo.widget._cssFiles={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_561,_562,_563,_564){
var _565=_561||obj.templatePath;
var _566=_562||obj.templateCssPath;
if(_565&&!(_565 instanceof dojo.uri.Uri)){
_565=dojo.uri.dojoUri(_565);
dojo.deprecated("templatePath should be of type dojo.uri.Uri");
}
if(_566&&!(_566 instanceof dojo.uri.Uri)){
_566=dojo.uri.dojoUri(_566);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri");
}
var _567=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _568="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_567[_568]);
obj.widgetType=_568;
}
var wt=obj.widgetType;
if((_566)&&(!dojo.widget._cssFiles[_566])){
dojo.style.insertCssFile(_566);
obj.templateCssPath=null;
dojo.widget._cssFiles[_566]=true;
}
var ts=_567[wt];
if(!ts){
_567[wt]={"string":null,"node":null};
if(_564){
ts={};
}else{
ts=_567[wt];
}
}
if(!obj.templateString){
obj.templateString=_563||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_565)){
var _56b=dojo.hostenv.getText(_565);
if(_56b){
var _56c=_56b.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_56c){
_56b=_56c[1];
}
}else{
_56b="";
}
obj.templateString=_56b;
if(!_564){
_567[wt]["string"]=_56b;
}
}
if((!ts["string"])&&(!_564)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.attachTemplateNodes=function(_56d,_56e,_56f){
var _570=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_56d){
_56d=_56e.domNode;
}
if(_56d.nodeType!=_570){
return;
}
var _572=_56d.getElementsByTagName("*");
var _573=_56e;
for(var x=-1;x<_572.length;x++){
var _575=(x==-1)?_56d:_572[x];
var _576=[];
for(var y=0;y<this.attachProperties.length;y++){
var _578=_575.getAttribute(this.attachProperties[y]);
if(_578){
_576=_578.split(";");
for(var z=0;z<this.attachProperties.length;z++){
if((_56e[_576[z]])&&(dojo.lang.isArray(_56e[_576[z]]))){
_56e[_576[z]].push(_575);
}else{
_56e[_576[z]]=_575;
}
}
break;
}
}
var _57a=_575.getAttribute(this.templateProperty);
if(_57a){
_56e[_57a]=_575;
}
var _57b=_575.getAttribute(this.eventAttachProperty);
if(_57b){
var evts=_57b.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _57d=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _57f=tevt.split(":");
tevt=trim(_57f[0]);
_57d=trim(_57f[1]);
}
if(!_57d){
_57d=tevt;
}
var tf=function(){
var ntf=new String(_57d);
return function(evt){
if(_573[ntf]){
_573[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_575,tevt,tf,false,true);
}
}
for(var y=0;y<_56f.length;y++){
var _583=_575.getAttribute(_56f[y]);
if((_583)&&(_583.length)){
var _57d=null;
var _584=_56f[y].substr(4);
_57d=trim(_583);
var tf=function(){
var ntf=new String(_57d);
return function(evt){
if(_573[ntf]){
_573[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_575,_584,tf,false,true);
}
}
var _587=_575.getAttribute(this.onBuildProperty);
if(_587){
eval("var node = baseNode; var widget = targetObj; "+_587);
}
_575.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,_590,_591,_592,_593){
this.buildFromTemplate(obj,_590,_591,_592);
var node=dojo.dom.createNodesFromText(obj.templateString,true)[0];
this.attachTemplateNodes(node,_593||obj,dojo.widget.getDojoEventsFromStr(_592));
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(_595,_596,pos,ref,_599){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_595,_596,pos,ref,_599);
this.registerChild(_595,_599);
}
return _595;
},addWidgetAsDirectChild:function(_59a,_59b,pos,ref,_59e){
if((!this.containerNode)&&(!_59b)){
this.containerNode=this.domNode;
}
var cn=(_59b)?_59b:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
ref=cn.lastChild;
}
if(!_59e){
_59e=0;
}
_59a.domNode.setAttribute("dojoinsertionindex",_59e);
if(!ref){
cn.appendChild(_59a.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_59a.domNode,ref.parentNode,_59e);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_59a.domNode);
}else{
dojo.dom.insertAtPosition(_59a.domNode,cn,pos);
}
}
}
},registerChild:function(_5a0,_5a1){
_5a0.dojoInsertionIndex=_5a1;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_5a1){
idx=i;
}
}
this.children.splice(idx+1,0,_5a0);
_5a0.parent=this;
_5a0.addedTo(this);
delete dojo.widget.manager.topWidgets[_5a0.widgetId];
},removeChild:function(_5a4){
dojo.dom.removeNode(_5a4.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_5a4);
},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,_5a8){
var _5a9=this.getFragNodeRef(frag);
if(_5a8&&(_5a8.snarfChildDomOutput||!_5a9)){
_5a8.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_5a9);
}else{
if(_5a9){
if(this.domNode&&(this.domNode!==_5a9)){
var _5aa=_5a9.parentNode.replaceChild(this.domNode,_5a9);
}
}
}
if(_5a8){
_5a8.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _5ab=dojo.widget.getParser();
_5ab.createComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _5b1=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_5b1=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_5b1);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_5b1)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _5b3=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_5b3=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_5b3){
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<_5b3.length;i++){
var key=_5b3[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _5ba;
if((kval)||(dojo.lang.isString(kval))){
_5ba=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_5b3[i],_5ba);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_5b3)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_5b3){
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(_5bc,_5bd){
if(!_5bd){
_5bd=this;
}
return dojo.widget.attachTemplateNodes(_5bc,_5bd,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dj_unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dj_unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dj_unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.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(_5c3){
var ch=this.getContainerHeight();
},resizeSoon:function(){
if(this.isVisible()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_5c7){
try{
if(!_5c7){
dojo.event.browser.clean(this.domNode);
}
delete this.domNode;
}
catch(e){
}
},isVisible:function(){
return dojo.style.isVisible(this.domNode);
},doToggle:function(){
this.isVisible()?this.hide():this.show();
},show:function(){
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,this.onShow));
},onShow:function(){
this.animationInProgress=false;
},hide:function(){
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,this.onHide));
},onHide:function(){
this.animationInProgress=false;
}});
dojo.widget.HtmlWidget.toggle={};
dojo.widget.HtmlWidget.toggle.plain={show:function(node,_5c9,_5ca,_5cb){
dojo.style.show(node);
if(dojo.lang.isFunction(_5cb)){
_5cb();
}
},hide:function(node,_5cd,_5ce,_5cf){
dojo.html.hide(node);
if(dojo.lang.isFunction(_5cf)){
_5cf();
}
}};
dojo.widget.HtmlWidget.toggle.fade={show:function(node,_5d1,_5d2,_5d3){
dojo.fx.html.fadeShow(node,_5d1,_5d3);
},hide:function(node,_5d5,_5d6,_5d7){
dojo.fx.html.fadeHide(node,_5d5,_5d7);
}};
dojo.widget.HtmlWidget.toggle.wipe={show:function(node,_5d9,_5da,_5db){
dojo.fx.html.wipeIn(node,_5d9,_5db);
},hide:function(node,_5dd,_5de,_5df){
dojo.fx.html.wipeOut(node,_5dd,_5df);
}};
dojo.widget.HtmlWidget.toggle.explode={show:function(node,_5e1,_5e2,_5e3){
dojo.fx.html.explode(_5e2||[0,0,0,0],node,_5e1,_5e3);
},hide:function(node,_5e5,_5e6,_5e7){
dojo.fx.html.implode(node,_5e6||[0,0,0,0],_5e5,_5e7);
}};
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.*");

