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:3,patch:1,flag:"",revision:Number("$Rev: 4342 $".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(_c,_d){
if(typeof _c!="string"){
return dj_global;
}
if(_c.indexOf(".")==-1){
return dojo.evalProp(_c,dj_global,_d);
}
var _e=dojo.parseObjPath(_c,dj_global,_d);
if(_e){
return dojo.evalProp(_e.prop,_e.obj,_d);
}
return null;
};
dojo.errorToString=function(_f){
if(!dj_undef("message",_f)){
return _f.message;
}else{
if(!dj_undef("description",_f)){
return _f.description;
}else{
return _f;
}
}
};
dojo.raise=function(_10,_11){
if(_11){
_10=_10+": "+dojo.errorToString(_11);
}
try{
dojo.hostenv.println("FATAL: "+_10);
}
catch(e){
}
throw Error(_10);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_12){
return dj_global.eval?dj_global.eval(_12):eval(_12);
};
dojo.unimplemented=function(_13,_14){
var _15="'"+_13+"' not implemented";
if(_14!=null){
_15+=" "+_14;
}
dojo.raise(_15);
};
dojo.deprecated=function(_16,_17,_18){
var _19="DEPRECATED: "+_16;
if(_17){
_19+=" "+_17;
}
if(_18){
_19+=" -- will be removed in version: "+_18;
}
dojo.debug(_19);
};
dojo.inherits=function(_1a,_1b){
if(typeof _1b!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_1b+"] must be a function (subclass: ["+_1a+"']");
}
_1a.prototype=new _1b();
_1a.prototype.constructor=_1a;
_1a.superclass=_1b.prototype;
_1a["super"]=_1b.prototype;
};
dojo.render=(function(){
function _1c(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var _1f in _1e){
tmp[_1f]=false;
}
return tmp;
};
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:_1c(["html"],["ie","opera","khtml","safari","moz"]),svg:_1c(["svg"],["corel","adobe","batik"]),vml:_1c(["vml"],["ie"]),swf:_1c(["Swf","Flash","Mm"],["mm"]),swt:_1c(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _20={isDebug:true,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_20;
}else{
for(var _21 in _20){
if(typeof djConfig[_21]=="undefined"){
djConfig[_21]=_20[_21];
}
}
}
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 _22=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _23={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_24,_25){
this.modulePrefixes_[_24]={name:_24,value:_25};
},getModulePrefix:function(_26){
var mp=this.modulePrefixes_;
if((mp[_26])&&(mp[_26]["name"])){
return mp[_26].value;
}
return _26;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _27 in _23){
dojo.hostenv[_27]=_23[_27];
}
})();
dojo.hostenv.loadPath=function(_28,_29,cb){
var uri;
if((_28.charAt(0)=="/")||(_28.match(/^\w+:/))){
uri=_28;
}else{
uri=this.getBaseScriptUri()+_28;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
if(dojo.render.html.moz){
return ((!_29)?dojoSSN._loadUri(uri,cb,true,dj_global):this.loadUriAndCheck(uri,_29,cb));
}else{
return ((!_29)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_29,cb));
}
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _2a=this.getText(uri,null,true);
if(_2a==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_2a="("+_2a+")";
}
var _2b=dj_eval(_2a);
if(cb){
cb(_2b);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_2c,cb){
var ok=true;
try{
if(dojo.render.html.moz){
ok=dojoSSN._loadUri(uri,cb,true,dj_global);
}else{
ok=this.loadUri(uri,cb);
}
}
catch(e){
dojo.raise("in dojo 0.3, failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_2c,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,_2d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_2d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_2e){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_2e]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
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(_2f){
var _30=_2f.split(".");
for(var i=_30.length-1;i>0;i--){
var _31=_30.slice(0,i).join(".");
var _32=this.getModulePrefix(_31);
if(_32!=_31){
_30.splice(0,i,_32);
break;
}
}
return _30;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_33,_34,_35){
if(!_33){
return;
}
_35=this._global_omit_module_check||_35;
var _36=this.findModule(_33,false);
if(_36){
return _36;
}
if(dj_undef(_33,this.loading_modules_)){
this.addedToLoadingCount.push(_33);
}
this.loading_modules_[_33]=1;
var _37=_33.replace(/\./g,"/")+".js";
var _38=this.getModuleSymbols(_33);
var _39=((_38[0].charAt(0)!="/")&&(!_38[0].match(/^\w+:/)));
var _3a=_38[_38.length-1];
var _3b=_33.split(".");
if(_3a=="*"){
_33=(_3b.slice(0,-1)).join(".");
while(_38.length){
_38.pop();
_38.push(this.pkgFileName);
_37=_38.join("/")+".js";
if(_39&&(_37.charAt(0)=="/")){
_37=_37.slice(1);
}
ok=this.loadPath(_37,((!_35)?_33:null));
if(ok){
break;
}
_38.pop();
}
}else{
_37=_38.join("/")+".js";
_33=_3b.join(".");
var ok=this.loadPath(_37,((!_35)?_33:null));
if((!ok)&&(!_34)){
_38.pop();
while(_38.length){
_37=_38.join("/")+".js";
ok=this.loadPath(_37,((!_35)?_33:null));
if(ok){
break;
}
_38.pop();
_37=_38.join("/")+"/"+this.pkgFileName+".js";
if(_39&&(_37.charAt(0)=="/")){
_37=_37.slice(1);
}
ok=this.loadPath(_37,((!_35)?_33:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_35)){
dojo.raise("Could not load '"+_33+"'; last tried '"+_37+"'");
}
}
if(!_35&&!this["isXDomain"]){
_36=this.findModule(_33,false);
if(!_36){
dojo.raise("symbol '"+_33+"' is not defined after loading '"+_37+"'");
}
}
return _36;
};
dojo.hostenv.startPackage=function(_3c){
var _3d=dojo.evalObjPath((_3c.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_3c)).toLowerCase()]=_3d;
var _3e=_3c.split(/\./);
if(_3e[_3e.length-1]=="*"){
_3e.pop();
}
return dojo.evalObjPath(_3e.join("."),true);
};
dojo.hostenv.findModule=function(_3f,_40){
var lmn=(new String(_3f)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _41=dojo.evalObjPath(_3f);
if((_3f)&&(typeof _41!="undefined")&&(_41)){
this.loaded_modules_[lmn]=_41;
return _41;
}
if(_40){
dojo.raise("no loaded module named '"+_3f+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_42){
var _43=_42["common"]||[];
var _44=(_42[dojo.hostenv.name_])?_43.concat(_42[dojo.hostenv.name_]||[]):_43.concat(_42["default"]||[]);
for(var x=0;x<_44.length;x++){
var _45=_44[x];
if(_45.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_45);
}else{
dojo.hostenv.loadModule(_45);
}
}
};
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 _46=[];
for(var i=1;i<arguments.length;i++){
_46.push(arguments[i]);
}
dojo.require.apply(dojo,_46);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_47,_48){
return dojo.hostenv.setModulePrefix(_47,_48);
};
dojo.exists=function(obj,_49){
var p=_49.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 _4a=document.location.toString();
var _4b=_4a.split("?",2);
if(_4b.length>1){
var _4c=_4b[1];
var _4d=_4c.split("&");
for(var x in _4d){
var sp=_4d[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 _4e=document.getElementsByTagName("script");
var _4f=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_4e.length;i++){
var src=_4e[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_4f);
if(m){
var _50=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_50+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_50;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_50;
}
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 _51=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_51>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_51+6,_51+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 _52=null;
var _53=null;
try{
_52=new XMLHttpRequest();
}
catch(e){
}
if(!_52){
for(var i=0;i<3;++i){
var _54=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_52=new ActiveXObject(_54);
}
catch(e){
_53=e;
}
if(_52){
dojo.hostenv._XMLHTTP_PROGIDS=[_54];
break;
}
}
}
if(!_52){
return dojo.raise("XMLHTTP not available",_53);
}
return _52;
};
dojo.hostenv.getText=function(uri,_55,_56){
var _57=this.getXmlhttpObject();
if(_55){
_57.onreadystatechange=function(){
if(4==_57.readyState){
if((!_57["status"])||((200<=_57.status)&&(300>_57.status))){
_55(_57.responseText);
}
}
};
}
_57.open("GET",uri,_55?true:false);
try{
_57.send(null);
if(_55){
return null;
}
if((_57["status"])&&((200>_57.status)||(300<=_57.status))){
throw Error("Unable to load "+uri+" status:"+_57.status);
}
}
catch(e){
if((_56)&&(!_55)){
return null;
}else{
throw e;
}
}
return _57.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_58){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_58);
}else{
try{
var _59=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_59){
_59=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_58));
_59.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_58+"</div>");
}
catch(e2){
window.status=_58;
}
}
}
};
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(_5a,_5b,fp,_5c){
var _5d=_5a["on"+_5b]||function(){
};
_5a["on"+_5b]=function(){
fp.apply(_5a,arguments);
_5d.apply(_5a,arguments);
};
return true;
};
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _5e=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_5e();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_5e);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _5f=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_5f=_5f.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_5f=_5f.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_5f.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _60=new dojo.xml.Parse();
if(_5f.length>0){
for(var x=0;x<_5f.length;x++){
var _61=document.getElementById(_5f[x]);
if(!_61){
continue;
}
var _62=_60.parseElement(_61,null,true);
dojo.widget.getParser().createComponents(_62);
}
}else{
if(djConfig.parseWidgets){
var _62=_60.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_62);
}
}
}
}
};
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 _63=false;
var _64=false;
var _65=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_63=true;
}else{
if(typeof this["load"]=="function"){
_64=true;
}else{
if(window.widget){
_65=true;
}
}
}
var _66=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_66.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_63)&&(!_65)){
_66.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_66.push("compat/"+djConfig["compat"]+".js");
}
var _67=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_67=djConfig["baseLoaderUri"];
}
for(var x=0;x<_66.length;x++){
var _68=_67+"src/"+_66[x];
if(_63||_64){
load(_68);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_68+"'></scr"+"ipt>");
}
catch(e){
var _69=document.createElement("script");
_69.src=_68;
document.getElementsByTagName("head")[0].appendChild(_69);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_6a){
return _6a?_6a.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_6b,_6c,_6d){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _6e=dojo.hostenv.getModuleSymbols(_6b);
var _6f=_6e.concat("nls").join("/");
_6d=dojo.normalizeLocale(_6d);
var _70=_6d.split("-");
var _71=[];
for(var i=_70.length;i>0;i--){
_71.push(_70.slice(0,i).join("-"));
}
if(_71[_71.length-1]!=dojo.fallback_locale){
_71.push(dojo.fallback_locale);
}
var _72=[_6b,"_nls",_6c].join(".");
var _73=dojo.hostenv.startPackage(_72);
dojo.hostenv.loaded_modules_[_72]=_73;
var _74=false;
for(var i=_71.length-1;i>=0;i--){
var loc=_71[i];
var pkg=[_72,loc].join(".");
var _75=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _76=[_6f,loc,_6c].join("/")+".js";
_75=dojo.hostenv.loadPath(_76,null,function(_77){
_73[loc]=_77;
if(_74){
for(var x in _74){
if(!_73[loc][x]){
_73[loc][x]=_74[x];
}
}
}
});
}else{
_75=true;
}
if(_75&&_73[loc]){
_74=_73[loc];
}
}
};
dojo.provide("dojo.lang.common");
dojo.require("dojo.lang");
dojo.lang._mixin=function(obj,_78){
var _79={};
for(var x in _78){
if(typeof _79[x]=="undefined"||_79[x]!=_78[x]){
obj[x]=_78[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_78["toString"])&&_78["toString"]!=obj["toString"]){
obj.toString=_78.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_7a){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_7b,_7c){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_7b.prototype,arguments[i]);
}
return _7b;
};
dojo.lang.find=function(arr,val,_7d,_7e){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _7f=dojo.lang.isString(arr);
if(_7f){
arr=arr.split("");
}
if(_7e){
var _80=-1;
var i=arr.length-1;
var end=-1;
}else{
var _80=1;
var i=0;
var end=arr.length;
}
if(_7d){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_80;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_80;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_81){
return dojo.lang.find(arr,val,_81,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");
dojo.provide("dojo.lang.Lang");
dojo.require("dojo.lang.common");
dojo.provide("dojo.lang.func");
dojo.require("dojo.lang.common");
dojo.lang.hitch=function(_82,_83){
if(dojo.lang.isString(_83)){
var fcn=_82[_83];
}else{
var fcn=_83;
}
return function(){
return fcn.apply(_82,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_84,_85,_86){
var nso=(_85||dojo.lang.anon);
if((_86)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_84){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_84;
return ret;
};
dojo.lang.forward=function(_87){
return function(){
return this[_87].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,_88){
var _89=[];
ns=ns||dj_global;
if(dojo.lang.isString(_88)){
_88=ns[_88];
}
for(var x=2;x<arguments.length;x++){
_89.push(arguments[x]);
}
var _8a=(_88["__preJoinArity"]||_88.length)-_89.length;
function _8b(_8c,_8d,_8e){
var _8f=_8e;
var _90=_8d.slice(0);
for(var x=0;x<_8c.length;x++){
_90.push(_8c[x]);
}
_8e=_8e-_8c.length;
if(_8e<=0){
var res=_88.apply(ns,_90);
_8e=_8f;
return res;
}else{
return function(){
return _8b(arguments,_90,_8e);
};
}
};
return _8b([],_89,_8a);
};
dojo.lang.curryArguments=function(ns,_91,_92,_93){
var _94=[];
var x=_93||0;
for(x=_93;x<_92.length;x++){
_94.push(_92[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,_91].concat(_94));
};
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(_95,cb,_96,_97){
if(!_95.length){
if(typeof _97=="function"){
_97();
}
return;
}
if((typeof _96=="undefined")&&(typeof cb=="number")){
_96=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_96){
_96=0;
}
}
}
setTimeout(function(){
(_95.shift())();
cb();
dojo.lang.delayThese(_95,cb,_96,_97);
},_96);
};
dojo.provide("dojo.lang.array");
dojo.require("dojo.lang.common");
dojo.lang.has=function(obj,_98){
try{
return (typeof obj[_98]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _99=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_99++;
break;
}
}
return (_99==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_9a){
var _9b=dojo.lang.isString(arr);
if(_9b){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_9a)){
_9a=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_9a){
var _9c=obj;
obj=_9a;
_9a=_9c;
}
}
if(Array.map){
var _9d=Array.map(arr,_9a,obj);
}else{
var _9d=[];
for(var i=0;i<arr.length;++i){
_9d.push(_9a.call(obj,arr[i]));
}
}
if(_9b){
return _9d.join("");
}else{
return _9d;
}
};
dojo.lang.forEach=function(_9e,_9f,_a0){
if(dojo.lang.isString(_9e)){
_9e=_9e.split("");
}
if(Array.forEach){
Array.forEach(_9e,_9f,_a0);
}else{
if(!_a0){
_a0=dj_global;
}
for(var i=0,l=_9e.length;i<l;i++){
_9f.call(_a0,_9e[i],i,_9e);
}
}
};
dojo.lang._everyOrSome=function(_a1,arr,_a2,_a3){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_a1)?"every":"some"](arr,_a2,_a3);
}else{
if(!_a3){
_a3=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _a4=_a2.call(_a3,arr[i],i,arr);
if((_a1)&&(!_a4)){
return false;
}else{
if((!_a1)&&(_a4)){
return true;
}
}
}
return (_a1)?true:false;
}
};
dojo.lang.every=function(arr,_a5,_a6){
return this._everyOrSome(true,arr,_a5,_a6);
};
dojo.lang.some=function(arr,_a7,_a8){
return this._everyOrSome(false,arr,_a7,_a8);
};
dojo.lang.filter=function(arr,_a9,_aa){
var _ab=dojo.lang.isString(arr);
if(_ab){
arr=arr.split("");
}
if(Array.filter){
var _ac=Array.filter(arr,_a9,_aa);
}else{
if(!_aa){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_aa=dj_global;
}
var _ac=[];
for(var i=0;i<arr.length;i++){
if(_a9.call(_aa,arr[i],i,arr)){
_ac.push(arr[i]);
}
}
}
if(_ab){
return _ac.join("");
}else{
return _ac;
}
};
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(_ad,_ae){
var _af=[];
for(var i=_ae||0;i<_ad.length;i++){
_af.push(_ad[i]);
}
return _af;
};
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(_b0){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _b1=_b0.tagName;
if(_b1.substr(0,5).toLowerCase()!="dojo:"){
if(_b1.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_b1.substring(4).toLowerCase();
}
var djt=_b0.getAttribute("dojoType")||_b0.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((_b0.getAttributeNS)&&(_b0.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+_b0.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=_b0.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _b2=_b0.className||_b0.getAttribute("class");
if((_b2)&&(_b2.indexOf)&&(_b2.indexOf("dojo-")!=-1)){
var _b3=_b2.split(" ");
for(var x=0;x<_b3.length;x++){
if((_b3[x].length>5)&&(_b3[x].indexOf("dojo-")>=0)){
return "dojo:"+_b3[x].substr(5).toLowerCase();
}
}
}
}
}
return _b1.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(_b4,_b5){
var _b6=_b4.firstChild;
while(_b6&&_b6.nodeType!=dojo.dom.ELEMENT_NODE){
_b6=_b6.nextSibling;
}
if(_b5&&_b6&&_b6.tagName&&_b6.tagName.toLowerCase()!=_b5.toLowerCase()){
_b6=dojo.dom.nextElement(_b6,_b5);
}
return _b6;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_b7,_b8){
var _b9=_b7.lastChild;
while(_b9&&_b9.nodeType!=dojo.dom.ELEMENT_NODE){
_b9=_b9.previousSibling;
}
if(_b8&&_b9&&_b9.tagName&&_b9.tagName.toLowerCase()!=_b8.toLowerCase()){
_b9=dojo.dom.prevElement(_b9,_b8);
}
return _b9;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(_ba,_bb){
if(!_ba){
return null;
}
do{
_ba=_ba.nextSibling;
}while(_ba&&_ba.nodeType!=dojo.dom.ELEMENT_NODE);
if(_ba&&_bb&&_bb.toLowerCase()!=_ba.tagName.toLowerCase()){
return dojo.dom.nextElement(_ba,_bb);
}
return _ba;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(_bc,_bd){
if(!_bc){
return null;
}
if(_bd){
_bd=_bd.toLowerCase();
}
do{
_bc=_bc.previousSibling;
}while(_bc&&_bc.nodeType!=dojo.dom.ELEMENT_NODE);
if(_bc&&_bd&&_bd.toLowerCase()!=_bc.tagName.toLowerCase()){
return dojo.dom.prevElement(_bc,_bd);
}
return _bc;
};
dojo.dom.moveChildren=function(_be,_bf,_c0){
var _c1=0;
if(_c0){
while(_be.hasChildNodes()&&_be.firstChild.nodeType==dojo.dom.TEXT_NODE){
_be.removeChild(_be.firstChild);
}
while(_be.hasChildNodes()&&_be.lastChild.nodeType==dojo.dom.TEXT_NODE){
_be.removeChild(_be.lastChild);
}
}
while(_be.hasChildNodes()){
_bf.appendChild(_be.firstChild);
_c1++;
}
return _c1;
};
dojo.dom.copyChildren=function(_c2,_c3,_c4){
var _c5=_c2.cloneNode(true);
return this.moveChildren(_c5,_c3,_c4);
};
dojo.dom.removeChildren=function(_c6){
var _c7=_c6.childNodes.length;
while(_c6.hasChildNodes()){
_c6.removeChild(_c6.firstChild);
}
return _c7;
};
dojo.dom.replaceChildren=function(_c8,_c9){
dojo.dom.removeChildren(_c8);
_c8.appendChild(_c9);
};
dojo.dom.removeNode=function(_ca){
if(_ca&&_ca.parentNode){
return _ca.parentNode.removeChild(_ca);
}
};
dojo.dom.getAncestors=function(_cb,_cc,_cd){
var _ce=[];
var _cf=dojo.lang.isFunction(_cc);
while(_cb){
if(!_cf||_cc(_cb)){
_ce.push(_cb);
}
if(_cd&&_ce.length>0){
return _ce[0];
}
_cb=_cb.parentNode;
}
if(_cd){
return null;
}
return _ce;
};
dojo.dom.getAncestorsByTag=function(_d0,tag,_d1){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(_d0,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_d1);
};
dojo.dom.getFirstAncestorByTag=function(_d2,tag){
return dojo.dom.getAncestorsByTag(_d2,tag,true);
};
dojo.dom.isDescendantOf=function(_d3,_d4,_d5){
if(_d5&&_d3){
_d3=_d3.parentNode;
}
while(_d3){
if(_d3==_d4){
return true;
}
_d3=_d3.parentNode;
}
return false;
};
dojo.dom.innerXML=function(_d6){
if(_d6.innerXML){
return _d6.innerXML;
}else{
if(_d6.xml){
return _d6.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(_d6);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _d7=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_d7.length;i++){
try{
doc=new ActiveXObject(_d7[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,_d8){
if(!_d8){
_d8="text/xml";
}
if(!dj_undef("DOMParser")){
var _d9=new DOMParser();
return _d9.parseFromString(str,_d8);
}else{
if(!dj_undef("ActiveXObject")){
var _da=dojo.dom.createDocument();
if(_da){
_da.async=false;
_da.loadXML(str);
return _da;
}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 _db=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_db.importNode(tmp.childNodes.item(i),true);
}
return _db;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(_dc,_dd){
if(_dd.firstChild){
_dd.insertBefore(_dc,_dd.firstChild);
}else{
_dd.appendChild(_dc);
}
return true;
};
dojo.dom.insertBefore=function(_de,ref,_df){
if(_df!=true&&(_de===ref||_de.nextSibling===ref)){
return false;
}
var _e0=ref.parentNode;
_e0.insertBefore(_de,ref);
return true;
};
dojo.dom.insertAfter=function(_e1,ref,_e2){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_e2!=true)&&(_e1===ref)){
return false;
}
pn.appendChild(_e1);
}else{
return this.insertBefore(_e1,ref.nextSibling,_e2);
}
return true;
};
dojo.dom.insertAtPosition=function(_e3,ref,_e4){
if((!_e3)||(!ref)||(!_e4)){
return false;
}
switch(_e4.toLowerCase()){
case "before":
return dojo.dom.insertBefore(_e3,ref);
case "after":
return dojo.dom.insertAfter(_e3,ref);
case "first":
if(ref.firstChild){
return dojo.dom.insertBefore(_e3,ref.firstChild);
}else{
ref.appendChild(_e3);
return true;
}
break;
default:
ref.appendChild(_e3);
return true;
}
};
dojo.dom.insertAtIndex=function(_e5,_e6,_e7){
var _e8=_e6.childNodes;
if(!_e8.length){
_e6.appendChild(_e5);
return true;
}
var _e9=null;
for(var i=0;i<_e8.length;i++){
var _ea=_e8.item(i)["getAttribute"]?parseInt(_e8.item(i).getAttribute("dojoinsertionindex")):-1;
if(_ea<_e7){
_e9=_e8.item(i);
}
}
if(_e9){
return dojo.dom.insertAfter(_e5,_e9);
}else{
return dojo.dom.insertBefore(_e5,_e8.item(0));
}
};
dojo.dom.textContent=function(_eb,_ec){
if(_ec){
dojo.dom.replaceChildren(_eb,document.createTextNode(_ec));
return _ec;
}else{
var _ed="";
if(_eb==null){
return _ed;
}
for(var i=0;i<_eb.childNodes.length;i++){
switch(_eb.childNodes[i].nodeType){
case 1:
case 5:
_ed+=dojo.dom.textContent(_eb.childNodes[i]);
break;
case 3:
case 2:
case 4:
_ed+=_eb.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _ed;
}
};
dojo.dom.collectionToArray=function(_ee){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_ee);
};
dojo.dom.hasParent=function(_ef){
return _ef&&_ef.parentNode&&dojo.dom.isNode(_ef.parentNode);
};
dojo.dom.isTag=function(_f0){
if(_f0&&_f0.tagName){
var arr=dojo.lang.toArray(arguments,1);
return arr[dojo.lang.find(_f0.tagName,arr)]||"";
}
return "";
};
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(_f1){
if(_f1){
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(_f2,_f3){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_f2).toRgb(),_f3);
}});
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,_f4){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_f4);
}
if(!_f4){
_f4=0;
}else{
if(_f4>1){
_f4=1;
}else{
if(_f4<-1){
_f4=-1;
}
}
}
var c=new Array(3);
for(var i=0;i<3;i++){
var _f5=Math.abs(a[i]-b[i])/2;
c[i]=Math.floor(Math.min(a[i],b[i])+_f5+(_f5*_f4));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_f6){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_f6));
};
dojo.graphics.color.extractRGB=function(_f7){
var hex="0123456789abcdef";
_f7=_f7.toLowerCase();
if(_f7.indexOf("rgb")==0){
var _f8=_f7.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_f8.splice(1,3);
return ret;
}else{
var _f9=dojo.graphics.color.hex2rgb(_f7);
if(_f9){
return _f9;
}else{
return dojo.graphics.color.named[_f7]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _fa="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_fa+"]","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]=_fa.indexOf(rgb[i].charAt(0))*16+_fa.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
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 _fb=new dojo.uri.Uri(arguments[i].toString());
var _fc=new dojo.uri.Uri(uri.toString());
if(_fb.path==""&&_fb.scheme==null&&_fb.authority==null&&_fb.query==null){
if(_fb.fragment!=null){
_fc.fragment=_fb.fragment;
}
_fb=_fc;
}else{
if(_fb.scheme==null){
_fb.scheme=_fc.scheme;
if(_fb.authority==null){
_fb.authority=_fc.authority;
if(_fb.path.charAt(0)!="/"){
var _fd=_fc.path.substring(0,_fc.path.lastIndexOf("/")+1)+_fb.path;
var _fe=_fd.split("/");
for(var j=0;j<_fe.length;j++){
if(_fe[j]=="."){
if(j==_fe.length-1){
_fe[j]="";
}else{
_fe.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_fe[0]=="")&&_fe[j]==".."&&_fe[j-1]!=".."){
if(j==_fe.length-1){
_fe.splice(j,1);
_fe[j-1]="";
}else{
_fe.splice(j-1,2);
j-=2;
}
}
}
}
_fb.path=_fe.join("/");
}
}
}
}
uri="";
if(_fb.scheme!=null){
uri+=_fb.scheme+":";
}
if(_fb.authority!=null){
uri+="//"+_fb.authority;
}
uri+=_fb.path;
if(_fb.query!=null){
uri+="?"+_fb.query;
}
if(_fb.fragment!=null){
uri+="#"+_fb.fragment;
}
}
this.uri=uri.toString();
var _ff="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_ff));
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){
_ff="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_ff));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.style");
dojo.require("dojo.graphics.color");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.lang.common");
(function(){
var h=dojo.render.html;
var ds=dojo.style;
var db=document["body"]||document["documentElement"];
ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
var bs=ds.boxSizing;
ds.getBoxSizing=function(node){
if((h.ie)||(h.opera)){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _100=ds.getStyle(node,"-moz-box-sizing");
if(!_100){
_100=ds.getStyle(node,"box-sizing");
}
return (_100?_100:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_101,_102){
var s=ds.getComputedStyle(node,_101);
if((!s)||((s=="auto")&&(_102))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _103=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_103){
return ds.getUnitValue.bad;
}
return {value:Number(_103[1]),units:_103[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_104,_105){
var _106=ds.getUnitValue(node,_104,_105);
if(isNaN(_106.value)){
return 0;
}
if((_106.value)&&(_106.units!="px")){
return NaN;
}
return _106.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,_107,_108){
if(isNaN(_108)){
return false;
}
node.style[_107]=Math.max(0,_108)+"px";
return true;
};
ds._sumPixelValues=function(node,_109,_10a){
var _10b=0;
for(var x=0;x<_109.length;x++){
_10b+=ds.getPixelValue(node,_109[x],_10a);
}
return _10b;
};
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.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,_10c){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_10c+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_10c);
};
ds.setMarginBoxWidth=function(node,_10d){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_10d-=ds.getPadBorderWidth(node);
}
_10d-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_10d);
};
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,_10e){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_10e+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_10e);
};
ds.setMarginBoxHeight=function(node,_10f){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_10f-=ds.getPadBorderHeight(node);
}
_10f-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_10f);
};
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,_110){
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 _111;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_111=db;
}else{
_111=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!=_111)&&(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(_110){
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 _112=0;
while(node){
var val=node[prop];
if(val){
_112+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _112;
};
ds.getTotalOffset=function(node,type,_113){
return ds.abs(node,_113)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_114){
return ds.getTotalOffset(node,"left",_114);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_115){
return ds.getTotalOffset(node,"top",_115);
};
ds.styleSheet=null;
ds.insertCssRule=function(_116,_117,_118){
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){
_118=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_118=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_116+" { "+_117+" }";
return ds.styleSheet.insertRule(rule,_118);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_116,_117,_118);
}else{
return null;
}
}
};
ds.removeCssRule=function(_119){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_119){
_119=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_119);
}
}else{
if(document.styleSheets[0]){
if(!_119){
_119=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_119);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_11a){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _11b=dojo.hostenv.getText(URI);
_11b=ds.fixPathsInCssText(_11b,URI);
if(_11a){
var _11c=doc.getElementsByTagName("style");
var _11d="";
for(var i=0;i<_11c.length;i++){
_11d=(_11c[i].styleSheet&&_11c[i].styleSheet.cssText)?_11c[i].styleSheet.cssText:_11c[i].innerHTML;
if(_11b==_11d){
return;
}
}
}
var _11e=ds.insertCssText(_11b);
if(_11e&&djConfig.isDebug){
_11e.setAttribute("dbgHref",URI);
}
return _11e;
};
ds.insertCssText=function(_11f,doc,URI){
if(!_11f){
return;
}
if(!doc){
doc=document;
}
if(URI){
_11f=ds.fixPathsInCssText(_11f,URI);
}
var _120=doc.createElement("style");
_120.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(_120);
}
if(_120.styleSheet){
_120.styleSheet.cssText=_11f;
}else{
var _121=doc.createTextNode(_11f);
_120.appendChild(_121);
}
return _120;
};
ds.fixPathsInCssText=function(_122,URI){
if(!_122||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_122.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_122.slice(0,pos+4);
_122=_122.substring(pos+4,_122.length);
url+=_122.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_122=_122.substring(url.length-1,_122.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+_122;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _123;
do{
_123=ds.getStyle(node,"background-color");
if(_123.toLowerCase()=="rgba(0, 0, 0, 0)"){
_123="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_123,["transparent",""]));
if(_123=="transparent"){
_123=[255,255,255,0];
}else{
_123=dojo.graphics.color.extractRGB(_123);
}
return _123;
};
ds.getComputedStyle=function(node,_124,_125){
node=dojo.byId(node);
var _124=ds.toSelectorCase(_124);
var _126=ds.toCamelCase(_124);
if(!node||!node.style){
return _125;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_124);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_124);
}else{
return _125;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_126];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_124);
}else{
return _125;
}
};
ds.getStyleProperty=function(node,_127){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_127)]:undefined);
};
ds.getStyle=function(node,_128){
var _129=ds.getStyleProperty(node,_128);
return (_129?_129:ds.getComputedStyle(node,_128));
};
ds.setStyle=function(node,_12a,_12b){
node=dojo.byId(node);
if(node&&node.style){
var _12c=ds.toCamelCase(_12a);
node.style[_12c]=_12b;
}
};
ds.toCamelCase=function(_12d){
var arr=_12d.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(_12e){
return _12e.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_12f,_130){
node=dojo.byId(node);
if(!_130){
if(_12f>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_12f=0.999999;
}
}else{
if(_12f<0){
_12f=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="+_12f*100+")";
}
}
node.style.filter="Alpha(Opacity="+_12f*100+")";
}else{
if(h.moz){
node.style.opacity=_12f;
node.style.MozOpacity=_12f;
}else{
if(h.safari){
node.style.opacity=_12f;
node.style.KhtmlOpacity=_12f;
}else{
node.style.opacity=_12f;
}
}
}
};
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,_131){
var _132={"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 _133=_131.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_133.length;i++){
var _134=_133[i].split(":");
var name=_134[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _135=_134[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_132,name)){
_132[name](node,_135);
}else{
node.style[dojo.style.toCamelCase(name)]=_135;
}
}
};
ds._toggle=function(node,_136,_137){
node=dojo.byId(node);
_137(node,!_136(node));
return _136(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,_138){
ds[(_138?"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,_139){
ds.setStyle(node,"display",(dojo.lang.isString(_139)?_139:(_139?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,_13a){
ds.setStyle(node,"visibility",(dojo.lang.isString(_13a)?_13a:(_13a?"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(_13b,_13c){
if(dojo.lang.isArray(_13b)){
while(_13b.length<4){
_13b.push(0);
}
while(_13b.length>4){
_13b.pop();
}
var ret=_13b;
}else{
var node=dojo.byId(_13b);
var pos=ds.getAbsolutePosition(node,_13c);
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,_13d,_13e){
var out="";
for(var i=0;i<_13d;i++){
out+=str;
if(_13e&&i<_13d-1){
out+=_13e;
}
}
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(_13f){
_13f=dojo.byId(_13f)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_13f.style.MozUserSelect="none";
}else{
if(h.safari){
_13f.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_13f.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_140){
_140=dojo.byId(_140)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_140.style.MozUserSelect="";
}else{
if(h.safari){
_140.style.KhtmlUserSelect="";
}else{
if(h.ie){
_140.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_141){
_141=dojo.byId(_141);
if(document.selection&&document.body.createTextRange){
var _142=document.body.createTextRange();
_142.moveToElementText(_141);
_142.select();
}else{
if(window["getSelection"]){
var _143=window.getSelection();
if(_143["selectAllChildren"]){
_143.selectAllChildren(_141);
}
}
}
};
dojo.html.selectInputText=function(_144){
_144=dojo.byId(_144);
if(document.selection&&document.body.createTextRange){
var _145=_144.createTextRange();
_145.moveStart("character",0);
_145.moveEnd("character",_144.value.length);
_145.select();
}else{
if(window["getSelection"]){
var _146=window.getSelection();
_144.setSelectionRange(0,_144.value.length);
}
}
_144.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _147=window.getSelection();
if(dojo.lang.isString(_147)){
return _147=="";
}else{
return _147.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 _148=dojo.byId(node);
type=type.toLowerCase();
while((_148)&&(_148.nodeName.toLowerCase()!=type)){
if(_148==(document["body"]||document["documentElement"])){
return null;
}
_148=_148.parentNode;
}
return _148;
};
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,_149){
return dojo.lang.inArray(dojo.html.getClasses(node),_149);
};
dojo.html.prependClass=function(node,_14a){
_14a+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_14a);
};
dojo.html.addClass=function(node,_14b){
if(dojo.html.hasClass(node,_14b)){
return false;
}
_14b=dojo.string.trim(dojo.html.getClass(node)+" "+_14b);
return dojo.html.setClass(node,_14b);
};
dojo.html.setClass=function(node,_14c){
node=dojo.byId(node);
var cs=new String(_14c);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_14c);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_14d,_14e){
var _14d=dojo.string.trim(new String(_14d));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_14e){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_14d)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_14d){
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,_14f,_150){
dojo.html.removeClass(node,_150);
dojo.html.addClass(node,_14f);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_151,_152,_153,_154,_155){
_152=dojo.byId(_152)||document;
var _156=_151.split(/\s+/g);
var _157=[];
if(_154!=1&&_154!=2){
_154=0;
}
var _158=new RegExp("(\\s|^)(("+_156.join(")|(")+"))(\\s|$)");
var _159=[];
if(!_155&&document.evaluate){
var _15a="//"+(_153||"*")+"[contains(";
if(_154!=dojo.html.classMatchType.ContainsAny){
_15a+="concat(' ',@class,' '), ' "+_156.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_15a+="concat(' ',@class,' '), ' "+_156.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _15b=document.evaluate(_15a,_152,null,XPathResult.ANY_TYPE,null);
var _15c=_15b.iterateNext();
while(_15c){
try{
_159.push(_15c);
_15c=_15b.iterateNext();
}
catch(e){
break;
}
}
return _159;
}else{
if(!_153){
_153="*";
}
_159=_152.getElementsByTagName(_153);
var node,i=0;
outer:
while(node=_159[i++]){
var _15d=dojo.html.getClasses(node);
if(_15d.length==0){
continue outer;
}
var _15e=0;
for(var j=0;j<_15d.length;j++){
if(_158.test(_15d[j])){
if(_154==dojo.html.classMatchType.ContainsAny){
_157.push(node);
continue outer;
}else{
_15e++;
}
}else{
if(_154==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_15e==_156.length){
if((_154==dojo.html.classMatchType.IsOnly)&&(_15e==_15d.length)){
_157.push(node);
}else{
if(_154==dojo.html.classMatchType.ContainsAll){
_157.push(node);
}
}
}
}
return _157;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _15f={x:0,y:0};
if(e.pageX||e.pageY){
_15f.x=e.pageX;
_15f.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_15f.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_15f.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _15f;
};
dojo.html.overElement=function(_160,e){
_160=dojo.byId(_160);
var _161=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_160,true);
var _162=top+getInnerHeight(_160);
var left=getAbsoluteX(_160,true);
var _163=left+getInnerWidth(_160);
}
return (_161.x>=left&&_161.x<=_163&&_161.y>=top&&_161.y<=_162);
};
dojo.html.setActiveStyleSheet=function(_164){
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")==_164){
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(_165,_166){
if(dojo.lang.isUndefined(_166.style.cssText)){
_165.setAttribute("style",_166.getAttribute("style"));
}else{
_165.style.cssText=_166.style.cssText;
}
dojo.html.addClass(_165,dojo.html.getClass(_166));
};
dojo.html._callExtrasDeprecated=function(_167,args){
var _168="dojo.html.extras";
dojo.deprecated("dojo.html."+_167,"moved to "+_168,"0.4");
dojo["require"](_168);
return dojo.html[_167].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.provide("dojo.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.require("dojo.lang.func");
dojo.lfx.Line=function(_169,end){
this.start=_169;
this.end=end;
if(dojo.lang.isArray(_169)){
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-_169;
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(_16a,_16b,_16c,_16d,_16e,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_16a)||(!_16a&&_16b.getValue)){
rate=_16e;
_16e=_16d;
_16d=_16c;
_16c=_16b;
_16b=_16a;
_16a=null;
}else{
if(_16a.getValue||dojo.lang.isArray(_16a)){
rate=_16d;
_16e=_16c;
_16d=_16b;
_16c=_16a;
_16b=null;
_16a=null;
}
}
if(dojo.lang.isArray(_16c)){
this.curve=new dojo.lfx.Line(_16c[0],_16c[1]);
}else{
this.curve=_16c;
}
if(_16b!=null&&_16b>0){
this.duration=_16b;
}
if(_16e){
this.repeatCount=_16e;
}
if(rate){
this.rate=rate;
}
if(_16a){
this.handler=_16a.handler;
this.beforeBegin=_16a.beforeBegin;
this.onBegin=_16a.onBegin;
this.onEnd=_16a.onEnd;
this.onPlay=_16a.onPlay;
this.onPause=_16a.onPause;
this.onStop=_16a.onStop;
this.onAnimate=_16a.onAnimate;
}
if(_16d&&dojo.lang.isFunction(_16d)){
this.easing=_16d;
}
};
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(_16f,_170){
if(_170){
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(_16f>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_170);
}),_16f);
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 _171=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_171]);
this.fire("onBegin",[_171]);
}
this.fire("handler",["play",_171]);
this.fire("onPlay",[_171]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _172=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_172]);
this.fire("onPause",[_172]);
return this;
},gotoPercent:function(pct,_173){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_173){
this.play();
}
},stop:function(_174){
clearTimeout(this._timer);
var step=this._percent/100;
if(_174){
step=1;
}
var _175=this.curve.getValue(step);
this.fire("handler",["stop",_175]);
this.fire("onStop",[_175]);
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 _176=this.curve.getValue(step);
this.fire("handler",["animate",_176]);
this.fire("onAnimate",[_176]);
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 _177=arguments;
if(_177.length==1&&(dojo.lang.isArray(_177[0])||dojo.lang.isArrayLike(_177[0]))){
_177=_177[0];
}
var _178=this;
dojo.lang.forEach(_177,function(anim){
_178._anims.push(anim);
var _179=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_179();
_178._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_17a,_17b){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_17a>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_17b);
}),_17a);
return this;
}
if(_17b||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_17b);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_17c){
this.fire("onStop");
this._animsCall("stop",_17c);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_17d){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _17e=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_17d](args);
},_17e);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _17f=arguments;
if(_17f.length==1&&(dojo.lang.isArray(_17f[0])||dojo.lang.isArrayLike(_17f[0]))){
_17f=_17f[0];
}
var _180=this;
dojo.lang.forEach(_17f,function(anim,i,_181){
_180._anims.push(anim);
var _182=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_181.length-1){
anim.onEnd=function(){
_182();
_180._playNext();
};
}else{
anim.onEnd=function(){
_182();
_180.fire("onEnd");
};
}
},_180);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_183,_184){
if(!this._anims.length){
return this;
}
if(_184||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _185=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_183>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_184);
}),_183);
return this;
}
if(_185){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_185.play(null,_184);
}
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 _186=this._anims[this._currAnim];
if(_186){
if(!_186._active||_186._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _187=this._anims[this._currAnim];
if(_187){
_187.stop();
this.fire("onStop",[this._currAnim]);
}
return _187;
},_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 _188=arguments;
if(dojo.lang.isArray(arguments[0])){
_188=arguments[0];
}
return new dojo.lfx.Combine(_188);
};
dojo.lfx.chain=function(){
var _189=arguments;
if(dojo.lang.isArray(arguments[0])){
_189=arguments[0];
}
return new dojo.lfx.Chain(_189);
};
dojo.provide("dojo.lfx.html");
dojo.require("dojo.lfx.Animation");
dojo.require("dojo.html");
dojo.lfx.html._byId=function(_18a){
if(!_18a){
return [];
}
if(dojo.lang.isArray(_18a)){
if(!_18a.alreadyChecked){
var n=[];
dojo.lang.forEach(_18a,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _18a;
}
}else{
var n=[];
n.push(dojo.byId(_18a));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_18b,_18c,_18d,_18e){
_18b=dojo.lfx.html._byId(_18b);
if(_18b.length==1){
dojo.lang.forEach(_18c,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_18b[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_18b[0]);
}
}
});
}
var _18f=function(_190){
var _191=new Array(_190.length);
for(var i=0;i<_190.length;i++){
_191[i]=Math.round(_190[i]);
}
return _191;
};
var _192=function(n,_193){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _193){
if(s=="opacity"){
dojo.style.setOpacity(n,_193[s]);
}else{
n.style[s]=_193[s];
}
}
};
var _194=function(_195){
this._properties=_195;
this.diffs=new Array(_195.length);
dojo.lang.forEach(_195,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 _196=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_196=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_196+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_196+=")";
}else{
_196=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_196;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_197){
dojo.lang.forEach(_18b,function(node){
_192(node,_197);
});
}},_18d,new _194(_18c),_18e);
return anim;
};
dojo.lfx.html._makeFadeable=function(_198){
var _199=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(_198)){
dojo.lang.forEach(_198,_199);
}else{
_199(_198);
}
};
dojo.lfx.html.fadeIn=function(_19a,_19b,_19c,_19d){
_19a=dojo.lfx.html._byId(_19a);
dojo.lfx.html._makeFadeable(_19a);
var anim=dojo.lfx.propertyAnimation(_19a,[{property:"opacity",start:dojo.style.getOpacity(_19a[0]),end:1}],_19b,_19c);
if(_19d){
var _19e=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_19e();
_19d(_19a,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_19f,_1a0,_1a1,_1a2){
_19f=dojo.lfx.html._byId(_19f);
dojo.lfx.html._makeFadeable(_19f);
var anim=dojo.lfx.propertyAnimation(_19f,[{property:"opacity",start:dojo.style.getOpacity(_19f[0]),end:0}],_1a0,_1a1);
if(_1a2){
var _1a3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1a3();
_1a2(_19f,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_1a4,_1a5,_1a6,_1a7){
var anim=dojo.lfx.html.fadeIn(_1a4,_1a5,_1a6,_1a7);
var _1a8=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_1a8();
if(dojo.lang.isArrayLike(_1a4)){
dojo.lang.forEach(_1a4,dojo.style.show);
}else{
dojo.style.show(_1a4);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_1a9,_1aa,_1ab,_1ac){
var anim=dojo.lfx.html.fadeOut(_1a9,_1aa,_1ab,function(){
if(dojo.lang.isArrayLike(_1a9)){
dojo.lang.forEach(_1a9,dojo.style.hide);
}else{
dojo.style.hide(_1a9);
}
if(_1ac){
_1ac(_1a9,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_1ad,_1ae,_1af,_1b0){
_1ad=dojo.lfx.html._byId(_1ad);
var _1b1=[];
dojo.lang.forEach(_1ad,function(node){
var _1b2=dojo.style.getStyle(node,"overflow");
if(_1b2=="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}],_1ae,_1af);
var _1b3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1b3();
node.style.overflow=_1b2;
node.style.height="auto";
if(_1b0){
_1b0(node,anim);
}
};
_1b1.push(anim);
});
if(_1ad.length>1){
return dojo.lfx.combine(_1b1);
}else{
return _1b1[0];
}
};
dojo.lfx.html.wipeOut=function(_1b4,_1b5,_1b6,_1b7){
_1b4=dojo.lfx.html._byId(_1b4);
var _1b8=[];
dojo.lang.forEach(_1b4,function(node){
var _1b9=dojo.style.getStyle(node,"overflow");
if(_1b9=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_1b5,_1b6);
var _1ba=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1ba();
dojo.style.hide(node);
node.style.overflow=_1b9;
if(_1b7){
_1b7(node,anim);
}
};
_1b8.push(anim);
});
if(_1b4.length>1){
return dojo.lfx.combine(_1b8);
}else{
return _1b8[0];
}
};
dojo.lfx.html.slideTo=function(_1bb,_1bc,_1bd,_1be,_1bf){
_1bb=dojo.lfx.html._byId(_1bb);
var _1c0=[];
dojo.lang.forEach(_1bb,function(node){
var top=null;
var left=null;
var init=(function(){
var _1c1=node;
return function(){
top=_1c1.offsetTop;
left=_1c1.offsetLeft;
if(!dojo.style.isPositionAbsolute(_1c1)){
var ret=dojo.style.abs(_1c1,true);
dojo.style.setStyleAttributes(_1c1,"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:_1bc[0]},{property:"left",start:left,end:_1bc[1]}],_1bd,_1be);
var _1c2=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_1c2();
init();
};
if(_1bf){
var _1c3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1c3();
_1bf(_1bb,anim);
};
}
_1c0.push(anim);
});
if(_1bb.length>1){
return dojo.lfx.combine(_1c0);
}else{
return _1c0[0];
}
};
dojo.lfx.html.slideBy=function(_1c4,_1c5,_1c6,_1c7,_1c8){
_1c4=dojo.lfx.html._byId(_1c4);
var _1c9=[];
dojo.lang.forEach(_1c4,function(node){
var top=null;
var left=null;
var init=(function(){
var _1ca=node;
return function(){
top=node.offsetTop;
left=node.offsetLeft;
if(!dojo.style.isPositionAbsolute(_1ca)){
var ret=dojo.style.abs(_1ca);
dojo.style.setStyleAttributes(_1ca,"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+_1c5[0]},{property:"left",start:left,end:left+_1c5[1]}],_1c6,_1c7);
var _1cb=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_1cb();
init();
};
if(_1c8){
var _1cc=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1cc();
_1c8(_1c4,anim);
};
}
_1c9.push(anim);
});
if(_1c4.length>1){
return dojo.lfx.combine(_1c9);
}else{
return _1c9[0];
}
};
dojo.lfx.html.explode=function(_1cd,_1ce,_1cf,_1d0,_1d1){
_1cd=dojo.byId(_1cd);
_1ce=dojo.byId(_1ce);
var _1d2=dojo.style.toCoordinateArray(_1cd,true);
var _1d3=document.createElement("div");
dojo.html.copyStyle(_1d3,_1ce);
with(_1d3.style){
position="absolute";
display="none";
}
document.body.appendChild(_1d3);
with(_1ce.style){
visibility="hidden";
display="block";
}
var _1d4=dojo.style.toCoordinateArray(_1ce,true);
with(_1ce.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_1d3,[{property:"height",start:_1d2[3],end:_1d4[3]},{property:"width",start:_1d2[2],end:_1d4[2]},{property:"top",start:_1d2[1],end:_1d4[1]},{property:"left",start:_1d2[0],end:_1d4[0]},{property:"opacity",start:0.3,end:1}],_1cf,_1d0);
anim.beforeBegin=function(){
dojo.style.setDisplay(_1d3,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_1ce,"block");
_1d3.parentNode.removeChild(_1d3);
};
if(_1d1){
var _1d5=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1d5();
_1d1(_1ce,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_1d6,end,_1d7,_1d8,_1d9){
_1d6=dojo.byId(_1d6);
end=dojo.byId(end);
var _1da=dojo.style.toCoordinateArray(_1d6,true);
var _1db=dojo.style.toCoordinateArray(end,true);
var _1dc=document.createElement("div");
dojo.html.copyStyle(_1dc,_1d6);
dojo.style.setOpacity(_1dc,0.3);
with(_1dc.style){
position="absolute";
display="none";
}
document.body.appendChild(_1dc);
var anim=new dojo.lfx.propertyAnimation(_1dc,[{property:"height",start:_1da[3],end:_1db[3]},{property:"width",start:_1da[2],end:_1db[2]},{property:"top",start:_1da[1],end:_1db[1]},{property:"left",start:_1da[0],end:_1db[0]},{property:"opacity",start:1,end:0.3}],_1d7,_1d8);
anim.beforeBegin=function(){
dojo.style.hide(_1d6);
dojo.style.show(_1dc);
};
anim.onEnd=function(){
_1dc.parentNode.removeChild(_1dc);
};
if(_1d9){
var _1dd=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1dd();
_1d9(_1d6,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_1de,_1df,_1e0,_1e1,_1e2){
_1de=dojo.lfx.html._byId(_1de);
var _1e3=[];
dojo.lang.forEach(_1de,function(node){
var _1e4=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _1e5=dojo.style.getStyle(node,"background-image");
var _1e6=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_1e4.length>3){
_1e4.pop();
}
var rgb=new dojo.graphics.color.Color(_1df);
var _1e7=new dojo.graphics.color.Color(_1e4);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_1e7}],_1e0,_1e1);
var _1e8=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_1e8();
if(_1e5){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _1e9=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1e9();
if(_1e5){
node.style.backgroundImage=_1e5;
}
if(_1e6){
node.style.backgroundColor="transparent";
}
if(_1e2){
_1e2(node,anim);
}
};
_1e3.push(anim);
});
if(_1de.length>1){
return dojo.lfx.combine(_1e3);
}else{
return _1e3[0];
}
};
dojo.lfx.html.unhighlight=function(_1ea,_1eb,_1ec,_1ed,_1ee){
_1ea=dojo.lfx.html._byId(_1ea);
var _1ef=[];
dojo.lang.forEach(_1ea,function(node){
var _1f0=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_1eb);
var _1f1=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_1f0,end:rgb}],_1ec,_1ed);
var _1f2=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_1f2();
if(_1f1){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_1f0.toRgb().join(",")+")";
};
var _1f3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_1f3();
if(_1ee){
_1ee(node,anim);
}
};
_1ef.push(anim);
});
if(_1ea.length>1){
return dojo.lfx.combine(_1ef);
}else{
return _1ef[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.lang.extras");
dojo.require("dojo.lang.common");
dojo.lang.setTimeout=function(func,_1f4){
var _1f5=window,_1f6=2;
if(!dojo.lang.isFunction(func)){
_1f5=func;
func=_1f4;
_1f4=arguments[2];
_1f6++;
}
if(dojo.lang.isString(func)){
func=_1f5[func];
}
var args=[];
for(var i=_1f6;i<arguments.length;i++){
args.push(arguments[i]);
}
return setTimeout(function(){
func.apply(_1f5,args);
},_1f4);
};
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(_1f7,_1f8,_1f9){
with(dojo.parseObjPath(_1f7,_1f8,_1f9)){
return dojo.evalProp(prop,obj,_1f9);
}
};
dojo.lang.setObjPathValue=function(_1fa,_1fb,_1fc,_1fd){
if(arguments.length<4){
_1fd=true;
}
with(dojo.parseObjPath(_1fa,_1fc,_1fd)){
if(obj&&(_1fd||(prop in obj))){
obj[prop]=_1fb;
}
}
};
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 _1fe(args,_1ff){
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 _200=dl.nameAnonFunc(args[2],ao.adviceObj,_1ff);
ao.adviceFunc=_200;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _200=dl.nameAnonFunc(args[0],ao.srcObj,_1ff);
ao.srcFunc=_200;
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 _200=dl.nameAnonFunc(args[1],dj_global,_1ff);
ao.srcFunc=_200;
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 _200=dl.nameAnonFunc(args[3],dj_global,_1ff);
ao.adviceObj=dj_global;
ao.adviceFunc=_200;
}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 _200=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_1ff);
ao.aroundFunc=_200;
}
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=_1fe(arguments,true);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _201={};
for(var x in ao){
_201[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);
}
_201.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_201));
});
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 _202;
if((arguments.length==1)&&(typeof a1=="object")){
_202=a1;
}else{
_202={srcObj:a1,srcFunc:a2};
}
_202.adviceFunc=function(){
var _203=[];
for(var x=0;x<arguments.length;x++){
_203.push(arguments[x]);
}
dojo.debug("("+_202.srcObj+")."+_202.srcFunc,":",_203.join(", "));
};
this.kwConnect(_202);
};
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=_1fe(arguments,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_204,_205){
var fn=(_205)?"disconnect":"connect";
if(typeof _204["srcFunc"]=="function"){
_204.srcObj=_204["srcObj"]||dj_global;
var _206=dojo.lang.nameAnonFunc(_204.srcFunc,_204.srcObj,true);
_204.srcFunc=_206;
}
if(typeof _204["adviceFunc"]=="function"){
_204.adviceObj=_204["adviceObj"]||dj_global;
var _206=dojo.lang.nameAnonFunc(_204.adviceFunc,_204.adviceObj,true);
_204.adviceFunc=_206;
}
return dojo.event[fn]((_204["type"]||_204["adviceType"]||"after"),_204["srcObj"]||dj_global,_204["srcFunc"],_204["adviceObj"]||_204["targetObj"]||dj_global,_204["adviceFunc"]||_204["targetFunc"],_204["aroundObj"],_204["aroundFunc"],_204["once"],_204["delay"],_204["rate"],_204["adviceMsg"]||false);
};
this.kwConnect=function(_207){
return this._kwConnectImpl(_207,false);
};
this.disconnect=function(){
var ao=_1fe(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(_208){
return this._kwConnectImpl(_208,true);
};
};
dojo.event.MethodInvocation=function(_209,obj,args){
this.jp_=_209;
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,_20a){
this.object=obj||dj_global;
this.methodname=_20a;
this.methodfunc=this.object[_20a];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_20b){
if(!obj){
obj=dj_global;
}
if(!obj[_20b]){
obj[_20b]=function(){
};
if(!obj[_20b]){
dojo.raise("Cannot set do-nothing method on that object "+_20b);
}
}else{
if((!dojo.lang.isFunction(obj[_20b]))&&(!dojo.lang.isAlien(obj[_20b]))){
return null;
}
}
var _20c=_20b+"$joinpoint";
var _20d=_20b+"$joinpoint$method";
var _20e=obj[_20c];
if(!_20e){
var _20f=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_20f=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_20c,_20d,_20b]);
}
}
var _210=obj[_20b].length;
obj[_20d]=obj[_20b];
_20e=obj[_20c]=new dojo.event.MethodJoinPoint(obj,_20d);
obj[_20b]=function(){
var args=[];
if((_20f)&&(!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)&&(_20f)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _20e.run.apply(_20e,args);
};
obj[_20b].__preJoinArity=_210;
}
return _20e;
};
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 _211=[];
for(var x=0;x<args.length;x++){
_211[x]=args[x];
}
var _212=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _213=marr[0]||dj_global;
var _214=marr[1];
if(!_213[_214]){
dojo.raise("function \""+_214+"\" does not exist on \""+_213+"\"");
}
var _215=marr[2]||dj_global;
var _216=marr[3];
var msg=marr[6];
var _217;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _213[_214].apply(_213,to.args);
}};
to.args=_211;
var _218=parseInt(marr[4]);
var _219=((!isNaN(_218))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _21a=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;
_212(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_216){
_215[_216].call(_215,to);
}else{
if((_219)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_213[_214].call(_213,to);
}else{
_213[_214].apply(_213,args);
}
},_218);
}else{
if(msg){
_213[_214].call(_213,to);
}else{
_213[_214].apply(_213,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_212);
}
var _21b;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_21b=mi.proceed();
}else{
if(this.methodfunc){
_21b=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_212);
}
return (this.methodfunc)?_21b: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(_21c,_21d,_21e,_21f,_220,_221,once,_222,rate,_223){
var arr=this.getArr(_220);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_21c,_21d,_21e,_21f,_222,rate,_223];
if(once){
if(this.hasAdvice(_21c,_21d,_220,arr)>=0){
return;
}
}
if(_221=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_224,_225,_226,arr){
if(!arr){
arr=this.getArr(_226);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _225=="object")?(new String(_225)).toString():_225;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_224)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_227,_228,_229,once){
var arr=this.getArr(_229);
var ind=this.hasAdvice(_227,_228,_229,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_227,_228,_229,arr);
}
return true;
}});
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_22a){
if(!this.topics[_22a]){
this.topics[_22a]=new this.TopicImpl(_22a);
}
return this.topics[_22a];
};
this.registerPublisher=function(_22b,obj,_22c){
var _22b=this.getTopic(_22b);
_22b.registerPublisher(obj,_22c);
};
this.subscribe=function(_22d,obj,_22e){
var _22d=this.getTopic(_22d);
_22d.subscribe(obj,_22e);
};
this.unsubscribe=function(_22f,obj,_230){
var _22f=this.getTopic(_22f);
_22f.unsubscribe(obj,_230);
};
this.destroy=function(_231){
this.getTopic(_231).destroy();
delete this.topics[_231];
};
this.publishApply=function(_232,args){
var _232=this.getTopic(_232);
_232.sendMessage.apply(_232,args);
};
this.publish=function(_233,_234){
var _233=this.getTopic(_233);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_233.sendMessage.apply(_233,args);
};
};
dojo.event.topic.TopicImpl=function(_235){
this.topicName=_235;
this.subscribe=function(_236,_237){
var tf=_237||_236;
var to=(!_237)?dj_global:_236;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_238,_239){
var tf=(!_239)?_238:_239;
var to=(!_239)?null:_238;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_23a,_23b){
dojo.event.connect(_23a,_23b,this,"sendMessage");
};
this.sendMessage=function(_23c){
};
};
dojo.provide("dojo.event.browser");
dojo.require("dojo.event");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function _23d(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
};
this.clobber=function(_23e){
var na;
var tna;
if(_23e){
tna=_23e.all||_23e.getElementsByTagName("*");
na=[_23e];
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 _23f={};
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++){
_23d(el,el.__clobberAttrs__[j]);
}
_23d(el,"__clobberAttrs__");
_23d(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 _240=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,_241){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_241.length;x++){
node.__clobberAttrs__.push(_241[x]);
}
};
this.removeListener=function(node,_242,fp,_243){
if(!_243){
var _243=false;
}
_242=_242.toLowerCase();
if(_242.substr(0,2)=="on"){
_242=_242.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_242,fp,_243);
}
};
this.addListener=function(node,_244,fp,_245,_246){
if(!node){
return;
}
if(!_245){
var _245=false;
}
_244=_244.toLowerCase();
if(_244.substr(0,2)!="on"){
_244="on"+_244;
}
if(!_246){
var _247=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_245){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_247=fp;
}
if(node.addEventListener){
node.addEventListener(_244.substr(2),_247,_245);
return _247;
}else{
if(typeof node[_244]=="function"){
var _248=node[_244];
node[_244]=function(e){
_248(e);
return _247(e);
};
}else{
node[_244]=_247;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_244]);
}
return _247;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_249,_24a){
if(typeof _249!="function"){
dojo.raise("listener not a function: "+_249);
}
dojo.event.browser.currentEvent.currentTarget=_24a;
return _249.call(_24a,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,_24b){
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=(_24b?_24b:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _24c=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_24c.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_24c.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.logging.Logger");
dojo.provide("dojo.log");
dojo.require("dojo.lang");
dojo.logging.Record=function(lvl,msg){
this.level=lvl;
this.message=msg;
this.time=new Date();
};
dojo.logging.LogFilter=function(_24d){
this.passChain=_24d||"";
this.filter=function(_24e){
return true;
};
};
dojo.logging.Logger=function(){
this.cutOffLevel=0;
this.propagate=true;
this.parent=null;
this.data=[];
this.filters=[];
this.handlers=[];
};
dojo.lang.extend(dojo.logging.Logger,{argsToArr:function(args){
var ret=[];
for(var x=0;x<args.length;x++){
ret.push(args[x]);
}
return ret;
},setLevel:function(lvl){
this.cutOffLevel=parseInt(lvl);
},isEnabledFor:function(lvl){
return parseInt(lvl)>=this.cutOffLevel;
},getEffectiveLevel:function(){
if((this.cutOffLevel==0)&&(this.parent)){
return this.parent.getEffectiveLevel();
}
return this.cutOffLevel;
},addFilter:function(flt){
this.filters.push(flt);
return this.filters.length-1;
},removeFilterByIndex:function(_24f){
if(this.filters[_24f]){
delete this.filters[_24f];
return true;
}
return false;
},removeFilter:function(_250){
for(var x=0;x<this.filters.length;x++){
if(this.filters[x]===_250){
delete this.filters[x];
return true;
}
}
return false;
},removeAllFilters:function(){
this.filters=[];
},filter:function(rec){
for(var x=0;x<this.filters.length;x++){
if((this.filters[x]["filter"])&&(!this.filters[x].filter(rec))||(rec.level<this.cutOffLevel)){
return false;
}
}
return true;
},addHandler:function(hdlr){
this.handlers.push(hdlr);
return this.handlers.length-1;
},handle:function(rec){
if((!this.filter(rec))||(rec.level<this.cutOffLevel)){
return false;
}
for(var x=0;x<this.handlers.length;x++){
if(this.handlers[x]["handle"]){
this.handlers[x].handle(rec);
}
}
return true;
},log:function(lvl,msg){
if((this.propagate)&&(this.parent)&&(this.parent.rec.level>=this.cutOffLevel)){
this.parent.log(lvl,msg);
return false;
}
this.handle(new dojo.logging.Record(lvl,msg));
return true;
},debug:function(msg){
return this.logType("DEBUG",this.argsToArr(arguments));
},info:function(msg){
return this.logType("INFO",this.argsToArr(arguments));
},warning:function(msg){
return this.logType("WARNING",this.argsToArr(arguments));
},error:function(msg){
return this.logType("ERROR",this.argsToArr(arguments));
},critical:function(msg){
return this.logType("CRITICAL",this.argsToArr(arguments));
},exception:function(msg,e,_251){
if(e){
var _252=[e.name,(e.description||e.message)];
if(e.fileName){
_252.push(e.fileName);
_252.push("line "+e.lineNumber);
}
msg+=" "+_252.join(" : ");
}
this.logType("ERROR",msg);
if(!_251){
throw e;
}
},logType:function(type,args){
var na=[dojo.logging.log.getLevel(type)];
if(typeof args=="array"){
na=na.concat(args);
}else{
if((typeof args=="object")&&(args["length"])){
na=na.concat(this.argsToArr(args));
}else{
na=na.concat(this.argsToArr(arguments).slice(1));
}
}
return this.log.apply(this,na);
}});
void (function(){
var _253=dojo.logging.Logger.prototype;
_253.warn=_253.warning;
_253.err=_253.error;
_253.crit=_253.critical;
})();
dojo.logging.LogHandler=function(_254){
this.cutOffLevel=(_254)?_254:0;
this.formatter=null;
this.data=[];
this.filters=[];
};
dojo.logging.LogHandler.prototype.setFormatter=function(fmtr){
dojo.unimplemented("setFormatter");
};
dojo.logging.LogHandler.prototype.flush=function(){
dojo.unimplemented("flush");
};
dojo.logging.LogHandler.prototype.close=function(){
dojo.unimplemented("close");
};
dojo.logging.LogHandler.prototype.handleError=function(){
dojo.unimplemented("handleError");
};
dojo.logging.LogHandler.prototype.handle=function(_255){
if((this.filter(_255))&&(_255.level>=this.cutOffLevel)){
this.emit(_255);
}
};
dojo.logging.LogHandler.prototype.emit=function(_256){
dojo.unimplemented("emit");
};
void (function(){
var _257=["setLevel","addFilter","removeFilterByIndex","removeFilter","removeAllFilters","filter"];
var tgt=dojo.logging.LogHandler.prototype;
var src=dojo.logging.Logger.prototype;
for(var x=0;x<_257.length;x++){
tgt[_257[x]]=src[_257[x]];
}
})();
dojo.logging.log=new dojo.logging.Logger();
dojo.logging.log.levels=[{"name":"DEBUG","level":1},{"name":"INFO","level":2},{"name":"WARNING","level":3},{"name":"ERROR","level":4},{"name":"CRITICAL","level":5}];
dojo.logging.log.loggers={};
dojo.logging.log.getLogger=function(name){
if(!this.loggers[name]){
this.loggers[name]=new dojo.logging.Logger();
this.loggers[name].parent=this;
}
return this.loggers[name];
};
dojo.logging.log.getLevelName=function(lvl){
for(var x=0;x<this.levels.length;x++){
if(this.levels[x].level==lvl){
return this.levels[x].name;
}
}
return null;
};
dojo.logging.log.addLevelName=function(name,lvl){
if(this.getLevelName(name)){
this.err("could not add log level "+name+" because a level with that name already exists");
return false;
}
this.levels.append({"name":name,"level":parseInt(lvl)});
return true;
};
dojo.logging.log.getLevel=function(name){
for(var x=0;x<this.levels.length;x++){
if(this.levels[x].name.toUpperCase()==name.toUpperCase()){
return this.levels[x].level;
}
}
return null;
};
dojo.logging.MemoryLogHandler=function(_258,_259,_25a,_25b){
dojo.logging.LogHandler.call(this,_258);
this.numRecords=(typeof djConfig["loggingNumRecords"]!="undefined")?djConfig["loggingNumRecords"]:((_259)?_259:-1);
this.postType=(typeof djConfig["loggingPostType"]!="undefined")?djConfig["loggingPostType"]:(_25a||-1);
this.postInterval=(typeof djConfig["loggingPostInterval"]!="undefined")?djConfig["loggingPostInterval"]:(_25a||-1);
};
dojo.logging.MemoryLogHandler.prototype=new dojo.logging.LogHandler();
dojo.logging.MemoryLogHandler.prototype.emit=function(_25c){
this.data.push(_25c);
if(this.numRecords!=-1){
while(this.data.length>this.numRecords){
this.data.shift();
}
}
};
dojo.logging.logQueueHandler=new dojo.logging.MemoryLogHandler(0,50,0,10000);
dojo.logging.logQueueHandler.emit=function(_25d){
var _25e=String(dojo.log.getLevelName(_25d.level)+": "+_25d.time.toLocaleTimeString())+": "+_25d.message;
if(!dj_undef("debug",dj_global)){
dojo.debug(_25e);
}else{
if((typeof dj_global["print"]=="function")&&(!dojo.render.html.capable)){
print(_25e);
}
}
this.data.push(_25d);
if(this.numRecords!=-1){
while(this.data.length>this.numRecords){
this.data.shift();
}
}
};
dojo.logging.log.addHandler(dojo.logging.logQueueHandler);
dojo.log=dojo.logging.log;
dojo.kwCompoundRequire({common:["dojo.logging.Logger",false,false],rhino:["dojo.logging.RhinoLogger"]});
dojo.provide("dojo.logging.*");
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,_25f,_260,_261){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_25f){
this.mimetype=_25f;
}
if(_260){
this.transport=_260;
}
if(arguments.length>=4){
this.changeUrl=_261;
}
}
};
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,_262){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_263){
if(_263["url"]){
_263.url=_263.url.toString();
}
if(_263["formNode"]){
_263.formNode=dojo.byId(_263.formNode);
}
if(!_263["method"]&&_263["formNode"]&&_263["formNode"].method){
_263.method=_263["formNode"].method;
}
if(!_263["handle"]&&_263["handler"]){
_263.handle=_263.handler;
}
if(!_263["load"]&&_263["loaded"]){
_263.load=_263.loaded;
}
if(!_263["changeUrl"]&&_263["changeURL"]){
_263.changeUrl=_263.changeURL;
}
_263.encoding=dojo.lang.firstValued(_263["encoding"],djConfig["bindEncoding"],"");
_263.sendTransport=dojo.lang.firstValued(_263["sendTransport"],djConfig["ioSendTransport"],false);
var _264=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_264(_263[fn])){
continue;
}
if(_264(_263["handle"])){
_263[fn]=_263.handle;
}
}
dojo.lang.mixin(this,_263);
}});
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(_265){
if(!(_265 instanceof dojo.io.Request)){
try{
_265=new dojo.io.Request(_265);
}
catch(e){
dojo.debug(e);
}
}
var _266="";
if(_265["transport"]){
_266=_265["transport"];
if(!this[_266]){
return _265;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_265))){
_266=tmp;
}
}
if(_266==""){
return _265;
}
}
this[_266].bind(_265);
_265.bindSuccess=true;
return _265;
};
dojo.io.queueBind=function(_267){
if(!(_267 instanceof dojo.io.Request)){
try{
_267=new dojo.io.Request(_267);
}
catch(e){
dojo.debug(e);
}
}
var _268=_267.load;
_267.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_268.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _269=_267.error;
_267.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_269.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_267);
dojo.io._dispatchNextQueueBind();
return _267;
};
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,_26a,last){
var enc=/utf/i.test(_26a||"")?encodeURIComponent:dojo.string.encodeAscii;
var _26b=[];
var _26c=new Object();
for(var name in map){
var _26d=function(elt){
var val=enc(name)+"="+enc(elt);
_26b[(last==name)?"push":"unshift"](val);
};
if(!_26c[name]){
var _26e=map[name];
if(dojo.lang.isArray(_26e)){
dojo.lang.forEach(_26e,_26d);
}else{
_26d(_26e);
}
}
}
return _26b.join("&");
};
dojo.io.setIFrameSrc=function(_26f,src,_270){
try{
var r=dojo.render.html;
if(!_270){
if(r.safari){
_26f.location=src;
}else{
frames[_26f.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_26f.contentWindow.document;
}else{
if(r.safari){
idoc=_26f.document;
}else{
idoc=_26f.contentWindow;
}
}
if(!idoc){
_26f.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.require("dojo.string.common");
dojo.require("dojo.lang");
dojo.string.substituteParams=function(_271,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _271.replace(/\%\{(\w+)\}/g,function(_272,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_273,_274){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _273){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_273[name]);
}
if(_274){
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 _275=str.split(" ");
for(var i=0;i<_275.length;i++){
_275[i]=_275[i].charAt(0).toUpperCase()+_275[i].substring(1);
}
return _275.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 _276=escape(str);
var _277,re=/%u([0-9A-F]{4})/i;
while((_277=_276.match(re))){
var num=Number("0x"+_277[1]);
var _278=escape("&#"+num+";");
ret+=_276.substring(0,_277.index)+_278;
_276=_276.substring(_277.index+_277[0].length);
}
ret+=_276.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,_279){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_279){
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,_27a){
if(_27a){
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,_27b,_27c){
if(_27c){
str=str.toLowerCase();
_27b=_27b.toLowerCase();
}
return str.indexOf(_27b)==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,_27d){
if(_27d=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_27d=="\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,_27e){
var _27f=[];
for(var i=0,_280=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_27e){
_27f.push(str.substring(_280,i));
_280=i+1;
}
}
_27f.push(str.substr(_280));
return _27f;
};
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 _281=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_282){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_281.apply(this,[_282]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _283=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_284){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_283){
_283.apply(this,[_284]);
}
};
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,_285){
if(!dojo.render.html.opera){
var _286=this._getUrlQuery(_285.href);
if(_286==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_286==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_286==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _287=this.historyStack.pop();
if(!_287){
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(_287);
},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 _288=url.split("?");
if(_288.length<2){
return null;
}else{
return _288[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 _289=false;
var _28a=node.getElementsByTagName("input");
dojo.lang.forEach(_28a,function(_28b){
if(_289){
return;
}
if(_28b.getAttribute("type")=="file"){
_289=true;
}
});
return _289;
};
dojo.io.formHasFile=function(_28c){
return dojo.io.checkChildrenForFile(_28c);
};
dojo.io.updateNode=function(node,_28d){
node=dojo.byId(node);
var args=_28d;
if(dojo.lang.isString(_28d)){
args={url:_28d};
}
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(_28e,_28f,_290){
if((!_28e)||(!_28e.tagName)||(!_28e.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_290){
_290=dojo.io.formFilter;
}
var enc=/utf/i.test(_28f||"")?encodeURIComponent:dojo.string.encodeAscii;
var _291=[];
for(var i=0;i<_28e.elements.length;i++){
var elm=_28e.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_290(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){
_291.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_291.push(name+"="+enc(elm.value));
}
}else{
_291.push(name+"="+enc(elm.value));
}
}
}
var _292=_28e.getElementsByTagName("input");
for(var i=0;i<_292.length;i++){
var _293=_292[i];
if(_293.type.toLowerCase()=="image"&&_293.form==_28e&&_290(_293)){
var name=enc(_293.name);
_291.push(name+"="+enc(_293.value));
_291.push(name+".x=0");
_291.push(name+".y=0");
}
}
return _291.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 _294=form.getElementsByTagName("input");
for(var i=0;i<_294.length;i++){
var _295=_294[i];
if(_295.type.toLowerCase()=="image"&&_295.form==form){
this.connect(_295,"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 _296=false;
if(node.disabled||!node.name){
_296=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_296=node==this.clickedButton;
}else{
_296=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _296;
},connect:function(_297,_298,_299){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_297,_298,this,_299);
}else{
var fcn=dojo.lang.hitch(this,_299);
_297[_298]=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 _29a=this;
var _29b={};
this.useCache=false;
this.preventCache=false;
function _29c(url,_29d,_29e){
return url+"|"+_29d+"|"+_29e.toLowerCase();
};
function _29f(url,_2a0,_2a1,http){
_29b[_29c(url,_2a0,_2a1)]=http;
};
function _2a2(url,_2a3,_2a4){
return _29b[_29c(url,_2a3,_2a4)];
};
this.clearCache=function(){
_29b={};
};
function _2a5(_2a6,http,url,_2a7,_2a8){
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(_2a6.method.toLowerCase()=="head"){
var _2a9=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _2a9;
};
var _2aa=_2a9.split(/[\r\n]+/g);
for(var i=0;i<_2aa.length;i++){
var pair=_2aa[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_2a6.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_2a6.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_2a6.mimetype=="application/xml")||(_2a6.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(_2a8){
_29f(url,_2a7,_2a6.method,http);
}
_2a6[(typeof _2a6.load=="function")?"load":"handle"]("load",ret,http,_2a6);
}else{
var _2ab=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_2a6[(typeof _2a6.error=="function")?"error":"handle"]("error",_2ab,http,_2a6);
}
};
function _2ac(http,_2ad){
if(_2ad["headers"]){
for(var _2ae in _2ad["headers"]){
if(_2ae.toLowerCase()=="content-type"&&!_2ad["contentType"]){
_2ad["contentType"]=_2ad["headers"][_2ae];
}else{
http.setRequestHeader(_2ae,_2ad["headers"][_2ae]);
}
}
}
};
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);
_2a5(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 _2af=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_2b0){
return _2af&&dojo.lang.inArray((_2b0["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_2b0["formNode"]&&dojo.io.formHasFile(_2b0["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_2b1){
if(!_2b1["url"]){
if(!_2b1["formNode"]&&(_2b1["backButton"]||_2b1["back"]||_2b1["changeUrl"]||_2b1["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(_2b1);
return true;
}
}
var url=_2b1.url;
var _2b2="";
if(_2b1["formNode"]){
var ta=_2b1.formNode.getAttribute("action");
if((ta)&&(!_2b1["url"])){
url=ta;
}
var tp=_2b1.formNode.getAttribute("method");
if((tp)&&(!_2b1["method"])){
_2b1.method=tp;
}
_2b2+=dojo.io.encodeForm(_2b1.formNode,_2b1.encoding,_2b1["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_2b1["file"]){
_2b1.method="post";
}
if(!_2b1["method"]){
_2b1.method="get";
}
if(_2b1.method.toLowerCase()=="get"){
_2b1.multipart=false;
}else{
if(_2b1["file"]){
_2b1.multipart=true;
}else{
if(!_2b1["multipart"]){
_2b1.multipart=false;
}
}
}
if(_2b1["backButton"]||_2b1["back"]||_2b1["changeUrl"]){
dojo.undo.browser.addToHistory(_2b1);
}
var _2b3=_2b1["content"]||{};
if(_2b1.sendTransport){
_2b3["dojo.transport"]="xmlhttp";
}
do{
if(_2b1.postContent){
_2b2=_2b1.postContent;
break;
}
if(_2b3){
_2b2+=dojo.io.argsFromMap(_2b3,_2b1.encoding);
}
if(_2b1.method.toLowerCase()=="get"||!_2b1.multipart){
break;
}
var t=[];
if(_2b2.length){
var q=_2b2.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(_2b1.file){
if(dojo.lang.isArray(_2b1.file)){
for(var i=0;i<_2b1.file.length;++i){
var o=_2b1.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=_2b1.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+"--","");
_2b2=t.join("\r\n");
}
}while(false);
var _2b4=_2b1["sync"]?false:true;
var _2b5=_2b1["preventCache"]||(this.preventCache==true&&_2b1["preventCache"]!=false);
var _2b6=_2b1["useCache"]==true||(this.useCache==true&&_2b1["useCache"]!=false);
if(!_2b5&&_2b6){
var _2b7=_2a2(url,_2b2,_2b1.method);
if(_2b7){
_2a5(_2b1,_2b7,url,_2b2,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_2b1);
var _2b8=false;
if(_2b4){
var _2b9=this.inFlight.push({"req":_2b1,"http":http,"url":url,"query":_2b2,"useCache":_2b6,"startTime":_2b1.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_2b1.method.toLowerCase()=="post"){
http.open("POST",url,_2b4);
_2ac(http,_2b1);
http.setRequestHeader("Content-Type",_2b1.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2b1.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_2b2);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
_2a5(_2b1,{status:404},url,_2b2,_2b6);
}
}else{
var _2ba=url;
if(_2b2!=""){
_2ba+=(_2ba.indexOf("?")>-1?"&":"?")+_2b2;
}
if(_2b5){
_2ba+=(dojo.string.endsWithAny(_2ba,"?","&")?"":(_2ba.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_2b1.method.toUpperCase(),_2ba,_2b4);
_2ac(http,_2b1);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
_2a5(_2b1,{status:404},url,_2b2,_2b6);
}
}
if(!_2b4){
_2a5(_2b1,http,url,_2b2,_2b6);
}
_2b1.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_2bb,days,path,_2bc,_2bd){
var _2be=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_2be=d.toGMTString();
}
_2bb=escape(_2bb);
document.cookie=name+"="+_2bb+";"+(_2be!=-1?" expires="+_2be+";":"")+(path?"path="+path:"")+(_2bc?"; domain="+_2bc:"")+(_2bd?"; 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 _2bf=document.cookie.substring(idx+name.length+1);
var end=_2bf.indexOf(";");
if(end==-1){
end=_2bf.length;
}
_2bf=_2bf.substring(0,end);
_2bf=unescape(_2bf);
return _2bf;
};
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,_2c0,_2c1,_2c2){
if(arguments.length==5){
_2c2=_2c0;
_2c0=null;
_2c1=null;
}
var _2c3=[],_2c4,_2c5="";
if(!_2c2){
_2c4=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_2c4){
_2c4={};
}
for(var prop in obj){
if(prop==null){
delete _2c4[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
_2c4[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _2c4){
_2c3.push(escape(prop)+"="+escape(_2c4[prop]));
}
_2c5=_2c3.join("&");
}
dojo.io.cookie.setCookie(name,_2c5,days,path,_2c0,_2c1);
};
dojo.io.cookie.getObjectCookie=function(name){
var _2c6=null,_2c7=dojo.io.cookie.getCookie(name);
if(_2c7){
_2c6={};
var _2c8=_2c7.split("&");
for(var i=0;i<_2c8.length;i++){
var pair=_2c8[i].split("=");
var _2c9=pair[1];
if(isNaN(_2c9)){
_2c9=unescape(pair[1]);
}
_2c6[unescape(pair[0])]=_2c9;
}
}
return _2c6;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _2ca=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_2ca=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.kwCompoundRequire({common:["dojo.uri.Uri",false,false]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.io.IframeIO");
dojo.require("dojo.io.BrowserIO");
dojo.require("dojo.uri.*");
dojo.io.createIFrame=function(_2cb,_2cc){
if(window[_2cb]){
return window[_2cb];
}
if(window.frames[_2cb]){
return window.frames[_2cb];
}
var r=dojo.render.html;
var _2cd=null;
var turi=dojo.uri.dojoUri("iframe_history.html?noInit=true");
var _2ce=((r.ie)&&(dojo.render.os.win))?"<iframe name='"+_2cb+"' src='"+turi+"' onload='"+_2cc+"'>":"iframe";
_2cd=document.createElement(_2ce);
with(_2cd){
name=_2cb;
setAttribute("name",_2cb);
id=_2cb;
}
(document.body||document.getElementsByTagName("body")[0]).appendChild(_2cd);
window[_2cb]=_2cd;
with(_2cd.style){
position="absolute";
left=top="0px";
height=width="1px";
visibility="hidden";
}
if(!r.ie){
dojo.io.setIFrameSrc(_2cd,turi,true);
_2cd.onload=new Function(_2cc);
}
return _2cd;
};
dojo.io.iframeContentWindow=function(_2cf){
var win=_2cf.contentWindow||dojo.io.iframeContentDocument(_2cf).defaultView||dojo.io.iframeContentDocument(_2cf).__parent__||(_2cf.name&&document.frames[_2cf.name])||null;
return win;
};
dojo.io.iframeContentDocument=function(_2d0){
var doc=_2d0.contentDocument||((_2d0.contentWindow)&&(_2d0.contentWindow.document))||((_2d0.name)&&(document.frames[_2d0.name])&&(document.frames[_2d0.name].document))||null;
return doc;
};
dojo.io.IframeTransport=new function(){
var _2d1=this;
this.currentRequest=null;
this.requestQueue=[];
this.iframeName="dojoIoIframe";
this.fireNextRequest=function(){
if((this.currentRequest)||(this.requestQueue.length==0)){
return;
}
var cr=this.currentRequest=this.requestQueue.shift();
cr._contentToClean=[];
var fn=cr["formNode"];
var _2d2=cr["content"]||{};
if(cr.sendTransport){
_2d2["dojo.transport"]="iframe";
}
if(fn){
if(_2d2){
for(var x in _2d2){
if(!fn[x]){
var tn;
if(dojo.render.html.ie){
tn=document.createElement("<input type='hidden' name='"+x+"' value='"+_2d2[x]+"'>");
fn.appendChild(tn);
}else{
tn=document.createElement("input");
fn.appendChild(tn);
tn.type="hidden";
tn.name=x;
tn.value=_2d2[x];
}
cr._contentToClean.push(x);
}else{
fn[x].value=_2d2[x];
}
}
}
if(cr["url"]){
cr._originalAction=fn.getAttribute("action");
fn.setAttribute("action",cr.url);
}
if(!fn.getAttribute("method")){
fn.setAttribute("method",(cr["method"])?cr["method"]:"post");
}
cr._originalTarget=fn.getAttribute("target");
fn.setAttribute("target",this.iframeName);
fn.target=this.iframeName;
fn.submit();
}else{
var _2d3=dojo.io.argsFromMap(this.currentRequest.content);
var _2d4=(cr.url.indexOf("?")>-1?"&":"?")+_2d3;
dojo.io.setIFrameSrc(this.iframe,_2d4,true);
}
};
this.canHandle=function(_2d5){
return ((dojo.lang.inArray(_2d5["mimetype"],["text/plain","text/html","text/javascript","text/json"]))&&((_2d5["formNode"])&&(dojo.io.checkChildrenForFile(_2d5["formNode"])))&&(dojo.lang.inArray(_2d5["method"].toLowerCase(),["post","get"]))&&(!((_2d5["sync"])&&(_2d5["sync"]==true))));
};
this.bind=function(_2d6){
if(!this["iframe"]){
this.setUpIframe();
}
this.requestQueue.push(_2d6);
this.fireNextRequest();
return;
};
this.setUpIframe=function(){
this.iframe=dojo.io.createIFrame(this.iframeName,"dojo.io.IframeTransport.iframeOnload();");
};
this.iframeOnload=function(){
if(!_2d1.currentRequest){
_2d1.fireNextRequest();
return;
}
var req=_2d1.currentRequest;
var _2d7=req._contentToClean;
for(var i=0;i<_2d7.length;i++){
var key=_2d7[i];
if(dojo.render.html.safari){
var _2d8=req.formNode;
for(var j=0;j<_2d8.childNodes.length;j++){
var _2d9=_2d8.childNodes[j];
if(_2d9.name==key){
var _2da=_2d9.parentNode;
_2da.removeChild(_2d9);
break;
}
}
}else{
var _2db=req.formNode[key];
req.formNode.removeChild(_2db);
req.formNode[key]=null;
}
}
if(req["_originalAction"]){
req.formNode.setAttribute("action",req._originalAction);
}
req.formNode.setAttribute("target",req._originalTarget);
req.formNode.target=req._originalTarget;
var ifd=dojo.io.iframeContentDocument(_2d1.iframe);
var _2dc;
var _2dd=false;
try{
var cmt=req.mimetype;
if((cmt=="text/javascript")||(cmt=="text/json")){
var js=ifd.getElementsByTagName("textarea")[0].value;
if(cmt=="text/json"){
js="("+js+")";
}
_2dc=dj_eval(js);
}else{
if(cmt=="text/html"){
_2dc=ifd;
}else{
_2dc=ifd.getElementsByTagName("textarea")[0].value;
}
}
_2dd=true;
}
catch(e){
var _2de=new dojo.io.Error("IframeTransport Error");
if(dojo.lang.isFunction(req["error"])){
req.error("error",_2de,req);
}
}
try{
if(_2dd&&dojo.lang.isFunction(req["load"])){
req.load("load",_2dc,req);
}
}
catch(e){
throw e;
}
finally{
_2d1.currentRequest=null;
_2d1.fireNextRequest();
}
};
dojo.io.transports.addTransport("IframeTransport");
};
dojo.provide("dojo.date");
dojo.date.setDayOfYear=function(_2df,_2e0){
_2df.setMonth(0);
_2df.setDate(_2e0);
return _2df;
};
dojo.date.getDayOfYear=function(_2e1){
var _2e2=new Date(_2e1.getFullYear(),0,1);
return Math.floor((_2e1.getTime()-_2e2.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_2e3,week,_2e4){
if(arguments.length==1){
_2e4=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_2e5,_2e6){
if(arguments.length==1){
_2e6=0;
}
var _2e7=new Date(_2e5.getFullYear(),0,1);
var day=_2e7.getDay();
_2e7.setDate(_2e7.getDate()-day+_2e6-(day>_2e6?7:0));
return Math.floor((_2e5.getTime()-_2e7.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_2e8,week,_2e9){
if(arguments.length==1){
_2e9=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_2ea,_2eb){
if(arguments.length==1){
_2eb=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.setIso8601=function(_2ec,_2ed){
var _2ee=(_2ed.indexOf("T")==-1)?_2ed.split(" "):_2ed.split("T");
dojo.date.setIso8601Date(_2ec,_2ee[0]);
if(_2ee.length==2){
dojo.date.setIso8601Time(_2ec,_2ee[1]);
}
return _2ec;
};
dojo.date.fromIso8601=function(_2ef){
return dojo.date.setIso8601(new Date(0,0),_2ef);
};
dojo.date.setIso8601Date=function(_2f0,_2f1){
var _2f2="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_2f1.match(new RegExp(_2f2));
if(!d){
dojo.debug("invalid date string: "+_2f1);
return false;
}
var year=d[1];
var _2f3=d[4];
var date=d[6];
var _2f4=d[8];
var week=d[10];
var _2f5=(d[12])?d[12]:1;
_2f0.setYear(year);
if(_2f4){
dojo.date.setDayOfYear(_2f0,Number(_2f4));
}else{
if(week){
_2f0.setMonth(0);
_2f0.setDate(1);
var gd=_2f0.getDay();
var day=(gd)?gd:7;
var _2f6=Number(_2f5)+(7*Number(week));
if(day<=4){
_2f0.setDate(_2f6+1-day);
}else{
_2f0.setDate(_2f6+8-day);
}
}else{
if(_2f3){
_2f0.setDate(1);
_2f0.setMonth(_2f3-1);
}
if(date){
_2f0.setDate(date);
}
}
}
return _2f0;
};
dojo.date.fromIso8601Date=function(_2f7){
return dojo.date.setIso8601Date(new Date(0,0),_2f7);
};
dojo.date.setIso8601Time=function(_2f8,_2f9){
var _2fa="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_2f9.match(new RegExp(_2fa));
var _2fb=0;
if(d){
if(d[0]!="Z"){
_2fb=(Number(d[3])*60)+Number(d[5]);
_2fb*=((d[2]=="-")?1:-1);
}
_2fb-=_2f8.getTimezoneOffset();
_2f9=_2f9.substr(0,_2f9.length-d[0].length);
}
var _2fc="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
var d=_2f9.match(new RegExp(_2fc));
if(!d){
dojo.debug("invalid time string: "+_2f9);
return false;
}
var _2fd=d[1];
var mins=Number((d[3])?d[3]:0);
var secs=(d[5])?d[5]:0;
var ms=d[7]?(Number("0."+d[7])*1000):0;
_2f8.setHours(_2fd);
_2f8.setMinutes(mins);
_2f8.setSeconds(secs);
_2f8.setMilliseconds(ms);
return _2f8;
};
dojo.date.fromIso8601Time=function(_2fe){
return dojo.date.setIso8601Time(new Date(0,0),_2fe);
};
dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];
dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];
dojo.date.months=["January","February","March","April","May","June","July","August","September","October","November","December"];
dojo.date.shortMonths=["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"];
dojo.date.days=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
dojo.date.shortDays=["Sun","Mon","Tues","Wed","Thur","Fri","Sat"];
dojo.date.getDaysInMonth=function(_2ff){
var _300=_2ff.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_300==1&&dojo.date.isLeapYear(_2ff)){
return 29;
}else{
return days[_300];
}
};
dojo.date.isLeapYear=function(_301){
var year=_301.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getDayName=function(_302){
return dojo.date.days[_302.getDay()];
};
dojo.date.getDayShortName=function(_303){
return dojo.date.shortDays[_303.getDay()];
};
dojo.date.getMonthName=function(_304){
return dojo.date.months[_304.getMonth()];
};
dojo.date.getMonthShortName=function(_305){
return dojo.date.shortMonths[_305.getMonth()];
};
dojo.date.getTimezoneName=function(_306){
var _307=-(_306.getTimezoneOffset());
for(var i=0;i<dojo.date.timezoneOffsets.length;i++){
if(dojo.date.timezoneOffsets[i]==_307){
return dojo.date.shortTimezones[i];
}
}
function $(s){
s=String(s);
while(s.length<2){
s="0"+s;
}
return s;
};
return (_307<0?"-":"+")+$(Math.floor(Math.abs(_307)/60))+":"+$(Math.abs(_307)%60);
};
dojo.date.getOrdinal=function(_308){
var date=_308.getDate();
if(date%100!=11&&date%10==1){
return "st";
}else{
if(date%100!=12&&date%10==2){
return "nd";
}else{
if(date%100!=13&&date%10==3){
return "rd";
}else{
return "th";
}
}
}
};
dojo.date.format=dojo.date.strftime=function(_309,_30a){
var _30b=null;
function _30c(s,n){
s=String(s);
n=(n||2)-s.length;
while(n-->0){
s=(_30b==null?"0":_30b)+s;
}
return s;
};
function $(_30d){
switch(_30d){
case "a":
return dojo.date.getDayShortName(_309);
break;
case "A":
return dojo.date.getDayName(_309);
break;
case "b":
case "h":
return dojo.date.getMonthShortName(_309);
break;
case "B":
return dojo.date.getMonthName(_309);
break;
case "c":
return _309.toLocaleString();
break;
case "C":
return _30c(Math.floor(_309.getFullYear()/100));
break;
case "d":
return _30c(_309.getDate());
break;
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
break;
case "e":
if(_30b==null){
_30b=" ";
}
return _30c(_309.getDate(),2);
break;
case "g":
break;
case "G":
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
break;
case "H":
return _30c(_309.getHours());
break;
case "I":
return _30c(_309.getHours()%12||12);
break;
case "j":
return _30c(dojo.date.getDayOfYear(_309),3);
break;
case "m":
return _30c(_309.getMonth()+1);
break;
case "M":
return _30c(_309.getMinutes());
break;
case "n":
return "\n";
break;
case "p":
return _309.getHours()<12?"am":"pm";
break;
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
break;
case "R":
return $("H")+":"+$("M");
break;
case "S":
return _30c(_309.getSeconds());
break;
case "t":
return "\t";
break;
case "T":
return $("H")+":"+$("M")+":"+$("S");
break;
case "u":
return String(_309.getDay()||7);
break;
case "U":
return _30c(dojo.date.getWeekOfYear(_309));
break;
case "V":
return _30c(dojo.date.getIsoWeekOfYear(_309));
break;
case "W":
return _30c(dojo.date.getWeekOfYear(_309,1));
break;
case "w":
return String(_309.getDay());
break;
case "x":
break;
case "X":
break;
case "y":
return _30c(_309.getFullYear()%100);
break;
case "Y":
return String(_309.getFullYear());
break;
case "z":
var _30e=_309.getTimezoneOffset();
return (_30e<0?"-":"+")+_30c(Math.floor(Math.abs(_30e)/60))+":"+_30c(Math.abs(_30e)%60);
break;
case "Z":
return dojo.date.getTimezoneName(_309);
break;
case "%":
return "%";
break;
}
};
var _30f="";
var i=0,_310=0,_311;
while((_310=_30a.indexOf("%",i))!=-1){
_30f+=_30a.substring(i,_310++);
switch(_30a.charAt(_310++)){
case "_":
_30b=" ";
break;
case "-":
_30b="";
break;
case "0":
_30b="0";
break;
case "^":
_311="upper";
break;
case "#":
_311="swap";
break;
default:
_30b=null;
_310--;
break;
}
var _312=$(_30a.charAt(_310++));
if(_311=="upper"||(_311=="swap"&&/[a-z]/.test(_312))){
_312=_312.toUpperCase();
}else{
if(_311=="swap"&&!/[a-z]/.test(_312)){
_312=_312.toLowerCase();
}
}
var _313=null;
_30f+=_312;
i=_310;
}
_30f+=_30a.substring(i);
return _30f;
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_314,_315,_316){
var dA=_314;
var dB=_315||new Date();
var now=new Date();
var opt=_316||(dojo.date.compareTypes.DATE|dojo.date.compareTypes.TIME);
var d1=new Date(((opt&dojo.date.compareTypes.DATE)?(dA.getFullYear()):now.getFullYear()),((opt&dojo.date.compareTypes.DATE)?(dA.getMonth()):now.getMonth()),((opt&dojo.date.compareTypes.DATE)?(dA.getDate()):now.getDate()),((opt&dojo.date.compareTypes.TIME)?(dA.getHours()):0),((opt&dojo.date.compareTypes.TIME)?(dA.getMinutes()):0),((opt&dojo.date.compareTypes.TIME)?(dA.getSeconds()):0));
var d2=new Date(((opt&dojo.date.compareTypes.DATE)?(dB.getFullYear()):now.getFullYear()),((opt&dojo.date.compareTypes.DATE)?(dB.getMonth()):now.getMonth()),((opt&dojo.date.compareTypes.DATE)?(dB.getDate()):now.getDate()),((opt&dojo.date.compareTypes.TIME)?(dB.getHours()):0),((opt&dojo.date.compareTypes.TIME)?(dB.getMinutes()):0),((opt&dojo.date.compareTypes.TIME)?(dB.getSeconds()):0));
if(d1.valueOf()>d2.valueOf()){
return 1;
}
if(d1.valueOf()<d2.valueOf()){
return -1;
}
return 0;
};
dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6};
dojo.date.add=function(d,unit,_317){
var n=(_317)?_317:1;
var v;
switch(unit){
case dojo.date.dateParts.YEAR:
v=new Date(d.getFullYear()+n,d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.MONTH:
v=new Date(d.getFullYear(),d.getMonth()+n,d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.HOUR:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours()+n,d.getMinutes(),d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.MINUTE:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes()+n,d.getSeconds(),d.getMilliseconds());
break;
case dojo.date.dateParts.SECOND:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds()+n,d.getMilliseconds());
break;
case dojo.date.dateParts.MILLISECOND:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()+n);
break;
default:
v=new Date(d.getFullYear(),d.getMonth(),d.getDate()+n,d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());
}
return v;
};
dojo.date.toString=function(date,_318){
dojo.deprecated("dojo.date.toString","use dojo.date.format instead","0.4");
if(_318.indexOf("#d")>-1){
_318=_318.replace(/#dddd/g,dojo.date.getDayOfWeekName(date));
_318=_318.replace(/#ddd/g,dojo.date.getShortDayOfWeekName(date));
_318=_318.replace(/#dd/g,(date.getDate().toString().length==1?"0":"")+date.getDate());
_318=_318.replace(/#d/g,date.getDate());
}
if(_318.indexOf("#M")>-1){
_318=_318.replace(/#MMMM/g,dojo.date.getMonthName(date));
_318=_318.replace(/#MMM/g,dojo.date.getShortMonthName(date));
_318=_318.replace(/#MM/g,((date.getMonth()+1).toString().length==1?"0":"")+(date.getMonth()+1));
_318=_318.replace(/#M/g,date.getMonth()+1);
}
if(_318.indexOf("#y")>-1){
var _319=date.getFullYear().toString();
_318=_318.replace(/#yyyy/g,_319);
_318=_318.replace(/#yy/g,_319.substring(2));
_318=_318.replace(/#y/g,_319.substring(3));
}
if(_318.indexOf("#")==-1){
return _318;
}
if(_318.indexOf("#h")>-1){
var _31a=date.getHours();
_31a=(_31a>12?_31a-12:(_31a==0)?12:_31a);
_318=_318.replace(/#hh/g,(_31a.toString().length==1?"0":"")+_31a);
_318=_318.replace(/#h/g,_31a);
}
if(_318.indexOf("#H")>-1){
_318=_318.replace(/#HH/g,(date.getHours().toString().length==1?"0":"")+date.getHours());
_318=_318.replace(/#H/g,date.getHours());
}
if(_318.indexOf("#m")>-1){
_318=_318.replace(/#mm/g,(date.getMinutes().toString().length==1?"0":"")+date.getMinutes());
_318=_318.replace(/#m/g,date.getMinutes());
}
if(_318.indexOf("#s")>-1){
_318=_318.replace(/#ss/g,(date.getSeconds().toString().length==1?"0":"")+date.getSeconds());
_318=_318.replace(/#s/g,date.getSeconds());
}
if(_318.indexOf("#T")>-1){
_318=_318.replace(/#TT/g,date.getHours()>=12?"PM":"AM");
_318=_318.replace(/#T/g,date.getHours()>=12?"P":"A");
}
if(_318.indexOf("#t")>-1){
_318=_318.replace(/#tt/g,date.getHours()>=12?"pm":"am");
_318=_318.replace(/#t/g,date.getHours()>=12?"p":"a");
}
return _318;
};
dojo.date.daysInMonth=function(_31b,year){
dojo.deprecated("daysInMonth(month, year)","replaced by getDaysInMonth(dateObject)","0.4");
return dojo.date.getDaysInMonth(new Date(year,_31b,1));
};
dojo.date.toLongDateString=function(date){
dojo.deprecated("dojo.date.toLongDateString","use dojo.date.format(date, \"%B %e, %Y\") instead","0.4");
return dojo.date.format(date,"%B %e, %Y");
};
dojo.date.toShortDateString=function(date){
dojo.deprecated("dojo.date.toShortDateString","use dojo.date.format(date, \"%b %e, %Y\") instead","0.4");
return dojo.date.format(date,"%b %e, %Y");
};
dojo.date.toMilitaryTimeString=function(date){
dojo.deprecated("dojo.date.toMilitaryTimeString","use dojo.date.format(date, \"%T\")","0.4");
return dojo.date.format(date,"%T");
};
dojo.date.toRelativeString=function(date){
var now=new Date();
var diff=(now-date)/1000;
var end=" ago";
var _31c=false;
if(diff<0){
_31c=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}else{
if(diff<3600){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}else{
if(diff<3600*24&&date.getDay()==now.getDay()){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}else{
if(diff<3600*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _31c?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}else{
return dojo.date.toShortDateString(date);
}
}
}
}
};
dojo.date.getDayOfWeekName=function(date){
dojo.deprecated("dojo.date.getDayOfWeekName","use dojo.date.getDayName instead","0.4");
return dojo.date.days[date.getDay()];
};
dojo.date.getShortDayOfWeekName=function(date){
dojo.deprecated("dojo.date.getShortDayOfWeekName","use dojo.date.getDayShortName instead","0.4");
return dojo.date.shortDays[date.getDay()];
};
dojo.date.getShortMonthName=function(date){
dojo.deprecated("dojo.date.getShortMonthName","use dojo.date.getMonthShortName instead","0.4");
return dojo.date.shortMonths[date.getMonth()];
};
dojo.date.toSql=function(date,_31d){
return dojo.date.format(date,"%F"+!_31d?" %T":"");
};
dojo.date.fromSql=function(_31e){
var _31f=_31e.split(/[\- :]/g);
while(_31f.length<6){
_31f.push(0);
}
return new Date(_31f[0],(parseInt(_31f[1],10)-1),_31f[2],_31f[3],_31f[4],_31f[5]);
};
dojo.provide("dojo.string.Builder");
dojo.require("dojo.string");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b=str||"";
var _320=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(s){
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_320+=s.length;
this.length=_320;
return this;
};
this.clear=function(){
a=[];
b="";
_320=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_320=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_320=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_320=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
};
dojo.kwCompoundRequire({common:["dojo.string","dojo.string.common","dojo.string.extras","dojo.string.Builder"]});
dojo.provide("dojo.string.*");
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("dojo.AdapterRegistry");
dojo.require("dojo.lang.func");
dojo.AdapterRegistry=function(){
this.pairs=[];
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_321,wrap,_322){
if(_322){
this.pairs.unshift([name,_321,wrap]);
}else{
this.pairs.push([name,_321,wrap]);
}
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
return pair[2].apply(this,arguments);
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.require("dojo.lang.func");
dojo.require("dojo.string.extras");
dojo.require("dojo.AdapterRegistry");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_323,wrap,_324){
dojo.json.jsonRegistry.register(name,_323,wrap,_324);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},evalJSON:function(json){
dojo.deprecated("dojo.json.evalJSON","use dojo.json.evalJson","0.4");
return this.evalJson(json);
},serialize:function(o){
var _325=typeof (o);
if(_325=="undefined"){
return "undefined";
}else{
if((_325=="number")||(_325=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_325=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _326;
if(typeof (o.__json__)=="function"){
_326=o.__json__();
if(o!==_326){
return me(_326);
}
}
if(typeof (o.json)=="function"){
_326=o.json();
if(o!==_326){
return me(_326);
}
}
if(_325!="function"&&typeof (o.length)=="number"){
var res=[];
for(var i=0;i<o.length;i++){
var val=me(o[i]);
if(typeof (val)!="string"){
val="undefined";
}
res.push(val);
}
return "["+res.join(",")+"]";
}
try{
window.o=o;
_326=dojo.json.jsonRegistry.match(o);
return me(_326);
}
catch(e){
}
if(_325=="function"){
return null;
}
res=[];
for(var k in o){
var _327;
if(typeof (k)=="number"){
_327="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_327=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_327+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.Deferred");
dojo.require("dojo.lang.func");
dojo.Deferred=function(_328){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_328;
this.silentlyCancelled=false;
};
dojo.lang.extend(dojo.Deferred,{getFunctionFromArgs:function(){
var a=arguments;
if((a[0])&&(!a[1])){
if(dojo.lang.isFunction(a[0])){
return a[0];
}else{
if(dojo.lang.isString(a[0])){
return dj_global[a[0]];
}
}
}else{
if((a[0])&&(a[1])){
return dojo.lang.hitch(a[0],a[1]);
}
}
return null;
},repr:function(){
var _329;
if(this.fired==-1){
_329="unfired";
}else{
if(this.fired==0){
_329="success";
}else{
_329="error";
}
}
return "Deferred("+this.id+", "+_329+")";
},toString:dojo.lang.forward("repr"),_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
if(this.fired==-1){
if(this.canceller){
this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
this.errback(new Error(this.repr()));
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_pause:function(){
this.paused++;
},_unpause:function(){
this.paused--;
if((this.paused==0)&&(this.fired>=0)){
this._fire();
}
},_continue:function(res){
this._resback(res);
this._unpause();
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
dojo.raise("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _32a=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_32a=dojo.lang.curryArguments(null,_32a,arguments,2);
}
return this.addCallbacks(_32a,_32a);
},addCallback:function(cb,cbfn){
var _32b=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_32b=dojo.lang.curryArguments(null,_32b,arguments,2);
}
return this.addCallbacks(_32b,null);
},addErrback:function(cb,cbfn){
var _32c=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_32c=dojo.lang.curryArguments(null,_32c,arguments,2);
}
return this.addCallbacks(null,_32c);
return this.addCallbacks(null,cbfn);
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var _32d=this.chain;
var _32e=this.fired;
var res=this.results[_32e];
var self=this;
var cb=null;
while(_32d.length>0&&this.paused==0){
var pair=_32d.shift();
var f=pair[_32e];
if(f==null){
continue;
}
try{
res=f(res);
_32e=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._continue(res);
};
this._pause();
}
}
catch(err){
_32e=1;
res=err;
}
}
this.fired=_32e;
this.results[_32e]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
dojo.provide("dojo.rpc.Deferred");
dojo.require("dojo.Deferred");
dojo.rpc.Deferred=dojo.Deferred;
dojo.rpc.Deferred.prototype=dojo.Deferred.prototype;
dojo.provide("dojo.rpc.RpcService");
dojo.require("dojo.io.*");
dojo.require("dojo.json");
dojo.require("dojo.lang.func");
dojo.require("dojo.rpc.Deferred");
dojo.rpc.RpcService=function(url){
if(url){
this.connect(url);
}
};
dojo.lang.extend(dojo.rpc.RpcService,{strictArgChecks:true,serviceUrl:"",parseResults:function(obj){
return obj;
},errorCallback:function(_32f){
return function(type,obj,e){
_32f.errback(e);
};
},resultCallback:function(_330){
var tf=dojo.lang.hitch(this,function(type,obj,e){
var _331=this.parseResults(obj||e);
_330.callback(_331);
});
return tf;
},generateMethod:function(_332,_333,url){
return dojo.lang.hitch(this,function(){
var _334=new dojo.rpc.Deferred();
if((this.strictArgChecks)&&(_333!=null)&&(arguments.length!=_333.length)){
dojo.raise("Invalid number of parameters for remote method.");
}else{
this.bind(_332,arguments,_334,url);
}
return _334;
});
},processSmd:function(_335){
dojo.debug("RpcService: Processing returned SMD.");
if(_335.methods){
dojo.lang.forEach(_335.methods,function(m){
if(m&&m["name"]){
dojo.debug("RpcService: Creating Method: this.",m.name,"()");
this[m.name]=this.generateMethod(m.name,m.parameters,m["url"]||m["serviceUrl"]||m["serviceURL"]);
if(dojo.lang.isFunction(this[m.name])){
dojo.debug("RpcService: Successfully created",m.name,"()");
}else{
dojo.debug("RpcService: Failed to create",m.name,"()");
}
}
},this);
}
this.serviceUrl=_335.serviceUrl||_335.serviceURL;
dojo.debug("RpcService: Dojo RpcService is ready for use.");
},connect:function(_336){
dojo.debug("RpcService: Attempting to load SMD document from:",_336);
dojo.io.bind({url:_336,mimetype:"text/json",load:dojo.lang.hitch(this,function(type,_337,e){
return this.processSmd(_337);
}),sync:true});
}});
dojo.provide("dojo.rpc.JsonService");
dojo.require("dojo.rpc.RpcService");
dojo.require("dojo.io.*");
dojo.require("dojo.json");
dojo.require("dojo.lang");
dojo.rpc.JsonService=function(args){
if(args){
if(dojo.lang.isString(args)){
this.connect(args);
}else{
if(args["smdUrl"]){
this.connect(args.smdUrl);
}
if(args["smdStr"]){
this.processSmd(dj_eval("("+args.smdStr+")"));
}
if(args["smdObj"]){
this.processSmd(args.smdObj);
}
if(args["serviceUrl"]){
this.serviceUrl=args.serviceUrl;
}
if(typeof args["strictArgChecks"]!="undefined"){
this.strictArgChecks=args.strictArgChecks;
}
}
}
};
dojo.inherits(dojo.rpc.JsonService,dojo.rpc.RpcService);
dojo.lang.extend(dojo.rpc.JsonService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_338,_339){
var _33a=new dojo.rpc.Deferred();
this.bind(_338,_339,_33a);
return _33a;
},bind:function(_33b,_33c,_33d,url){
dojo.io.bind({url:url||this.serviceUrl,postContent:this.createRequest(_33b,_33c),method:"POST",contentType:this.contentType,mimetype:"text/json",load:this.resultCallback(_33d),preventCache:this.bustCache});
},createRequest:function(_33e,_33f){
var req={"params":_33f,"method":_33e,"id":++this.lastSubmissionId};
var data=dojo.json.serialize(req);
dojo.debug("JsonService: JSON-RPC Request: "+data);
return data;
},parseResults:function(obj){
if(!obj){
return;
}
if(obj["Result"]||obj["result"]){
return obj["result"]||obj["Result"];
}else{
if(obj["ResultSet"]){
return obj["ResultSet"];
}else{
return obj;
}
}
}});
dojo.kwCompoundRequire({common:["dojo.rpc.JsonService",false,false]});
dojo.provide("dojo.rpc.*");
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
function _340(node){
var _341=node.tagName;
if(_341.substr(0,5).toLowerCase()!="dojo:"){
if(_341.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_341.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 _342=node.className||node.getAttribute("class");
if(_342&&_342.indexOf&&_342.indexOf("dojo-")!=-1){
var _343=_342.split(" ");
for(var x=0;x<_343.length;x++){
if(_343[x].length>5&&_343[x].indexOf("dojo-")>=0){
return "dojo:"+_343[x].substr(5).toLowerCase();
}
}
}
}
}
return _341.toLowerCase();
};
this.parseElement=function(node,_344,_345,_346){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _347={};
var _348=_340(node);
_347[_348]=[];
if((!_345)||(_348.substr(0,4).toLowerCase()=="dojo")){
var _349=_34a(node);
for(var attr in _349){
if((!_347[_348][attr])||(typeof _347[_348][attr]!="array")){
_347[_348][attr]=[];
}
_347[_348][attr].push(_349[attr]);
}
_347[_348].nodeRef=node;
_347.tagName=_348;
_347.index=_346||0;
}
var _34b=0;
var tcn,i=0,_34c=node.childNodes;
while(tcn=_34c[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_34b++;
var ctn=_340(tcn);
if(!_347[ctn]){
_347[ctn]=[];
}
_347[ctn].push(this.parseElement(tcn,true,_345,_34b));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_347[ctn][_347[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_347[_348].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _347;
};
function _34a(node){
var _34d={};
var atts=node.attributes;
var _34e,i=0;
while(_34e=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_34e){
continue;
}
if((typeof _34e=="object")&&(typeof _34e.nodeValue=="undefined")||(_34e.nodeValue==null)||(_34e.nodeValue=="")){
continue;
}
}
var nn=(_34e.nodeName.indexOf("dojo:")==-1)?_34e.nodeName:_34e.nodeName.split("dojo:")[1];
_34d[nn]={value:_34e.nodeValue};
}
return _34d;
};
};
dojo.provide("dojo.xml.domUtil");
dojo.require("dojo.graphics.color");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.deprecated("dojo.xml.domUtil","use dojo.dom instead","0.4");
dojo.xml.domUtil=new function(){
this.nodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};
this.dojoml="http://www.dojotoolkit.org/2004/dojoml";
this.idIncrement=0;
this.getTagName=function(){
return dojo.dom.getTagName.apply(dojo.dom,arguments);
};
this.getUniqueId=function(){
return dojo.dom.getUniqueId.apply(dojo.dom,arguments);
};
this.getFirstChildTag=function(){
return dojo.dom.getFirstChildElement.apply(dojo.dom,arguments);
};
this.getLastChildTag=function(){
return dojo.dom.getLastChildElement.apply(dojo.dom,arguments);
};
this.getNextSiblingTag=function(){
return dojo.dom.getNextSiblingElement.apply(dojo.dom,arguments);
};
this.getPreviousSiblingTag=function(){
return dojo.dom.getPreviousSiblingElement.apply(dojo.dom,arguments);
};
this.forEachChildTag=function(node,_34f){
var _350=this.getFirstChildTag(node);
while(_350){
if(_34f(_350)=="break"){
break;
}
_350=this.getNextSiblingTag(_350);
}
};
this.moveChildren=function(){
return dojo.dom.moveChildren.apply(dojo.dom,arguments);
};
this.copyChildren=function(){
return dojo.dom.copyChildren.apply(dojo.dom,arguments);
};
this.clearChildren=function(){
return dojo.dom.removeChildren.apply(dojo.dom,arguments);
};
this.replaceChildren=function(){
return dojo.dom.replaceChildren.apply(dojo.dom,arguments);
};
this.getStyle=function(){
return dojo.style.getStyle.apply(dojo.style,arguments);
};
this.toCamelCase=function(){
return dojo.style.toCamelCase.apply(dojo.style,arguments);
};
this.toSelectorCase=function(){
return dojo.style.toSelectorCase.apply(dojo.style,arguments);
};
this.getAncestors=function(){
return dojo.dom.getAncestors.apply(dojo.dom,arguments);
};
this.isChildOf=function(){
return dojo.dom.isDescendantOf.apply(dojo.dom,arguments);
};
this.createDocumentFromText=function(){
return dojo.dom.createDocumentFromText.apply(dojo.dom,arguments);
};
if(dojo.render.html.capable||dojo.render.svg.capable){
this.createNodesFromText=function(txt,wrap){
return dojo.dom.createNodesFromText.apply(dojo.dom,arguments);
};
}
this.extractRGB=function(_351){
return dojo.graphics.color.extractRGB(_351);
};
this.hex2rgb=function(hex){
return dojo.graphics.color.hex2rgb(hex);
};
this.rgb2hex=function(r,g,b){
return dojo.graphics.color.rgb2hex(r,g,b);
};
this.insertBefore=function(){
return dojo.dom.insertBefore.apply(dojo.dom,arguments);
};
this.before=this.insertBefore;
this.insertAfter=function(){
return dojo.dom.insertAfter.apply(dojo.dom,arguments);
};
this.after=this.insertAfter;
this.insert=function(){
return dojo.dom.insertAtPosition.apply(dojo.dom,arguments);
};
this.insertAtIndex=function(){
return dojo.dom.insertAtIndex.apply(dojo.dom,arguments);
};
this.textContent=function(){
return dojo.dom.textContent.apply(dojo.dom,arguments);
};
this.renderedTextContent=function(){
return dojo.dom.renderedTextContent.apply(dojo.dom,arguments);
};
this.remove=function(node){
return dojo.dom.removeNode.apply(dojo.dom,arguments);
};
};
dojo.provide("dojo.xml.htmlUtil");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.require("dojo.dom");
dojo.deprecated("dojo.xml.htmlUtil","use dojo.html instead","0.4");
dojo.xml.htmlUtil=new function(){
this.styleSheet=dojo.style.styleSheet;
this._clobberSelection=function(){
return dojo.html.clearSelection.apply(dojo.html,arguments);
};
this.disableSelect=function(){
return dojo.html.disableSelection.apply(dojo.html,arguments);
};
this.enableSelect=function(){
return dojo.html.enableSelection.apply(dojo.html,arguments);
};
this.getInnerWidth=function(){
return dojo.style.getInnerWidth.apply(dojo.style,arguments);
};
this.getOuterWidth=function(node){
dojo.unimplemented("dojo.xml.htmlUtil.getOuterWidth");
};
this.getInnerHeight=function(){
return dojo.style.getInnerHeight.apply(dojo.style,arguments);
};
this.getOuterHeight=function(node){
dojo.unimplemented("dojo.xml.htmlUtil.getOuterHeight");
};
this.getTotalOffset=function(){
return dojo.style.getTotalOffset.apply(dojo.style,arguments);
};
this.totalOffsetLeft=function(){
return dojo.style.totalOffsetLeft.apply(dojo.style,arguments);
};
this.getAbsoluteX=this.totalOffsetLeft;
this.totalOffsetTop=function(){
return dojo.style.totalOffsetTop.apply(dojo.style,arguments);
};
this.getAbsoluteY=this.totalOffsetTop;
this.getEventTarget=function(){
return dojo.html.getEventTarget.apply(dojo.html,arguments);
};
this.getScrollTop=function(){
return dojo.html.getScrollTop.apply(dojo.html,arguments);
};
this.getScrollLeft=function(){
return dojo.html.getScrollLeft.apply(dojo.html,arguments);
};
this.evtTgt=this.getEventTarget;
this.getParentOfType=function(){
return dojo.html.getParentOfType.apply(dojo.html,arguments);
};
this.getAttribute=function(){
return dojo.html.getAttribute.apply(dojo.html,arguments);
};
this.getAttr=function(node,attr){
dojo.deprecated("dojo.xml.htmlUtil.getAttr","use dojo.xml.htmlUtil.getAttribute instead","0.4");
return dojo.xml.htmlUtil.getAttribute(node,attr);
};
this.hasAttribute=function(){
return dojo.html.hasAttribute.apply(dojo.html,arguments);
};
this.hasAttr=function(node,attr){
dojo.deprecated("dojo.xml.htmlUtil.hasAttr","use dojo.xml.htmlUtil.hasAttribute instead","0.4");
return dojo.xml.htmlUtil.hasAttribute(node,attr);
};
this.getClass=function(){
return dojo.html.getClass.apply(dojo.html,arguments);
};
this.hasClass=function(){
return dojo.html.hasClass.apply(dojo.html,arguments);
};
this.prependClass=function(){
return dojo.html.prependClass.apply(dojo.html,arguments);
};
this.addClass=function(){
return dojo.html.addClass.apply(dojo.html,arguments);
};
this.setClass=function(){
return dojo.html.setClass.apply(dojo.html,arguments);
};
this.removeClass=function(){
return dojo.html.removeClass.apply(dojo.html,arguments);
};
this.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
this.getElementsByClass=function(){
return dojo.html.getElementsByClass.apply(dojo.html,arguments);
};
this.getElementsByClassName=this.getElementsByClass;
this.setOpacity=function(){
return dojo.style.setOpacity.apply(dojo.style,arguments);
};
this.getOpacity=function(){
return dojo.style.getOpacity.apply(dojo.style,arguments);
};
this.clearOpacity=function(){
return dojo.style.clearOpacity.apply(dojo.style,arguments);
};
this.gravity=function(){
return dojo.html.gravity.apply(dojo.html,arguments);
};
this.gravity.NORTH=1;
this.gravity.SOUTH=1<<1;
this.gravity.EAST=1<<2;
this.gravity.WEST=1<<3;
this.overElement=function(){
return dojo.html.overElement.apply(dojo.html,arguments);
};
this.insertCssRule=function(){
return dojo.style.insertCssRule.apply(dojo.style,arguments);
};
this.insertCSSRule=function(_352,_353,_354){
dojo.deprecated("dojo.xml.htmlUtil.insertCSSRule","use dojo.style.insertCssRule instead","0.4");
return dojo.xml.htmlUtil.insertCssRule(_352,_353,_354);
};
this.removeCssRule=function(){
return dojo.style.removeCssRule.apply(dojo.style,arguments);
};
this.removeCSSRule=function(_355){
dojo.deprecated("dojo.xml.htmlUtil.removeCSSRule","use dojo.xml.htmlUtil.removeCssRule instead","0.4");
return dojo.xml.htmlUtil.removeCssRule(_355);
};
this.insertCssFile=function(){
return dojo.style.insertCssFile.apply(dojo.style,arguments);
};
this.insertCSSFile=function(URI,doc,_356){
dojo.deprecated("dojo.xml.htmlUtil.insertCSSFile","use dojo.xml.htmlUtil.insertCssFile instead","0.4");
return dojo.xml.htmlUtil.insertCssFile(URI,doc,_356);
};
this.getBackgroundColor=function(){
return dojo.style.getBackgroundColor.apply(dojo.style,arguments);
};
this.getUniqueId=function(){
return dojo.dom.getUniqueId();
};
this.getStyle=function(){
return dojo.style.getStyle.apply(dojo.style,arguments);
};
};
dojo.require("dojo.xml.Parse");
dojo.kwCompoundRequire({common:["dojo.xml.domUtil"],browser:["dojo.xml.htmlUtil"],dashboard:["dojo.xml.htmlUtil"],svg:["dojo.xml.svgUtil"]});
dojo.provide("dojo.xml.*");
dojo.provide("dojo.lang.type");
dojo.require("dojo.lang.common");
dojo.lang.whatAmI=function(wh){
try{
if(dojo.lang.isArray(wh)){
return "array";
}
if(dojo.lang.isFunction(wh)){
return "function";
}
if(dojo.lang.isString(wh)){
return "string";
}
if(dojo.lang.isNumber(wh)){
return "number";
}
if(dojo.lang.isBoolean(wh)){
return "boolean";
}
if(dojo.lang.isAlien(wh)){
return "alien";
}
if(dojo.lang.isUndefined(wh)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](wh)){
return name;
}
}
if(dojo.lang.isObject(wh)){
return "object";
}
}
catch(E){
}
return "unknown";
};
dojo.lang.whatAmI.custom={};
dojo.lang.isNumeric=function(wh){
return (!isNaN(wh)&&isFinite(wh)&&(wh!=null)&&!dojo.lang.isBoolean(wh)&&!dojo.lang.isArray(wh));
};
dojo.lang.isBuiltIn=function(wh){
return (dojo.lang.isArray(wh)||dojo.lang.isFunction(wh)||dojo.lang.isString(wh)||dojo.lang.isNumber(wh)||dojo.lang.isBoolean(wh)||(wh==null)||(wh instanceof Error)||(typeof wh=="error"));
};
dojo.lang.isPureObject=function(wh){
return ((wh!=null)&&dojo.lang.isObject(wh)&&wh.constructor==Object);
};
dojo.lang.isOfType=function(_357,type){
if(dojo.lang.isArray(type)){
var _358=type;
for(var i in _358){
var _359=_358[i];
if(dojo.lang.isOfType(_357,_359)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_357);
break;
case Function:
case "function":
return dojo.lang.isFunction(_357);
break;
case String:
case "string":
return dojo.lang.isString(_357);
break;
case Number:
case "number":
return dojo.lang.isNumber(_357);
break;
case "numeric":
return dojo.lang.isNumeric(_357);
break;
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_357);
break;
case Object:
case "object":
return dojo.lang.isObject(_357);
break;
case "pureobject":
return dojo.lang.isPureObject(_357);
break;
case "builtin":
return dojo.lang.isBuiltIn(_357);
break;
case "alien":
return dojo.lang.isAlien(_357);
break;
case "undefined":
return dojo.lang.isUndefined(_357);
break;
case null:
case "null":
return (_357===null);
break;
case "optional":
return ((_357===null)||dojo.lang.isUndefined(_357));
break;
default:
if(dojo.lang.isFunction(type)){
return (_357 instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
break;
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _35a=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_35a[i++]];
}while(i<_35a.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _35b=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_35b[i++]];
}while(i<_35b.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.array");
dojo.require("dojo.lang.type");
dojo.lang.assert=function(_35c,_35d){
if(!_35c){
var _35e="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_35d){
_35e+="Here's the assert message:\n"+_35d+"\n";
}
throw new Error(_35e);
}
};
dojo.lang.assertType=function(_35f,type,_360){
if(!dojo.lang.isOfType(_35f,type)){
if(!_360){
if(!dojo.lang.assertType._errorMessage){
dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed.";
}
_360=dojo.lang.assertType._errorMessage;
}
dojo.lang.assert(false,_360);
}
};
dojo.lang.assertValidKeywords=function(_361,_362,_363){
var key;
if(!_363){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_363=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_362)){
for(key in _361){
if(!dojo.lang.inArray(_362,key)){
dojo.lang.assert(false,_363+" "+key);
}
}
}else{
for(key in _361){
if(!(key in _362)){
dojo.lang.assert(false,_363+" "+key);
}
}
}
};
dojo.provide("dojo.lang.repr");
dojo.require("dojo.lang.common");
dojo.require("dojo.AdapterRegistry");
dojo.require("dojo.string.extras");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_364,wrap,_365){
dojo.lang.reprRegistry.register(name,_364,wrap,_365);
};
dojo.lang.repr=function(obj){
if(typeof (obj)=="undefined"){
return "undefined";
}else{
if(obj===null){
return "null";
}
}
try{
if(typeof (obj["__repr__"])=="function"){
return obj["__repr__"]();
}else{
if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){
return obj["repr"]();
}
}
return dojo.lang.reprRegistry.match(obj);
}
catch(e){
if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){
return o.NAME;
}
}
if(typeof (obj)=="function"){
obj=(obj+"").replace(/^\s+/,"");
var idx=obj.indexOf("{");
if(idx!=-1){
obj=obj.substr(0,idx)+"{...}";
}
}
return obj+"";
};
dojo.lang.reprArrayLike=function(arr){
try{
var na=dojo.lang.map(arr,dojo.lang.repr);
return "["+na.join(", ")+"]";
}
catch(e){
}
};
dojo.lang.reprString=function(str){
dojo.deprecated("dojo.lang.reprNumber","use `String(num)` instead","0.4");
return dojo.string.escapeString(str);
};
dojo.lang.reprNumber=function(num){
dojo.deprecated("dojo.lang.reprNumber","use `String(num)` instead","0.4");
return num+"";
};
(function(){
var m=dojo.lang;
m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
m.registerRepr("string",m.isString,m.reprString);
m.registerRepr("numbers",m.isNumber,m.reprNumber);
m.registerRepr("boolean",m.isBoolean,m.reprNumber);
})();
dojo.provide("dojo.lang.declare");
dojo.require("dojo.lang.common");
dojo.require("dojo.lang.extras");
dojo.lang.declare=function(_366,_367,init,_368){
if((dojo.lang.isFunction(_368))||((!_368)&&(!dojo.lang.isFunction(init)))){
var temp=_368;
_368=init;
init=temp;
}
var _369=[];
if(dojo.lang.isArray(_367)){
_369=_367;
_367=_369.shift();
}
if(!init){
init=dojo.evalObjPath(_366,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_367?_367.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _367();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_369;
for(var i=0,l=_369.length;i<l;i++){
dojo.lang.extend(ctor,_369[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_366;
if(dojo.lang.isArray(_368)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_368));
}else{
dojo.lang.extend(ctor,(_368)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_366,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(_36a,_36b,args){
var _36c=this.___proto;
this.___proto=_36a;
var _36d=_36a[_36b].apply(this,(args||[]));
this.___proto=_36c;
return _36d;
},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.kwCompoundRequire({common:["dojo.lang","dojo.lang.common","dojo.lang.assert","dojo.lang.array","dojo.lang.type","dojo.lang.func","dojo.lang.extras","dojo.lang.repr","dojo.lang.declare"]});
dojo.provide("dojo.lang.*");
dojo.provide("dojo.storage");
dojo.provide("dojo.storage.StorageProvider");
dojo.require("dojo.lang.*");
dojo.require("dojo.event.*");
dojo.storage=function(){
};
dojo.lang.extend(dojo.storage,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"dojoStorage",onHideSettingsUI:null,initialize:function(){
dojo.unimplemented("dojo.storage.initialize");
},isAvailable:function(){
dojo.unimplemented("dojo.storage.isAvailable");
},put:function(key,_36e,_36f){
dojo.unimplemented("dojo.storage.put");
},get:function(key){
dojo.unimplemented("dojo.storage.get");
},hasKey:function(key){
if(this.get(key)!=null){
return true;
}else{
return false;
}
},getKeys:function(){
dojo.unimplemented("dojo.storage.getKeys");
},clear:function(){
dojo.unimplemented("dojo.storage.clear");
},remove:function(key){
dojo.unimplemented("dojo.storage.remove");
},isPermanent:function(){
dojo.unimplemented("dojo.storage.isPermanent");
},getMaximumSize:function(){
dojo.unimplemented("dojo.storage.getMaximumSize");
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.unimplemented("dojo.storage.showSettingsUI");
},hideSettingsUI:function(){
dojo.unimplemented("dojo.storage.hideSettingsUI");
},getType:function(){
dojo.unimplemented("dojo.storage.getType");
},isValidKey:function(_370){
if(_370==null||typeof _370=="undefined"){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_370);
}});
dojo.storage.manager=new function(){
this.currentProvider=null;
this.available=false;
this.initialized=false;
this.providers=new Array();
this.namespace="dojo.storage";
this.initialize=function(){
this.autodetect();
};
this.register=function(name,_371){
this.providers[this.providers.length]=_371;
this.providers[name]=_371;
};
this.setProvider=function(_372){
};
this.autodetect=function(){
if(this.initialized==true){
return;
}
var _373=null;
for(var i=0;i<this.providers.length;i++){
_373=this.providers[i];
if(_373.isAvailable()){
break;
}
}
if(_373==null){
this.initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_373;
for(var i in _373){
dojo.storage[i]=_373[i];
}
dojo.storage.manager=this;
dojo.storage.initialize();
this.initialized=true;
this.available=true;
};
this.isAvailable=function(){
return this.available;
};
this.isInitialized=function(){
if(dojo.flash.ready==false){
return false;
}else{
return this.initialized;
}
};
this.supportsProvider=function(_374){
try{
var _375=eval("new "+_374+"()");
var _376=_375.isAvailable();
if(_376==null||typeof _376=="undefined"){
return false;
}
return _376;
}
catch(exception){
dojo.debug("exception="+exception);
return false;
}
};
this.getProvider=function(){
return this.currentProvider;
};
this.loaded=function(){
};
};
dojo.provide("dojo.flash");
dojo.require("dojo.string.*");
dojo.require("dojo.uri.*");
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_377){
if(_377==null||dojo.lang.isUndefined(_377)){
return;
}
if(_377.flash6!=null&&!dojo.lang.isUndefined(_377.flash6)){
this.flash6_version=_377.flash6;
}
if(_377.flash8!=null&&!dojo.lang.isUndefined(_377.flash8)){
this.flash8_version=_377.flash8;
}
if(!dojo.lang.isUndefined(_377.visible)){
this._visible=_377.visible;
}
this._initialize();
},useFlash6:function(){
if(this.flash6_version==null){
return false;
}else{
if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){
return true;
}else{
return false;
}
}
},useFlash8:function(){
if(this.flash8_version==null){
return false;
}else{
if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){
return true;
}else{
return false;
}
}
},addLoadedListener:function(_378){
this._loadedListeners.push(_378);
},addInstallingListener:function(_379){
this._installingListeners.push(_379);
},loaded:function(){
dojo.flash.ready=true;
if(dojo.flash._loadedListeners.length>0){
for(var i=0;i<dojo.flash._loadedListeners.length;i++){
dojo.flash._loadedListeners[i].call(null);
}
}
},installing:function(){
if(dojo.flash._installingListeners.length>0){
for(var i=0;i<dojo.flash._installingListeners.length;i++){
dojo.flash._installingListeners[i].call(null);
}
}
},_initialize:function(){
var _37a=new dojo.flash.Install();
dojo.flash.installer=_37a;
if(_37a.needed()==true){
_37a.install();
}else{
dojo.flash.obj=new dojo.flash.Embed(this._visible);
dojo.flash.obj.write(dojo.flash.info.commVersion);
dojo.flash.comm=new dojo.flash.Communicator();
}
}};
dojo.flash.Info=function(){
if(dojo.render.html.ie){
document.writeln("<script language=\"VBScript\" type=\"text/vbscript\">");
document.writeln("Function VBGetSwfVer(i)");
document.writeln("  on error resume next");
document.writeln("  Dim swControl, swVersion");
document.writeln("  swVersion = 0");
document.writeln("  set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i))");
document.writeln("  if (IsObject(swControl)) then");
document.writeln("    swVersion = swControl.GetVariable(\"$version\")");
document.writeln("  end if");
document.writeln("  VBGetSwfVer = swVersion");
document.writeln("End Function");
document.writeln("</script>");
}
this._detectVersion();
this._detectCommunicationVersion();
};
dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(_37b,_37c,_37d){
_37d=parseFloat("."+_37d);
if(this.versionMajor>=_37b&&this.versionMinor>=_37c&&this.versionRevision>=_37d){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _37e;
for(var _37f=25;_37f>0;_37f--){
if(dojo.render.html.ie){
_37e=VBGetSwfVer(_37f);
}else{
_37e=this._JSFlashInfo(_37f);
}
if(_37e==-1){
this.capable=false;
return;
}else{
if(_37e!=0){
var _380;
if(dojo.render.html.ie){
var _381=_37e.split(" ");
var _382=_381[1];
_380=_382.split(",");
}else{
_380=_37e.split(".");
}
this.versionMajor=_380[0];
this.versionMinor=_380[1];
this.versionRevision=_380[2];
var _383=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_383);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_384){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _385=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _386=navigator.plugins["Shockwave Flash"+_385].description;
var _387=_386.split(" ");
var _388=_387[2].split(".");
var _389=_388[0];
var _38a=_388[1];
if(_387[3]!=""){
var _38b=_387[3].split("r");
}else{
var _38b=_387[4].split("r");
}
var _38c=_38b[1]>0?_38b[1]:0;
var _38d=_389+"."+_38a+"."+_38c;
return _38d;
}
}
return -1;
},_detectCommunicationVersion:function(){
if(this.capable==false){
this.commVersion=null;
return;
}
if(typeof djConfig["forceFlashComm"]!="undefined"&&typeof djConfig["forceFlashComm"]!=null){
this.commVersion=djConfig["forceFlashComm"];
return;
}
if(dojo.render.html.safari==true||dojo.render.html.opera==true){
this.commVersion=8;
}else{
this.commVersion=6;
}
}};
dojo.flash.Embed=function(_38e){
this._visible=_38e;
};
dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,write:function(_38f,_390){
if(dojo.lang.isUndefined(_390)){
_390=false;
}
var _391=new dojo.string.Builder();
_391.append("width: "+this.width+"px; ");
_391.append("height: "+this.height+"px; ");
if(this._visible==false){
_391.append("position: absolute; ");
_391.append("z-index: 10000; ");
_391.append("top: -1000px; ");
_391.append("left: -1000px; ");
}
_391=_391.toString();
var _392;
var _393;
if(_38f==6){
_393=dojo.flash.flash6_version;
var _394=djConfig.baseRelativePath;
_393=_393+"?baseRelativePath="+escape(_394);
_392="<embed id=\""+this.id+"\" src=\""+_393+"\" "+"    quality=\"high\" bgcolor=\"#ffffff\" "+"    width=\""+this.width+"\" height=\""+this.height+"\" "+"    name=\""+this.id+"\" "+"    align=\"middle\" allowScriptAccess=\"sameDomain\" "+"    type=\"application/x-shockwave-flash\" swLiveConnect=\"true\" "+"    pluginspage=\"http://www.macromedia.com/go/getflashplayer\">";
}else{
_393=dojo.flash.flash8_version;
var _395=_393;
var _396=_393;
var _394=djConfig.baseRelativePath;
if(_390){
var _397=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _398=escape(document.title);
_395+="?MMredirectURL="+_397+"&MMplayerType=ActiveX"+"&MMdoctitle="+_398+"&baseRelativePath="+escape(_394);
_396+="?MMredirectURL="+_397+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_394);
}
_392="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"align=\"middle\"> "+"<param name=\"allowScriptAccess\" value=\"sameDomain\" /> "+"<param name=\"movie\" value=\""+_395+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_396+"\" "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"sameDomain\" "+"type=\"application/x-shockwave-flash\" "+"&baseRelativePath="+escape(_394);
+"pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"+"</object>";
}
_392="<div id=\""+this.id+"Container\" style=\""+_391+"\"> "+_392+"</div>";
document.writeln(_392);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_399){
var _39a=dojo.byId(this.id+"Container");
if(_399==true){
_39a.style.visibility="visible";
}else{
_39a.style.position="absolute";
_39a.style.x="-1000px";
_39a.style.y="-1000px";
_39a.style.visibility="hidden";
}
},center:function(){
var _39b=this.width;
var _39c=this.height;
var _39d=document.body.clientWidth;
var _39e=document.body.clientHeight;
if(!dojo.render.html.ie&&document.compatMode=="CSS1Compat"){
_39d=document.body.parentNode.clientWidth;
_39e=document.body.parentNode.clientHeight;
}else{
if(dojo.render.html.ie&&document.compatMode=="CSS1Compat"){
_39d=document.documentElement.clientWidth;
_39e=document.documentElement.clientHeight;
}else{
if(dojo.render.html.safari){
_39e=self.innerHeight;
}
}
}
var _39f=window.scrollX;
var _3a0=window.scrollY;
if(typeof _39f=="undefined"){
if(document.compatMode=="CSS1Compat"){
_39f=document.documentElement.scrollLeft;
_3a0=document.documentElement.scrollTop;
}else{
_39f=document.body.scrollLeft;
_3a0=document.body.scrollTop;
}
}
var x=_39f+(_39d-_39b)/2;
var y=_3a0+(_39e-_39c)/2;
var _3a1=dojo.byId(this.id+"Container");
_3a1.style.top=y+"px";
_3a1.style.left=x+"px";
}};
dojo.flash.Communicator=function(){
if(dojo.flash.useFlash6()){
this._writeFlash6();
}else{
if(dojo.flash.useFlash8()){
this._writeFlash8();
}
}
};
dojo.flash.Communicator.prototype={_writeFlash6:function(){
var id=dojo.flash.obj.id;
document.writeln("<script language=\"JavaScript\">");
document.writeln("  function "+id+"_DoFSCommand(command, args){ ");
document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");
document.writeln("}");
document.writeln("</script>");
if(dojo.render.html.ie){
document.writeln("<SCRIPT LANGUAGE=VBScript> ");
document.writeln("on error resume next ");
document.writeln("Sub "+id+"_FSCommand(ByVal command, ByVal args)");
document.writeln(" call "+id+"_DoFSCommand(command, args)");
document.writeln("end sub");
document.writeln("</SCRIPT> ");
}
},_writeFlash8:function(){
},_handleFSCommand:function(_3a2,args){
if(_3a2!=null&&!dojo.lang.isUndefined(_3a2)&&/^FSCommand:(.*)/.test(_3a2)==true){
_3a2=_3a2.match(/^FSCommand:(.*)/)[1];
}
if(_3a2=="addCallback"){
this._fscommandAddCallback(_3a2,args);
}else{
if(_3a2=="call"){
this._fscommandCall(_3a2,args);
}else{
if(_3a2=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_3a3,args){
var _3a4=args;
var _3a5=function(){
return dojo.flash.comm._call(_3a4,arguments);
};
dojo.flash.comm[_3a4]=_3a5;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_3a6,args){
var _3a7=dojo.flash.obj.get();
var _3a8=args;
var _3a9=parseInt(_3a7.GetVariable("_numArgs"));
var _3aa=new Array();
for(var i=0;i<_3a9;i++){
var _3ab=_3a7.GetVariable("_"+i);
_3aa.push(_3ab);
}
var _3ac;
if(_3a8.indexOf(".")==-1){
_3ac=window[_3a8];
}else{
_3ac=eval(_3a8);
}
var _3ad=null;
if(!dojo.lang.isUndefined(_3ac)&&_3ac!=null){
_3ad=_3ac.apply(null,_3aa);
}
_3a7.SetVariable("_returnResult",_3ad);
},_fscommandReady:function(){
var _3ae=dojo.flash.obj.get();
_3ae.SetVariable("fscommandReady","true");
},_call:function(_3af,args){
var _3b0=dojo.flash.obj.get();
_3b0.SetVariable("_functionName",_3af);
_3b0.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _3b1=args[i];
_3b1=_3b1.replace(/\0/g,"\\0");
_3b0.SetVariable("_"+i,_3b1);
}
_3b0.TCallLabel("/_flashRunner","execute");
var _3b2=_3b0.GetVariable("_returnResult");
_3b2=_3b2.replace(/\\0/g,"\x00");
return _3b2;
},_addExternalInterfaceCallback:function(_3b3){
var _3b4=function(){
var _3b5=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_3b5[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_3b3,_3b5);
};
dojo.flash.comm[_3b3]=_3b4;
},_encodeData:function(data){
var _3b6=/\&([^;]*)\;/g;
data=data.replace(_3b6,"&amp;$1;");
data=data.replace(/</g,"&lt;");
data=data.replace(/>/g,"&gt;");
data=data.replace("\\","&custom_backslash;&custom_backslash;");
data=data.replace(/\n/g,"\\n");
data=data.replace(/\r/g,"\\r");
data=data.replace(/\f/g,"\\f");
data=data.replace(/\0/g,"\\0");
data=data.replace(/\'/g,"\\'");
data=data.replace(/\"/g,"\\\"");
return data;
},_decodeData:function(data){
if(data==null||typeof data=="undefined"){
return data;
}
data=data.replace(/\&custom_lt\;/g,"<");
data=data.replace(/\&custom_gt\;/g,">");
data=eval("\""+data+"\"");
return data;
},_chunkArgumentData:function(_3b7,_3b8){
var _3b9=dojo.flash.obj.get();
var _3ba=Math.ceil(_3b7.length/1024);
for(var i=0;i<_3ba;i++){
var _3bb=i*1024;
var _3bc=i*1024+1024;
if(i==(_3ba-1)){
_3bc=i*1024+_3b7.length;
}
var _3bd=_3b7.substring(_3bb,_3bc);
_3bd=this._encodeData(_3bd);
_3b9.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_3bd+"</string>"+"<number>"+_3b8+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _3be=dojo.flash.obj.get();
var _3bf=_3be.getReturnLength();
var _3c0=new Array();
for(var i=0;i<_3bf;i++){
var _3c1=_3be.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_3c1=="\"\""||_3c1=="''"){
_3c1="";
}else{
_3c1=_3c1.substring(1,_3c1.length-1);
}
_3c0.push(_3c1);
}
var _3c2=_3c0.join("");
return _3c2;
},_execFlash:function(_3c3,_3c4){
var _3c5=dojo.flash.obj.get();
_3c5.startExec();
_3c5.setNumberArguments(_3c4.length);
for(var i=0;i<_3c4.length;i++){
this._chunkArgumentData(_3c4[i],i);
}
_3c5.exec(_3c3);
var _3c6=this._chunkReturnData();
_3c6=this._decodeData(_3c6);
_3c5.endExec();
return _3c6;
}};
dojo.flash.Install=function(){
};
dojo.flash.Install.prototype={needed:function(){
if(dojo.flash.info.capable==false){
return true;
}
if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){
return true;
}
if(!dojo.flash.info.isVersionOrAbove(6,0,0)){
return true;
}
return false;
},install:function(){
dojo.flash.info.installing=true;
dojo.flash.installing();
if(dojo.flash.info.capable==false){
var _3c7=new dojo.flash.Embed(false);
_3c7.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _3c7=new dojo.flash.Embed(false);
_3c7.write(8,true);
_3c7.setVisible(true);
_3c7.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href="http://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href="http://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info=new dojo.flash.Info();
dojo.provide("dojo.storage.browser");
dojo.provide("dojo.storage.browser.FlashStorageProvider");
dojo.require("dojo.storage");
dojo.require("dojo.flash");
dojo.require("dojo.json");
dojo.require("dojo.uri.*");
dojo.storage.browser.FlashStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableFlashStorage"]==true){
return;
}
var _3c8=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_3c8);
var _3c9=dojo.uri.dojoUri("Storage_version6.swf").toString();
var _3ca=dojo.uri.dojoUri("Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_3c9,flash8:_3ca,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}
return this._available;
},setNamespace:function(_3cb){
this.namespace=_3cb;
},put:function(key,_3cc,_3cd){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_3cd;
if(dojo.lang.isString(_3cc)){
_3cc="string:"+_3cc;
}else{
_3cc=dojo.json.serialize(_3cc);
}
dojo.flash.comm.put(key,_3cc,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _3ce=dojo.flash.comm.get(key,this.namespace);
if(_3ce==""){
return null;
}
if(!dojo.lang.isUndefined(_3ce)&&_3ce!=null&&/^string:/.test(_3ce)){
_3ce=_3ce.substring("string:".length);
}else{
_3ce=dojo.json.evalJson(_3ce);
}
return _3ce;
},getKeys:function(){
var _3cf=dojo.flash.comm.getKeys(this.namespace);
if(_3cf==""){
return new Array();
}
_3cf=_3cf.split(",");
return _3cf;
},clear:function(){
dojo.flash.comm.clear(this.namespace);
},remove:function(key){
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return true;
},showSettingsUI:function(){
dojo.flash.comm.showSettings();
dojo.flash.obj.setVisible(true);
dojo.flash.obj.center();
},hideSettingsUI:function(){
dojo.flash.obj.setVisible(false);
if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){
dojo.storage.onHideSettingsUI.call(null);
}
},getType:function(){
return "dojo.storage.FlashStorageProvider";
},_flashLoaded:function(){
this.initialized=true;
dojo.storage.manager.loaded();
},_onStatus:function(_3d0,key){
if(_3d0==dojo.storage.PENDING){
dojo.flash.obj.center();
dojo.flash.obj.setVisible(true);
}else{
dojo.flash.obj.setVisible(false);
}
if(!dojo.lang.isUndefined(dojo.storage._statusHandler)&&dojo.storage._statusHandler!=null){
dojo.storage._statusHandler.call(null,_3d0,key);
}
}});
dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());
dojo.storage.manager.initialize();
dojo.kwCompoundRequire({common:["dojo.storage"],browser:["dojo.storage.browser"],dashboard:["dojo.storage.dashboard"]});
dojo.provide("dojo.storage.*");
dojo.provide("dojo.undo.Manager");
dojo.require("dojo.lang");
dojo.undo.Manager=function(_3d1){
this.clear();
this._parent=_3d1;
};
dojo.lang.extend(dojo.undo.Manager,{_parent:null,_undoStack:null,_redoStack:null,_currentManager:null,canUndo:false,canRedo:false,isUndoing:false,isRedoing:false,onUndo:function(_3d2,item){
},onRedo:function(_3d3,item){
},onUndoAny:function(_3d4,item){
},onRedoAny:function(_3d5,item){
},_updateStatus:function(){
this.canUndo=this._undoStack.length>0;
this.canRedo=this._redoStack.length>0;
},clear:function(){
this._undoStack=[];
this._redoStack=[];
this._currentManager=this;
this.isUndoing=false;
this.isRedoing=false;
this._updateStatus();
},undo:function(){
if(!this.canUndo){
return false;
}
this.endAllTransactions();
this.isUndoing=true;
var top=this._undoStack.pop();
if(top instanceof dojo.undo.Manager){
top.undoAll();
}else{
top.undo();
}
if(top.redo){
this._redoStack.push(top);
}
this.isUndoing=false;
this._updateStatus();
this.onUndo(this,top);
if(!(top instanceof dojo.undo.Manager)){
this.getTop().onUndoAny(this,top);
}
return true;
},redo:function(){
if(!this.canRedo){
return false;
}
this.isRedoing=true;
var top=this._redoStack.pop();
if(top instanceof dojo.undo.Manager){
top.redoAll();
}else{
top.redo();
}
this._undoStack.push(top);
this.isRedoing=false;
this._updateStatus();
this.onRedo(this,top);
if(!(top instanceof dojo.undo.Manager)){
this.getTop().onRedoAny(this,top);
}
return true;
},undoAll:function(){
while(this._undoStack.length>0){
this.undo();
}
},redoAll:function(){
while(this._redoStack.length>0){
this.redo();
}
},push:function(undo,redo,_3d6){
if(!undo){
return;
}
if(this._currentManager==this){
this._undoStack.push({undo:undo,redo:redo,description:_3d6});
}else{
this._currentManager.push.apply(this._currentManager,arguments);
}
this._redoStack=[];
this._updateStatus();
},concat:function(_3d7){
if(!_3d7){
return;
}
if(this._currentManager==this){
for(var x=0;x<_3d7._undoStack.length;x++){
this._undoStack.push(_3d7._undoStack[x]);
}
this._redoStack=[];
this._updateStatus();
}else{
this._currentManager.concat.apply(this._currentManager,arguments);
}
},beginTransaction:function(_3d8){
if(this._currentManager==this){
var mgr=new dojo.undo.Manager(this);
mgr.description=_3d8?_3d8:"";
this._undoStack.push(mgr);
this._currentManager=mgr;
return mgr;
}else{
this._currentManager=this._currentManager.beginTransaction.apply(this._currentManager,arguments);
}
},endTransaction:function(_3d9){
if(this._currentManager==this){
if(this._parent){
this._parent._currentManager=this._parent;
if(this._undoStack.length==0||_3d9){
var idx=dojo.lang.find(this._parent._undoStack,this);
if(idx>=0){
this._parent._undoStack.splice(idx,1);
if(_3d9){
for(var x=0;x<this._undoStack.length;x++){
this._parent._undoStack.splice(idx++,0,this._undoStack[x]);
}
this._updateStatus();
}
}
}
return this._parent;
}
}else{
this._currentManager=this._currentManager.endTransaction.apply(this._currentManager,arguments);
}
},endAllTransactions:function(){
while(this._currentManager!=this){
this.endTransaction();
}
},getTop:function(){
if(this._parent){
return this._parent.getTop();
}else{
return this;
}
}});
dojo.require("dojo.undo.Manager");
dojo.provide("dojo.undo.*");
dojo.provide("dojo.crypto");
dojo.crypto.cipherModes={ECB:0,CBC:1,PCBC:2,CFB:3,OFB:4,CTR:5};
dojo.crypto.outputTypes={Base64:0,Hex:1,String:2,Raw:3};
dojo.require("dojo.crypto");
dojo.provide("dojo.crypto.MD5");
dojo.crypto.MD5=new function(){
var _3da=8;
var mask=(1<<_3da)-1;
function _3db(s){
var wa=[];
for(var i=0;i<s.length*_3da;i+=_3da){
wa[i>>5]|=(s.charCodeAt(i/_3da)&mask)<<(i%32);
}
return wa;
};
function _3dc(wa){
var s=[];
for(var i=0;i<wa.length*32;i+=_3da){
s.push(String.fromCharCode((wa[i>>5]>>>(i%32))&mask));
}
return s.join("");
};
function _3dd(wa){
var h="0123456789abcdef";
var s=[];
for(var i=0;i<wa.length*4;i++){
s.push(h.charAt((wa[i>>2]>>((i%4)*8+4))&15)+h.charAt((wa[i>>2]>>((i%4)*8))&15));
}
return s.join("");
};
function _3de(wa){
var p="=";
var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var s=[];
for(var i=0;i<wa.length*4;i+=3){
var t=(((wa[i>>2]>>8*(i%4))&255)<<16)|(((wa[i+1>>2]>>8*((i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*((i+2)%4))&255);
for(var j=0;j<4;j++){
if(i*8+j*6>wa.length*32){
s.push(p);
}else{
s.push(tab.charAt((t>>6*(3-j))&63));
}
}
}
return s.join("");
};
function add(x,y){
var l=(x&65535)+(y&65535);
var m=(x>>16)+(y>>16)+(l>>16);
return (m<<16)|(l&65535);
};
function R(n,c){
return (n<<c)|(n>>>(32-c));
};
function C(q,a,b,x,s,t){
return add(R(add(add(a,q),add(x,t)),s),b);
};
function FF(a,b,c,d,x,s,t){
return C((b&c)|((~b)&d),a,b,x,s,t);
};
function GG(a,b,c,d,x,s,t){
return C((b&d)|(c&(~d)),a,b,x,s,t);
};
function HH(a,b,c,d,x,s,t){
return C(b^c^d,a,b,x,s,t);
};
function II(a,b,c,d,x,s,t){
return C(c^(b|(~d)),a,b,x,s,t);
};
function core(x,len){
x[len>>5]|=128<<((len)%32);
x[(((len+64)>>>9)<<4)+14]=len;
var a=1732584193;
var b=-271733879;
var c=-1732584194;
var d=271733878;
for(var i=0;i<x.length;i+=16){
var olda=a;
var oldb=b;
var oldc=c;
var oldd=d;
a=FF(a,b,c,d,x[i+0],7,-680876936);
d=FF(d,a,b,c,x[i+1],12,-389564586);
c=FF(c,d,a,b,x[i+2],17,606105819);
b=FF(b,c,d,a,x[i+3],22,-1044525330);
a=FF(a,b,c,d,x[i+4],7,-176418897);
d=FF(d,a,b,c,x[i+5],12,1200080426);
c=FF(c,d,a,b,x[i+6],17,-1473231341);
b=FF(b,c,d,a,x[i+7],22,-45705983);
a=FF(a,b,c,d,x[i+8],7,1770035416);
d=FF(d,a,b,c,x[i+9],12,-1958414417);
c=FF(c,d,a,b,x[i+10],17,-42063);
b=FF(b,c,d,a,x[i+11],22,-1990404162);
a=FF(a,b,c,d,x[i+12],7,1804603682);
d=FF(d,a,b,c,x[i+13],12,-40341101);
c=FF(c,d,a,b,x[i+14],17,-1502002290);
b=FF(b,c,d,a,x[i+15],22,1236535329);
a=GG(a,b,c,d,x[i+1],5,-165796510);
d=GG(d,a,b,c,x[i+6],9,-1069501632);
c=GG(c,d,a,b,x[i+11],14,643717713);
b=GG(b,c,d,a,x[i+0],20,-373897302);
a=GG(a,b,c,d,x[i+5],5,-701558691);
d=GG(d,a,b,c,x[i+10],9,38016083);
c=GG(c,d,a,b,x[i+15],14,-660478335);
b=GG(b,c,d,a,x[i+4],20,-405537848);
a=GG(a,b,c,d,x[i+9],5,568446438);
d=GG(d,a,b,c,x[i+14],9,-1019803690);
c=GG(c,d,a,b,x[i+3],14,-187363961);
b=GG(b,c,d,a,x[i+8],20,1163531501);
a=GG(a,b,c,d,x[i+13],5,-1444681467);
d=GG(d,a,b,c,x[i+2],9,-51403784);
c=GG(c,d,a,b,x[i+7],14,1735328473);
b=GG(b,c,d,a,x[i+12],20,-1926607734);
a=HH(a,b,c,d,x[i+5],4,-378558);
d=HH(d,a,b,c,x[i+8],11,-2022574463);
c=HH(c,d,a,b,x[i+11],16,1839030562);
b=HH(b,c,d,a,x[i+14],23,-35309556);
a=HH(a,b,c,d,x[i+1],4,-1530992060);
d=HH(d,a,b,c,x[i+4],11,1272893353);
c=HH(c,d,a,b,x[i+7],16,-155497632);
b=HH(b,c,d,a,x[i+10],23,-1094730640);
a=HH(a,b,c,d,x[i+13],4,681279174);
d=HH(d,a,b,c,x[i+0],11,-358537222);
c=HH(c,d,a,b,x[i+3],16,-722521979);
b=HH(b,c,d,a,x[i+6],23,76029189);
a=HH(a,b,c,d,x[i+9],4,-640364487);
d=HH(d,a,b,c,x[i+12],11,-421815835);
c=HH(c,d,a,b,x[i+15],16,530742520);
b=HH(b,c,d,a,x[i+2],23,-995338651);
a=II(a,b,c,d,x[i+0],6,-198630844);
d=II(d,a,b,c,x[i+7],10,1126891415);
c=II(c,d,a,b,x[i+14],15,-1416354905);
b=II(b,c,d,a,x[i+5],21,-57434055);
a=II(a,b,c,d,x[i+12],6,1700485571);
d=II(d,a,b,c,x[i+3],10,-1894986606);
c=II(c,d,a,b,x[i+10],15,-1051523);
b=II(b,c,d,a,x[i+1],21,-2054922799);
a=II(a,b,c,d,x[i+8],6,1873313359);
d=II(d,a,b,c,x[i+15],10,-30611744);
c=II(c,d,a,b,x[i+6],15,-1560198380);
b=II(b,c,d,a,x[i+13],21,1309151649);
a=II(a,b,c,d,x[i+4],6,-145523070);
d=II(d,a,b,c,x[i+11],10,-1120210379);
c=II(c,d,a,b,x[i+2],15,718787259);
b=II(b,c,d,a,x[i+9],21,-343485551);
a=add(a,olda);
b=add(b,oldb);
c=add(c,oldc);
d=add(d,oldd);
}
return [a,b,c,d];
};
function hmac(data,key){
var wa=_3db(key);
if(wa.length>16){
wa=core(wa,key.length*_3da);
}
var l=[],r=[];
for(var i=0;i<16;i++){
l[i]=wa[i]^909522486;
r[i]=wa[i]^1549556828;
}
var h=core(l.concat(_3db(data)),512+data.length*_3da);
return core(r.concat(h),640);
};
this.compute=function(data,_3df){
var out=_3df||dojo.crypto.outputTypes.Base64;
switch(out){
case dojo.crypto.outputTypes.Hex:
return _3dd(core(_3db(data),data.length*_3da));
case dojo.crypto.outputTypes.String:
return _3dc(core(_3db(data),data.length*_3da));
default:
return _3de(core(_3db(data),data.length*_3da));
}
};
this.getHMAC=function(data,key,_3e0){
var out=_3e0||dojo.crypto.outputTypes.Base64;
switch(out){
case dojo.crypto.outputTypes.Hex:
return _3dd(hmac(data,key));
case dojo.crypto.outputTypes.String:
return _3dc(hmac(data,key));
default:
return _3de(hmac(data,key));
}
};
}();
dojo.kwCompoundRequire({common:["dojo.crypto","dojo.crypto.MD5"]});
dojo.provide("dojo.crypto.*");
dojo.provide("dojo.collections.Collections");
dojo.collections={Collections:true};
dojo.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojo.collections.Iterator=function(arr){
var a=arr;
var _3e1=0;
this.element=a[_3e1]||null;
this.atEnd=function(){
return (_3e1>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_3e1++];
return this.element;
};
this.map=function(fn,_3e2){
var s=_3e2||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_3e1=0;
this.element=a[_3e1];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _3e3={};
for(var p in obj){
if(!_3e3[p]){
a.push(obj[p]);
}
}
var _3e4=0;
this.element=a[_3e4]||null;
this.atEnd=function(){
return (_3e4>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_3e4++];
return this.element;
};
this.map=function(fn,_3e5){
var s=_3e5||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_3e4=0;
this.element=a[_3e4];
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.require("dojo.collections.Collections");
dojo.collections.ArrayList=function(arr){
var _3e6=[];
if(arr){
_3e6=_3e6.concat(arr);
}
this.count=_3e6.length;
this.add=function(obj){
_3e6.push(obj);
this.count=_3e6.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_3e6.length;
}else{
for(var i=0;i<a.length;i++){
_3e6.push(a[i]);
}
this.count=_3e6.length;
}
};
this.clear=function(){
_3e6.splice(0,_3e6.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_3e6);
};
this.contains=function(obj){
for(var i=0;i<_3e6.length;i++){
if(_3e6[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_3e7){
var s=_3e7||dj_global;
if(Array.forEach){
Array.forEach(_3e6,fn,s);
}else{
for(var i=0;i<_3e6.length;i++){
fn.call(s,_3e6[i],i,_3e6);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_3e6);
};
this.indexOf=function(obj){
for(var i=0;i<_3e6.length;i++){
if(_3e6[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_3e6.splice(i,0,obj);
this.count=_3e6.length;
};
this.item=function(i){
return _3e6[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_3e6.splice(i,1);
}
this.count=_3e6.length;
};
this.removeAt=function(i){
_3e6.splice(i,1);
this.count=_3e6.length;
};
this.reverse=function(){
_3e6.reverse();
};
this.sort=function(fn){
if(fn){
_3e6.sort(fn);
}else{
_3e6.sort();
}
};
this.setByIndex=function(i,obj){
_3e6[i]=obj;
this.count=_3e6.length;
};
this.toArray=function(){
return [].concat(_3e6);
};
this.toString=function(_3e8){
return _3e6.join((_3e8||","));
};
};
dojo.provide("dojo.collections.Queue");
dojo.require("dojo.collections.Collections");
dojo.collections.Queue=function(arr){
var q=[];
if(arr){
q=q.concat(arr);
}
this.count=q.length;
this.clear=function(){
q=[];
this.count=q.length;
};
this.clone=function(){
return new dojo.collections.Queue(q);
};
this.contains=function(o){
for(var i=0;i<q.length;i++){
if(q[i]==o){
return true;
}
}
return false;
};
this.copyTo=function(arr,i){
arr.splice(i,0,q);
};
this.dequeue=function(){
var r=q.shift();
this.count=q.length;
return r;
};
this.enqueue=function(o){
this.count=q.push(o);
};
this.forEach=function(fn,_3e9){
var s=_3e9||dj_global;
if(Array.forEach){
Array.forEach(q,fn,s);
}else{
for(var i=0;i<q.length;i++){
fn.call(s,q[i],i,q);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(q);
};
this.peek=function(){
return q[0];
};
this.toArray=function(){
return [].concat(q);
};
};
dojo.provide("dojo.collections.Stack");
dojo.require("dojo.collections.Collections");
dojo.collections.Stack=function(arr){
var q=[];
if(arr){
q=q.concat(arr);
}
this.count=q.length;
this.clear=function(){
q=[];
this.count=q.length;
};
this.clone=function(){
return new dojo.collections.Stack(q);
};
this.contains=function(o){
for(var i=0;i<q.length;i++){
if(q[i]==o){
return true;
}
}
return false;
};
this.copyTo=function(arr,i){
arr.splice(i,0,q);
};
this.forEach=function(fn,_3ea){
var s=_3ea||dj_global;
if(Array.forEach){
Array.forEach(q,fn,s);
}else{
for(var i=0;i<q.length;i++){
fn.call(s,q[i],i,q);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(q);
};
this.peek=function(){
return q[(q.length-1)];
};
this.pop=function(){
var r=q.pop();
this.count=q.length;
return r;
};
this.push=function(o){
this.count=q.push(o);
};
this.toArray=function(){
return [].concat(q);
};
};
dojo.require("dojo.lang");
dojo.provide("dojo.dnd.DragSource");
dojo.provide("dojo.dnd.DropTarget");
dojo.provide("dojo.dnd.DragObject");
dojo.provide("dojo.dnd.DragAndDrop");
dojo.dnd.DragSource=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragSource"]){
dm.registerDragSource(this);
}
};
dojo.lang.extend(dojo.dnd.DragSource,{type:"",onDragEnd:function(){
},onDragStart:function(){
},onSelected:function(){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.dnd.DragObject=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
};
dojo.lang.extend(dojo.dnd.DragObject,{type:"",onDragStart:function(){
},onDragMove:function(){
},onDragOver:function(){
},onDragOut:function(){
},onDragEnd:function(){
},onDragLeave:this.onDragOut,onDragEnter:this.onDragOver,ondragout:this.onDragOut,ondragover:this.onDragOver});
dojo.dnd.DropTarget=function(){
if(this.constructor==dojo.dnd.DropTarget){
return;
}
this.acceptedTypes=[];
dojo.dnd.dragManager.registerDropTarget(this);
};
dojo.lang.extend(dojo.dnd.DropTarget,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_3eb){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_3eb.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_3eb[i].type)){
return false;
}
}
}
return true;
},onDragOver:function(){
},onDragOut:function(){
},onDragMove:function(){
},onDropStart:function(){
},onDrop:function(){
},onDropEnd:function(){
}});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.dnd.DragManager=function(){
};
dojo.lang.extend(dojo.dnd.DragManager,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(){
},dropTargets:[],registerDropTarget:function(){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.require("dojo.dnd.DragAndDrop");
dojo.require("dojo.event.*");
dojo.require("dojo.lang.array");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.dnd.HtmlDragManager=function(){
};
dojo.inherits(dojo.dnd.HtmlDragManager,dojo.dnd.DragManager);
dojo.lang.extend(dojo.dnd.HtmlDragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){
e.stopPropagation();
e.preventDefault();
},registerDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _3ec=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_3ec;
this.dragSources[_3ec]=ds;
ds.domNode.setAttribute(dp,_3ec);
if(dojo.render.html.ie){
dojo.event.connect(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _3ed=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_3ed];
ds.domNode.setAttribute(dp,null);
}
if(dojo.render.html.ie){
dojo.event.disconnect(ds.domNode,"ondragstart",this.cancelEvent);
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _3ee=dojo.lang.find(this.dropTargets,dt,true);
if(_3ee>=0){
this.dropTargets.splice(_3ee,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===document.body){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===document.body)){
return;
}
ta=dojo.html.getAttribute(tn,this.dsPrefix);
}
return this.dragSources[ta];
},onKeyDown:function(e){
},onMouseDown:function(e){
if(this.disabled){
return;
}
if(dojo.render.html.ie){
if(e.button!=1){
return;
}
}else{
if(e.which!=1){
return;
}
}
var _3ef=e.target.nodeType==dojo.dom.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_3ef,"button","textarea","input","select","option")){
return;
}
var ds=this.getDragSource(e);
if(!ds){
return;
}
if(!dojo.lang.inArray(this.selectedSources,ds)){
this.selectedSources.push(ds);
ds.onSelected();
}
this.mouseDownX=e.pageX;
this.mouseDownY=e.pageY;
e.preventDefault();
dojo.event.connect(document,"onmousemove",this,"onMouseMove");
},onMouseUp:function(e,_3f0){
if(this.selectedSources.length==0){
return;
}
this.mouseDownX=null;
this.mouseDownY=null;
this._dragTriggered=false;
e.dragSource=this.dragSource;
if((!e.shiftKey)&&(!e.ctrlKey)){
if(this.currentDropTarget){
this.currentDropTarget.onDropStart();
}
dojo.lang.forEach(this.dragObjects,function(_3f1){
var ret=null;
if(!_3f1){
return;
}
if(this.currentDropTarget){
e.dragObject=_3f1;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_3f1.domNode){
e.dropTarget=e.dropTarget.nextSibling;
}
}else{
e.dropTarget=this.currentDropTarget.domNode;
}
if(this.dropAcceptable){
ret=this.currentDropTarget.onDrop(e);
}else{
this.currentDropTarget.onDragOut(e);
}
}
e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";
dojo.lang.delayThese([function(){
try{
_3f1.dragSource.onDragEnd(e);
}
catch(err){
var _3f2={};
for(var i in e){
if(i=="type"){
_3f2.type="mouseup";
continue;
}
_3f2[i]=e[i];
}
_3f1.dragSource.onDragEnd(_3f2);
}
},function(){
_3f1.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}
dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");
this.currentDropTarget=null;
},onScroll:function(){
for(var i=0;i<this.dragObjects.length;i++){
if(this.dragObjects[i].updateDragOffset){
this.dragObjects[i].updateDragOffset();
}
}
this.cacheTargetLocations();
},_dragStartDistance:function(x,y){
if((!this.mouseDownX)||(!this.mouseDownX)){
return;
}
var dx=Math.abs(x-this.mouseDownX);
var dx2=dx*dx;
var dy=Math.abs(y-this.mouseDownY);
var dy2=dy*dy;
return parseInt(Math.sqrt(dx2+dy2),10);
},cacheTargetLocations:function(){
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_3f3){
var tn=_3f3.domNode;
if(!tn){
return;
}
var ttx=dojo.style.getAbsoluteX(tn,true);
var tty=dojo.style.getAbsoluteY(tn,true);
this.dropTargetDimensions.push([[ttx,tty],[ttx+dojo.style.getInnerWidth(tn),tty+dojo.style.getInnerHeight(tn)],_3f3]);
},this);
},onMouseMove:function(e){
if((dojo.render.html.ie)&&(e.button!=1)){
this.currentDropTarget=null;
this.onMouseUp(e,true);
return;
}
if((this.selectedSources.length)&&(!this.dragObjects.length)){
var dx;
var dy;
if(!this._dragTriggered){
this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);
if(!this._dragTriggered){
return;
}
dx=e.pageX-this.mouseDownX;
dy=e.pageY-this.mouseDownY;
}
this.dragSource=this.selectedSources[0];
dojo.lang.forEach(this.selectedSources,function(_3f4){
if(!_3f4){
return;
}
var tdo=_3f4.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.top+=dy;
tdo.dragOffset.left+=dx;
tdo.dragSource=_3f4;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_3f5){
if(_3f5){
_3f5.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.style.toCoordinateArray(this.currentDropTarget.domNode,true);
var dtp=[[c[0],c[1]],[c[0]+c[2],c[1]+c[3]]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _3f6=this.findBestTarget(e);
if(_3f6.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_3f6.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_3f6.target;
e.dragObjects=this.dragObjects;
this.dropAcceptable=this.currentDropTarget.onDragOver(e);
}else{
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}
}
},findBestTarget:function(e){
var _3f7=this;
var _3f8=new Object();
_3f8.target=null;
_3f8.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_3f9){
if(!_3f7.isInsideBox(e,_3f9)){
return true;
}
_3f8.target=_3f9[2];
_3f8.points=_3f9;
return Boolean(_3f7.nestedTargets);
});
return _3f8;
},isInsideBox:function(e,_3fa){
if((e.pageX>_3fa[0][0])&&(e.pageX<_3fa[1][0])&&(e.pageY>_3fa[0][1])&&(e.pageY<_3fa[1][1])){
return true;
}
return false;
},onMouseOver:function(e){
},onMouseOut:function(e){
}});
dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();
(function(){
var d=document;
var dm=dojo.dnd.dragManager;
dojo.event.connect(d,"onkeydown",dm,"onKeyDown");
dojo.event.connect(d,"onmouseover",dm,"onMouseOver");
dojo.event.connect(d,"onmouseout",dm,"onMouseOut");
dojo.event.connect(d,"onmousedown",dm,"onMouseDown");
dojo.event.connect(d,"onmouseup",dm,"onMouseUp");
dojo.event.connect(window,"onscroll",dm,"onScroll");
})();
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 _3fb=dojo.html.getCursorPosition(e);
with(dojo.html){
var _3fc=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _3fd=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_3fb.x<_3fc?WEST:EAST)|(_3fb.y<_3fd?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 _3fe="";
if(node==null){
return _3fe;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _3ff="unknown";
try{
_3ff=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_3ff){
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":
_3fe+="\n";
_3fe+=dojo.html.renderedTextContent(node.childNodes[i]);
_3fe+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_3fe+="\n";
}else{
_3fe+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _400="unknown";
try{
_400=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_400){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_400){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_3fe)){
text.replace(/^\s/,"");
}
break;
}
_3fe+=text;
break;
default:
break;
}
}
return _3fe;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
var _401="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_401="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_401="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_401="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _402=null;
switch(_401){
case "cell":
_402=tn.getElementsByTagName("tr")[0];
break;
case "row":
_402=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_402=tn.getElementsByTagName("table")[0];
break;
default:
_402=tn;
break;
}
var _403=[];
for(var x=0;x<_402.childNodes.length;x++){
_403.push(_402.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _403;
};
dojo.html.placeOnScreen=function(node,_404,_405,_406,_407){
if(dojo.lang.isArray(_404)){
_407=_406;
_406=_405;
_405=_404[1];
_404=_404[0];
}
if(!isNaN(_406)){
_406=[Number(_406),Number(_406)];
}else{
if(!dojo.lang.isArray(_406)){
_406=[0,0];
}
}
var _408=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_406[0];
var h=node.offsetHeight+_406[1];
if(_407){
_404-=_408.x;
_405-=_408.y;
}
var x=_404+w;
if(x>view.w){
x=view.w-w;
}else{
x=_404;
}
x=Math.max(_406[0],x)+_408.x;
var y=_405+h;
if(y>view.h){
y=view.h-h;
}else{
y=_405;
}
y=Math.max(_406[1],y)+_408.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,_409,_40a,_40b,_40c){
if(dojo.lang.isArray(_409)){
_40c=_40b;
_40b=_40a;
_40a=_409[1];
_409=_409[0];
}
if(!isNaN(_40b)){
_40b=[Number(_40b),Number(_40b)];
}else{
if(!dojo.lang.isArray(_40b)){
_40b=[0,0];
}
}
var _40d=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _40e=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_40e;
if(_40c){
_409-=_40d.x;
_40a-=_40d.y;
}
var x=-1,y=-1;
if((_409+_40b[0])+w<=view.w&&(_40a+_40b[1])+h<=view.h){
x=(_409+_40b[0]);
y=(_40a+_40b[1]);
}
if((x<0||y<0)&&(_409-_40b[0])<=view.w&&(_40a+_40b[1])+h<=view.h){
x=(_409-_40b[0])-w;
y=(_40a+_40b[1]);
}
if((x<0||y<0)&&(_409+_40b[0])+w<=view.w&&(_40a-_40b[1])<=view.h){
x=(_409+_40b[0]);
y=(_40a-_40b[1])-h;
}
if((x<0||y<0)&&(_409-_40b[0])<=view.w&&(_40a-_40b[1])<=view.h){
x=(_409-_40b[0])-w;
y=(_40a-_40b[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_409,_40a,_40b,_40c);
}
x+=_40d.x;
y+=_40d.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{
document.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 _40f=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_40f.w+"px";
s.height=_40f.h+"px";
s.left=_40f.x+"px";
s.top=_40f.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.dnd.HtmlDragAndDrop");
dojo.provide("dojo.dnd.HtmlDragSource");
dojo.provide("dojo.dnd.HtmlDropTarget");
dojo.provide("dojo.dnd.HtmlDragObject");
dojo.require("dojo.dnd.HtmlDragManager");
dojo.require("dojo.dnd.DragAndDrop");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.html");
dojo.require("dojo.html.extras");
dojo.require("dojo.lang.extras");
dojo.require("dojo.lfx.*");
dojo.require("dojo.event");
dojo.dnd.HtmlDragSource=function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
dojo.dnd.DragSource.call(this);
this.type=(type)||(this.domNode.nodeName.toLowerCase());
}
};
dojo.inherits(dojo.dnd.HtmlDragSource,dojo.dnd.DragSource);
dojo.lang.extend(dojo.dnd.HtmlDragSource,{dragClass:"",onDragStart:function(){
var _410=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_410.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_410.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _410;
},setDragHandle:function(node){
node=dojo.byId(node);
dojo.dnd.dragManager.unregisterDragSource(this);
this.domNode=node;
dojo.dnd.dragManager.registerDragSource(this);
},setDragTarget:function(node){
this.dragObject=node;
},constrainTo:function(_411){
this.constrainToContainer=true;
if(_411){
this.constrainingContainer=_411;
}
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));
}
},addDragObjects:function(el){
for(var i=0;i<arguments.length;i++){
this.dragObjects.push(arguments[i]);
}
}});
dojo.dnd.HtmlDragObject=function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
};
dojo.inherits(dojo.dnd.HtmlDragObject,dojo.dnd.DragObject);
dojo.lang.extend(dojo.dnd.HtmlDragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){
var node=this.domNode.cloneNode(true);
if(this.dragClass){
dojo.html.addClass(node,this.dragClass);
}
if(this.opacity<1){
dojo.style.setOpacity(node,this.opacity);
}
if(node.tagName.toLowerCase()=="tr"){
var doc=this.domNode.ownerDocument;
var _412=doc.createElement("table");
var _413=doc.createElement("tbody");
_413.appendChild(node);
_412.appendChild(_413);
var _414=this.domNode.childNodes;
var _415=node.childNodes;
for(var i=0;i<_414.length;i++){
if((_415[i])&&(_415[i].style)){
_415[i].style.width=dojo.style.getContentWidth(_414[i])+"px";
}
}
node=_412;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _416=document.createElement("div");
_416.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_416);
_416.appendChild(this.bgIframe.iframe);
node=_416;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScrollOffset();
this.dragStartPosition=dojo.style.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.dragClone=this.createDragNode();
this.containingBlockPosition=this.domNode.offsetParent?dojo.style.getAbsolutePosition(this.domNode.offsetParent):{x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
with(this.dragClone.style){
position="absolute";
top=this.dragOffset.y+e.pageY+"px";
left=this.dragOffset.x+e.pageX+"px";
}
document.body.appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _417=dojo.html.getViewportWidth();
var _418=dojo.html.getViewportHeight();
var x=0;
var y=0;
}else{
_417=dojo.style.getContentWidth(this.constrainingContainer);
_418=dojo.style.getContentHeight(this.constrainingContainer);
x=this.containingBlockPosition.x+dojo.style.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.style.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.style.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.style.getBorderExtent(this.constrainingContainer,"top");
}
return {minX:x,minY:y,maxX:x+_417-dojo.style.getOuterWidth(this.domNode),maxY:y+_418-dojo.style.getOuterHeight(this.domNode)};
},updateDragOffset:function(){
var _419=dojo.html.getScrollOffset();
if(_419.y!=this.scrollOffset.y){
var diff=_419.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_419.y;
}
if(_419.x!=this.scrollOffset.x){
var diff=_419.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_419.x;
}
},onDragMove:function(e){
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX;
}
if(y<this.constraints.minY){
y=this.constraints.minY;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.dragClone.style.top=y+"px";
}
if(!this.disableX){
this.dragClone.style.left=x+"px";
}
},onDragEnd:function(e){
switch(e.dragStatus){
case "dropSuccess":
dojo.dom.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _41a=dojo.style.getAbsolutePosition(this.dragClone,true);
var _41b=[this.dragStartPosition.x+1,this.dragStartPosition.y+1];
var line=new dojo.lfx.Line(_41a,_41b);
var anim=new dojo.lfx.Animation(500,line,dojo.lfx.easeOut);
var _41c=this;
dojo.event.connect(anim,"onAnimate",function(e){
_41c.dragClone.style.left=e[0]+"px";
_41c.dragClone.style.top=e[1]+"px";
});
dojo.event.connect(anim,"onEnd",function(e){
dojo.lang.setTimeout(function(){
dojo.dom.removeNode(_41c.dragClone);
_41c.dragClone=null;
},200);
});
anim.play();
break;
}
dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick");
dojo.event.topic.publish("dragEnd",{source:this});
},squelchOnClick:function(e){
e.preventDefault();
dojo.event.disconnect(this.domNode,"onclick",this,"squelchOnClick");
},constrainTo:function(_41d){
this.constrainToContainer=true;
if(_41d){
this.constrainingContainer=_41d;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}});
dojo.dnd.HtmlDropTarget=function(node,_41e){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_41e&&dojo.lang.isString(_41e)){
_41e=[_41e];
}
this.acceptedTypes=_41e||[];
};
dojo.inherits(dojo.dnd.HtmlDropTarget,dojo.dnd.DropTarget);
dojo.lang.extend(dojo.dnd.HtmlDropTarget,{onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,_41f;i<this.domNode.childNodes.length;i++){
_41f=this.domNode.childNodes[i];
if(_41f.nodeType!=dojo.dom.ELEMENT_NODE){
continue;
}
var pos=dojo.style.getAbsolutePosition(_41f,true);
var _420=dojo.style.getInnerHeight(_41f);
var _421=dojo.style.getInnerWidth(_41f);
this.childBoxes.push({top:pos.y,bottom:pos.y+_420,left:pos.x,right:pos.x+_421,node:_41f});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_422;i<this.childBoxes.length;i++){
with(this.childBoxes[i]){
if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){
return i;
}
}
}
return -1;
},createDropIndicator:function(){
this.dropIndicator=document.createElement("div");
with(this.dropIndicator.style){
position="absolute";
zIndex=999;
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.style.getInnerWidth(this.domNode)+"px";
left=dojo.style.getAbsoluteX(this.domNode,true)+"px";
}
},onDragMove:function(e,_423){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
if(i<0){
if(this.childBoxes.length){
var _424=(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH);
}else{
var _424=true;
}
}else{
var _425=this.childBoxes[i];
var _424=(dojo.html.gravity(_425.node,e)&dojo.html.gravity.NORTH);
}
this.placeIndicator(e,_423,i,_424);
if(!dojo.html.hasParent(this.dropIndicator)){
document.body.appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_426,_427,_428){
with(this.dropIndicator.style){
if(_427<0){
if(this.childBoxes.length){
top=(_428?this.childBoxes[0].top:this.childBoxes[this.childBoxes.length-1].bottom)+"px";
}else{
top=dojo.style.getAbsoluteY(this.domNode,true)+"px";
}
}else{
var _429=this.childBoxes[_427];
top=(_428?_429.top:_429.bottom)+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.dom.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH){
return this.insert(e,this.childBoxes[0].node,"before");
}else{
return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");
}
}
return this.insert(e,this.domNode,"append");
}
var _42a=this.childBoxes[i];
if(dojo.html.gravity(_42a.node,e)&dojo.html.gravity.NORTH){
return this.insert(e,_42a.node,"before");
}else{
return this.insert(e,_42a.node,"after");
}
},insert:function(e,_42b,_42c){
var node=e.dragObject.domNode;
if(_42c=="before"){
return dojo.html.insertBefore(node,_42b);
}else{
if(_42c=="after"){
return dojo.html.insertAfter(node,_42b);
}else{
if(_42c=="append"){
_42b.appendChild(node);
return true;
}
}
}
return false;
}});
dojo.kwCompoundRequire({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]});
dojo.provide("dojo.dnd.*");
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 _42d={};
var _42e=[];
this.getUniqueId=function(_42f){
return _42f+"_"+(_42d[_42f]!=undefined?++_42d[_42f]:_42d[_42f]=0);
};
this.add=function(_430){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_430);
if(!_430.extraArgs["id"]){
_430.extraArgs["id"]=_430.extraArgs["ID"];
}
if(_430.widgetId==""){
if(_430["id"]){
_430.widgetId=_430["id"];
}else{
if(_430.extraArgs["id"]){
_430.widgetId=_430.extraArgs["id"];
}else{
_430.widgetId=this.getUniqueId(_430.widgetType);
}
}
}
if(this.widgetIds[_430.widgetId]){
dojo.debug("widget ID collision on ID: "+_430.widgetId);
}
this.widgetIds[_430.widgetId]=_430;
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(_431){
var tw=this.widgets[_431].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_431,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(_432,_433){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_432(x)){
ret.push(x);
if(_433){
return false;
}
}
return true;
});
return (_433?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _434={};
var _435=["dojo.widget"];
for(var i=0;i<_435.length;i++){
_435[_435[i]]=true;
}
this.registerWidgetPackage=function(_436){
if(!_435[_436]){
_435[_436]=true;
_435.push(_436);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_435,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_437,_438,_439){
var impl=this.getImplementationName(_437);
if(impl){
var ret=new impl(_438);
return ret;
}
};
this.getImplementationName=function(_43a){
var _43b=_43a.toLowerCase();
var impl=_434[_43b];
if(impl){
return impl;
}
if(!_42e.length){
for(var _43c in dojo.render){
if(dojo.render[_43c]["capable"]===true){
var _43d=dojo.render[_43c].prefixes;
for(var i=0;i<_43d.length;i++){
_42e.push(_43d[i].toLowerCase());
}
}
}
_42e.push("");
}
for(var i=0;i<_435.length;i++){
var _43e=dojo.evalObjPath(_435[i]);
if(!_43e){
continue;
}
for(var j=0;j<_42e.length;j++){
if(!_43e[_42e[j]]){
continue;
}
for(var _43f in _43e[_42e[j]]){
if(_43f.toLowerCase()!=_43b){
continue;
}
_434[_43b]=_43e[_42e[j]][_43f];
return _434[_43b];
}
}
for(var j=0;j<_42e.length;j++){
for(var _43f in _43e){
if(_43f.toLowerCase()!=(_42e[j]+_43b)){
continue;
}
_434[_43b]=_43e[_43f];
return _434[_43b];
}
}
}
throw new Error("Could not locate \""+_43a+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _440=this.topWidgets[id];
if(_440.checkSize){
_440.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(_441,_442){
dw[(_442||_441)]=h(_441);
};
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 _443=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _443[n];
}
return _443;
};
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 _444=this.children[i];
if(_444.onResized){
_444.onResized();
}
}
},create:function(args,_445,_446){
this.satisfyPropertySets(args,_445,_446);
this.mixInProperties(args,_445,_446);
this.postMixInProperties(args,_445,_446);
dojo.widget.manager.add(this);
this.buildRendering(args,_445,_446);
this.initialize(args,_445,_446);
this.postInitialize(args,_445,_446);
this.postCreate(args,_445,_446);
return this;
},destroy:function(_447){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_447);
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,_448){
var ret=[];
var _449=dojo.lang.isFunction(type);
if(!_449){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_449){
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(_448){
ret=ret.concat(this.children[x].getChildrenOfType(type,_448));
}
}
return ret;
},getDescendants:function(){
var _44a=[];
var _44b=[this];
var elem;
while(elem=_44b.pop()){
_44a.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_44b.push(elem);
});
}
return _44a;
},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 _44c;
var _44d=dojo.widget.lcArgsCache[this.widgetType];
if(_44d==null){
_44d={};
for(var y in this){
_44d[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_44d;
}
var _44e={};
for(var x in args){
if(!this[x]){
var y=_44d[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_44e[x]){
continue;
}
_44e[x]=true;
if((typeof this[x])!=(typeof _44c)){
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 _44f=args[x].split(";");
for(var y=0;y<_44f.length;y++){
var si=_44f[y].indexOf(":");
if((si!=-1)&&(_44f[y].length>si)){
this[x][_44f[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_44f[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(_450){
},addChild:function(_451){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_452){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_452){
this.children.splice(x,1);
break;
}
}
return _452;
},resize:function(_453,_454){
this.setWidth(_453);
this.setHeight(_454);
},setWidth:function(_455){
if((typeof _455=="string")&&(_455.substr(-1)=="%")){
this.setPercentageWidth(_455);
}else{
this.setNativeWidth(_455);
}
},setHeight:function(_456){
if((typeof _456=="string")&&(_456.substr(-1)=="%")){
this.setPercentageHeight(_456);
}else{
this.setNativeHeight(_456);
}
},setPercentageHeight:function(_457){
return false;
},setNativeHeight:function(_458){
return false;
},setPercentageWidth:function(_459){
return false;
},setNativeWidth:function(_45a){
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 _45b=type.toLowerCase();
this[_45b]=function(_45c,_45d,_45e,_45f,_460){
return dojo.widget.buildWidgetFromParseTree(_45b,_45c,_45d,_45e,_45f,_460);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_461,_462,_463){
var _464=_462.parseProperties(_461["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_465,_466,_467){
var _468=_466.parseProperties(_465["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_469,_46a,_46b,_46c){
var _46d=type.split(":");
_46d=(_46d.length==2)?_46d[1]:type;
var _46e=_46c||_469.parseProperties(frag["dojo:"+_46d]);
var _46f=dojo.widget.manager.getImplementation(_46d);
if(!_46f){
throw new Error("cannot find \""+_46d+"\" widget");
}else{
if(!_46f.create){
throw new Error("\""+_46d+"\" widget object does not appear to implement *Widget");
}
}
_46e["dojoinsertionindex"]=_46b;
var ret=_46f.create(_46e,frag,_46a);
return ret;
};
dojo.widget.defineWidget=function(_470,_471,_472,init,_473){
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(_474,_475,_476,init,_477){
var _478=_474.split(".");
var type=_478.pop();
var regx="\\.("+(_475?_475+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_474.search(new RegExp(regx));
_478=(r<0?_478.join("."):_474.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_478);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
_477=(_477)||{};
_477.widgetType=type;
if((!init)&&(_477["classConstructor"])){
init=_477.classConstructor;
delete _477.classConstructor;
}
dojo.declare(_474,_476,init,_477);
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_479){
this.propertySetsList=[];
this.fragment=_479;
this.createComponents=function(frag,_47a){
var _47b=[];
var _47c=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _47d=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(_47d[ltn]){
_47c=true;
frag.tagName=ltn;
var ret=_47d[ltn](frag,this,_47a,frag["index"]);
_47b.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(!_47c){
_47b=_47b.concat(this.createSubComponents(frag,_47a));
}
return _47b;
};
this.createSubComponents=function(_47e,_47f){
var frag,_480=[];
for(var item in _47e){
frag=_47e[item];
if((frag)&&(typeof frag=="object")&&(frag!=_47e.nodeRef)&&(frag!=_47e["tagName"])){
_480=_480.concat(this.createComponents(frag,_47f));
}
}
return _480;
};
this.parsePropertySets=function(_481){
return [];
var _482=[];
for(var item in _481){
if((_481[item]["tagName"]=="dojo:propertyset")){
_482.push(_481[item]);
}
}
this.propertySetsList.push(_482);
return _482;
};
this.parseProperties=function(_483){
var _484={};
for(var item in _483){
if((_483[item]==_483["tagName"])||(_483[item]==_483.nodeRef)){
}else{
if((_483[item]["tagName"])&&(dojo.widget.tags[_483[item].tagName.toLowerCase()])){
}else{
if((_483[item][0])&&(_483[item][0].value!="")&&(_483[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _485=this;
this.getDataProvider(_485,_483[item][0].value);
_484.dataProvider=this.dataProvider;
}
_484[item]=_483[item][0].value;
var _486=this.parseProperties(_483[item]);
for(var _487 in _486){
_484[_487]=_486[_487];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _484;
};
this.getDataProvider=function(_488,_489){
dojo.io.bind({url:_489,load:function(type,_48a){
if(type=="load"){
_488.dataProvider=_48a;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_48b){
for(var x=0;x<this.propertySetsList.length;x++){
if(_48b==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_48c){
var _48d=[];
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)){
_48d.push(cpl);
}
}
return _48d;
};
this.getPropertySets=function(_48e){
var ppl="dojo:propertyproviderlist";
var _48f=[];
var _490=_48e["tagName"];
if(_48e[ppl]){
var _491=_48e[ppl].value.split(" ");
for(var _492 in _491){
if((_492.indexOf("..")==-1)&&(_492.indexOf("://")==-1)){
var _493=this.getPropertySetById(_492);
if(_493!=""){
_48f.push(_493);
}
}else{
}
}
}
return (this.getPropertySetsByType(_490)).concat(_48f);
};
this.createComponentFromScript=function(_494,_495,_496){
var ltn="dojo:"+_495.toLowerCase();
if(dojo.widget.tags[ltn]){
_496.fastMixIn=true;
return [dojo.widget.tags[ltn](_496,this,null,null,_496)];
}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,_497,_498,_499){
var _49a=name.toLowerCase();
var _49b="dojo:"+_49a;
var _49c=(dojo.byId(name)&&(!dojo.widget.tags[_49b]));
if((arguments.length==1)&&((typeof name!="string")||(_49c))){
var xp=new dojo.xml.Parse();
var tn=(_49c)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function _49d(_49e,name,_49f){
_49f[_49b]={dojotype:[{value:_49a}],nodeRef:_49e,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_49e,name,_49f,true);
};
if(typeof name!="string"&&typeof _497=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");
return _49d(name,_497,_498);
}
_497=_497||{};
var _4a0=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_498){
_4a0=true;
_498=tn;
if(h){
document.body.appendChild(_498);
}
}else{
if(_499){
dojo.dom.insertAtPosition(tn,_498,_499);
}else{
tn=_498;
}
}
var _4a1=_49d(tn,name,_497);
if(!_4a1||!_4a1[0]||typeof _4a1[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_4a0){
if(_4a1[0].domNode.parentNode){
_4a1[0].domNode.parentNode.removeChild(_4a1[0].domNode);
}
}
return _4a1[0];
};
dojo.widget.fromScript=function(name,_4a2,_4a3,_4a4){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_4a2,_4a3,_4a4);
};
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,_4a5,_4a6,_4a7,_4a8){
var _4a9=_4a5||obj.templatePath;
var _4aa=_4a6||obj.templateCssPath;
if(_4a9&&!(_4a9 instanceof dojo.uri.Uri)){
_4a9=dojo.uri.dojoUri(_4a9);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_4aa&&!(_4aa instanceof dojo.uri.Uri)){
_4aa=dojo.uri.dojoUri(_4aa);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _4ab=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _4ac="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_4ab[_4ac]);
obj.widgetType=_4ac;
}
var wt=obj.widgetType;
if(_4aa&&!dojo.widget._cssFiles[_4aa.toString()]){
if((!obj.templateCssString)&&(_4aa)){
obj.templateCssString=dojo.hostenv.getText(_4aa);
obj.templateCssPath=null;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_4aa);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
dojo.widget._cssFiles[_4aa.toString()]=true;
}
var ts=_4ab[wt];
if(!ts){
_4ab[wt]={"string":null,"node":null};
if(_4a8){
ts={};
}else{
ts=_4ab[wt];
}
}
if((!obj.templateString)&&(!_4a8)){
obj.templateString=_4a7||ts["string"];
}
if((!obj.templateNode)&&(!_4a8)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_4a9)){
var _4ad=dojo.hostenv.getText(_4a9);
if(_4ad){
_4ad=_4ad.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _4ae=_4ad.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_4ae){
_4ad=_4ae[1];
}
}else{
_4ad="";
}
obj.templateString=_4ad;
if(!_4a8){
_4ab[wt]["string"]=_4ad;
}
}
if((!ts["string"])&&(!_4a8)){
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:",nsName:"role"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:"",nsName:"state"},setAttr:function(node,attr,_4af){
if(dojo.render.html.ie){
node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_4af);
}else{
node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_4af);
}
}};
dojo.widget.attachTemplateNodes=function(_4b0,_4b1,_4b2){
var _4b3=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
};
if(!_4b0){
_4b0=_4b1.domNode;
}
if(_4b0.nodeType!=_4b3){
return;
}
var _4b4=_4b0.all||_4b0.getElementsByTagName("*");
var _4b5=_4b1;
for(var x=-1;x<_4b4.length;x++){
var _4b6=(x==-1)?_4b0:_4b4[x];
var _4b7=[];
for(var y=0;y<this.attachProperties.length;y++){
var _4b8=_4b6.getAttribute(this.attachProperties[y]);
if(_4b8){
_4b7=_4b8.split(";");
for(var z=0;z<_4b7.length;z++){
if(dojo.lang.isArray(_4b1[_4b7[z]])){
_4b1[_4b7[z]].push(_4b6);
}else{
_4b1[_4b7[z]]=_4b6;
}
}
break;
}
}
var _4b9=_4b6.getAttribute(this.templateProperty);
if(_4b9){
_4b1[_4b9]=_4b6;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_4b6.getAttribute(wai.name);
if(val){
dojo.widget.wai.setAttr(_4b6,wai.name,val);
}
},this);
var _4ba=_4b6.getAttribute(this.eventAttachProperty);
if(_4ba){
var evts=_4ba.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _4bb=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _4bc=tevt.split(":");
tevt=trim(_4bc[0]);
_4bb=trim(_4bc[1]);
}
if(!_4bb){
_4bb=tevt;
}
var tf=function(){
var ntf=new String(_4bb);
return function(evt){
if(_4b5[ntf]){
_4b5[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4b6,tevt,tf,false,true);
}
}
for(var y=0;y<_4b2.length;y++){
var _4bd=_4b6.getAttribute(_4b2[y]);
if((_4bd)&&(_4bd.length)){
var _4bb=null;
var _4be=_4b2[y].substr(4);
_4bb=trim(_4bd);
var _4bf=[_4bb];
if(_4bb.indexOf(";")>=0){
_4bf=dojo.lang.map(_4bb.split(";"),trim);
}
for(var z=0;z<_4bf.length;z++){
if(!_4bf[z].length){
continue;
}
var tf=function(){
var ntf=new String(_4bf[z]);
return function(evt){
if(_4b5[ntf]){
_4b5[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_4b6,_4be,tf,false,true);
}
}
}
var _4c0=_4b6.getAttribute(this.onBuildProperty);
if(_4c0){
eval("var node = baseNode; var widget = targetObj; "+_4c0);
}
}
};
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(_4c1,_4c2,pos,ref,_4c3){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_4c1,_4c2,pos,ref,_4c3);
this.registerChild(_4c1,_4c3);
}
return _4c1;
},addWidgetAsDirectChild:function(_4c4,_4c5,pos,ref,_4c6){
if((!this.containerNode)&&(!_4c5)){
this.containerNode=this.domNode;
}
var cn=(_4c5)?_4c5:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_4c6){
_4c6=0;
}
_4c4.domNode.setAttribute("dojoinsertionindex",_4c6);
if(!ref){
cn.appendChild(_4c4.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_4c4.domNode,ref.parentNode,_4c6);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_4c4.domNode);
}else{
dojo.dom.insertAtPosition(_4c4.domNode,cn,pos);
}
}
}
},registerChild:function(_4c7,_4c8){
_4c7.dojoInsertionIndex=_4c8;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_4c8){
idx=i;
}
}
this.children.splice(idx+1,0,_4c7);
_4c7.parent=this;
_4c7.addedTo(this);
delete dojo.widget.manager.topWidgets[_4c7.widgetId];
},removeChild:function(_4c9){
dojo.dom.removeNode(_4c9.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_4c9);
},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,_4ca){
var _4cb=this.getFragNodeRef(frag);
if(_4ca&&(_4ca.snarfChildDomOutput||!_4cb)){
_4ca.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_4cb);
}else{
if(_4cb){
if(this.domNode&&(this.domNode!==_4cb)){
var _4cc=_4cb.parentNode.replaceChild(this.domNode,_4cb);
}
}
}
if(_4ca){
_4ca.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _4cd=dojo.widget.getParser();
_4cd.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 _4ce=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_4ce=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_4ce);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_4ce)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _4cf=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_4cf=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_4cf){
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<_4cf.length;i++){
var key=_4cf[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 _4d0;
if((kval)||(dojo.lang.isString(kval))){
_4d0=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_4cf[i],_4d0);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_4ce){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_4cf)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_4cf){
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(_4d1,_4d2){
if(!_4d2){
_4d2=this;
}
return dojo.widget.attachTemplateNodes(_4d1,_4d2,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.lfx.toggle");
dojo.require("dojo.lfx.*");
dojo.lfx.toggle.plain={show:function(node,_4d3,_4d4,_4d5){
dojo.style.show(node);
if(dojo.lang.isFunction(_4d5)){
_4d5();
}
},hide:function(node,_4d6,_4d7,_4d8){
dojo.style.hide(node);
if(dojo.lang.isFunction(_4d8)){
_4d8();
}
}};
dojo.lfx.toggle.fade={show:function(node,_4d9,_4da,_4db){
dojo.lfx.fadeShow(node,_4d9,_4da,_4db).play();
},hide:function(node,_4dc,_4dd,_4de){
dojo.lfx.fadeHide(node,_4dc,_4dd,_4de).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_4df,_4e0,_4e1){
dojo.lfx.wipeIn(node,_4df,_4e0,_4e1).play();
},hide:function(node,_4e2,_4e3,_4e4){
dojo.lfx.wipeOut(node,_4e2,_4e3,_4e4).play();
}};
dojo.lfx.toggle.explode={show:function(node,_4e5,_4e6,_4e7,_4e8){
dojo.lfx.explode(_4e8||[0,0,0,0],node,_4e5,_4e6,_4e7).play();
},hide:function(node,_4e9,_4ea,_4eb,_4ec){
dojo.lfx.implode(node,_4ec||[0,0,0,0],_4e9,_4ea,_4eb).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(_4ed){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_4ee){
try{
if(!_4ee){
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(_4ef){
_4ef.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.math");
dojo.math.degToRad=function(x){
return (x*Math.PI)/180;
};
dojo.math.radToDeg=function(x){
return (x*180)/Math.PI;
};
dojo.math.factorial=function(n){
if(n<1){
return 0;
}
var _4f0=1;
for(var i=1;i<=n;i++){
_4f0*=i;
}
return _4f0;
};
dojo.math.permutations=function(n,k){
if(n==0||k==0){
return 1;
}
return (dojo.math.factorial(n)/dojo.math.factorial(n-k));
};
dojo.math.combinations=function(n,r){
if(n==0||r==0){
return 1;
}
return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r)));
};
dojo.math.bernstein=function(t,n,i){
return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i));
};
dojo.math.gaussianRandom=function(){
var k=2;
do{
var i=2*Math.random()-1;
var j=2*Math.random()-1;
k=i*i+j*j;
}while(k>=1);
k=Math.sqrt((-2*Math.log(k))/k);
return i*k;
};
dojo.math.mean=function(){
var _4f1=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_4f1.length;i++){
mean+=_4f1[i];
}
return mean/_4f1.length;
};
dojo.math.round=function(_4f2,_4f3){
if(!_4f3){
var _4f4=1;
}else{
var _4f4=Math.pow(10,_4f3);
}
return Math.round(_4f2*_4f4)/_4f4;
};
dojo.math.sd=function(){
var _4f5=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_4f5));
};
dojo.math.variance=function(){
var _4f6=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,_4f7=0;
for(var i=0;i<_4f6.length;i++){
mean+=_4f6[i];
_4f7+=Math.pow(_4f6[i],2);
}
return (_4f7/_4f6.length)-Math.pow(mean/_4f6.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _4f8=[];
if(step>0){
for(var i=a;i<b;i+=step){
_4f8.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_4f8.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _4f8;
};
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_4f9,end){
this.start=_4f9;
this.end=end;
this.dimensions=_4f9.length;
for(var i=0;i<_4f9.length;i++){
_4f9[i]=Number(_4f9[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _4fa=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_4fa[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _4fa;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _4fb=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_4fb[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_4fb[j]=C/D;
}
return _4fb;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _4fc=step*(this.p.length-1);
var node=Math.floor(_4fc);
var _4fd=_4fc-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_4fd;
var u2=_4fd*_4fd;
var u3=_4fd*_4fd*_4fd;
var _4fe=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_4fe[k]=x1*u3+x2*u2+x3*u+x4;
}
return _4fe;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_4ff,end,ccw){
var _500=dojo.math.points.midpoint(_4ff,end);
var _501=dojo.math.points.translate(dojo.math.points.invert(_500),_4ff);
var rad=Math.sqrt(Math.pow(_501[0],2)+Math.pow(_501[1],2));
var _502=dojo.math.radToDeg(Math.atan(_501[1]/_501[0]));
if(_501[0]<0){
_502-=90;
}else{
_502+=90;
}
dojo.math.curves.CenteredArc.call(this,_500,rad,_502,_502+(ccw?-180:180));
},CenteredArc:function(_503,_504,_505,end){
this.center=_503;
this.radius=_504;
this.start=_505||0;
this.end=end;
this.getValue=function(n){
var _506=new Array(2);
var _507=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_506[0]=this.center[0]+this.radius*Math.sin(_507);
_506[1]=this.center[1]-this.radius*Math.cos(_507);
return _506;
};
return this;
},Circle:function(_508,_509){
dojo.math.curves.CenteredArc.call(this,_508,_509,0,360);
return this;
},Path:function(){
var _50a=[];
var _50b=[];
var _50c=[];
var _50d=0;
this.add=function(_50e,_50f){
if(_50f<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_50a.push(_50e);
_50b.push(_50f);
_50d+=_50f;
_510();
};
this.remove=function(_511){
for(var i=0;i<_50a.length;i++){
if(_50a[i]==_511){
_50a.splice(i,1);
_50d-=_50b.splice(i,1)[0];
break;
}
}
_510();
};
this.removeAll=function(){
_50a=[];
_50b=[];
_50d=0;
};
this.getValue=function(n){
var _512=false,_513=0;
for(var i=0;i<_50c.length;i++){
var r=_50c[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
_513=_50a[i].getValue(subN);
_512=true;
break;
}
}
if(!_512){
_513=_50a[_50a.length-1].getValue(1);
}
for(var j=0;j<i;j++){
_513=dojo.math.points.translate(_513,_50a[j].getValue(1));
}
return _513;
};
function _510(){
var _514=0;
for(var i=0;i<_50b.length;i++){
var end=_514+_50b[i]/_50d;
var len=end-_514;
_50c[i]=[_514,end,len];
_514=end;
}
};
return this;
}};
dojo.provide("dojo.math.points");
dojo.require("dojo.math");
dojo.math.points={translate:function(a,b){
if(a.length!=b.length){
dojo.raise("dojo.math.translate: points not same size (a:["+a+"], b:["+b+"])");
}
var c=new Array(a.length);
for(var i=0;i<a.length;i++){
c[i]=a[i]+b[i];
}
return c;
},midpoint:function(a,b){
if(a.length!=b.length){
dojo.raise("dojo.math.midpoint: points not same size (a:["+a+"], b:["+b+"])");
}
var c=new Array(a.length);
for(var i=0;i<a.length;i++){
c[i]=(a[i]+b[i])/2;
}
return c;
},invert:function(a){
var b=new Array(a.length);
for(var i=0;i<a.length;i++){
b[i]=-a[i];
}
return b;
},distance:function(a,b){
return Math.sqrt(Math.pow(b[0]-a[0],2)+Math.pow(b[1]-a[1],2));
}};
dojo.kwCompoundRequire({common:[["dojo.math",false,false],["dojo.math.curves",false,false],["dojo.math.points",false,false]]});
dojo.provide("dojo.math.*");

