/*
	Copyright (c) 2004-2006, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/community/licensing.shtml
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 6425 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.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(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
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 _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_36,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
return _6e?_6e.toLowerCase():dojo.locale;
};
dojo.hostenv.searchLocalePath=function(_6f,_70,_71){
_6f=dojo.hostenv.normalizeLocale(_6f);
var _72=_6f.split("-");
var _73=[];
for(var i=_72.length;i>0;i--){
_73.push(_72.slice(0,i).join("-"));
}
_73.push(false);
if(_70){
_73.reverse();
}
for(var j=_73.length-1;j>=0;j--){
var loc=_73[j]||"ROOT";
var _77=_71(loc);
if(_77){
break;
}
}
};
dojo.hostenv.localesGenerated;
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_78){
_78=dojo.hostenv.normalizeLocale(_78);
dojo.hostenv.searchLocalePath(_78,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _7b=djConfig.extraLocale||[];
for(var i=0;i<_7b.length;i++){
preload(_7b[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7d,_7e,_7f){
dojo.hostenv.preloadLocalizations();
var _80=[_7d,"nls",_7e].join(".");
var _81=dojo.hostenv.findModule(_80);
if(_81){
if(djConfig.localizationComplete&&_81._built){
return;
}
var _82=dojo.hostenv.normalizeLocale(_7f).replace("-","_");
var _83=_80+"."+_82;
if(dojo.hostenv.findModule(_83)){
return;
}
}
_81=dojo.hostenv.startPackage(_80);
var _84=dojo.hostenv.getModuleSymbols(_7d);
var _85=_84.concat("nls").join("/");
var _86;
dojo.hostenv.searchLocalePath(_7f,false,function(loc){
var _88=loc.replace("-","_");
var _89=_80+"."+_88;
var _8a=false;
if(!dojo.hostenv.findModule(_89)){
dojo.hostenv.startPackage(_89);
var _8b=[_85];
if(loc!="ROOT"){
_8b.push(loc);
}
_8b.push(_7e);
var _8c=_8b.join("/")+".js";
_8a=dojo.hostenv.loadPath(_8c,null,function(_8d){
var _8e=function(){
};
_8e.prototype=_86;
_81[_88]=new _8e();
for(var j in _8d){
_81[_88][j]=_8d[j];
}
});
}else{
_8a=true;
}
if(_8a&&_81[_88]){
_86=_81[_88];
}else{
_81[_88]=_86;
}
});
};
(function(){
var _90=djConfig.extraLocale;
if(_90){
if(!_90 instanceof Array){
_90=[_90];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_94){
req(m,b,_94);
if(_94){
return;
}
for(var i=0;i<_90.length;i++){
req(m,b,_90[i]);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _96=document.location.toString();
var _97=_96.split("?",2);
if(_97.length>1){
var _98=_97[1];
var _99=_98.split("&");
for(var x in _99){
var sp=_99[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 _9d=document.getElementsByTagName("script");
var _9e=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_9d.length;i++){
var src=_9d[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_9e);
if(m){
var _a2=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_a2+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_a2;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_a2;
}
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 _aa=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_aa>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_aa+6,_aa+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;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=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;
var _ac=window["document"];
var tdi=_ac["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
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 _b0=null;
var _b1=null;
try{
_b0=new XMLHttpRequest();
}
catch(e){
}
if(!_b0){
for(var i=0;i<3;++i){
var _b3=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b0=new ActiveXObject(_b3);
}
catch(e){
_b1=e;
}
if(_b0){
dojo.hostenv._XMLHTTP_PROGIDS=[_b3];
break;
}
}
}
if(!_b0){
return dojo.raise("XMLHTTP not available",_b1);
}
return _b0;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_b5,_b6){
if(!_b5){
this._blockAsync=true;
}
var _b7=this.getXmlhttpObject();
function isDocumentOk(_b8){
var _b9=_b8["status"];
return Boolean((!_b9)||((200<=_b9)&&(300>_b9))||(_b9==304));
}
if(_b5){
var _ba=this,_bb=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_b7.onreadystatechange=function(){
if(_bb){
gbl.clearTimeout(_bb);
_bb=null;
}
if(_ba._blockAsync||(xhr&&xhr._blockAsync)){
_bb=gbl.setTimeout(function(){
_b7.onreadystatechange.apply(this);
},10);
}else{
if(4==_b7.readyState){
if(isDocumentOk(_b7)){
_b5(_b7.responseText);
}
}
}
};
}
_b7.open("GET",uri,_b5?true:false);
try{
_b7.send(null);
if(_b5){
return null;
}
if(!isDocumentOk(_b7)){
var err=Error("Unable to load "+uri+" status:"+_b7.status);
err.status=_b7.status;
err.responseText=_b7.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_b6)&&(!_b5)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _b7.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_bf){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_bf);
}else{
try{
var _c0=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c0){
_c0=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_bf));
_c0.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_bf+"</div>");
}
catch(e2){
window.status=_bf;
}
}
}
};
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(_c2,_c3,fp,_c5){
var _c6=_c2["on"+_c3]||function(){
};
_c2["on"+_c3]=function(){
fp.apply(_c2,arguments);
_c6.apply(_c2,arguments);
};
return true;
}
function dj_load_init(e){
var _c8=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_c8!="domcontentloaded"&&_c8!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _c9=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_c9();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_c9);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var _cb=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_cb=_cb.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_cb=_cb.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_cb.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _cc=new dojo.xml.Parse();
if(_cb.length>0){
for(var x=0;x<_cb.length;x++){
var _ce=document.getElementById(_cb[x]);
if(!_ce){
continue;
}
var _cf=_cc.parseElement(_ce,null,true);
dojo.widget.getParser().createComponents(_cf);
}
}else{
if(djConfig.parseWidgets){
var _cf=_cc.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_cf);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_d4,_d5){
dj_currentContext=_d4;
dj_currentDocument=_d5;
};
dojo._fireCallback=function(_d6,_d7,_d8){
if((_d7)&&((typeof _d6=="string")||(_d6 instanceof String))){
_d6=_d7[_d6];
}
return (_d7?_d6.apply(_d7,_d8||[]):_d6());
};
dojo.withGlobal=function(_d9,_da,_db,_dc){
var _dd;
var _de=dj_currentContext;
var _df=dj_currentDocument;
try{
dojo.setContext(_d9,_d9.document);
_dd=dojo._fireCallback(_da,_db,_dc);
}
finally{
dojo.setContext(_de,_df);
}
return _dd;
};
dojo.withDoc=function(_e0,_e1,_e2,_e3){
var _e4;
var _e5=dj_currentDocument;
try{
dj_currentDocument=_e0;
_e4=dojo._fireCallback(_e1,_e2,_e3);
}
finally{
dj_currentDocument=_e5;
}
return _e4;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _e6=false;
var _e7=false;
var _e8=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_e6=true;
}else{
if(typeof this["load"]=="function"){
_e7=true;
}else{
if(window.widget){
_e8=true;
}
}
}
var _e9=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_e9.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_e6)&&(!_e8)){
_e9.push("browser_debug.js");
}
var _ea=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_ea=djConfig["baseLoaderUri"];
}
for(var x=0;x<_e9.length;x++){
var _ec=_ea+"src/"+_e9[x];
if(_e6||_e7){
load(_ec);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_ec+"'></scr"+"ipt>");
}
catch(e){
var _ed=document.createElement("script");
_ed.src=_ec;
document.getElementsByTagName("head")[0].appendChild(_ed);
}
}
}
})();
dojo.provide("dojo.string.common");
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,_f4,_f5){
var out="";
for(var i=0;i<_f4;i++){
out+=str;
if(_f5&&i<_f4-1){
out+=_f5;
}
}
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.provide("dojo.lang.common");
dojo.lang.inherits=function(_103,_104){
if(typeof _104!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_104+"] must be a function (subclass: ["+_103+"']");
}
_103.prototype=new _104();
_103.prototype.constructor=_103;
_103.superclass=_104.prototype;
_103["super"]=_104.prototype;
};
dojo.lang._mixin=function(obj,_106){
var tobj={};
for(var x in _106){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_106[x])){
obj[x]=_106[x];
}
}
if(dojo.render.html.ie&&(typeof (_106["toString"])=="function")&&(_106["toString"]!=obj["toString"])&&(_106["toString"]!=tobj["toString"])){
obj.toString=_106.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_10a){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_10d,_10e){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_10d.prototype,arguments[i]);
}
return _10d;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_111,_112,_113,_114){
if(!dojo.lang.isArrayLike(_111)&&dojo.lang.isArrayLike(_112)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_111;
_111=_112;
_112=temp;
}
var _116=dojo.lang.isString(_111);
if(_116){
_111=_111.split("");
}
if(_114){
var step=-1;
var i=_111.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_111.length;
}
if(_113){
while(i!=end){
if(_111[i]===_112){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_111[i]==_112){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_11a,_11b,_11c){
return dojo.lang.find(_11a,_11b,_11c,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_11d,_11e){
return dojo.lang.find(_11d,_11e)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
if(!it){
return false;
}
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_129){
var _12a=window,_12b=2;
if(!dojo.lang.isFunction(func)){
_12a=func;
func=_129;
_129=arguments[2];
_12b++;
}
if(dojo.lang.isString(func)){
func=_12a[func];
}
var args=[];
for(var i=_12b;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_12a,args);
},_129);
};
dojo.lang.clearTimeout=function(_12e){
dojo.global().clearTimeout(_12e);
};
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,deep){
var i,ret;
if(obj===null){
return null;
}
if(dojo.lang.isObject(obj)){
ret=new obj.constructor();
for(i in obj){
if(dojo.lang.isUndefined(ret[i])){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}
}else{
if(dojo.lang.isArray(obj)){
ret=[];
for(i=0;i<obj.length;i++){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}else{
ret=obj;
}
}
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(_137,_138,_139){
with(dojo.parseObjPath(_137,_138,_139)){
return dojo.evalProp(prop,obj,_139);
}
};
dojo.lang.setObjPathValue=function(_13a,_13b,_13c,_13d){
if(arguments.length<4){
_13d=true;
}
with(dojo.parseObjPath(_13a,_13c,_13d)){
if(obj&&(_13d||(prop in obj))){
obj[prop]=_13b;
}
}
};
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_13f,_140,_141){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_13f){
this.mimetype=_13f;
}
if(_140){
this.transport=_140;
}
if(arguments.length>=4){
this.changeUrl=_141;
}
}
};
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,_144,_145){
},error:function(type,_147,_148,_149){
},timeout:function(type,_14b,_14c,_14d){
},handle:function(type,data,_150,_151){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_152){
if(_152["url"]){
_152.url=_152.url.toString();
}
if(_152["formNode"]){
_152.formNode=dojo.byId(_152.formNode);
}
if(!_152["method"]&&_152["formNode"]&&_152["formNode"].method){
_152.method=_152["formNode"].method;
}
if(!_152["handle"]&&_152["handler"]){
_152.handle=_152.handler;
}
if(!_152["load"]&&_152["loaded"]){
_152.load=_152.loaded;
}
if(!_152["changeUrl"]&&_152["changeURL"]){
_152.changeUrl=_152.changeURL;
}
_152.encoding=dojo.lang.firstValued(_152["encoding"],djConfig["bindEncoding"],"");
_152.sendTransport=dojo.lang.firstValued(_152["sendTransport"],djConfig["ioSendTransport"],false);
var _153=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_152[fn]&&_153(_152[fn])){
continue;
}
if(_152["handle"]&&_153(_152["handle"])){
_152[fn]=_152.handle;
}
}
dojo.lang.mixin(this,_152);
}});
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(_15a){
if(!(_15a instanceof dojo.io.Request)){
try{
_15a=new dojo.io.Request(_15a);
}
catch(e){
dojo.debug(e);
}
}
var _15b="";
if(_15a["transport"]){
_15b=_15a["transport"];
if(!this[_15b]){
dojo.io.sendBindError(_15a,"No dojo.io.bind() transport with name '"+_15a["transport"]+"'.");
return _15a;
}
if(!this[_15b].canHandle(_15a)){
dojo.io.sendBindError(_15a,"dojo.io.bind() transport with name '"+_15a["transport"]+"' cannot handle this type of request.");
return _15a;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_15a))){
_15b=tmp;
break;
}
}
if(_15b==""){
dojo.io.sendBindError(_15a,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _15a;
}
}
this[_15b].bind(_15a);
_15a.bindSuccess=true;
return _15a;
};
dojo.io.sendBindError=function(_15e,_15f){
if((typeof _15e.error=="function"||typeof _15e.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _160=new dojo.io.Error(_15f);
setTimeout(function(){
_15e[(typeof _15e.error=="function")?"error":"handle"]("error",_160,null,_15e);
},50);
}else{
dojo.raise(_15f);
}
};
dojo.io.queueBind=function(_161){
if(!(_161 instanceof dojo.io.Request)){
try{
_161=new dojo.io.Request(_161);
}
catch(e){
dojo.debug(e);
}
}
var _162=_161.load;
_161.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_162.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _164=_161.error;
_161.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_164.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_161);
dojo.io._dispatchNextQueueBind();
return _161;
};
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,_167,last){
var enc=/utf/i.test(_167||"")?encodeURIComponent:dojo.string.encodeAscii;
var _16a=[];
var _16b=new Object();
for(var name in map){
var _16d=function(elt){
var val=enc(name)+"="+enc(elt);
_16a[(last==name)?"push":"unshift"](val);
};
if(!_16b[name]){
var _170=map[name];
if(dojo.lang.isArray(_170)){
dojo.lang.forEach(_170,_16d);
}else{
_16d(_170);
}
}
}
return _16a.join("&");
};
dojo.io.setIFrameSrc=function(_171,src,_173){
try{
var r=dojo.render.html;
if(!_173){
if(r.safari){
_171.location=src;
}else{
frames[_171.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_171.contentWindow.document;
}else{
if(r.safari){
idoc=_171.document;
}else{
idoc=_171.contentWindow;
}
}
if(!idoc){
_171.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.lang.array");
dojo.lang.has=function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _17a=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_17a++;
break;
}
}
return _17a==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_17e){
var _17f=dojo.lang.isString(arr);
if(_17f){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_17e)){
_17e=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_17e){
var _180=obj;
obj=_17e;
_17e=_180;
}
}
if(Array.map){
var _181=Array.map(arr,_17e,obj);
}else{
var _181=[];
for(var i=0;i<arr.length;++i){
_181.push(_17e.call(obj,arr[i]));
}
}
if(_17f){
return _181.join("");
}else{
return _181;
}
};
dojo.lang.reduce=function(arr,_184,obj,_186){
var _187=_184;
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_187=_186.call(ob,_187,val);
});
return _187;
};
dojo.lang.forEach=function(_18a,_18b,_18c){
if(dojo.lang.isString(_18a)){
_18a=_18a.split("");
}
if(Array.forEach){
Array.forEach(_18a,_18b,_18c);
}else{
if(!_18c){
_18c=dj_global;
}
for(var i=0,l=_18a.length;i<l;i++){
_18b.call(_18c,_18a[i],i,_18a);
}
}
};
dojo.lang._everyOrSome=function(_18f,arr,_191,_192){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_18f?"every":"some"](arr,_191,_192);
}else{
if(!_192){
_192=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _195=_191.call(_192,arr[i],i,arr);
if(_18f&&!_195){
return false;
}else{
if((!_18f)&&(_195)){
return true;
}
}
}
return Boolean(_18f);
}
};
dojo.lang.every=function(arr,_197,_198){
return this._everyOrSome(true,arr,_197,_198);
};
dojo.lang.some=function(arr,_19a,_19b){
return this._everyOrSome(false,arr,_19a,_19b);
};
dojo.lang.filter=function(arr,_19d,_19e){
var _19f=dojo.lang.isString(arr);
if(_19f){
arr=arr.split("");
}
var _1a0;
if(Array.filter){
_1a0=Array.filter(arr,_19d,_19e);
}else{
if(!_19e){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_19e=dj_global;
}
_1a0=[];
for(var i=0;i<arr.length;i++){
if(_19d.call(_19e,arr[i],i,arr)){
_1a0.push(arr[i]);
}
}
}
if(_19f){
return _1a0.join("");
}else{
return _1a0;
}
};
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(_1a5,_1a6){
var _1a7=[];
for(var i=_1a6||0;i<_1a5.length;i++){
_1a7.push(_1a5[i]);
}
return _1a7;
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_1a9,_1aa){
var fcn=(dojo.lang.isString(_1aa)?_1a9[_1aa]:_1aa)||function(){
};
return function(){
return fcn.apply(_1a9,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1ac,_1ad,_1ae){
var nso=(_1ad||dojo.lang.anon);
if((_1ae)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_1ac){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1ac;
return ret;
};
dojo.lang.forward=function(_1b2){
return function(){
return this[_1b2].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _1b5=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_1b5.push(arguments[x]);
}
var _1b7=(func["__preJoinArity"]||func.length)-_1b5.length;
function gather(_1b8,_1b9,_1ba){
var _1bb=_1ba;
var _1bc=_1b9.slice(0);
for(var x=0;x<_1b8.length;x++){
_1bc.push(_1b8[x]);
}
_1ba=_1ba-_1b8.length;
if(_1ba<=0){
var res=func.apply(ns,_1bc);
_1ba=_1bb;
return res;
}else{
return function(){
return gather(arguments,_1bc,_1ba);
};
}
}
return gather([],_1b5,_1b7);
};
dojo.lang.curryArguments=function(ns,func,args,_1c2){
var _1c3=[];
var x=_1c2||0;
for(x=_1c2;x<args.length;x++){
_1c3.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_1c3));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_1c9,_1ca){
if(!farr.length){
if(typeof _1ca=="function"){
_1ca();
}
return;
}
if((typeof _1c9=="undefined")&&(typeof cb=="number")){
_1c9=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1c9){
_1c9=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1c9,_1ca);
},_1c9);
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_1cb,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _1cb.replace(/\%\{(\w+)\}/g,function(_1ce,key){
if(typeof (map[key])!="undefined"&&map[key]!=null){
return map[key];
}
dojo.raise("Substitution not found: "+key);
});
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _1d1=str.split(" ");
for(var i=0;i<_1d1.length;i++){
_1d1[i]=_1d1[i].charAt(0).toUpperCase()+_1d1[i].substring(1);
}
return _1d1.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 _1d6=escape(str);
var _1d7,re=/%u([0-9A-F]{4})/i;
while((_1d7=_1d6.match(re))){
var num=Number("0x"+_1d7[1]);
var _1da=escape("&#"+num+";");
ret+=_1d6.substring(0,_1d7.index)+_1da;
_1d6=_1d6.substring(_1d7.index+_1d7[0].length);
}
ret+=_1d6.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,_1df){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1df){
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;
}
return str.substring(0,len).replace(/\.+$/,"")+"...";
};
dojo.string.endsWith=function(str,end,_1e8){
if(_1e8){
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,_1ec,_1ed){
if(_1ed){
str=str.toLowerCase();
_1ec=_1ec.toLowerCase();
}
return str.indexOf(_1ec)==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,_1f3){
if(_1f3=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1f3=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_1f5){
var _1f6=[];
for(var i=0,_1f8=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1f5){
_1f6.push(str.substring(_1f8,i));
_1f8=i+1;
}
}
_1f6.push(str.substr(_1f8));
return _1f6;
};
dojo.provide("dojo.dom");
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=="function"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _1fa=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_1fa.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_1fc,_1fd){
var node=_1fc.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1fd&&node&&node.tagName&&node.tagName.toLowerCase()!=_1fd.toLowerCase()){
node=dojo.dom.nextElement(node,_1fd);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1ff,_200){
var node=_1ff.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_200&&node&&node.tagName&&node.tagName.toLowerCase()!=_200.toLowerCase()){
node=dojo.dom.prevElement(node,_200);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_203){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_203&&_203.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_203);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_205){
if(!node){
return null;
}
if(_205){
_205=_205.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_205&&_205.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_205);
}
return node;
};
dojo.dom.moveChildren=function(_206,_207,trim){
var _209=0;
if(trim){
while(_206.hasChildNodes()&&_206.firstChild.nodeType==dojo.dom.TEXT_NODE){
_206.removeChild(_206.firstChild);
}
while(_206.hasChildNodes()&&_206.lastChild.nodeType==dojo.dom.TEXT_NODE){
_206.removeChild(_206.lastChild);
}
}
while(_206.hasChildNodes()){
_207.appendChild(_206.firstChild);
_209++;
}
return _209;
};
dojo.dom.copyChildren=function(_20a,_20b,trim){
var _20d=_20a.cloneNode(true);
return this.moveChildren(_20d,_20b,trim);
};
dojo.dom.removeChildren=function(node){
var _20f=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _20f;
};
dojo.dom.replaceChildren=function(node,_211){
dojo.dom.removeChildren(node);
node.appendChild(_211);
};
dojo.dom.removeNode=function(node,_213){
if(node&&node.parentNode){
try{
if((_213)&&(dojo.evalObjPath("dojo.event.browser.clean",false))){
dojo.event.browser.clean(node);
}
}
catch(e){
}
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_215,_216){
var _217=[];
var _218=(_215&&(_215 instanceof Function||typeof _215=="function"));
while(node){
if(!_218||_215(node)){
_217.push(node);
}
if(_216&&_217.length>0){
return _217[0];
}
node=node.parentNode;
}
if(_216){
return null;
}
return _217;
};
dojo.dom.getAncestorsByTag=function(node,tag,_21b){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_21b);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_220,_221){
if(_221&&node){
node=node.parentNode;
}
while(node){
if(node==_220){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
var _224=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _225=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_225.length;i++){
try{
doc=new ActiveXObject(_225[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_224.implementation)&&(_224.implementation.createDocument)){
doc=_224.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_228){
if(!_228){
_228="text/xml";
}
if(!dj_undef("DOMParser")){
var _229=new DOMParser();
return _229.parseFromString(str,_228);
}else{
if(!dj_undef("ActiveXObject")){
var _22a=dojo.dom.createDocument();
if(_22a){
_22a.async=false;
_22a.loadXML(str);
return _22a;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _22b=dojo.doc();
if(_22b.createElement){
var tmp=_22b.createElement("xml");
tmp.innerHTML=str;
if(_22b.implementation&&_22b.implementation.createDocument){
var _22d=_22b.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_22d.importNode(tmp.childNodes.item(i),true);
}
return _22d;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_230){
if(_230.firstChild){
_230.insertBefore(node,_230.firstChild);
}else{
_230.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_233){
if((_233!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _234=ref.parentNode;
_234.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_237){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_237!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_237);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_23b){
if((!node)||(!ref)||(!_23b)){
return false;
}
switch(_23b.toLowerCase()){
case "before":
return dojo.dom.insertBefore(node,ref);
case "after":
return dojo.dom.insertAfter(node,ref);
case "first":
if(ref.firstChild){
return dojo.dom.insertBefore(node,ref.firstChild);
}else{
ref.appendChild(node);
return true;
}
break;
default:
ref.appendChild(node);
return true;
}
};
dojo.dom.insertAtIndex=function(node,_23d,_23e){
var _23f=_23d.childNodes;
if(!_23f.length){
_23d.appendChild(node);
return true;
}
var _240=null;
for(var i=0;i<_23f.length;i++){
var _242=_23f.item(i)["getAttribute"]?parseInt(_23f.item(i).getAttribute("dojoinsertionindex")):-1;
if(_242<_23e){
_240=_23f.item(i);
}
}
if(_240){
return dojo.dom.insertAfter(node,_240);
}else{
return dojo.dom.insertBefore(node,_23f.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _245=dojo.doc();
dojo.dom.replaceChildren(node,_245.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _246="";
if(node==null){
return _246;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_246+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_246+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _246;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_24c,_24d,_24e){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_24c,_24d,_24e);
}else{
var _24f=elem.ownerDocument;
var _250=_24f.createNode(2,_24d,_24c);
_250.nodeValue=_24e;
elem.setAttributeNode(_250);
}
};
dojo.provide("dojo.undo.browser");
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:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _255=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_257){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_255.apply(this,[_257]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _258=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_25a){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_258){
_258.apply(this,[_25a]);
}
};
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);
}
}
}
}else{
url=this._loadIframeHistory();
}
this.historyStack.push(this._createState(url,args,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,_25d){
if(!dojo.render.html.opera){
var _25e=this._getUrlQuery(_25d.href);
if(_25e==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_25e==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_25e==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _25f=this.historyStack.pop();
if(!_25f){
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(_25f);
},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);
},_createState:function(url,args,hash){
return {"url":url,"kwArgs":args,"urlHash":hash};
},_getUrlQuery:function(url){
var _266=url.split("?");
if(_266.length<2){
return null;
}else{
return _266[1];
}
},_loadIframeHistory:function(){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _269=false;
var _26a=node.getElementsByTagName("input");
dojo.lang.forEach(_26a,function(_26b){
if(_269){
return;
}
if(_26b.getAttribute("type")=="file"){
_269=true;
}
});
return _269;
};
dojo.io.formHasFile=function(_26c){
return dojo.io.checkChildrenForFile(_26c);
};
dojo.io.updateNode=function(node,_26e){
node=dojo.byId(node);
var args=_26e;
if(dojo.lang.isString(_26e)){
args={url:_26e};
}
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(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_275,_276,_277){
if((!_275)||(!_275.tagName)||(!_275.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_277){
_277=dojo.io.formFilter;
}
var enc=/utf/i.test(_276||"")?encodeURIComponent:dojo.string.encodeAscii;
var _279=[];
for(var i=0;i<_275.elements.length;i++){
var elm=_275.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_277(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){
_279.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_279.push(name+"="+enc(elm.value));
}
}else{
_279.push(name+"="+enc(elm.value));
}
}
}
var _27f=_275.getElementsByTagName("input");
for(var i=0;i<_27f.length;i++){
var _280=_27f[i];
if(_280.type.toLowerCase()=="image"&&_280.form==_275&&_277(_280)){
var name=enc(_280.name);
_279.push(name+"="+enc(_280.value));
_279.push(name+".x=0");
_279.push(name+".y=0");
}
}
return _279.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(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _286=form.getElementsByTagName("input");
for(var i=0;i<_286.length;i++){
var _287=_286[i];
if(_287.type.toLowerCase()=="image"&&_287.form==form){
this.connect(_287,"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 _28e=false;
if(node.disabled||!node.name){
_28e=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_28e=node==this.clickedButton;
}else{
_28e=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _28e;
},connect:function(_28f,_290,_291){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_28f,_290,this,_291);
}else{
var fcn=dojo.lang.hitch(this,_291);
_28f[_290]=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 _294=this;
var _295={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_297,_298){
return url+"|"+_297+"|"+_298.toLowerCase();
}
function addToCache(url,_29a,_29b,http){
_295[getCacheKey(url,_29a,_29b)]=http;
}
function getFromCache(url,_29e,_29f){
return _295[getCacheKey(url,_29e,_29f)];
}
this.clearCache=function(){
_295={};
};
function doLoad(_2a0,http,url,_2a3,_2a4){
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(_2a0.method.toLowerCase()=="head"){
var _2a6=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _2a6;
};
var _2a7=_2a6.split(/[\r\n]+/g);
for(var i=0;i<_2a7.length;i++){
var pair=_2a7[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_2a0.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_2a0.mimetype=="text/json"||_2a0.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_2a0.mimetype=="application/xml")||(_2a0.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(_2a4){
addToCache(url,_2a3,_2a0.method,http);
}
_2a0[(typeof _2a0.load=="function")?"load":"handle"]("load",ret,http,_2a0);
}else{
var _2aa=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_2a0[(typeof _2a0.error=="function")?"error":"handle"]("error",_2aa,http,_2a0);
}
}
function setHeaders(http,_2ac){
if(_2ac["headers"]){
for(var _2ad in _2ac["headers"]){
if(_2ad.toLowerCase()=="content-type"&&!_2ac["contentType"]){
_2ac["contentType"]=_2ac["headers"][_2ad];
}else{
http.setRequestHeader(_2ad,_2ac["headers"][_2ad]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_294._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
catch(e){
try{
var _2b1=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_2b1,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _2b2=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_2b3){
return _2b2&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_2b3["mimetype"].toLowerCase()||""))&&!(_2b3["formNode"]&&dojo.io.formHasFile(_2b3["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_2b4){
if(!_2b4["url"]){
if(!_2b4["formNode"]&&(_2b4["backButton"]||_2b4["back"]||_2b4["changeUrl"]||_2b4["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(_2b4);
return true;
}
}
var url=_2b4.url;
var _2b6="";
if(_2b4["formNode"]){
var ta=_2b4.formNode.getAttribute("action");
if((ta)&&(!_2b4["url"])){
url=ta;
}
var tp=_2b4.formNode.getAttribute("method");
if((tp)&&(!_2b4["method"])){
_2b4.method=tp;
}
_2b6+=dojo.io.encodeForm(_2b4.formNode,_2b4.encoding,_2b4["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_2b4["file"]){
_2b4.method="post";
}
if(!_2b4["method"]){
_2b4.method="get";
}
if(_2b4.method.toLowerCase()=="get"){
_2b4.multipart=false;
}else{
if(_2b4["file"]){
_2b4.multipart=true;
}else{
if(!_2b4["multipart"]){
_2b4.multipart=false;
}
}
}
if(_2b4["backButton"]||_2b4["back"]||_2b4["changeUrl"]){
dojo.undo.browser.addToHistory(_2b4);
}
var _2b9=_2b4["content"]||{};
if(_2b4.sendTransport){
_2b9["dojo.transport"]="xmlhttp";
}
do{
if(_2b4.postContent){
_2b6=_2b4.postContent;
break;
}
if(_2b9){
_2b6+=dojo.io.argsFromMap(_2b9,_2b4.encoding);
}
if(_2b4.method.toLowerCase()=="get"||!_2b4.multipart){
break;
}
var t=[];
if(_2b6.length){
var q=_2b6.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(_2b4.file){
if(dojo.lang.isArray(_2b4.file)){
for(var i=0;i<_2b4.file.length;++i){
var o=_2b4.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=_2b4.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+"--","");
_2b6=t.join("\r\n");
}
}while(false);
var _2bf=_2b4["sync"]?false:true;
var _2c0=_2b4["preventCache"]||(this.preventCache==true&&_2b4["preventCache"]!=false);
var _2c1=_2b4["useCache"]==true||(this.useCache==true&&_2b4["useCache"]!=false);
if(!_2c0&&_2c1){
var _2c2=getFromCache(url,_2b6,_2b4.method);
if(_2c2){
doLoad(_2b4,_2c2,url,_2b6,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_2b4);
var _2c4=false;
if(_2bf){
var _2c5=this.inFlight.push({"req":_2b4,"http":http,"url":url,"query":_2b6,"useCache":_2c1,"startTime":_2b4.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_294._blockAsync=true;
}
if(_2b4.method.toLowerCase()=="post"){
if(!_2b4.user){
http.open("POST",url,_2bf);
}else{
http.open("POST",url,_2bf,_2b4.user,_2b4.password);
}
setHeaders(http,_2b4);
http.setRequestHeader("Content-Type",_2b4.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_2b4.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_2b6);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2b4,{status:404},url,_2b6,_2c1);
}
}else{
var _2c6=url;
if(_2b6!=""){
_2c6+=(_2c6.indexOf("?")>-1?"&":"?")+_2b6;
}
if(_2c0){
_2c6+=(dojo.string.endsWithAny(_2c6,"?","&")?"":(_2c6.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_2b4.user){
http.open(_2b4.method.toUpperCase(),_2c6,_2bf);
}else{
http.open(_2b4.method.toUpperCase(),_2c6,_2bf,_2b4.user,_2b4.password);
}
setHeaders(http,_2b4);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_2b4,{status:404},url,_2b6,_2c1);
}
}
if(!_2bf){
doLoad(_2b4,http,url,_2b6,_2c1);
_294._blockAsync=false;
}
_2b4.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_2c8,days,path,_2cb,_2cc){
var _2cd=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_2cd=d.toGMTString();
}
_2c8=escape(_2c8);
document.cookie=name+"="+_2c8+";"+(_2cd!=-1?" expires="+_2cd+";":"")+(path?"path="+path:"")+(_2cb?"; domain="+_2cb:"")+(_2cc?"; 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 _2d1=document.cookie.substring(idx+name.length+1);
var end=_2d1.indexOf(";");
if(end==-1){
end=_2d1.length;
}
_2d1=_2d1.substring(0,end);
_2d1=unescape(_2d1);
return _2d1;
};
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,_2d8,_2d9,_2da){
if(arguments.length==5){
_2da=_2d8;
_2d8=null;
_2d9=null;
}
var _2db=[],_2dc,_2dd="";
if(!_2da){
_2dc=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_2dc){
_2dc={};
}
for(var prop in obj){
if(prop==null){
delete _2dc[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
_2dc[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _2dc){
_2db.push(escape(prop)+"="+escape(_2dc[prop]));
}
_2dd=_2db.join("&");
}
dojo.io.cookie.setCookie(name,_2dd,days,path,_2d8,_2d9);
};
dojo.io.cookie.getObjectCookie=function(name){
var _2e0=null,_2e1=dojo.io.cookie.getCookie(name);
if(_2e1){
_2e0={};
var _2e2=_2e1.split("&");
for(var i=0;i<_2e2.length;i++){
var pair=_2e2[i].split("=");
var _2e5=pair[1];
if(isNaN(_2e5)){
_2e5=unescape(pair[1]);
}
_2e0[unescape(pair[0])]=_2e5;
}
}
return _2e0;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _2e6=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_2e6=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
dojo.provide("dojo.io");
dojo.deprecated("dojo.io","replaced by dojo.io.*","0.5");
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_2e8){
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 _2eb=dl.nameAnonFunc(args[2],ao.adviceObj,_2e8);
ao.adviceFunc=_2eb;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _2eb=dl.nameAnonFunc(args[0],ao.srcObj,_2e8);
ao.srcFunc=_2eb;
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 _2eb=dl.nameAnonFunc(args[1],dj_global,_2e8);
ao.srcFunc=_2eb;
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 _2eb=dl.nameAnonFunc(args[3],dj_global,_2e8);
ao.adviceObj=dj_global;
ao.adviceFunc=_2eb;
}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 _2eb=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2e8);
ao.aroundFunc=_2eb;
}
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);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _2ed={};
for(var x in ao){
_2ed[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);
}
_2ed.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_2ed));
});
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 _2f5;
if((arguments.length==1)&&(typeof a1=="object")){
_2f5=a1;
}else{
_2f5={srcObj:a1,srcFunc:a2};
}
_2f5.adviceFunc=function(){
var _2f6=[];
for(var x=0;x<arguments.length;x++){
_2f6.push(arguments[x]);
}
dojo.debug("("+_2f5.srcObj+")."+_2f5.srcFunc,":",_2f6.join(", "));
};
this.kwConnect(_2f5);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_2fd,_2fe){
var fn=(_2fe)?"disconnect":"connect";
if(typeof _2fd["srcFunc"]=="function"){
_2fd.srcObj=_2fd["srcObj"]||dj_global;
var _300=dojo.lang.nameAnonFunc(_2fd.srcFunc,_2fd.srcObj,true);
_2fd.srcFunc=_300;
}
if(typeof _2fd["adviceFunc"]=="function"){
_2fd.adviceObj=_2fd["adviceObj"]||dj_global;
var _300=dojo.lang.nameAnonFunc(_2fd.adviceFunc,_2fd.adviceObj,true);
_2fd.adviceFunc=_300;
}
_2fd.srcObj=_2fd["srcObj"]||dj_global;
_2fd.adviceObj=_2fd["adviceObj"]||_2fd["targetObj"]||dj_global;
_2fd.adviceFunc=_2fd["adviceFunc"]||_2fd["targetFunc"];
return dojo.event[fn](_2fd);
};
this.kwConnect=function(_301){
return this._kwConnectImpl(_301,false);
};
this.disconnect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(!ao.adviceFunc){
return;
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.disconnect(ao);
}
ao.srcFunc="onkeypress";
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_304){
return this._kwConnectImpl(_304,true);
};
};
dojo.event.MethodInvocation=function(_305,obj,args){
this.jp_=_305;
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,_30d){
this.object=obj||dj_global;
this.methodname=_30d;
this.methodfunc=this.object[_30d];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_30f){
if(!obj){
obj=dj_global;
}
if(!obj[_30f]){
obj[_30f]=function(){
};
if(!obj[_30f]){
dojo.raise("Cannot set do-nothing method on that object "+_30f);
}
}else{
if((!dojo.lang.isFunction(obj[_30f]))&&(!dojo.lang.isAlien(obj[_30f]))){
return null;
}
}
var _310=_30f+"$joinpoint";
var _311=_30f+"$joinpoint$method";
var _312=obj[_310];
if(!_312){
var _313=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_313=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_310,_311,_30f]);
}
}
var _314=obj[_30f].length;
obj[_311]=obj[_30f];
_312=obj[_310]=new dojo.event.MethodJoinPoint(obj,_311);
obj[_30f]=function(){
var args=[];
if((_313)&&(!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{
if(obj.event){
evt=obj.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)&&(_313)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _312.run.apply(_312,args);
};
obj[_30f].__preJoinArity=_314;
}
return _312;
};
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 _31a=[];
for(var x=0;x<args.length;x++){
_31a[x]=args[x];
}
var _31c=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _31e=marr[0]||dj_global;
var _31f=marr[1];
if(!_31e[_31f]){
dojo.raise("function \""+_31f+"\" does not exist on \""+_31e+"\"");
}
var _320=marr[2]||dj_global;
var _321=marr[3];
var msg=marr[6];
var _323;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _31e[_31f].apply(_31e,to.args);
}};
to.args=_31a;
var _325=parseInt(marr[4]);
var _326=((!isNaN(_325))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _329=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;
_31c(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_321){
_320[_321].call(_320,to);
}else{
if((_326)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_31e[_31f].call(_31e,to);
}else{
_31e[_31f].apply(_31e,args);
}
},_325);
}else{
if(msg){
_31e[_31f].call(_31e,to);
}else{
_31e[_31f].apply(_31e,args);
}
}
}
};
var _32c=function(){
if(this.squelch){
try{
return _31c.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _31c.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_32c);
}
var _32d;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_32d=mi.proceed();
}else{
if(this.methodfunc){
_32d=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_32c);
}
return (this.methodfunc)?_32d:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},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(_332,_333,_334,_335,_336,_337,once,_339,rate,_33b){
var arr=this.getArr(_336);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_332,_333,_334,_335,_339,rate,_33b];
if(once){
if(this.hasAdvice(_332,_333,_336,arr)>=0){
return;
}
}
if(_337=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_33e,_33f,_340,arr){
if(!arr){
arr=this.getArr(_340);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _33f=="object")?(new String(_33f)).toString():_33f;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_33e)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_346,_347,_348,once){
var arr=this.getArr(_348);
var ind=this.hasAdvice(_346,_347,_348,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_346,_347,_348,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_34c){
if(!this.topics[_34c]){
this.topics[_34c]=new this.TopicImpl(_34c);
}
return this.topics[_34c];
};
this.registerPublisher=function(_34d,obj,_34f){
var _34d=this.getTopic(_34d);
_34d.registerPublisher(obj,_34f);
};
this.subscribe=function(_350,obj,_352){
var _350=this.getTopic(_350);
_350.subscribe(obj,_352);
};
this.unsubscribe=function(_353,obj,_355){
var _353=this.getTopic(_353);
_353.unsubscribe(obj,_355);
};
this.destroy=function(_356){
this.getTopic(_356).destroy();
delete this.topics[_356];
};
this.publishApply=function(_357,args){
var _357=this.getTopic(_357);
_357.sendMessage.apply(_357,args);
};
this.publish=function(_359,_35a){
var _359=this.getTopic(_359);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_359.sendMessage.apply(_359,args);
};
};
dojo.event.topic.TopicImpl=function(_35d){
this.topicName=_35d;
this.subscribe=function(_35e,_35f){
var tf=_35f||_35e;
var to=(!_35f)?dj_global:_35e;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_362,_363){
var tf=(!_363)?_362:_363;
var to=(!_363)?null:_362;
return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_366){
this._getJoinPoint().squelch=_366;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_367,_368){
dojo.event.connect(_367,_368,this,"sendMessage");
};
this.sendMessage=function(_369){
};
};
dojo.provide("dojo.event.browser");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_36c){
var na;
var tna;
if(_36c){
tna=_36c.all||_36c.getElementsByTagName("*");
na=[_36c];
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 _370={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
catch(e){
}
}
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 _374=0;
this.normalizedEventName=function(_375){
switch(_375){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _375;
break;
default:
return _375.toLowerCase();
break;
}
};
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,_379){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_379.length;x++){
node.__clobberAttrs__.push(_379[x]);
}
};
this.removeListener=function(node,_37c,fp,_37e){
if(!_37e){
var _37e=false;
}
_37c=dojo.event.browser.normalizedEventName(_37c);
if((_37c=="onkey")||(_37c=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_37e);
}
_37c="onkeypress";
}
if(_37c.substr(0,2)=="on"){
_37c=_37c.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_37c,fp,_37e);
}
};
this.addListener=function(node,_380,fp,_382,_383){
if(!node){
return;
}
if(!_382){
var _382=false;
}
_380=dojo.event.browser.normalizedEventName(_380);
if((_380=="onkey")||(_380=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_382,_383);
}
_380="onkeypress";
}
if(_380.substr(0,2)!="on"){
_380="on"+_380;
}
if(!_383){
var _384=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_382){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_384=fp;
}
if(node.addEventListener){
node.addEventListener(_380.substr(2),_384,_382);
return _384;
}else{
if(typeof node[_380]=="function"){
var _387=node[_380];
node[_380]=function(e){
_387(e);
return _384(e);
};
}else{
node[_380]=_384;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_380]);
}
return _384;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_38a,_38b){
if(typeof _38a!="function"){
dojo.raise("listener not a function: "+_38a);
}
dojo.event.browser.currentEvent.currentTarget=_38b;
return _38a.call(_38b,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_CLEAR:12,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_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,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_F13:124,KEY_F14:125,KEY_F15:126,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,_38e){
if(!evt){
if(window["event"]){
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(evt["type"]=="keydown"&&dojo.render.html.ie){
switch(evt.keyCode){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_LEFT_WINDOW:
case evt.KEY_RIGHT_WINDOW:
case evt.KEY_SELECT:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
case evt.KEY_NUMPAD_0:
case evt.KEY_NUMPAD_1:
case evt.KEY_NUMPAD_2:
case evt.KEY_NUMPAD_3:
case evt.KEY_NUMPAD_4:
case evt.KEY_NUMPAD_5:
case evt.KEY_NUMPAD_6:
case evt.KEY_NUMPAD_7:
case evt.KEY_NUMPAD_8:
case evt.KEY_NUMPAD_9:
case evt.KEY_NUMPAD_PERIOD:
break;
case evt.KEY_NUMPAD_MULTIPLY:
case evt.KEY_NUMPAD_PLUS:
case evt.KEY_NUMPAD_ENTER:
case evt.KEY_NUMPAD_MINUS:
case evt.KEY_NUMPAD_DIVIDE:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
case evt.KEY_PAGE_UP:
case evt.KEY_PAGE_DOWN:
case evt.KEY_END:
case evt.KEY_HOME:
case evt.KEY_LEFT_ARROW:
case evt.KEY_UP_ARROW:
case evt.KEY_RIGHT_ARROW:
case evt.KEY_DOWN_ARROW:
case evt.KEY_INSERT:
case evt.KEY_DELETE:
case evt.KEY_F1:
case evt.KEY_F2:
case evt.KEY_F3:
case evt.KEY_F4:
case evt.KEY_F5:
case evt.KEY_F6:
case evt.KEY_F7:
case evt.KEY_F8:
case evt.KEY_F9:
case evt.KEY_F10:
case evt.KEY_F11:
case evt.KEY_F12:
case evt.KEY_F12:
case evt.KEY_F13:
case evt.KEY_F14:
case evt.KEY_F15:
case evt.KEY_CLEAR:
case evt.KEY_HELP:
evt.key=evt.keyCode;
break;
default:
if(evt.ctrlKey||evt.altKey){
var _390=evt.keyCode;
if(_390>=65&&_390<=90&&evt.shiftKey==false){
_390+=32;
}
if(_390>=1&&_390<=26&&evt.ctrlKey){
_390+=96;
}
evt.key=String.fromCharCode(_390);
}
}
}else{
if(evt["type"]=="keypress"){
if(dojo.render.html.opera){
if(evt.which==0){
evt.key=evt.keyCode;
}else{
if(evt.which>0){
switch(evt.which){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
evt.key=evt.which;
break;
default:
var _390=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_390+=32;
}
evt.key=String.fromCharCode(_390);
}
}
}
}else{
if(dojo.render.html.ie){
if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){
evt.key=String.fromCharCode(evt.keyCode);
}
}else{
if(dojo.render.html.safari){
switch(evt.keyCode){
case 63232:
evt.key=evt.KEY_UP_ARROW;
break;
case 63233:
evt.key=evt.KEY_DOWN_ARROW;
break;
case 63234:
evt.key=evt.KEY_LEFT_ARROW;
break;
case 63235:
evt.key=evt.KEY_RIGHT_ARROW;
break;
default:
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}else{
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}
}
}
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_38e?_38e:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document;
var _392=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_392.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_392.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(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
dojo.provide("dojo.gfx.color");
dojo.gfx.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.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.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.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_39a){
if(_39a){
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.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_39b,_39c){
var rgb=null;
if(dojo.lang.isArray(_39b)){
rgb=_39b;
}else{
if(_39b instanceof dojo.gfx.color.Color){
rgb=_39b.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_39b).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_39c);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_3a0){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_3a0);
}
if(!_3a0){
_3a0=0;
}
_3a0=Math.min(Math.max(-1,_3a0),1);
_3a0=((_3a0+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_3a0));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_3a5){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_3a5));
};
dojo.gfx.color.extractRGB=function(_3a6){
var hex="0123456789abcdef";
_3a6=_3a6.toLowerCase();
if(_3a6.indexOf("rgb")==0){
var _3a8=_3a6.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_3a8.splice(1,3);
return ret;
}else{
var _3aa=dojo.gfx.color.hex2rgb(_3a6);
if(_3aa){
return _3aa;
}else{
return dojo.gfx.color.named[_3a6]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _3ac="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_3ac+"]","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]=_3ac.indexOf(rgb[i].charAt(0))*16+_3ac.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.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.lfx.Animation");
dojo.lfx.Line=function(_3b5,end){
this.start=_3b5;
this.end=end;
if(dojo.lang.isArray(_3b5)){
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-_3b5;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
}
};
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,connect:function(evt,_3c4,_3c5){
if(!_3c5){
_3c5=_3c4;
_3c4=this;
}
_3c5=dojo.lang.hitch(_3c4,_3c5);
var _3c6=this[evt]||function(){
};
this[evt]=function(){
var ret=_3c6.apply(this,arguments);
_3c5.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_3ca){
this.repeatCount=_3ca;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_3cb,_3cc,_3cd,_3ce,_3cf,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_3cb)||(!_3cb&&_3cc.getValue)){
rate=_3cf;
_3cf=_3ce;
_3ce=_3cd;
_3cd=_3cc;
_3cc=_3cb;
_3cb=null;
}else{
if(_3cb.getValue||dojo.lang.isArray(_3cb)){
rate=_3ce;
_3cf=_3cd;
_3ce=_3cc;
_3cd=_3cb;
_3cc=null;
_3cb=null;
}
}
if(dojo.lang.isArray(_3cd)){
this.curve=new dojo.lfx.Line(_3cd[0],_3cd[1]);
}else{
this.curve=_3cd;
}
if(_3cc!=null&&_3cc>0){
this.duration=_3cc;
}
if(_3cf){
this.repeatCount=_3cf;
}
if(rate){
this.rate=rate;
}
if(_3cb){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_3cb[item]){
this.connect(item,_3cb[item]);
}
},this);
}
if(_3ce&&dojo.lang.isFunction(_3ce)){
this.easing=_3ce;
}
};
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(_3d2,_3d3){
if(_3d3){
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(_3d2>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3d3);
}),_3d2);
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 _3d5=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_3d5]);
this.fire("onBegin",[_3d5]);
}
this.fire("handler",["play",_3d5]);
this.fire("onPlay",[_3d5]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _3d6=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_3d6]);
this.fire("onPause",[_3d6]);
return this;
},gotoPercent:function(pct,_3d8){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_3d8){
this.play();
}
return this;
},stop:function(_3d9){
clearTimeout(this._timer);
var step=this._percent/100;
if(_3d9){
step=1;
}
var _3db=this.curve.getValue(step);
this.fire("handler",["stop",_3db]);
this.fire("onStop",[_3db]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_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 _3de=this.curve.getValue(step);
this.fire("handler",["animate",_3de]);
this.fire("onAnimate",[_3de]);
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(_3df){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _3e0=arguments;
if(_3e0.length==1&&(dojo.lang.isArray(_3e0[0])||dojo.lang.isArrayLike(_3e0[0]))){
_3e0=_3e0[0];
}
dojo.lang.forEach(_3e0,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_3e2,_3e3){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_3e2>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3e3);
}),_3e2);
return this;
}
if(_3e3||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_3e3);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_3e4){
this.fire("onStop");
this._animsCall("stop",_3e4);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_3e5){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _3e8=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_3e5](args);
},_3e8);
return this;
}});
dojo.lfx.Chain=function(_3ea){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _3eb=arguments;
if(_3eb.length==1&&(dojo.lang.isArray(_3eb[0])||dojo.lang.isArrayLike(_3eb[0]))){
_3eb=_3eb[0];
}
var _3ec=this;
dojo.lang.forEach(_3eb,function(anim,i,_3ef){
this._anims.push(anim);
if(i<_3ef.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_3f0,_3f1){
if(!this._anims.length){
return this;
}
if(_3f1||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _3f2=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_3f0>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3f1);
}),_3f0);
return this;
}
if(_3f2){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_3f2.play(null,_3f1);
}
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 _3f3=this._anims[this._currAnim];
if(_3f3){
if(!_3f3._active||_3f3._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _3f4=this._anims[this._currAnim];
if(_3f4){
_3f4.stop();
this.fire("onStop",[this._currAnim]);
}
return _3f4;
},_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(_3f5){
var _3f6=arguments;
if(dojo.lang.isArray(arguments[0])){
_3f6=arguments[0];
}
if(_3f6.length==1){
return _3f6[0];
}
return new dojo.lfx.Combine(_3f6);
};
dojo.lfx.chain=function(_3f7){
var _3f8=arguments;
if(dojo.lang.isArray(arguments[0])){
_3f8=arguments[0];
}
if(_3f8.length==1){
return _3f8[0];
}
return new dojo.lfx.Chain(_3f8);
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _3fb=dojo.global();
var _3fc=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_3fc.documentElement.clientWidth;
h=_3fb.innerHeight;
}else{
if(!dojo.render.html.opera&&_3fb.innerWidth){
w=_3fb.innerWidth;
h=_3fb.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_3fc,"documentElement.clientWidth")){
var w2=_3fc.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_3fc.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _400=dojo.global();
var _401=dojo.doc();
var top=_400.pageYOffset||_401.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_400.pageXOffset||_401.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _406=dojo.doc();
var _407=dojo.byId(node);
type=type.toLowerCase();
while((_407)&&(_407.nodeName.toLowerCase()!=type)){
if(_407==(_406["body"]||_406["documentElement"])){
return null;
}
_407=_407.parentNode;
}
return _407;
};
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){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _40f={x:0,y:0};
if(e.pageX||e.pageY){
_40f.x=e.pageX;
_40f.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_40f.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_40f.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _40f;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _414=dojo.doc().createElement("script");
_414.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_414);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_418,uri){
var loc=dojo.hostenv.getModuleSymbols(_418).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _41d=new dojo.uri.Uri(arguments[i].toString());
var _41e=new dojo.uri.Uri(uri.toString());
if((_41d.path=="")&&(_41d.scheme==null)&&(_41d.authority==null)&&(_41d.query==null)){
if(_41d.fragment!=null){
_41e.fragment=_41d.fragment;
}
_41d=_41e;
}else{
if(_41d.scheme==null){
_41d.scheme=_41e.scheme;
if(_41d.authority==null){
_41d.authority=_41e.authority;
if(_41d.path.charAt(0)!="/"){
var path=_41e.path.substring(0,_41e.path.lastIndexOf("/")+1)+_41d.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_41d.path=segs.join("/");
}
}
}
}
uri="";
if(_41d.scheme!=null){
uri+=_41d.scheme+":";
}
if(_41d.authority!=null){
uri+="//"+_41d.authority;
}
uri+=_41d.path;
if(_41d.query!=null){
uri+="?"+_41d.query;
}
if(_41d.fragment!=null){
uri+="#"+_41d.fragment;
}
}
this.uri=uri.toString();
var _422="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_422));
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){
_422="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_422));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.html.style");
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 cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_429){
return (new RegExp("(^|\\s+)"+_429+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_42b){
_42b+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_42b);
};
dojo.html.addClass=function(node,_42d){
if(dojo.html.hasClass(node,_42d)){
return false;
}
_42d=(dojo.html.getClass(node)+" "+_42d).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_42d);
};
dojo.html.setClass=function(node,_42f){
node=dojo.byId(node);
var cs=new String(_42f);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_42f);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_432,_433){
try{
if(!_433){
var _434=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_432+"(\\s+|$)"),"$1$2");
}else{
var _434=dojo.html.getClass(node).replace(_432,"");
}
dojo.html.setClass(node,_434);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_436,_437){
dojo.html.removeClass(node,_437);
dojo.html.addClass(node,_436);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_438,_439,_43a,_43b,_43c){
_43c=false;
var _43d=dojo.doc();
_439=dojo.byId(_439)||_43d;
var _43e=_438.split(/\s+/g);
var _43f=[];
if(_43b!=1&&_43b!=2){
_43b=0;
}
var _440=new RegExp("(\\s|^)(("+_43e.join(")|(")+"))(\\s|$)");
var _441=_43e.join(" ").length;
var _442=[];
if(!_43c&&_43d.evaluate){
var _443=".//"+(_43a||"*")+"[contains(";
if(_43b!=dojo.html.classMatchType.ContainsAny){
_443+="concat(' ',@class,' '), ' "+_43e.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_43b==2){
_443+=" and string-length(@class)="+_441+"]";
}else{
_443+="]";
}
}else{
_443+="concat(' ',@class,' '), ' "+_43e.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _444=_43d.evaluate(_443,_439,null,XPathResult.ANY_TYPE,null);
var _445=_444.iterateNext();
while(_445){
try{
_442.push(_445);
_445=_444.iterateNext();
}
catch(e){
break;
}
}
return _442;
}else{
if(!_43a){
_43a="*";
}
_442=_439.getElementsByTagName(_43a);
var node,i=0;
outer:
while(node=_442[i++]){
var _448=dojo.html.getClasses(node);
if(_448.length==0){
continue outer;
}
var _449=0;
for(var j=0;j<_448.length;j++){
if(_440.test(_448[j])){
if(_43b==dojo.html.classMatchType.ContainsAny){
_43f.push(node);
continue outer;
}else{
_449++;
}
}else{
if(_43b==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_449==_43e.length){
if((_43b==dojo.html.classMatchType.IsOnly)&&(_449==_448.length)){
_43f.push(node);
}else{
if(_43b==dojo.html.classMatchType.ContainsAll){
_43f.push(node);
}
}
}
}
return _43f;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_44b){
var arr=_44b.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_44f){
return _44f.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_451,_452){
node=dojo.byId(node);
var _451=dojo.html.toSelectorCase(_451);
var _453=dojo.html.toCamelCase(_451);
if(!node||!node.style){
return _452;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_451);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_451);
}else{
return _452;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_453];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_451);
}else{
return _452;
}
};
dojo.html.getStyleProperty=function(node,_456){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_456)]:undefined);
};
dojo.html.getStyle=function(node,_458){
var _459=dojo.html.getStyleProperty(node,_458);
return (_459?_459:dojo.html.getComputedStyle(node,_458));
};
dojo.html.setStyle=function(node,_45b,_45c){
node=dojo.byId(node);
if(node&&node.style){
var _45d=dojo.html.toCamelCase(_45b);
node.style[_45d]=_45c;
}
};
dojo.html.setStyleText=function(_45e,text){
try{
_45e.style.cssText=text;
}
catch(e){
_45e.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_460,_461){
if(!_461.style.cssText){
_460.setAttribute("style",_461.getAttribute("style"));
}else{
_460.style.cssText=_461.style.cssText;
}
dojo.html.addClass(_460,dojo.html.getClass(_461));
};
dojo.html.getUnitValue=function(node,_463,_464){
var s=dojo.html.getComputedStyle(node,_463);
if((!s)||((s=="auto")&&(_464))){
return {value:0,units:"px"};
}
var _466=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_466){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_466[1]),units:_466[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_468,_469){
var _46a=dojo.html.getUnitValue(node,_468,_469);
if(isNaN(_46a.value)){
return 0;
}
if((_46a.value)&&(_46a.units!="px")){
return NaN;
}
return _46a.value;
};
dojo.html.setPositivePixelValue=function(node,_46c,_46d){
if(isNaN(_46d)){
return false;
}
node.style[_46c]=Math.max(0,_46d)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_46e,_46f,_470){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_470=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_470=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_46e+" { "+_46f+" }";
return dojo.html.styleSheet.insertRule(rule,_470);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_46e,_46f,_470);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_472){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_472){
_472=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_472);
}
}else{
if(document.styleSheets[0]){
if(!_472){
_472=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_472);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_475,_476){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _477=dojo.hostenv.getText(URI,false,_476);
if(_477===null){
return;
}
_477=dojo.html.fixPathsInCssText(_477,URI);
if(_475){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_477)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _47c=doc.getElementsByTagName("style");
for(var i=0;i<_47c.length;i++){
if(_47c[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _47d=dojo.html.insertCssText(_477,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_477,"nodeRef":_47d});
if(_47d&&djConfig.isDebug){
_47d.setAttribute("dbgHref",URI);
}
return _47d;
};
dojo.html.insertCssText=function(_47e,doc,URI){
if(!_47e){
return;
}
if(!doc){
doc=document;
}
if(URI){
_47e=dojo.html.fixPathsInCssText(_47e,URI);
}
var _481=doc.createElement("style");
_481.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(_481);
}
if(_481.styleSheet){
_481.styleSheet.cssText=_47e;
}else{
var _483=doc.createTextNode(_47e);
_481.appendChild(_483);
}
return _481;
};
dojo.html.fixPathsInCssText=function(_484,URI){
if(!_484||!URI){
return;
}
var _486,str="",url="",_489="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _48a=new RegExp("url\\(\\s*("+_489+")\\s*\\)");
var _48b=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_489+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _48c=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_489+")['\"]");
while(_486=_48c.exec(_484)){
url=_486[2].replace(regexTrim,"$2");
if(!_48b.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_484.substring(0,_486.index)+"AlphaImageLoader("+_486[1]+"src='"+url+"'";
_484=_484.substr(_486.index+_486[0].length);
}
_484=str+_484;
str="";
}
while(_486=_48a.exec(_484)){
url=_486[1].replace(regexTrim,"$2");
if(!_48b.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_484.substring(0,_486.index)+"url("+url+")";
_484=_484.substr(_486.index+_486[0].length);
}
return str+_484;
};
dojo.html.setActiveStyleSheet=function(_48d){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_48d){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().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=dojo.doc().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.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _499={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _499){
if(_499[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_49c,_49d){
node=dojo.byId(node);
_49d(node,!_49c(node));
return _49c(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_4a2){
dojo.html[(_4a2?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_4a8){
dojo.html.setStyle(node,"display",((_4a8 instanceof String||typeof _4a8=="string")?_4a8:(_4a8?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_4ac){
dojo.html.setStyle(node,"visibility",((_4ac instanceof String||typeof _4ac=="string")?_4ac:(_4ac?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_4b0,_4b1){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_4b1){
if(_4b0>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_4b0=0.999999;
}
}else{
if(_4b0<0){
_4b0=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="+_4b0*100+")";
}
}
node.style.filter="Alpha(Opacity="+_4b0*100+")";
}else{
if(h.moz){
node.style.opacity=_4b0;
node.style.MozOpacity=_4b0;
}else{
if(h.safari){
node.style.opacity=_4b0;
node.style.KhtmlOpacity=_4b0;
}else{
node.style.opacity=_4b0;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
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;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
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);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _4bc;
do{
_4bc=dojo.html.getStyle(node,"background-color");
if(_4bc.toLowerCase()=="rgba(0, 0, 0, 0)"){
_4bc="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_4bc));
if(_4bc=="transparent"){
_4bc=[255,255,255,0];
}else{
_4bc=dojo.gfx.color.extractRGB(_4bc);
}
return _4bc;
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _4bf=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_4bf+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _4bf;
};
dojo.html.setStyleAttributes=function(node,_4c2){
node=dojo.byId(node);
var _4c3=_4c2.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_4c3.length;i++){
var _4c5=_4c3[i].split(":");
var name=_4c5[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _4c7=_4c5[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_4c7);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_4c7});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_4c7});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_4c7});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_4c7});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_4c7;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_4c9,_4ca){
node=dojo.byId(node);
var _4cb=dojo.doc();
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_4ca){
_4ca=bs.CONTENT_BOX;
}
var _4ce=2;
var _4cf;
switch(_4ca){
case bs.MARGIN_BOX:
_4cf=3;
break;
case bs.BORDER_BOX:
_4cf=2;
break;
case bs.PADDING_BOX:
default:
_4cf=1;
break;
case bs.CONTENT_BOX:
_4cf=0;
break;
}
var h=dojo.render.html;
var db=_4cb["body"]||_4cb["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(_4cb["getBoxObjectFor"]){
_4ce=1;
try{
var bo=_4cb.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _4d3;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_4d3=db;
}else{
_4d3=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _4d5=node;
do{
var n=_4d5["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_4d5["offsetTop"];
ret.y+=isNaN(m)?0:m;
_4d5=_4d5.offsetParent;
}while((_4d5!=_4d3)&&(_4d5!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_4c9){
var _4d8=dojo.html.getScroll();
ret.y+=_4d8.top;
ret.x+=_4d8.left;
}
var _4d9=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_4ce>_4cf){
for(var i=_4cf;i<_4ce;++i){
ret.y+=_4d9[i](node,"top");
ret.x+=_4d9[i](node,"left");
}
}else{
if(_4ce<_4cf){
for(var i=_4cf;i>_4ce;--i){
ret.y-=_4d9[i-1](node,"top");
ret.x-=_4d9[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_4dd,_4de){
var _4df=0;
for(var x=0;x<_4dd.length;x++){
_4df+=dojo.html.getPixelValue(node,_4dd[x],_4de);
}
return _4df;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _4ec=dojo.html.getBorder(node);
return {width:pad.width+_4ec.width,height:pad.height+_4ec.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
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 _4f1=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_4f1){
_4f1=dojo.html.getStyle(node,"box-sizing");
}
return (_4f1?_4f1:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _4f6=dojo.html.getBorder(node);
return {width:box.width-_4f6.width,height:box.height-_4f6.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _4f8=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_4f8.width,height:node.offsetHeight-_4f8.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _4fb=0;
var _4fc=0;
var isbb=dojo.html.isBorderBox(node);
var _4fe=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_4fb=args.width+_4fe.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_4fb);
}
if(typeof args.height!="undefined"){
_4fc=args.height+_4fe.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_4fc);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _501=dojo.html.getBorderBox(node);
var _502=dojo.html.getMargin(node);
return {width:_501.width+_502.width,height:_501.height+_502.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _505=0;
var _506=0;
var isbb=dojo.html.isBorderBox(node);
var _508=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _509=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_505=args.width-_508.width;
_505-=_509.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_505);
}
if(typeof args.height!="undefined"){
_506=args.height-_508.height;
_506-=_509.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_506);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_50e,_50f,_510){
if(!_50e.nodeType&&!(_50e instanceof String||typeof _50e=="string")&&("width" in _50e||"height" in _50e||"left" in _50e||"x" in _50e||"top" in _50e||"y" in _50e)){
var ret={left:_50e.left||_50e.x||0,top:_50e.top||_50e.y||0,width:_50e.width||0,height:_50e.height||0};
}else{
var node=dojo.byId(_50e);
var pos=dojo.html.abs(node,_50f,_510);
var _514=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_514.width,height:_514.height};
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_516){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_519){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_51b){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_51d){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_51f){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_521){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_52b){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_52d){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_52e){
if(!_52e){
return [];
}
if(dojo.lang.isArrayLike(_52e)){
if(!_52e.alreadyChecked){
var n=[];
dojo.lang.forEach(_52e,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _52e;
}
}else{
var n=[];
n.push(dojo.byId(_52e));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_531,_532,_533,_534,_535){
_531=dojo.lfx.html._byId(_531);
var _536={"propertyMap":_532,"nodes":_531,"duration":_533,"easing":_534||dojo.lfx.easeDefault};
var _537=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _53b in pm){
pm[_53b].property=_53b;
parr.push(pm[_53b]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _53d=function(_53e){
var _53f=[];
dojo.lang.forEach(_53e,function(c){
_53f.push(Math.round(c));
});
return _53f;
};
var _541=function(n,_543){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _543){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_543[s]);
}else{
n.style[s]=_543[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _545=function(_546){
this._properties=_546;
this.diffs=new Array(_546.length);
dojo.lang.forEach(_546,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.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 _54d=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_54d=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_54d+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_54d+=")";
}else{
_54d=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_54d;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_537(_536);
anim.curve=new _545(_536.propertyMap);
},onAnimate:function(_550){
dojo.lang.forEach(_536.nodes,function(node){
_541(node,_550);
});
}},_536.duration,null,_536.easing);
if(_535){
for(var x in _535){
if(dojo.lang.isFunction(_535[x])){
anim.connect(x,anim,_535[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_553){
var _554=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_553)){
dojo.lang.forEach(_553,_554);
}else{
_554(_553);
}
};
dojo.lfx.html.fade=function(_556,_557,_558,_559,_55a){
_556=dojo.lfx.html._byId(_556);
var _55b={property:"opacity"};
if(!dj_undef("start",_557)){
_55b.start=_557.start;
}else{
_55b.start=function(){
return dojo.html.getOpacity(_556[0]);
};
}
if(!dj_undef("end",_557)){
_55b.end=_557.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_556,[_55b],_558,_559);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_556);
});
if(_55a){
anim.connect("onEnd",function(){
_55a(_556,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_55d,_55e,_55f,_560){
return dojo.lfx.html.fade(_55d,{end:1},_55e,_55f,_560);
};
dojo.lfx.html.fadeOut=function(_561,_562,_563,_564){
return dojo.lfx.html.fade(_561,{end:0},_562,_563,_564);
};
dojo.lfx.html.fadeShow=function(_565,_566,_567,_568){
_565=dojo.lfx.html._byId(_565);
dojo.lang.forEach(_565,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_565,_566,_567,_568);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_565)){
dojo.lang.forEach(_565,dojo.html.show);
}else{
dojo.html.show(_565);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_56b,_56c,_56d,_56e){
var anim=dojo.lfx.html.fadeOut(_56b,_56c,_56d,function(){
if(dojo.lang.isArrayLike(_56b)){
dojo.lang.forEach(_56b,dojo.html.hide);
}else{
dojo.html.hide(_56b);
}
if(_56e){
_56e(_56b,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_570,_571,_572,_573){
_570=dojo.lfx.html._byId(_570);
var _574=[];
dojo.lang.forEach(_570,function(node){
var _576={};
dojo.html.show(node);
var _577=dojo.html.getBorderBox(node).height;
dojo.html.hide(node);
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _577;
}}},_571,_572);
anim.connect("beforeBegin",function(){
_576.overflow=node.style.overflow;
_576.height=node.style.height;
with(node.style){
overflow="hidden";
_577="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_576.overflow;
_577=_576.height;
}
if(_573){
_573(node,anim);
}
});
_574.push(anim);
});
return dojo.lfx.combine(_574);
};
dojo.lfx.html.wipeOut=function(_579,_57a,_57b,_57c){
_579=dojo.lfx.html._byId(_579);
var _57d=[];
dojo.lang.forEach(_579,function(node){
var _57f={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_57a,_57b,{"beforeBegin":function(){
_57f.overflow=node.style.overflow;
_57f.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_57f.overflow;
height=_57f.height;
}
if(_57c){
_57c(node,anim);
}
}});
_57d.push(anim);
});
return dojo.lfx.combine(_57d);
};
dojo.lfx.html.slideTo=function(_581,_582,_583,_584,_585){
_581=dojo.lfx.html._byId(_581);
var _586=[];
var _587=dojo.html.getComputedStyle;
dojo.lang.forEach(_581,function(node){
var top=null;
var left=null;
var init=(function(){
var _58c=node;
return function(){
var pos=_587(_58c,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_587(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_587(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_58c,true);
dojo.html.setStyleAttributes(_58c,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_582.top||0)},"left":{start:left,end:(_582.left||0)}},_583,_584,{"beforeBegin":init});
if(_585){
anim.connect("onEnd",function(){
_585(_581,anim);
});
}
_586.push(anim);
});
return dojo.lfx.combine(_586);
};
dojo.lfx.html.slideBy=function(_590,_591,_592,_593,_594){
_590=dojo.lfx.html._byId(_590);
var _595=[];
var _596=dojo.html.getComputedStyle;
dojo.lang.forEach(_590,function(node){
var top=null;
var left=null;
var init=(function(){
var _59b=node;
return function(){
var pos=_596(_59b,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_596(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_596(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_59b,true);
dojo.html.setStyleAttributes(_59b,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_591.top||0)},"left":{start:left,end:left+(_591.left||0)}},_592,_593).connect("beforeBegin",init);
if(_594){
anim.connect("onEnd",function(){
_594(_590,anim);
});
}
_595.push(anim);
});
return dojo.lfx.combine(_595);
};
dojo.lfx.html.explode=function(_59f,_5a0,_5a1,_5a2,_5a3){
var h=dojo.html;
_59f=dojo.byId(_59f);
_5a0=dojo.byId(_5a0);
var _5a5=h.toCoordinateObject(_59f,true);
var _5a6=document.createElement("div");
h.copyStyle(_5a6,_5a0);
if(_5a0.explodeClassName){
_5a6.className=_5a0.explodeClassName;
}
with(_5a6.style){
position="absolute";
display="none";
var _5a7=h.getStyle(_59f,"background-color");
backgroundColor=_5a7?_5a7.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_5a6);
with(_5a0.style){
visibility="hidden";
display="block";
}
var _5a8=h.toCoordinateObject(_5a0,true);
with(_5a0.style){
display="none";
visibility="visible";
}
var _5a9={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_5a9[type]={start:_5a5[type],end:_5a8[type]};
});
var anim=new dojo.lfx.propertyAnimation(_5a6,_5a9,_5a1,_5a2,{"beforeBegin":function(){
h.setDisplay(_5a6,"block");
},"onEnd":function(){
h.setDisplay(_5a0,"block");
_5a6.parentNode.removeChild(_5a6);
}});
if(_5a3){
anim.connect("onEnd",function(){
_5a3(_5a0,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_5ac,end,_5ae,_5af,_5b0){
var h=dojo.html;
_5ac=dojo.byId(_5ac);
end=dojo.byId(end);
var _5b2=dojo.html.toCoordinateObject(_5ac,true);
var _5b3=dojo.html.toCoordinateObject(end,true);
var _5b4=document.createElement("div");
dojo.html.copyStyle(_5b4,_5ac);
if(_5ac.explodeClassName){
_5b4.className=_5ac.explodeClassName;
}
dojo.html.setOpacity(_5b4,0.3);
with(_5b4.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_5ac,"background-color").toLowerCase();
}
dojo.body().appendChild(_5b4);
var _5b5={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_5b5[type]={start:_5b2[type],end:_5b3[type]};
});
var anim=new dojo.lfx.propertyAnimation(_5b4,_5b5,_5ae,_5af,{"beforeBegin":function(){
dojo.html.hide(_5ac);
dojo.html.show(_5b4);
},"onEnd":function(){
_5b4.parentNode.removeChild(_5b4);
}});
if(_5b0){
anim.connect("onEnd",function(){
_5b0(_5ac,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_5b8,_5b9,_5ba,_5bb,_5bc){
_5b8=dojo.lfx.html._byId(_5b8);
var _5bd=[];
dojo.lang.forEach(_5b8,function(node){
var _5bf=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _5c1=dojo.html.getStyle(node,"background-image");
var _5c2=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_5bf.length>3){
_5bf.pop();
}
var rgb=new dojo.gfx.color.Color(_5b9);
var _5c4=new dojo.gfx.color.Color(_5bf);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_5c4}},_5ba,_5bb,{"beforeBegin":function(){
if(_5c1){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_5c1){
node.style.backgroundImage=_5c1;
}
if(_5c2){
node.style.backgroundColor="transparent";
}
if(_5bc){
_5bc(node,anim);
}
}});
_5bd.push(anim);
});
return dojo.lfx.combine(_5bd);
};
dojo.lfx.html.unhighlight=function(_5c6,_5c7,_5c8,_5c9,_5ca){
_5c6=dojo.lfx.html._byId(_5c6);
var _5cb=[];
dojo.lang.forEach(_5c6,function(node){
var _5cd=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_5c7);
var _5cf=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_5cd,end:rgb}},_5c8,_5c9,{"beforeBegin":function(){
if(_5cf){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_5cd.toRgb().join(",")+")";
},"onEnd":function(){
if(_5ca){
_5ca(node,anim);
}
}});
_5cb.push(anim);
});
return dojo.lfx.combine(_5cb);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _5d1=dojo.global();
var _5d2=dojo.doc();
try{
if(_5d1["getSelection"]){
if(dojo.render.html.safari){
_5d1.getSelection().collapse();
}else{
_5d1.getSelection().removeAllRanges();
}
}else{
if(_5d2.selection){
if(_5d2.selection.empty){
_5d2.selection.empty();
}else{
if(_5d2.selection.clear){
_5d2.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_5d3){
_5d3=dojo.byId(_5d3)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_5d3.style.MozUserSelect="none";
}else{
if(h.safari){
_5d3.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_5d3.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_5d5){
_5d5=dojo.byId(_5d5)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_5d5.style.MozUserSelect="";
}else{
if(h.safari){
_5d5.style.KhtmlUserSelect="";
}else{
if(h.ie){
_5d5.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectInputText=function(_5d7){
var _5d8=dojo.global();
var _5d9=dojo.doc();
_5d7=dojo.byId(_5d7);
if(_5d9["selection"]&&dojo.body()["createTextRange"]){
var _5da=_5d7.createTextRange();
_5da.moveStart("character",0);
_5da.moveEnd("character",_5d7.value.length);
_5da.select();
}else{
if(_5d8["getSelection"]){
var _5db=_5d8.getSelection();
_5d7.setSelectionRange(0,_5d7.value.length);
}
}
_5d7.focus();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _5dc=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _5de=oSel.getRangeAt(0);
if(_5de.startContainer==_5de.endContainer&&(_5de.endOffset-_5de.startOffset)==1&&_5de.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_5dc=dojo.html.selectionType.CONTROL;
}
}
return _5dc;
}
},isCollapsed:function(){
var _5df=dojo.global();
var _5e0=dojo.doc();
if(_5e0["selection"]){
return _5e0.selection.createRange().text=="";
}else{
if(_5df["getSelection"]){
var _5e1=_5df.getSelection();
if(dojo.lang.isString(_5e1)){
return _5e1=="";
}else{
return _5e1.isCollapsed||_5e1.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _5e2=dojo.doc().selection.createRange();
if(_5e2&&_5e2.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _5e3=dojo.global().getSelection();
return _5e3.anchorNode.childNodes[_5e3.anchorOffset];
}
}
},getParentElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
var p=dojo.html.selection.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc()["selection"]){
return dojo.doc().selection.createRange().parentElement();
}else{
var _5e5=dojo.global().getSelection();
if(_5e5){
var node=_5e5.anchorNode;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.parentNode;
}
return node;
}
}
}
},getSelectedText:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().text;
}else{
var _5e7=dojo.global().getSelection();
if(_5e7){
return _5e7.toString();
}
}
},getSelectedHtml:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().htmlText;
}else{
var _5e8=dojo.global().getSelection();
if(_5e8&&_5e8.rangeCount){
var frag=_5e8.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_5eb){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_5ec){
var node=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();
while(node){
if(dojo.html.selection.isTag(node,arguments).length>0){
return node;
}
node=node.parentNode;
}
return null;
},isTag:function(node,tags){
if(node&&node.tagName){
for(var i=0;i<tags.length;i++){
if(node.tagName.toLowerCase()==String(tags[i]).toLowerCase()){
return String(tags[i]).toLowerCase();
}
}
}
return "";
},selectElement:function(_5f1){
var _5f2=dojo.global();
var _5f3=dojo.doc();
_5f1=dojo.byId(_5f1);
if(_5f3.selection&&dojo.body().createTextRange){
try{
var _5f4=dojo.body().createControlRange();
_5f4.addElement(_5f1);
_5f4.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_5f1);
}
}else{
if(_5f2["getSelection"]){
var _5f5=_5f2.getSelection();
if(_5f5["removeAllRanges"]){
var _5f4=_5f3.createRange();
_5f4.selectNode(_5f1);
_5f5.removeAllRanges();
_5f5.addRange(_5f4);
}
}
}
},selectElementChildren:function(_5f6){
var _5f7=dojo.global();
var _5f8=dojo.doc();
_5f6=dojo.byId(_5f6);
if(_5f8.selection&&dojo.body().createTextRange){
var _5f9=dojo.body().createTextRange();
_5f9.moveToElementText(_5f6);
_5f9.select();
}else{
if(_5f7["getSelection"]){
var _5fa=_5f7.getSelection();
if(_5fa["setBaseAndExtent"]){
_5fa.setBaseAndExtent(_5f6,0,_5f6,_5f6.innerText.length-1);
}else{
if(_5fa["selectAllChildren"]){
_5fa.selectAllChildren(_5f6);
}
}
}
}
},getBookmark:function(){
var _5fb;
var _5fc=dojo.doc();
if(_5fc["selection"]){
var _5fd=_5fc.selection.createRange();
_5fb=_5fd.getBookmark();
}else{
var _5fe;
try{
_5fe=dojo.global().getSelection();
}
catch(e){
}
if(_5fe){
var _5fd=_5fe.getRangeAt(0);
_5fb=_5fd.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _5fb;
},moveToBookmark:function(_5ff){
var _600=dojo.doc();
if(_600["selection"]){
var _601=_600.selection.createRange();
_601.moveToBookmark(_5ff);
_601.select();
}else{
var _602;
try{
_602=dojo.global().getSelection();
}
catch(e){
}
if(_602&&_602["removeAllRanges"]){
_602.removeAllRanges();
_602.addRange(_5ff);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_603){
if(dojo.global()["getSelection"]){
var _604=dojo.global().getSelection();
if(_604.removeAllRanges){
if(_603){
_604.collapseToStart();
}else{
_604.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_603);
}
}else{
if(dojo.doc().selection){
var _605=dojo.doc().selection.createRange();
_605.collapse(_603);
_605.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _606=dojo.doc().selection;
if(_606.type.toUpperCase()!="NONE"){
_606.clear();
}
return _606;
}else{
var _606=dojo.global().getSelection();
for(var i=0;i<_606.rangeCount;i++){
_606.getRangeAt(i).deleteContents();
}
return _606;
}
}});
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_608){
return dojo.html.getDocumentWindow(_608.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.getAbsolutePositionExt=function(node,_60f,_610,_611){
var _612=dojo.html.getElementWindow(node);
var ret=dojo.withGlobal(_612,"getAbsolutePosition",dojo.html,arguments);
var win=dojo.html.getElementWindow(node);
if(_611!=win&&win.frameElement){
var ext=dojo.html.getAbsolutePositionExt(win.frameElement,_60f,_610,_611);
ret.x+=ext.x;
ret.y+=ext.y;
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _618=dojo.html.getCursorPosition(e);
with(dojo.html){
var _619=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _61b=_619.x+(bb.width/2);
var _61c=_619.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_618.x<_61b?WEST:EAST)|(_618.y<_61c?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.overElement=function(_61d,e){
_61d=dojo.byId(_61d);
var _61f=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_61d);
var _621=dojo.html.getAbsolutePosition(_61d,true,dojo.html.boxSizing.BORDER_BOX);
var top=_621.y;
var _623=top+bb.height;
var left=_621.x;
var _625=left+bb.width;
return (_61f.x>=left&&_61f.x<=_625&&_61f.y>=top&&_61f.y<=_623);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _627="";
if(node==null){
return _627;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _629="unknown";
try{
_629=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_629){
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":
_627+="\n";
_627+=dojo.html.renderedTextContent(node.childNodes[i]);
_627+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_627+="\n";
}else{
_627+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _62b="unknown";
try{
_62b=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_62b){
case "capitalize":
var _62c=text.split(" ");
for(var i=0;i<_62c.length;i++){
_62c[i]=_62c[i].charAt(0).toUpperCase()+_62c[i].substring(1);
}
text=_62c.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_62b){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_627)){
text.replace(/^\s/,"");
}
break;
}
_627+=text;
break;
default:
break;
}
}
return _627;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _630="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_630="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_630="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_630="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _631=null;
switch(_630){
case "cell":
_631=tn.getElementsByTagName("tr")[0];
break;
case "row":
_631=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_631=tn.getElementsByTagName("table")[0];
break;
default:
_631=tn;
break;
}
var _632=[];
for(var x=0;x<_631.childNodes.length;x++){
_632.push(_631.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.body().removeChild(tn);
return _632;
};
dojo.html.placeOnScreen=function(node,_635,_636,_637,_638,_639,_63a){
if(_635 instanceof Array||typeof _635=="array"){
_63a=_639;
_639=_638;
_638=_637;
_637=_636;
_636=_635[1];
_635=_635[0];
}
if(_639 instanceof String||typeof _639=="string"){
_639=_639.split(",");
}
if(!isNaN(_637)){
_637=[Number(_637),Number(_637)];
}else{
if(!(_637 instanceof Array||typeof _637=="array")){
_637=[0,0];
}
}
var _63b=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _63d=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_63d;
if(!(_639 instanceof Array||typeof _639=="array")){
_639=["TL"];
}
var _641,_642,_643=Infinity,_644;
for(var _645=0;_645<_639.length;++_645){
var _646=_639[_645];
var _647=true;
var tryX=_635-(_646.charAt(1)=="L"?0:w)+_637[0]*(_646.charAt(1)=="L"?1:-1);
var tryY=_636-(_646.charAt(0)=="T"?0:h)+_637[1]*(_646.charAt(0)=="T"?1:-1);
if(_638){
tryX-=_63b.x;
tryY-=_63b.y;
}
if(tryX<0){
tryX=0;
_647=false;
}
if(tryY<0){
tryY=0;
_647=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_647=false;
}else{
x=tryX;
}
x=Math.max(_637[0],x)+_63b.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_647=false;
}else{
y=tryY;
}
y=Math.max(_637[1],y)+_63b.y;
if(_647){
_641=x;
_642=y;
_643=0;
_644=_646;
break;
}else{
var dist=Math.pow(x-tryX-_63b.x,2)+Math.pow(y-tryY-_63b.y,2);
if(_643>dist){
_643=dist;
_641=x;
_642=y;
_644=_646;
}
}
}
if(!_63a){
node.style.left=_641+"px";
node.style.top=_642+"px";
}
return {left:_641,top:_642,x:_641,y:_642,dist:_643,corner:_644};
};
dojo.html.placeOnScreenAroundElement=function(node,_64e,_64f,_650,_651,_652){
var best,_654=Infinity;
_64e=dojo.byId(_64e);
var _655=_64e.style.display;
_64e.style.display="";
var mb=dojo.html.getElementBox(_64e,_650);
var _657=mb.width;
var _658=mb.height;
var _659=dojo.html.getAbsolutePosition(_64e,true,_650);
_64e.style.display=_655;
for(var _65a in _651){
var pos,_65c,_65d;
var _65e=_651[_65a];
_65c=_659.x+(_65a.charAt(1)=="L"?0:_657);
_65d=_659.y+(_65a.charAt(0)=="T"?0:_658);
pos=dojo.html.placeOnScreen(node,_65c,_65d,_64f,true,_65e,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_654>pos.dist){
_654=pos.dist;
best=pos;
}
}
}
if(!_652){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _660=node.parentNode;
var _661=_660.scrollTop+dojo.html.getBorderBox(_660).height;
var _662=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_661<_662){
_660.scrollTop+=(_662-_661);
}else{
if(_660.scrollTop>node.offsetTop){
_660.scrollTop-=(_660.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_663){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_663))||dojo.html.iframeContentDocument(_663).__parent__||(_663.name&&document.frames[_663.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_665){
var doc=_665.contentDocument||((_665.contentWindow)&&(_665.contentWindow.document))||((_665.name)&&(document.frames[_665.name])&&(document.frames[_665.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.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.parentNode){
var _669=dojo.html.getMarginBox(this.domNode);
if(_669.width==0||_669.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_669.width+"px";
this.iframe.style.height=_669.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _66b=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_66b.width+"px";
height=_66b.height+"px";
left=_66b.left+"px";
top=_66b.top+"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){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
this.iframe=null;
delete this.iframe;
}
}});
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _66f=getTagName(node);
if(!_66f){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_66f])){
return _66f;
}
var p=_66f.indexOf(":");
if(p>=0){
return _66f;
}
if(_66f.substr(0,5)=="dojo:"){
return _66f;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_66f;
}
if(_66f.substr(0,4)=="dojo"){
return "dojo:"+_66f.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _672=node.className||node.getAttribute("class");
if((_672)&&(_672.indexOf)&&(_672.indexOf("dojo-")!=-1)){
var _673=_672.split(" ");
for(var x=0,c=_673.length;x<c;x++){
if(_673[x].slice(0,5)=="dojo-"){
return "dojo:"+_673[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_677,_678,_679){
var _67a=getTagName(node);
if(_67a.indexOf("/")==0){
return null;
}
try{
if(node.getAttribute("parseWidgets").toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _67b=true;
if(_678){
var _67c=getDojoTagName(node);
_67a=_67c||_67a;
_67b=Boolean(_67c);
}
var _67d={};
_67d[_67a]=[];
var pos=_67a.indexOf(":");
if(pos>0){
var ns=_67a.substring(0,pos);
_67d["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_67b=false;
}
}
if(_67b){
var _680=this.parseAttributes(node);
for(var attr in _680){
if((!_67d[_67a][attr])||(typeof _67d[_67a][attr]!="array")){
_67d[_67a][attr]=[];
}
_67d[_67a][attr].push(_680[attr]);
}
_67d[_67a].nodeRef=node;
_67d.tagName=_67a;
_67d.index=_679||0;
}
var _682=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_682++;
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_67d[ctn]){
_67d[ctn]=[];
}
_67d[ctn].push(this.parseElement(tcn,true,_678,_682));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_67d[ctn][_67d[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_67d[_67a].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _67d;
};
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
this.parseAttributes=function(node){
var _688={};
var atts=node.attributes;
var _68a,i=0;
while((_68a=atts[i++])){
if(isIE){
if(!_68a){
continue;
}
if((typeof _68a=="object")&&(typeof _68a.nodeValue=="undefined")||(_68a.nodeValue==null)||(_68a.nodeValue=="")){
continue;
}
}
var nn=_68a.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_68a.nodeName;
_688[nn]={value:_68a.nodeValue};
}
return _688;
};
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_68d,_68e,init,_690){
if((dojo.lang.isFunction(_690))||((!_690)&&(!dojo.lang.isFunction(init)))){
var temp=_690;
_690=init;
init=temp;
}
var _692=[];
if(dojo.lang.isArray(_68e)){
_692=_68e;
_68e=_692.shift();
}
if(!init){
init=dojo.evalObjPath(_68d,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_68e?_68e.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _68e();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_692;
for(var i=0,l=_692.length;i<l;i++){
dojo.lang.extend(ctor,_692[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_68d;
if(dojo.lang.isArray(_690)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_690));
}else{
dojo.lang.extend(ctor,(_690)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_68d,ctor,null,true);
return ctor;
};
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._contextMethod(s,"constructor",arguments);
}
}
var ms=(self.constructor.mixins)||([]);
for(var i=0,m;(m=ms[i]);i++){
(((m.prototype)&&(m.prototype.initializer))||(m)).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare._common={_getPropContext:function(){
return (this.___proto||this);
},_contextMethod:function(_69c,_69d,args){
var _69f,_6a0=this.___proto;
this.___proto=_69c;
try{
_69f=_69c[_69d].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_6a0;
}
return _69f;
},_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._contextMethod(p,prop,args):p[prop]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_6a7,_6a8,_6a9){
if(!_6a9||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_6a7,_6a8);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_6b0,_6b1){
this.name=name;
this.module=_6b0;
this.resolver=_6b1;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_6b3,_6b4){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _6b5=this.resolver(name,_6b3);
if((_6b5)&&(!this._loaded[_6b5])&&(!this._failed[_6b5])){
var req=dojo.require;
req(_6b5,false,true);
if(dojo.hostenv.findModule(_6b5,false)){
this._loaded[_6b5]=true;
}else{
if(!_6b4){
dojo.raise("dojo.ns.Ns.resolve: module '"+_6b5+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_6b5]=true;
}
}
return Boolean(this._loaded[_6b5]);
};
dojo.registerNamespace=function(name,_6b8,_6b9){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_6bb){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_6bb;
}
};
dojo.registerNamespaceManifest=function(_6bd,path,name,_6c0,_6c1){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_6c0,_6c1);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _6c2={};
var _6c3=[];
this.getUniqueId=function(_6c4){
var _6c5;
do{
_6c5=_6c4+"_"+(_6c2[_6c4]!=undefined?++_6c2[_6c4]:_6c2[_6c4]=0);
}while(this.getWidgetById(_6c5));
return _6c5;
};
this.add=function(_6c6){
this.widgets.push(_6c6);
if(!_6c6.extraArgs["id"]){
_6c6.extraArgs["id"]=_6c6.extraArgs["ID"];
}
if(_6c6.widgetId==""){
if(_6c6["id"]){
_6c6.widgetId=_6c6["id"];
}else{
if(_6c6.extraArgs["id"]){
_6c6.widgetId=_6c6.extraArgs["id"];
}else{
_6c6.widgetId=this.getUniqueId(_6c6.ns+"_"+_6c6.widgetType);
}
}
}
if(this.widgetIds[_6c6.widgetId]){
dojo.debug("widget ID collision on ID: "+_6c6.widgetId);
}
this.widgetIds[_6c6.widgetId]=_6c6;
};
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(_6c8){
if(dojo.lang.isNumber(_6c8)){
var tw=this.widgets[_6c8].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_6c8,1);
}else{
this.removeById(_6c8);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _6cf=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_6cf(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_6d4,_6d5){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_6d4(x)){
ret.push(x);
if(_6d5){
return false;
}
}
return true;
});
return (_6d5?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _6db={};
var _6dc=["dojo.widget"];
for(var i=0;i<_6dc.length;i++){
_6dc[_6dc[i]]=true;
}
this.registerWidgetPackage=function(_6de){
if(!_6dc[_6de]){
_6dc[_6de]=true;
_6dc.push(_6de);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_6dc,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_6e0,_6e1,_6e2,ns){
var impl=this.getImplementationName(_6e0,ns);
if(impl){
var ret=_6e1?new impl(_6e1):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _6e6 in dojo.render){
if(dojo.render[_6e6]["capable"]===true){
var _6e7=dojo.render[_6e6].prefixes;
for(var i=0;i<_6e7.length;i++){
_6c3.push(_6e7[i].toLowerCase());
}
}
}
}
var _6e9=function(_6ea,_6eb){
if(!_6eb){
return null;
}
for(var i=0,l=_6c3.length,_6ee;i<=l;i++){
_6ee=(i<l?_6eb[_6c3[i]]:_6eb);
if(!_6ee){
continue;
}
for(var name in _6ee){
if(name.toLowerCase()==_6ea){
return _6ee[name];
}
}
}
return null;
};
var _6f0=function(_6f1,_6f2){
var _6f3=dojo.evalObjPath(_6f2,false);
return (_6f3?_6e9(_6f1,_6f3):null);
};
this.getImplementationName=function(_6f4,ns){
var _6f6=_6f4.toLowerCase();
ns=ns||"dojo";
var imps=_6db[ns]||(_6db[ns]={});
var impl=imps[_6f6];
if(impl){
return impl;
}
if(!_6c3.length){
buildPrefixCache();
}
var _6f9=dojo.ns.get(ns);
if(!_6f9){
dojo.ns.register(ns,ns+".widget");
_6f9=dojo.ns.get(ns);
}
if(_6f9){
_6f9.resolve(_6f4);
}
impl=_6f0(_6f6,_6f9.module);
if(impl){
return (imps[_6f6]=impl);
}
_6f9=dojo.ns.require(ns);
if((_6f9)&&(_6f9.resolver)){
_6f9.resolve(_6f4);
impl=_6f0(_6f6,_6f9.module);
if(impl){
return (imps[_6f6]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_6f4+"\" in \""+_6f9.module+"\" registered to namespace \""+_6f9.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_6dc.length;i++){
impl=_6f0(_6f6,_6dc[i]);
if(impl){
return (imps[_6f6]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_6f4+"\" in \""+_6f9.module+"\" registered to namespace \""+_6f9.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _6fc=this.topWidgets[id];
if(_6fc.checkSize){
_6fc.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(_701,_702){
dw[(_702||_701)]=h(_701);
};
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 _704=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _704[n];
}
return _704;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.uri.*");
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/widget/templates/images"),doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _706=null;
if(window.getComputedStyle){
var _707=getComputedStyle(div,"");
_706=_707.getPropertyValue("background-image");
}else{
_706=div.currentStyle.backgroundImage;
}
var _708=false;
if(_706!=null&&(_706=="none"||_706=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_709){
this.doAccessibleCheck=_709;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _70b=this.children[i];
if(_70b.onResized){
_70b.onResized();
}
}
},create:function(args,_70d,_70e,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_70d,_70e);
this.mixInProperties(args,_70d,_70e);
this.postMixInProperties(args,_70d,_70e);
dojo.widget.manager.add(this);
this.buildRendering(args,_70d,_70e);
this.initialize(args,_70d,_70e);
this.postInitialize(args,_70d,_70e);
this.postCreate(args,_70d,_70e);
return this;
},destroy:function(_710){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_710);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _711;
var i=0;
while(this.children.length>i){
_711=this.children[i];
if(_711 instanceof dojo.widget.Widget){
this.removeChild(_711);
_711.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_714){
var ret=[];
var _716=dojo.lang.isFunction(type);
if(!_716){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_716){
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(_714){
ret=ret.concat(this.children[x].getChildrenOfType(type,_714));
}
}
return ret;
},getDescendants:function(){
var _718=[];
var _719=[this];
var elem;
while((elem=_719.pop())){
_718.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_719.push(elem);
});
}
}
return _718;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},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 _720;
var _721=dojo.widget.lcArgsCache[this.widgetType];
if(_721==null){
_721={};
for(var y in this){
_721[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_721;
}
var _723={};
for(var x in args){
if(!this[x]){
var y=_721[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_723[x]){
continue;
}
_723[x]=true;
if((typeof this[x])!=(typeof _720)){
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.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc: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]=dojo.uri.dojoUri(args[x]);
}else{
var _725=args[x].split(";");
for(var y=0;y<_725.length;y++){
var si=_725[y].indexOf(":");
if((si!=-1)&&(_725[y].length>si)){
this[x][_725[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_725[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_729){
},initialize:function(args,frag,_72c){
return false;
},postInitialize:function(args,frag,_72f){
return false;
},postCreate:function(args,frag,_732){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_735){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_736){
},addChild:function(_737){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_738){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_738){
this.children.splice(x,1);
break;
}
}
return _738;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_73d,_73e,_73f){
var _740=_73e.parseProperties(_73d["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_741,_742,_743){
var _744=_742.parseProperties(_741["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_747,_748,_749,_74a){
dojo.a11y.setAccessibleMode();
var _74b=type.split(":");
_74b=(_74b.length==2)?_74b[1]:type;
var _74c=_74a||_747.parseProperties(frag[frag["ns"]+":"+_74b]);
var _74d=dojo.widget.manager.getImplementation(_74b,null,null,frag["ns"]);
if(!_74d){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_74d.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_74c["dojoinsertionindex"]=_749;
var ret=_74d.create(_74c,frag,_748,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_74f,_750,_751,init,_753){
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(_756,_757,_758,init,_75a){
var _75b=_756.split(".");
var type=_75b.pop();
var regx="\\.("+(_757?_757+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_756.search(new RegExp(regx));
_75b=(r<0?_75b.join("."):_756.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_75b);
var pos=_75b.indexOf(".");
var _760=(pos>-1)?_75b.substring(0,pos):_75b;
_75a=(_75a)||{};
_75a.widgetType=type;
if((!init)&&(_75a["classConstructor"])){
init=_75a.classConstructor;
delete _75a.classConstructor;
}
dojo.declare(_756,_758,init,_75a);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_761){
this.propertySetsList=[];
this.fragment=_761;
this.createComponents=function(frag,_763){
var _764=[];
var _765=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _766=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();
frag.tagName=ltn;
var ret;
if(_766[ltn]){
_765=true;
ret=_766[ltn](frag,this,_763,frag.index);
_764.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_763,frag.index);
if(ret){
_765=true;
_764.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_765){
_764=_764.concat(this.createSubComponents(frag,_763));
}
return _764;
};
this.createSubComponents=function(_76b,_76c){
var frag,_76e=[];
for(var item in _76b){
frag=_76b[item];
if(frag&&typeof frag=="object"&&(frag!=_76b.nodeRef)&&(frag!=_76b.tagName)&&(!dojo.dom.isNode(frag))){
_76e=_76e.concat(this.createComponents(frag,_76c));
}
}
return _76e;
};
this.parsePropertySets=function(_770){
return [];
};
this.parseProperties=function(_771){
var _772={};
for(var item in _771){
if((_771[item]==_771.tagName)||(_771[item]==_771.nodeRef)){
}else{
var frag=_771[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _775=this;
this.getDataProvider(_775,frag[0].value);
_772.dataProvider=this.dataProvider;
}
_772[item]=frag[0].value;
var _776=this.parseProperties(frag);
for(var _777 in _776){
_772[_777]=_776[_777];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _772[item]!="boolean"){
_772[item]=true;
}
break;
}
}
}
return _772;
};
this.getDataProvider=function(_778,_779){
dojo.io.bind({url:_779,load:function(type,_77b){
if(type=="load"){
_778.dataProvider=_77b;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_77c){
for(var x=0;x<this.propertySetsList.length;x++){
if(_77c==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_77e){
var _77f=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _783=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_783==cpcc[0].value)){
_77f.push(cpl);
}
}
return _77f;
};
this.getPropertySets=function(_784){
var ppl="dojo:propertyproviderlist";
var _786=[];
var _787=_784.tagName;
if(_784[ppl]){
var _788=_784[ppl].value.split(" ");
for(var _789 in _788){
if((_789.indexOf("..")==-1)&&(_789.indexOf("://")==-1)){
var _78a=this.getPropertySetById(_789);
if(_78a!=""){
_786.push(_78a);
}
}else{
}
}
}
return this.getPropertySetsByType(_787).concat(_786);
};
this.createComponentFromScript=function(_78b,_78c,_78d,ns){
_78d.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_78c.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_78d,this,null,null,_78d)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_78d,this,null,null,_78d)];
};
};
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,_792,_793,_794){
var _795=false;
var _796=(typeof name=="string");
if(_796){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _799=name.toLowerCase();
var _79a=ns+":"+_799;
_795=(dojo.byId(name)&&!dojo.widget.tags[_79a]);
}
if((arguments.length==1)&&(_795||!_796)){
var xp=new dojo.xml.Parse();
var tn=_795?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_79d,name,_79f,ns){
_79f[_79a]={dojotype:[{value:_799}],nodeRef:_79d,fastMixIn:true};
_79f.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_79d,name,_79f,ns);
}
_792=_792||{};
var _7a1=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_793){
_7a1=true;
_793=tn;
if(h){
dojo.body().appendChild(_793);
}
}else{
if(_794){
dojo.dom.insertAtPosition(tn,_793,_794);
}else{
tn=_793;
}
}
var _7a3=fromScript(tn,name.toLowerCase(),_792,ns);
if((!_7a3)||(!_7a3[0])||(typeof _7a3[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_7a1&&_7a3[0].domNode.parentNode){
_7a3[0].domNode.parentNode.removeChild(_7a3[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _7a3[0];
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_7a5,_7a6,_7a7){
var _7a8=_7a5||obj.templatePath;
var _7a9=dojo.widget._templateCache;
if(!_7a8&&!obj["widgetType"]){
do{
var _7aa="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_7a9[_7aa]);
obj.widgetType=_7aa;
}
var wt=_7a8?_7a8.toString():obj.widgetType;
var ts=_7a9[wt];
if(!ts){
_7a9[wt]={"string":null,"node":null};
if(_7a7){
ts={};
}else{
ts=_7a9[wt];
}
}
if((!obj.templateString)&&(!_7a7)){
obj.templateString=_7a6||ts["string"];
}
if((!obj.templateNode)&&(!_7a7)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_7a8)){
var _7ad=dojo.hostenv.getText(_7a8);
if(_7ad){
_7ad=_7ad.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _7ae=_7ad.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_7ae){
_7ad=_7ae[1];
}
}else{
_7ad="";
}
obj.templateString=_7ad;
if(!_7a7){
_7a9[wt]["string"]=_7ad;
}
}
if((!ts["string"])&&(!_7a7)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_7b2){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_7b2);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_7b2);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _7b9=true;
if(dojo.render.html.ie){
_7b9=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _7b9;
}};
dojo.widget.attachTemplateNodes=function(_7ba,_7bb,_7bc){
var _7bd=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_7ba){
_7ba=_7bb.domNode;
}
if(_7ba.nodeType!=_7bd){
return;
}
var _7bf=_7ba.all||_7ba.getElementsByTagName("*");
var _7c0=_7bb;
for(var x=-1;x<_7bf.length;x++){
var _7c2=(x==-1)?_7ba:_7bf[x];
var _7c3=[];
if(!_7bb.widgetsInTemplate||!_7c2.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _7c5=_7c2.getAttribute(this.attachProperties[y]);
if(_7c5){
_7c3=_7c5.split(";");
for(var z=0;z<_7c3.length;z++){
if(dojo.lang.isArray(_7bb[_7c3[z]])){
_7bb[_7c3[z]].push(_7c2);
}else{
_7bb[_7c3[z]]=_7c2;
}
}
break;
}
}
var _7c7=_7c2.getAttribute(this.eventAttachProperty);
if(_7c7){
var evts=_7c7.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _7c9=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _7cb=tevt.split(":");
tevt=trim(_7cb[0]);
_7c9=trim(_7cb[1]);
}
if(!_7c9){
_7c9=tevt;
}
var tf=function(){
var ntf=new String(_7c9);
return function(evt){
if(_7c0[ntf]){
_7c0[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7c2,tevt,tf,false,true);
}
}
for(var y=0;y<_7bc.length;y++){
var _7cf=_7c2.getAttribute(_7bc[y]);
if((_7cf)&&(_7cf.length)){
var _7c9=null;
var _7d0=_7bc[y].substr(4);
_7c9=trim(_7cf);
var _7d1=[_7c9];
if(_7c9.indexOf(";")>=0){
_7d1=dojo.lang.map(_7c9.split(";"),trim);
}
for(var z=0;z<_7d1.length;z++){
if(!_7d1[z].length){
continue;
}
var tf=function(){
var ntf=new String(_7d1[z]);
return function(evt){
if(_7c0[ntf]){
_7c0[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7c2,_7d0,tf,false,true);
}
}
}
}
var _7d4=_7c2.getAttribute(this.templateProperty);
if(_7d4){
_7bb[_7d4]=_7c2;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_7c2.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_7c2,wai.name,"role",val);
}else{
var _7d8=val.split("-");
dojo.widget.wai.setAttr(_7c2,wai.name,_7d8[0],_7d8[1]);
}
}
},this);
var _7d9=_7c2.getAttribute(this.onBuildProperty);
if(_7d9){
eval("var node = baseNode; var widget = targetObj; "+_7d9);
}
}
};
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].length<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,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,widgetsInTemplate:false,addChild:function(_7e1,_7e2,pos,ref,_7e5){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_7e5==undefined){
_7e5=this.children.length;
}
this.addWidgetAsDirectChild(_7e1,_7e2,pos,ref,_7e5);
this.registerChild(_7e1,_7e5);
}
return _7e1;
},addWidgetAsDirectChild:function(_7e6,_7e7,pos,ref,_7ea){
if((!this.containerNode)&&(!_7e7)){
this.containerNode=this.domNode;
}
var cn=(_7e7)?_7e7:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_7ea){
_7ea=0;
}
_7e6.domNode.setAttribute("dojoinsertionindex",_7ea);
if(!ref){
cn.appendChild(_7e6.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_7e6.domNode,ref.parentNode,_7ea);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_7e6.domNode);
}else{
dojo.dom.insertAtPosition(_7e6.domNode,cn,pos);
}
}
}
},registerChild:function(_7ec,_7ed){
_7ec.dojoInsertionIndex=_7ed;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_7ed){
idx=i;
}
}
this.children.splice(idx+1,0,_7ec);
_7ec.parent=this;
_7ec.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_7ec.widgetId];
},removeChild:function(_7f0){
dojo.dom.removeNode(_7f0.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_7f0);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_7f4){
var _7f5=this.getFragNodeRef(frag);
if(_7f4&&(_7f4.snarfChildDomOutput||!_7f5)){
_7f4.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_7f5);
}else{
if(_7f5){
if(this.domNode&&(this.domNode!==_7f5)){
var _7f6=_7f5.parentNode.replaceChild(this.domNode,_7f5);
}
}
}
if(_7f4){
_7f4.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _7f7=new dojo.xml.Parse();
var _7f8;
var _7f9=this.domNode.getElementsByTagName("*");
for(var i=0;i<_7f9.length;i++){
if(_7f9[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_7f8=_7f9[i];
}
if(_7f9[i].getAttribute("dojoType")){
_7f9[i].setAttribute("_isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_7f8){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_7f8);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _7fc=_7f7.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_7fc,this);
var _7fd=[];
var _7fe=[this];
var w;
while((w=_7fe.pop())){
for(var i=0;i<w.children.length;i++){
var _800=w.children[i];
if(_800._processedSubWidgets||!_800.extraArgs["_issubwidget"]){
continue;
}
_7fd.push(_800);
if(_800.isContainer){
_7fe.push(_800);
}
}
}
for(var i=0;i<_7fd.length;i++){
var _801=_7fd[i];
if(_801._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_801._processedSubWidgets=true;
if(_801.extraArgs["dojoattachevent"]){
var evts=_801.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _804=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _806=tevt.split(":");
tevt=dojo.string.trim(_806[0]);
_804=dojo.string.trim(_806[1]);
}
if(!_804){
_804=tevt;
}
if(dojo.lang.isFunction(_801[tevt])){
dojo.event.kwConnect({srcObj:_801,srcFunc:tevt,targetObj:this,targetFunc:_804});
}else{
alert(tevt+" is not a function in widget "+_801);
}
}
}
if(_801.extraArgs["dojoattachpoint"]){
this[_801.extraArgs["dojoattachpoint"]]=_801;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _80a=args["templateCssPath"]||this.templateCssPath;
if(_80a&&!dojo.widget._cssFiles[_80a.toString()]){
if((!this.templateCssString)&&(_80a)){
this.templateCssString=dojo.hostenv.getText(_80a);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_80a.toString()]=true;
}
if((this["templateCssString"])&&(!this.templateCssString["loaded"])){
dojo.html.insertCssText(this.templateCssString,null,_80a);
if(!this.templateCssString){
this.templateCssString="";
}
this.templateCssString.loaded=true;
}
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 _80d=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_80d);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_80d)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _80f=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_80f=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_80f){
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<_80f.length;i++){
var key=_80f[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 _816;
if((kval)||(dojo.lang.isString(kval))){
_816=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_816.indexOf("\"")>-1){
_816=_816.replace("\"","&quot;");
}
tstr=tstr.replace(_80f[i],_816);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_80d){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_80f)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_80f){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_818,_819){
if(!_818){
_818=this.domNode;
}
if(!_819){
_819=this;
}
return dojo.widget.attachTemplateNodes(_818,_819,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_81b,_81c,_81d){
dojo.html.show(node);
if(dojo.lang.isFunction(_81d)){
_81d();
}
},hide:function(node,_81f,_820,_821){
dojo.html.hide(node);
if(dojo.lang.isFunction(_821)){
_821();
}
}};
dojo.lfx.toggle.fade={show:function(node,_823,_824,_825){
dojo.lfx.fadeShow(node,_823,_824,_825).play();
},hide:function(node,_827,_828,_829){
dojo.lfx.fadeHide(node,_827,_828,_829).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_82b,_82c,_82d){
dojo.lfx.wipeIn(node,_82b,_82c,_82d).play();
},hide:function(node,_82f,_830,_831){
dojo.lfx.wipeOut(node,_82f,_830,_831).play();
}};
dojo.lfx.toggle.explode={show:function(node,_833,_834,_835,_836){
dojo.lfx.explode(_836||{x:0,y:0,width:0,height:0},node,_833,_834,_835).play();
},hide:function(node,_838,_839,_83a,_83b){
dojo.lfx.implode(node,_83b||{x:0,y:0,width:0,height:0},_838,_839,_83a).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_842){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_842&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.dom.removeNode(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
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(){
if(!this.isShowing()){
return;
}
this.animationInProgress=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;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _846=w||wh.width;
var _847=h||wh.height;
if(this.width==_846&&this.height==_847){
return false;
}
this.width=_846;
this.height=_847;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_84a){
if(_84a.checkSize){
_84a.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isContainer:true,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"display:none;position:absolute;\" class=\"dojoPopupContainer\" ></div>",isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_84e,_84f,_850,_851){
if(this.isShowingNow){
return;
}
this.aboutToShow();
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.parent=_84e;
var _852=false,node,_854;
if(typeof x=="object"){
node=x;
_854=_84f;
_84f=_84e;
_84e=y;
_852=true;
}
dojo.body().appendChild(this.domNode);
_84f=_84f||_84e["domNode"]||[];
var _855=null;
this.isTopLevel=true;
while(_84e){
if(_84e!==this&&(_84e.setOpenedSubpopup!=undefined&&_84e.applyPopupBasicStyle!=undefined)){
_855=_84e;
this.isTopLevel=false;
_855.setOpenedSubpopup(this);
break;
}
_84e=_84e.parent;
}
this.parentPopup=_855;
this.popupIndex=_855?_855.popupIndex+1:1;
if(this.isTopLevel){
var _856=dojo.html.isNode(_84f)?_84f:null;
dojo.widget.PopupManager.opened(this,_856);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_84f instanceof Array){
_84f={left:_84f[0],top:_84f[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_852){
this.move(node,_851,_854);
}else{
this.move(x,y,_851,_850);
}
this.domNode.style.display="none";
this.explodeSrc=_84f;
this.show();
this.isShowingNow=true;
},move:function(x,y,_859,_85a){
var _85b=(typeof x=="object");
if(_85b){
var _85c=_859;
var node=x;
_859=y;
if(!_85c){
_85c={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_859,this.aroundBox,_85c);
}else{
if(!_85a){
_85a="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_859,true,_85a);
}
},close:function(_85e){
if(_85e){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_85e);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
try{
setTimeout(dojo.lang.hitch(this,function(){
this.parent.domNode.focus();
}),10);
}
catch(e){
dojo.debug(e);
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
this._bookmark=null;
},closeAll:function(_85f){
if(this.parentPopup){
this.parentPopup.closeAll(_85f);
}else{
this.close(_85f);
}
},setOpenedSubpopup:function(_860){
this.currentSubpopup=_860;
},closeSubpopup:function(_861){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_861);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();
}
this.processQueue();
},processQueue:function(){
if(!this.queueOnAnimationFinish.length){
return;
}
var func=this.queueOnAnimationFinish.shift();
var args=this.queueOnAnimationFinish.shift();
func.apply(this,args);
},onHide:function(){
dojo.widget.HtmlWidget.prototype.onHide.call(this);
if(this.openedSize){
with(this.domNode.style){
width=this.openedSize.w;
height=this.openedSize.h;
}
}
this.processQueue();
}});
dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{});
dojo.widget.PopupManager=new function(){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
this.focusNode=null;
this.registeredWindows=[];
this.registerWin=function(win){
if(!win.__PopupManagerRegistered){
dojo.event.connect(win.document,"onmousedown",this,"onClick");
dojo.event.connect(win,"onscroll",this,"onClick");
dojo.event.connect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_865){
if(!_865){
_865=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_865);
for(var i=0;i<_865.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_865.frames[i].document);
if(win){
this.registerAllWindows(win);
}
}
catch(e){
}
}
};
this.unRegisterWin=function(win){
if(win.__PopupManagerRegistered){
dojo.event.disconnect(win.document,"onmousedown",this,"onClick");
dojo.event.disconnect(win,"onscroll",this,"onClick");
dojo.event.disconnect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=false;
}
};
this.unRegisterAllWindows=function(){
for(var i=0;i<this.registeredWindows.length;++i){
this.unRegisterWin(this.registeredWindows[i]);
}
this.registeredWindows=[];
};
dojo.addOnLoad(this,"registerAllWindows");
dojo.addOnUnload(this,"unRegisterAllWindows");
this.closed=function(menu){
if(this.currentMenu==menu){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
}
};
this.opened=function(menu,_86c){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_86c;
};
this.setFocusedMenu=function(menu){
this.currentFocusMenu=menu;
};
this.onKey=function(e){
if(!e.key){
return;
}
if(!this.currentMenu||!this.currentMenu.isShowingNow){
return;
}
var m=this.currentFocusMenu;
while(m){
if(m.processKey(e)){
e.preventDefault();
e.stopPropagation();
break;
}
m=m.parentPopup;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _871=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.close();
};
};
dojo.provide("dojo.widget.Menu2");
dojo.widget.defineWidget("dojo.widget.PopupMenu2",dojo.widget.PopupContainer,function(){
this.targetNodeIds=[];
this.eventNames={open:""};
},{snarfChildDomOutput:true,eventNaming:"default",templateString:"<table class=\"dojoPopupMenu2\" border=0 cellspacing=0 cellpadding=0 style=\"display: none;\"><tbody dojoAttachPoint=\"containerNode\"></tbody></table>",templateCssString:"",submenuDelay:200,disabledClass:"dojoMenuItem2Disabled",submenuOverlap:5,contextMenuForWindow:false,targetNodeIds:[],initialize:function(args,frag){
if(this.eventNaming=="default"){
for(var _875 in this.eventNames){
this.eventNames[_875]=this.widgetId+"/"+_875;
}
}
},postCreate:function(){
if(this.contextMenuForWindow){
var doc=dojo.body();
this.bindDomNode(doc);
}else{
if(this.targetNodeIds.length>0){
dojo.lang.forEach(this.targetNodeIds,this.bindDomNode,this);
}
}
this._subscribeSubitemsOnOpen();
},_subscribeSubitemsOnOpen:function(){
var _877=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_877.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_877[i],"menuOpen");
}
},getTopOpenEvent:function(){
var menu=this;
while(menu.parentPopup){
menu=menu.parentPopup;
}
return menu.openEvent;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dojo.html.getElementWindow(node);
if(dojo.html.isTag(node,"iframe")=="iframe"){
win=dojo.html.iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
dojo.widget.Menu2.OperaAndKonqFixer.fixNode(node);
dojo.event.kwConnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
if(dojo.render.html.moz&&win.document.designMode.toLowerCase()=="on"){
dojo.event.browser.addListener(node,"contextmenu",dojo.lang.hitch(this,"onOpen"));
}
dojo.widget.PopupManager.registerWin(win);
},unBindDomNode:function(_87c){
var node=dojo.byId(_87c);
dojo.event.kwDisconnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(node);
},_moveToNext:function(evt){
this._highlightOption(1);
return true;
},_moveToPrevious:function(evt){
this._highlightOption(-1);
return true;
},_moveToParentMenu:function(evt){
if(this._highlighted_option&&this.parentPopup){
if(evt._menu2UpKeyProcessed){
return true;
}else{
this._highlighted_option.onUnhover();
this.closeSubpopup();
evt._menu2UpKeyProcessed=true;
}
}
return false;
},_moveToChildMenu:function(evt){
if(this._highlighted_option&&this._highlighted_option.submenuId){
this._highlighted_option._onClick(true);
return true;
}
return false;
},_selectCurrentItem:function(evt){
if(this._highlighted_option){
this._highlighted_option._onClick();
return true;
}
return false;
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToPrevious(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToParentMenu(evt);
break;
case " ":
case evt.KEY_ENTER:
if(rval=this._selectCurrentItem(evt)){
break;
}
case evt.KEY_ESCAPE:
dojo.widget.PopupManager.currentMenu.close();
rval=true;
break;
}
return rval;
},_findValidItem:function(dir,_886){
if(_886){
_886=dir>0?_886.getNextSibling():_886.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_886){
_886=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_886.onHover&&_886.isShowing()){
return _886;
}
_886=dir>0?_886.getNextSibling():_886.getPreviousSibling();
}
},_highlightOption:function(dir){
var item;
if((!this._highlighted_option)){
item=this._findValidItem(dir);
}else{
item=this._findValidItem(dir,this._highlighted_option);
}
if(item){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
item.onHover();
dojo.html.scrollIntoView(item.domNode);
try{
var node=dojo.html.getElementsByClass("dojoMenuItem2Label",item.domNode)[0];
node.focus();
}
catch(e){
}
}
},onItemClick:function(item){
},close:function(_88c){
if(this.animationInProgress){
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
return;
}
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
},closeSubpopup:function(_88d){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_88d);
this.currentSubpopup=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_88d);
this.currentSubmenuTrigger=null;
},_openSubmenu:function(_88e,_88f){
var _890=dojo.html.getAbsolutePosition(_88f.domNode,true);
var _891=dojo.html.getMarginBox(this.domNode).width;
var x=_890.x+_891-this.submenuOverlap;
var y=_890.y;
_88e.open(x,y,this,_88f.domNode);
this.currentSubmenuTrigger=_88f;
this.currentSubmenuTrigger.is_open=true;
},onOpen:function(e){
this.openEvent=e;
if(e["target"]){
this.openedForWindow=dojo.html.getElementWindow(e.target);
}else{
this.openedForWindow=null;
}
var x=e.pageX,y=e.pageY;
var win=dojo.html.getElementWindow(e.target);
var _898=win._frameElement||win.frameElement;
if(_898){
var cood=dojo.html.abs(_898,true);
x+=cood.x-dojo.withGlobal(win,dojo.html.getScroll).left;
y+=cood.y-dojo.withGlobal(win,dojo.html.getScroll).top;
}
this.open(x,y,null,[x,y]);
e.preventDefault();
e.stopPropagation();
}});
dojo.widget.defineWidget("dojo.widget.MenuItem2",dojo.widget.HtmlWidget,function(){
this.eventNames={engage:""};
},{templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td><div class=\"${this.iconClass}\" style=\"${this.iconStyle}\"></div></td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"<td><div class=\"dojoMenuItem2Submenu\" style=\"display:${this.arrowDisplay};\"></div></td>"+"</tr>",is_hovering:false,hover_timer:null,is_open:false,topPosition:0,caption:"Untitled",accelKey:"",iconSrc:"",iconClass:"dojoMenuItem2Icon",submenuId:"",eventNaming:"default",highlightClass:"dojoMenuItem2Hover",postMixInProperties:function(){
this.iconStyle="";
if(this.iconSrc){
if((this.iconSrc.toLowerCase().substring(this.iconSrc.length-4)==".png")&&(dojo.render.html.ie55||dojo.render.html.ie60)){
this.iconStyle="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.iconSrc+"', sizingMethod='image')";
}else{
this.iconStyle="background-image: url("+this.iconSrc+")";
}
}
this.arrowDisplay=this.submenuId?"block":"none";
dojo.widget.MenuItem2.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.domNode);
if(this.disabled){
this.setDisabled(true);
}
if(this.eventNaming=="default"){
for(var _89a in this.eventNames){
this.eventNames[_89a]=this.widgetId+"/"+_89a;
}
}
},onHover:function(){
this.onUnhover();
if(this.is_hovering){
return;
}
if(this.is_open){
return;
}
if(this.parent._highlighted_option){
this.parent._highlighted_option.onUnhover();
}
this.parent.closeSubpopup();
this.parent._highlighted_option=this;
dojo.widget.PopupManager.setFocusedMenu(this.parent);
this._highlightItem();
if(this.is_hovering){
this._stopSubmenuTimer();
}
this.is_hovering=true;
this._startSubmenuTimer();
},onUnhover:function(){
if(!this.is_open){
this._unhighlightItem();
}
this.is_hovering=false;
this.parent._highlighted_option=null;
if(this.parent.parentPopup){
dojo.widget.PopupManager.setFocusedMenu(this.parent.parentPopup);
}
this._stopSubmenuTimer();
},_onClick:function(_89b){
var _89c=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_89c=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_89c&&_89b){
dojo.widget.getWidgetById(this.submenuId)._highlightOption(1);
}
return;
},onClick:function(){
this.parent.onItemClick(this);
},_highlightItem:function(){
dojo.html.addClass(this.domNode,this.highlightClass);
},_unhighlightItem:function(){
dojo.html.removeClass(this.domNode,this.highlightClass);
},_startSubmenuTimer:function(){
this._stopSubmenuTimer();
if(this.disabled){
return;
}
var self=this;
var _89e=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_89e,this.parent.submenuDelay);
},_stopSubmenuTimer:function(){
if(this.hover_timer){
dojo.lang.clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_openSubmenu:function(){
if(this.disabled){
return;
}
this.parent.closeSubpopup();
var _89f=dojo.widget.getWidgetById(this.submenuId);
if(_89f){
this.parent._openSubmenu(_89f,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_8a0){
this.disabled=_8a0;
if(this.disabled){
dojo.html.addClass(this.domNode,this.disabledClass);
}else{
dojo.html.removeClass(this.domNode,this.disabledClass);
}
},enable:function(){
this.setDisabled(false);
},disable:function(){
this.setDisabled(true);
},menuOpen:function(_8a1){
}});
dojo.widget.defineWidget("dojo.widget.MenuSeparator2",dojo.widget.HtmlWidget,{templateString:"<tr class=\"dojoMenuSeparator2\"><td colspan=4>"+"<div class=\"dojoMenuSeparator2Top\"></div>"+"<div class=\"dojoMenuSeparator2Bottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.html.disableSelection(this.domNode);
}});
dojo.widget.defineWidget("dojo.widget.MenuBar2",dojo.widget.PopupMenu2,{menuOverlap:2,templateString:"<div class=\"dojoMenuBar2\" tabIndex=\"0\"><table class=\"dojoMenuBar2Client\"><tr dojoAttachPoint=\"containerNode\"></tr></table></div>",close:function(_8a2){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubpopup(_8a2);
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey){
return false;
}
if(!dojo.html.hasClass(evt.target,"dojoMenuBar2")){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToParentMenu(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToPrevious(evt);
break;
default:
rval=dojo.widget.MenuBar2.superclass.processKey.apply(this,arguments);
break;
}
return rval;
},postCreate:function(){
dojo.widget.MenuBar2.superclass.postCreate.apply(this,arguments);
dojo.widget.PopupManager.opened(this);
this.isShowingNow=true;
},_openSubmenu:function(_8a5,_8a6){
var _8a7=dojo.html.getAbsolutePosition(_8a6.domNode,true);
var _8a8=dojo.html.getAbsolutePosition(this.domNode,true);
var _8a9=dojo.html.getBorderBox(this.domNode).height;
var x=_8a7.x;
var y=_8a8.y+_8a9-this.menuOverlap;
_8a5.open(x,y,this,_8a6.domNode);
this.currentSubmenuTrigger=_8a6;
this.currentSubmenuTrigger.is_open=true;
}});
dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:"<td class=\"dojoMenuBarItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;\">"+"<span>${this.caption}</span>"+"</td>",highlightClass:"dojoMenuBarItem2Hover",setDisabled:function(_8ac){
this.disabled=_8ac;
if(this.disabled){
dojo.html.addClass(this.domNode,"dojoMenuBarItem2Disabled");
}else{
dojo.html.removeClass(this.domNode,"dojoMenuBarItem2Disabled");
}
}});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _8ad=true;
var _8ae=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_8ad=false;
_8ae=true;
};
}
if(dojo.doc().createEvent){
try{
var e=dojo.doc().createEvent("MouseEvents");
e.initMouseEvent("contextmenu",1,1,dojo.global(),1,0,0,0,0,0,0,0,0,0,null);
dojo.doc().dispatchEvent(e);
}
catch(e){
}
}else{
_8ad=false;
}
if(_8ae){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_8ad){
if(!dojo.lang.isFunction(node.oncontextmenu)){
node.oncontextmenu=function(e){
};
}
if(dojo.render.html.opera){
node._menufixer_opera=function(e){
if(e.ctrlKey){
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onclick",node,"_menufixer_opera");
}else{
node._menufixer_konq=function(e){
if(e.button==2){
e.preventDefault();
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onmousedown",node,"_menufixer_konq");
}
}
};
this.cleanNode=function(node){
if(_8ad){
if(node._menufixer_opera){
dojo.event.disconnect(node,"onclick",node,"_menufixer_opera");
delete node._menufixer_opera;
}else{
if(node._menufixer_konq){
dojo.event.disconnect(node,"onmousedown",node,"_menufixer_konq");
delete node._menufixer_konq;
}
}
if(node.oncontextmenu){
delete node.oncontextmenu;
}
}
};
};
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}

