org.apache.myfaces.custom.dojo.resource.dojo.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomahawk Show documentation
Show all versions of tomahawk Show documentation
JSF components and utilities that can be used with any JSF implementation.
This library is compatible with both JSF1.1 and JSF1.2; however for JSF1.2 users there
is an alternative build of Tomahawk available that takes advantage of JSF1.2 features to
offer some additional benefits.
/*
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:4,patch:1,flag:"",revision:Number("$Rev: 6824 $".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;i1){
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;i0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
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(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,true,function(loc){
for(var i=0;i_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _9f=document.location.toString();
var _a0=_9f.split("?",2);
if(_a0.length>1){
var _a1=_a0[1];
var _a2=_a1.split("&");
for(var x in _a2){
var sp=_a2[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 _a6=document.getElementsByTagName("script");
var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a6.length;i++){
var src=_a6[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a7);
if(m){
var _ab=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ab+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ab;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ab;
}
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 _b3=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b3+6,_b3+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 _b5=window["document"];
var tdi=_b5["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;
}
}else{
}
})();
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 _b9=null;
var _ba=null;
try{
_b9=new XMLHttpRequest();
}
catch(e){
}
if(!_b9){
for(var i=0;i<3;++i){
var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b9=new ActiveXObject(_bc);
}
catch(e){
_ba=e;
}
if(_b9){
dojo.hostenv._XMLHTTP_PROGIDS=[_bc];
break;
}
}
}
if(!_b9){
return dojo.raise("XMLHTTP not available",_ba);
}
return _b9;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_be,_bf){
if(!_be){
this._blockAsync=true;
}
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1){
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
}
if(_be){
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_c0.onreadystatechange=function(){
if(_c4){
gbl.clearTimeout(_c4);
_c4=null;
}
if(_c3._blockAsync||(xhr&&xhr._blockAsync)){
_c4=gbl.setTimeout(function(){
_c0.onreadystatechange.apply(this);
},10);
}else{
if(4==_c0.readyState){
if(isDocumentOk(_c0)){
_be(_c0.responseText);
}
}
}
};
}
_c0.open("GET",uri,_be?true:false);
try{
_c0.send(null);
if(_be){
return null;
}
if(!isDocumentOk(_c0)){
var err=Error("Unable to load "+uri+" status:"+_c0.status);
err.status=_c0.status;
err.responseText=_c0.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_bf)&&(!_be)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c0.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c8){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c8);
}else{
try{
var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c9){
_c9=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c8));
_c9.appendChild(div);
}
catch(e){
try{
document.write(""+_c8+"");
}
catch(e2){
window.status=_c8;
}
}
}
};
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(_cb,_cc,fp){
var _ce=_cb["on"+_cc]||function(){
};
_cb["on"+_cc]=function(){
fp.apply(_cb,arguments);
_ce.apply(_cb,arguments);
};
return true;
}
function dj_load_init(e){
var _d0=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d1=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d1();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d1);
}
}
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 _d3=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_d3=_d3.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_d3=_d3.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_d3.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _d4=new dojo.xml.Parse();
if(_d3.length>0){
for(var x=0;x<_d3.length;x++){
var _d6=document.getElementById(_d3[x]);
if(!_d6){
continue;
}
var _d7=_d4.parseElement(_d6,null,true);
dojo.widget.getParser().createComponents(_d7);
}
}else{
if(djConfig.parseWidgets){
var _d7=_d4.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_d7);
}
}
}
}
};
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");
}
catch(e){
var _f5=document.createElement("script");
_f5.src=_f4;
document.getElementsByTagName("head")[0].appendChild(_f5);
}
}
}
})();
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_f6,_f7){
if(!dojo.lang.isFunction(_f7)){
dojo.raise("dojo.inherits: superclass argument ["+_f7+"] must be a function (subclass: ["+_f6+"']");
}
_f6.prototype=new _f7();
_f6.prototype.constructor=_f6;
_f6.superclass=_f7.prototype;
_f6["super"]=_f7.prototype;
};
dojo.lang._mixin=function(obj,_f9){
var _fa={};
for(var x in _f9){
if((typeof _fa[x]=="undefined")||(_fa[x]!=_f9[x])){
obj[x]=_f9[x];
}
}
if(dojo.render.html.ie&&(typeof (_f9["toString"])=="function")&&(_f9["toString"]!=obj["toString"])&&(_f9["toString"]!=_fa["toString"])){
obj.toString=_f9.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_fd){
for(var i=1,l=arguments.length;i-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){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
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(it)&&/\{\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");
dojo.deprecated("dojo.lang","replaced by dojo.lang.common","0.5");
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 _11d=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_11d.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_11f,_120){
var node=_11f.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_120&&node&&node.tagName&&node.tagName.toLowerCase()!=_120.toLowerCase()){
node=dojo.dom.nextElement(node,_120);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_122,_123){
var node=_122.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_123&&node&&node.tagName&&node.tagName.toLowerCase()!=_123.toLowerCase()){
node=dojo.dom.prevElement(node,_123);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_126){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_126&&_126.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_126);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_128){
if(!node){
return null;
}
if(_128){
_128=_128.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_128&&_128.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_128);
}
return node;
};
dojo.dom.moveChildren=function(_129,_12a,trim){
var _12c=0;
if(trim){
while(_129.hasChildNodes()&&_129.firstChild.nodeType==dojo.dom.TEXT_NODE){
_129.removeChild(_129.firstChild);
}
while(_129.hasChildNodes()&&_129.lastChild.nodeType==dojo.dom.TEXT_NODE){
_129.removeChild(_129.lastChild);
}
}
while(_129.hasChildNodes()){
_12a.appendChild(_129.firstChild);
_12c++;
}
return _12c;
};
dojo.dom.copyChildren=function(_12d,_12e,trim){
var _130=_12d.cloneNode(true);
return this.moveChildren(_130,_12e,trim);
};
dojo.dom.replaceChildren=function(node,_132){
var _133=[];
if(dojo.render.html.ie){
for(var i=0;i0){
return _13e[0];
}
node=node.parentNode;
}
if(_13d){
return null;
}
return _13e;
};
dojo.dom.getAncestorsByTag=function(node,tag,_142){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_142);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_147,_148){
if(_148&&node){
node=node.parentNode;
}
while(node){
if(node==_147){
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 _14b=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _14c=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_14c.length;i++){
try{
doc=new ActiveXObject(_14c[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_14b.implementation)&&(_14b.implementation.createDocument)){
doc=_14b.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_14f){
if(!_14f){
_14f="text/xml";
}
if(!dj_undef("DOMParser")){
var _150=new DOMParser();
return _150.parseFromString(str,_14f);
}else{
if(!dj_undef("ActiveXObject")){
var _151=dojo.dom.createDocument();
if(_151){
_151.async=false;
_151.loadXML(str);
return _151;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _152=dojo.doc();
if(_152.createElement){
var tmp=_152.createElement("xml");
tmp.innerHTML=str;
if(_152.implementation&&_152.implementation.createDocument){
var _154=_152.implementation.createDocument("foo","",null);
for(var i=0;i1){
var _169=dojo.doc();
dojo.dom.replaceChildren(node,_169.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _16a="";
if(node==null){
return _16a;
}
for(var i=0;i0&&!(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;
}
}
}
}
_1a1.path=segs.join("/");
}
}
}
}
uri="";
if(_1a1.scheme!=null){
uri+=_1a1.scheme+":";
}
if(_1a1.authority!=null){
uri+="//"+_1a1.authority;
}
uri+=_1a1.path;
if(_1a1.query!=null){
uri+="?"+_1a1.query;
}
if(_1a1.fragment!=null){
uri+="#"+_1a1.fragment;
}
}
this.uri=uri.toString();
var _1a6="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_1a6));
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){
_1a6="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_1a6));
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,_1ad){
return (new RegExp("(^|\\s+)"+_1ad+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_1af){
_1af+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_1af);
};
dojo.html.addClass=function(node,_1b1){
if(dojo.html.hasClass(node,_1b1)){
return false;
}
_1b1=(dojo.html.getClass(node)+" "+_1b1).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_1b1);
};
dojo.html.setClass=function(node,_1b3){
node=dojo.byId(node);
var cs=new String(_1b3);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_1b3);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_1b6,_1b7){
try{
if(!_1b7){
var _1b8=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_1b6+"(\\s+|$)"),"$1$2");
}else{
var _1b8=dojo.html.getClass(node).replace(_1b6,"");
}
dojo.html.setClass(node,_1b8);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_1ba,_1bb){
dojo.html.removeClass(node,_1bb);
dojo.html.addClass(node,_1ba);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_1bc,_1bd,_1be,_1bf,_1c0){
_1c0=false;
var _1c1=dojo.doc();
_1bd=dojo.byId(_1bd)||_1c1;
var _1c2=_1bc.split(/\s+/g);
var _1c3=[];
if(_1bf!=1&&_1bf!=2){
_1bf=0;
}
var _1c4=new RegExp("(\\s|^)(("+_1c2.join(")|(")+"))(\\s|$)");
var _1c5=_1c2.join(" ").length;
var _1c6=[];
if(!_1c0&&_1c1.evaluate){
var _1c7=".//"+(_1be||"*")+"[contains(";
if(_1bf!=dojo.html.classMatchType.ContainsAny){
_1c7+="concat(' ',@class,' '), ' "+_1c2.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_1bf==2){
_1c7+=" and string-length(@class)="+_1c5+"]";
}else{
_1c7+="]";
}
}else{
_1c7+="concat(' ',@class,' '), ' "+_1c2.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _1c8=_1c1.evaluate(_1c7,_1bd,null,XPathResult.ANY_TYPE,null);
var _1c9=_1c8.iterateNext();
while(_1c9){
try{
_1c6.push(_1c9);
_1c9=_1c8.iterateNext();
}
catch(e){
break;
}
}
return _1c6;
}else{
if(!_1be){
_1be="*";
}
_1c6=_1bd.getElementsByTagName(_1be);
var node,i=0;
outer:
while(node=_1c6[i++]){
var _1cc=dojo.html.getClasses(node);
if(_1cc.length==0){
continue outer;
}
var _1cd=0;
for(var j=0;j<_1cc.length;j++){
if(_1c4.test(_1cc[j])){
if(_1bf==dojo.html.classMatchType.ContainsAny){
_1c3.push(node);
continue outer;
}else{
_1cd++;
}
}else{
if(_1bf==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_1cd==_1c2.length){
if((_1bf==dojo.html.classMatchType.IsOnly)&&(_1cd==_1cc.length)){
_1c3.push(node);
}else{
if(_1bf==dojo.html.classMatchType.ContainsAll){
_1c3.push(node);
}
}
}
}
return _1c3;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_1cf){
var arr=_1cf.split("-"),cc=arr[0];
for(var i=1;i=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_235=0.999999;
}
}else{
if(_235<0){
_235=0;
}
}
}
if(h.ie){
if(node.nodeName.toLowerCase()=="tr"){
var tds=node.getElementsByTagName("td");
for(var x=0;x=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 _242=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_242+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _242;
};
dojo.html.setStyleAttributes=function(node,_245){
node=dojo.byId(node);
var _246=_245.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_246.length;i++){
var _248=_246[i].split(":");
var name=_248[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _24a=_248[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_24a);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_24a});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_24a});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_24a});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_24a});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_24a;
}
}
};
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,_24c,_24d){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_24d){
_24d=bs.CONTENT_BOX;
}
var _250=2;
var _251;
switch(_24d){
case bs.MARGIN_BOX:
_251=3;
break;
case bs.BORDER_BOX:
_251=2;
break;
case bs.PADDING_BOX:
default:
_251=1;
break;
case bs.CONTENT_BOX:
_251=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){
_250=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 _255;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_255=db;
}else{
_255=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 _257=node;
do{
var n=_257["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_257["offsetTop"];
ret.y+=isNaN(m)?0:m;
_257=_257.offsetParent;
}while((_257!=_255)&&(_257!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_24c){
var _25a=dojo.html.getScroll();
ret.y+=_25a.top;
ret.x+=_25a.left;
}
var _25b=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_250>_251){
for(var i=_251;i<_250;++i){
ret.y+=_25b[i](node,"top");
ret.x+=_25b[i](node,"left");
}
}else{
if(_250<_251){
for(var i=_251;i>_250;--i){
ret.y-=_25b[i-1](node,"top");
ret.x-=_25b[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,_25f,_260){
var _261=0;
for(var x=0;x<_25f.length;x++){
_261+=dojo.html.getPixelValue(node,_25f[x],_260);
}
return _261;
};
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 _26e=dojo.html.getBorder(node);
return {width:pad.width+_26e.width,height:pad.height+_26e.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName!="IMG"){
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 _273=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_273){
_273=dojo.html.getStyle(node,"box-sizing");
}
return (_273?_273: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 _278=dojo.html.getBorder(node);
return {width:box.width-_278.width,height:box.height-_278.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _27a=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_27a.width,height:node.offsetHeight-_27a.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _27d=0;
var _27e=0;
var isbb=dojo.html.isBorderBox(node);
var _280=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_27d=args.width+_280.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_27d);
}
if(typeof args.height!="undefined"){
_27e=args.height+_280.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_27e);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _283=dojo.html.getBorderBox(node);
var _284=dojo.html.getMargin(node);
return {width:_283.width+_284.width,height:_283.height+_284.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _287=0;
var _288=0;
var isbb=dojo.html.isBorderBox(node);
var _28a=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _28b=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_287=args.width-_28a.width;
_287-=_28b.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_287);
}
if(typeof args.height!="undefined"){
_288=args.height-_28a.height;
_288-=_28b.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_288);
}
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(_290,_291,_292){
if(_290 instanceof Array||typeof _290=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_290.length<4){
_290.push(0);
}
while(_290.length>4){
_290.pop();
}
var ret={left:_290[0],top:_290[1],width:_290[2],height:_290[3]};
}else{
if(!_290.nodeType&&!(_290 instanceof String||typeof _290=="string")&&("width" in _290||"height" in _290||"left" in _290||"x" in _290||"top" in _290||"y" in _290)){
var ret={left:_290.left||_290.x||0,top:_290.top||_290.y||0,width:_290.width||0,height:_290.height||0};
}else{
var node=dojo.byId(_290);
var pos=dojo.html.abs(node,_291,_292);
var _296=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_296.width,height:_296.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_298){
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,_29b){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_29d){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_29f){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_2a1){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_2a3){
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,_2ad){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_2af){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_2b0){
return dojo.html.getDocumentWindow(_2b0.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=left&&_2bf.x<=_2c5&&_2bf.y>=top&&_2bf.y<=_2c3);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _2c7="";
if(node==null){
return _2c7;
}
for(var i=0;i]/i).test(txt.replace(/^\s+/))){
txt=""+txt+"
";
_2d0="cell";
}else{
if((/^]/i).test(txt.replace(/^\s+/))){
txt=""+txt+"
";
_2d0="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt=""+txt+"
";
_2d0="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _2d1=null;
switch(_2d0){
case "cell":
_2d1=tn.getElementsByTagName("tr")[0];
break;
case "row":
_2d1=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_2d1=tn.getElementsByTagName("table")[0];
break;
default:
_2d1=tn;
break;
}
var _2d2=[];
for(var x=0;x<_2d1.childNodes.length;x++){
_2d2.push(_2d1.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _2d2;
};
dojo.html.placeOnScreen=function(node,_2d5,_2d6,_2d7,_2d8,_2d9,_2da){
if(_2d5 instanceof Array||typeof _2d5=="array"){
_2da=_2d9;
_2d9=_2d8;
_2d8=_2d7;
_2d7=_2d6;
_2d6=_2d5[1];
_2d5=_2d5[0];
}
if(_2d9 instanceof String||typeof _2d9=="string"){
_2d9=_2d9.split(",");
}
if(!isNaN(_2d7)){
_2d7=[Number(_2d7),Number(_2d7)];
}else{
if(!(_2d7 instanceof Array||typeof _2d7=="array")){
_2d7=[0,0];
}
}
var _2db=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _2dd=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_2dd;
if(!(_2d9 instanceof Array||typeof _2d9=="array")){
_2d9=["TL"];
}
var _2e1,_2e2,_2e3=Infinity,_2e4;
for(var _2e5=0;_2e5<_2d9.length;++_2e5){
var _2e6=_2d9[_2e5];
var _2e7=true;
var tryX=_2d5-(_2e6.charAt(1)=="L"?0:w)+_2d7[0]*(_2e6.charAt(1)=="L"?1:-1);
var tryY=_2d6-(_2e6.charAt(0)=="T"?0:h)+_2d7[1]*(_2e6.charAt(0)=="T"?1:-1);
if(_2d8){
tryX-=_2db.x;
tryY-=_2db.y;
}
if(tryX<0){
tryX=0;
_2e7=false;
}
if(tryY<0){
tryY=0;
_2e7=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_2e7=false;
}else{
x=tryX;
}
x=Math.max(_2d7[0],x)+_2db.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_2e7=false;
}else{
y=tryY;
}
y=Math.max(_2d7[1],y)+_2db.y;
if(_2e7){
_2e1=x;
_2e2=y;
_2e3=0;
_2e4=_2e6;
break;
}else{
var dist=Math.pow(x-tryX-_2db.x,2)+Math.pow(y-tryY-_2db.y,2);
if(_2e3>dist){
_2e3=dist;
_2e1=x;
_2e2=y;
_2e4=_2e6;
}
}
}
if(!_2da){
node.style.left=_2e1+"px";
node.style.top=_2e2+"px";
}
return {left:_2e1,top:_2e2,x:_2e1,y:_2e2,dist:_2e3,corner:_2e4};
};
dojo.html.placeOnScreenPoint=function(node,_2ee,_2ef,_2f0,_2f1){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_2ee,_2ef,_2f0,_2f1,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_2f3,_2f4,_2f5,_2f6,_2f7){
var best,_2f9=Infinity;
_2f3=dojo.byId(_2f3);
var _2fa=_2f3.style.display;
_2f3.style.display="";
var mb=dojo.html.getElementBox(_2f3,_2f5);
var _2fc=mb.width;
var _2fd=mb.height;
var _2fe=dojo.html.getAbsolutePosition(_2f3,true,_2f5);
_2f3.style.display=_2fa;
for(var _2ff in _2f6){
var pos,_301,_302;
var _303=_2f6[_2ff];
_301=_2fe.x+(_2ff.charAt(1)=="L"?0:_2fc);
_302=_2fe.y+(_2ff.charAt(0)=="T"?0:_2fd);
pos=dojo.html.placeOnScreen(node,_301,_302,_2f4,true,_303,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_2f9>pos.dist){
_2f9=pos.dist;
best=pos;
}
}
}
if(!_2f7){
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 _305=node.parentNode;
var _306=_305.scrollTop+dojo.html.getBorderBox(_305).height;
var _307=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_306<_307){
_305.scrollTop+=(_307-_306);
}else{
if(_305.scrollTop>node.offsetTop){
_305.scrollTop-=(_305.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.lang.array");
dojo.lang.mixin(dojo.lang,{has:function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
},isEmpty:function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _30c=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_30c++;
break;
}
}
return _30c==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_310){
var _311=dojo.lang.isString(arr);
if(_311){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_310)){
_310=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_310){
var _312=obj;
obj=_310;
_310=_312;
}
}
if(Array.map){
var _313=Array.map(arr,_310,obj);
}else{
var _313=[];
for(var i=0;i=3){
dojo.raise("thisObject doesn't exist!");
}
_331=dj_global;
}
_333=[];
for(var i=0;i0){
this.duration=_396;
}
if(_399){
this.repeatCount=_399;
}
if(rate){
this.rate=rate;
}
if(_395){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_395[item]){
this.connect(item,_395[item]);
}
},this);
}
if(_398&&dojo.lang.isFunction(_398)){
this.easing=_398;
}
};
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(_39c,_39d){
if(_39d){
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(_39c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_39d);
}),_39c);
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 _39f=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_39f]);
this.fire("onBegin",[_39f]);
}
this.fire("handler",["play",_39f]);
this.fire("onPlay",[_39f]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _3a0=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_3a0]);
this.fire("onPause",[_3a0]);
return this;
},gotoPercent:function(pct,_3a2){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_3a2){
this.play();
}
return this;
},stop:function(_3a3){
clearTimeout(this._timer);
var step=this._percent/100;
if(_3a3){
step=1;
}
var _3a5=this.curve.getValue(step);
this.fire("handler",["stop",_3a5]);
this.fire("onStop",[_3a5]);
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 _3a8=this.curve.getValue(step);
this.fire("handler",["animate",_3a8]);
this.fire("onAnimate",[_3a8]);
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(_3a9){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _3aa=arguments;
if(_3aa.length==1&&(dojo.lang.isArray(_3aa[0])||dojo.lang.isArrayLike(_3aa[0]))){
_3aa=_3aa[0];
}
dojo.lang.forEach(_3aa,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(_3ac,_3ad){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_3ac>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3ad);
}),_3ac);
return this;
}
if(_3ad||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_3ad);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_3ae){
this.fire("onStop");
this._animsCall("stop",_3ae);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_3af){
var args=[];
if(arguments.length>1){
for(var i=1;i0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_3bb);
}),_3ba);
return this;
}
if(_3bc){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_3bc.play(null,_3bb);
}
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 _3bd=this._anims[this._currAnim];
if(_3bd){
if(!_3bd._active||_3bd._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _3be=this._anims[this._currAnim];
if(_3be){
_3be.stop();
this.fire("onStop",[this._currAnim]);
}
return _3be;
},_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(_3bf){
var _3c0=arguments;
if(dojo.lang.isArray(arguments[0])){
_3c0=arguments[0];
}
if(_3c0.length==1){
return _3c0[0];
}
return new dojo.lfx.Combine(_3c0);
};
dojo.lfx.chain=function(_3c1){
var _3c2=arguments;
if(dojo.lang.isArray(arguments[0])){
_3c2=arguments[0];
}
if(_3c2.length==1){
return _3c2[0];
}
return new dojo.lfx.Chain(_3c2);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3c4;
do{
_3c4=dojo.html.getStyle(node,"background-color");
if(_3c4.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3c4="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_3c4));
if(_3c4=="transparent"){
_3c4=[255,255,255,0];
}else{
_3c4=dojo.gfx.color.extractRGB(_3c4);
}
return _3c4;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_3c5){
if(!_3c5){
return [];
}
if(dojo.lang.isArrayLike(_3c5)){
if(!_3c5.alreadyChecked){
var n=[];
dojo.lang.forEach(_3c5,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _3c5;
}
}else{
var n=[];
n.push(dojo.byId(_3c5));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_3c8,_3c9,_3ca,_3cb,_3cc){
_3c8=dojo.lfx.html._byId(_3c8);
var _3cd={"propertyMap":_3c9,"nodes":_3c8,"duration":_3ca,"easing":_3cb||dojo.lfx.easeDefault};
var _3ce=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _3d2 in pm){
pm[_3d2].property=_3d2;
parr.push(pm[_3d2]);
}
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 _3d4=function(_3d5){
var _3d6=[];
dojo.lang.forEach(_3d5,function(c){
_3d6.push(Math.round(c));
});
return _3d6;
};
var _3d8=function(n,_3da){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _3da){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_3da[s]);
}else{
n.style[s]=_3da[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _3dc=function(_3dd){
this._properties=_3dd;
this.diffs=new Array(_3dd.length);
dojo.lang.forEach(_3dd,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 _3e4=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_3e4=(prop.units||"rgb")+"(";
for(var j=0;j3){
_459.pop();
}
var rgb=new dojo.gfx.color.Color(_453);
var _45e=new dojo.gfx.color.Color(_459);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_45e}},_454,_455,{"beforeBegin":function(){
if(_45b){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_45b){
node.style.backgroundImage=_45b;
}
if(_45c){
node.style.backgroundColor="transparent";
}
if(_456){
_456(node,anim);
}
}});
_457.push(anim);
});
return dojo.lfx.combine(_457);
};
dojo.lfx.html.unhighlight=function(_460,_461,_462,_463,_464){
_460=dojo.lfx.html._byId(_460);
var _465=[];
dojo.lang.forEach(_460,function(node){
var _467=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_461);
var _469=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_467,end:rgb}},_462,_463,{"beforeBegin":function(){
if(_469){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_467.toRgb().join(",")+")";
},"onEnd":function(){
if(_464){
_464(node,anim);
}
}});
_465.push(anim);
});
return dojo.lfx.combine(_465);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_46c){
var _46d=window,_46e=2;
if(!dojo.lang.isFunction(func)){
_46d=func;
func=_46c;
_46c=arguments[2];
_46e++;
}
if(dojo.lang.isString(func)){
func=_46d[func];
}
var args=[];
for(var i=_46e;i2)?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 _485=dl.nameAnonFunc(args[2],ao.adviceObj,_482);
ao.adviceFunc=_485;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _485=dl.nameAnonFunc(args[0],ao.srcObj,_482);
ao.srcFunc=_485;
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 _485=dl.nameAnonFunc(args[1],dj_global,_482);
ao.srcFunc=_485;
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 _485=dl.nameAnonFunc(args[3],dj_global,_482);
ao.adviceObj=dj_global;
ao.adviceFunc=_485;
}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 _485=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_482);
ao.aroundFunc=_485;
}
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 _487={};
for(var x in ao){
_487[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);
}
_487.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_487));
});
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 _48f;
if((arguments.length==1)&&(typeof a1=="object")){
_48f=a1;
}else{
_48f={srcObj:a1,srcFunc:a2};
}
_48f.adviceFunc=function(){
var _490=[];
for(var x=0;x=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,_4a7){
this.object=obj||dj_global;
this.methodname=_4a7;
this.methodfunc=this.object[_4a7];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_4a9){
if(!obj){
obj=dj_global;
}
if(!obj[_4a9]){
obj[_4a9]=function(){
};
if(!obj[_4a9]){
dojo.raise("Cannot set do-nothing method on that object "+_4a9);
}
}else{
if((!dojo.lang.isFunction(obj[_4a9]))&&(!dojo.lang.isAlien(obj[_4a9]))){
return null;
}
}
var _4aa=_4a9+"$joinpoint";
var _4ab=_4a9+"$joinpoint$method";
var _4ac=obj[_4aa];
if(!_4ac){
var _4ad=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_4ad=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_4aa,_4ab,_4a9]);
}
}
var _4ae=obj[_4a9].length;
obj[_4ab]=obj[_4a9];
_4ac=obj[_4aa]=new dojo.event.MethodJoinPoint(obj,_4ab);
obj[_4a9]=function(){
var args=[];
if((_4ad)&&(!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;x0)){
dojo.lang.forEach(this.before.concat(new Array()),_4c6);
}
var _4c7;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_4c7=mi.proceed();
}else{
if(this.methodfunc){
_4c7=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_4c6);
}
return (this.methodfunc)?_4c7: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(_4cc,_4cd,_4ce,_4cf,_4d0,_4d1,once,_4d3,rate,_4d5){
var arr=this.getArr(_4d0);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_4cc,_4cd,_4ce,_4cf,_4d3,rate,_4d5];
if(once){
if(this.hasAdvice(_4cc,_4cd,_4d0,arr)>=0){
return;
}
}
if(_4d1=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_4d8,_4d9,_4da,arr){
if(!arr){
arr=this.getArr(_4da);
}
var ind=-1;
for(var x=0;x=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j=65&&_52b<=90&&evt.shiftKey==false){
_52b+=32;
}
if(_52b>=1&&_52b<=26&&evt.ctrlKey){
_52b+=96;
}
evt.key=String.fromCharCode(_52b);
}
}
}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 _52b=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_52b+=32;
}
evt.key=String.fromCharCode(_52b);
}
}
}
}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 25:
evt.key=evt.KEY_TAB;
evt.shift=true;
break;
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;
case 63236:
evt.key=evt.KEY_F1;
break;
case 63237:
evt.key=evt.KEY_F2;
break;
case 63238:
evt.key=evt.KEY_F3;
break;
case 63239:
evt.key=evt.KEY_F4;
break;
case 63240:
evt.key=evt.KEY_F5;
break;
case 63241:
evt.key=evt.KEY_F6;
break;
case 63242:
evt.key=evt.KEY_F7;
break;
case 63243:
evt.key=evt.KEY_F8;
break;
case 63244:
evt.key=evt.KEY_F9;
break;
case 63245:
evt.key=evt.KEY_F10;
break;
case 63246:
evt.key=evt.KEY_F11;
break;
case 63247:
evt.key=evt.KEY_F12;
break;
case 63250:
evt.key=evt.KEY_PAUSE;
break;
case 63272:
evt.key=evt.KEY_DELETE;
break;
case 63273:
evt.key=evt.KEY_HOME;
break;
case 63275:
evt.key=evt.KEY_END;
break;
case 63276:
evt.key=evt.KEY_PAGE_UP;
break;
case 63277:
evt.key=evt.KEY_PAGE_DOWN;
break;
case 63302:
evt.key=evt.KEY_INSERT;
break;
case 63248:
case 63249:
case 63289:
break;
default:
evt.key=evt.charCode>=evt.KEY_SPACE?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=(_529?_529: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 _52d=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_52d.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_52d.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this._stopPropagation;
evt.preventDefault=this._preventDefault;
}
return evt;
};
this.stopEvent=function(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_52f,_530,init,_532){
if((dojo.lang.isFunction(_532))||((!_532)&&(!dojo.lang.isFunction(init)))){
var temp=_532;
_532=init;
init=temp;
}
var _534=[];
if(dojo.lang.isArray(_530)){
_534=_530;
_530=_534.shift();
}
if(!init){
init=dojo.evalObjPath(_52f,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_530?_530.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _530();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_534;
for(var i=0,l=_534.length;i0&&dojo.lang.isString(_54a[0])){
this.message=_54a.shift();
}
this.msgArgs=_54a;
}else{
this.message=_54a;
}
};
dojo.logging.LogFilter=function(_54b){
this.passChain=_54b||"";
this.filter=function(_54c){
return true;
};
};
dojo.logging.Logger=function(){
this.cutOffLevel=0;
this.propagate=true;
this.parent=null;
this.data=[];
this.filters=[];
this.handlers=[];
};
dojo.extend(dojo.logging.Logger,{_argsToArr:function(args){
var ret=[];
for(var x=0;x=this.cutOffLevel;
},getEffectiveLevel:function(){
if((this.cutOffLevel==0)&&(this.parent)){
return this.parent.getEffectiveLevel();
}
return this.cutOffLevel;
},addFilter:function(flt){
this.filters.push(flt);
return this.filters.length-1;
},removeFilterByIndex:function(_553){
if(this.filters[_553]){
delete this.filters[_553];
return true;
}
return false;
},removeFilter:function(_554){
for(var x=0;x=this.cutOffLevel)){
this.parent.log(lvl,msg);
return false;
}
this.handle(new dojo.logging.Record(lvl,msg));
return true;
},debug:function(msg){
return this.logType("DEBUG",this._argsToArr(arguments));
},info:function(msg){
return this.logType("INFO",this._argsToArr(arguments));
},warning:function(msg){
return this.logType("WARNING",this._argsToArr(arguments));
},error:function(msg){
return this.logType("ERROR",this._argsToArr(arguments));
},critical:function(msg){
return this.logType("CRITICAL",this._argsToArr(arguments));
},exception:function(msg,e,_564){
if(e){
var _565=[e.name,(e.description||e.message)];
if(e.fileName){
_565.push(e.fileName);
_565.push("line "+e.lineNumber);
}
msg+=" "+_565.join(" : ");
}
this.logType("ERROR",msg);
if(!_564){
throw e;
}
},logType:function(type,args){
return this.log.apply(this,[dojo.logging.log.getLevel(type),args]);
},warn:function(){
this.warning.apply(this,arguments);
},err:function(){
this.error.apply(this,arguments);
},crit:function(){
this.critical.apply(this,arguments);
}});
dojo.logging.LogHandler=function(_568){
this.cutOffLevel=(_568)?_568:0;
this.formatter=null;
this.data=[];
this.filters=[];
};
dojo.lang.extend(dojo.logging.LogHandler,{setFormatter:function(_569){
dojo.unimplemented("setFormatter");
},flush:function(){
},close:function(){
},handleError:function(){
dojo.deprecated("dojo.logging.LogHandler.handleError","use handle()","0.6");
},handle:function(_56a){
if((this.filter(_56a))&&(_56a.level>=this.cutOffLevel)){
this.emit(_56a);
}
},emit:function(_56b){
dojo.unimplemented("emit");
}});
void (function(){
var _56c=["setLevel","addFilter","removeFilterByIndex","removeFilter","removeAllFilters","filter"];
var tgt=dojo.logging.LogHandler.prototype;
var src=dojo.logging.Logger.prototype;
for(var x=0;x<_56c.length;x++){
tgt[_56c[x]]=src[_56c[x]];
}
})();
dojo.logging.log=new dojo.logging.Logger();
dojo.logging.log.levels=[{"name":"DEBUG","level":1},{"name":"INFO","level":2},{"name":"WARNING","level":3},{"name":"ERROR","level":4},{"name":"CRITICAL","level":5}];
dojo.logging.log.loggers={};
dojo.logging.log.getLogger=function(name){
if(!this.loggers[name]){
this.loggers[name]=new dojo.logging.Logger();
this.loggers[name].parent=this;
}
return this.loggers[name];
};
dojo.logging.log.getLevelName=function(lvl){
for(var x=0;xthis.numRecords){
this.data.shift();
}
}
}});
dojo.logging.logQueueHandler=new dojo.logging.MemoryLogHandler(0,50,0,10000);
dojo.logging.log.addHandler(dojo.logging.logQueueHandler);
dojo.log=dojo.logging.log;
dojo.provide("dojo.logging.*");
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,_581,_582){
var out="";
for(var i=0;i<_581;i++){
out+=str;
if(_582&&i<_581-1){
out+=_582;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length0){
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,_591,_592,_593){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_591){
this.mimetype=_591;
}
if(_592){
this.transport=_592;
}
if(arguments.length>=4){
this.changeUrl=_593;
}
}
};
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,_596,_597){
},error:function(type,_599,_59a,_59b){
},timeout:function(type,_59d,_59e,_59f){
},handle:function(type,data,_5a2,_5a3){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_5a4){
if(_5a4["url"]){
_5a4.url=_5a4.url.toString();
}
if(_5a4["formNode"]){
_5a4.formNode=dojo.byId(_5a4.formNode);
}
if(!_5a4["method"]&&_5a4["formNode"]&&_5a4["formNode"].method){
_5a4.method=_5a4["formNode"].method;
}
if(!_5a4["handle"]&&_5a4["handler"]){
_5a4.handle=_5a4.handler;
}
if(!_5a4["load"]&&_5a4["loaded"]){
_5a4.load=_5a4.loaded;
}
if(!_5a4["changeUrl"]&&_5a4["changeURL"]){
_5a4.changeUrl=_5a4.changeURL;
}
_5a4.encoding=dojo.lang.firstValued(_5a4["encoding"],djConfig["bindEncoding"],"");
_5a4.sendTransport=dojo.lang.firstValued(_5a4["sendTransport"],djConfig["ioSendTransport"],false);
var _5a5=dojo.lang.isFunction;
for(var x=0;x0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight=false;
}
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_5b9,last){
var enc=/utf/i.test(_5b9||"")?encodeURIComponent:dojo.string.encodeAscii;
var _5bc=[];
var _5bd=new Object();
for(var name in map){
var _5bf=function(elt){
var val=enc(name)+"="+enc(elt);
_5bc[(last==name)?"push":"unshift"](val);
};
if(!_5bd[name]){
var _5c2=map[name];
if(dojo.lang.isArray(_5c2)){
dojo.lang.forEach(_5c2,_5bf);
}else{
_5bf(_5c2);
}
}
}
return _5bc.join("&");
};
dojo.io.setIFrameSrc=function(_5c3,src,_5c5){
try{
var r=dojo.render.html;
if(!_5c5){
if(r.safari){
_5c3.location=src;
}else{
frames[_5c3.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_5c3.contentWindow.document;
}else{
if(r.safari){
idoc=_5c3.document;
}else{
idoc=_5c3.contentWindow;
}
}
if(!idoc){
_5c3.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(_5c8,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _5c8.replace(/\%\{(\w+)\}/g,function(_5cb,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 _5ce=str.split(" ");
for(var i=0;i<_5ce.length;i++){
_5ce[i]=_5ce[i].charAt(0).toUpperCase()+_5ce[i].substring(1);
}
return _5ce.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 _5d3=escape(str);
var _5d4,re=/%u([0-9A-F]{4})/i;
while((_5d4=_5d3.match(re))){
var num=Number("0x"+_5d4[1]);
var _5d7=escape(""+num+";");
ret+=_5d3.substring(0,_5d4.index)+_5d7;
_5d3=_5d3.substring(_5d4.index+_5d4[0].length);
}
ret+=_5d3.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,_5dc){
str=str.replace(/&/gm,"&").replace(//gm,">").replace(/"/gm,""");
if(!_5dc){
str=str.replace(/'/gm,"'");
}
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,_5e5){
if(_5e5){
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-1){
return true;
}
}
return false;
};
dojo.string.normalizeNewlines=function(text,_5f0){
if(_5f0=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_5f0=="\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,_5f2){
var _5f3=[];
for(var i=0,_5f5=0;i");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _5fa=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_5fc){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_5fa.apply(this,[_5fc]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _5fd=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_5ff){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_5fd){
_5fd.apply(this,[_5ff]);
}
};
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,_602){
if(!dojo.render.html.opera){
var _603=this._getUrlQuery(_602.href);
if(_603==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_603==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_603==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _604=this.historyStack.pop();
if(!_604){
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(_604);
},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 _60b=url.split("?");
if(_60b.length<2){
return null;
}else{
return _60b[1];
}
},_loadIframeHistory:function(){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _60e=false;
var _60f=node.getElementsByTagName("input");
dojo.lang.forEach(_60f,function(_610){
if(_60e){
return;
}
if(_610.getAttribute("type")=="file"){
_60e=true;
}
});
return _60e;
};
dojo.io.formHasFile=function(_611){
return dojo.io.checkChildrenForFile(_611);
};
dojo.io.updateNode=function(node,_613){
node=dojo.byId(node);
var args=_613;
if(dojo.lang.isString(_613)){
args={url:_613};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(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(_61a,_61b,_61c){
if((!_61a)||(!_61a.tagName)||(!_61a.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_61c){
_61c=dojo.io.formFilter;
}
var enc=/utf/i.test(_61b||"")?encodeURIComponent:dojo.string.encodeAscii;
var _61e=[];
for(var i=0;i<_61a.elements.length;i++){
var elm=_61a.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_61c(elm)){
continue;
}
var name=enc(elm.name);
var type=elm.type.toLowerCase();
if(type=="select-multiple"){
for(var j=0;j=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(_645.method.toLowerCase()=="head"){
var _64b=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _64b;
};
var _64c=_64b.split(/[\r\n]+/g);
for(var i=0;i<_64c.length;i++){
var pair=_64c[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_645.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_645.mimetype=="text/json"||_645.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_645.mimetype=="application/xml")||(_645.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(_649){
addToCache(url,_648,_645.method,http);
}
_645[(typeof _645.load=="function")?"load":"handle"]("load",ret,http,_645);
}else{
var _64f=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_645[(typeof _645.error=="function")?"error":"handle"]("error",_64f,http,_645);
}
}
function setHeaders(http,_651){
if(_651["headers"]){
for(var _652 in _651["headers"]){
if(_652.toLowerCase()=="content-type"&&!_651["contentType"]){
_651["contentType"]=_651["headers"][_652];
}else{
http.setRequestHeader(_652,_651["headers"][_652]);
}
}
}
}
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&&!_639._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)-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_659["file"]){
_659.method="post";
}
if(!_659["method"]){
_659.method="get";
}
if(_659.method.toLowerCase()=="get"){
_659.multipart=false;
}else{
if(_659["file"]){
_659.multipart=true;
}else{
if(!_659["multipart"]){
_659.multipart=false;
}
}
}
if(_659["backButton"]||_659["back"]||_659["changeUrl"]){
dojo.undo.browser.addToHistory(_659);
}
var _65e=_659["content"]||{};
if(_659.sendTransport){
_65e["dojo.transport"]="xmlhttp";
}
do{
if(_659.postContent){
_65b=_659.postContent;
break;
}
if(_65e){
_65b+=dojo.io.argsFromMap(_65e,_659.encoding);
}
if(_659.method.toLowerCase()=="get"||!_659.multipart){
break;
}
var t=[];
if(_65b.length){
var q=_65b.split("&");
for(var i=0;i-1?"&":"?")+_65b;
}
if(_665){
_66b+=(dojo.string.endsWithAny(_66b,"?","&")?"":(_66b.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_659.user){
http.open(_659.method.toUpperCase(),_66b,_664);
}else{
http.open(_659.method.toUpperCase(),_66b,_664,_659.user,_659.password);
}
setHeaders(http,_659);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_659,{status:404},url,_65b,_666);
}
}
if(!_664){
doLoad(_659,http,url,_65b,_666);
_639._blockAsync=false;
}
_659.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,_66d,days,path,_670,_671){
var _672=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_672=d.toGMTString();
}
_66d=escape(_66d);
document.cookie=name+"="+_66d+";"+(_672!=-1?" expires="+_672+";":"")+(path?"path="+path:"")+(_670?"; domain="+_670:"")+(_671?"; 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 _676=document.cookie.substring(idx+name.length+1);
var end=_676.indexOf(";");
if(end==-1){
end=_676.length;
}
_676=_676.substring(0,end);
_676=unescape(_676);
return _676;
};
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,_67d,_67e,_67f){
if(arguments.length==5){
_67f=_67d;
_67d=null;
_67e=null;
}
var _680=[],_681,_682="";
if(!_67f){
_681=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_681){
_681={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _681[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_681[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _681){
_680.push(escape(prop)+"="+escape(_681[prop]));
}
_682=_680.join("&");
}
dojo.io.cookie.setCookie(name,_682,days,path,_67d,_67e);
};
dojo.io.cookie.getObjectCookie=function(name){
var _685=null,_686=dojo.io.cookie.getCookie(name);
if(_686){
_685={};
var _687=_686.split("&");
for(var i=0;i<_687.length;i++){
var pair=_687[i].split("=");
var _68a=pair[1];
if(isNaN(_68a)){
_68a=unescape(pair[1]);
}
_685[unescape(pair[0])]=_68a;
}
}
return _685;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _68b=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_68b=="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.uri.*");
dojo.provide("dojo.io.IframeIO");
dojo.io.createIFrame=function(_68c,_68d,uri){
if(window[_68c]){
return window[_68c];
}
if(window.frames[_68c]){
return window.frames[_68c];
}
var r=dojo.render.html;
var _690=null;
var turi=uri||dojo.uri.dojoUri("iframe_history.html?noInit=true");
var _692=((r.ie)&&(dojo.render.os.win))?"