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

if(typeof dojo=="undefined"){
var dj_global=this;
function dj_undef(_1,_2){
if(_2==null){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
if(dj_undef("dojo")){
var dojo={};
}
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 4476 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined));
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7!=null?_7:dj_global);
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_d,_e){
if(typeof _d!="string"){
return dj_global;
}
if(_d.indexOf(".")==-1){
return dojo.evalProp(_d,dj_global,_e);
}
var _f=dojo.parseObjPath(_d,dj_global,_e);
if(_f){
return dojo.evalProp(_f.prop,_f.obj,_e);
}
return null;
};
dojo.errorToString=function(_10){
if(!dj_undef("message",_10)){
return _10.message;
}else{
if(!dj_undef("description",_10)){
return _10.description;
}else{
return _10;
}
}
};
dojo.raise=function(_11,_12){
if(_12){
_11=_11+": "+dojo.errorToString(_12);
}
try{
dojo.hostenv.println("FATAL: "+_11);
}
catch(e){
}
throw Error(_11);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_14){
return dj_global.eval?dj_global.eval(_14):eval(_14);
}
dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if(_16!=null){
_17+=" "+_16;
}
dojo.raise(_17);
};
dojo.deprecated=function(_18,_19,_1a){
var _1b="DEPRECATED: "+_18;
if(_19){
_1b+=" "+_19;
}
if(_1a){
_1b+=" -- will be removed in version: "+_1a;
}
dojo.debug(_1b);
};
dojo.inherits=function(_1c,_1d){
if(typeof _1d!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_1d+"] must be a function (subclass: ["+_1c+"']");
}
_1c.prototype=new _1d();
_1c.prototype.constructor=_1c;
_1c.superclass=_1d.prototype;
_1c["super"]=_1d.prototype;
};
dojo.render=(function(){
function vscaffold(_1e,_1f){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1e};
for(var i=0;i<_1f.length;i++){
tmp[_1f[i]]=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 _22={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_22;
}else{
for(var _23 in _22){
if(typeof djConfig[_23]=="undefined"){
djConfig[_23]=_22[_23];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
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 _26=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _27={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_28,_29){
this.modulePrefixes_[_28]={name:_28,value:_29};
},getModulePrefix:function(_2a){
var mp=this.modulePrefixes_;
if((mp[_2a])&&(mp[_2a]["name"])){
return mp[_2a].value;
}
return _2a;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _27){
dojo.hostenv[_2c]=_27[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_36,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
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;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length-1;i>0;i--){
var _45=_43.slice(0,i).join(".");
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
return _43;
};
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(".");
if(djConfig.autoLoadNamespace){
dojo.getNamespace(_4c[0]);
}
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&(!_4d[0].match(/^\w+:/)));
var _4f=_4d[_4d.length-1];
if(_4f=="*"){
_47=(_4c.slice(0,-1)).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&(_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&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_51){
var _52=dojo.evalObjPath((_51.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_51)).toLowerCase()]=_52;
var _53=_51.split(/\./);
if(_53[_53.length-1]=="*"){
_53.pop();
}
return dojo.evalObjPath(_53.join("."),true);
};
dojo.hostenv.findModule=function(_54,_55){
var lmn=(new String(_54)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _57=dojo.evalObjPath(_54);
if((_54)&&(typeof _57!="undefined")&&(_57)){
this.loaded_modules_[lmn]=_57;
return _57;
}
if(_55){
dojo.raise("no loaded module named '"+_54+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_58){
var _59=_58["common"]||[];
var _5a=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);
for(var x=0;x<_5a.length;x++){
var _5c=_5a[x];
if(_5c.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5c);
}else{
dojo.hostenv.loadModule(_5c);
}
}
};
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){
var _5d=[];
for(var i=1;i<arguments.length;i++){
_5d.push(arguments[i]);
}
dojo.require.apply(dojo,_5d);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_5f,_60){
return dojo.hostenv.setModulePrefix(_5f,_60);
};
dojo.exists=function(obj,_62){
var p=_62.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.resetXd=function(){
this.isXDomain=djConfig.forceXDomain||false;
this.xdTimer=0;
this.xdInFlight={};
this.xdOrderedReqs=[];
this.xdDepMap={};
this.xdContents=[];
};
dojo.hostenv.resetXd();
dojo.hostenv.createXdPackage=function(_65){
var _66=[];
var _67=/dojo.(require|requireIf|requireAll|provide|requireAfterIf|requireAfter|kwCompoundRequire|conditionalRequire|hostenv\.conditionalLoadModule|.hostenv\.loadModule|hostenv\.moduleLoaded)\(([\w\W]*?)\)/mg;
var _68;
while((_68=_67.exec(_65))!=null){
_66.push("\""+_68[1]+"\", "+_68[2]);
}
var _69=[];
_69.push("dojo.hostenv.packageLoaded({\n");
if(_66.length>0){
_69.push("depends: [");
for(var i=0;i<_66.length;i++){
if(i>0){
_69.push(",\n");
}
_69.push("["+_66[i]+"]");
}
_69.push("],");
}
_69.push("\ndefinePackage: function(dojo){");
_69.push(_65);
_69.push("\n}});");
return _69.join("");
};
dojo.hostenv.loadPath=function(_6b,_6c,cb){
var _6e=_6b.indexOf(":");
var _6f=_6b.indexOf("/");
var uri;
var _71=false;
if(_6e>0&&_6e<_6f){
uri=_6b;
this.isXDomain=_71=true;
}else{
uri=this.getBaseScriptUri()+_6b;
_6e=uri.indexOf(":");
_6f=uri.indexOf("/");
if(_6e>0&&_6e<_6f&&(!location.host||uri.indexOf("http://"+location.host)!=0)){
this.isXDomain=_71=true;
}
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_6c||this.isXDomain)?this.loadUri(uri,cb,_71,_6c):this.loadUriAndCheck(uri,_6c,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb,_74,_75){
if(this.loadedUris[uri]){
return 1;
}
if(this.isXDomain){
this.xdOrderedReqs.push(_75);
if(uri.indexOf("__package__")!=-1){
_75+=".*";
}
this.xdInFlight[_75]=true;
this.inFlightCount++;
if(!this.xdTimer){
this.xdTimer=setInterval("dojo.hostenv.watchInFlightXDomain();",100);
}
this.xdStartTime=(new Date()).getTime();
}
if(_74){
var _76=uri.lastIndexOf(".");
if(_76<=0){
_76=uri.length-1;
}
var _77=uri.substring(0,_76)+".xd";
if(_76!=uri.length-1){
_77+=uri.substring(_76,uri.length);
}
var _78=document.createElement("script");
_78.type="text/javascript";
_78.src=_77;
if(!this.headElement){
this.headElement=document.getElementsByTagName("head")[0];
}
this.headElement.appendChild(_78);
}else{
var _79=this.getText(uri,null,true);
if(_79==null){
return 0;
}
if(this.isXDomain){
var pkg=this.createXdPackage(_79);
dj_eval(pkg);
}else{
if(cb){
_79="("+_79+")";
}
var _7b=dj_eval(_79);
if(cb){
cb(_7b);
}
}
}
this.loadedUris[uri]=true;
return 1;
};
dojo.hostenv.packageLoaded=function(pkg){
var _7d=pkg.depends;
var _7e=null;
var _7f=null;
var _80=[];
if(_7d&&_7d.length>0){
var dep=null;
var _82=0;
var _83=false;
for(var i=0;i<_7d.length;i++){
dep=_7d[i];
if(dep[0]=="provide"||dep[0]=="hostenv.moduleLoaded"){
_80.push(dep[1]);
}else{
if(!_7e){
_7e=[];
}
if(!_7f){
_7f=[];
}
var _85=this.unpackXdDependency(dep);
if(_85.requires){
_7e=_7e.concat(_85.requires);
}
if(_85.requiresAfter){
_7f=_7f.concat(_85.requiresAfter);
}
}
var _86=dep[0];
var _87=_86.split(".");
if(_87.length==2){
dojo[_87[0]][_87[1]].apply(dojo[_87[0]],dep.slice(1));
}else{
dojo[_86].apply(dojo,dep.slice(1));
}
}
var _88=this.xdContents.push({content:pkg.definePackage,isDefined:false})-1;
for(var i=0;i<_80.length;i++){
this.xdDepMap[_80[i]]={requires:_7e,requiresAfter:_7f,contentIndex:_88};
}
for(var i=0;i<_80.length;i++){
this.xdInFlight[_80[i]]=false;
}
}
};
dojo.hostenv.unpackXdDependency=function(dep){
var _8a=null;
var _8b=null;
switch(dep[0]){
case "requireIf":
case "requireAfterIf":
case "conditionalRequire":
if((dep[1]===true)||(dep[1]=="common")||(dep[1]&&dojo.render[dep[1]].capable)){
_8a=[{name:dep[2],content:null}];
}
break;
case "requireAll":
dep.shift();
_8a=dep;
dojo.hostenv.flattenRequireArray(_8a);
break;
case "kwCompoundRequire":
case "hostenv.conditionalLoadModule":
var _8c=dep[1];
var _8d=_8c["common"]||[];
var _8a=(_8c[dojo.hostenv.name_])?_8d.concat(_8c[dojo.hostenv.name_]||[]):_8d.concat(_8c["default"]||[]);
dojo.hostenv.flattenRequireArray(_8a);
break;
case "require":
case "requireAfter":
case "hostenv.loadModule":
_8a=[{name:dep[1],content:null}];
break;
}
if(dep[0]=="requireAfterIf"){
_8b=_8a;
_8a=null;
}
return {requires:_8a,requiresAfter:_8b};
};
dojo.hostenv.xdWalkReqs=function(){
var _8e=null;
var req;
for(var i=0;i<this.xdOrderedReqs.length;i++){
req=this.xdOrderedReqs[i];
if(this.xdDepMap[req]){
_8e=[req];
_8e[req]=true;
this.xdEvalReqs(_8e);
}
}
};
dojo.hostenv.xdTraceReqs=function(_91,_92){
if(_91&&_91.length>0){
var _93;
for(var i=0;i<_91.length;i++){
_93=_91[i].name;
if(_93&&!_92[_93]){
_92.push(_93);
_92[_93]=true;
this.xdEvalReqs(_92);
}
}
}
};
dojo.hostenv.xdEvalReqs=function(_95){
if(_95.length>0){
var req=_95[_95.length-1];
var pkg=this.xdDepMap[req];
if(pkg){
this.xdTraceReqs(pkg.requires,_95);
var _98=this.xdContents[pkg.contentIndex];
if(!_98.isDefined){
_98.content(dojo);
_98.isDefined=true;
}
this.xdDepMap[req]=null;
this.xdTraceReqs(pkg.requiresAfter,_95);
}
_95.pop();
this.xdEvalReqs(_95);
}
};
dojo.hostenv.clearXdInterval=function(){
clearInterval(this.xdTimer);
this.xdTimer=0;
};
dojo.hostenv.watchInFlightXDomain=function(){
var _99=(djConfig.xdWaitSeconds||30)*1000;
if(this.xdStartTime+_99<(new Date()).getTime()){
this.clearXdInterval();
var _9a="";
for(var _9b in this.xdInFlight){
if(this.xdInFlight[_9b]){
_9a+=_9b+" ";
}
}
dojo.raise("Could not load cross-domain packages: "+_9a);
}
for(var _9b in this.xdInFlight){
if(this.xdInFlight[_9b]){
return;
}
}
this.clearXdInterval();
this.xdWalkReqs();
for(var i=0;i<this.xdContents.length;i++){
var _9d=this.xdContents[i];
if(_9d.content&&!_9d.isDefined){
_9d.content(dojo);
}
}
this.resetXd();
this.inFlightCount=0;
this.callLoaded();
};
dojo.hostenv.flattenRequireArray=function(_9e){
if(_9e){
for(var i=0;i<_9e.length;i++){
if(_9e[i] instanceof Array){
_9e[i]={name:_9e[i][0],content:null};
}else{
_9e[i]={name:_9e[i],content:null};
}
}
}
};
}
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _a0=document.location.toString();
var _a1=_a0.split("?",2);
if(_a1.length>1){
var _a2=_a1[1];
var _a3=_a2.split("&");
for(var x in _a3){
var sp=_a3[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 _a7=document.getElementsByTagName("script");
var _a8=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a7.length;i++){
var src=_a7[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a8);
if(m){
var _ac=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ac+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ac;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ac;
}
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 _b4=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b4>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b4+6,_b4+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;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=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;
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _b5=null;
var _b6=null;
try{
_b5=new XMLHttpRequest();
}
catch(e){
}
if(!_b5){
for(var i=0;i<3;++i){
var _b8=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b5=new ActiveXObject(_b8);
}
catch(e){
_b6=e;
}
if(_b5){
dojo.hostenv._XMLHTTP_PROGIDS=[_b8];
break;
}
}
}
if(!_b5){
return dojo.raise("XMLHTTP not available",_b6);
}
return _b5;
};
dojo.hostenv.getText=function(uri,_ba,_bb){
var _bc=this.getXmlhttpObject();
if(_ba){
_bc.onreadystatechange=function(){
if(4==_bc.readyState){
if((!_bc["status"])||((200<=_bc.status)&&(300>_bc.status))){
_ba(_bc.responseText);
}
}
};
}
_bc.open("GET",uri,_ba?true:false);
try{
_bc.send(null);
if(_ba){
return null;
}
if((_bc["status"])&&((200>_bc.status)||(300<=_bc.status))){
throw Error("Unable to load "+uri+" status:"+_bc.status);
}
}
catch(e){
if((_bb)&&(!_ba)){
return null;
}else{
throw e;
}
}
return _bc.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_bd){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_bd);
}else{
try{
var _be=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_be){
_be=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_bd));
_be.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_bd+"</div>");
}
catch(e2){
window.status=_bd;
}
}
}
};
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(_c0,_c1,fp,_c3){
var _c4=_c0["on"+_c1]||function(){
};
_c0["on"+_c1]=function(){
fp.apply(_c0,arguments);
_c4.apply(_c0,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _c5=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_c5();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_c5);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _c6=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_c6=_c6.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_c6=_c6.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_c6.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _c7=new dojo.xml.Parse();
if(_c6.length>0){
for(var x=0;x<_c6.length;x++){
var _c9=document.getElementById(_c6[x]);
if(!_c9){
continue;
}
var _ca=_c7.parseElement(_c9,null,true);
dojo.widget.getParser().createComponents(_ca);
}
}else{
if(djConfig.parseWidgets){
var _ca=_c7.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_ca);
}
}
}
}
};
dojo.addOnLoad(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.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _cd=false;
var _ce=false;
var _cf=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_cd=true;
}else{
if(typeof this["load"]=="function"){
_ce=true;
}else{
if(window.widget){
_cf=true;
}
}
}
var _d0=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_d0.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_cd)&&(!_cf)){
_d0.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_d0.push("compat/"+djConfig["compat"]+".js");
}
var _d1=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_d1=djConfig["baseLoaderUri"];
}
for(var x=0;x<_d0.length;x++){
var _d3=_d1+"src/"+_d0[x];
if(_cd||_ce){
load(_d3);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_d3+"'></scr"+"ipt>");
}
catch(e){
var _d4=document.createElement("script");
_d4.src=_d3;
document.getElementsByTagName("head")[0].appendChild(_d4);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_d5){
return _d5?_d5.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_d6,_d7,_d8){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _d9=dojo.hostenv.getModuleSymbols(_d6);
var _da=_d9.concat("nls").join("/");
_d8=dojo.normalizeLocale(_d8);
var _db=_d8.split("-");
var _dc=[];
for(var i=_db.length;i>0;i--){
_dc.push(_db.slice(0,i).join("-"));
}
if(_dc[_dc.length-1]!=dojo.fallback_locale){
_dc.push(dojo.fallback_locale);
}
var _de=[_d6,"_nls",_d7].join(".");
var _df=dojo.hostenv.startPackage(_de);
dojo.hostenv.loaded_modules_[_de]=_df;
var _e0=false;
for(var i=_dc.length-1;i>=0;i--){
var loc=_dc[i];
var pkg=[_de,loc].join(".");
var _e3=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _e4=[_da,loc,_d7].join("/")+".js";
_e3=dojo.hostenv.loadPath(_e4,null,function(_e5){
_df[loc]=_e5;
if(_e0){
for(var _e6 in _e0){
if(!_df[loc][_e6]){
_df[loc][_e6]=_e0[_e6];
}
}
}
});
}else{
_e3=true;
}
if(_e3&&_df[loc]){
_e0=_df[loc];
}
}
};
dojo.Namespace=function(_e7,_e8,_e9,_ea){
this.root=_e7;
this.location=_e8;
this.nsPrefix=_e9;
this.resolver=_ea;
dojo.setModulePrefix(_e9,_e8);
};
dojo.Namespace.prototype.loaded=[];
dojo.Namespace.prototype.load=function(_eb,_ec){
if(this.resolver){
var _ed=this.resolver(_eb,_ec);
if(_ed&&!this.loaded[_ed]){
var req=dojo.require;
req(_ed);
this.loaded[_ed]=true;
}
if(this.loaded[_ed]){
return true;
}
}
return false;
};
djConfig.namespaces=[];
djConfig.loadingNamespaces={};
djConfig.failedNamespaces=[];
dojo.defineNamespace=function(_ef,_f0,_f1,_f2,_f3){
if(djConfig.namespaces[_ef]){
return;
}
var ns=new dojo.Namespace(_ef,_f0,_f1,_f2);
djConfig.namespaces[_ef]=ns;
if(_f1){
djConfig.namespaces[_f1]=ns;
}
if(_f3){
dojo.widget.manager.registerWidgetPackage(_f3);
}
};
dojo.getNamespace=function(_f5){
if(!djConfig.namespaces[_f5]&&!djConfig.failedNamespaces[_f5]){
var req=dojo.require;
var _f7="dojo.namespaces."+_f5;
if(!djConfig.loadingNamespaces[_f7]){
djConfig.loadingNamespaces[_f7]=true;
req(_f7,false,true);
djConfig.loadingNamespaces[_f7]=false;
if(!djConfig.namespaces[_f5]){
djConfig.failedNamespaces[_f5]=true;
}
}
}
return djConfig.namespaces[_f5];
};
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,_fe,_ff){
var out="";
for(var i=0;i<_fe;i++){
out+=str;
if(_ff&&i<_fe-1){
out+=_ff;
}
}
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.lang.common");
dojo.require("dojo.lang");
dojo.lang._mixin=function(obj,_10e){
var tobj={};
for(var x in _10e){
if(typeof tobj[x]=="undefined"||tobj[x]!=_10e[x]){
obj[x]=_10e[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_10e["toString"])&&_10e["toString"]!=obj["toString"]){
obj.toString=_10e.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_112){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_114,_115){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_114.prototype,arguments[i]);
}
return _114;
};
dojo.lang.find=function(_117,_118,_119,_11a){
if(!dojo.lang.isArrayLike(_117)&&dojo.lang.isArrayLike(_118)){
var temp=_117;
_117=_118;
_118=temp;
}
var _11c=dojo.lang.isString(_117);
if(_11c){
_117=_117.split("");
}
if(_11a){
var step=-1;
var i=_117.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_117.length;
}
if(_119){
while(i!=end){
if(_117[i]===_118){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_117[i]==_118){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_120,_121,_122){
return dojo.lang.find(_120,_121,_122,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_123,_124){
return dojo.lang.find(_123,_124)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if(typeof it!="undefined"&&it&&dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
if(!it){
return false;
}
return (it instanceof Function||typeof it=="function");
};
dojo.lang.isString=function(it){
return (it instanceof String||typeof it=="string");
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((it==undefined)&&(typeof it=="undefined"));
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(func,_12f){
var _130=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_130=func;
func=_12f;
_12f=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_130[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_130,args);
},_12f);
};
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.lang.getObjPathValue=function(_139,_13a,_13b){
with(dojo.parseObjPath(_139,_13a,_13b)){
return dojo.evalProp(prop,obj,_13b);
}
};
dojo.lang.setObjPathValue=function(_13c,_13d,_13e,_13f){
if(arguments.length<4){
_13f=true;
}
with(dojo.parseObjPath(_13c,_13e,_13f)){
if(obj&&(_13f||(prop in obj))){
obj[prop]=_13d;
}
}
};
dojo.provide("dojo.io.IO");
dojo.require("dojo.string");
dojo.require("dojo.lang.extras");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_141,_142,_143){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_141){
this.mimetype=_141;
}
if(_142){
this.transport=_142;
}
if(arguments.length>=4){
this.changeUrl=_143;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){
},error:function(type,_148){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_14a){
if(_14a["url"]){
_14a.url=_14a.url.toString();
}
if(_14a["formNode"]){
_14a.formNode=dojo.byId(_14a.formNode);
}
if(!_14a["method"]&&_14a["formNode"]&&_14a["formNode"].method){
_14a.method=_14a["formNode"].method;
}
if(!_14a["handle"]&&_14a["handler"]){
_14a.handle=_14a.handler;
}
if(!_14a["load"]&&_14a["loaded"]){
_14a.load=_14a.loaded;
}
if(!_14a["changeUrl"]&&_14a["changeURL"]){
_14a.changeUrl=_14a.changeURL;
}
_14a.encoding=dojo.lang.firstValued(_14a["encoding"],djConfig["bindEncoding"],"");
_14a.sendTransport=dojo.lang.firstValued(_14a["sendTransport"],djConfig["ioSendTransport"],false);
var _14b=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_14b(_14a[fn])){
continue;
}
if(_14b(_14a["handle"])){
_14a[fn]=_14a.handle;
}
}
dojo.lang.mixin(this,_14a);
}});
dojo.io.Error=function(msg,type,num){
this.message=msg;
this.type=type||"unknown";
this.number=num||0;
};
dojo.io.transports.addTransport=function(name){
this.push(name);
this[name]=dojo.io[name];
};
dojo.io.bind=function(_152){
if(!(_152 instanceof dojo.io.Request)){
try{
_152=new dojo.io.Request(_152);
}
catch(e){
dojo.debug(e);
}
}
var _153="";
if(_152["transport"]){
_153=_152["transport"];
if(!this[_153]){
return _152;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_152))){
_153=tmp;
}
}
if(_153==""){
return _152;
}
}
this[_153].bind(_152);
_152.bindSuccess=true;
return _152;
};
dojo.io.queueBind=function(_156){
if(!(_156 instanceof dojo.io.Request)){
try{
_156=new dojo.io.Request(_156);
}
catch(e){
dojo.debug(e);
}
}
var _157=_156.load;
_156.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_157.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _159=_156.error;
_156.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_159.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_156);
dojo.io._dispatchNextQueueBind();
return _156;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
if(dojo.io._bindQueue.length>0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight=false;
}
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_15c,last){
var enc=/utf/i.test(_15c||"")?encodeURIComponent:dojo.string.encodeAscii;
var _15f=[];
var _160=new Object();
for(var name in map){
var _162=function(elt){
var val=enc(name)+"="+enc(elt);
_15f[(last==name)?"push":"unshift"](val);
};
if(!_160[name]){
var _165=map[name];
if(dojo.lang.isArray(_165)){
dojo.lang.forEach(_165,_162);
}else{
_162(_165);
}
}
}
return _15f.join("&");
};
dojo.io.setIFrameSrc=function(_166,src,_168){
try{
var r=dojo.render.html;
if(!_168){
if(r.safari){
_166.location=src;
}else{
frames[_166.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_166.contentWindow.document;
}else{
if(r.safari){
idoc=_166.document;
}else{
idoc=_166.contentWindow;
}
}
if(!idoc){
_166.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,name){
try{
return (typeof obj[name]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _16f=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_16f++;
break;
}
}
return (_16f==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_173){
var _174=dojo.lang.isString(arr);
if(_174){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_173)){
_173=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_173){
var _175=obj;
obj=_173;
_173=_175;
}
}
if(Array.map){
var _176=Array.map(arr,_173,obj);
}else{
var _176=[];
for(var i=0;i<arr.length;++i){
_176.push(_173.call(obj,arr[i]));
}
}
if(_174){
return _176.join("");
}else{
return _176;
}
};
dojo.lang.forEach=function(_178,_179,_17a){
if(dojo.lang.isString(_178)){
_178=_178.split("");
}
if(Array.forEach){
Array.forEach(_178,_179,_17a);
}else{
if(!_17a){
_17a=dj_global;
}
for(var i=0,l=_178.length;i<l;i++){
_179.call(_17a,_178[i],i,_178);
}
}
};
dojo.lang._everyOrSome=function(_17c,arr,_17e,_17f){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_17c)?"every":"some"](arr,_17e,_17f);
}else{
if(!_17f){
_17f=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _181=_17e.call(_17f,arr[i],i,arr);
if((_17c)&&(!_181)){
return false;
}else{
if((!_17c)&&(_181)){
return true;
}
}
}
return (_17c)?true:false;
}
};
dojo.lang.every=function(arr,_183,_184){
return this._everyOrSome(true,arr,_183,_184);
};
dojo.lang.some=function(arr,_186,_187){
return this._everyOrSome(false,arr,_186,_187);
};
dojo.lang.filter=function(arr,_189,_18a){
var _18b=dojo.lang.isString(arr);
if(_18b){
arr=arr.split("");
}
if(Array.filter){
var _18c=Array.filter(arr,_189,_18a);
}else{
if(!_18a){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_18a=dj_global;
}
var _18c=[];
for(var i=0;i<arr.length;i++){
if(_189.call(_18a,arr[i],i,arr)){
_18c.push(arr[i]);
}
}
}
if(_18b){
return _18c.join("");
}else{
return _18c;
}
};
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(_191,_192){
var _193=[];
for(var i=_192||0;i<_191.length;i++){
_193.push(_191[i]);
}
return _193;
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_195,_196){
if(dojo.lang.isString(_196)){
var fcn=_195[_196];
}else{
var fcn=_196;
}
return function(){
return fcn.apply(_195,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_198,_199,_19a){
var nso=(_199||dojo.lang.anon);
if((_19a)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_198){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_198;
return ret;
};
dojo.lang.forward=function(_19e){
return function(){
return this[_19e].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _1a1=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_1a1.push(arguments[x]);
}
var _1a3=(func["__preJoinArity"]||func.length)-_1a1.length;
function gather(_1a4,_1a5,_1a6){
var _1a7=_1a6;
var _1a8=_1a5.slice(0);
for(var x=0;x<_1a4.length;x++){
_1a8.push(_1a4[x]);
}
_1a6=_1a6-_1a4.length;
if(_1a6<=0){
var res=func.apply(ns,_1a8);
_1a6=_1a7;
return res;
}else{
return function(){
return gather(arguments,_1a8,_1a6);
};
}
}
return gather([],_1a1,_1a3);
};
dojo.lang.curryArguments=function(ns,func,args,_1ae){
var _1af=[];
var x=_1ae||0;
for(x=_1ae;x<args.length;x++){
_1af.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_1af));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_1b5,_1b6){
if(!farr.length){
if(typeof _1b6=="function"){
_1b6();
}
return;
}
if((typeof _1b5=="undefined")&&(typeof cb=="number")){
_1b5=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1b5){
_1b5=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1b5,_1b6);
},_1b5);
};
dojo.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.array");
dojo.string.substituteParams=function(_1b7,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _1b7.replace(/\%\{(\w+)\}/g,function(_1ba,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_1bd,_1be){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _1bd){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_1bd[name]);
}
if(_1be){
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 _1c2=str.split(" ");
for(var i=0;i<_1c2.length;i++){
_1c2[i]=_1c2[i].charAt(0).toUpperCase()+_1c2[i].substring(1);
}
return _1c2.join(" ");
};
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 _1c7=escape(str);
var _1c8,re=/%u([0-9A-F]{4})/i;
while((_1c8=_1c7.match(re))){
var num=Number("0x"+_1c8[1]);
var _1ca=escape("&#"+num+";");
ret+=_1c7.substring(0,_1c8.index)+_1ca;
_1c7=_1c7.substring(_1c8.index+_1c8[0].length);
}
ret+=_1c7.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=dojo.lang.toArray(arguments,1);
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,_1cf){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1cf){
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.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
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,_1d8){
if(_1d8){
str=str.toLowerCase();
end=end.toLowerCase();
}
if((str.length-end.length)<0){
return false;
}
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,_1dc,_1dd){
if(_1dd){
str=str.toLowerCase();
_1dc=_1dc.toLowerCase();
}
return str.indexOf(_1dc)==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,_1e3){
if(_1e3=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1e3=="\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,_1e5){
var _1e6=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1e5){
_1e6.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_1e6.push(str.substr(prevcomma));
return _1e6;
};
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){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _1ea=node.tagName;
if(_1ea.substr(0,5).toLowerCase()!="dojo:"){
if(_1ea.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_1ea.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 _1ec=node.className||node.getAttribute("class");
if((_1ec)&&(_1ec.indexOf)&&(_1ec.indexOf("dojo-")!=-1)){
var _1ed=_1ec.split(" ");
for(var x=0;x<_1ed.length;x++){
if((_1ed[x].length>5)&&(_1ed[x].indexOf("dojo-")>=0)){
return "dojo:"+_1ed[x].substr(5).toLowerCase();
}
}
}
}
}
return _1ea.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(_1f0,_1f1){
var node=_1f0.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1f1&&node&&node.tagName&&node.tagName.toLowerCase()!=_1f1.toLowerCase()){
node=dojo.dom.nextElement(node,_1f1);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1f3,_1f4){
var node=_1f3.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_1f4&&node&&node.tagName&&node.tagName.toLowerCase()!=_1f4.toLowerCase()){
node=dojo.dom.prevElement(node,_1f4);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1f7){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1f7&&_1f7.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1f7);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1f9){
if(!node){
return null;
}
if(_1f9){
_1f9=_1f9.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1f9&&_1f9.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1f9);
}
return node;
};
dojo.dom.moveChildren=function(_1fa,_1fb,trim){
var _1fd=0;
if(trim){
while(_1fa.hasChildNodes()&&_1fa.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1fa.removeChild(_1fa.firstChild);
}
while(_1fa.hasChildNodes()&&_1fa.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1fa.removeChild(_1fa.lastChild);
}
}
while(_1fa.hasChildNodes()){
_1fb.appendChild(_1fa.firstChild);
_1fd++;
}
return _1fd;
};
dojo.dom.copyChildren=function(_1fe,_1ff,trim){
var _201=_1fe.cloneNode(true);
return this.moveChildren(_201,_1ff,trim);
};
dojo.dom.removeChildren=function(node){
var _203=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _203;
};
dojo.dom.replaceChildren=function(node,_205){
dojo.dom.removeChildren(node);
node.appendChild(_205);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_208,_209){
var _20a=[];
var _20b=dojo.lang.isFunction(_208);
while(node){
if(!_20b||_208(node)){
_20a.push(node);
}
if(_209&&_20a.length>0){
return _20a[0];
}
node=node.parentNode;
}
if(_209){
return null;
}
return _20a;
};
dojo.dom.getAncestorsByTag=function(node,tag,_20e){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_20e);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_213,_214){
if(_214&&node){
node=node.parentNode;
}
while(node){
if(node==_213){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _217=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_217.length;i++){
try{
doc=new ActiveXObject(_217[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((document.implementation)&&(document.implementation.createDocument)){
doc=document.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_21a){
if(!_21a){
_21a="text/xml";
}
if(!dj_undef("DOMParser")){
var _21b=new DOMParser();
return _21b.parseFromString(str,_21a);
}else{
if(!dj_undef("ActiveXObject")){
var _21c=dojo.dom.createDocument();
if(_21c){
_21c.async=false;
_21c.loadXML(str);
return _21c;
}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 _21e=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_21e.importNode(tmp.childNodes.item(i),true);
}
return _21e;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_221){
if(_221.firstChild){
_221.insertBefore(node,_221.firstChild);
}else{
_221.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_224){
if(_224!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _225=ref.parentNode;
_225.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_228){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_228!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_228);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_22c){
if((!node)||(!ref)||(!_22c)){
return false;
}
switch(_22c.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,_22e,_22f){
var _230=_22e.childNodes;
if(!_230.length){
_22e.appendChild(node);
return true;
}
var _231=null;
for(var i=0;i<_230.length;i++){
var _233=_230.item(i)["getAttribute"]?parseInt(_230.item(i).getAttribute("dojoinsertionindex")):-1;
if(_233<_22f){
_231=_230.item(i);
}
}
if(_231){
return dojo.dom.insertAfter(node,_231);
}else{
return dojo.dom.insertBefore(node,_230.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _236="";
if(node==null){
return _236;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_236+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_236+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _236;
}
};
dojo.dom.collectionToArray=function(_238){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_238);
};
dojo.dom.hasParent=function(node){
return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);
};
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.dom.setAttributeNS=function(elem,_23d,_23e,_23f){
if(elem==null||dojo.lang.isUndefined(elem)){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(dojo.lang.isUndefined(elem.setAttributeNS)==false){
elem.setAttributeNS(_23d,_23e,_23f);
}else{
var _240=elem.ownerDocument;
var _241=_240.createNode(2,_23e,_23d);
_241.nodeValue=_23f;
elem.setAttributeNode(_241);
}
};
dojo.provide("dojo.undo.browser");
dojo.require("dojo.io");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};
},addToHistory:function(args){
var hash=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if((!args["changeUrl"])||(dojo.render.html.ie)){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
}
if(args["changeUrl"]){
this.changingUrl=true;
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _246=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_248){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_246.apply(this,[_248]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _249=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_24b){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_249){
_249.apply(this,[_24b]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_24e){
if(!dojo.render.html.opera){
var _24f=this._getUrlQuery(_24e.href);
if(_24f==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_24f==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_24f==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _250=this.historyStack.pop();
if(!_250){
return;
}
var last=this.historyStack[this.historyStack.length-1];
if(!last&&this.historyStack.length==0){
last=this.initialState;
}
if(last){
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(_250);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_getUrlQuery:function(url){
var _254=url.split("?");
if(_254.length<2){
return null;
}else{
return _254[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.require("dojo.io");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.dom");
dojo.require("dojo.undo.browser");
dojo.io.checkChildrenForFile=function(node){
var _256=false;
var _257=node.getElementsByTagName("input");
dojo.lang.forEach(_257,function(_258){
if(_256){
return;
}
if(_258.getAttribute("type")=="file"){
_256=true;
}
});
return _256;
};
dojo.io.formHasFile=function(_259){
return dojo.io.checkChildrenForFile(_259);
};
dojo.io.updateNode=function(node,_25b){
node=dojo.byId(node);
var args=_25b;
if(dojo.lang.isString(_25b)){
args={url:_25b};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
if(dojo["event"]){
try{
dojo.event.browser.clean(node.firstChild);
}
catch(e){
}
}
node.removeChild(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);
};
dojo.io.encodeForm=function(_262,_263,_264){
if((!_262)||(!_262.tagName)||(!_262.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_264){
_264=dojo.io.formFilter;
}
var enc=/utf/i.test(_263||"")?encodeURIComponent:dojo.string.encodeAscii;
var _266=[];
for(var i=0;i<_262.elements.length;i++){
var elm=_262.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_264(elm)){
continue;
}
var name=enc(elm.name);
var type=elm.type.toLowerCase();
if(type=="select-multiple"){
for(var j=0;j<elm.options.length;j++){
if(elm.options[j].selected){
_266.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_266.push(name+"="+enc(elm.value));
}
}else{
_266.push(name+"="+enc(elm.value));
}
}
}
var _26c=_262.getElementsByTagName("input");
for(var i=0;i<_26c.length;i++){
var _26d=_26c[i];
if(_26d.type.toLowerCase()=="image"&&_26d.form==_262&&_264(_26d)){
var name=enc(_26d.name);
_266.push(name+"="+enc(_26d.value));
_266.push(name+".x=0");
_266.push(name+".y=0");
}
}
return _266.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(node.type.toLowerCase(),["submit","button"])){
this.connect(node,"onclick","click");
}
}
var _273=form.getElementsByTagName("input");
for(var i=0;i<_273.length;i++){
var _274=_273[i];
if(_274.type.toLowerCase()=="image"&&_274.form==form){
this.connect(_274,"onclick","click");
}
}
},onSubmit:function(form){
return true;
},submit:function(e){
e.preventDefault();
if(this.onSubmit(this.form)){
dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}));
}
},click:function(e){
var node=e.currentTarget;
if(node.disabled){
return;
}
this.clickedButton=node;
},formFilter:function(node){
var type=(node.type||"").toLowerCase();
var _27b=false;
if(node.disabled||!node.name){
_27b=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_27b=node==this.clickedButton;
}else{
_27b=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _27b;
},connect:function(_27c,_27d,_27e){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_27c,_27d,this,_27e);
}else{
var fcn=dojo.lang.hitch(this,_27e);
_27c[_27d]=function(e){
if(!e){
e=window.event;
}
if(!e.currentTarget){
e.currentTarget=e.srcElement;
}
if(!e.preventDefault){
e.preventDefault=function(){
window.event.returnValue=false;
};
}
fcn(e);
};
}
}});
dojo.io.XMLHTTPTransport=new function(){
var _281=this;
var _282={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_284,_285){
return url+"|"+_284+"|"+_285.toLowerCase();
}
function addToCache(url,_287,_288,http){
_282[getCacheKey(url,_287,_288)]=http;
}
function getFromCache(url,_28b,_28c){
return _282[getCacheKey(url,_28b,_28c)];
}
this.clearCache=function(){
_282={};
};
function doLoad(_28d,http,url,_290,_291){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_28d.method.toLowerCase()=="head"){
var _293=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _293;
};
var _294=_293.split(/[\r\n]+/g);
for(var i=0;i<_294.length;i++){
var pair=_294[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_28d.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_28d.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_28d.mimetype=="application/xml")||(_28d.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_291){
addToCache(url,_290,_28d.method,http);
}
_28d[(typeof _28d.load=="function")?"load":"handle"]("load",ret,http,_28d);
}else{
var _297=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_28d[(typeof _28d.error=="function")?"error":"handle"]("error",_297,http,_28d);
}
}
function setHeaders(http,_299){
if(_299["headers"]){
for(var _29a in _299["headers"]){
if(_29a.toLowerCase()=="content-type"&&!_299["contentType"]){
_299["contentType"]=_299["headers"][_29a];
}else{
http.setRequestHeader(_29a,_299["headers"][_29a]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
for(var x=this.inFlight.length-1;x>=0;x--){
var tif=this.inFlight[x];
if(!tif){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
};
var _29e=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_29f){
return _29e&&dojo.lang.inArray((_29f["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_29f["formNode"]&&dojo.io.formHasFile(_29f["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_2a0){
if(!_2a0["url"]){
if(!_2a0["formNode"]&&(_2a0["backButton"]||_2a0["back"]||_2a0["changeUrl"]||_2a0["watchForURL"])&&(!djConfig.preventBackButtonFix)){
dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");
dojo.undo.browser.addToHistory(_2a0);
return true;
}
}
var url=_2a0.url;
var _2a2="";
if(_2a0["formNode"]){
var ta=_2a0.formNode.getAttribute("action");
if((ta)&&(!_2a0["url"])){
url=ta;
}
var tp=_2a0.formNode.getAttribute("method");
if((tp)&&(!_2a0["method"])){
_2a0.method=tp;
}
_2a2+=dojo.io.encodeForm(_2a0.formNode,_2a0.encoding,_2a0["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_2a0["file"]){
_2a0.method="post";
}
if(!_2a0["method"]){
_2a0.method="get";
}
if(_2a0.method.toLowerCase()=="get"){
_2a0.multipart=false;
}else{
if(_2a0["file"]){
_2a0.multipart=true;
}else{
if(!_2a0["multipart"]){
_2a0.multipart=false;
}
}
}
if(_2a0["backButton"]||_2a0["back"]||_2a0["changeUrl"]){
dojo.undo.browser.addToHistory(_2a0);
}
var _2a5=_2a0["content"]||{};
if(_2a0.sendTransport){
_2a5["dojo.transport"]="xmlhttp";
}
do{
if(_2a0.postContent){
_2a2=_2a0.postContent;
break;
}
if(_2a5){
_2a2+=dojo.io.argsFromMap(_2a5,_2a0.encoding);
}
if(_2a0.method.toLowerCase()=="get"||!_2a0.multipart){
break;
}
var t=[];
if(_2a2.length){
var q=_2a2.split("&");
for(var i=0;i<q.length;++i){
if(q[i].length){
var p=q[i].split("=");
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+p[0]+"\"","",p[1]);
}
}
}
if(_2a0.file){
if(dojo.lang.isArray(_2a0.file)){
for(var i=0;i<_2a0.file.length;++i){
var o=_2a0.file[i];
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}else{
var o=_2a0.file;
t.push("--"+this.multipartBoundary,"Content-Disposition: form-data; name=\""+o.name+"\"; filename=\""+("fileName" in o?o.fileName:o.name)+"\"","Content-Type: "+("contentType" in o?o.contentType:"application/octet-stream"),"",o.content);
}
}
if(t.length){
t.push("--"+this.multipartBoundary+"--","");
_2a2=t.join("\r\n");
}
}while(false);
var _2ab=_2a0["sync"]?false:true;
var _2ac=_2a0["preventCache"]||(this.preventCache==true&&_2a0["preventCache"]!=false);
var _2ad=_2a0["useCache"]==true||(this.useCache==true&&_2a0["useCache"]!=false);
if(!_2ac&&_2ad){
var _2ae=getFromCache(url,_2a2,_2a0.method);
if(_2ae){
doLoad(_2a0,_2ae,url,_2a2,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_2a0);
var _2b0=false;
if(_2ab){
var _2b1=this.inFlight.push({"req":_2a0,"http":http,"url":url,"query":_2a2,"useCache":_2ad,"startTime":_2a0.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_2a0.method.toLowerCase()=="post"){
http.open("POST",url,_2ab);
setHeaders(http,_2a0);
http.setRequestHeader("Content-Type",_2a0.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2a0.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_2a2);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2a0,{status:404},url,_2a2,_2ad);
}
}else{
var _2b2=url;
if(_2a2!=""){
_2b2+=(_2b2.indexOf("?")>-1?"&":"?")+_2a2;
}
if(_2ac){
_2b2+=(dojo.string.endsWithAny(_2b2,"?","&")?"":(_2b2.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_2a0.method.toUpperCase(),_2b2,_2ab);
setHeaders(http,_2a0);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2a0,{status:404},url,_2a2,_2ad);
}
}
if(!_2ab){
doLoad(_2a0,http,url,_2a2,_2ad);
}
_2a0.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.event");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_2b4){
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 _2b7=dl.nameAnonFunc(args[2],ao.adviceObj,_2b4);
ao.adviceFunc=_2b7;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _2b7=dl.nameAnonFunc(args[0],ao.srcObj,_2b4);
ao.srcFunc=_2b7;
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 _2b7=dl.nameAnonFunc(args[1],dj_global,_2b4);
ao.srcFunc=_2b7;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){
ao.srcObj=args[1];
ao.srcFunc=args[2];
var _2b7=dl.nameAnonFunc(args[3],dj_global,_2b4);
ao.adviceObj=dj_global;
ao.adviceFunc=_2b7;
}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(dl.isFunction(ao.aroundFunc)){
var _2b7=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2b4);
ao.aroundFunc=_2b7;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.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(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _2b9={};
for(var x in ao){
_2b9[x]=ao[x];
}
var mjps=[];
dojo.lang.forEach(ao.srcObj,function(src){
if((dojo.render.html.capable)&&(dojo.lang.isString(src))){
src=dojo.byId(src);
}
_2b9.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_2b9));
});
return mjps;
}
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.log=function(a1,a2){
var _2c1;
if((arguments.length==1)&&(typeof a1=="object")){
_2c1=a1;
}else{
_2c1={srcObj:a1,srcFunc:a2};
}
_2c1.adviceFunc=function(){
var _2c2=[];
for(var x=0;x<arguments.length;x++){
_2c2.push(arguments[x]);
}
dojo.debug("("+_2c1.srcObj+")."+_2c1.srcFunc,":",_2c2.join(", "));
};
this.kwConnect(_2c1);
};
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.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_2c9,_2ca){
var fn=(_2ca)?"disconnect":"connect";
if(typeof _2c9["srcFunc"]=="function"){
_2c9.srcObj=_2c9["srcObj"]||dj_global;
var _2cc=dojo.lang.nameAnonFunc(_2c9.srcFunc,_2c9.srcObj,true);
_2c9.srcFunc=_2cc;
}
if(typeof _2c9["adviceFunc"]=="function"){
_2c9.adviceObj=_2c9["adviceObj"]||dj_global;
var _2cc=dojo.lang.nameAnonFunc(_2c9.adviceFunc,_2c9.adviceObj,true);
_2c9.adviceFunc=_2cc;
}
return dojo.event[fn]((_2c9["type"]||_2c9["adviceType"]||"after"),_2c9["srcObj"]||dj_global,_2c9["srcFunc"],_2c9["adviceObj"]||_2c9["targetObj"]||dj_global,_2c9["adviceFunc"]||_2c9["targetFunc"],_2c9["aroundObj"],_2c9["aroundFunc"],_2c9["once"],_2c9["delay"],_2c9["rate"],_2c9["adviceMsg"]||false);
};
this.kwConnect=function(_2cd){
return this._kwConnectImpl(_2cd,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments,true);
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(_2d0){
return this._kwConnectImpl(_2d0,true);
};
};
dojo.event.MethodInvocation=function(_2d1,obj,args){
this.jp_=_2d1;
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,_2d9){
this.object=obj||dj_global;
this.methodname=_2d9;
this.methodfunc=this.object[_2d9];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_2db){
if(!obj){
obj=dj_global;
}
if(!obj[_2db]){
obj[_2db]=function(){
};
if(!obj[_2db]){
dojo.raise("Cannot set do-nothing method on that object "+_2db);
}
}else{
if((!dojo.lang.isFunction(obj[_2db]))&&(!dojo.lang.isAlien(obj[_2db]))){
return null;
}
}
var _2dc=_2db+"$joinpoint";
var _2dd=_2db+"$joinpoint$method";
var _2de=obj[_2dc];
if(!_2de){
var _2df=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_2df=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_2dc,_2dd,_2db]);
}
}
var _2e0=obj[_2db].length;
obj[_2dd]=obj[_2db];
_2de=obj[_2dc]=new dojo.event.MethodJoinPoint(obj,_2dd);
obj[_2db]=function(){
var args=[];
if((_2df)&&(!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,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_2df)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _2de.run.apply(_2de,args);
};
obj[_2db].__preJoinArity=_2e0;
}
return _2de;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _2e6=[];
for(var x=0;x<args.length;x++){
_2e6[x]=args[x];
}
var _2e8=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _2ea=marr[0]||dj_global;
var _2eb=marr[1];
if(!_2ea[_2eb]){
dojo.raise("function \""+_2eb+"\" does not exist on \""+_2ea+"\"");
}
var _2ec=marr[2]||dj_global;
var _2ed=marr[3];
var msg=marr[6];
var _2ef;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _2ea[_2eb].apply(_2ea,to.args);
}};
to.args=_2e6;
var _2f1=parseInt(marr[4]);
var _2f2=((!isNaN(_2f1))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _2f5=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;
_2e8(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_2ed){
_2ec[_2ed].call(_2ec,to);
}else{
if((_2f2)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_2ea[_2eb].call(_2ea,to);
}else{
_2ea[_2eb].apply(_2ea,args);
}
},_2f1);
}else{
if(msg){
_2ea[_2eb].call(_2ea,to);
}else{
_2ea[_2eb].apply(_2ea,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before.concat(new Array()),_2e8);
}
var _2f8;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_2f8=mi.proceed();
}else{
if(this.methodfunc){
_2f8=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after.concat(new Array()),_2e8);
}
return (this.methodfunc)?_2f8: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(_2fd,_2fe,_2ff,_300,_301,_302,once,_304,rate,_306){
var arr=this.getArr(_301);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_2fd,_2fe,_2ff,_300,_304,rate,_306];
if(once){
if(this.hasAdvice(_2fd,_2fe,_301,arr)>=0){
return;
}
}
if(_302=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_309,_30a,_30b,arr){
if(!arr){
arr=this.getArr(_30b);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _30a=="object")?(new String(_30a)).toString():_30a;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_309)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_311,_312,_313,once){
var arr=this.getArr(_313);
var ind=this.hasAdvice(_311,_312,_313,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_311,_312,_313,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_317){
if(!this.topics[_317]){
this.topics[_317]=new this.TopicImpl(_317);
}
return this.topics[_317];
};
this.registerPublisher=function(_318,obj,_31a){
var _318=this.getTopic(_318);
_318.registerPublisher(obj,_31a);
};
this.subscribe=function(_31b,obj,_31d){
var _31b=this.getTopic(_31b);
_31b.subscribe(obj,_31d);
};
this.unsubscribe=function(_31e,obj,_320){
var _31e=this.getTopic(_31e);
_31e.unsubscribe(obj,_320);
};
this.destroy=function(_321){
this.getTopic(_321).destroy();
delete this.topics[_321];
};
this.publishApply=function(_322,args){
var _322=this.getTopic(_322);
_322.sendMessage.apply(_322,args);
};
this.publish=function(_324,_325){
var _324=this.getTopic(_324);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_324.sendMessage.apply(_324,args);
};
};
dojo.event.topic.TopicImpl=function(_328){
this.topicName=_328;
this.subscribe=function(_329,_32a){
var tf=_32a||_329;
var to=(!_32a)?dj_global:_329;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_32d,_32e){
var tf=(!_32e)?_32d:_32e;
var to=(!_32e)?null:_32d;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_331,_332){
dojo.event.connect(_331,_332,this,"sendMessage");
};
this.sendMessage=function(_333){
};
};
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(_336){
var na;
var tna;
if(_336){
tna=_336.all||_336.getElementsByTagName("*");
na=[_336];
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 _33a={};
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){
dojo.addOnUnload(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 _33e=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_342){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_342.length;x++){
node.__clobberAttrs__.push(_342[x]);
}
};
this.removeListener=function(node,_345,fp,_347){
if(!_347){
var _347=false;
}
_345=_345.toLowerCase();
if(_345.substr(0,2)=="on"){
_345=_345.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_345,fp,_347);
}
};
this.addListener=function(node,_349,fp,_34b,_34c){
if(!node){
return;
}
if(!_34b){
var _34b=false;
}
_349=_349.toLowerCase();
if(_349.substr(0,2)!="on"){
_349="on"+_349;
}
if(!_34c){
var _34d=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_34b){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_34d=fp;
}
if(node.addEventListener){
node.addEventListener(_349.substr(2),_34d,_34b);
return _34d;
}else{
if(typeof node[_349]=="function"){
var _350=node[_349];
node[_349]=function(e){
_350(e);
return _34d(e);
};
}else{
node[_349]=_34d;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_349]);
}
return _34d;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_353,_354){
if(typeof _353!="function"){
dojo.raise("listener not a function: "+_353);
}
dojo.event.browser.currentEvent.currentTarget=_354;
return _353.call(_354,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,_357){
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=(_357?_357:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _359=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_359.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_359.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
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.kwCompoundRequire({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.require("dojo.lang.func");
dojo.lfx.Line=function(_35b,end){
this.start=_35b;
this.end=end;
if(dojo.lang.isArray(_35b)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_35b;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
},_active:false,_paused:false});
dojo.lfx.Animation=function(_36a,_36b,_36c,_36d,_36e,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_36a)||(!_36a&&_36b.getValue)){
rate=_36e;
_36e=_36d;
_36d=_36c;
_36c=_36b;
_36b=_36a;
_36a=null;
}else{
if(_36a.getValue||dojo.lang.isArray(_36a)){
rate=_36d;
_36e=_36c;
_36d=_36b;
_36c=_36a;
_36b=null;
_36a=null;
}
}
if(dojo.lang.isArray(_36c)){
this.curve=new dojo.lfx.Line(_36c[0],_36c[1]);
}else{
this.curve=_36c;
}
if(_36b!=null&&_36b>0){
this.duration=_36b;
}
if(_36e){
this.repeatCount=_36e;
}
if(rate){
this.rate=rate;
}
if(_36a){
this.handler=_36a.handler;
this.beforeBegin=_36a.beforeBegin;
this.onBegin=_36a.onBegin;
this.onEnd=_36a.onEnd;
this.onPlay=_36a.onPlay;
this.onPause=_36a.onPause;
this.onStop=_36a.onStop;
this.onAnimate=_36a.onAnimate;
}
if(_36d&&dojo.lang.isFunction(_36d)){
this.easing=_36d;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_370,_371){
if(_371){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_370>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_371);
}),_370);
return this;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _373=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_373]);
this.fire("onBegin",[_373]);
}
this.fire("handler",["play",_373]);
this.fire("onPlay",[_373]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _374=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_374]);
this.fire("onPause",[_374]);
return this;
},gotoPercent:function(pct,_376){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_376){
this.play();
}
},stop:function(_377){
clearTimeout(this._timer);
var step=this._percent/100;
if(_377){
step=1;
}
var _379=this.curve.getValue(step);
this.fire("handler",["stop",_379]);
this.fire("onStop",[_379]);
this._active=false;
this._paused=false;
return this;
},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);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _37c=this.curve.getValue(step);
this.fire("handler",["animate",_37c]);
this.fire("onAnimate",[_37c]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _37d=arguments;
if(_37d.length==1&&(dojo.lang.isArray(_37d[0])||dojo.lang.isArrayLike(_37d[0]))){
_37d=_37d[0];
}
var _37e=this;
dojo.lang.forEach(_37d,function(anim){
_37e._anims.push(anim);
var _380=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_380();
_37e._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_381,_382){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_381>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_382);
}),_381);
return this;
}
if(_382||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_382);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_383){
this.fire("onStop");
this._animsCall("stop",_383);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_384){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _387=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_384](args);
},_387);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _389=arguments;
if(_389.length==1&&(dojo.lang.isArray(_389[0])||dojo.lang.isArrayLike(_389[0]))){
_389=_389[0];
}
var _38a=this;
dojo.lang.forEach(_389,function(anim,i,_38d){
_38a._anims.push(anim);
var _38e=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_38d.length-1){
anim.onEnd=function(){
_38e();
_38a._playNext();
};
}else{
anim.onEnd=function(){
_38e();
_38a.fire("onEnd");
};
}
},_38a);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_38f,_390){
if(!this._anims.length){
return this;
}
if(_390||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _391=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_38f>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_390);
}),_38f);
return this;
}
if(_391){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_391.play(null,_390);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _392=this._anims[this._currAnim];
if(_392){
if(!_392._active||_392._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _393=this._anims[this._currAnim];
if(_393){
_393.stop();
this.fire("onStop",[this._currAnim]);
}
return _393;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(){
var _394=arguments;
if(dojo.lang.isArray(arguments[0])){
_394=arguments[0];
}
return new dojo.lfx.Combine(_394);
};
dojo.lfx.chain=function(){
var _395=arguments;
if(dojo.lang.isArray(arguments[0])){
_395=arguments[0];
}
return new dojo.lfx.Chain(_395);
};
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang.array");
dojo.graphics.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.graphics.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.graphics.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.graphics.color.Color.fromArray=function(arr){
return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_39c){
if(_39c){
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();
},blend:function(_39d,_39e){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_39d).toRgb(),_39e);
}});
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,_3a1){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_3a1);
}
if(!_3a1){
_3a1=0;
}else{
if(_3a1>1){
_3a1=1;
}else{
if(_3a1<-1){
_3a1=-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*_3a1));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_3a7){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_3a7));
};
dojo.graphics.color.extractRGB=function(_3a8){
var hex="0123456789abcdef";
_3a8=_3a8.toLowerCase();
if(_3a8.indexOf("rgb")==0){
var _3aa=_3a8.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_3aa.splice(1,3);
return ret;
}else{
var _3ac=dojo.graphics.color.hex2rgb(_3a8);
if(_3ac){
return _3ac;
}else{
return dojo.graphics.color.named[_3a8]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _3ae="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_3ae+"]","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]=_3ae.indexOf(rgb[i].charAt(0))*16+_3ae.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;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
dojo.deprecated("dojo.uri.joinPath","use the dojo.uri.Uri object instead","0.4");
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.nsUri=function(_3ba,uri){
var ns=dojo.getNamespace(_3ba);
if(!ns){
return null;
}
var loc=ns.location;
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _3c0=new dojo.uri.Uri(arguments[i].toString());
var _3c1=new dojo.uri.Uri(uri.toString());
if(_3c0.path==""&&_3c0.scheme==null&&_3c0.authority==null&&_3c0.query==null){
if(_3c0.fragment!=null){
_3c1.fragment=_3c0.fragment;
}
_3c0=_3c1;
}else{
if(_3c0.scheme==null){
_3c0.scheme=_3c1.scheme;
if(_3c0.authority==null){
_3c0.authority=_3c1.authority;
if(_3c0.path.charAt(0)!="/"){
var path=_3c1.path.substring(0,_3c1.path.lastIndexOf("/")+1)+_3c0.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;
}
}
}
}
_3c0.path=segs.join("/");
}
}
}
}
uri="";
if(_3c0.scheme!=null){
uri+=_3c0.scheme+":";
}
if(_3c0.authority!=null){
uri+="//"+_3c0.authority;
}
uri+=_3c0.path;
if(_3c0.query!=null){
uri+="?"+_3c0.query;
}
if(_3c0.fragment!=null){
uri+="#"+_3c0.fragment;
}
}
this.uri=uri.toString();
var _3c5="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_3c5));
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){
_3c5="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_3c5));
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.style");
dojo.require("dojo.graphics.color");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.lang.common");
(function(){
var h=dojo.render.html;
var ds=dojo.style;
var db=document["body"]||document["documentElement"];
ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
var bs=ds.boxSizing;
ds.getBoxSizing=function(node){
if((h.ie)||(h.opera)){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _3cd=ds.getStyle(node,"-moz-box-sizing");
if(!_3cd){
_3cd=ds.getStyle(node,"box-sizing");
}
return (_3cd?_3cd:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_3d0,_3d1){
var s=ds.getComputedStyle(node,_3d0);
if((!s)||((s=="auto")&&(_3d1))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _3d3=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3d3){
return ds.getUnitValue.bad;
}
return {value:Number(_3d3[1]),units:_3d3[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_3d5,_3d6){
var _3d7=ds.getUnitValue(node,_3d5,_3d6);
if(isNaN(_3d7.value)){
return 0;
}
if((_3d7.value)&&(_3d7.units!="px")){
return NaN;
}
return _3d7.value;
};
ds.getNumericStyle=function(){
dojo.deprecated("dojo.(style|html).getNumericStyle","in favor of dojo.(style|html).getPixelValue","0.4");
return ds.getPixelValue.apply(this,arguments);
};
ds.setPositivePixelValue=function(node,_3d9,_3da){
if(isNaN(_3da)){
return false;
}
node.style[_3d9]=Math.max(0,_3da)+"px";
return true;
};
ds._sumPixelValues=function(node,_3dc,_3dd){
var _3de=0;
for(var x=0;x<_3dc.length;x++){
_3de+=ds.getPixelValue(node,_3dc[x],_3dd);
}
return _3de;
};
ds.isPositionAbsolute=function(node){
return (ds.getComputedStyle(node,"position")=="absolute");
};
ds.getBorderExtent=function(node,side){
return (ds.getStyle(node,"border-"+side+"-style")=="none"?0:ds.getPixelValue(node,"border-"+side+"-width"));
};
ds.getMarginExtent=function(node,side){
return ds._sumPixelValues(node,["margin-"+side],ds.isPositionAbsolute(node));
};
ds.getPaddingExtent=function(node,side){
return ds._sumPixelValues(node,["padding-"+side],true);
};
ds.getMarginWidth=function(node){
return ds._sumPixelValues(node,["margin-left","margin-right"],ds.isPositionAbsolute(node));
};
ds.getBorderWidth=function(node){
return ds.getBorderExtent(node,"left")+ds.getBorderExtent(node,"right");
};
ds.getPaddingWidth=function(node){
return ds._sumPixelValues(node,["padding-left","padding-right"],true);
};
ds.getPadBorderWidth=function(node){
return ds.getPaddingWidth(node)+ds.getBorderWidth(node);
};
ds.getContentBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth-ds.getPadBorderWidth(node);
};
ds.getBorderBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth;
};
ds.getMarginBoxWidth=function(node){
return ds.getInnerWidth(node)+ds.getMarginWidth(node);
};
ds.setContentBoxWidth=function(node,_3ef){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3ef+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_3ef);
};
ds.setMarginBoxWidth=function(node,_3f1){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3f1-=ds.getPadBorderWidth(node);
}
_3f1-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_3f1);
};
ds.getContentWidth=ds.getContentBoxWidth;
ds.getInnerWidth=ds.getBorderBoxWidth;
ds.getOuterWidth=ds.getMarginBoxWidth;
ds.setContentWidth=ds.setContentBoxWidth;
ds.setOuterWidth=ds.setMarginBoxWidth;
ds.getMarginHeight=function(node){
return ds._sumPixelValues(node,["margin-top","margin-bottom"],ds.isPositionAbsolute(node));
};
ds.getBorderHeight=function(node){
return ds.getBorderExtent(node,"top")+ds.getBorderExtent(node,"bottom");
};
ds.getPaddingHeight=function(node){
return ds._sumPixelValues(node,["padding-top","padding-bottom"],true);
};
ds.getPadBorderHeight=function(node){
return ds.getPaddingHeight(node)+ds.getBorderHeight(node);
};
ds.getContentBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight-ds.getPadBorderHeight(node);
};
ds.getBorderBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight;
};
ds.getMarginBoxHeight=function(node){
return ds.getInnerHeight(node)+ds.getMarginHeight(node);
};
ds.setContentBoxHeight=function(node,_3fa){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3fa+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_3fa);
};
ds.setMarginBoxHeight=function(node,_3fc){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3fc-=ds.getPadBorderHeight(node);
}
_3fc-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_3fc);
};
ds.getContentHeight=ds.getContentBoxHeight;
ds.getInnerHeight=ds.getBorderBoxHeight;
ds.getOuterHeight=ds.getMarginBoxHeight;
ds.setContentHeight=ds.setContentBoxHeight;
ds.setOuterHeight=ds.setMarginBoxHeight;
ds.getAbsolutePosition=ds.abs=function(node,_3fe){
node=dojo.byId(node,node.ownerDocument);
var ret=[];
ret.x=ret.y=0;
var st=dojo.html.getScrollTop();
var sl=dojo.html.getScrollLeft();
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
try{
var bo=node.ownerDocument.getBoxObjectFor(node);
ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _403;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_403=db;
}else{
_403=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(window.opera){
nd=db;
}
ret.x-=ds.sumAncestorProperties(nd,"scrollLeft");
ret.y-=ds.sumAncestorProperties(nd,"scrollTop");
}
do{
var n=node["offsetLeft"];
ret.x+=isNaN(n)?0:n;
var m=node["offsetTop"];
ret.y+=isNaN(m)?0:m;
node=node.offsetParent;
}while((node!=_403)&&(node!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_3fe){
ret.y+=st;
ret.x+=sl;
}
ret[0]=ret.x;
ret[1]=ret.y;
return ret;
};
ds.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _409=0;
while(node){
var val=node[prop];
if(val){
_409+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _409;
};
ds.getTotalOffset=function(node,type,_40d){
return ds.abs(node,_40d)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_40f){
return ds.getTotalOffset(node,"left",_40f);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_411){
return ds.getTotalOffset(node,"top",_411);
};
ds.styleSheet=null;
ds.insertCssRule=function(_412,_413,_414){
if(!ds.styleSheet){
if(document.createStyleSheet){
ds.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
ds.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(ds.styleSheet.cssRules){
_414=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_414=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_412+" { "+_413+" }";
return ds.styleSheet.insertRule(rule,_414);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_412,_413,_414);
}else{
return null;
}
}
};
ds.removeCssRule=function(_416){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_416){
_416=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_416);
}
}else{
if(document.styleSheets[0]){
if(!_416){
_416=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_416);
}
}
return true;
};
ds._insertedCssFiles=[];
ds.insertCssFile=function(URI,doc,_419){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _41a=dojo.hostenv.getText(URI);
_41a=ds.fixPathsInCssText(_41a,URI);
if(_419){
var idx=-1,node,ent=ds._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_41a)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _41d=doc.getElementsByTagName("style");
for(var i=0;i<_41d.length;i++){
if(_41d[i]==node){
return;
}
}
ds._insertedCssFiles.shift(idx,1);
}
}
var _41e=ds.insertCssText(_41a);
ds._insertedCssFiles.push({"doc":doc,"cssText":_41a,"nodeRef":_41e});
if(_41e&&djConfig.isDebug){
_41e.setAttribute("dbgHref",URI);
}
return _41e;
};
ds.insertCssText=function(_41f,doc,URI){
if(!_41f){
return;
}
if(!doc){
doc=document;
}
if(URI){
_41f=ds.fixPathsInCssText(_41f,URI);
}
var _422=doc.createElement("style");
_422.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_422);
}
if(_422.styleSheet){
_422.styleSheet.cssText=_41f;
}else{
var _424=doc.createTextNode(_41f);
_422.appendChild(_424);
}
return _422;
};
ds.fixPathsInCssText=function(_425,URI){
if(!_425||!URI){
return;
}
var _427,str="",url="";
var _428=/url\(\s*([\t\s\w()\/.\\'"-:#=&?]*)\s*\)/;
var _429=/(file|https?|ftps?):\/\//;
var _42a=/^[\s]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s]*?$/;
while(_427=_428.exec(_425)){
url=_427[1].replace(_42a,"$2");
if(!_429.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_425.substring(0,_427.index)+"url("+url+")";
_425=_425.substr(_427.index+_427[0].length);
}
return str+_425;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _42c;
do{
_42c=ds.getStyle(node,"background-color");
if(_42c.toLowerCase()=="rgba(0, 0, 0, 0)"){
_42c="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_42c,["transparent",""]));
if(_42c=="transparent"){
_42c=[255,255,255,0];
}else{
_42c=dojo.graphics.color.extractRGB(_42c);
}
return _42c;
};
ds.getComputedStyle=function(node,_42e,_42f){
node=dojo.byId(node);
var _42e=ds.toSelectorCase(_42e);
var _430=ds.toCamelCase(_42e);
if(!node||!node.style){
return _42f;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_42e);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_42e);
}else{
return _42f;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_430];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_42e);
}else{
return _42f;
}
};
ds.getStyleProperty=function(node,_433){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_433)]:undefined);
};
ds.getStyle=function(node,_435){
var _436=ds.getStyleProperty(node,_435);
return (_436?_436:ds.getComputedStyle(node,_435));
};
ds.setStyle=function(node,_438,_439){
node=dojo.byId(node);
if(node&&node.style){
var _43a=ds.toCamelCase(_438);
node.style[_43a]=_439;
}
};
ds.toCamelCase=function(_43b){
var arr=_43b.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
ds.toSelectorCase=function(_43e){
return _43e.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_440,_441){
node=dojo.byId(node);
if(!_441){
if(_440>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_440=0.999999;
}
}else{
if(_440<0){
_440=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="+_440*100+")";
}
}
node.style.filter="Alpha(Opacity="+_440*100+")";
}else{
if(h.moz){
node.style.opacity=_440;
node.style.MozOpacity=_440;
}else{
if(h.safari){
node.style.opacity=_440;
node.style.KhtmlOpacity=_440;
}else{
node.style.opacity=_440;
}
}
}
};
ds.getOpacity=function getOpacity(node){
node=dojo.byId(node);
if(h.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);
};
ds.clearOpacity=function clearOpacity(node){
node=dojo.byId(node);
var ns=node.style;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
ds.setStyleAttributes=function(node,_449){
var _44a={"opacity":dojo.style.setOpacity,"content-height":dojo.style.setContentHeight,"content-width":dojo.style.setContentWidth,"outer-height":dojo.style.setOuterHeight,"outer-width":dojo.style.setOuterWidth};
var _44b=_449.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_44b.length;i++){
var _44d=_44b[i].split(":");
var name=_44d[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _44f=_44d[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_44a,name)){
_44a[name](node,_44f);
}else{
node.style[dojo.style.toCamelCase(name)]=_44f;
}
}
};
ds._toggle=function(node,_451,_452){
node=dojo.byId(node);
_452(node,!_451(node));
return _451(node);
};
ds.show=function(node){
node=dojo.byId(node);
if(ds.getStyleProperty(node,"display")=="none"){
ds.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
ds.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=ds.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
ds.setStyle(node,"display","none");
};
ds.setShowing=function(node,_457){
ds[(_457?"show":"hide")](node);
};
ds.isShowing=function(node){
return (ds.getStyleProperty(node,"display")!="none");
};
ds.toggleShowing=function(node){
return ds._toggle(node,ds.isShowing,ds.setShowing);
};
ds.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
ds.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in ds.displayMap?ds.displayMap[tag]:"block");
}
};
ds.setDisplay=function(node,_45d){
ds.setStyle(node,"display",(dojo.lang.isString(_45d)?_45d:(_45d?ds.suggestDisplayByTagName(node):"none")));
};
ds.isDisplayed=function(node){
return (ds.getComputedStyle(node,"display")!="none");
};
ds.toggleDisplay=function(node){
return ds._toggle(node,ds.isDisplayed,ds.setDisplay);
};
ds.setVisibility=function(node,_461){
ds.setStyle(node,"visibility",(dojo.lang.isString(_461)?_461:(_461?"visible":"hidden")));
};
ds.isVisible=function(node){
return (ds.getComputedStyle(node,"visibility")!="hidden");
};
ds.toggleVisibility=function(node){
return ds._toggle(node,ds.isVisible,ds.setVisibility);
};
ds.toCoordinateArray=function(_464,_465){
if(dojo.lang.isArray(_464)){
while(_464.length<4){
_464.push(0);
}
while(_464.length>4){
_464.pop();
}
var ret=_464;
}else{
var node=dojo.byId(_464);
var pos=ds.getAbsolutePosition(node,_465);
var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
})();
dojo.provide("dojo.html");
dojo.require("dojo.lang.func");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.string");
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(_469){
_469=dojo.byId(_469)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_469.style.MozUserSelect="none";
}else{
if(h.safari){
_469.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_469.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_46b){
_46b=dojo.byId(_46b)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_46b.style.MozUserSelect="";
}else{
if(h.safari){
_46b.style.KhtmlUserSelect="";
}else{
if(h.ie){
_46b.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_46d){
_46d=dojo.byId(_46d);
if(document.selection&&document.body.createTextRange){
var _46e=document.body.createTextRange();
_46e.moveToElementText(_46d);
_46e.select();
}else{
if(window["getSelection"]){
var _46f=window.getSelection();
if(_46f["selectAllChildren"]){
_46f.selectAllChildren(_46d);
}
}
}
};
dojo.html.selectInputText=function(_470){
_470=dojo.byId(_470);
if(document.selection&&document.body.createTextRange){
var _471=_470.createTextRange();
_471.moveStart("character",0);
_471.moveEnd("character",_470.value.length);
_471.select();
}else{
if(window["getSelection"]){
var _472=window.getSelection();
_470.setSelectionRange(0,_470.value.length);
}
}
_470.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _473=window.getSelection();
if(dojo.lang.isString(_473)){
return _473=="";
}else{
return _473.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument*","replaced of dojo.html.getViewport*","0.4");
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.getScrollTop=function(){
return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
dojo.html.getScrollOffset=function(){
var off=[dojo.html.getScrollLeft(),dojo.html.getScrollTop()];
off.x=off[0];
off.y=off[1];
return off;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType","replaced by dojo.html.getParentByType*","0.4");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _47e=dojo.byId(node);
type=type.toLowerCase();
while((_47e)&&(_47e.nodeName.toLowerCase()!=type)){
if(_47e==(document["body"]||document["documentElement"])){
return null;
}
_47e=_47e.parentNode;
}
return _47e;
};
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){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_48a){
return dojo.lang.inArray(dojo.html.getClasses(node),_48a);
};
dojo.html.prependClass=function(node,_48c){
_48c+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_48c);
};
dojo.html.addClass=function(node,_48e){
if(dojo.html.hasClass(node,_48e)){
return false;
}
_48e=dojo.string.trim(dojo.html.getClass(node)+" "+_48e);
return dojo.html.setClass(node,_48e);
};
dojo.html.setClass=function(node,_490){
node=dojo.byId(node);
var cs=new String(_490);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_490);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_493,_494){
var _493=dojo.string.trim(new String(_493));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_494){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_493)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_493){
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,_499,_49a){
dojo.html.removeClass(node,_49a);
dojo.html.addClass(node,_499);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_49b,_49c,_49d,_49e,_49f){
_49c=dojo.byId(_49c)||document;
var _4a0=_49b.split(/\s+/g);
var _4a1=[];
if(_49e!=1&&_49e!=2){
_49e=0;
}
var _4a2=new RegExp("(\\s|^)(("+_4a0.join(")|(")+"))(\\s|$)");
var _4a3=_4a0.join(" ").length;
var _4a4=[];
if(!_49f&&document.evaluate){
var _4a5="//"+(_49d||"*")+"[contains(";
if(_49e!=dojo.html.classMatchType.ContainsAny){
_4a5+="concat(' ',@class,' '), ' "+_4a0.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_49e==2){
_4a5+=" and string-length(@class)="+_4a3+"]";
}else{
_4a5+="]";
}
}else{
_4a5+="concat(' ',@class,' '), ' "+_4a0.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _4a6=document.evaluate(_4a5,_49c,null,XPathResult.ANY_TYPE,null);
var _4a7=_4a6.iterateNext();
while(_4a7){
try{
_4a4.push(_4a7);
_4a7=_4a6.iterateNext();
}
catch(e){
break;
}
}
return _4a4;
}else{
if(!_49d){
_49d="*";
}
_4a4=_49c.getElementsByTagName(_49d);
var node,i=0;
outer:
while(node=_4a4[i++]){
var _4a9=dojo.html.getClasses(node);
if(_4a9.length==0){
continue outer;
}
var _4aa=0;
for(var j=0;j<_4a9.length;j++){
if(_4a2.test(_4a9[j])){
if(_49e==dojo.html.classMatchType.ContainsAny){
_4a1.push(node);
continue outer;
}else{
_4aa++;
}
}else{
if(_49e==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_4aa==_4a0.length){
if((_49e==dojo.html.classMatchType.IsOnly)&&(_4aa==_4a9.length)){
_4a1.push(node);
}else{
if(_49e==dojo.html.classMatchType.ContainsAll){
_4a1.push(node);
}
}
}
}
return _4a1;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _4ad={x:0,y:0};
if(e.pageX||e.pageY){
_4ad.x=e.pageX;
_4ad.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_4ad.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_4ad.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _4ad;
};
dojo.html.overElement=function(_4b0,e){
_4b0=dojo.byId(_4b0);
var _4b2=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_4b0,true);
var _4b4=top+getInnerHeight(_4b0);
var left=getAbsoluteX(_4b0,true);
var _4b6=left+getInnerWidth(_4b0);
}
return (_4b2.x>=left&&_4b2.x<=_4b6&&_4b2.y>=top&&_4b2.y<=_4b4);
};
dojo.html.setActiveStyleSheet=function(_4b7){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_4b7){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[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=0,a,els=document.getElementsByTagName("link");
while(a=els[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(){
return document.body||document.getElementsByTagName("body")[0];
};
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.copyStyle=function(_4be,_4bf){
if(dojo.lang.isUndefined(_4bf.style.cssText)){
_4be.setAttribute("style",_4bf.getAttribute("style"));
}else{
_4be.style.cssText=_4bf.style.cssText;
}
dojo.html.addClass(_4be,dojo.html.getClass(_4bf));
};
dojo.html._callExtrasDeprecated=function(_4c0,args){
var _4c2="dojo.html.extras";
dojo.deprecated("dojo.html."+_4c0,"moved to "+_4c2,"0.4");
dojo["require"](_4c2);
return dojo.html[_4c0].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.provide("dojo.lfx.html");
dojo.require("dojo.lfx.Animation");
dojo.require("dojo.html");
dojo.lfx.html._byId=function(_4c3){
if(!_4c3){
return [];
}
if(dojo.lang.isArray(_4c3)){
if(!_4c3.alreadyChecked){
var n=[];
dojo.lang.forEach(_4c3,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _4c3;
}
}else{
var n=[];
n.push(dojo.byId(_4c3));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_4c6,_4c7,_4c8,_4c9){
_4c6=dojo.lfx.html._byId(_4c6);
if(_4c6.length==1){
dojo.lang.forEach(_4c7,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_4c6[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_4c6[0]);
}
}
});
}
var _4cb=function(_4cc){
var _4cd=new Array(_4cc.length);
for(var i=0;i<_4cc.length;i++){
_4cd[i]=Math.round(_4cc[i]);
}
return _4cd;
};
var _4cf=function(n,_4d1){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _4d1){
if(s=="opacity"){
dojo.style.setOpacity(n,_4d1[s]);
}else{
n.style[s]=_4d1[s];
}
}
};
var _4d3=function(_4d4){
this._properties=_4d4;
this.diffs=new Array(_4d4.length);
dojo.lang.forEach(_4d4,function(prop,i){
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.graphics.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _4db=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_4db=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_4db+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_4db+=")";
}else{
_4db=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_4db;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_4de){
dojo.lang.forEach(_4c6,function(node){
_4cf(node,_4de);
});
}},_4c8,new _4d3(_4c7),_4c9);
return anim;
};
dojo.lfx.html._makeFadeable=function(_4e0){
var _4e1=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";
}
}
};
if(dojo.lang.isArrayLike(_4e0)){
dojo.lang.forEach(_4e0,_4e1);
}else{
_4e1(_4e0);
}
};
dojo.lfx.html.fadeIn=function(_4e3,_4e4,_4e5,_4e6){
_4e3=dojo.lfx.html._byId(_4e3);
dojo.lfx.html._makeFadeable(_4e3);
var anim=dojo.lfx.propertyAnimation(_4e3,[{property:"opacity",start:dojo.style.getOpacity(_4e3[0]),end:1}],_4e4,_4e5);
if(_4e6){
var _4e8=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4e8();
_4e6(_4e3,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_4e9,_4ea,_4eb,_4ec){
_4e9=dojo.lfx.html._byId(_4e9);
dojo.lfx.html._makeFadeable(_4e9);
var anim=dojo.lfx.propertyAnimation(_4e9,[{property:"opacity",start:dojo.style.getOpacity(_4e9[0]),end:0}],_4ea,_4eb);
if(_4ec){
var _4ee=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4ee();
_4ec(_4e9,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_4ef,_4f0,_4f1,_4f2){
var anim=dojo.lfx.html.fadeIn(_4ef,_4f0,_4f1,_4f2);
var _4f4=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_4f4();
if(dojo.lang.isArrayLike(_4ef)){
dojo.lang.forEach(_4ef,dojo.style.show);
}else{
dojo.style.show(_4ef);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_4f5,_4f6,_4f7,_4f8){
var anim=dojo.lfx.html.fadeOut(_4f5,_4f6,_4f7,function(){
if(dojo.lang.isArrayLike(_4f5)){
dojo.lang.forEach(_4f5,dojo.style.hide);
}else{
dojo.style.hide(_4f5);
}
if(_4f8){
_4f8(_4f5,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_4fa,_4fb,_4fc,_4fd){
_4fa=dojo.lfx.html._byId(_4fa);
var _4fe=[];
dojo.lang.forEach(_4fa,function(node){
var _500=dojo.style.getStyle(node,"overflow");
if(_500=="visible"){
node.style.overflow="hidden";
}
node.style.height="0px";
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_4fb,_4fc);
var _502=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_502();
node.style.overflow=_500;
node.style.height="auto";
if(_4fd){
_4fd(node,anim);
}
};
_4fe.push(anim);
});
if(_4fa.length>1){
return dojo.lfx.combine(_4fe);
}else{
return _4fe[0];
}
};
dojo.lfx.html.wipeOut=function(_503,_504,_505,_506){
_503=dojo.lfx.html._byId(_503);
var _507=[];
dojo.lang.forEach(_503,function(node){
var _509=dojo.style.getStyle(node,"overflow");
if(_509=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_504,_505);
var _50b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_50b();
dojo.style.hide(node);
node.style.overflow=_509;
if(_506){
_506(node,anim);
}
};
_507.push(anim);
});
if(_503.length>1){
return dojo.lfx.combine(_507);
}else{
return _507[0];
}
};
dojo.lfx.html.slideTo=function(_50c,_50d,_50e,_50f,_510){
_50c=dojo.lfx.html._byId(_50c);
var _511=[];
dojo.lang.forEach(_50c,function(node){
var top=null;
var left=null;
var init=(function(){
var _516=node;
return function(){
var pos=dojo.style.getComputedStyle(_516,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(dojo.style.getComputedStyle(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(dojo.style.getComputedStyle(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.style.abs(_516,true);
dojo.style.setStyleAttributes(_516,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_50d[0]},{property:"left",start:left,end:_50d[1]}],_50e,_50f);
var _51a=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_51a();
init();
};
if(_510){
var _51b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_51b();
_510(_50c,anim);
};
}
_511.push(anim);
});
if(_50c.length>1){
return dojo.lfx.combine(_511);
}else{
return _511[0];
}
};
dojo.lfx.html.slideBy=function(_51c,_51d,_51e,_51f,_520){
_51c=dojo.lfx.html._byId(_51c);
var _521=[];
dojo.lang.forEach(_51c,function(node){
var top=null;
var left=null;
var init=(function(){
var _526=node;
return function(){
var pos=dojo.style.getComputedStyle(_526,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(dojo.style.getComputedStyle(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(dojo.style.getComputedStyle(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.style.abs(_526,true);
dojo.style.setStyleAttributes(_526,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:top+_51d[0]},{property:"left",start:left,end:left+_51d[1]}],_51e,_51f);
var _52a=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_52a();
init();
};
if(_520){
var _52b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_52b();
_520(_51c,anim);
};
}
_521.push(anim);
});
if(_51c.length>1){
return dojo.lfx.combine(_521);
}else{
return _521[0];
}
};
dojo.lfx.html.explode=function(_52c,_52d,_52e,_52f,_530){
_52c=dojo.byId(_52c);
_52d=dojo.byId(_52d);
var _531=dojo.style.toCoordinateArray(_52c,true);
var _532=document.createElement("div");
dojo.html.copyStyle(_532,_52d);
with(_532.style){
position="absolute";
display="none";
}
dojo.html.body().appendChild(_532);
with(_52d.style){
visibility="hidden";
display="block";
}
var _533=dojo.style.toCoordinateArray(_52d,true);
with(_52d.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_532,[{property:"height",start:_531[3],end:_533[3]},{property:"width",start:_531[2],end:_533[2]},{property:"top",start:_531[1],end:_533[1]},{property:"left",start:_531[0],end:_533[0]},{property:"opacity",start:0.3,end:1}],_52e,_52f);
anim.beforeBegin=function(){
dojo.style.setDisplay(_532,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_52d,"block");
_532.parentNode.removeChild(_532);
};
if(_530){
var _535=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_535();
_530(_52d,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_536,end,_538,_539,_53a){
_536=dojo.byId(_536);
end=dojo.byId(end);
var _53b=dojo.style.toCoordinateArray(_536,true);
var _53c=dojo.style.toCoordinateArray(end,true);
var _53d=document.createElement("div");
dojo.html.copyStyle(_53d,_536);
dojo.style.setOpacity(_53d,0.3);
with(_53d.style){
position="absolute";
display="none";
}
dojo.html.body().appendChild(_53d);
var anim=new dojo.lfx.propertyAnimation(_53d,[{property:"height",start:_53b[3],end:_53c[3]},{property:"width",start:_53b[2],end:_53c[2]},{property:"top",start:_53b[1],end:_53c[1]},{property:"left",start:_53b[0],end:_53c[0]},{property:"opacity",start:1,end:0.3}],_538,_539);
anim.beforeBegin=function(){
dojo.style.hide(_536);
dojo.style.show(_53d);
};
anim.onEnd=function(){
_53d.parentNode.removeChild(_53d);
};
if(_53a){
var _53f=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_53f();
_53a(_536,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_540,_541,_542,_543,_544){
_540=dojo.lfx.html._byId(_540);
var _545=[];
dojo.lang.forEach(_540,function(node){
var _547=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _549=dojo.style.getStyle(node,"background-image");
var _54a=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_547.length>3){
_547.pop();
}
var rgb=new dojo.graphics.color.Color(_541);
var _54c=new dojo.graphics.color.Color(_547);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_54c}],_542,_543);
var _54e=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_54e();
if(_549){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _54f=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_54f();
if(_549){
node.style.backgroundImage=_549;
}
if(_54a){
node.style.backgroundColor="transparent";
}
if(_544){
_544(node,anim);
}
};
_545.push(anim);
});
if(_540.length>1){
return dojo.lfx.combine(_545);
}else{
return _545[0];
}
};
dojo.lfx.html.unhighlight=function(_550,_551,_552,_553,_554){
_550=dojo.lfx.html._byId(_550);
var _555=[];
dojo.lang.forEach(_550,function(node){
var _557=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_551);
var _559=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_557,end:rgb}],_552,_553);
var _55b=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_55b();
if(_559){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_557.toRgb().join(",")+")";
};
var _55c=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_55c();
if(_554){
_554(node,anim);
}
};
_555.push(anim);
});
if(_550.length>1){
return dojo.lfx.combine(_555);
}else{
return _555[0];
}
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_55e,days,path,_561,_562){
var _563=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_563=d.toGMTString();
}
_55e=escape(_55e);
document.cookie=name+"="+_55e+";"+(_563!=-1?" expires="+_563+";":"")+(path?"path="+path:"")+(_561?"; domain="+_561:"")+(_562?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.lastIndexOf(name+"=");
if(idx==-1){
return null;
}
var _567=document.cookie.substring(idx+name.length+1);
var end=_567.indexOf(";");
if(end==-1){
end=_567.length;
}
_567=_567.substring(0,end);
_567=unescape(_567);
return _567;
};
dojo.io.cookie.get=dojo.io.cookie.getCookie;
dojo.io.cookie.deleteCookie=function(name){
dojo.io.cookie.setCookie(name,"-",0);
};
dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_56e,_56f,_570){
if(arguments.length==5){
_570=_56e;
_56e=null;
_56f=null;
}
var _571=[],cookie,value="";
if(!_570){
cookie=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!cookie){
cookie={};
}
for(var prop in obj){
if(prop==null){
delete cookie[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
cookie[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in cookie){
_571.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_571.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_56e,_56f);
};
dojo.io.cookie.getObjectCookie=function(name){
var _574=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_574={};
var _575=cookie.split("&");
for(var i=0;i<_575.length;i++){
var pair=_575[i].split("=");
var _578=pair[1];
if(isNaN(_578)){
_578=unescape(pair[1]);
}
_574[unescape(pair[0])]=_578;
}
}
return _574;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _579=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_579=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.provide("dojo.AdapterRegistry");
dojo.require("dojo.lang.func");
dojo.AdapterRegistry=function(){
this.pairs=[];
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_57b,wrap,_57d){
if(_57d){
this.pairs.unshift([name,_57b,wrap]);
}else{
this.pairs.push([name,_57b,wrap]);
}
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
return pair[2].apply(this,arguments);
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.AdapterRegistry");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_584,wrap,_586){
dojo.json.jsonRegistry.register(name,_584,wrap,_586);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},evalJSON:function(json){
dojo.deprecated("dojo.json.evalJSON","use dojo.json.evalJson","0.4");
return this.evalJson(json);
},serialize:function(o){
var _58a=typeof (o);
if(_58a=="undefined"){
return "undefined";
}else{
if((_58a=="number")||(_58a=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_58a=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _58c;
if(typeof (o.__json__)=="function"){
_58c=o.__json__();
if(o!==_58c){
return me(_58c);
}
}
if(typeof (o.json)=="function"){
_58c=o.json();
if(o!==_58c){
return me(_58c);
}
}
if(_58a!="function"&&typeof (o.length)=="number"){
var res=[];
for(var i=0;i<o.length;i++){
var val=me(o[i]);
if(typeof (val)!="string"){
val="undefined";
}
res.push(val);
}
return "["+res.join(",")+"]";
}
try{
window.o=o;
_58c=dojo.json.jsonRegistry.match(o);
return me(_58c);
}
catch(e){
}
if(_58a=="function"){
return null;
}
res=[];
for(var k in o){
var _591;
if(typeof (k)=="number"){
_591="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_591=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_591+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.Deferred");
dojo.require("dojo.lang.func");
dojo.Deferred=function(_592){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_592;
this.silentlyCancelled=false;
};
dojo.lang.extend(dojo.Deferred,{getFunctionFromArgs:function(){
var a=arguments;
if((a[0])&&(!a[1])){
if(dojo.lang.isFunction(a[0])){
return a[0];
}else{
if(dojo.lang.isString(a[0])){
return dj_global[a[0]];
}
}
}else{
if((a[0])&&(a[1])){
return dojo.lang.hitch(a[0],a[1]);
}
}
return null;
},repr:function(){
var _594;
if(this.fired==-1){
_594="unfired";
}else{
if(this.fired==0){
_594="success";
}else{
_594="error";
}
}
return "Deferred("+this.id+", "+_594+")";
},toString:dojo.lang.forward("repr"),_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
if(this.fired==-1){
if(this.canceller){
this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
this.errback(new Error(this.repr()));
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_pause:function(){
this.paused++;
},_unpause:function(){
this.paused--;
if((this.paused==0)&&(this.fired>=0)){
this._fire();
}
},_continue:function(res){
this._resback(res);
this._unpause();
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
dojo.raise("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _59c=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_59c=dojo.lang.curryArguments(null,_59c,arguments,2);
}
return this.addCallbacks(_59c,_59c);
},addCallback:function(cb,cbfn){
var _59f=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_59f=dojo.lang.curryArguments(null,_59f,arguments,2);
}
return this.addCallbacks(_59f,null);
},addErrback:function(cb,cbfn){
var _5a2=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_5a2=dojo.lang.curryArguments(null,_5a2,arguments,2);
}
return this.addCallbacks(null,_5a2);
return this.addCallbacks(null,cbfn);
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _5a5=this.chain;
var _5a6=this.fired;
var res=this.results[_5a6];
var self=this;
var cb=null;
while(_5a5.length>0&&this.paused==0){
var pair=_5a5.shift();
var f=pair[_5a6];
if(f==null){
continue;
}
try{
res=f(res);
_5a6=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._continue(res);
};
this._pause();
}
}
catch(err){
_5a6=1;
res=err;
}
}
this.fired=_5a6;
this.results[_5a6]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
dojo.provide("dojo.rpc.Deferred");
dojo.require("dojo.Deferred");
dojo.rpc.Deferred=dojo.Deferred;
dojo.rpc.Deferred.prototype=dojo.Deferred.prototype;
dojo.provide("dojo.rpc.RpcService");
dojo.require("dojo.io.*");
dojo.require("dojo.json");
dojo.require("dojo.lang.func");
dojo.require("dojo.rpc.Deferred");
dojo.rpc.RpcService=function(url){
if(url){
this.connect(url);
}
};
dojo.lang.extend(dojo.rpc.RpcService,{strictArgChecks:true,serviceUrl:"",parseResults:function(obj){
return obj;
},errorCallback:function(_5af){
return function(type,obj,e){
_5af.errback(e);
};
},resultCallback:function(_5b3){
var tf=dojo.lang.hitch(this,function(type,obj,e){
var _5b8=this.parseResults(obj||e);
_5b3.callback(_5b8);
});
return tf;
},generateMethod:function(_5b9,_5ba,url){
return dojo.lang.hitch(this,function(){
var _5bc=new dojo.rpc.Deferred();
if((this.strictArgChecks)&&(_5ba!=null)&&(arguments.length!=_5ba.length)){
dojo.raise("Invalid number of parameters for remote method.");
}else{
this.bind(_5b9,arguments,_5bc,url);
}
return _5bc;
});
},processSmd:function(_5bd){
dojo.debug("RpcService: Processing returned SMD.");
if(_5bd.methods){
dojo.lang.forEach(_5bd.methods,function(m){
if(m&&m["name"]){
dojo.debug("RpcService: Creating Method: this.",m.name,"()");
this[m.name]=this.generateMethod(m.name,m.parameters,m["url"]||m["serviceUrl"]||m["serviceURL"]);
if(dojo.lang.isFunction(this[m.name])){
dojo.debug("RpcService: Successfully created",m.name,"()");
}else{
dojo.debug("RpcService: Failed to create",m.name,"()");
}
}
},this);
}
this.serviceUrl=_5bd.serviceUrl||_5bd.serviceURL;
dojo.debug("RpcService: Dojo RpcService is ready for use.");
},connect:function(_5bf){
dojo.debug("RpcService: Attempting to load SMD document from:",_5bf);
dojo.io.bind({url:_5bf,mimetype:"text/json",load:dojo.lang.hitch(this,function(type,_5c1,e){
return this.processSmd(_5c1);
}),sync:true});
}});
dojo.provide("dojo.rpc.JsonService");
dojo.require("dojo.rpc.RpcService");
dojo.require("dojo.io.*");
dojo.require("dojo.json");
dojo.require("dojo.lang");
dojo.rpc.JsonService=function(args){
if(args){
if(dojo.lang.isString(args)){
this.connect(args);
}else{
if(args["smdUrl"]){
this.connect(args.smdUrl);
}
if(args["smdStr"]){
this.processSmd(dj_eval("("+args.smdStr+")"));
}
if(args["smdObj"]){
this.processSmd(args.smdObj);
}
if(args["serviceUrl"]){
this.serviceUrl=args.serviceUrl;
}
if(typeof args["strictArgChecks"]!="undefined"){
this.strictArgChecks=args.strictArgChecks;
}
}
}
};
dojo.inherits(dojo.rpc.JsonService,dojo.rpc.RpcService);
dojo.lang.extend(dojo.rpc.JsonService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_5c4,_5c5){
var _5c6=new dojo.rpc.Deferred();
this.bind(_5c4,_5c5,_5c6);
return _5c6;
},bind:function(_5c7,_5c8,_5c9,url){
dojo.io.bind({url:url||this.serviceUrl,postContent:this.createRequest(_5c7,_5c8),method:"POST",contentType:this.contentType,mimetype:"text/json",load:this.resultCallback(_5c9),preventCache:this.bustCache});
},createRequest:function(_5cb,_5cc){
var req={"params":_5cc,"method":_5cb,"id":++this.lastSubmissionId};
var data=dojo.json.serialize(req);
dojo.debug("JsonService: JSON-RPC Request: "+data);
return data;
},parseResults:function(obj){
if(!obj){
return;
}
if(obj["Result"]||obj["result"]){
return obj["result"]||obj["Result"];
}else{
if(obj["ResultSet"]){
return obj["ResultSet"];
}else{
return obj;
}
}
}});


