/*
	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: 6426 $".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);
}
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.addOnLoad(_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.lang.common");
dojo.lang.inherits=function(_ee,_ef){
if(typeof _ef!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_ef+"] must be a function (subclass: ["+_ee+"']");
}
_ee.prototype=new _ef();
_ee.prototype.constructor=_ee;
_ee.superclass=_ef.prototype;
_ee["super"]=_ef.prototype;
};
dojo.lang._mixin=function(obj,_f1){
var _f2={};
for(var x in _f1){
if((typeof _f2[x]=="undefined")||(_f2[x]!=_f1[x])){
obj[x]=_f1[x];
}
}
if(dojo.render.html.ie&&(typeof (_f1["toString"])=="function")&&(_f1["toString"]!=obj["toString"])&&(_f1["toString"]!=_f2["toString"])){
obj.toString=_f1.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_f5){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_f8,_f9){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_f8.prototype,arguments[i]);
}
return _f8;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_fc,_fd,_fe,_ff){
if(!dojo.lang.isArrayLike(_fc)&&dojo.lang.isArrayLike(_fd)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_fc;
_fc=_fd;
_fd=temp;
}
var _101=dojo.lang.isString(_fc);
if(_101){
_fc=_fc.split("");
}
if(_ff){
var step=-1;
var i=_fc.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_fc.length;
}
if(_fe){
while(i!=end){
if(_fc[i]===_fd){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_fc[i]==_fd){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_105,_106,_107){
return dojo.lang.find(_105,_106,_107,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_108,_109){
return dojo.lang.find(_108,_109)>-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.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 _117=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_117++;
break;
}
}
return _117==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_11b){
var _11c=dojo.lang.isString(arr);
if(_11c){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_11b)){
_11b=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_11b){
var _11d=obj;
obj=_11b;
_11b=_11d;
}
}
if(Array.map){
var _11e=Array.map(arr,_11b,obj);
}else{
var _11e=[];
for(var i=0;i<arr.length;++i){
_11e.push(_11b.call(obj,arr[i]));
}
}
if(_11c){
return _11e.join("");
}else{
return _11e;
}
};
dojo.lang.reduce=function(arr,_121,obj,_123){
var _124=_121;
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_124=_123.call(ob,_124,val);
});
return _124;
};
dojo.lang.forEach=function(_127,_128,_129){
if(dojo.lang.isString(_127)){
_127=_127.split("");
}
if(Array.forEach){
Array.forEach(_127,_128,_129);
}else{
if(!_129){
_129=dj_global;
}
for(var i=0,l=_127.length;i<l;i++){
_128.call(_129,_127[i],i,_127);
}
}
};
dojo.lang._everyOrSome=function(_12c,arr,_12e,_12f){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_12c?"every":"some"](arr,_12e,_12f);
}else{
if(!_12f){
_12f=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _132=_12e.call(_12f,arr[i],i,arr);
if(_12c&&!_132){
return false;
}else{
if((!_12c)&&(_132)){
return true;
}
}
}
return Boolean(_12c);
}
};
dojo.lang.every=function(arr,_134,_135){
return this._everyOrSome(true,arr,_134,_135);
};
dojo.lang.some=function(arr,_137,_138){
return this._everyOrSome(false,arr,_137,_138);
};
dojo.lang.filter=function(arr,_13a,_13b){
var _13c=dojo.lang.isString(arr);
if(_13c){
arr=arr.split("");
}
var _13d;
if(Array.filter){
_13d=Array.filter(arr,_13a,_13b);
}else{
if(!_13b){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_13b=dj_global;
}
_13d=[];
for(var i=0;i<arr.length;i++){
if(_13a.call(_13b,arr[i],i,arr)){
_13d.push(arr[i]);
}
}
}
if(_13c){
return _13d.join("");
}else{
return _13d;
}
};
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(_142,_143){
var _144=[];
for(var i=_143||0;i<_142.length;i++){
_144.push(_142[i]);
}
return _144;
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_147){
var _148=window,_149=2;
if(!dojo.lang.isFunction(func)){
_148=func;
func=_147;
_147=arguments[2];
_149++;
}
if(dojo.lang.isString(func)){
func=_148[func];
}
var args=[];
for(var i=_149;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_148,args);
},_147);
};
dojo.lang.clearTimeout=function(_14c){
dojo.global().clearTimeout(_14c);
};
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(_155,_156,_157){
with(dojo.parseObjPath(_155,_156,_157)){
return dojo.evalProp(prop,obj,_157);
}
};
dojo.lang.setObjPathValue=function(_158,_159,_15a,_15b){
if(arguments.length<4){
_15b=true;
}
with(dojo.parseObjPath(_158,_15a,_15b)){
if(obj&&(_15b||(prop in obj))){
obj[prop]=_159;
}
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_15c,_15d){
var fcn=(dojo.lang.isString(_15d)?_15c[_15d]:_15d)||function(){
};
return function(){
return fcn.apply(_15c,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_15f,_160,_161){
var nso=(_160||dojo.lang.anon);
if((_161)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_15f){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_15f;
return ret;
};
dojo.lang.forward=function(_165){
return function(){
return this[_165].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _168=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_168.push(arguments[x]);
}
var _16a=(func["__preJoinArity"]||func.length)-_168.length;
function gather(_16b,_16c,_16d){
var _16e=_16d;
var _16f=_16c.slice(0);
for(var x=0;x<_16b.length;x++){
_16f.push(_16b[x]);
}
_16d=_16d-_16b.length;
if(_16d<=0){
var res=func.apply(ns,_16f);
_16d=_16e;
return res;
}else{
return function(){
return gather(arguments,_16f,_16d);
};
}
}
return gather([],_168,_16a);
};
dojo.lang.curryArguments=function(ns,func,args,_175){
var _176=[];
var x=_175||0;
for(x=_175;x<args.length;x++){
_176.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_176));
};
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,_17c,_17d){
if(!farr.length){
if(typeof _17d=="function"){
_17d();
}
return;
}
if((typeof _17c=="undefined")&&(typeof cb=="number")){
_17c=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_17c){
_17c=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_17c,_17d);
},_17c);
};
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,_17f){
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 _182=dl.nameAnonFunc(args[2],ao.adviceObj,_17f);
ao.adviceFunc=_182;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _182=dl.nameAnonFunc(args[0],ao.srcObj,_17f);
ao.srcFunc=_182;
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 _182=dl.nameAnonFunc(args[1],dj_global,_17f);
ao.srcFunc=_182;
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 _182=dl.nameAnonFunc(args[3],dj_global,_17f);
ao.adviceObj=dj_global;
ao.adviceFunc=_182;
}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 _182=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_17f);
ao.aroundFunc=_182;
}
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 _184={};
for(var x in ao){
_184[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);
}
_184.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_184));
});
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 _18c;
if((arguments.length==1)&&(typeof a1=="object")){
_18c=a1;
}else{
_18c={srcObj:a1,srcFunc:a2};
}
_18c.adviceFunc=function(){
var _18d=[];
for(var x=0;x<arguments.length;x++){
_18d.push(arguments[x]);
}
dojo.debug("("+_18c.srcObj+")."+_18c.srcFunc,":",_18d.join(", "));
};
this.kwConnect(_18c);
};
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(_194,_195){
var fn=(_195)?"disconnect":"connect";
if(typeof _194["srcFunc"]=="function"){
_194.srcObj=_194["srcObj"]||dj_global;
var _197=dojo.lang.nameAnonFunc(_194.srcFunc,_194.srcObj,true);
_194.srcFunc=_197;
}
if(typeof _194["adviceFunc"]=="function"){
_194.adviceObj=_194["adviceObj"]||dj_global;
var _197=dojo.lang.nameAnonFunc(_194.adviceFunc,_194.adviceObj,true);
_194.adviceFunc=_197;
}
_194.srcObj=_194["srcObj"]||dj_global;
_194.adviceObj=_194["adviceObj"]||_194["targetObj"]||dj_global;
_194.adviceFunc=_194["adviceFunc"]||_194["targetFunc"];
return dojo.event[fn](_194);
};
this.kwConnect=function(_198){
return this._kwConnectImpl(_198,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(_19b){
return this._kwConnectImpl(_19b,true);
};
};
dojo.event.MethodInvocation=function(_19c,obj,args){
this.jp_=_19c;
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,_1a4){
this.object=obj||dj_global;
this.methodname=_1a4;
this.methodfunc=this.object[_1a4];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_1a6){
if(!obj){
obj=dj_global;
}
if(!obj[_1a6]){
obj[_1a6]=function(){
};
if(!obj[_1a6]){
dojo.raise("Cannot set do-nothing method on that object "+_1a6);
}
}else{
if((!dojo.lang.isFunction(obj[_1a6]))&&(!dojo.lang.isAlien(obj[_1a6]))){
return null;
}
}
var _1a7=_1a6+"$joinpoint";
var _1a8=_1a6+"$joinpoint$method";
var _1a9=obj[_1a7];
if(!_1a9){
var _1aa=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_1aa=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_1a7,_1a8,_1a6]);
}
}
var _1ab=obj[_1a6].length;
obj[_1a8]=obj[_1a6];
_1a9=obj[_1a7]=new dojo.event.MethodJoinPoint(obj,_1a8);
obj[_1a6]=function(){
var args=[];
if((_1aa)&&(!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)&&(_1aa)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _1a9.run.apply(_1a9,args);
};
obj[_1a6].__preJoinArity=_1ab;
}
return _1a9;
};
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 _1b1=[];
for(var x=0;x<args.length;x++){
_1b1[x]=args[x];
}
var _1b3=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _1b5=marr[0]||dj_global;
var _1b6=marr[1];
if(!_1b5[_1b6]){
dojo.raise("function \""+_1b6+"\" does not exist on \""+_1b5+"\"");
}
var _1b7=marr[2]||dj_global;
var _1b8=marr[3];
var msg=marr[6];
var _1ba;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _1b5[_1b6].apply(_1b5,to.args);
}};
to.args=_1b1;
var _1bc=parseInt(marr[4]);
var _1bd=((!isNaN(_1bc))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _1c0=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;
_1b3(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_1b8){
_1b7[_1b8].call(_1b7,to);
}else{
if((_1bd)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_1b5[_1b6].call(_1b5,to);
}else{
_1b5[_1b6].apply(_1b5,args);
}
},_1bc);
}else{
if(msg){
_1b5[_1b6].call(_1b5,to);
}else{
_1b5[_1b6].apply(_1b5,args);
}
}
}
};
var _1c3=function(){
if(this.squelch){
try{
return _1b3.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _1b3.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_1c3);
}
var _1c4;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_1c4=mi.proceed();
}else{
if(this.methodfunc){
_1c4=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_1c3);
}
return (this.methodfunc)?_1c4: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(_1c9,_1ca,_1cb,_1cc,_1cd,_1ce,once,_1d0,rate,_1d2){
var arr=this.getArr(_1cd);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_1c9,_1ca,_1cb,_1cc,_1d0,rate,_1d2];
if(once){
if(this.hasAdvice(_1c9,_1ca,_1cd,arr)>=0){
return;
}
}
if(_1ce=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_1d5,_1d6,_1d7,arr){
if(!arr){
arr=this.getArr(_1d7);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _1d6=="object")?(new String(_1d6)).toString():_1d6;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_1d5)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_1dd,_1de,_1df,once){
var arr=this.getArr(_1df);
var ind=this.hasAdvice(_1dd,_1de,_1df,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_1dd,_1de,_1df,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_1e3){
if(!this.topics[_1e3]){
this.topics[_1e3]=new this.TopicImpl(_1e3);
}
return this.topics[_1e3];
};
this.registerPublisher=function(_1e4,obj,_1e6){
var _1e4=this.getTopic(_1e4);
_1e4.registerPublisher(obj,_1e6);
};
this.subscribe=function(_1e7,obj,_1e9){
var _1e7=this.getTopic(_1e7);
_1e7.subscribe(obj,_1e9);
};
this.unsubscribe=function(_1ea,obj,_1ec){
var _1ea=this.getTopic(_1ea);
_1ea.unsubscribe(obj,_1ec);
};
this.destroy=function(_1ed){
this.getTopic(_1ed).destroy();
delete this.topics[_1ed];
};
this.publishApply=function(_1ee,args){
var _1ee=this.getTopic(_1ee);
_1ee.sendMessage.apply(_1ee,args);
};
this.publish=function(_1f0,_1f1){
var _1f0=this.getTopic(_1f0);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_1f0.sendMessage.apply(_1f0,args);
};
};
dojo.event.topic.TopicImpl=function(_1f4){
this.topicName=_1f4;
this.subscribe=function(_1f5,_1f6){
var tf=_1f6||_1f5;
var to=(!_1f6)?dj_global:_1f5;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_1f9,_1fa){
var tf=(!_1fa)?_1f9:_1fa;
var to=(!_1fa)?null:_1f9;
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(_1fd){
this._getJoinPoint().squelch=_1fd;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_1fe,_1ff){
dojo.event.connect(_1fe,_1ff,this,"sendMessage");
};
this.sendMessage=function(_200){
};
};
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(_203){
var na;
var tna;
if(_203){
tna=_203.all||_203.getElementsByTagName("*");
na=[_203];
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 _207={};
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 _20b=0;
this.normalizedEventName=function(_20c){
switch(_20c){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _20c;
break;
default:
return _20c.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,_210){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_210.length;x++){
node.__clobberAttrs__.push(_210[x]);
}
};
this.removeListener=function(node,_213,fp,_215){
if(!_215){
var _215=false;
}
_213=dojo.event.browser.normalizedEventName(_213);
if((_213=="onkey")||(_213=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_215);
}
_213="onkeypress";
}
if(_213.substr(0,2)=="on"){
_213=_213.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_213,fp,_215);
}
};
this.addListener=function(node,_217,fp,_219,_21a){
if(!node){
return;
}
if(!_219){
var _219=false;
}
_217=dojo.event.browser.normalizedEventName(_217);
if((_217=="onkey")||(_217=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_219,_21a);
}
_217="onkeypress";
}
if(_217.substr(0,2)!="on"){
_217="on"+_217;
}
if(!_21a){
var _21b=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_219){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_21b=fp;
}
if(node.addEventListener){
node.addEventListener(_217.substr(2),_21b,_219);
return _21b;
}else{
if(typeof node[_217]=="function"){
var _21e=node[_217];
node[_217]=function(e){
_21e(e);
return _21b(e);
};
}else{
node[_217]=_21b;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_217]);
}
return _21b;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_221,_222){
if(typeof _221!="function"){
dojo.raise("listener not a function: "+_221);
}
dojo.event.browser.currentEvent.currentTarget=_222;
return _221.call(_222,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,_225){
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 _227=evt.keyCode;
if(_227>=65&&_227<=90&&evt.shiftKey==false){
_227+=32;
}
if(_227>=1&&_227<=26&&evt.ctrlKey){
_227+=96;
}
evt.key=String.fromCharCode(_227);
}
}
}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 _227=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_227+=32;
}
evt.key=String.fromCharCode(_227);
}
}
}
}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=(_225?_225: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 _229=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_229.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_229.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.returnValue=false;
evt.cancelBubble=true;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
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,_231,_232){
var out="";
for(var i=0;i<_231;i++){
out+=str;
if(_232&&i<_231-1){
out+=_232;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_241,_242,_243){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_241){
this.mimetype=_241;
}
if(_242){
this.transport=_242;
}
if(arguments.length>=4){
this.changeUrl=_243;
}
}
};
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,_246,_247){
},error:function(type,_249,_24a,_24b){
},timeout:function(type,_24d,_24e,_24f){
},handle:function(type,data,_252,_253){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_254){
if(_254["url"]){
_254.url=_254.url.toString();
}
if(_254["formNode"]){
_254.formNode=dojo.byId(_254.formNode);
}
if(!_254["method"]&&_254["formNode"]&&_254["formNode"].method){
_254.method=_254["formNode"].method;
}
if(!_254["handle"]&&_254["handler"]){
_254.handle=_254.handler;
}
if(!_254["load"]&&_254["loaded"]){
_254.load=_254.loaded;
}
if(!_254["changeUrl"]&&_254["changeURL"]){
_254.changeUrl=_254.changeURL;
}
_254.encoding=dojo.lang.firstValued(_254["encoding"],djConfig["bindEncoding"],"");
_254.sendTransport=dojo.lang.firstValued(_254["sendTransport"],djConfig["ioSendTransport"],false);
var _255=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_254[fn]&&_255(_254[fn])){
continue;
}
if(_254["handle"]&&_255(_254["handle"])){
_254[fn]=_254.handle;
}
}
dojo.lang.mixin(this,_254);
}});
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(_25c){
if(!(_25c instanceof dojo.io.Request)){
try{
_25c=new dojo.io.Request(_25c);
}
catch(e){
dojo.debug(e);
}
}
var _25d="";
if(_25c["transport"]){
_25d=_25c["transport"];
if(!this[_25d]){
dojo.io.sendBindError(_25c,"No dojo.io.bind() transport with name '"+_25c["transport"]+"'.");
return _25c;
}
if(!this[_25d].canHandle(_25c)){
dojo.io.sendBindError(_25c,"dojo.io.bind() transport with name '"+_25c["transport"]+"' cannot handle this type of request.");
return _25c;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_25c))){
_25d=tmp;
break;
}
}
if(_25d==""){
dojo.io.sendBindError(_25c,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _25c;
}
}
this[_25d].bind(_25c);
_25c.bindSuccess=true;
return _25c;
};
dojo.io.sendBindError=function(_260,_261){
if((typeof _260.error=="function"||typeof _260.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _262=new dojo.io.Error(_261);
setTimeout(function(){
_260[(typeof _260.error=="function")?"error":"handle"]("error",_262,null,_260);
},50);
}else{
dojo.raise(_261);
}
};
dojo.io.queueBind=function(_263){
if(!(_263 instanceof dojo.io.Request)){
try{
_263=new dojo.io.Request(_263);
}
catch(e){
dojo.debug(e);
}
}
var _264=_263.load;
_263.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_264.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _266=_263.error;
_263.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_266.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_263);
dojo.io._dispatchNextQueueBind();
return _263;
};
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,_269,last){
var enc=/utf/i.test(_269||"")?encodeURIComponent:dojo.string.encodeAscii;
var _26c=[];
var _26d=new Object();
for(var name in map){
var _26f=function(elt){
var val=enc(name)+"="+enc(elt);
_26c[(last==name)?"push":"unshift"](val);
};
if(!_26d[name]){
var _272=map[name];
if(dojo.lang.isArray(_272)){
dojo.lang.forEach(_272,_26f);
}else{
_26f(_272);
}
}
}
return _26c.join("&");
};
dojo.io.setIFrameSrc=function(_273,src,_275){
try{
var r=dojo.render.html;
if(!_275){
if(r.safari){
_273.location=src;
}else{
frames[_273.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_273.contentWindow.document;
}else{
if(r.safari){
idoc=_273.document;
}else{
idoc=_273.contentWindow;
}
}
if(!idoc){
_273.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_278,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _278.replace(/\%\{(\w+)\}/g,function(_27b,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 _27e=str.split(" ");
for(var i=0;i<_27e.length;i++){
_27e[i]=_27e[i].charAt(0).toUpperCase()+_27e[i].substring(1);
}
return _27e.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 _283=escape(str);
var _284,re=/%u([0-9A-F]{4})/i;
while((_284=_283.match(re))){
var num=Number("0x"+_284[1]);
var _287=escape("&#"+num+";");
ret+=_283.substring(0,_284.index)+_287;
_283=_283.substring(_284.index+_284[0].length);
}
ret+=_283.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,_28c){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_28c){
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,_295){
if(_295){
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,_299,_29a){
if(_29a){
str=str.toLowerCase();
_299=_299.toLowerCase();
}
return str.indexOf(_299)==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,_2a0){
if(_2a0=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_2a0=="\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,_2a2){
var _2a3=[];
for(var i=0,_2a5=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_2a2){
_2a3.push(str.substring(_2a5,i));
_2a5=i+1;
}
}
_2a3.push(str.substr(_2a5));
return _2a3;
};
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 _2a7=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_2a7.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_2a9,_2aa){
var node=_2a9.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_2aa&&node&&node.tagName&&node.tagName.toLowerCase()!=_2aa.toLowerCase()){
node=dojo.dom.nextElement(node,_2aa);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_2ac,_2ad){
var node=_2ac.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_2ad&&node&&node.tagName&&node.tagName.toLowerCase()!=_2ad.toLowerCase()){
node=dojo.dom.prevElement(node,_2ad);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_2b0){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2b0&&_2b0.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_2b0);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_2b2){
if(!node){
return null;
}
if(_2b2){
_2b2=_2b2.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_2b2&&_2b2.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_2b2);
}
return node;
};
dojo.dom.moveChildren=function(_2b3,_2b4,trim){
var _2b6=0;
if(trim){
while(_2b3.hasChildNodes()&&_2b3.firstChild.nodeType==dojo.dom.TEXT_NODE){
_2b3.removeChild(_2b3.firstChild);
}
while(_2b3.hasChildNodes()&&_2b3.lastChild.nodeType==dojo.dom.TEXT_NODE){
_2b3.removeChild(_2b3.lastChild);
}
}
while(_2b3.hasChildNodes()){
_2b4.appendChild(_2b3.firstChild);
_2b6++;
}
return _2b6;
};
dojo.dom.copyChildren=function(_2b7,_2b8,trim){
var _2ba=_2b7.cloneNode(true);
return this.moveChildren(_2ba,_2b8,trim);
};
dojo.dom.removeChildren=function(node){
var _2bc=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _2bc;
};
dojo.dom.replaceChildren=function(node,_2be){
dojo.dom.removeChildren(node);
node.appendChild(_2be);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_2c1,_2c2){
var _2c3=[];
var _2c4=(_2c1&&(_2c1 instanceof Function||typeof _2c1=="function"));
while(node){
if(!_2c4||_2c1(node)){
_2c3.push(node);
}
if(_2c2&&_2c3.length>0){
return _2c3[0];
}
node=node.parentNode;
}
if(_2c2){
return null;
}
return _2c3;
};
dojo.dom.getAncestorsByTag=function(node,tag,_2c7){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_2c7);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_2cc,_2cd){
if(_2cd&&node){
node=node.parentNode;
}
while(node){
if(node==_2cc){
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 _2d0=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _2d1=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_2d1.length;i++){
try{
doc=new ActiveXObject(_2d1[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_2d0.implementation)&&(_2d0.implementation.createDocument)){
doc=_2d0.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_2d4){
if(!_2d4){
_2d4="text/xml";
}
if(!dj_undef("DOMParser")){
var _2d5=new DOMParser();
return _2d5.parseFromString(str,_2d4);
}else{
if(!dj_undef("ActiveXObject")){
var _2d6=dojo.dom.createDocument();
if(_2d6){
_2d6.async=false;
_2d6.loadXML(str);
return _2d6;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _2d7=dojo.doc();
if(_2d7.createElement){
var tmp=_2d7.createElement("xml");
tmp.innerHTML=str;
if(_2d7.implementation&&_2d7.implementation.createDocument){
var _2d9=_2d7.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_2d9.importNode(tmp.childNodes.item(i),true);
}
return _2d9;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_2dc){
if(_2dc.firstChild){
_2dc.insertBefore(node,_2dc.firstChild);
}else{
_2dc.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_2df){
if(_2df!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _2e0=ref.parentNode;
_2e0.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_2e3){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_2e3!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_2e3);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_2e7){
if((!node)||(!ref)||(!_2e7)){
return false;
}
switch(_2e7.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,_2e9,_2ea){
var _2eb=_2e9.childNodes;
if(!_2eb.length){
_2e9.appendChild(node);
return true;
}
var _2ec=null;
for(var i=0;i<_2eb.length;i++){
var _2ee=_2eb.item(i)["getAttribute"]?parseInt(_2eb.item(i).getAttribute("dojoinsertionindex")):-1;
if(_2ee<_2ea){
_2ec=_2eb.item(i);
}
}
if(_2ec){
return dojo.dom.insertAfter(node,_2ec);
}else{
return dojo.dom.insertBefore(node,_2eb.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _2f1=dojo.doc();
dojo.dom.replaceChildren(node,_2f1.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _2f2="";
if(node==null){
return _2f2;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_2f2+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_2f2+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _2f2;
}
};
dojo.dom.hasParent=function(node){
return 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,_2f8,_2f9,_2fa){
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(_2f8,_2f9,_2fa);
}else{
var _2fb=elem.ownerDocument;
var _2fc=_2fb.createNode(2,_2f9,_2f8);
_2fc.nodeValue=_2fa;
elem.setAttributeNode(_2fc);
}
};
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:window.location.href,initialHash: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 _301=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_303){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_301.apply(this,[_303]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _304=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_306){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_304){
_304.apply(this,[_306]);
}
};
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,_309){
if(!dojo.render.html.opera){
var _30a=this._getUrlQuery(_309.href);
if(_30a==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_30a==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_30a==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _30b=this.historyStack.pop();
if(!_30b){
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(_30b);
},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 _312=url.split("?");
if(_312.length<2){
return null;
}else{
return _312[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");
dojo.io.checkChildrenForFile=function(node){
var _315=false;
var _316=node.getElementsByTagName("input");
dojo.lang.forEach(_316,function(_317){
if(_315){
return;
}
if(_317.getAttribute("type")=="file"){
_315=true;
}
});
return _315;
};
dojo.io.formHasFile=function(_318){
return dojo.io.checkChildrenForFile(_318);
};
dojo.io.updateNode=function(node,_31a){
node=dojo.byId(node);
var args=_31a;
if(dojo.lang.isString(_31a)){
args={url:_31a};
}
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(_321,_322,_323){
if((!_321)||(!_321.tagName)||(!_321.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_323){
_323=dojo.io.formFilter;
}
var enc=/utf/i.test(_322||"")?encodeURIComponent:dojo.string.encodeAscii;
var _325=[];
for(var i=0;i<_321.elements.length;i++){
var elm=_321.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_323(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){
_325.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_325.push(name+"="+enc(elm.value));
}
}else{
_325.push(name+"="+enc(elm.value));
}
}
}
var _32b=_321.getElementsByTagName("input");
for(var i=0;i<_32b.length;i++){
var _32c=_32b[i];
if(_32c.type.toLowerCase()=="image"&&_32c.form==_321&&_323(_32c)){
var name=enc(_32c.name);
_325.push(name+"="+enc(_32c.value));
_325.push(name+".x=0");
_325.push(name+".y=0");
}
}
return _325.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 _332=form.getElementsByTagName("input");
for(var i=0;i<_332.length;i++){
var _333=_332[i];
if(_333.type.toLowerCase()=="image"&&_333.form==form){
this.connect(_333,"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 _33a=false;
if(node.disabled||!node.name){
_33a=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_33a=node==this.clickedButton;
}else{
_33a=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _33a;
},connect:function(_33b,_33c,_33d){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_33b,_33c,this,_33d);
}else{
var fcn=dojo.lang.hitch(this,_33d);
_33b[_33c]=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 _340=this;
var _341={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_343,_344){
return url+"|"+_343+"|"+_344.toLowerCase();
}
function addToCache(url,_346,_347,http){
_341[getCacheKey(url,_346,_347)]=http;
}
function getFromCache(url,_34a,_34b){
return _341[getCacheKey(url,_34a,_34b)];
}
this.clearCache=function(){
_341={};
};
function doLoad(_34c,http,url,_34f,_350){
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(_34c.method.toLowerCase()=="head"){
var _352=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _352;
};
var _353=_352.split(/[\r\n]+/g);
for(var i=0;i<_353.length;i++){
var pair=_353[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_34c.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_34c.mimetype=="text/json"||_34c.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_34c.mimetype=="application/xml")||(_34c.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(_350){
addToCache(url,_34f,_34c.method,http);
}
_34c[(typeof _34c.load=="function")?"load":"handle"]("load",ret,http,_34c);
}else{
var _356=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_34c[(typeof _34c.error=="function")?"error":"handle"]("error",_356,http,_34c);
}
}
function setHeaders(http,_358){
if(_358["headers"]){
for(var _359 in _358["headers"]){
if(_359.toLowerCase()=="content-type"&&!_358["contentType"]){
_358["contentType"]=_358["headers"][_359];
}else{
http.setRequestHeader(_359,_358["headers"][_359]);
}
}
}
}
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&&!_340._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 _35d=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_35d,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 _35e=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_35f){
return _35e&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_35f["mimetype"].toLowerCase()||""))&&!(_35f["formNode"]&&dojo.io.formHasFile(_35f["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_360){
if(!_360["url"]){
if(!_360["formNode"]&&(_360["backButton"]||_360["back"]||_360["changeUrl"]||_360["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(_360);
return true;
}
}
var url=_360.url;
var _362="";
if(_360["formNode"]){
var ta=_360.formNode.getAttribute("action");
if((ta)&&(!_360["url"])){
url=ta;
}
var tp=_360.formNode.getAttribute("method");
if((tp)&&(!_360["method"])){
_360.method=tp;
}
_362+=dojo.io.encodeForm(_360.formNode,_360.encoding,_360["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_360["file"]){
_360.method="post";
}
if(!_360["method"]){
_360.method="get";
}
if(_360.method.toLowerCase()=="get"){
_360.multipart=false;
}else{
if(_360["file"]){
_360.multipart=true;
}else{
if(!_360["multipart"]){
_360.multipart=false;
}
}
}
if(_360["backButton"]||_360["back"]||_360["changeUrl"]){
dojo.undo.browser.addToHistory(_360);
}
var _365=_360["content"]||{};
if(_360.sendTransport){
_365["dojo.transport"]="xmlhttp";
}
do{
if(_360.postContent){
_362=_360.postContent;
break;
}
if(_365){
_362+=dojo.io.argsFromMap(_365,_360.encoding);
}
if(_360.method.toLowerCase()=="get"||!_360.multipart){
break;
}
var t=[];
if(_362.length){
var q=_362.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(_360.file){
if(dojo.lang.isArray(_360.file)){
for(var i=0;i<_360.file.length;++i){
var o=_360.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=_360.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+"--","");
_362=t.join("\r\n");
}
}while(false);
var _36b=_360["sync"]?false:true;
var _36c=_360["preventCache"]||(this.preventCache==true&&_360["preventCache"]!=false);
var _36d=_360["useCache"]==true||(this.useCache==true&&_360["useCache"]!=false);
if(!_36c&&_36d){
var _36e=getFromCache(url,_362,_360.method);
if(_36e){
doLoad(_360,_36e,url,_362,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_360);
var _370=false;
if(_36b){
var _371=this.inFlight.push({"req":_360,"http":http,"url":url,"query":_362,"useCache":_36d,"startTime":_360.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_340._blockAsync=true;
}
if(_360.method.toLowerCase()=="post"){
if(!_360.user){
http.open("POST",url,_36b);
}else{
http.open("POST",url,_36b,_360.user,_360.password);
}
setHeaders(http,_360);
http.setRequestHeader("Content-Type",_360.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_360.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_362);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_360,{status:404},url,_362,_36d);
}
}else{
var _372=url;
if(_362!=""){
_372+=(_372.indexOf("?")>-1?"&":"?")+_362;
}
if(_36c){
_372+=(dojo.string.endsWithAny(_372,"?","&")?"":(_372.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_360.user){
http.open(_360.method.toUpperCase(),_372,_36b);
}else{
http.open(_360.method.toUpperCase(),_372,_36b,_360.user,_360.password);
}
setHeaders(http,_360);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_360,{status:404},url,_362,_36d);
}
}
if(!_36b){
doLoad(_360,http,url,_362,_36d);
_340._blockAsync=false;
}
_360.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,_374,days,path,_377,_378){
var _379=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_379=d.toGMTString();
}
_374=escape(_374);
document.cookie=name+"="+_374+";"+(_379!=-1?" expires="+_379+";":"")+(path?"path="+path:"")+(_377?"; domain="+_377:"")+(_378?"; 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 _37d=document.cookie.substring(idx+name.length+1);
var end=_37d.indexOf(";");
if(end==-1){
end=_37d.length;
}
_37d=_37d.substring(0,end);
_37d=unescape(_37d);
return _37d;
};
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,_384,_385,_386){
if(arguments.length==5){
_386=_384;
_384=null;
_385=null;
}
var _387=[],_388,_389="";
if(!_386){
_388=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_388){
_388={};
}
for(var prop in obj){
if(prop==null){
delete _388[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
_388[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _388){
_387.push(escape(prop)+"="+escape(_388[prop]));
}
_389=_387.join("&");
}
dojo.io.cookie.setCookie(name,_389,days,path,_384,_385);
};
dojo.io.cookie.getObjectCookie=function(name){
var _38c=null,_38d=dojo.io.cookie.getCookie(name);
if(_38d){
_38c={};
var _38e=_38d.split("&");
for(var i=0;i<_38e.length;i++){
var pair=_38e[i].split("=");
var _391=pair[1];
if(isNaN(_391)){
_391=unescape(pair[1]);
}
_38c[unescape(pair[0])]=_391;
}
}
return _38c;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _392=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_392=="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.xml.Parse");
dojo.xml.Parse=function(){
function getTagName(node){
return ((node)&&(node.tagName)?node.tagName.toLowerCase():"");
}
function getDojoTagName(node){
var _395=getTagName(node);
if(!_395){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_395])){
return _395;
}
var p=_395.indexOf(":");
if(p>=0){
return _395;
}
if(_395.substr(0,5)=="dojo:"){
return _395;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_395;
}
if(_395.substr(0,4)=="dojo"){
return "dojo:"+_395.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 _398=node.className||node.getAttribute("class");
if((_398)&&(_398.indexOf)&&(_398.indexOf("dojo-")!=-1)){
var _399=_398.split(" ");
for(var x=0,c=_399.length;x<c;x++){
if(_399[x].slice(0,5)=="dojo-"){
return "dojo:"+_399[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_39d,_39e,_39f){
var _3a0={};
var _3a1=getTagName(node);
if((_3a1)&&(_3a1.indexOf("/")==0)){
return null;
}
var _3a2=true;
if(_39e){
var _3a3=getDojoTagName(node);
_3a1=_3a3||_3a1;
_3a2=Boolean(_3a3);
}
if(node&&node.getAttribute&&node.getAttribute("parseWidgets")&&node.getAttribute("parseWidgets")=="false"){
return {};
}
_3a0[_3a1]=[];
var pos=_3a1.indexOf(":");
if(pos>0){
var ns=_3a1.substring(0,pos);
_3a0["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_3a2=false;
}
}
if(_3a2){
var _3a6=this.parseAttributes(node);
for(var attr in _3a6){
if((!_3a0[_3a1][attr])||(typeof _3a0[_3a1][attr]!="array")){
_3a0[_3a1][attr]=[];
}
_3a0[_3a1][attr].push(_3a6[attr]);
}
_3a0[_3a1].nodeRef=node;
_3a0.tagName=_3a1;
_3a0.index=_39f||0;
}
var _3a8=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_3a8++;
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_3a0[ctn]){
_3a0[ctn]=[];
}
_3a0[ctn].push(this.parseElement(tcn,true,_39e,_3a8));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_3a0[ctn][_3a0[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_3a0[_3a1].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _3a0;
};
this.parseAttributes=function(node){
var _3ad={};
var atts=node.attributes;
var _3af,i=0;
while((_3af=atts[i++])){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_3af){
continue;
}
if((typeof _3af=="object")&&(typeof _3af.nodeValue=="undefined")||(_3af.nodeValue==null)||(_3af.nodeValue=="")){
continue;
}
}
var nn=_3af.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_3af.nodeName;
_3ad[nn]={value:_3af.nodeValue};
}
return _3ad;
};
};
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
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 _3b4=dojo.global();
var _3b5=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_3b5.documentElement.clientWidth;
h=_3b4.innerHeight;
}else{
if(!dojo.render.html.opera&&_3b4.innerWidth){
w=_3b4.innerWidth;
h=_3b4.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_3b5,"documentElement.clientWidth")){
var w2=_3b5.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_3b5.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 _3b9=dojo.global();
var _3ba=dojo.doc();
var top=_3b9.pageYOffset||_3ba.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_3b9.pageXOffset||_3ba.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _3bf=dojo.doc();
var _3c0=dojo.byId(node);
type=type.toLowerCase();
while((_3c0)&&(_3c0.nodeName.toLowerCase()!=type)){
if(_3c0==(_3bf["body"]||_3bf["documentElement"])){
return null;
}
_3c0=_3c0.parentNode;
}
return _3c0;
};
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 _3c8={x:0,y:0};
if(e.pageX||e.pageY){
_3c8.x=e.pageX;
_3c8.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_3c8.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_3c8.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _3c8;
};
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 _3cd=dojo.doc().createElement("script");
_3cd.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_3cd);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_3d0,_3d1,args,_3d3,_3d4){
dojo.deprecated("dojo.html."+_3d0,"replaced by dojo.html."+_3d1+"("+(_3d3?"node, {"+_3d3+": "+_3d3+"}":"")+")"+(_3d4?"."+_3d4:""),"0.5");
var _3d5=[];
if(_3d3){
var _3d6={};
_3d6[_3d3]=args[1];
_3d5.push(args[0]);
_3d5.push(_3d6);
}else{
_3d5=args;
}
var ret=dojo.html[_3d1].apply(dojo.html,args);
if(_3d4){
return ret[_3d4];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
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(_3d9,uri){
var loc=dojo.hostenv.getModulePrefix(_3d9);
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 _3de=new dojo.uri.Uri(arguments[i].toString());
var _3df=new dojo.uri.Uri(uri.toString());
if((_3de.path=="")&&(_3de.scheme==null)&&(_3de.authority==null)&&(_3de.query==null)){
if(_3de.fragment!=null){
_3df.fragment=_3de.fragment;
}
_3de=_3df;
}else{
if(_3de.scheme==null){
_3de.scheme=_3df.scheme;
if(_3de.authority==null){
_3de.authority=_3df.authority;
if(_3de.path.charAt(0)!="/"){
var path=_3df.path.substring(0,_3df.path.lastIndexOf("/")+1)+_3de.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;
}
}
}
}
_3de.path=segs.join("/");
}
}
}
}
uri="";
if(_3de.scheme!=null){
uri+=_3de.scheme+":";
}
if(_3de.authority!=null){
uri+="//"+_3de.authority;
}
uri+=_3de.path;
if(_3de.query!=null){
uri+="?"+_3de.query;
}
if(_3de.fragment!=null){
uri+="#"+_3de.fragment;
}
}
this.uri=uri.toString();
var _3e3="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_3e3));
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){
_3e3="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_3e3));
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,_3ea){
return (new RegExp("(^|\\s+)"+_3ea+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_3ec){
_3ec+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_3ec);
};
dojo.html.addClass=function(node,_3ee){
if(dojo.html.hasClass(node,_3ee)){
return false;
}
_3ee=(dojo.html.getClass(node)+" "+_3ee).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_3ee);
};
dojo.html.setClass=function(node,_3f0){
node=dojo.byId(node);
var cs=new String(_3f0);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_3f0);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3f3,_3f4){
try{
if(!_3f4){
var _3f5=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3f3+"(\\s+|$)"),"$1$2");
}else{
var _3f5=dojo.html.getClass(node).replace(_3f3,"");
}
dojo.html.setClass(node,_3f5);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3f7,_3f8){
dojo.html.removeClass(node,_3f8);
dojo.html.addClass(node,_3f7);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3f9,_3fa,_3fb,_3fc,_3fd){
_3fd=false;
var _3fe=dojo.doc();
_3fa=dojo.byId(_3fa)||_3fe;
var _3ff=_3f9.split(/\s+/g);
var _400=[];
if(_3fc!=1&&_3fc!=2){
_3fc=0;
}
var _401=new RegExp("(\\s|^)(("+_3ff.join(")|(")+"))(\\s|$)");
var _402=_3ff.join(" ").length;
var _403=[];
if(!_3fd&&_3fe.evaluate){
var _404=".//"+(_3fb||"*")+"[contains(";
if(_3fc!=dojo.html.classMatchType.ContainsAny){
_404+="concat(' ',@class,' '), ' "+_3ff.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3fc==2){
_404+=" and string-length(@class)="+_402+"]";
}else{
_404+="]";
}
}else{
_404+="concat(' ',@class,' '), ' "+_3ff.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _405=_3fe.evaluate(_404,_3fa,null,XPathResult.ANY_TYPE,null);
var _406=_405.iterateNext();
while(_406){
try{
_403.push(_406);
_406=_405.iterateNext();
}
catch(e){
break;
}
}
return _403;
}else{
if(!_3fb){
_3fb="*";
}
_403=_3fa.getElementsByTagName(_3fb);
var node,i=0;
outer:
while(node=_403[i++]){
var _409=dojo.html.getClasses(node);
if(_409.length==0){
continue outer;
}
var _40a=0;
for(var j=0;j<_409.length;j++){
if(_401.test(_409[j])){
if(_3fc==dojo.html.classMatchType.ContainsAny){
_400.push(node);
continue outer;
}else{
_40a++;
}
}else{
if(_3fc==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_40a==_3ff.length){
if((_3fc==dojo.html.classMatchType.IsOnly)&&(_40a==_409.length)){
_400.push(node);
}else{
if(_3fc==dojo.html.classMatchType.ContainsAll){
_400.push(node);
}
}
}
}
return _400;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_40c){
var arr=_40c.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(_410){
return _410.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_412,_413){
node=dojo.byId(node);
var _412=dojo.html.toSelectorCase(_412);
var _414=dojo.html.toCamelCase(_412);
if(!node||!node.style){
return _413;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_412);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_412);
}else{
return _413;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_414];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_412);
}else{
return _413;
}
};
dojo.html.getStyleProperty=function(node,_417){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_417)]:undefined);
};
dojo.html.getStyle=function(node,_419){
var _41a=dojo.html.getStyleProperty(node,_419);
return (_41a?_41a:dojo.html.getComputedStyle(node,_419));
};
dojo.html.setStyle=function(node,_41c,_41d){
node=dojo.byId(node);
if(node&&node.style){
var _41e=dojo.html.toCamelCase(_41c);
node.style[_41e]=_41d;
}
};
dojo.html.setStyleText=function(_41f,text){
try{
_41f.style.cssText=text;
}
catch(e){
_41f.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_421,_422){
if(!_422.style.cssText){
_421.setAttribute("style",_422.getAttribute("style"));
}else{
_421.style.cssText=_422.style.cssText;
}
dojo.html.addClass(_421,dojo.html.getClass(_422));
};
dojo.html.getUnitValue=function(node,_424,_425){
var s=dojo.html.getComputedStyle(node,_424);
if((!s)||((s=="auto")&&(_425))){
return {value:0,units:"px"};
}
var _427=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_427){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_427[1]),units:_427[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_429,_42a){
var _42b=dojo.html.getUnitValue(node,_429,_42a);
if(isNaN(_42b.value)){
return 0;
}
if((_42b.value)&&(_42b.units!="px")){
return NaN;
}
return _42b.value;
};
dojo.html.setPositivePixelValue=function(node,_42d,_42e){
if(isNaN(_42e)){
return false;
}
node.style[_42d]=Math.max(0,_42e)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_42f,_430,_431){
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){
_431=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_431=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_42f+" { "+_430+" }";
return dojo.html.styleSheet.insertRule(rule,_431);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_42f,_430,_431);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_433){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_433){
_433=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_433);
}
}else{
if(document.styleSheets[0]){
if(!_433){
_433=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_433);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_436,_437){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _438=dojo.hostenv.getText(URI,false,_437);
if(_438===null){
return;
}
_438=dojo.html.fixPathsInCssText(_438,URI);
if(_436){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_438)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _43d=doc.getElementsByTagName("style");
for(var i=0;i<_43d.length;i++){
if(_43d[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _43e=dojo.html.insertCssText(_438);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_438,"nodeRef":_43e});
if(_43e&&djConfig.isDebug){
_43e.setAttribute("dbgHref",URI);
}
return _43e;
};
dojo.html.insertCssText=function(_43f,doc,URI){
if(!_43f){
return;
}
if(!doc){
doc=document;
}
if(URI){
_43f=dojo.html.fixPathsInCssText(_43f,URI);
}
var _442=doc.createElement("style");
_442.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(_442);
}
if(_442.styleSheet){
_442.styleSheet.cssText=_43f;
}else{
var _444=doc.createTextNode(_43f);
_442.appendChild(_444);
}
return _442;
};
dojo.html.fixPathsInCssText=function(_445,URI){
function iefixPathsInCssText(){
var _447=/AlphaImageLoader\(src\=['"]([\t\s\w()\/.\\'"-:#=&?~]*)['"]/;
while(_448=_447.exec(_445)){
url=_448[1].replace(_44a,"$2");
if(!_44b.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_445.substring(0,_448.index)+"AlphaImageLoader(src='"+url+"'";
_445=_445.substr(_448.index+_448[0].length);
}
return str+_445;
}
if(!_445||!URI){
return;
}
var _448,str="",url="";
var _44d=/url\(\s*([\t\s\w()\/.\\'"-:#=&?]+)\s*\)/;
var _44b=/(file|https?|ftps?):\/\//;
var _44a=/^[\s]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s]*?$/;
if(dojo.render.html.ie55||dojo.render.html.ie60){
_445=iefixPathsInCssText();
}
while(_448=_44d.exec(_445)){
url=_448[1].replace(_44a,"$2");
if(!_44b.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_445.substring(0,_448.index)+"url("+url+")";
_445=_445.substr(_448.index+_448[0].length);
}
return str+_445;
};
dojo.html.setActiveStyleSheet=function(_44e){
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")==_44e){
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 _45a={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 _45a){
if(_45a[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.*");
dojo.provide("dojo.xml.*");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _45c={};
var _45d=[];
this.getUniqueId=function(_45e){
var _45f;
do{
_45f=_45e+"_"+(_45c[_45e]!=undefined?++_45c[_45e]:_45c[_45e]=0);
}while(this.getWidgetById(_45f));
return _45f;
};
this.add=function(_460){
this.widgets.push(_460);
if(!_460.extraArgs["id"]){
_460.extraArgs["id"]=_460.extraArgs["ID"];
}
if(_460.widgetId==""){
if(_460["id"]){
_460.widgetId=_460["id"];
}else{
if(_460.extraArgs["id"]){
_460.widgetId=_460.extraArgs["id"];
}else{
_460.widgetId=this.getUniqueId(_460.widgetType);
}
}
}
if(this.widgetIds[_460.widgetId]){
dojo.debug("widget ID collision on ID: "+_460.widgetId);
}
this.widgetIds[_460.widgetId]=_460;
};
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(_462){
if(dojo.lang.isNumber(_462)){
var tw=this.widgets[_462].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_462,1);
}else{
this.removeById(_462);
}
};
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 _469=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_469(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_46e,_46f){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_46e(x)){
ret.push(x);
if(_46f){
return false;
}
}
return true;
});
return (_46f?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 _475={};
var _476=["dojo.widget"];
for(var i=0;i<_476.length;i++){
_476[_476[i]]=true;
}
this.registerWidgetPackage=function(_478){
if(!_476[_478]){
_476[_478]=true;
_476.push(_478);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_476,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_47a,_47b,_47c,ns){
var impl=this.getImplementationName(_47a,ns);
if(impl){
var ret=_47b?new impl(_47b):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _480 in dojo.render){
if(dojo.render[_480]["capable"]===true){
var _481=dojo.render[_480].prefixes;
for(var i=0;i<_481.length;i++){
_45d.push(_481[i].toLowerCase());
}
}
}
}
var _483=function(_484,_485){
if(!_485){
return null;
}
for(var i=0,l=_45d.length,_488;i<=l;i++){
_488=(i<l?_485[_45d[i]]:_485);
if(!_488){
continue;
}
for(var name in _488){
if(name.toLowerCase()==_484){
return _488[name];
}
}
}
return null;
};
var _48a=function(_48b,_48c){
var _48d=dojo.evalObjPath(_48c,false);
return (_48d?_483(_48b,_48d):null);
};
this.getImplementationName=function(_48e,ns){
var _490=_48e.toLowerCase();
ns=ns||"dojo";
var imps=_475[ns]||(_475[ns]={});
var impl=imps[_490];
if(impl){
return impl;
}
if(!_45d.length){
buildPrefixCache();
}
var _493=dojo.ns.get(ns);
if(!_493){
dojo.ns.register(ns,ns+".widget");
_493=dojo.ns.get(ns);
}
if(_493){
_493.resolve(_48e);
}
impl=_48a(_490,_493.module);
if(impl){
return (imps[_490]=impl);
}
_493=dojo.ns.require(ns);
if((_493)&&(_493.resolver)){
_493.resolve(_48e);
impl=_48a(_490,_493.module);
if(impl){
return (imps[_490]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_48e+"\" in \""+_493.module+"\" registered to namespace \""+_493.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_476.length;i++){
impl=_48a(_490,_476[i]);
if(impl){
return (imps[_490]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_48e+"\" in \""+_493.module+"\" registered to namespace \""+_493.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _496=this.topWidgets[id];
if(_496.checkSize){
_496.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(_49b,_49c){
dw[(_49c||_49b)]=h(_49b);
};
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 _49e=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _49e[n];
}
return _49e;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_49f){
this.propertySetsList=[];
this.fragment=_49f;
this.createComponents=function(frag,_4a1){
var _4a2=[];
var _4a3=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _4a4=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;
if(_4a4[ltn]){
_4a3=true;
var ret=_4a4[ltn](frag,this,_4a1,frag["index"]);
_4a2.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
var ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_4a1,frag["index"]);
if(ret){
_4a3=true;
_4a2.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:"+e);
}
if(!_4a3){
_4a2=_4a2.concat(this.createSubComponents(frag,_4a1));
}
return _4a2;
};
this.createSubComponents=function(_4a9,_4aa){
var frag,_4ac=[];
for(var item in _4a9){
frag=_4a9[item];
if((frag)&&(typeof frag=="object")&&(frag!=_4a9.nodeRef)&&(frag!=_4a9["tagName"])){
_4ac=_4ac.concat(this.createComponents(frag,_4aa));
}
}
return _4ac;
};
this.parsePropertySets=function(_4ae){
return [];
};
this.parseProperties=function(_4af){
var _4b0={};
for(var item in _4af){
if((_4af[item]==_4af["tagName"])||(_4af[item]==_4af.nodeRef)){
}else{
if((_4af[item]["tagName"])&&(dojo.widget.tags[_4af[item].tagName.toLowerCase()])){
}else{
if((_4af[item][0])&&(_4af[item][0].value!="")&&(_4af[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _4b2=this;
this.getDataProvider(_4b2,_4af[item][0].value);
_4b0.dataProvider=this.dataProvider;
}
_4b0[item]=_4af[item][0].value;
var _4b3=this.parseProperties(_4af[item]);
for(var _4b4 in _4b3){
_4b0[_4b4]=_4b3[_4b4];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _4b0[item]!="boolean"){
_4b0[item]=true;
}
break;
}
}
}
return _4b0;
};
this.getDataProvider=function(_4b5,_4b6){
dojo.io.bind({url:_4b6,load:function(type,_4b8){
if(type=="load"){
_4b5.dataProvider=_4b8;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_4b9){
for(var x=0;x<this.propertySetsList.length;x++){
if(_4b9==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_4bb){
var _4bc=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
var _4c0=this.propertySetsList[x]["id"][0].value;
if((cpcc)&&(_4c0==cpcc[0].value)){
_4bc.push(cpl);
}
}
return _4bc;
};
this.getPropertySets=function(_4c1){
var ppl="dojo:propertyproviderlist";
var _4c3=[];
var _4c4=_4c1["tagName"];
if(_4c1[ppl]){
var _4c5=_4c1[ppl].value.split(" ");
for(var _4c6 in _4c5){
if((_4c6.indexOf("..")==-1)&&(_4c6.indexOf("://")==-1)){
var _4c7=this.getPropertySetById(_4c6);
if(_4c7!=""){
_4c3.push(_4c7);
}
}else{
}
}
}
return (this.getPropertySetsByType(_4c4)).concat(_4c3);
};
this.createComponentFromScript=function(_4c8,_4c9,_4ca,ns){
_4ca.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_4c9.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_4ca,this,null,null,_4ca)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_4ca,this,null,null,_4ca)];
};
};
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,_4cf,_4d0,_4d1){
var _4d2=false;
var _4d3=(typeof name=="string");
if(_4d3){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _4d6=name.toLowerCase();
var _4d7=ns+":"+_4d6;
_4d2=(dojo.byId(name)&&(!dojo.widget.tags[_4d7]));
}
if((arguments.length==1)&&((_4d2)||(!_4d3))){
var xp=new dojo.xml.Parse();
var tn=(_4d2)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_4da,name,_4dc,ns){
_4dc[_4d7]={dojotype:[{value:_4d6}],nodeRef:_4da,fastMixIn:true};
_4dc.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_4da,name,_4dc,ns);
}
_4cf=_4cf||{};
var _4de=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_4d0){
_4de=true;
_4d0=tn;
if(h){
dojo.body().appendChild(_4d0);
}
}else{
if(_4d1){
dojo.dom.insertAtPosition(tn,_4d0,_4d1);
}else{
tn=_4d0;
}
}
var _4e0=fromScript(tn,name.toLowerCase(),_4cf,ns);
if((!_4e0)||(!_4e0[0])||(typeof _4e0[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_4de){
if(_4e0[0].domNode.parentNode){
_4e0[0].domNode.parentNode.removeChild(_4e0[0].domNode);
}
}
}
catch(e){
dojo.debug(e);
}
return _4e0[0];
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _4e1=dojo.global();
var _4e2=dojo.doc();
try{
if(_4e1["getSelection"]){
if(dojo.render.html.safari){
_4e1.getSelection().collapse();
}else{
_4e1.getSelection().removeAllRanges();
}
}else{
if(_4e2.selection){
if(_4e2.selection.empty){
_4e2.selection.empty();
}else{
if(_4e2.selection.clear){
_4e2.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_4e3){
_4e3=dojo.byId(_4e3)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_4e3.style.MozUserSelect="none";
}else{
if(h.safari){
_4e3.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_4e3.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_4e5){
_4e5=dojo.byId(_4e5)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_4e5.style.MozUserSelect="";
}else{
if(h.safari){
_4e5.style.KhtmlUserSelect="";
}else{
if(h.ie){
_4e5.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_4e7){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_4e8){
var _4e9=dojo.global();
var _4ea=dojo.doc();
_4e8=dojo.byId(_4e8);
if(_4ea["selection"]&&dojo.body()["createTextRange"]){
var _4eb=_4e8.createTextRange();
_4eb.moveStart("character",0);
_4eb.moveEnd("character",_4e8.value.length);
_4eb.select();
}else{
if(_4e9["getSelection"]){
var _4ec=_4e9.getSelection();
_4e8.setSelectionRange(0,_4e8.value.length);
}
}
_4e8.focus();
};
dojo.html.isSelectionCollapsed=function(){
dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);
return dojo.html.selection.isCollapsed();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _4ed=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _4ef=oSel.getRangeAt(0);
if(_4ef.startContainer==_4ef.endContainer&&(_4ef.endOffset-_4ef.startOffset)==1&&_4ef.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_4ed=dojo.html.selectionType.CONTROL;
}
}
return _4ed;
}
},isCollapsed:function(){
var _4f0=dojo.global();
var _4f1=dojo.doc();
if(_4f1["selection"]){
return _4f1.selection.createRange().text=="";
}else{
if(_4f0["getSelection"]){
var _4f2=_4f0.getSelection();
if(dojo.lang.isString(_4f2)){
return _4f2=="";
}else{
return _4f2.isCollapsed||_4f2.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _4f3=dojo.doc().selection.createRange();
if(_4f3&&_4f3.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _4f4=dojo.global().getSelection();
return _4f4.anchorNode.childNodes[_4f4.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 _4f6=dojo.global().getSelection();
if(_4f6){
var node=_4f6.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 _4f8=dojo.global().getSelection();
if(_4f8){
return _4f8.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 _4f9=dojo.global().getSelection();
if(_4f9&&_4f9.rangeCount){
var frag=_4f9.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_4fc){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_4fd){
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(_502){
var _503=dojo.global();
var _504=dojo.doc();
_502=dojo.byId(_502);
if(_504.selection&&dojo.body().createTextRange){
try{
var _505=dojo.body().createControlRange();
_505.addElement(_502);
_505.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_502);
}
}else{
if(_503["getSelection"]){
var _506=_503.getSelection();
if(_506["removeAllRanges"]){
var _505=_504.createRange();
_505.selectNode(_502);
_506.removeAllRanges();
_506.addRange(_505);
}
}
}
},selectElementChildren:function(_507){
var _508=dojo.global();
var _509=dojo.doc();
_507=dojo.byId(_507);
if(_509.selection&&dojo.body().createTextRange){
var _50a=dojo.body().createTextRange();
_50a.moveToElementText(_507);
_50a.select();
}else{
if(_508["getSelection"]){
var _50b=_508.getSelection();
if(_50b["setBaseAndExtent"]){
_50b.setBaseAndExtent(_507,0,_507,_507.innerText.length-1);
}else{
if(_50b["selectAllChildren"]){
_50b.selectAllChildren(_507);
}
}
}
}
},getBookmark:function(){
var _50c;
var _50d=dojo.doc();
if(_50d["selection"]){
var _50e=_50d.selection.createRange();
_50c=_50e.getBookmark();
}else{
var _50f;
try{
_50f=dojo.global().getSelection();
}
catch(e){
}
if(_50f){
var _50e=_50f.getRangeAt(0);
_50c=_50e.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _50c;
},moveToBookmark:function(_510){
var _511=dojo.doc();
if(_511["selection"]){
var _512=_511.selection.createRange();
_512.moveToBookmark(_510);
_512.select();
}else{
var _513;
try{
_513=dojo.global().getSelection();
}
catch(e){
}
if(_513&&_513["removeAllRanges"]){
_513.removeAllRanges();
_513.addRange(_510);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_514){
if(dojo.global()["getSelection"]){
var _515=dojo.global().getSelection();
if(_515.removeAllRanges){
if(_514){
_515.collapseToStart();
}else{
_515.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_514);
}
}else{
if(dojo.doc().selection){
var _516=dojo.doc().selection.createRange();
_516.collapse(_514);
_516.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _517=dojo.doc().selection;
if(_517.type.toUpperCase()!="NONE"){
_517.clear();
}
return _517;
}else{
var _517=dojo.global().getSelection();
for(var i=0;i<_517.rangeCount;i++){
_517.getRangeAt(i).deleteContents();
}
return _517;
}
}});
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_519,_51a,init,_51c){
if((dojo.lang.isFunction(_51c))||((!_51c)&&(!dojo.lang.isFunction(init)))){
var temp=_51c;
_51c=init;
init=temp;
}
var _51e=[];
if(dojo.lang.isArray(_51a)){
_51e=_51a;
_51a=_51e.shift();
}
if(!init){
init=dojo.evalObjPath(_519,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_51a?_51a.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _51a();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_51e;
for(var i=0,l=_51e.length;i<l;i++){
dojo.lang.extend(ctor,_51e[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_519;
if(dojo.lang.isArray(_51c)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_51c));
}else{
dojo.lang.extend(ctor,(_51c)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_519,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(_528,_529,args){
var _52b,_52c=this.___proto;
this.___proto=_528;
try{
_52b=_528[_529].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_52c;
}
return _52b;
},_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]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_531,_532,_533){
if(!_533||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_531,_532);
}
},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,_53a,_53b){
this.name=name;
this.module=_53a;
this.resolver=_53b;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_53d,_53e){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _53f=this.resolver(name,_53d);
if((_53f)&&(!this._loaded[_53f])&&(!this._failed[_53f])){
var req=dojo.require;
req(_53f,false,true);
if(dojo.hostenv.findModule(_53f,false)){
this._loaded[_53f]=true;
}else{
if(!_53e){
dojo.raise("dojo.ns.Ns.resolve: module '"+_53f+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_53f]=true;
}
}
return Boolean(this._loaded[_53f]);
};
dojo.registerNamespace=function(name,_542,_543){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_545){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_545;
}
};
dojo.registerNamespaceManifest=function(_547,path,name,_54a,_54b){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_54a,_54b);
};
dojo.registerNamespace("dojo","dojo.widget");
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 _54d=null;
if(window.getComputedStyle){
var _54e=getComputedStyle(div,"");
_54d=_54e.getPropertyValue("background-image");
}else{
_54d=div.currentStyle.backgroundImage;
}
var _54f=false;
if(_54d!=null&&(_54d=="none"||_54d=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_550){
this.doAccessibleCheck=_550;
},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,children:[],extraArgs:{},isTopLevel:false,isModal:false,isEnabled:true,isHidden: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.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _552=this.children[i];
if(_552.onResized){
_552.onResized();
}
}
},create:function(args,_554,_555,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_554,_555);
this.mixInProperties(args,_554,_555);
this.postMixInProperties(args,_554,_555);
dojo.widget.manager.add(this);
this.buildRendering(args,_554,_555);
this.initialize(args,_554,_555);
this.postInitialize(args,_554,_555);
this.postCreate(args,_554,_555);
return this;
},destroy:function(_557){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_557);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _558;
var i=0;
while(this.children.length>i){
_558=this.children[i];
if(_558 instanceof dojo.widget.Widget){
this.removeChild(_558);
_558.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_55b){
var ret=[];
var _55d=dojo.lang.isFunction(type);
if(!_55d){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_55d){
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(_55b){
ret=ret.concat(this.children[x].getChildrenOfType(type,_55b));
}
}
return ret;
},getDescendants:function(){
var _55f=[];
var _560=[this];
var elem;
while((elem=_560.pop())){
_55f.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_560.push(elem);
});
}
}
return _55f;
},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 _567;
var _568=dojo.widget.lcArgsCache[this.widgetType];
if(_568==null){
_568={};
for(var y in this){
_568[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_568;
}
var _56a={};
for(var x in args){
if(!this[x]){
var y=_568[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_56a[x]){
continue;
}
_56a[x]=true;
if((typeof this[x])!=(typeof _567)){
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]=args[x];
}else{
var _56c=args[x].split(";");
for(var y=0;y<_56c.length;y++){
var si=_56c[y].indexOf(":");
if((si!=-1)&&(_56c[y].length>si)){
this[x][_56c[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_56c[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_570){
},initialize:function(args,frag,_573){
return false;
},postInitialize:function(args,frag,_576){
return false;
},postCreate:function(args,frag,_579){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_57c){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_57d){
},addChild:function(_57e){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_57f){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_57f){
this.children.splice(x,1);
break;
}
}
return _57f;
},resize:function(_581,_582){
this.setWidth(_581);
this.setHeight(_582);
},setWidth:function(_583){
if((typeof _583=="string")&&(_583.substr(-1)=="%")){
this.setPercentageWidth(_583);
}else{
this.setNativeWidth(_583);
}
},setHeight:function(_584){
if((typeof _584=="string")&&(_584.substr(-1)=="%")){
this.setPercentageHeight(_584);
}else{
this.setNativeHeight(_584);
}
},setPercentageHeight:function(_585){
return false;
},setNativeHeight:function(_586){
return false;
},setPercentageWidth:function(_587){
return false;
},setNativeWidth:function(_588){
return false;
},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(_58c,_58d,_58e){
var _58f=_58d.parseProperties(_58c["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_590,_591,_592){
var _593=_591.parseProperties(_590["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_596,_597,_598,_599){
dojo.a11y.setAccessibleMode();
var _59a=type.split(":");
_59a=(_59a.length==2)?_59a[1]:type;
var _59b=_599||_596.parseProperties(frag[frag["ns"]+":"+_59a]);
var _59c=dojo.widget.manager.getImplementation(_59a,null,null,frag["ns"]);
if(!_59c){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_59c.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_59b["dojoinsertionindex"]=_598;
var ret=_59c.create(_59b,frag,_597,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_59e,_59f,_5a0,init,_5a2){
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(_5a5,_5a6,_5a7,init,_5a9){
var _5aa=_5a5.split(".");
var type=_5aa.pop();
var regx="\\.("+(_5a6?_5a6+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_5a5.search(new RegExp(regx));
_5aa=(r<0?_5aa.join("."):_5a5.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_5aa);
var pos=_5aa.indexOf(".");
var _5af=(pos>-1)?_5aa.substring(0,pos):_5aa;
_5a9=(_5a9)||{};
_5a9.widgetType=type;
if((!init)&&(_5a9["classConstructor"])){
init=_5a9.classConstructor;
delete _5a9.classConstructor;
}
dojo.declare(_5a5,_5a7,init,_5a9);
};
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,_5b1,_5b2,_5b3){
var _5b4=_5b1||obj.templatePath;
var _5b5=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _5b6="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_5b5[_5b6]);
obj.widgetType=_5b6;
}
var wt=obj.widgetType;
var ts=_5b5[wt];
if(!ts){
_5b5[wt]={"string":null,"node":null};
if(_5b3){
ts={};
}else{
ts=_5b5[wt];
}
}
if((!obj.templateString)&&(!_5b3)){
obj.templateString=_5b2||ts["string"];
}
if((!obj.templateNode)&&(!_5b3)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_5b4)){
var _5b9=dojo.hostenv.getText(_5b4);
if(_5b9){
_5b9=_5b9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _5ba=_5b9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_5ba){
_5b9=_5ba[1];
}
}else{
_5b9="";
}
obj.templateString=_5b9;
if(!_5b3){
_5b5[wt]["string"]=_5b9;
}
}
if((!ts["string"])&&(!_5b3)){
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,_5be){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_5be);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_5be);
}
},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 _5c5=true;
if(dojo.render.html.ie){
_5c5=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _5c5;
}};
dojo.widget.attachTemplateNodes=function(_5c6,_5c7,_5c8){
var _5c9=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_5c6){
_5c6=_5c7.domNode;
}
if(_5c6.nodeType!=_5c9){
return;
}
var _5cb=_5c6.all||_5c6.getElementsByTagName("*");
var _5cc=_5c7;
for(var x=-1;x<_5cb.length;x++){
var _5ce=(x==-1)?_5c6:_5cb[x];
var _5cf=[];
if(!_5c7.widgetsInTemplate||!_5ce.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _5d1=_5ce.getAttribute(this.attachProperties[y]);
if(_5d1){
_5cf=_5d1.split(";");
for(var z=0;z<_5cf.length;z++){
if(dojo.lang.isArray(_5c7[_5cf[z]])){
_5c7[_5cf[z]].push(_5ce);
}else{
_5c7[_5cf[z]]=_5ce;
}
}
break;
}
}
var _5d3=_5ce.getAttribute(this.eventAttachProperty);
if(_5d3){
var evts=_5d3.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _5d5=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _5d7=tevt.split(":");
tevt=trim(_5d7[0]);
_5d5=trim(_5d7[1]);
}
if(!_5d5){
_5d5=tevt;
}
var tf=function(){
var ntf=new String(_5d5);
return function(evt){
if(_5cc[ntf]){
_5cc[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_5ce,tevt,tf,false,true);
}
}
for(var y=0;y<_5c8.length;y++){
var _5db=_5ce.getAttribute(_5c8[y]);
if((_5db)&&(_5db.length)){
var _5d5=null;
var _5dc=_5c8[y].substr(4);
_5d5=trim(_5db);
var _5dd=[_5d5];
if(_5d5.indexOf(";")>=0){
_5dd=dojo.lang.map(_5d5.split(";"),trim);
}
for(var z=0;z<_5dd.length;z++){
if(!_5dd[z].length){
continue;
}
var tf=function(){
var ntf=new String(_5dd[z]);
return function(evt){
if(_5cc[ntf]){
_5cc[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_5ce,_5dc,tf,false,true);
}
}
}
}
var _5e0=_5ce.getAttribute(this.templateProperty);
if(_5e0){
_5c7[_5e0]=_5ce;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_5ce.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_5ce,wai.name,"role",val);
}else{
var _5e4=val.split("-");
dojo.widget.wai.setAttr(_5ce,wai.name,_5e4[0],_5e4[1]);
}
}
},this);
var _5e5=_5ce.getAttribute(this.onBuildProperty);
if(_5e5){
eval("var node = baseNode; var widget = targetObj; "+_5e5);
}
}
};
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(_5ed,_5ee,pos,ref,_5f1){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_5f1==undefined){
_5f1=this.children.length;
}
this.addWidgetAsDirectChild(_5ed,_5ee,pos,ref,_5f1);
this.registerChild(_5ed,_5f1);
}
return _5ed;
},addWidgetAsDirectChild:function(_5f2,_5f3,pos,ref,_5f6){
if((!this.containerNode)&&(!_5f3)){
this.containerNode=this.domNode;
}
var cn=(_5f3)?_5f3:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_5f6){
_5f6=0;
}
_5f2.domNode.setAttribute("dojoinsertionindex",_5f6);
if(!ref){
cn.appendChild(_5f2.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_5f2.domNode,ref.parentNode,_5f6);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_5f2.domNode);
}else{
dojo.dom.insertAtPosition(_5f2.domNode,cn,pos);
}
}
}
},registerChild:function(_5f8,_5f9){
_5f8.dojoInsertionIndex=_5f9;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_5f9){
idx=i;
}
}
this.children.splice(idx+1,0,_5f8);
_5f8.parent=this;
_5f8.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_5f8.widgetId];
},removeChild:function(_5fc){
dojo.dom.removeNode(_5fc.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_5fc);
},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,_600){
var _601=this.getFragNodeRef(frag);
if(_600&&(_600.snarfChildDomOutput||!_601)){
_600.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_601);
}else{
if(_601){
if(this.domNode&&(this.domNode!==_601)){
var _602=_601.parentNode.replaceChild(this.domNode,_601);
}
}
}
if(_600){
_600.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _603=new dojo.xml.Parse();
var _604;
var _605=this.domNode.getElementsByTagName("*");
for(var i=0;i<_605.length;i++){
if(_605[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_604=_605[i];
}
if(_605[i].getAttribute("dojoType")){
_605[i].setAttribute("_isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_604){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_604);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _608=_603.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_608,this);
var _609=[];
var _60a=[this];
var w;
while((w=_60a.pop())){
for(var i=0;i<w.children.length;i++){
var _60c=w.children[i];
if(_60c._processedSubWidgets||!_60c.extraArgs["_issubwidget"]){
continue;
}
_609.push(_60c);
if(_60c.isContainer){
_60a.push(_60c);
}
}
}
for(var i=0;i<_609.length;i++){
var _60d=_609[i];
if(_60d._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_60d._processedSubWidgets=true;
if(_60d.extraArgs["dojoattachevent"]){
var evts=_60d.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _610=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _612=tevt.split(":");
tevt=dojo.string.trim(_612[0]);
_610=dojo.string.trim(_612[1]);
}
if(!_610){
_610=tevt;
}
if(dojo.lang.isFunction(_60d[tevt])){
dojo.event.kwConnect({srcObj:_60d,srcFunc:tevt,targetObj:this,targetFunc:_610});
}else{
alert(tevt+" is not a function in widget "+_60d);
}
}
}
if(_60d.extraArgs["dojoattachpoint"]){
this[_60d.extraArgs["dojoattachpoint"]]=_60d;
}
}
}
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 _616=args["templateCssPath"]||this.templateCssPath;
if(_616&&!dojo.widget._cssFiles[_616.toString()]){
if((!this.templateCssString)&&(_616)){
this.templateCssString=dojo.hostenv.getText(_616);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_616.toString()]=true;
}
if((this["templateCssString"])&&(!this.templateCssString["loaded"])){
dojo.html.insertCssText(this.templateCssString,null,_616);
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 _619=false;
if(args["templatepath"]){
_619=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_619);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_619)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _61b=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_61b=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_61b){
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<_61b.length;i++){
var key=_61b[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 _622;
if((kval)||(dojo.lang.isString(kval))){
_622=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_622.indexOf("\"")>-1){
_622=_622.replace("\"","&quot;");
}
tstr=tstr.replace(_61b[i],_622);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_619){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_61b)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_61b){
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(_624,_625){
if(!_624){
_624=this.domNode;
}
if(!_625){
_625=this;
}
return dojo.widget.attachTemplateNodes(_624,_625,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_627,_628){
node=dojo.byId(node);
_628(node,!_627(node));
return _627(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,_62d){
dojo.html[(_62d?"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,_633){
dojo.html.setStyle(node,"display",((_633 instanceof String||typeof _633=="string")?_633:(_633?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,_637){
dojo.html.setStyle(node,"visibility",((_637 instanceof String||typeof _637=="string")?_637:(_637?"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,_63b,_63c){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_63c){
if(_63b>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_63b=0.999999;
}
}else{
if(_63b<0){
_63b=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="+_63b*100+")";
}
}
node.style.filter="Alpha(Opacity="+_63b*100+")";
}else{
if(h.moz){
node.style.opacity=_63b;
node.style.MozOpacity=_63b;
}else{
if(h.safari){
node.style.opacity=_63b;
node.style.KhtmlOpacity=_63b;
}else{
node.style.opacity=_63b;
}
}
}
};
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.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _648=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_648+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _648;
};
dojo.html.setStyleAttributes=function(node,_64b){
node=dojo.byId(node);
var _64c=_64b.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_64c.length;i++){
var _64e=_64c[i].split(":");
var name=_64e[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _650=_64e[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_650);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_650});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_650});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_650});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_650});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_650;
}
}
};
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,_652,_653){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_653){
_653=bs.CONTENT_BOX;
}
var _656=2;
var _657;
switch(_653){
case bs.MARGIN_BOX:
_657=3;
break;
case bs.BORDER_BOX:
_657=2;
break;
case bs.PADDING_BOX:
default:
_657=1;
break;
case bs.CONTENT_BOX:
_657=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_656=1;
try{
var bo=document.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 _65b;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_65b=db;
}else{
_65b=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 _65d=node;
do{
var n=_65d["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_65d["offsetTop"];
ret.y+=isNaN(m)?0:m;
_65d=_65d.offsetParent;
}while((_65d!=_65b)&&(_65d!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_652){
var _660=dojo.html.getScroll();
ret.y+=_660.top;
ret.x+=_660.left;
}
var _661=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_656>_657){
for(var i=_657;i<_656;++i){
ret.y+=_661[i](node,"top");
ret.x+=_661[i](node,"left");
}
}else{
if(_656<_657){
for(var i=_657;i>_656;--i){
ret.y-=_661[i-1](node,"top");
ret.x-=_661[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,_665,_666){
var _667=0;
for(var x=0;x<_665.length;x++){
_667+=dojo.html.getPixelValue(node,_665[x],_666);
}
return _667;
};
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 _674=dojo.html.getBorder(node);
return {width:pad.width+_674.width,height:pad.height+_674.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 _679=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_679){
_679=dojo.html.getStyle(node,"box-sizing");
}
return (_679?_679: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 _67e=dojo.html.getBorder(node);
return {width:box.width-_67e.width,height:box.height-_67e.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _680=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_680.width,height:node.offsetHeight-_680.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _683=0;
var _684=0;
var isbb=dojo.html.isBorderBox(node);
var _686=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_683=args.width+_686.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_683);
}
if(typeof args.height!="undefined"){
_684=args.height+_686.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_684);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _689=dojo.html.getBorderBox(node);
var _68a=dojo.html.getMargin(node);
return {width:_689.width+_68a.width,height:_689.height+_68a.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _68d=0;
var _68e=0;
var isbb=dojo.html.isBorderBox(node);
var _690=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _691=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_68d=args.width-_690.width;
_68d-=_691.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_68d);
}
if(typeof args.height!="undefined"){
_68e=args.height-_690.height;
_68e-=_691.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_68e);
}
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(_696,_697,_698){
if(_696 instanceof Array||typeof _696=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_696.length<4){
_696.push(0);
}
while(_696.length>4){
_696.pop();
}
var ret={left:_696[0],top:_696[1],width:_696[2],height:_696[3]};
}else{
if(!_696.nodeType&&!(_696 instanceof String||typeof _696=="string")&&("width" in _696||"height" in _696||"left" in _696||"x" in _696||"top" in _696||"y" in _696)){
var ret={left:_696.left||_696.x||0,top:_696.top||_696.y||0,width:_696.width||0,height:_696.height||0};
}else{
var node=dojo.byId(_696);
var pos=dojo.html.abs(node,_697,_698);
var _69c=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_69c.width,height:_69c.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_69e){
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,_6a1){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_6a3){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_6a5){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_6a7){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_6a9){
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,_6b3){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_6b5){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_6b6){
return dojo.html.getDocumentWindow(_6b6.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.gravity=function(node,e){
node=dojo.byId(node);
var _6be=dojo.html.getCursorPosition(e);
with(dojo.html){
var _6bf=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _6c1=_6bf.x+(bb.width/2);
var _6c2=_6bf.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_6be.x<_6c1?WEST:EAST)|(_6be.y<_6c2?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(_6c3,e){
_6c3=dojo.byId(_6c3);
var _6c5=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_6c3);
var _6c7=dojo.html.getAbsolutePosition(_6c3,true,dojo.html.boxSizing.BORDER_BOX);
var top=_6c7.y;
var _6c9=top+bb.height;
var left=_6c7.x;
var _6cb=left+bb.width;
return (_6c5.x>=left&&_6c5.x<=_6cb&&_6c5.y>=top&&_6c5.y<=_6c9);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _6cd="";
if(node==null){
return _6cd;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _6cf="unknown";
try{
_6cf=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_6cf){
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":
_6cd+="\n";
_6cd+=dojo.html.renderedTextContent(node.childNodes[i]);
_6cd+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_6cd+="\n";
}else{
_6cd+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _6d1="unknown";
try{
_6d1=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_6d1){
case "capitalize":
var _6d2=text.split(" ");
for(var i=0;i<_6d2.length;i++){
_6d2[i]=_6d2[i].charAt(0).toUpperCase()+_6d2[i].substring(1);
}
text=_6d2.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_6d1){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_6cd)){
text.replace(/^\s/,"");
}
break;
}
_6cd+=text;
break;
default:
break;
}
}
return _6cd;
};
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 _6d6="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_6d6="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_6d6="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_6d6="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _6d7=null;
switch(_6d6){
case "cell":
_6d7=tn.getElementsByTagName("tr")[0];
break;
case "row":
_6d7=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_6d7=tn.getElementsByTagName("table")[0];
break;
default:
_6d7=tn;
break;
}
var _6d8=[];
for(var x=0;x<_6d7.childNodes.length;x++){
_6d8.push(_6d7.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.body().removeChild(tn);
return _6d8;
};
dojo.html.placeOnScreen=function(node,_6db,_6dc,_6dd,_6de,_6df,_6e0){
if(_6db instanceof Array||typeof _6db=="array"){
_6e0=_6df;
_6df=_6de;
_6de=_6dd;
_6dd=_6dc;
_6dc=_6db[1];
_6db=_6db[0];
}
if(_6df instanceof String||typeof _6df=="string"){
_6df=_6df.split(",");
}
if(!isNaN(_6dd)){
_6dd=[Number(_6dd),Number(_6dd)];
}else{
if(!(_6dd instanceof Array||typeof _6dd=="array")){
_6dd=[0,0];
}
}
var _6e1=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _6e3=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_6e3;
if(!(_6df instanceof Array||typeof _6df=="array")){
_6df=["TL"];
}
var _6e7,_6e8,_6e9=Infinity,_6ea;
for(var _6eb=0;_6eb<_6df.length;++_6eb){
var _6ec=_6df[_6eb];
var _6ed=true;
var tryX=_6db-(_6ec.charAt(1)=="L"?0:w)+_6dd[0]*(_6ec.charAt(1)=="L"?1:-1);
var tryY=_6dc-(_6ec.charAt(0)=="T"?0:h)+_6dd[1]*(_6ec.charAt(0)=="T"?1:-1);
if(_6de){
tryX-=_6e1.x;
tryY-=_6e1.y;
}
if(tryX<0){
tryX=0;
_6ed=false;
}
if(tryY<0){
tryY=0;
_6ed=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_6ed=false;
}else{
x=tryX;
}
x=Math.max(_6dd[0],x)+_6e1.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_6ed=false;
}else{
y=tryY;
}
y=Math.max(_6dd[1],y)+_6e1.y;
if(_6ed){
_6e7=x;
_6e8=y;
_6e9=0;
_6ea=_6ec;
break;
}else{
var dist=Math.pow(x-tryX-_6e1.x,2)+Math.pow(y-tryY-_6e1.y,2);
if(_6e9>dist){
_6e9=dist;
_6e7=x;
_6e8=y;
_6ea=_6ec;
}
}
}
if(!_6e0){
node.style.left=_6e7+"px";
node.style.top=_6e8+"px";
}
return {left:_6e7,top:_6e8,x:_6e7,y:_6e8,dist:_6e9,corner:_6ea};
};
dojo.html.placeOnScreenPoint=function(node,_6f4,_6f5,_6f6,_6f7){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_6f4,_6f5,_6f6,_6f7,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_6f9,_6fa,_6fb,_6fc,_6fd){
var best,_6ff=Infinity;
_6f9=dojo.byId(_6f9);
var _700=_6f9.style.display;
_6f9.style.display="";
var mb=dojo.html.getElementBox(_6f9,_6fb);
var _702=mb.width;
var _703=mb.height;
var _704=dojo.html.getAbsolutePosition(_6f9,true,_6fb);
_6f9.style.display=_700;
for(var _705 in _6fc){
var pos,_707,_708;
var _709=_6fc[_705];
_707=_704.x+(_705.charAt(1)=="L"?0:_702);
_708=_704.y+(_705.charAt(0)=="T"?0:_703);
pos=dojo.html.placeOnScreen(node,_707,_708,_6fa,true,_709,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_6ff>pos.dist){
_6ff=pos.dist;
best=pos;
}
}
}
if(!_6fd){
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 _70b=node.parentNode;
var _70c=_70b.scrollTop+dojo.html.getBorderBox(_70b).height;
var _70d=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_70c<_70d){
_70b.scrollTop+=(_70d-_70c);
}else{
if(_70b.scrollTop>node.offsetTop){
_70b.scrollTop-=(_70b.scrollTop-node.offsetTop);
}
}
}
}
};
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(_714){
if(_714){
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(_715,_716){
var rgb=null;
if(dojo.lang.isArray(_715)){
rgb=_715;
}else{
if(_715 instanceof dojo.gfx.color.Color){
rgb=_715.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_715).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_716);
}});
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,_71a){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_71a);
}
if(!_71a){
_71a=0;
}
_71a=Math.min(Math.max(-1,_71a),1);
_71a=((_71a+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_71a));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_71f){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_71f));
};
dojo.gfx.color.extractRGB=function(_720){
var hex="0123456789abcdef";
_720=_720.toLowerCase();
if(_720.indexOf("rgb")==0){
var _722=_720.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_722.splice(1,3);
return ret;
}else{
var _724=dojo.gfx.color.hex2rgb(_720);
if(_724){
return _724;
}else{
return dojo.gfx.color.named[_720]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _726="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_726+"]","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]=_726.indexOf(rgb[i].charAt(0))*16+_726.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(_72f,end){
this.start=_72f;
this.end=end;
if(dojo.lang.isArray(_72f)){
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-_72f;
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,_73e,_73f){
if(!_73f){
_73f=_73e;
_73e=this;
}
_73f=dojo.lang.hitch(_73e,_73f);
var _740=this[evt]||function(){
};
this[evt]=function(){
var ret=_740.apply(this,arguments);
_73f.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_744){
this.repeatCount=_744;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_745,_746,_747,_748,_749,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_745)||(!_745&&_746.getValue)){
rate=_749;
_749=_748;
_748=_747;
_747=_746;
_746=_745;
_745=null;
}else{
if(_745.getValue||dojo.lang.isArray(_745)){
rate=_748;
_749=_747;
_748=_746;
_747=_745;
_746=null;
_745=null;
}
}
if(dojo.lang.isArray(_747)){
this.curve=new dojo.lfx.Line(_747[0],_747[1]);
}else{
this.curve=_747;
}
if(_746!=null&&_746>0){
this.duration=_746;
}
if(_749){
this.repeatCount=_749;
}
if(rate){
this.rate=rate;
}
if(_745){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_745[item]){
this.connect(item,_745[item]);
}
},this);
}
if(_748&&dojo.lang.isFunction(_748)){
this.easing=_748;
}
};
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(_74c,_74d){
if(_74d){
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(_74c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_74d);
}),_74c);
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 _74f=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_74f]);
this.fire("onBegin",[_74f]);
}
this.fire("handler",["play",_74f]);
this.fire("onPlay",[_74f]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _750=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_750]);
this.fire("onPause",[_750]);
return this;
},gotoPercent:function(pct,_752){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_752){
this.play();
}
return this;
},stop:function(_753){
clearTimeout(this._timer);
var step=this._percent/100;
if(_753){
step=1;
}
var _755=this.curve.getValue(step);
this.fire("handler",["stop",_755]);
this.fire("onStop",[_755]);
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 _758=this.curve.getValue(step);
this.fire("handler",["animate",_758]);
this.fire("onAnimate",[_758]);
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(_759){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _75a=arguments;
if(_75a.length==1&&(dojo.lang.isArray(_75a[0])||dojo.lang.isArrayLike(_75a[0]))){
_75a=_75a[0];
}
dojo.lang.forEach(_75a,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(_75c,_75d){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_75c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_75d);
}),_75c);
return this;
}
if(_75d||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_75d);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_75e){
this.fire("onStop");
this._animsCall("stop",_75e);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_75f){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _762=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_75f](args);
},_762);
return this;
}});
dojo.lfx.Chain=function(_764){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _765=arguments;
if(_765.length==1&&(dojo.lang.isArray(_765[0])||dojo.lang.isArrayLike(_765[0]))){
_765=_765[0];
}
var _766=this;
dojo.lang.forEach(_765,function(anim,i,_769){
this._anims.push(anim);
if(i<_769.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(_76a,_76b){
if(!this._anims.length){
return this;
}
if(_76b||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _76c=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_76a>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_76b);
}),_76a);
return this;
}
if(_76c){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_76c.play(null,_76b);
}
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 _76d=this._anims[this._currAnim];
if(_76d){
if(!_76d._active||_76d._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _76e=this._anims[this._currAnim];
if(_76e){
_76e.stop();
this.fire("onStop",[this._currAnim]);
}
return _76e;
},_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(_76f){
var _770=arguments;
if(dojo.lang.isArray(arguments[0])){
_770=arguments[0];
}
if(_770.length==1){
return _770[0];
}
return new dojo.lfx.Combine(_770);
};
dojo.lfx.chain=function(_771){
var _772=arguments;
if(dojo.lang.isArray(arguments[0])){
_772=arguments[0];
}
if(_772.length==1){
return _772[0];
}
return new dojo.lfx.Chain(_772);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _774;
do{
_774=dojo.html.getStyle(node,"background-color");
if(_774.toLowerCase()=="rgba(0, 0, 0, 0)"){
_774="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_774));
if(_774=="transparent"){
_774=[255,255,255,0];
}else{
_774=dojo.gfx.color.extractRGB(_774);
}
return _774;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_775){
if(!_775){
return [];
}
if(dojo.lang.isArrayLike(_775)){
if(!_775.alreadyChecked){
var n=[];
dojo.lang.forEach(_775,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _775;
}
}else{
var n=[];
n.push(dojo.byId(_775));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_778,_779,_77a,_77b,_77c){
_778=dojo.lfx.html._byId(_778);
var _77d={"propertyMap":_779,"nodes":_778,"duration":_77a,"easing":_77b||dojo.lfx.easeDefault};
var _77e=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _782 in pm){
pm[_782].property=_782;
parr.push(pm[_782]);
}
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 _784=function(_785){
var _786=[];
dojo.lang.forEach(_785,function(c){
_786.push(Math.round(c));
});
return _786;
};
var _788=function(n,_78a){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _78a){
if(s=="opacity"){
dojo.html.setOpacity(n,_78a[s]);
}else{
n.style[s]=_78a[s];
}
}
};
var _78c=function(_78d){
this._properties=_78d;
this.diffs=new Array(_78d.length);
dojo.lang.forEach(_78d,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 _794=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_794=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_794+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_794+=")";
}else{
_794=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_794;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_77e(_77d);
anim.curve=new _78c(_77d.propertyMap);
},onAnimate:function(_797){
dojo.lang.forEach(_77d.nodes,function(node){
_788(node,_797);
});
}},_77d.duration,null,_77d.easing);
if(_77c){
for(var x in _77c){
if(dojo.lang.isFunction(_77c[x])){
anim.connect(x,anim,_77c[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_79a){
var _79b=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(_79a)){
dojo.lang.forEach(_79a,_79b);
}else{
_79b(_79a);
}
};
dojo.lfx.html.fade=function(_79d,_79e,_79f,_7a0,_7a1){
_79d=dojo.lfx.html._byId(_79d);
var _7a2={property:"opacity"};
if(!dj_undef("start",_79e)){
_7a2.start=_79e.start;
}else{
_7a2.start=function(){
return dojo.html.getOpacity(_79d[0]);
};
}
if(!dj_undef("end",_79e)){
_7a2.end=_79e.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_79d,[_7a2],_79f,_7a0);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_79d);
});
if(_7a1){
anim.connect("onEnd",function(){
_7a1(_79d,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_7a4,_7a5,_7a6,_7a7){
return dojo.lfx.html.fade(_7a4,{end:1},_7a5,_7a6,_7a7);
};
dojo.lfx.html.fadeOut=function(_7a8,_7a9,_7aa,_7ab){
return dojo.lfx.html.fade(_7a8,{end:0},_7a9,_7aa,_7ab);
};
dojo.lfx.html.fadeShow=function(_7ac,_7ad,_7ae,_7af){
_7ac=dojo.lfx.html._byId(_7ac);
dojo.lang.forEach(_7ac,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_7ac,_7ad,_7ae,_7af);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_7ac)){
dojo.lang.forEach(_7ac,dojo.html.show);
}else{
dojo.html.show(_7ac);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_7b2,_7b3,_7b4,_7b5){
var anim=dojo.lfx.html.fadeOut(_7b2,_7b3,_7b4,function(){
if(dojo.lang.isArrayLike(_7b2)){
dojo.lang.forEach(_7b2,dojo.html.hide);
}else{
dojo.html.hide(_7b2);
}
if(_7b5){
_7b5(_7b2,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_7b7,_7b8,_7b9,_7ba){
_7b7=dojo.lfx.html._byId(_7b7);
var _7bb=[];
dojo.lang.forEach(_7b7,function(node){
var _7bd={};
dojo.html.show(node);
var _7be=dojo.html.getBorderBox(node).height;
dojo.html.hide(node);
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _7be;
}}},_7b8,_7b9);
anim.connect("beforeBegin",function(){
_7bd.overflow=node.style.overflow;
_7bd.height=node.style.height;
with(node.style){
overflow="hidden";
_7be="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_7bd.overflow;
_7be=_7bd.height;
}
if(_7ba){
_7ba(node,anim);
}
});
_7bb.push(anim);
});
return dojo.lfx.combine(_7bb);
};
dojo.lfx.html.wipeOut=function(_7c0,_7c1,_7c2,_7c3){
_7c0=dojo.lfx.html._byId(_7c0);
var _7c4=[];
dojo.lang.forEach(_7c0,function(node){
var _7c6={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_7c1,_7c2,{"beforeBegin":function(){
_7c6.overflow=node.style.overflow;
_7c6.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_7c6.overflow;
height=_7c6.height;
}
if(_7c3){
_7c3(node,anim);
}
}});
_7c4.push(anim);
});
return dojo.lfx.combine(_7c4);
};
dojo.lfx.html.slideTo=function(_7c8,_7c9,_7ca,_7cb,_7cc){
_7c8=dojo.lfx.html._byId(_7c8);
var _7cd=[];
var _7ce=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_7c9)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_7c9={top:_7c9[0],left:_7c9[1]};
}
dojo.lang.forEach(_7c8,function(node){
var top=null;
var left=null;
var init=(function(){
var _7d3=node;
return function(){
var pos=_7ce(_7d3,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_7ce(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_7ce(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_7d3,true);
dojo.html.setStyleAttributes(_7d3,"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:(_7c9.top||0)},"left":{start:left,end:(_7c9.left||0)}},_7ca,_7cb,{"beforeBegin":init});
if(_7cc){
anim.connect("onEnd",function(){
_7cc(_7c8,anim);
});
}
_7cd.push(anim);
});
return dojo.lfx.combine(_7cd);
};
dojo.lfx.html.slideBy=function(_7d7,_7d8,_7d9,_7da,_7db){
_7d7=dojo.lfx.html._byId(_7d7);
var _7dc=[];
var _7dd=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_7d8)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_7d8={top:_7d8[0],left:_7d8[1]};
}
dojo.lang.forEach(_7d7,function(node){
var top=null;
var left=null;
var init=(function(){
var _7e2=node;
return function(){
var pos=_7dd(_7e2,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_7dd(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_7dd(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_7e2,true);
dojo.html.setStyleAttributes(_7e2,"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+(_7d8.top||0)},"left":{start:left,end:left+(_7d8.left||0)}},_7d9,_7da).connect("beforeBegin",init);
if(_7db){
anim.connect("onEnd",function(){
_7db(_7d7,anim);
});
}
_7dc.push(anim);
});
return dojo.lfx.combine(_7dc);
};
dojo.lfx.html.explode=function(_7e6,_7e7,_7e8,_7e9,_7ea){
var h=dojo.html;
_7e6=dojo.byId(_7e6);
_7e7=dojo.byId(_7e7);
var _7ec=h.toCoordinateObject(_7e6,true);
var _7ed=document.createElement("div");
h.copyStyle(_7ed,_7e7);
if(_7e7.explodeClassName){
_7ed.className=_7e7.explodeClassName;
}
with(_7ed.style){
position="absolute";
display="none";
}
dojo.body().appendChild(_7ed);
with(_7e7.style){
visibility="hidden";
display="block";
}
var _7ee=h.toCoordinateObject(_7e7,true);
with(_7e7.style){
display="none";
visibility="visible";
}
var _7ef={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_7ef[type]={start:_7ec[type],end:_7ee[type]};
});
var anim=new dojo.lfx.propertyAnimation(_7ed,_7ef,_7e8,_7e9,{"beforeBegin":function(){
h.setDisplay(_7ed,"block");
},"onEnd":function(){
h.setDisplay(_7e7,"block");
_7ed.parentNode.removeChild(_7ed);
}});
if(_7ea){
anim.connect("onEnd",function(){
_7ea(_7e7,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_7f2,end,_7f4,_7f5,_7f6){
var h=dojo.html;
_7f2=dojo.byId(_7f2);
end=dojo.byId(end);
var _7f8=dojo.html.toCoordinateObject(_7f2,true);
var _7f9=dojo.html.toCoordinateObject(end,true);
var _7fa=document.createElement("div");
dojo.html.copyStyle(_7fa,_7f2);
if(_7f2.explodeClassName){
_7fa.className=_7f2.explodeClassName;
}
dojo.html.setOpacity(_7fa,0.3);
with(_7fa.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_7f2,"background-color").toLowerCase();
}
dojo.body().appendChild(_7fa);
var _7fb={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_7fb[type]={start:_7f8[type],end:_7f9[type]};
});
var anim=new dojo.lfx.propertyAnimation(_7fa,_7fb,_7f4,_7f5,{"beforeBegin":function(){
dojo.html.hide(_7f2);
dojo.html.show(_7fa);
},"onEnd":function(){
_7fa.parentNode.removeChild(_7fa);
}});
if(_7f6){
anim.connect("onEnd",function(){
_7f6(_7f2,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_7fe,_7ff,_800,_801,_802){
_7fe=dojo.lfx.html._byId(_7fe);
var _803=[];
dojo.lang.forEach(_7fe,function(node){
var _805=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _807=dojo.html.getStyle(node,"background-image");
var _808=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_805.length>3){
_805.pop();
}
var rgb=new dojo.gfx.color.Color(_7ff);
var _80a=new dojo.gfx.color.Color(_805);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_80a}},_800,_801,{"beforeBegin":function(){
if(_807){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_807){
node.style.backgroundImage=_807;
}
if(_808){
node.style.backgroundColor="transparent";
}
if(_802){
_802(node,anim);
}
}});
_803.push(anim);
});
return dojo.lfx.combine(_803);
};
dojo.lfx.html.unhighlight=function(_80c,_80d,_80e,_80f,_810){
_80c=dojo.lfx.html._byId(_80c);
var _811=[];
dojo.lang.forEach(_80c,function(node){
var _813=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_80d);
var _815=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_813,end:rgb}},_80e,_80f,{"beforeBegin":function(){
if(_815){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_813.toRgb().join(",")+")";
},"onEnd":function(){
if(_810){
_810(node,anim);
}
}});
_811.push(anim);
});
return dojo.lfx.combine(_811);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_818,_819,_81a){
dojo.html.show(node);
if(dojo.lang.isFunction(_81a)){
_81a();
}
},hide:function(node,_81c,_81d,_81e){
dojo.html.hide(node);
if(dojo.lang.isFunction(_81e)){
_81e();
}
}};
dojo.lfx.toggle.fade={show:function(node,_820,_821,_822){
dojo.lfx.fadeShow(node,_820,_821,_822).play();
},hide:function(node,_824,_825,_826){
dojo.lfx.fadeHide(node,_824,_825,_826).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_828,_829,_82a){
dojo.lfx.wipeIn(node,_828,_829,_82a).play();
},hide:function(node,_82c,_82d,_82e){
dojo.lfx.wipeOut(node,_82c,_82d,_82e).play();
}};
dojo.lfx.toggle.explode={show:function(node,_830,_831,_832,_833){
dojo.lfx.explode(_833||{x:0,y:0,width:0,height:0},node,_830,_831,_832).play();
},hide:function(node,_835,_836,_837,_838){
dojo.lfx.implode(node,_838||{x:0,y:0,width:0,height:0},_835,_836,_837).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,animationInProgress:false,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;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_83d){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_841){
try{
if(!_841&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
this.animationInProgress=true;
this.isHidden=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _845=w||wh.width;
var _846=h||wh.height;
if(this.width==_845&&this.height==_846){
return false;
}
this.width=_845;
this.height=_846;
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(_849){
if(_849.checkSize){
_849.checkSize();
}
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.Button");
dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",disabled:false,templatePath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.css"),inactiveImg:"src/widget/templates/images/soriaButton-",activeImg:"src/widget/templates/images/soriaActive-",pressedImg:"src/widget/templates/images/soriaPressed-",disabledImg:"src/widget/templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){
if(this.caption){
this.containerNode.appendChild(document.createTextNode(this.caption));
}
dojo.html.disableSelection(this.containerNode);
},postCreate:function(){
this._sizeMyself();
},_sizeMyself:function(){
if(this.domNode.parentNode){
var _84a=document.createElement("span");
dojo.html.insertBefore(_84a,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_84a){
dojo.html.insertBefore(this.domNode,_84a);
dojo.html.removeNode(_84a);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _84c=this.height*this.width2height;
this.containerNode.style.left=_84c+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_84c+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_84c+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
if(this.disabled){
dojo.html.prependClass(this.domNode,"dojoButtonDisabled");
this.domNode.removeAttribute("tabIndex");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
}else{
dojo.html.removeClass(this.domNode,"dojoButtonDisabled");
this.domNode.setAttribute("tabIndex","0");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
}
this.domNode.style.height=this.height+"px";
this.domNode.style.width=(this.containerWidth+2*_84c)+"px";
},onMouseOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.activeImg);
},onMouseDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.pressedImg);
},onMouseUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.activeImg);
},onMouseOut:function(e){
if(this.disabled){
return;
}
if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){
return;
}
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.inactiveImg);
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
},onFocus:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(menu){
dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur");
}
},onBlur:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(!menu){
return;
}
if(menu.close&&menu.isShowingNow){
menu.close();
}
},buttonClick:function(e){
if(!this.disabled){
try{
this.domNode.focus();
}
catch(e2){
}
this.onClick(e);
}
},onClick:function(e){
},_setImage:function(_859){
this.leftImage.src=dojo.uri.dojoUri(_859+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_859+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_859+"r.gif");
},_toggleMenu:function(_85a){
var menu=dojo.widget.getWidgetById(_85a);
if(!menu){
return;
}
if(menu.open&&!menu.isShowingNow){
var pos=dojo.html.getAbsolutePosition(this.domNode,false);
menu.open(pos.x,pos.y+this.height,this);
}else{
if(menu.close&&menu.isShowingNow){
menu.close();
}else{
menu.toggle();
}
}
},setCaption:function(_85d){
this.caption=_85d;
this.containerNode.innerHTML=_85d;
this._sizeMyself();
},setDisabled:function(_85e){
this.disabled=_85e;
this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"src/widget/templates/images/whiteDownArrow.gif",disabledDownArrow:"src/widget/templates/images/whiteDownArrow.gif",fillInTemplate:function(){
dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);
this.arrow=document.createElement("img");
dojo.html.setClass(this.arrow,"downArrow");
dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId);
},_sizeMyselfHelper:function(){
this.arrow.src=dojo.uri.dojoUri(this.disabled?this.disabledDownArrow:this.downArrow);
this.containerNode.appendChild(this.arrow);
dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
},onClick:function(e){
this._toggleMenu(this.menuId);
}});
dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templatePath:dojo.uri.dojoUri("src/widget/templates/ComboButtonTemplate.html"),splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _862=this.height/3;
if(this.disabled){
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
this.domNode.removeAttribute("tabIndex");
}else{
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
this.domNode.setAttribute("tabIndex","0");
}
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;
this.leftImage.width=_862+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_862+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_862+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_862+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _863=this.containerWidth+this.splitWidth+this.arrowWidth+2*_862;
this.domNode.style.width=_863+"px";
},_setImage:function(_864){
this.leftImage.src=dojo.uri.dojoUri(_864+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_864+"c.gif");
},rightOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.activeImg);
},rightDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.pressedImg);
},rightUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.activeImg);
},rightOut:function(e){
if(this.disabled){
return;
}
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.inactiveImg);
},rightClick:function(e){
if(this.disabled){
return;
}
try{
this.domNode.focus();
}
catch(e2){
}
this._toggleMenu(this.menuId);
},_setImageR:function(_86a){
this.arrowBackgroundImage.src=dojo.uri.dojoUri(_86a+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_86a+"r.gif");
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(e.key==e.KEY_DOWN_ARROW&&e.altKey){
this.rightDown(e);
this.rightClick(e);
dojo.lang.setTimeout(this,"rightUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
}
}
}});

