/*
	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: 4364 $".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 _21 in _1f){
tmp[_21]=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=this.getModuleSymbols(_47);
var _4d=((_4c[0].charAt(0)!="/")&&(!_4c[0].match(/^\w+:/)));
var _4e=_4c[_4c.length-1];
var _4f=_47.split(".");
if(_4e=="*"){
_47=(_4f.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4f.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4d&&(_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;
};
}
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _65=document.location.toString();
var _66=_65.split("?",2);
if(_66.length>1){
var _67=_66[1];
var _68=_67.split("&");
for(var x in _68){
var sp=_68[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 _6c=document.getElementsByTagName("script");
var _6d=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_6c.length;i++){
var src=_6c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_6d);
if(m){
var _71=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_71+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_71;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_71;
}
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 _79=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_79>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_79+6,_79+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 _7a=null;
var _7b=null;
try{
_7a=new XMLHttpRequest();
}
catch(e){
}
if(!_7a){
for(var i=0;i<3;++i){
var _7d=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_7a=new ActiveXObject(_7d);
}
catch(e){
_7b=e;
}
if(_7a){
dojo.hostenv._XMLHTTP_PROGIDS=[_7d];
break;
}
}
}
if(!_7a){
return dojo.raise("XMLHTTP not available",_7b);
}
return _7a;
};
dojo.hostenv.getText=function(uri,_7f,_80){
var _81=this.getXmlhttpObject();
if(_7f){
_81.onreadystatechange=function(){
if(4==_81.readyState){
if((!_81["status"])||((200<=_81.status)&&(300>_81.status))){
_7f(_81.responseText);
}
}
};
}
_81.open("GET",uri,_7f?true:false);
try{
_81.send(null);
if(_7f){
return null;
}
if((_81["status"])&&((200>_81.status)||(300<=_81.status))){
throw Error("Unable to load "+uri+" status:"+_81.status);
}
}
catch(e){
if((_80)&&(!_7f)){
return null;
}else{
throw e;
}
}
return _81.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_82){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_82);
}else{
try{
var _83=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_83){
_83=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_82));
_83.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_82+"</div>");
}
catch(e2){
window.status=_82;
}
}
}
};
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(_85,_86,fp,_88){
var _89=_85["on"+_86]||function(){
};
_85["on"+_86]=function(){
fp.apply(_85,arguments);
_89.apply(_85,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _8a=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_8a();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_8a);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _8b=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_8b=_8b.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_8b=_8b.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_8b.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _8c=new dojo.xml.Parse();
if(_8b.length>0){
for(var x=0;x<_8b.length;x++){
var _8e=document.getElementById(_8b[x]);
if(!_8e){
continue;
}
var _8f=_8c.parseElement(_8e,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}else{
if(djConfig.parseWidgets){
var _8f=_8c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}
}
}
};
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 _92=false;
var _93=false;
var _94=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_92=true;
}else{
if(typeof this["load"]=="function"){
_93=true;
}else{
if(window.widget){
_94=true;
}
}
}
var _95=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_95.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_92)&&(!_94)){
_95.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_95.push("compat/"+djConfig["compat"]+".js");
}
var _96=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_96=djConfig["baseLoaderUri"];
}
for(var x=0;x<_95.length;x++){
var _98=_96+"src/"+_95[x];
if(_92||_93){
load(_98);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_98+"'></scr"+"ipt>");
}
catch(e){
var _99=document.createElement("script");
_99.src=_98;
document.getElementsByTagName("head")[0].appendChild(_99);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_9a){
return _9a?_9a.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_9b,_9c,_9d){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _9e=dojo.hostenv.getModuleSymbols(_9b);
var _9f=_9e.concat("nls").join("/");
_9d=dojo.normalizeLocale(_9d);
var _a0=_9d.split("-");
var _a1=[];
for(var i=_a0.length;i>0;i--){
_a1.push(_a0.slice(0,i).join("-"));
}
if(_a1[_a1.length-1]!=dojo.fallback_locale){
_a1.push(dojo.fallback_locale);
}
var _a3=[_9b,"_nls",_9c].join(".");
var _a4=dojo.hostenv.startPackage(_a3);
dojo.hostenv.loaded_modules_[_a3]=_a4;
var _a5=false;
for(var i=_a1.length-1;i>=0;i--){
var loc=_a1[i];
var pkg=[_a3,loc].join(".");
var _a8=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _a9=[_9f,loc,_9c].join("/")+".js";
_a8=dojo.hostenv.loadPath(_a9,null,function(_aa){
_a4[loc]=_aa;
if(_a5){
for(var x in _a5){
if(!_a4[loc][x]){
_a4[loc][x]=_a5[x];
}
}
}
});
}else{
_a8=true;
}
if(_a8&&_a4[loc]){
_a5=_a4[loc];
}
}
};
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang._mixin=function(obj,_ad){
var _ae={};
for(var x in _ad){
if(typeof _ae[x]=="undefined"||_ae[x]!=_ad[x]){
obj[x]=_ad[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_ad["toString"])&&_ad["toString"]!=obj["toString"]){
obj.toString=_ad.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_b1){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_b3,_b4){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_b3.prototype,arguments[i]);
}
return _b3;
};
dojo.lang.find=function(arr,val,_b8,_b9){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _bb=dojo.lang.isString(arr);
if(_bb){
arr=arr.split("");
}
if(_b9){
var _bc=-1;
var i=arr.length-1;
var end=-1;
}else{
var _bc=1;
var i=0;
var end=arr.length;
}
if(_b8){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_bc;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_bc;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_c1){
return dojo.lang.find(arr,val,_c1,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
if(typeof wh=="undefined"){
return false;
}
return (typeof wh=="object"||wh===null||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
if(!wh){
return false;
}
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
if(!wh){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,_ce){
try{
return (typeof obj[_ce]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _d1=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_d1++;
break;
}
}
return (_d1==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_d5){
var _d6=dojo.lang.isString(arr);
if(_d6){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_d5)){
_d5=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_d5){
var _d7=obj;
obj=_d5;
_d5=_d7;
}
}
if(Array.map){
var _d8=Array.map(arr,_d5,obj);
}else{
var _d8=[];
for(var i=0;i<arr.length;++i){
_d8.push(_d5.call(obj,arr[i]));
}
}
if(_d6){
return _d8.join("");
}else{
return _d8;
}
};
dojo.lang.forEach=function(_da,_db,_dc){
if(dojo.lang.isString(_da)){
_da=_da.split("");
}
if(Array.forEach){
Array.forEach(_da,_db,_dc);
}else{
if(!_dc){
_dc=dj_global;
}
for(var i=0,l=_da.length;i<l;i++){
_db.call(_dc,_da[i],i,_da);
}
}
};
dojo.lang._everyOrSome=function(_de,arr,_e0,_e1){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_de)?"every":"some"](arr,_e0,_e1);
}else{
if(!_e1){
_e1=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _e3=_e0.call(_e1,arr[i],i,arr);
if((_de)&&(!_e3)){
return false;
}else{
if((!_de)&&(_e3)){
return true;
}
}
}
return (_de)?true:false;
}
};
dojo.lang.every=function(arr,_e5,_e6){
return this._everyOrSome(true,arr,_e5,_e6);
};
dojo.lang.some=function(arr,_e8,_e9){
return this._everyOrSome(false,arr,_e8,_e9);
};
dojo.lang.filter=function(arr,_eb,_ec){
var _ed=dojo.lang.isString(arr);
if(_ed){
arr=arr.split("");
}
if(Array.filter){
var _ee=Array.filter(arr,_eb,_ec);
}else{
if(!_ec){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_ec=dj_global;
}
var _ee=[];
for(var i=0;i<arr.length;i++){
if(_eb.call(_ec,arr[i],i,arr)){
_ee.push(arr[i]);
}
}
}
if(_ed){
return _ee.join("");
}else{
return _ee;
}
};
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(_f3,_f4){
var _f5=[];
for(var i=_f4||0;i<_f3.length;i++){
_f5.push(_f3[i]);
}
return _f5;
};
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(_f8){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _f9=_f8.tagName;
if(_f9.substr(0,5).toLowerCase()!="dojo:"){
if(_f9.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_f9.substring(4).toLowerCase();
}
var djt=_f8.getAttribute("dojoType")||_f8.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((_f8.getAttributeNS)&&(_f8.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+_f8.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=_f8.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _fb=_f8.className||_f8.getAttribute("class");
if((_fb)&&(_fb.indexOf)&&(_fb.indexOf("dojo-")!=-1)){
var _fc=_fb.split(" ");
for(var x=0;x<_fc.length;x++){
if((_fc[x].length>5)&&(_fc[x].indexOf("dojo-")>=0)){
return "dojo:"+_fc[x].substr(5).toLowerCase();
}
}
}
}
}
return _f9.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(_ff,_100){
var node=_ff.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_100&&node&&node.tagName&&node.tagName.toLowerCase()!=_100.toLowerCase()){
node=dojo.dom.nextElement(node,_100);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_102,_103){
var node=_102.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_103&&node&&node.tagName&&node.tagName.toLowerCase()!=_103.toLowerCase()){
node=dojo.dom.prevElement(node,_103);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_106){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_106&&_106.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_106);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_108){
if(!node){
return null;
}
if(_108){
_108=_108.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_108&&_108.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_108);
}
return node;
};
dojo.dom.moveChildren=function(_109,_10a,trim){
var _10c=0;
if(trim){
while(_109.hasChildNodes()&&_109.firstChild.nodeType==dojo.dom.TEXT_NODE){
_109.removeChild(_109.firstChild);
}
while(_109.hasChildNodes()&&_109.lastChild.nodeType==dojo.dom.TEXT_NODE){
_109.removeChild(_109.lastChild);
}
}
while(_109.hasChildNodes()){
_10a.appendChild(_109.firstChild);
_10c++;
}
return _10c;
};
dojo.dom.copyChildren=function(_10d,_10e,trim){
var _110=_10d.cloneNode(true);
return this.moveChildren(_110,_10e,trim);
};
dojo.dom.removeChildren=function(node){
var _112=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _112;
};
dojo.dom.replaceChildren=function(node,_114){
dojo.dom.removeChildren(node);
node.appendChild(_114);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_117,_118){
var _119=[];
var _11a=dojo.lang.isFunction(_117);
while(node){
if(!_11a||_117(node)){
_119.push(node);
}
if(_118&&_119.length>0){
return _119[0];
}
node=node.parentNode;
}
if(_118){
return null;
}
return _119;
};
dojo.dom.getAncestorsByTag=function(node,tag,_11d){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_11d);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_122,_123){
if(_123&&node){
node=node.parentNode;
}
while(node){
if(node==_122){
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 _126=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_126.length;i++){
try{
doc=new ActiveXObject(_126[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,_129){
if(!_129){
_129="text/xml";
}
if(!dj_undef("DOMParser")){
var _12a=new DOMParser();
return _12a.parseFromString(str,_129);
}else{
if(!dj_undef("ActiveXObject")){
var _12b=dojo.dom.createDocument();
if(_12b){
_12b.async=false;
_12b.loadXML(str);
return _12b;
}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 _12d=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_12d.importNode(tmp.childNodes.item(i),true);
}
return _12d;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_130){
if(_130.firstChild){
_130.insertBefore(node,_130.firstChild);
}else{
_130.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_133){
if(_133!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _134=ref.parentNode;
_134.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_137){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_137!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_137);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_13b){
if((!node)||(!ref)||(!_13b)){
return false;
}
switch(_13b.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,_13d,_13e){
var _13f=_13d.childNodes;
if(!_13f.length){
_13d.appendChild(node);
return true;
}
var _140=null;
for(var i=0;i<_13f.length;i++){
var _142=_13f.item(i)["getAttribute"]?parseInt(_13f.item(i).getAttribute("dojoinsertionindex")):-1;
if(_142<_13e){
_140=_13f.item(i);
}
}
if(_140){
return dojo.dom.insertAfter(node,_140);
}else{
return dojo.dom.insertBefore(node,_13f.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _145="";
if(node==null){
return _145;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_145+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_145+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _145;
}
};
dojo.dom.collectionToArray=function(_147){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_147);
};
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,_14c,_14d,_14e){
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(_14c,_14d,_14e);
}else{
var _14f=elem.ownerDocument;
var _150=_14f.createNode(2,_14d,_14c);
_150.nodeValue=_14e;
elem.setAttributeNode(_150);
}
};
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
function getDojoTagName(node){
var _152=node.tagName;
if(_152.substr(0,5).toLowerCase()!="dojo:"){
if(_152.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_152.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type")){
return "dojo:"+node.getAttributeNS(dojo.dom.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(!dj_global["djConfig"]||!djConfig["ignoreClassNames"]){
var _154=node.className||node.getAttribute("class");
if(_154&&_154.indexOf&&_154.indexOf("dojo-")!=-1){
var _155=_154.split(" ");
for(var x=0;x<_155.length;x++){
if(_155[x].length>5&&_155[x].indexOf("dojo-")>=0){
return "dojo:"+_155[x].substr(5).toLowerCase();
}
}
}
}
}
return _152.toLowerCase();
}
this.parseElement=function(node,_158,_159,_15a){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _15b={};
var _15c=getDojoTagName(node);
_15b[_15c]=[];
if((!_159)||(_15c.substr(0,4).toLowerCase()=="dojo")){
var _15d=parseAttributes(node);
for(var attr in _15d){
if((!_15b[_15c][attr])||(typeof _15b[_15c][attr]!="array")){
_15b[_15c][attr]=[];
}
_15b[_15c][attr].push(_15d[attr]);
}
_15b[_15c].nodeRef=node;
_15b.tagName=_15c;
_15b.index=_15a||0;
}
var _15f=0;
var tcn,i=0,nodes=node.childNodes;
while(tcn=nodes[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_15f++;
var ctn=getDojoTagName(tcn);
if(!_15b[ctn]){
_15b[ctn]=[];
}
_15b[ctn].push(this.parseElement(tcn,true,_159,_15f));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_15b[ctn][_15b[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_15b[_15c].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _15b;
};
function parseAttributes(node){
var _163={};
var atts=node.attributes;
var _165,i=0;
while(_165=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_165){
continue;
}
if((typeof _165=="object")&&(typeof _165.nodeValue=="undefined")||(_165.nodeValue==null)||(_165.nodeValue=="")){
continue;
}
}
var nn=(_165.nodeName.indexOf("dojo:")==-1)?_165.nodeName:_165.nodeName.split("dojo:")[1];
_163[nn]={value:_165.nodeValue};
}
return _163;
}
};
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_167,_168){
if(dojo.lang.isString(_168)){
var fcn=_167[_168];
}else{
var fcn=_168;
}
return function(){
return fcn.apply(_167,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_16a,_16b,_16c){
var nso=(_16b||dojo.lang.anon);
if((_16c)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_16a){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_16a;
return ret;
};
dojo.lang.forward=function(_170){
return function(){
return this[_170].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _173=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_173.push(arguments[x]);
}
var _175=(func["__preJoinArity"]||func.length)-_173.length;
function gather(_176,_177,_178){
var _179=_178;
var _17a=_177.slice(0);
for(var x=0;x<_176.length;x++){
_17a.push(_176[x]);
}
_178=_178-_176.length;
if(_178<=0){
var res=func.apply(ns,_17a);
_178=_179;
return res;
}else{
return function(){
return gather(arguments,_17a,_178);
};
}
}
return gather([],_173,_175);
};
dojo.lang.curryArguments=function(ns,func,args,_180){
var _181=[];
var x=_180||0;
for(x=_180;x<args.length;x++){
_181.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_181));
};
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,_187,_188){
if(!farr.length){
if(typeof _188=="function"){
_188();
}
return;
}
if((typeof _187=="undefined")&&(typeof cb=="number")){
_187=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_187){
_187=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_187,_188);
},_187);
};
dojo.provide("dojo.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(func,_18a){
var _18b=window,argsStart=2;
if(!dojo.lang.isFunction(func)){
_18b=func;
func=_18a;
_18a=arguments[2];
argsStart++;
}
if(dojo.lang.isString(func)){
func=_18b[func];
}
var args=[];
for(var i=argsStart;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_18b,args);
},_18a);
};
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(_194,_195,_196){
with(dojo.parseObjPath(_194,_195,_196)){
return dojo.evalProp(prop,obj,_196);
}
};
dojo.lang.setObjPathValue=function(_197,_198,_199,_19a){
if(arguments.length<4){
_19a=true;
}
with(dojo.parseObjPath(_197,_199,_19a)){
if(obj&&(_19a||(prop in obj))){
obj[prop]=_198;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.extras");
dojo.lang.declare=function(_19b,_19c,init,_19e){
if((dojo.lang.isFunction(_19e))||((!_19e)&&(!dojo.lang.isFunction(init)))){
var temp=_19e;
_19e=init;
init=temp;
}
var _1a0=[];
if(dojo.lang.isArray(_19c)){
_1a0=_19c;
_19c=_1a0.shift();
}
if(!init){
init=dojo.evalObjPath(_19b,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_19c?_19c.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _19c();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_1a0;
for(var i=0,l=_1a0.length;i<l;i++){
dojo.lang.extend(ctor,_1a0[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_19b;
if(dojo.lang.isArray(_19e)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_19e));
}else{
dojo.lang.extend(ctor,(_19e)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_19b,ctor,null,true);
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this.inherited("constructor",arguments);
}else{
this._inherited(s,"constructor",arguments);
}
}
var m=(self.constructor.mixins)||([]);
for(var i=0,l=m.length;i<l;i++){
(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_1a8,_1a9,args){
var _1ab=this.___proto;
this.___proto=_1a8;
var _1ac=_1a8[_1a9].apply(this,(args||[]));
this.___proto=_1ab;
return _1ac;
},inheritedFrom:function(ctor,prop,args){
var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));
return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);
},inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
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,_1b5){
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 _1b8=dl.nameAnonFunc(args[2],ao.adviceObj,_1b5);
ao.adviceFunc=_1b8;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _1b8=dl.nameAnonFunc(args[0],ao.srcObj,_1b5);
ao.srcFunc=_1b8;
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 _1b8=dl.nameAnonFunc(args[1],dj_global,_1b5);
ao.srcFunc=_1b8;
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 _1b8=dl.nameAnonFunc(args[3],dj_global,_1b5);
ao.adviceObj=dj_global;
ao.adviceFunc=_1b8;
}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 _1b8=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_1b5);
ao.aroundFunc=_1b8;
}
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 _1ba={};
for(var x in ao){
_1ba[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);
}
_1ba.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_1ba));
});
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 _1c2;
if((arguments.length==1)&&(typeof a1=="object")){
_1c2=a1;
}else{
_1c2={srcObj:a1,srcFunc:a2};
}
_1c2.adviceFunc=function(){
var _1c3=[];
for(var x=0;x<arguments.length;x++){
_1c3.push(arguments[x]);
}
dojo.debug("("+_1c2.srcObj+")."+_1c2.srcFunc,":",_1c3.join(", "));
};
this.kwConnect(_1c2);
};
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(_1ca,_1cb){
var fn=(_1cb)?"disconnect":"connect";
if(typeof _1ca["srcFunc"]=="function"){
_1ca.srcObj=_1ca["srcObj"]||dj_global;
var _1cd=dojo.lang.nameAnonFunc(_1ca.srcFunc,_1ca.srcObj,true);
_1ca.srcFunc=_1cd;
}
if(typeof _1ca["adviceFunc"]=="function"){
_1ca.adviceObj=_1ca["adviceObj"]||dj_global;
var _1cd=dojo.lang.nameAnonFunc(_1ca.adviceFunc,_1ca.adviceObj,true);
_1ca.adviceFunc=_1cd;
}
return dojo.event[fn]((_1ca["type"]||_1ca["adviceType"]||"after"),_1ca["srcObj"]||dj_global,_1ca["srcFunc"],_1ca["adviceObj"]||_1ca["targetObj"]||dj_global,_1ca["adviceFunc"]||_1ca["targetFunc"],_1ca["aroundObj"],_1ca["aroundFunc"],_1ca["once"],_1ca["delay"],_1ca["rate"],_1ca["adviceMsg"]||false);
};
this.kwConnect=function(_1ce){
return this._kwConnectImpl(_1ce,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(_1d1){
return this._kwConnectImpl(_1d1,true);
};
};
dojo.event.MethodInvocation=function(_1d2,obj,args){
this.jp_=_1d2;
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,_1da){
this.object=obj||dj_global;
this.methodname=_1da;
this.methodfunc=this.object[_1da];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1dc){
if(!obj){
obj=dj_global;
}
if(!obj[_1dc]){
obj[_1dc]=function(){
};
if(!obj[_1dc]){
dojo.raise("Cannot set do-nothing method on that object "+_1dc);
}
}else{
if((!dojo.lang.isFunction(obj[_1dc]))&&(!dojo.lang.isAlien(obj[_1dc]))){
return null;
}
}
var _1dd=_1dc+"$joinpoint";
var _1de=_1dc+"$joinpoint$method";
var _1df=obj[_1dd];
if(!_1df){
var _1e0=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1e0=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1dd,_1de,_1dc]);
}
}
var _1e1=obj[_1dc].length;
obj[_1de]=obj[_1dc];
_1df=obj[_1dd]=new dojo.event.MethodJoinPoint(obj,_1de);
obj[_1dc]=function(){
var args=[];
if((_1e0)&&(!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)&&(_1e0)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _1df.run.apply(_1df,args);
};
obj[_1dc].__preJoinArity=_1e1;
}
return _1df;
};
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 _1e7=[];
for(var x=0;x<args.length;x++){
_1e7[x]=args[x];
}
var _1e9=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1eb=marr[0]||dj_global;
var _1ec=marr[1];
if(!_1eb[_1ec]){
dojo.raise("function \""+_1ec+"\" does not exist on \""+_1eb+"\"");
}
var _1ed=marr[2]||dj_global;
var _1ee=marr[3];
var msg=marr[6];
var _1f0;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1eb[_1ec].apply(_1eb,to.args);
}};
to.args=_1e7;
var _1f2=parseInt(marr[4]);
var _1f3=((!isNaN(_1f2))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1f6=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;
_1e9(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1ee){
_1ed[_1ee].call(_1ed,to);
}else{
if((_1f3)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1eb[_1ec].call(_1eb,to);
}else{
_1eb[_1ec].apply(_1eb,args);
}
},_1f2);
}else{
if(msg){
_1eb[_1ec].call(_1eb,to);
}else{
_1eb[_1ec].apply(_1eb,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_1e9);
}
var _1f9;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1f9=mi.proceed();
}else{
if(this.methodfunc){
_1f9=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_1e9);
}
return (this.methodfunc)?_1f9: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(_1fe,_1ff,_200,_201,_202,_203,once,_205,rate,_207){
var arr=this.getArr(_202);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1fe,_1ff,_200,_201,_205,rate,_207];
if(once){
if(this.hasAdvice(_1fe,_1ff,_202,arr)>=0){
return;
}
}
if(_203=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_20a,_20b,_20c,arr){
if(!arr){
arr=this.getArr(_20c);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _20b=="object")?(new String(_20b)).toString():_20b;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_20a)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_212,_213,_214,once){
var arr=this.getArr(_214);
var ind=this.hasAdvice(_212,_213,_214,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_212,_213,_214,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_218){
if(!this.topics[_218]){
this.topics[_218]=new this.TopicImpl(_218);
}
return this.topics[_218];
};
this.registerPublisher=function(_219,obj,_21b){
var _219=this.getTopic(_219);
_219.registerPublisher(obj,_21b);
};
this.subscribe=function(_21c,obj,_21e){
var _21c=this.getTopic(_21c);
_21c.subscribe(obj,_21e);
};
this.unsubscribe=function(_21f,obj,_221){
var _21f=this.getTopic(_21f);
_21f.unsubscribe(obj,_221);
};
this.destroy=function(_222){
this.getTopic(_222).destroy();
delete this.topics[_222];
};
this.publishApply=function(_223,args){
var _223=this.getTopic(_223);
_223.sendMessage.apply(_223,args);
};
this.publish=function(_225,_226){
var _225=this.getTopic(_225);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_225.sendMessage.apply(_225,args);
};
};
dojo.event.topic.TopicImpl=function(_229){
this.topicName=_229;
this.subscribe=function(_22a,_22b){
var tf=_22b||_22a;
var to=(!_22b)?dj_global:_22a;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_22e,_22f){
var tf=(!_22f)?_22e:_22f;
var to=(!_22f)?null:_22e;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_232,_233){
dojo.event.connect(_232,_233,this,"sendMessage");
};
this.sendMessage=function(_234){
};
};
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(_237){
var na;
var tna;
if(_237){
tna=_237.all||_237.getElementsByTagName("*");
na=[_237];
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 _23b={};
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 _23f=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,_243){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_243.length;x++){
node.__clobberAttrs__.push(_243[x]);
}
};
this.removeListener=function(node,_246,fp,_248){
if(!_248){
var _248=false;
}
_246=_246.toLowerCase();
if(_246.substr(0,2)=="on"){
_246=_246.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_246,fp,_248);
}
};
this.addListener=function(node,_24a,fp,_24c,_24d){
if(!node){
return;
}
if(!_24c){
var _24c=false;
}
_24a=_24a.toLowerCase();
if(_24a.substr(0,2)!="on"){
_24a="on"+_24a;
}
if(!_24d){
var _24e=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_24c){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_24e=fp;
}
if(node.addEventListener){
node.addEventListener(_24a.substr(2),_24e,_24c);
return _24e;
}else{
if(typeof node[_24a]=="function"){
var _251=node[_24a];
node[_24a]=function(e){
_251(e);
return _24e(e);
};
}else{
node[_24a]=_24e;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_24a]);
}
return _24e;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_254,_255){
if(typeof _254!="function"){
dojo.raise("listener not a function: "+_254);
}
dojo.event.browser.currentEvent.currentTarget=_255;
return _254.call(_255,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,_258){
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=(_258?_258:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _25a=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_25a.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_25a.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.widget.Manager");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.func");
dojo.require("dojo.event.*");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _25c={};
var _25d=[];
this.getUniqueId=function(_25e){
return _25e+"_"+(_25c[_25e]!=undefined?++_25c[_25e]:_25c[_25e]=0);
};
this.add=function(_25f){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_25f);
if(!_25f.extraArgs["id"]){
_25f.extraArgs["id"]=_25f.extraArgs["ID"];
}
if(_25f.widgetId==""){
if(_25f["id"]){
_25f.widgetId=_25f["id"];
}else{
if(_25f.extraArgs["id"]){
_25f.widgetId=_25f.extraArgs["id"];
}else{
_25f.widgetId=this.getUniqueId(_25f.widgetType);
}
}
}
if(this.widgetIds[_25f.widgetId]){
dojo.debug("widget ID collision on ID: "+_25f.widgetId);
}
this.widgetIds[_25f.widgetId]=_25f;
dojo.profile.end("dojo.widget.manager.add");
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_261){
var tw=this.widgets[_261].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_261,1);
};
this.removeById=function(id){
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
return this.widgetIds[id];
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(x.widgetType.toLowerCase()==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsOfType=function(id){
dojo.deprecated("getWidgetsOfType","use getWidgetsByType","0.4");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_26b,_26c){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_26b(x)){
ret.push(x);
if(_26c){
return false;
}
}
return true;
});
return (_26c?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _272={};
var _273=["dojo.widget"];
for(var i=0;i<_273.length;i++){
_273[_273[i]]=true;
}
this.registerWidgetPackage=function(_275){
if(!_273[_275]){
_273[_275]=true;
_273.push(_275);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_273,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_277,_278,_279){
var impl=this.getImplementationName(_277);
if(impl){
var ret=new impl(_278);
return ret;
}
};
this.getImplementationName=function(_27c){
var _27d=_27c.toLowerCase();
var impl=_272[_27d];
if(impl){
return impl;
}
if(!_25d.length){
for(var _27f in dojo.render){
if(dojo.render[_27f]["capable"]===true){
var _280=dojo.render[_27f].prefixes;
for(var i=0;i<_280.length;i++){
_25d.push(_280[i].toLowerCase());
}
}
}
_25d.push("");
}
for(var i=0;i<_273.length;i++){
var _282=dojo.evalObjPath(_273[i]);
if(!_282){
continue;
}
for(var j=0;j<_25d.length;j++){
if(!_282[_25d[j]]){
continue;
}
for(var _284 in _282[_25d[j]]){
if(_284.toLowerCase()!=_27d){
continue;
}
_272[_27d]=_282[_25d[j]][_284];
return _272[_27d];
}
}
for(var j=0;j<_25d.length;j++){
for(var _284 in _282){
if(_284.toLowerCase()!=(_25d[j]+_27d)){
continue;
}
_272[_27d]=_282[_284];
return _272[_27d];
}
}
}
throw new Error("Could not locate \""+_27c+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _286=this.topWidgets[id];
if(_286.checkSize){
_286.checkSize();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_28b,_28c){
dw[(_28c||_28b)]=h(_28b);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _28e=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _28e[n];
}
return _28e;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.declare");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.event.*");
dojo.declare("dojo.widget.Widget",null,{initializer:function(){
this.children=[];
this.extraArgs={};
},parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){
return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _290=this.children[i];
if(_290.onResized){
_290.onResized();
}
}
},create:function(args,_292,_293){
this.satisfyPropertySets(args,_292,_293);
this.mixInProperties(args,_292,_293);
this.postMixInProperties(args,_292,_293);
dojo.widget.manager.add(this);
this.buildRendering(args,_292,_293);
this.initialize(args,_292,_293);
this.postInitialize(args,_292,_293);
this.postCreate(args,_292,_293);
return this;
},destroy:function(_294){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_294);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_297){
var ret=[];
var _299=dojo.lang.isFunction(type);
if(!_299){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_299){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_297){
ret=ret.concat(this.children[x].getChildrenOfType(type,_297));
}
}
return ret;
},getDescendants:function(){
var _29b=[];
var _29c=[this];
var elem;
while(elem=_29c.pop()){
_29b.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_29c.push(elem);
});
}
return _29b;
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _2a3;
var _2a4=dojo.widget.lcArgsCache[this.widgetType];
if(_2a4==null){
_2a4={};
for(var y in this){
_2a4[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_2a4;
}
var _2a6={};
for(var x in args){
if(!this[x]){
var y=_2a4[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_2a6[x]){
continue;
}
_2a6[x]=true;
if((typeof this[x])!=(typeof _2a3)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.connect(this,x,this,tn);
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=args[x];
}else{
var _2a8=args[x].split(";");
for(var y=0;y<_2a8.length;y++){
var si=_2a8[y].indexOf(":");
if((si!=-1)&&(_2a8[y].length>si)){
this[x][_2a8[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_2a8[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(){
},initialize:function(args,frag){
return false;
},postInitialize:function(args,frag){
return false;
},postCreate:function(args,frag){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_2b0){
},addChild:function(_2b1){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_2b2){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_2b2){
this.children.splice(x,1);
break;
}
}
return _2b2;
},resize:function(_2b4,_2b5){
this.setWidth(_2b4);
this.setHeight(_2b5);
},setWidth:function(_2b6){
if((typeof _2b6=="string")&&(_2b6.substr(-1)=="%")){
this.setPercentageWidth(_2b6);
}else{
this.setNativeWidth(_2b6);
}
},setHeight:function(_2b7){
if((typeof _2b7=="string")&&(_2b7.substr(-1)=="%")){
this.setPercentageHeight(_2b7);
}else{
this.setNativeHeight(_2b7);
}
},setPercentageHeight:function(_2b8){
return false;
},setNativeHeight:function(_2b9){
return false;
},setPercentageWidth:function(_2ba){
return false;
},setNativeWidth:function(_2bb){
return false;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.getSiblings()[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.getSiblings(),this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.getSiblings().length-1){
return null;
}
if(idx<0){
return null;
}
return this.getSiblings()[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _2bf=type.toLowerCase();
this[_2bf]=function(_2c0,_2c1,_2c2,_2c3,_2c4){
return dojo.widget.buildWidgetFromParseTree(_2bf,_2c0,_2c1,_2c2,_2c3,_2c4);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_2c5,_2c6,_2c7){
var _2c8=_2c6.parseProperties(_2c5["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_2c9,_2ca,_2cb){
var _2cc=_2ca.parseProperties(_2c9["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_2cf,_2d0,_2d1,_2d2){
var _2d3=type.split(":");
_2d3=(_2d3.length==2)?_2d3[1]:type;
var _2d4=_2d2||_2cf.parseProperties(frag["dojo:"+_2d3]);
var _2d5=dojo.widget.manager.getImplementation(_2d3);
if(!_2d5){
throw new Error("cannot find \""+_2d3+"\" widget");
}else{
if(!_2d5.create){
throw new Error("\""+_2d3+"\" widget object does not appear to implement *Widget");
}
}
_2d4["dojoinsertionindex"]=_2d1;
var ret=_2d5.create(_2d4,frag,_2d0);
return ret;
};
dojo.widget.defineWidget=function(_2d7,_2d8,_2d9,init,_2db){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_2dd,_2de,_2df,init,_2e1){
var _2e2=_2dd.split(".");
var type=_2e2.pop();
var regx="\\.("+(_2de?_2de+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_2dd.search(new RegExp(regx));
_2e2=(r<0?_2e2.join("."):_2dd.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_2e2);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
_2e1=(_2e1)||{};
_2e1.widgetType=type;
if((!init)&&(_2e1["classConstructor"])){
init=_2e1.classConstructor;
delete _2e1.classConstructor;
}
dojo.declare(_2dd,_2df,init,_2e1);
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_2e6){
this.propertySetsList=[];
this.fragment=_2e6;
this.createComponents=function(frag,_2e8){
var _2e9=[];
var _2ea=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _2eb=dojo.widget.tags;
var tna=String(frag["tagName"]).split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_2eb[ltn]){
_2ea=true;
frag.tagName=ltn;
var ret=_2eb[ltn](frag,this,_2e8,frag["index"]);
_2e9.push(ret);
}else{
if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_2ea){
_2e9=_2e9.concat(this.createSubComponents(frag,_2e8));
}
return _2e9;
};
this.createSubComponents=function(_2f0,_2f1){
var frag,comps=[];
for(var item in _2f0){
frag=_2f0[item];
if((frag)&&(typeof frag=="object")&&(frag!=_2f0.nodeRef)&&(frag!=_2f0["tagName"])){
comps=comps.concat(this.createComponents(frag,_2f1));
}
}
return comps;
};
this.parsePropertySets=function(_2f4){
return [];
var _2f5=[];
for(var item in _2f4){
if((_2f4[item]["tagName"]=="dojo:propertyset")){
_2f5.push(_2f4[item]);
}
}
this.propertySetsList.push(_2f5);
return _2f5;
};
this.parseProperties=function(_2f7){
var _2f8={};
for(var item in _2f7){
if((_2f7[item]==_2f7["tagName"])||(_2f7[item]==_2f7.nodeRef)){
}else{
if((_2f7[item]["tagName"])&&(dojo.widget.tags[_2f7[item].tagName.toLowerCase()])){
}else{
if((_2f7[item][0])&&(_2f7[item][0].value!="")&&(_2f7[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _2fa=this;
this.getDataProvider(_2fa,_2f7[item][0].value);
_2f8.dataProvider=this.dataProvider;
}
_2f8[item]=_2f7[item][0].value;
var _2fb=this.parseProperties(_2f7[item]);
for(var _2fc in _2fb){
_2f8[_2fc]=_2fb[_2fc];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _2f8;
};
this.getDataProvider=function(_2fd,_2fe){
dojo.io.bind({url:_2fe,load:function(type,_300){
if(type=="load"){
_2fd.dataProvider=_300;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_301){
for(var x=0;x<this.propertySetsList.length;x++){
if(_301==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_303){
var _304=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
if((cpcc)&&(propertySetId==cpcc[0].value)){
_304.push(cpl);
}
}
return _304;
};
this.getPropertySets=function(_308){
var ppl="dojo:propertyproviderlist";
var _30a=[];
var _30b=_308["tagName"];
if(_308[ppl]){
var _30c=_308[ppl].value.split(" ");
for(var _30d in _30c){
if((_30d.indexOf("..")==-1)&&(_30d.indexOf("://")==-1)){
var _30e=this.getPropertySetById(_30d);
if(_30e!=""){
_30a.push(_30e);
}
}else{
}
}
}
return (this.getPropertySetsByType(_30b)).concat(_30a);
};
this.createComponentFromScript=function(_30f,_310,_311){
var ltn="dojo:"+_310.toLowerCase();
if(dojo.widget.tags[ltn]){
_311.fastMixIn=true;
return [dojo.widget.tags[ltn](_311,this,null,null,_311)];
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_315,_316,_317){
var _318=name.toLowerCase();
var _319="dojo:"+_318;
var _31a=(dojo.byId(name)&&(!dojo.widget.tags[_319]));
if((arguments.length==1)&&((typeof name!="string")||(_31a))){
var xp=new dojo.xml.Parse();
var tn=(_31a)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_31d,name,_31f){
_31f[_319]={dojotype:[{value:_318}],nodeRef:_31d,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_31d,name,_31f,true);
}
if(typeof name!="string"&&typeof _315=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");
return fromScript(name,_315,_316);
}
_315=_315||{};
var _320=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_316){
_320=true;
_316=tn;
if(h){
document.body.appendChild(_316);
}
}else{
if(_317){
dojo.dom.insertAtPosition(tn,_316,_317);
}else{
tn=_316;
}
}
var _322=fromScript(tn,name,_315);
if(!_322||!_322[0]||typeof _322[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_320){
if(_322[0].domNode.parentNode){
_322[0].domNode.parentNode.removeChild(_322[0].domNode);
}
}
return _322[0];
};
dojo.widget.fromScript=function(name,_324,_325,_326){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_324,_325,_326);
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _32c=new dojo.uri.Uri(arguments[i].toString());
var _32d=new dojo.uri.Uri(uri.toString());
if(_32c.path==""&&_32c.scheme==null&&_32c.authority==null&&_32c.query==null){
if(_32c.fragment!=null){
_32d.fragment=_32c.fragment;
}
_32c=_32d;
}else{
if(_32c.scheme==null){
_32c.scheme=_32d.scheme;
if(_32c.authority==null){
_32c.authority=_32d.authority;
if(_32c.path.charAt(0)!="/"){
var path=_32d.path.substring(0,_32d.path.lastIndexOf("/")+1)+_32c.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;
}
}
}
}
_32c.path=segs.join("/");
}
}
}
}
uri="";
if(_32c.scheme!=null){
uri+=_32c.scheme+":";
}
if(_32c.authority!=null){
uri+="//"+_32c.authority;
}
uri+=_32c.path;
if(_32c.query!=null){
uri+="?"+_32c.query;
}
if(_32c.fragment!=null){
uri+="#"+_32c.fragment;
}
}
this.uri=uri.toString();
var _331="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_331));
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){
_331="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_331));
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.kwCompoundRequire({common:["dojo.uri.Uri",false,false]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.require("dojo.lang.func");
dojo.require("dojo.lang.extras");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_334,_335,_336,_337){
var _338=_334||obj.templatePath;
var _339=_335||obj.templateCssPath;
if(_338&&!(_338 instanceof dojo.uri.Uri)){
_338=dojo.uri.dojoUri(_338);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_339&&!(_339 instanceof dojo.uri.Uri)){
_339=dojo.uri.dojoUri(_339);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _33a=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _33b="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_33a[_33b]);
obj.widgetType=_33b;
}
var wt=obj.widgetType;
if(_339&&!dojo.widget._cssFiles[_339.toString()]){
if((!obj.templateCssString)&&(_339)){
obj.templateCssString=dojo.hostenv.getText(_339);
obj.templateCssPath=null;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_339);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
dojo.widget._cssFiles[_339.toString()]=true;
}
var ts=_33a[wt];
if(!ts){
_33a[wt]={"string":null,"node":null};
if(_337){
ts={};
}else{
ts=_33a[wt];
}
}
if((!obj.templateString)&&(!_337)){
obj.templateString=_336||ts["string"];
}
if((!obj.templateNode)&&(!_337)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_338)){
var _33e=dojo.hostenv.getText(_338);
if(_33e){
_33e=_33e.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _33f=_33e.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_33f){
_33e=_33f[1];
}
}else{
_33e="";
}
obj.templateString=_33e;
if(!_337){
_33a[wt]["string"]=_33e;
}
}
if((!ts["string"])&&(!_337)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_343){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_343);
}else{
node.setAttributeNS(this[ns].namespace,attr,this[ns].prefix+_343);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns].namespace,attr);
}
}};
dojo.widget.attachTemplateNodes=function(_347,_348,_349){
var _34a=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_347){
_347=_348.domNode;
}
if(_347.nodeType!=_34a){
return;
}
var _34c=_347.all||_347.getElementsByTagName("*");
var _34d=_348;
for(var x=-1;x<_34c.length;x++){
var _34f=(x==-1)?_347:_34c[x];
var _350=[];
for(var y=0;y<this.attachProperties.length;y++){
var _352=_34f.getAttribute(this.attachProperties[y]);
if(_352){
_350=_352.split(";");
for(var z=0;z<_350.length;z++){
if(dojo.lang.isArray(_348[_350[z]])){
_348[_350[z]].push(_34f);
}else{
_348[_350[z]]=_34f;
}
}
break;
}
}
var _354=_34f.getAttribute(this.templateProperty);
if(_354){
_348[_354]=_34f;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_34f.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_34f,wai.name,"role",val);
}else{
var _358=val.split("-");
dojo.widget.wai.setAttr(_34f,wai.name,_358[0],_358[1]);
}
}
},this);
var _359=_34f.getAttribute(this.eventAttachProperty);
if(_359){
var evts=_359.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _35b=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _35d=tevt.split(":");
tevt=trim(_35d[0]);
_35b=trim(_35d[1]);
}
if(!_35b){
_35b=tevt;
}
var tf=function(){
var ntf=new String(_35b);
return function(evt){
if(_34d[ntf]){
_34d[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_34f,tevt,tf,false,true);
}
}
for(var y=0;y<_349.length;y++){
var _361=_34f.getAttribute(_349[y]);
if((_361)&&(_361.length)){
var _35b=null;
var _362=_349[y].substr(4);
_35b=trim(_361);
var _363=[_35b];
if(_35b.indexOf(";")>=0){
_363=dojo.lang.map(_35b.split(";"),trim);
}
for(var z=0;z<_363.length;z++){
if(!_363[z].length){
continue;
}
var tf=function(){
var ntf=new String(_363[z]);
return function(evt){
if(_34d[ntf]){
_34d[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_34f,_362,tf,false,true);
}
}
}
var _366=_34f.getAttribute(this.onBuildProperty);
if(_366){
eval("var node = baseNode; var widget = targetObj; "+_366);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].legth<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,{initializer:function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_36e,_36f,pos,ref,_372){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_36e,_36f,pos,ref,_372);
this.registerChild(_36e,_372);
}
return _36e;
},addWidgetAsDirectChild:function(_373,_374,pos,ref,_377){
if((!this.containerNode)&&(!_374)){
this.containerNode=this.domNode;
}
var cn=(_374)?_374:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_377){
_377=0;
}
_373.domNode.setAttribute("dojoinsertionindex",_377);
if(!ref){
cn.appendChild(_373.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_373.domNode,ref.parentNode,_377);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_373.domNode);
}else{
dojo.dom.insertAtPosition(_373.domNode,cn,pos);
}
}
}
},registerChild:function(_379,_37a){
_379.dojoInsertionIndex=_37a;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_37a){
idx=i;
}
}
this.children.splice(idx+1,0,_379);
_379.parent=this;
_379.addedTo(this);
delete dojo.widget.manager.topWidgets[_379.widgetId];
},removeChild:function(_37d){
dojo.dom.removeNode(_37d.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_37d);
},getFragNodeRef:function(frag){
if(!frag||!frag["dojo:"+this.widgetType.toLowerCase()]){
dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);
},postInitialize:function(args,frag,_381){
var _382=this.getFragNodeRef(frag);
if(_381&&(_381.snarfChildDomOutput||!_382)){
_381.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_382);
}else{
if(_382){
if(this.domNode&&(this.domNode!==_382)){
var _383=_382.parentNode.replaceChild(this.domNode,_382);
}
}
}
if(_381){
_381.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _384=dojo.widget.getParser();
_384.createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _38a=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_38a=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_38a);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_38a)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _38c=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_38c=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_38c){
var hash=this.strings||{};
for(var key in dojo.widget.defaultStrings){
if(dojo.lang.isUndefined(hash[key])){
hash[key]=dojo.widget.defaultStrings[key];
}
}
for(var i=0;i<_38c.length;i++){
var key=_38c[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _393;
if((kval)||(dojo.lang.isString(kval))){
_393=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_38c[i],_393);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_38a){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_38c)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_38c){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes(this.domNode,this);
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_395,_396){
if(!_396){
_396=this;
}
return dojo.widget.attachTemplateNodes(_395,_396,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
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(_39d){
if(_39d){
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(_39e,_39f){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_39e).toRgb(),_39f);
}});
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,_3a2){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_3a2);
}
if(!_3a2){
_3a2=0;
}else{
if(_3a2>1){
_3a2=1;
}else{
if(_3a2<-1){
_3a2=-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*_3a2));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_3a8){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_3a8));
};
dojo.graphics.color.extractRGB=function(_3a9){
var hex="0123456789abcdef";
_3a9=_3a9.toLowerCase();
if(_3a9.indexOf("rgb")==0){
var _3ab=_3a9.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_3ab.splice(1,3);
return ret;
}else{
var _3ad=dojo.graphics.color.hex2rgb(_3a9);
if(_3ad){
return _3ad;
}else{
return dojo.graphics.color.named[_3a9]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _3af="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_3af+"]","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]=_3af.indexOf(rgb[i].charAt(0))*16+_3af.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.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 _3be=ds.getStyle(node,"-moz-box-sizing");
if(!_3be){
_3be=ds.getStyle(node,"box-sizing");
}
return (_3be?_3be:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_3c1,_3c2){
var s=ds.getComputedStyle(node,_3c1);
if((!s)||((s=="auto")&&(_3c2))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _3c4=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3c4){
return ds.getUnitValue.bad;
}
return {value:Number(_3c4[1]),units:_3c4[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_3c6,_3c7){
var _3c8=ds.getUnitValue(node,_3c6,_3c7);
if(isNaN(_3c8.value)){
return 0;
}
if((_3c8.value)&&(_3c8.units!="px")){
return NaN;
}
return _3c8.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,_3ca,_3cb){
if(isNaN(_3cb)){
return false;
}
node.style[_3ca]=Math.max(0,_3cb)+"px";
return true;
};
ds._sumPixelValues=function(node,_3cd,_3ce){
var _3cf=0;
for(var x=0;x<_3cd.length;x++){
_3cf+=ds.getPixelValue(node,_3cd[x],_3ce);
}
return _3cf;
};
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,_3e0){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3e0+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_3e0);
};
ds.setMarginBoxWidth=function(node,_3e2){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3e2-=ds.getPadBorderWidth(node);
}
_3e2-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_3e2);
};
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,_3eb){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3eb+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_3eb);
};
ds.setMarginBoxHeight=function(node,_3ed){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3ed-=ds.getPadBorderHeight(node);
}
_3ed-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_3ed);
};
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,_3ef){
node=dojo.byId(node);
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){
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");
}else{
if(node["offsetParent"]){
var _3f4;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_3f4=db;
}else{
_3f4=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!=_3f4)&&(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(_3ef){
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 _3fa=0;
while(node){
var val=node[prop];
if(val){
_3fa+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _3fa;
};
ds.getTotalOffset=function(node,type,_3fe){
return ds.abs(node,_3fe)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_400){
return ds.getTotalOffset(node,"left",_400);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_402){
return ds.getTotalOffset(node,"top",_402);
};
ds.styleSheet=null;
ds.insertCssRule=function(_403,_404,_405){
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){
_405=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_405=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_403+" { "+_404+" }";
return ds.styleSheet.insertRule(rule,_405);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_403,_404,_405);
}else{
return null;
}
}
};
ds.removeCssRule=function(_407){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_407){
_407=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_407);
}
}else{
if(document.styleSheets[0]){
if(!_407){
_407=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_407);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_40a){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _40b=dojo.hostenv.getText(URI);
_40b=ds.fixPathsInCssText(_40b,URI);
if(_40a){
var _40c=doc.getElementsByTagName("style");
var _40d="";
for(var i=0;i<_40c.length;i++){
_40d=(_40c[i].styleSheet&&_40c[i].styleSheet.cssText)?_40c[i].styleSheet.cssText:_40c[i].innerHTML;
if(_40b==_40d){
return;
}
}
}
var _40f=ds.insertCssText(_40b);
if(_40f&&djConfig.isDebug){
_40f.setAttribute("dbgHref",URI);
}
return _40f;
};
ds.insertCssText=function(_410,doc,URI){
if(!_410){
return;
}
if(!doc){
doc=document;
}
if(URI){
_410=ds.fixPathsInCssText(_410,URI);
}
var _413=doc.createElement("style");
_413.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(_413);
}
if(_413.styleSheet){
_413.styleSheet.cssText=_410;
}else{
var _415=doc.createTextNode(_410);
_413.appendChild(_415);
}
return _413;
};
ds.fixPathsInCssText=function(_416,URI){
if(!_416||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_416.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_416.slice(0,pos+4);
_416=_416.substring(pos+4,_416.length);
url+=_416.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_416=_416.substring(url.length-1,_416.length);
url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");
if(url.search(/(file|https?|ftps?):\/\//)==-1){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=url;
}
return str+_416;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _41c;
do{
_41c=ds.getStyle(node,"background-color");
if(_41c.toLowerCase()=="rgba(0, 0, 0, 0)"){
_41c="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_41c,["transparent",""]));
if(_41c=="transparent"){
_41c=[255,255,255,0];
}else{
_41c=dojo.graphics.color.extractRGB(_41c);
}
return _41c;
};
ds.getComputedStyle=function(node,_41e,_41f){
node=dojo.byId(node);
var _41e=ds.toSelectorCase(_41e);
var _420=ds.toCamelCase(_41e);
if(!node||!node.style){
return _41f;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_41e);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_41e);
}else{
return _41f;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_420];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_41e);
}else{
return _41f;
}
};
ds.getStyleProperty=function(node,_423){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_423)]:undefined);
};
ds.getStyle=function(node,_425){
var _426=ds.getStyleProperty(node,_425);
return (_426?_426:ds.getComputedStyle(node,_425));
};
ds.setStyle=function(node,_428,_429){
node=dojo.byId(node);
if(node&&node.style){
var _42a=ds.toCamelCase(_428);
node.style[_42a]=_429;
}
};
ds.toCamelCase=function(_42b){
var arr=_42b.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(_42e){
return _42e.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_430,_431){
node=dojo.byId(node);
if(!_431){
if(_430>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_430=0.999999;
}
}else{
if(_430<0){
_430=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="+_430*100+")";
}
}
node.style.filter="Alpha(Opacity="+_430*100+")";
}else{
if(h.moz){
node.style.opacity=_430;
node.style.MozOpacity=_430;
}else{
if(h.safari){
node.style.opacity=_430;
node.style.KhtmlOpacity=_430;
}else{
node.style.opacity=_430;
}
}
}
};
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,_439){
var _43a={"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 _43b=_439.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_43b.length;i++){
var _43d=_43b[i].split(":");
var name=_43d[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _43f=_43d[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_43a,name)){
_43a[name](node,_43f);
}else{
node.style[dojo.style.toCamelCase(name)]=_43f;
}
}
};
ds._toggle=function(node,_441,_442){
node=dojo.byId(node);
_442(node,!_441(node));
return _441(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,_447){
ds[(_447?"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,_44d){
ds.setStyle(node,"display",(dojo.lang.isString(_44d)?_44d:(_44d?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,_451){
ds.setStyle(node,"visibility",(dojo.lang.isString(_451)?_451:(_451?"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(_454,_455){
if(dojo.lang.isArray(_454)){
while(_454.length<4){
_454.push(0);
}
while(_454.length>4){
_454.pop();
}
var ret=_454;
}else{
var node=dojo.byId(_454);
var pos=ds.getAbsolutePosition(node,_455);
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.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,_45f,_460){
var out="";
for(var i=0;i<_45f;i++){
out+=str;
if(_460&&i<_45f-1){
out+=_460;
}
}
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.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(_46e){
_46e=dojo.byId(_46e)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_46e.style.MozUserSelect="none";
}else{
if(h.safari){
_46e.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_46e.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_470){
_470=dojo.byId(_470)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_470.style.MozUserSelect="";
}else{
if(h.safari){
_470.style.KhtmlUserSelect="";
}else{
if(h.ie){
_470.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_472){
_472=dojo.byId(_472);
if(document.selection&&document.body.createTextRange){
var _473=document.body.createTextRange();
_473.moveToElementText(_472);
_473.select();
}else{
if(window["getSelection"]){
var _474=window.getSelection();
if(_474["selectAllChildren"]){
_474.selectAllChildren(_472);
}
}
}
};
dojo.html.selectInputText=function(_475){
_475=dojo.byId(_475);
if(document.selection&&document.body.createTextRange){
var _476=_475.createTextRange();
_476.moveStart("character",0);
_476.moveEnd("character",_475.value.length);
_476.select();
}else{
if(window["getSelection"]){
var _477=window.getSelection();
_475.setSelectionRange(0,_475.value.length);
}
}
_475.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _478=window.getSelection();
if(dojo.lang.isString(_478)){
return _478=="";
}else{
return _478.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 _483=dojo.byId(node);
type=type.toLowerCase();
while((_483)&&(_483.nodeName.toLowerCase()!=type)){
if(_483==(document["body"]||document["documentElement"])){
return null;
}
_483=_483.parentNode;
}
return _483;
};
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,_48f){
return dojo.lang.inArray(dojo.html.getClasses(node),_48f);
};
dojo.html.prependClass=function(node,_491){
_491+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_491);
};
dojo.html.addClass=function(node,_493){
if(dojo.html.hasClass(node,_493)){
return false;
}
_493=dojo.string.trim(dojo.html.getClass(node)+" "+_493);
return dojo.html.setClass(node,_493);
};
dojo.html.setClass=function(node,_495){
node=dojo.byId(node);
var cs=new String(_495);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_495);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_498,_499){
var _498=dojo.string.trim(new String(_498));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_499){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_498)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_498){
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,_49e,_49f){
dojo.html.removeClass(node,_49f);
dojo.html.addClass(node,_49e);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_4a0,_4a1,_4a2,_4a3,_4a4){
_4a1=dojo.byId(_4a1)||document;
var _4a5=_4a0.split(/\s+/g);
var _4a6=[];
if(_4a3!=1&&_4a3!=2){
_4a3=0;
}
var _4a7=new RegExp("(\\s|^)(("+_4a5.join(")|(")+"))(\\s|$)");
var _4a8=[];
if(!_4a4&&document.evaluate){
var _4a9="//"+(_4a2||"*")+"[contains(";
if(_4a3!=dojo.html.classMatchType.ContainsAny){
_4a9+="concat(' ',@class,' '), ' "+_4a5.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_4a9+="concat(' ',@class,' '), ' "+_4a5.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _4aa=document.evaluate(_4a9,_4a1,null,XPathResult.ANY_TYPE,null);
var _4ab=_4aa.iterateNext();
while(_4ab){
try{
_4a8.push(_4ab);
_4ab=_4aa.iterateNext();
}
catch(e){
break;
}
}
return _4a8;
}else{
if(!_4a2){
_4a2="*";
}
_4a8=_4a1.getElementsByTagName(_4a2);
var node,i=0;
outer:
while(node=_4a8[i++]){
var _4ad=dojo.html.getClasses(node);
if(_4ad.length==0){
continue outer;
}
var _4ae=0;
for(var j=0;j<_4ad.length;j++){
if(_4a7.test(_4ad[j])){
if(_4a3==dojo.html.classMatchType.ContainsAny){
_4a6.push(node);
continue outer;
}else{
_4ae++;
}
}else{
if(_4a3==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_4ae==_4a5.length){
if((_4a3==dojo.html.classMatchType.IsOnly)&&(_4ae==_4ad.length)){
_4a6.push(node);
}else{
if(_4a3==dojo.html.classMatchType.ContainsAll){
_4a6.push(node);
}
}
}
}
return _4a6;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _4b1={x:0,y:0};
if(e.pageX||e.pageY){
_4b1.x=e.pageX;
_4b1.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_4b1.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_4b1.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _4b1;
};
dojo.html.overElement=function(_4b4,e){
_4b4=dojo.byId(_4b4);
var _4b6=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_4b4,true);
var _4b8=top+getInnerHeight(_4b4);
var left=getAbsoluteX(_4b4,true);
var _4ba=left+getInnerWidth(_4b4);
}
return (_4b6.x>=left&&_4b6.x<=_4ba&&_4b6.y>=top&&_4b6.y<=_4b8);
};
dojo.html.setActiveStyleSheet=function(_4bb){
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")==_4bb){
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(_4c2,_4c3){
if(dojo.lang.isUndefined(_4c3.style.cssText)){
_4c2.setAttribute("style",_4c3.getAttribute("style"));
}else{
_4c2.style.cssText=_4c3.style.cssText;
}
dojo.html.addClass(_4c2,dojo.html.getClass(_4c3));
};
dojo.html._callExtrasDeprecated=function(_4c4,args){
var _4c6="dojo.html.extras";
dojo.deprecated("dojo.html."+_4c4,"moved to "+_4c6,"0.4");
dojo["require"](_4c6);
return dojo.html[_4c4].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.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.substituteParams=function(_4c7,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _4c7.replace(/\%\{(\w+)\}/g,function(_4ca,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_4cd,_4ce){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _4cd){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_4cd[name]);
}
if(_4ce){
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 _4d2=str.split(" ");
for(var i=0;i<_4d2.length;i++){
_4d2[i]=_4d2[i].charAt(0).toUpperCase()+_4d2[i].substring(1);
}
return _4d2.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 _4d7=escape(str);
var _4d8,re=/%u([0-9A-F]{4})/i;
while((_4d8=_4d7.match(re))){
var num=Number("0x"+_4d8[1]);
var _4da=escape("&#"+num+";");
ret+=_4d7.substring(0,_4d8.index)+_4da;
_4d7=_4d7.substring(_4d8.index+_4d8[0].length);
}
ret+=_4d7.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,_4df){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_4df){
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,_4e8){
if(_4e8){
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,_4ec,_4ed){
if(_4ed){
str=str.toLowerCase();
_4ec=_4ec.toLowerCase();
}
return str.indexOf(_4ec)==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,_4f3){
if(_4f3=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_4f3=="\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,_4f5){
var _4f6=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_4f5){
_4f6.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_4f6.push(str.substr(prevcomma));
return _4f6;
};
dojo.require("dojo.html");
dojo.provide("dojo.html.extras");
dojo.require("dojo.string.extras");
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _4fa=dojo.html.getCursorPosition(e);
with(dojo.html){
var _4fb=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _4fc=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_4fa.x<_4fb?WEST:EAST)|(_4fa.y<_4fc?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _4fe="";
if(node==null){
return _4fe;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _500="unknown";
try{
_500=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_500){
case "block":
case "list-item":
case "run-in":
case "table":
case "table-row-group":
case "table-header-group":
case "table-footer-group":
case "table-row":
case "table-column-group":
case "table-column":
case "table-cell":
case "table-caption":
_4fe+="\n";
_4fe+=dojo.html.renderedTextContent(node.childNodes[i]);
_4fe+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_4fe+="\n";
}else{
_4fe+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _502="unknown";
try{
_502=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_502){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_502){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_4fe)){
text.replace(/^\s/,"");
}
break;
}
_4fe+=text;
break;
default:
break;
}
}
return _4fe;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
dojo.html.body().appendChild(tn);
var _506="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_506="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_506="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_506="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _507=null;
switch(_506){
case "cell":
_507=tn.getElementsByTagName("tr")[0];
break;
case "row":
_507=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_507=tn.getElementsByTagName("table")[0];
break;
default:
_507=tn;
break;
}
var _508=[];
for(var x=0;x<_507.childNodes.length;x++){
_508.push(_507.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.body().removeChild(tn);
return _508;
};
dojo.html.placeOnScreen=function(node,_50b,_50c,_50d,_50e){
if(dojo.lang.isArray(_50b)){
_50e=_50d;
_50d=_50c;
_50c=_50b[1];
_50b=_50b[0];
}
if(!isNaN(_50d)){
_50d=[Number(_50d),Number(_50d)];
}else{
if(!dojo.lang.isArray(_50d)){
_50d=[0,0];
}
}
var _50f=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_50d[0];
var h=node.offsetHeight+_50d[1];
if(_50e){
_50b-=_50f.x;
_50c-=_50f.y;
}
var x=_50b+w;
if(x>view.w){
x=view.w-w;
}else{
x=_50b;
}
x=Math.max(_50d[0],x)+_50f.x;
var y=_50c+h;
if(y>view.h){
y=view.h-h;
}else{
y=_50c;
}
y=Math.max(_50d[1],y)+_50f.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.placeOnScreenPoint=function(node,_517,_518,_519,_51a){
if(dojo.lang.isArray(_517)){
_51a=_519;
_519=_518;
_518=_517[1];
_517=_517[0];
}
if(!isNaN(_519)){
_519=[Number(_519),Number(_519)];
}else{
if(!dojo.lang.isArray(_519)){
_519=[0,0];
}
}
var _51b=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _51d=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_51d;
if(_51a){
_517-=_51b.x;
_518-=_51b.y;
}
var x=-1,y=-1;
if((_517+_519[0])+w<=view.w&&(_518+_519[1])+h<=view.h){
x=(_517+_519[0]);
y=(_518+_519[1]);
}
if((x<0||y<0)&&(_517-_519[0])<=view.w&&(_518+_519[1])+h<=view.h){
x=(_517-_519[0])-w;
y=(_518+_519[1]);
}
if((x<0||y<0)&&(_517+_519[0])+w<=view.w&&(_518-_519[1])<=view.h){
x=(_517+_519[0]);
y=(_518-_519[1])-h;
}
if((x<0||y<0)&&(_517-_519[0])<=view.w&&(_518-_519[1])<=view.h){
x=(_517-_519[0])-w;
y=(_518-_519[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_517,_518,_519,_51a);
}
x+=_51b.x;
y+=_51b.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=document.createElement(html);
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.html.body().appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentElement){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _528=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_528.w+"px";
s.height=_528.h+"px";
s.left=_528.x+"px";
s.top=_528.y+"px";
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(!this.iframe){
return;
}
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.require("dojo.lang.func");
dojo.lfx.Line=function(_52c,end){
this.start=_52c;
this.end=end;
if(dojo.lang.isArray(_52c)){
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-_52c;
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(_53b,_53c,_53d,_53e,_53f,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_53b)||(!_53b&&_53c.getValue)){
rate=_53f;
_53f=_53e;
_53e=_53d;
_53d=_53c;
_53c=_53b;
_53b=null;
}else{
if(_53b.getValue||dojo.lang.isArray(_53b)){
rate=_53e;
_53f=_53d;
_53e=_53c;
_53d=_53b;
_53c=null;
_53b=null;
}
}
if(dojo.lang.isArray(_53d)){
this.curve=new dojo.lfx.Line(_53d[0],_53d[1]);
}else{
this.curve=_53d;
}
if(_53c!=null&&_53c>0){
this.duration=_53c;
}
if(_53f){
this.repeatCount=_53f;
}
if(rate){
this.rate=rate;
}
if(_53b){
this.handler=_53b.handler;
this.beforeBegin=_53b.beforeBegin;
this.onBegin=_53b.onBegin;
this.onEnd=_53b.onEnd;
this.onPlay=_53b.onPlay;
this.onPause=_53b.onPause;
this.onStop=_53b.onStop;
this.onAnimate=_53b.onAnimate;
}
if(_53e&&dojo.lang.isFunction(_53e)){
this.easing=_53e;
}
};
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(_541,_542){
if(_542){
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(_541>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_542);
}),_541);
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 _544=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_544]);
this.fire("onBegin",[_544]);
}
this.fire("handler",["play",_544]);
this.fire("onPlay",[_544]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _545=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_545]);
this.fire("onPause",[_545]);
return this;
},gotoPercent:function(pct,_547){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_547){
this.play();
}
},stop:function(_548){
clearTimeout(this._timer);
var step=this._percent/100;
if(_548){
step=1;
}
var _54a=this.curve.getValue(step);
this.fire("handler",["stop",_54a]);
this.fire("onStop",[_54a]);
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 _54d=this.curve.getValue(step);
this.fire("handler",["animate",_54d]);
this.fire("onAnimate",[_54d]);
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 _54e=arguments;
if(_54e.length==1&&(dojo.lang.isArray(_54e[0])||dojo.lang.isArrayLike(_54e[0]))){
_54e=_54e[0];
}
var _54f=this;
dojo.lang.forEach(_54e,function(anim){
_54f._anims.push(anim);
var _551=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_551();
_54f._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_552,_553){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_552>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_553);
}),_552);
return this;
}
if(_553||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_553);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_554){
this.fire("onStop");
this._animsCall("stop",_554);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_555){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _558=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_555](args);
},_558);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _55a=arguments;
if(_55a.length==1&&(dojo.lang.isArray(_55a[0])||dojo.lang.isArrayLike(_55a[0]))){
_55a=_55a[0];
}
var _55b=this;
dojo.lang.forEach(_55a,function(anim,i,_55e){
_55b._anims.push(anim);
var _55f=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_55e.length-1){
anim.onEnd=function(){
_55f();
_55b._playNext();
};
}else{
anim.onEnd=function(){
_55f();
_55b.fire("onEnd");
};
}
},_55b);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_560,_561){
if(!this._anims.length){
return this;
}
if(_561||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _562=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_560>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_561);
}),_560);
return this;
}
if(_562){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_562.play(null,_561);
}
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 _563=this._anims[this._currAnim];
if(_563){
if(!_563._active||_563._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _564=this._anims[this._currAnim];
if(_564){
_564.stop();
this.fire("onStop",[this._currAnim]);
}
return _564;
},_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 _565=arguments;
if(dojo.lang.isArray(arguments[0])){
_565=arguments[0];
}
return new dojo.lfx.Combine(_565);
};
dojo.lfx.chain=function(){
var _566=arguments;
if(dojo.lang.isArray(arguments[0])){
_566=arguments[0];
}
return new dojo.lfx.Chain(_566);
};
dojo.provide("dojo.lfx.html");
dojo.require("dojo.lfx.Animation");
dojo.require("dojo.html");
dojo.lfx.html._byId=function(_567){
if(!_567){
return [];
}
if(dojo.lang.isArray(_567)){
if(!_567.alreadyChecked){
var n=[];
dojo.lang.forEach(_567,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _567;
}
}else{
var n=[];
n.push(dojo.byId(_567));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_56a,_56b,_56c,_56d){
_56a=dojo.lfx.html._byId(_56a);
if(_56a.length==1){
dojo.lang.forEach(_56b,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_56a[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_56a[0]);
}
}
});
}
var _56f=function(_570){
var _571=new Array(_570.length);
for(var i=0;i<_570.length;i++){
_571[i]=Math.round(_570[i]);
}
return _571;
};
var _573=function(n,_575){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _575){
if(s=="opacity"){
dojo.style.setOpacity(n,_575[s]);
}else{
n.style[s]=_575[s];
}
}
};
var _577=function(_578){
this._properties=_578;
this.diffs=new Array(_578.length);
dojo.lang.forEach(_578,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 _57f=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_57f=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_57f+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_57f+=")";
}else{
_57f=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_57f;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_582){
dojo.lang.forEach(_56a,function(node){
_573(node,_582);
});
}},_56c,new _577(_56b),_56d);
return anim;
};
dojo.lfx.html._makeFadeable=function(_584){
var _585=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(_584)){
dojo.lang.forEach(_584,_585);
}else{
_585(_584);
}
};
dojo.lfx.html.fadeIn=function(_587,_588,_589,_58a){
_587=dojo.lfx.html._byId(_587);
dojo.lfx.html._makeFadeable(_587);
var anim=dojo.lfx.propertyAnimation(_587,[{property:"opacity",start:dojo.style.getOpacity(_587[0]),end:1}],_588,_589);
if(_58a){
var _58c=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_58c();
_58a(_587,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_58d,_58e,_58f,_590){
_58d=dojo.lfx.html._byId(_58d);
dojo.lfx.html._makeFadeable(_58d);
var anim=dojo.lfx.propertyAnimation(_58d,[{property:"opacity",start:dojo.style.getOpacity(_58d[0]),end:0}],_58e,_58f);
if(_590){
var _592=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_592();
_590(_58d,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_593,_594,_595,_596){
var anim=dojo.lfx.html.fadeIn(_593,_594,_595,_596);
var _598=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_598();
if(dojo.lang.isArrayLike(_593)){
dojo.lang.forEach(_593,dojo.style.show);
}else{
dojo.style.show(_593);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_599,_59a,_59b,_59c){
var anim=dojo.lfx.html.fadeOut(_599,_59a,_59b,function(){
if(dojo.lang.isArrayLike(_599)){
dojo.lang.forEach(_599,dojo.style.hide);
}else{
dojo.style.hide(_599);
}
if(_59c){
_59c(_599,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_59e,_59f,_5a0,_5a1){
_59e=dojo.lfx.html._byId(_59e);
var _5a2=[];
dojo.lang.forEach(_59e,function(node){
var _5a4=dojo.style.getStyle(node,"overflow");
if(_5a4=="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}],_59f,_5a0);
var _5a6=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5a6();
node.style.overflow=_5a4;
node.style.height="auto";
if(_5a1){
_5a1(node,anim);
}
};
_5a2.push(anim);
});
if(_59e.length>1){
return dojo.lfx.combine(_5a2);
}else{
return _5a2[0];
}
};
dojo.lfx.html.wipeOut=function(_5a7,_5a8,_5a9,_5aa){
_5a7=dojo.lfx.html._byId(_5a7);
var _5ab=[];
dojo.lang.forEach(_5a7,function(node){
var _5ad=dojo.style.getStyle(node,"overflow");
if(_5ad=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_5a8,_5a9);
var _5af=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5af();
dojo.style.hide(node);
node.style.overflow=_5ad;
if(_5aa){
_5aa(node,anim);
}
};
_5ab.push(anim);
});
if(_5a7.length>1){
return dojo.lfx.combine(_5ab);
}else{
return _5ab[0];
}
};
dojo.lfx.html.slideTo=function(_5b0,_5b1,_5b2,_5b3,_5b4){
_5b0=dojo.lfx.html._byId(_5b0);
var _5b5=[];
dojo.lang.forEach(_5b0,function(node){
var top=null;
var left=null;
var init=(function(){
var _5ba=node;
return function(){
var pos=dojo.style.getComputedStyle(_5ba,"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(_5ba,true);
dojo.style.setStyleAttributes(_5ba,"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:_5b1[0]},{property:"left",start:left,end:_5b1[1]}],_5b2,_5b3);
var _5be=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_5be();
init();
};
if(_5b4){
var _5bf=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5bf();
_5b4(_5b0,anim);
};
}
_5b5.push(anim);
});
if(_5b0.length>1){
return dojo.lfx.combine(_5b5);
}else{
return _5b5[0];
}
};
dojo.lfx.html.slideBy=function(_5c0,_5c1,_5c2,_5c3,_5c4){
_5c0=dojo.lfx.html._byId(_5c0);
var _5c5=[];
dojo.lang.forEach(_5c0,function(node){
var top=null;
var left=null;
var init=(function(){
var _5ca=node;
return function(){
var pos=dojo.style.getComputedStyle(_5ca,"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(_5ca,true);
dojo.style.setStyleAttributes(_5ca,"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+_5c1[0]},{property:"left",start:left,end:left+_5c1[1]}],_5c2,_5c3);
var _5ce=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_5ce();
init();
};
if(_5c4){
var _5cf=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5cf();
_5c4(_5c0,anim);
};
}
_5c5.push(anim);
});
if(_5c0.length>1){
return dojo.lfx.combine(_5c5);
}else{
return _5c5[0];
}
};
dojo.lfx.html.explode=function(_5d0,_5d1,_5d2,_5d3,_5d4){
_5d0=dojo.byId(_5d0);
_5d1=dojo.byId(_5d1);
var _5d5=dojo.style.toCoordinateArray(_5d0,true);
var _5d6=document.createElement("div");
dojo.html.copyStyle(_5d6,_5d1);
with(_5d6.style){
position="absolute";
display="none";
}
dojo.html.body().appendChild(_5d6);
with(_5d1.style){
visibility="hidden";
display="block";
}
var _5d7=dojo.style.toCoordinateArray(_5d1,true);
with(_5d1.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_5d6,[{property:"height",start:_5d5[3],end:_5d7[3]},{property:"width",start:_5d5[2],end:_5d7[2]},{property:"top",start:_5d5[1],end:_5d7[1]},{property:"left",start:_5d5[0],end:_5d7[0]},{property:"opacity",start:0.3,end:1}],_5d2,_5d3);
anim.beforeBegin=function(){
dojo.style.setDisplay(_5d6,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_5d1,"block");
_5d6.parentNode.removeChild(_5d6);
};
if(_5d4){
var _5d9=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5d9();
_5d4(_5d1,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_5da,end,_5dc,_5dd,_5de){
_5da=dojo.byId(_5da);
end=dojo.byId(end);
var _5df=dojo.style.toCoordinateArray(_5da,true);
var _5e0=dojo.style.toCoordinateArray(end,true);
var _5e1=document.createElement("div");
dojo.html.copyStyle(_5e1,_5da);
dojo.style.setOpacity(_5e1,0.3);
with(_5e1.style){
position="absolute";
display="none";
}
dojo.html.body().appendChild(_5e1);
var anim=new dojo.lfx.propertyAnimation(_5e1,[{property:"height",start:_5df[3],end:_5e0[3]},{property:"width",start:_5df[2],end:_5e0[2]},{property:"top",start:_5df[1],end:_5e0[1]},{property:"left",start:_5df[0],end:_5e0[0]},{property:"opacity",start:1,end:0.3}],_5dc,_5dd);
anim.beforeBegin=function(){
dojo.style.hide(_5da);
dojo.style.show(_5e1);
};
anim.onEnd=function(){
_5e1.parentNode.removeChild(_5e1);
};
if(_5de){
var _5e3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5e3();
_5de(_5da,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_5e4,_5e5,_5e6,_5e7,_5e8){
_5e4=dojo.lfx.html._byId(_5e4);
var _5e9=[];
dojo.lang.forEach(_5e4,function(node){
var _5eb=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _5ed=dojo.style.getStyle(node,"background-image");
var _5ee=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_5eb.length>3){
_5eb.pop();
}
var rgb=new dojo.graphics.color.Color(_5e5);
var _5f0=new dojo.graphics.color.Color(_5eb);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_5f0}],_5e6,_5e7);
var _5f2=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_5f2();
if(_5ed){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _5f3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_5f3();
if(_5ed){
node.style.backgroundImage=_5ed;
}
if(_5ee){
node.style.backgroundColor="transparent";
}
if(_5e8){
_5e8(node,anim);
}
};
_5e9.push(anim);
});
if(_5e4.length>1){
return dojo.lfx.combine(_5e9);
}else{
return _5e9[0];
}
};
dojo.lfx.html.unhighlight=function(_5f4,_5f5,_5f6,_5f7,_5f8){
_5f4=dojo.lfx.html._byId(_5f4);
var _5f9=[];
dojo.lang.forEach(_5f4,function(node){
var _5fb=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_5f5);
var _5fd=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_5fb,end:rgb}],_5f6,_5f7);
var _5ff=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_5ff();
if(_5fd){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_5fb.toRgb().join(",")+")";
};
var _600=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_600();
if(_5f8){
_5f8(node,anim);
}
};
_5f9.push(anim);
});
if(_5f4.length>1){
return dojo.lfx.combine(_5f9);
}else{
return _5f9[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.lfx.toggle");
dojo.require("dojo.lfx.*");
dojo.lfx.toggle.plain={show:function(node,_602,_603,_604){
dojo.style.show(node);
if(dojo.lang.isFunction(_604)){
_604();
}
},hide:function(node,_606,_607,_608){
dojo.style.hide(node);
if(dojo.lang.isFunction(_608)){
_608();
}
}};
dojo.lfx.toggle.fade={show:function(node,_60a,_60b,_60c){
dojo.lfx.fadeShow(node,_60a,_60b,_60c).play();
},hide:function(node,_60e,_60f,_610){
dojo.lfx.fadeHide(node,_60e,_60f,_610).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_612,_613,_614){
dojo.lfx.wipeIn(node,_612,_613,_614).play();
},hide:function(node,_616,_617,_618){
dojo.lfx.wipeOut(node,_616,_617,_618).play();
}};
dojo.lfx.toggle.explode={show:function(node,_61a,_61b,_61c,_61d){
dojo.lfx.explode(_61d||[0,0,0,0],node,_61a,_61b,_61c).play();
},hide:function(node,_61f,_620,_621,_622){
dojo.lfx.implode(node,_622||[0,0,0,0],_61f,_620,_621).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.DomWidget");
dojo.require("dojo.html");
dojo.require("dojo.html.extras");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lang.func");
dojo.require("dojo.lfx.toggle");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_627){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_62b){
try{
if(!_62b){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.style.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
this.animationInProgress=true;
this.isHidden=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
w=w||dojo.style.getOuterWidth(this.domNode);
h=h||dojo.style.getOuterHeight(this.domNode);
if(this.width==w&&this.height==h){
return false;
}
this.width=w;
this.height=h;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
if(!this._isResized(w,h)){
return;
}
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_630){
_630.checkSize();
});
}});
dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});
dojo.provide("dojo.widget.*");
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,_632,_633,_634){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_632){
this.mimetype=_632;
}
if(_633){
this.transport=_633;
}
if(arguments.length>=4){
this.changeUrl=_634;
}
}
};
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,_639){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_63b){
if(_63b["url"]){
_63b.url=_63b.url.toString();
}
if(_63b["formNode"]){
_63b.formNode=dojo.byId(_63b.formNode);
}
if(!_63b["method"]&&_63b["formNode"]&&_63b["formNode"].method){
_63b.method=_63b["formNode"].method;
}
if(!_63b["handle"]&&_63b["handler"]){
_63b.handle=_63b.handler;
}
if(!_63b["load"]&&_63b["loaded"]){
_63b.load=_63b.loaded;
}
if(!_63b["changeUrl"]&&_63b["changeURL"]){
_63b.changeUrl=_63b.changeURL;
}
_63b.encoding=dojo.lang.firstValued(_63b["encoding"],djConfig["bindEncoding"],"");
_63b.sendTransport=dojo.lang.firstValued(_63b["sendTransport"],djConfig["ioSendTransport"],false);
var _63c=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_63c(_63b[fn])){
continue;
}
if(_63c(_63b["handle"])){
_63b[fn]=_63b.handle;
}
}
dojo.lang.mixin(this,_63b);
}});
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(_643){
if(!(_643 instanceof dojo.io.Request)){
try{
_643=new dojo.io.Request(_643);
}
catch(e){
dojo.debug(e);
}
}
var _644="";
if(_643["transport"]){
_644=_643["transport"];
if(!this[_644]){
return _643;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_643))){
_644=tmp;
}
}
if(_644==""){
return _643;
}
}
this[_644].bind(_643);
_643.bindSuccess=true;
return _643;
};
dojo.io.queueBind=function(_647){
if(!(_647 instanceof dojo.io.Request)){
try{
_647=new dojo.io.Request(_647);
}
catch(e){
dojo.debug(e);
}
}
var _648=_647.load;
_647.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_648.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _64a=_647.error;
_647.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_64a.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_647);
dojo.io._dispatchNextQueueBind();
return _647;
};
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,_64d,last){
var enc=/utf/i.test(_64d||"")?encodeURIComponent:dojo.string.encodeAscii;
var _650=[];
var _651=new Object();
for(var name in map){
var _653=function(elt){
var val=enc(name)+"="+enc(elt);
_650[(last==name)?"push":"unshift"](val);
};
if(!_651[name]){
var _656=map[name];
if(dojo.lang.isArray(_656)){
dojo.lang.forEach(_656,_653);
}else{
_653(_656);
}
}
}
return _650.join("&");
};
dojo.io.setIFrameSrc=function(_657,src,_659){
try{
var r=dojo.render.html;
if(!_659){
if(r.safari){
_657.location=src;
}else{
frames[_657.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_657.contentWindow.document;
}else{
if(r.safari){
idoc=_657.document;
}else{
idoc=_657.contentWindow;
}
}
if(!idoc){
_657.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
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 _660=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_662){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_660.apply(this,[_662]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _663=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_665){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_663){
_663.apply(this,[_665]);
}
};
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,_668){
if(!dojo.render.html.opera){
var _669=this._getUrlQuery(_668.href);
if(_669==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_669==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_669==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _66a=this.historyStack.pop();
if(!_66a){
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(_66a);
},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 _66e=url.split("?");
if(_66e.length<2){
return null;
}else{
return _66e[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 _670=false;
var _671=node.getElementsByTagName("input");
dojo.lang.forEach(_671,function(_672){
if(_670){
return;
}
if(_672.getAttribute("type")=="file"){
_670=true;
}
});
return _670;
};
dojo.io.formHasFile=function(_673){
return dojo.io.checkChildrenForFile(_673);
};
dojo.io.updateNode=function(node,_675){
node=dojo.byId(node);
var args=_675;
if(dojo.lang.isString(_675)){
args={url:_675};
}
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(_67c,_67d,_67e){
if((!_67c)||(!_67c.tagName)||(!_67c.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_67e){
_67e=dojo.io.formFilter;
}
var enc=/utf/i.test(_67d||"")?encodeURIComponent:dojo.string.encodeAscii;
var _680=[];
for(var i=0;i<_67c.elements.length;i++){
var elm=_67c.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_67e(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){
_680.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_680.push(name+"="+enc(elm.value));
}
}else{
_680.push(name+"="+enc(elm.value));
}
}
}
var _686=_67c.getElementsByTagName("input");
for(var i=0;i<_686.length;i++){
var _687=_686[i];
if(_687.type.toLowerCase()=="image"&&_687.form==_67c&&_67e(_687)){
var name=enc(_687.name);
_680.push(name+"="+enc(_687.value));
_680.push(name+".x=0");
_680.push(name+".y=0");
}
}
return _680.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 _68d=form.getElementsByTagName("input");
for(var i=0;i<_68d.length;i++){
var _68e=_68d[i];
if(_68e.type.toLowerCase()=="image"&&_68e.form==form){
this.connect(_68e,"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 _695=false;
if(node.disabled||!node.name){
_695=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_695=node==this.clickedButton;
}else{
_695=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _695;
},connect:function(_696,_697,_698){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_696,_697,this,_698);
}else{
var fcn=dojo.lang.hitch(this,_698);
_696[_697]=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 _69b=this;
var _69c={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_69e,_69f){
return url+"|"+_69e+"|"+_69f.toLowerCase();
}
function addToCache(url,_6a1,_6a2,http){
_69c[getCacheKey(url,_6a1,_6a2)]=http;
}
function getFromCache(url,_6a5,_6a6){
return _69c[getCacheKey(url,_6a5,_6a6)];
}
this.clearCache=function(){
_69c={};
};
function doLoad(_6a7,http,url,_6aa,_6ab){
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(_6a7.method.toLowerCase()=="head"){
var _6ad=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _6ad;
};
var _6ae=_6ad.split(/[\r\n]+/g);
for(var i=0;i<_6ae.length;i++){
var pair=_6ae[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_6a7.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_6a7.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_6a7.mimetype=="application/xml")||(_6a7.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(_6ab){
addToCache(url,_6aa,_6a7.method,http);
}
_6a7[(typeof _6a7.load=="function")?"load":"handle"]("load",ret,http,_6a7);
}else{
var _6b1=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_6a7[(typeof _6a7.error=="function")?"error":"handle"]("error",_6b1,http,_6a7);
}
}
function setHeaders(http,_6b3){
if(_6b3["headers"]){
for(var _6b4 in _6b3["headers"]){
if(_6b4.toLowerCase()=="content-type"&&!_6b3["contentType"]){
_6b3["contentType"]=_6b3["headers"][_6b4];
}else{
http.setRequestHeader(_6b4,_6b3["headers"][_6b4]);
}
}
}
}
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 _6b8=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_6b9){
return _6b8&&dojo.lang.inArray((_6b9["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_6b9["formNode"]&&dojo.io.formHasFile(_6b9["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_6ba){
if(!_6ba["url"]){
if(!_6ba["formNode"]&&(_6ba["backButton"]||_6ba["back"]||_6ba["changeUrl"]||_6ba["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(_6ba);
return true;
}
}
var url=_6ba.url;
var _6bc="";
if(_6ba["formNode"]){
var ta=_6ba.formNode.getAttribute("action");
if((ta)&&(!_6ba["url"])){
url=ta;
}
var tp=_6ba.formNode.getAttribute("method");
if((tp)&&(!_6ba["method"])){
_6ba.method=tp;
}
_6bc+=dojo.io.encodeForm(_6ba.formNode,_6ba.encoding,_6ba["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_6ba["file"]){
_6ba.method="post";
}
if(!_6ba["method"]){
_6ba.method="get";
}
if(_6ba.method.toLowerCase()=="get"){
_6ba.multipart=false;
}else{
if(_6ba["file"]){
_6ba.multipart=true;
}else{
if(!_6ba["multipart"]){
_6ba.multipart=false;
}
}
}
if(_6ba["backButton"]||_6ba["back"]||_6ba["changeUrl"]){
dojo.undo.browser.addToHistory(_6ba);
}
var _6bf=_6ba["content"]||{};
if(_6ba.sendTransport){
_6bf["dojo.transport"]="xmlhttp";
}
do{
if(_6ba.postContent){
_6bc=_6ba.postContent;
break;
}
if(_6bf){
_6bc+=dojo.io.argsFromMap(_6bf,_6ba.encoding);
}
if(_6ba.method.toLowerCase()=="get"||!_6ba.multipart){
break;
}
var t=[];
if(_6bc.length){
var q=_6bc.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(_6ba.file){
if(dojo.lang.isArray(_6ba.file)){
for(var i=0;i<_6ba.file.length;++i){
var o=_6ba.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=_6ba.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+"--","");
_6bc=t.join("\r\n");
}
}while(false);
var _6c5=_6ba["sync"]?false:true;
var _6c6=_6ba["preventCache"]||(this.preventCache==true&&_6ba["preventCache"]!=false);
var _6c7=_6ba["useCache"]==true||(this.useCache==true&&_6ba["useCache"]!=false);
if(!_6c6&&_6c7){
var _6c8=getFromCache(url,_6bc,_6ba.method);
if(_6c8){
doLoad(_6ba,_6c8,url,_6bc,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_6ba);
var _6ca=false;
if(_6c5){
var _6cb=this.inFlight.push({"req":_6ba,"http":http,"url":url,"query":_6bc,"useCache":_6c7,"startTime":_6ba.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_6ba.method.toLowerCase()=="post"){
http.open("POST",url,_6c5);
setHeaders(http,_6ba);
http.setRequestHeader("Content-Type",_6ba.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_6ba.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_6bc);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_6ba,{status:404},url,_6bc,_6c7);
}
}else{
var _6cc=url;
if(_6bc!=""){
_6cc+=(_6cc.indexOf("?")>-1?"&":"?")+_6bc;
}
if(_6c6){
_6cc+=(dojo.string.endsWithAny(_6cc,"?","&")?"":(_6cc.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_6ba.method.toUpperCase(),_6cc,_6c5);
setHeaders(http,_6ba);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_6ba,{status:404},url,_6bc,_6c7);
}
}
if(!_6c5){
doLoad(_6ba,http,url,_6bc,_6c7);
}
_6ba.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_6ce,days,path,_6d1,_6d2){
var _6d3=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_6d3=d.toGMTString();
}
_6ce=escape(_6ce);
document.cookie=name+"="+_6ce+";"+(_6d3!=-1?" expires="+_6d3+";":"")+(path?"path="+path:"")+(_6d1?"; domain="+_6d1:"")+(_6d2?"; 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 _6d7=document.cookie.substring(idx+name.length+1);
var end=_6d7.indexOf(";");
if(end==-1){
end=_6d7.length;
}
_6d7=_6d7.substring(0,end);
_6d7=unescape(_6d7);
return _6d7;
};
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,_6de,_6df,_6e0){
if(arguments.length==5){
_6e0=_6de;
_6de=null;
_6df=null;
}
var _6e1=[],cookie,value="";
if(!_6e0){
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){
_6e1.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_6e1.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_6de,_6df);
};
dojo.io.cookie.getObjectCookie=function(name){
var _6e4=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_6e4={};
var _6e5=cookie.split("&");
for(var i=0;i<_6e5.length;i++){
var pair=_6e5[i].split("=");
var _6e8=pair[1];
if(isNaN(_6e8)){
_6e8=unescape(pair[1]);
}
_6e4[unescape(pair[0])]=_6e8;
}
}
return _6e4;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _6e9=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_6e9=="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.*");


