/*
	Copyright (c) 2004-2006, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/community/licensing.shtml
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
function dj_undef(_1,_2){
if(_2==null){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
if(dj_undef("dojo")){
var dojo={};
}
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 4342 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined));
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7!=null?_7:dj_global);
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_d,_e){
if(typeof _d!="string"){
return dj_global;
}
if(_d.indexOf(".")==-1){
return dojo.evalProp(_d,dj_global,_e);
}
var _f=dojo.parseObjPath(_d,dj_global,_e);
if(_f){
return dojo.evalProp(_f.prop,_f.obj,_e);
}
return null;
};
dojo.errorToString=function(_10){
if(!dj_undef("message",_10)){
return _10.message;
}else{
if(!dj_undef("description",_10)){
return _10.description;
}else{
return _10;
}
}
};
dojo.raise=function(_11,_12){
if(_12){
_11=_11+": "+dojo.errorToString(_12);
}
try{
dojo.hostenv.println("FATAL: "+_11);
}
catch(e){
}
throw Error(_11);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_14){
return dj_global.eval?dj_global.eval(_14):eval(_14);
}
dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if(_16!=null){
_17+=" "+_16;
}
dojo.raise(_17);
};
dojo.deprecated=function(_18,_19,_1a){
var _1b="DEPRECATED: "+_18;
if(_19){
_1b+=" "+_19;
}
if(_1a){
_1b+=" -- will be removed in version: "+_1a;
}
dojo.debug(_1b);
};
dojo.inherits=function(_1c,_1d){
if(typeof _1d!="function"){
dojo.raise("dojo.inherits: superclass argument ["+_1d+"] must be a function (subclass: ["+_1c+"']");
}
_1c.prototype=new _1d();
_1c.prototype.constructor=_1c;
_1c.superclass=_1d.prototype;
_1c["super"]=_1d.prototype;
};
dojo.render=(function(){
function vscaffold(_1e,_1f){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1e};
for(var _21 in _1f){
tmp[_21]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _22={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_22;
}else{
for(var _23 in _22){
if(typeof djConfig[_23]=="undefined"){
djConfig[_23]=_22[_23];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _26=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _27={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_28,_29){
this.modulePrefixes_[_28]={name:_28,value:_29};
},getModulePrefix:function(_2a){
var mp=this.modulePrefixes_;
if((mp[_2a])&&(mp[_2a]["name"])){
return mp[_2a].value;
}
return _2a;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _27){
dojo.hostenv[_2c]=_27[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if((_2d.charAt(0)=="/")||(_2d.match(/^\w+:/))){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return ((!_2e)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return 1;
}
var _33=this.getText(uri,null,true);
if(_33==null){
return 0;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_36,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length-1;i>0;i--){
var _45=_43.slice(0,i).join(".");
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=this.getModuleSymbols(_47);
var _4d=((_4c[0].charAt(0)!="/")&&(!_4c[0].match(/^\w+:/)));
var _4e=_4c[_4c.length-1];
var _4f=_47.split(".");
if(_4e=="*"){
_47=(_4f.slice(0,-1)).join(".");
while(_4c.length){
_4c.pop();
_4c.push(this.pkgFileName);
_4b=_4c.join("/")+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
}
}else{
_4b=_4c.join("/")+".js";
_47=_4f.join(".");
var ok=this.loadPath(_4b,((!_49)?_47:null));
if((!ok)&&(!_48)){
_4c.pop();
while(_4c.length){
_4b=_4c.join("/")+".js";
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
_4c.pop();
_4b=_4c.join("/")+"/"+this.pkgFileName+".js";
if(_4d&&(_4b.charAt(0)=="/")){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,((!_49)?_47:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_49)){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_51){
var _52=dojo.evalObjPath((_51.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_51)).toLowerCase()]=_52;
var _53=_51.split(/\./);
if(_53[_53.length-1]=="*"){
_53.pop();
}
return dojo.evalObjPath(_53.join("."),true);
};
dojo.hostenv.findModule=function(_54,_55){
var lmn=(new String(_54)).toLowerCase();
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
var _57=dojo.evalObjPath(_54);
if((_54)&&(typeof _57!="undefined")&&(_57)){
this.loaded_modules_[lmn]=_57;
return _57;
}
if(_55){
dojo.raise("no loaded module named '"+_54+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_58){
var _59=_58["common"]||[];
var _5a=(_58[dojo.hostenv.name_])?_59.concat(_58[dojo.hostenv.name_]||[]):_59.concat(_58["default"]||[]);
for(var x=0;x<_5a.length;x++){
var _5c=_5a[x];
if(_5c.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5c);
}else{
dojo.hostenv.loadModule(_5c);
}
}
};
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){
var _5d=[];
for(var i=1;i<arguments.length;i++){
_5d.push(arguments[i]);
}
dojo.require.apply(dojo,_5d);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_5f,_60){
return dojo.hostenv.setModulePrefix(_5f,_60);
};
dojo.exists=function(obj,_62){
var p=_62.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
}
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _65=document.location.toString();
var _66=_65.split("?",2);
if(_66.length>1){
var _67=_66[1];
var _68=_67.split("&");
for(var x in _68){
var sp=_68[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _6c=document.getElementsByTagName("script");
var _6d=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_6c.length;i++){
var src=_6c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_6d);
if(m){
var _71=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_71+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_71;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_71;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=drh.UA=navigator.userAgent;
var dav=drh.AV=navigator.appVersion;
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _79=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_79>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_79+6,_79+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
dojo.locale=(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _7a=null;
var _7b=null;
try{
_7a=new XMLHttpRequest();
}
catch(e){
}
if(!_7a){
for(var i=0;i<3;++i){
var _7d=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_7a=new ActiveXObject(_7d);
}
catch(e){
_7b=e;
}
if(_7a){
dojo.hostenv._XMLHTTP_PROGIDS=[_7d];
break;
}
}
}
if(!_7a){
return dojo.raise("XMLHTTP not available",_7b);
}
return _7a;
};
dojo.hostenv.getText=function(uri,_7f,_80){
var _81=this.getXmlhttpObject();
if(_7f){
_81.onreadystatechange=function(){
if(4==_81.readyState){
if((!_81["status"])||((200<=_81.status)&&(300>_81.status))){
_7f(_81.responseText);
}
}
};
}
_81.open("GET",uri,_7f?true:false);
try{
_81.send(null);
if(_7f){
return null;
}
if((_81["status"])&&((200>_81.status)||(300<=_81.status))){
throw Error("Unable to load "+uri+" status:"+_81.status);
}
}
catch(e){
if((_80)&&(!_7f)){
return null;
}else{
throw e;
}
}
return _81.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_82){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_82);
}else{
try{
var _83=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_83){
_83=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_82));
_83.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_82+"</div>");
}
catch(e2){
window.status=_82;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_85,_86,fp,_88){
var _89=_85["on"+_86]||function(){
};
_85["on"+_86]=function(){
fp.apply(_85,arguments);
_89.apply(_85,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(arguments.callee.initialized){
return;
}
arguments.callee.initialized=true;
var _8a=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_8a();
dojo.hostenv.modulesLoaded();
}else{
dojo.addOnLoad(_8a);
}
});
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
});
dojo.hostenv.makeWidgets=function(){
var _8b=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_8b=_8b.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_8b=_8b.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_8b.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _8c=new dojo.xml.Parse();
if(_8b.length>0){
for(var x=0;x<_8b.length;x++){
var _8e=document.getElementById(_8b[x]);
if(!_8e){
continue;
}
var _8f=_8c.parseElement(_8e,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}else{
if(djConfig.parseWidgets){
var _8f=_8c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_8f);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.write("<style>v:*{ behavior:url(#default#VML); }</style>");
document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
dojo.byId=function(id,doc){
if(id&&(typeof id=="string"||id instanceof String)){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _92=false;
var _93=false;
var _94=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_92=true;
}else{
if(typeof this["load"]=="function"){
_93=true;
}else{
if(window.widget){
_94=true;
}
}
}
var _95=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_95.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_92)&&(!_94)){
_95.push("browser_debug.js");
}
if((this["djConfig"])&&(djConfig["compat"])){
_95.push("compat/"+djConfig["compat"]+".js");
}
var _96=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_96=djConfig["baseLoaderUri"];
}
for(var x=0;x<_95.length;x++){
var _98=_96+"src/"+_95[x];
if(_92||_93){
load(_98);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_98+"'></scr"+"ipt>");
}
catch(e){
var _99=document.createElement("script");
_99.src=_98;
document.getElementsByTagName("head")[0].appendChild(_99);
}
}
}
})();
dojo.fallback_locale="en";
dojo.normalizeLocale=function(_9a){
return _9a?_9a.toLowerCase():dojo.locale;
};
dojo.requireLocalization=function(_9b,_9c,_9d){
dojo.debug("EXPERIMENTAL: dojo.requireLocalization");
var _9e=dojo.hostenv.getModuleSymbols(_9b);
var _9f=_9e.concat("nls").join("/");
_9d=dojo.normalizeLocale(_9d);
var _a0=_9d.split("-");
var _a1=[];
for(var i=_a0.length;i>0;i--){
_a1.push(_a0.slice(0,i).join("-"));
}
if(_a1[_a1.length-1]!=dojo.fallback_locale){
_a1.push(dojo.fallback_locale);
}
var _a3=[_9b,"_nls",_9c].join(".");
var _a4=dojo.hostenv.startPackage(_a3);
dojo.hostenv.loaded_modules_[_a3]=_a4;
var _a5=false;
for(var i=_a1.length-1;i>=0;i--){
var loc=_a1[i];
var pkg=[_a3,loc].join(".");
var _a8=false;
if(!dojo.hostenv.findModule(pkg)){
dojo.hostenv.loaded_modules_[pkg]=null;
var _a9=[_9f,loc,_9c].join("/")+".js";
_a8=dojo.hostenv.loadPath(_a9,null,function(_aa){
_a4[loc]=_aa;
if(_a5){
for(var x in _a5){
if(!_a4[loc][x]){
_a4[loc][x]=_a5[x];
}
}
}
});
}else{
_a8=true;
}
if(_a8&&_a4[loc]){
_a5=_a4[loc];
}
}
};
dojo.provide("dojo.lang.common");
dojo.lang._mixin=function(obj,_ad){
var _ae={};
for(var x in _ad){
if(typeof _ae[x]=="undefined"||_ae[x]!=_ad[x]){
obj[x]=_ad[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_ad["toString"])&&_ad["toString"]!=obj["toString"]){
obj.toString=_ad.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_b1){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_b3,_b4){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_b3.prototype,arguments[i]);
}
return _b3;
};
dojo.lang.find=function(arr,val,_b8,_b9){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _bb=dojo.lang.isString(arr);
if(_bb){
arr=arr.split("");
}
if(_b9){
var _bc=-1;
var i=arr.length-1;
var end=-1;
}else{
var _bc=1;
var i=0;
var end=arr.length;
}
if(_b8){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_bc;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_bc;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_c1){
return dojo.lang.find(arr,val,_c1,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.isObject=function(wh){
if(typeof wh=="undefined"){
return false;
}
return (typeof wh=="object"||wh===null||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh));
};
dojo.lang.isArray=function(wh){
return (wh instanceof Array||typeof wh=="array");
};
dojo.lang.isArrayLike=function(wh){
if(dojo.lang.isString(wh)){
return false;
}
if(dojo.lang.isFunction(wh)){
return false;
}
if(dojo.lang.isArray(wh)){
return true;
}
if(typeof wh!="undefined"&&wh&&dojo.lang.isNumber(wh.length)&&isFinite(wh.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
if(!wh){
return false;
}
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
if(!wh){
return false;
}
return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh));
};
dojo.lang.isBoolean=function(wh){
return (wh instanceof Boolean||typeof wh=="boolean");
};
dojo.lang.isNumber=function(wh){
return (wh instanceof Number||typeof wh=="number");
};
dojo.lang.isUndefined=function(wh){
return ((wh==undefined)&&(typeof wh=="undefined"));
};
dojo.provide("dojo.lang.array");
dojo.lang.has=function(obj,_ce){
try{
return (typeof obj[_ce]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _d1=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_d1++;
break;
}
}
return (_d1==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_d5){
var _d6=dojo.lang.isString(arr);
if(_d6){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_d5)){
_d5=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_d5){
var _d7=obj;
obj=_d5;
_d5=_d7;
}
}
if(Array.map){
var _d8=Array.map(arr,_d5,obj);
}else{
var _d8=[];
for(var i=0;i<arr.length;++i){
_d8.push(_d5.call(obj,arr[i]));
}
}
if(_d6){
return _d8.join("");
}else{
return _d8;
}
};
dojo.lang.forEach=function(_da,_db,_dc){
if(dojo.lang.isString(_da)){
_da=_da.split("");
}
if(Array.forEach){
Array.forEach(_da,_db,_dc);
}else{
if(!_dc){
_dc=dj_global;
}
for(var i=0,l=_da.length;i<l;i++){
_db.call(_dc,_da[i],i,_da);
}
}
};
dojo.lang._everyOrSome=function(_de,arr,_e0,_e1){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_de)?"every":"some"](arr,_e0,_e1);
}else{
if(!_e1){
_e1=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _e3=_e0.call(_e1,arr[i],i,arr);
if((_de)&&(!_e3)){
return false;
}else{
if((!_de)&&(_e3)){
return true;
}
}
}
return (_de)?true:false;
}
};
dojo.lang.every=function(arr,_e5,_e6){
return this._everyOrSome(true,arr,_e5,_e6);
};
dojo.lang.some=function(arr,_e8,_e9){
return this._everyOrSome(false,arr,_e8,_e9);
};
dojo.lang.filter=function(arr,_eb,_ec){
var _ed=dojo.lang.isString(arr);
if(_ed){
arr=arr.split("");
}
if(Array.filter){
var _ee=Array.filter(arr,_eb,_ec);
}else{
if(!_ec){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_ec=dj_global;
}
var _ee=[];
for(var i=0;i<arr.length;i++){
if(_eb.call(_ec,arr[i],i,arr)){
_ee.push(arr[i]);
}
}
}
if(_ed){
return _ee.join("");
}else{
return _ee;
}
};
dojo.lang.unnest=function(){
var out=[];
for(var i=0;i<arguments.length;i++){
if(dojo.lang.isArrayLike(arguments[i])){
var add=dojo.lang.unnest.apply(this,arguments[i]);
out=out.concat(add);
}else{
out.push(arguments[i]);
}
}
return out;
};
dojo.lang.toArray=function(_f3,_f4){
var _f5=[];
for(var i=_f4||0;i<_f3.length;i++){
_f5.push(_f3[i]);
}
return _f5;
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(_f7,_f8){
var _f9=window,argsStart=2;
if(!dojo.lang.isFunction(_f7)){
_f9=_f7;
_f7=_f8;
_f8=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_f7)){
_f7=_f9[_f7];
}
var _fa=[];
for(var i=argsStart;i<arguments.length;i++){
_fa.push(arguments[i]);
}
return setTimeout(function(){
_f7.apply(_f9,_fa);
},_f8);
};
dojo.lang.getNameInObj=function(ns,_fd){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_fd){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj){
var ret={},key;
for(key in obj){
if(dojo.lang.isUndefined(ret[key])){
ret[key]=obj[key];
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_102,_103,_104){
with(dojo.parseObjPath(_102,_103,_104)){
return dojo.evalProp(prop,obj,_104);
}
};
dojo.lang.setObjPathValue=function(_105,_106,_107,_108){
if(arguments.length<4){
_108=true;
}
with(dojo.parseObjPath(_105,_107,_108)){
if(obj&&(_108||(prop in obj))){
obj[prop]=_106;
}
}
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_109,_10a){
if(dojo.lang.isString(_10a)){
var fcn=_109[_10a];
}else{
var fcn=_10a;
}
return function(){
return fcn.apply(_109,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_10c,_10d,_10e){
var nso=(_10d||dojo.lang.anon);
if((_10e)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_10c){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_10c;
return ret;
};
dojo.lang.forward=function(_112){
return function(){
return this[_112].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _115=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_115.push(arguments[x]);
}
var _117=(func["__preJoinArity"]||func.length)-_115.length;
function gather(_118,_119,_11a){
var _11b=_11a;
var _11c=_119.slice(0);
for(var x=0;x<_118.length;x++){
_11c.push(_118[x]);
}
_11a=_11a-_118.length;
if(_11a<=0){
var res=func.apply(ns,_11c);
_11a=_11b;
return res;
}else{
return function(){
return gather(arguments,_11c,_11a);
};
}
}
return gather([],_115,_117);
};
dojo.lang.curryArguments=function(ns,func,args,_122){
var _123=[];
var x=_122||0;
for(x=_122;x<args.length;x++){
_123.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_123));
};
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,_129,_12a){
if(!farr.length){
if(typeof _12a=="function"){
_12a();
}
return;
}
if((typeof _129=="undefined")&&(typeof cb=="number")){
_129=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_129){
_129=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_129,_12a);
},_129);
};
dojo.provide("dojo.event");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_12c){
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 _12f=dl.nameAnonFunc(args[2],ao.adviceObj,_12c);
ao.adviceFunc=_12f;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _12f=dl.nameAnonFunc(args[0],ao.srcObj,_12c);
ao.srcFunc=_12f;
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 _12f=dl.nameAnonFunc(args[1],dj_global,_12c);
ao.srcFunc=_12f;
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 _12f=dl.nameAnonFunc(args[3],dj_global,_12c);
ao.adviceObj=dj_global;
ao.adviceFunc=_12f;
}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 _12f=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_12c);
ao.aroundFunc=_12f;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _131={};
for(var x in ao){
_131[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);
}
_131.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_131));
});
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 _139;
if((arguments.length==1)&&(typeof a1=="object")){
_139=a1;
}else{
_139={srcObj:a1,srcFunc:a2};
}
_139.adviceFunc=function(){
var _13a=[];
for(var x=0;x<arguments.length;x++){
_13a.push(arguments[x]);
}
dojo.debug("("+_139.srcObj+")."+_139.srcFunc,":",_13a.join(", "));
};
this.kwConnect(_139);
};
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(_141,_142){
var fn=(_142)?"disconnect":"connect";
if(typeof _141["srcFunc"]=="function"){
_141.srcObj=_141["srcObj"]||dj_global;
var _144=dojo.lang.nameAnonFunc(_141.srcFunc,_141.srcObj,true);
_141.srcFunc=_144;
}
if(typeof _141["adviceFunc"]=="function"){
_141.adviceObj=_141["adviceObj"]||dj_global;
var _144=dojo.lang.nameAnonFunc(_141.adviceFunc,_141.adviceObj,true);
_141.adviceFunc=_144;
}
return dojo.event[fn]((_141["type"]||_141["adviceType"]||"after"),_141["srcObj"]||dj_global,_141["srcFunc"],_141["adviceObj"]||_141["targetObj"]||dj_global,_141["adviceFunc"]||_141["targetFunc"],_141["aroundObj"],_141["aroundFunc"],_141["once"],_141["delay"],_141["rate"],_141["adviceMsg"]||false);
};
this.kwConnect=function(_145){
return this._kwConnectImpl(_145,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments,true);
if(!ao.adviceFunc){
return;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
};
this.kwDisconnect=function(_148){
return this._kwConnectImpl(_148,true);
};
};
dojo.event.MethodInvocation=function(_149,obj,args){
this.jp_=_149;
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,_151){
this.object=obj||dj_global;
this.methodname=_151;
this.methodfunc=this.object[_151];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_153){
if(!obj){
obj=dj_global;
}
if(!obj[_153]){
obj[_153]=function(){
};
if(!obj[_153]){
dojo.raise("Cannot set do-nothing method on that object "+_153);
}
}else{
if((!dojo.lang.isFunction(obj[_153]))&&(!dojo.lang.isAlien(obj[_153]))){
return null;
}
}
var _154=_153+"$joinpoint";
var _155=_153+"$joinpoint$method";
var _156=obj[_154];
if(!_156){
var _157=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_157=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_154,_155,_153]);
}
}
var _158=obj[_153].length;
obj[_155]=obj[_153];
_156=obj[_154]=new dojo.event.MethodJoinPoint(obj,_155);
obj[_153]=function(){
var args=[];
if((_157)&&(!arguments.length)){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
evt=window.event;
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_157)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _156.run.apply(_156,args);
};
obj[_153].__preJoinArity=_158;
}
return _156;
};
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 _15e=[];
for(var x=0;x<args.length;x++){
_15e[x]=args[x];
}
var _160=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _162=marr[0]||dj_global;
var _163=marr[1];
if(!_162[_163]){
dojo.raise("function \""+_163+"\" does not exist on \""+_162+"\"");
}
var _164=marr[2]||dj_global;
var _165=marr[3];
var msg=marr[6];
var _167;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _162[_163].apply(_162,to.args);
}};
to.args=_15e;
var _169=parseInt(marr[4]);
var _16a=((!isNaN(_169))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _16d=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;
_160(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_165){
_164[_165].call(_164,to);
}else{
if((_16a)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_162[_163].call(_162,to);
}else{
_162[_163].apply(_162,args);
}
},_169);
}else{
if(msg){
_162[_163].call(_162,to);
}else{
_162[_163].apply(_162,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_160);
}
var _170;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_170=mi.proceed();
}else{
if(this.methodfunc){
_170=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_160);
}
return (this.methodfunc)?_170:null;
},getArr:function(kind){
var arr=this.after;
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
arr=this.before;
}else{
if(kind=="around"){
arr=this.around;
}
}
return arr;
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]);
},addAdvice:function(_175,_176,_177,_178,_179,_17a,once,_17c,rate,_17e){
var arr=this.getArr(_179);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_175,_176,_177,_178,_17c,rate,_17e];
if(once){
if(this.hasAdvice(_175,_176,_179,arr)>=0){
return;
}
}
if(_17a=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_181,_182,_183,arr){
if(!arr){
arr=this.getArr(_183);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _182=="object")?(new String(_182)).toString():_182;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_181)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_189,_18a,_18b,once){
var arr=this.getArr(_18b);
var ind=this.hasAdvice(_189,_18a,_18b,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_189,_18a,_18b,arr);
}
return true;
}});
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=="object"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getTagName=function(node){
dojo.deprecated("dojo.dom.getTagName","use node.tagName instead","0.4");
var _191=node.tagName;
if(_191.substr(0,5).toLowerCase()!="dojo:"){
if(_191.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_191.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){
return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){
var _193=node.className||node.getAttribute("class");
if((_193)&&(_193.indexOf)&&(_193.indexOf("dojo-")!=-1)){
var _194=_193.split(" ");
for(var x=0;x<_194.length;x++){
if((_194[x].length>5)&&(_194[x].indexOf("dojo-")>=0)){
return "dojo:"+_194[x].substr(5).toLowerCase();
}
}
}
}
}
return _191.toLowerCase();
};
dojo.dom.getUniqueId=function(){
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(document.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_197,_198){
var node=_197.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_198&&node&&node.tagName&&node.tagName.toLowerCase()!=_198.toLowerCase()){
node=dojo.dom.nextElement(node,_198);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_19a,_19b){
var node=_19a.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_19b&&node&&node.tagName&&node.tagName.toLowerCase()!=_19b.toLowerCase()){
node=dojo.dom.prevElement(node,_19b);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_19e){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_19e&&_19e.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_19e);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1a0){
if(!node){
return null;
}
if(_1a0){
_1a0=_1a0.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1a0&&_1a0.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1a0);
}
return node;
};
dojo.dom.moveChildren=function(_1a1,_1a2,trim){
var _1a4=0;
if(trim){
while(_1a1.hasChildNodes()&&_1a1.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1a1.removeChild(_1a1.firstChild);
}
while(_1a1.hasChildNodes()&&_1a1.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1a1.removeChild(_1a1.lastChild);
}
}
while(_1a1.hasChildNodes()){
_1a2.appendChild(_1a1.firstChild);
_1a4++;
}
return _1a4;
};
dojo.dom.copyChildren=function(_1a5,_1a6,trim){
var _1a8=_1a5.cloneNode(true);
return this.moveChildren(_1a8,_1a6,trim);
};
dojo.dom.removeChildren=function(node){
var _1aa=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _1aa;
};
dojo.dom.replaceChildren=function(node,_1ac){
dojo.dom.removeChildren(node);
node.appendChild(_1ac);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_1af,_1b0){
var _1b1=[];
var _1b2=dojo.lang.isFunction(_1af);
while(node){
if(!_1b2||_1af(node)){
_1b1.push(node);
}
if(_1b0&&_1b1.length>0){
return _1b1[0];
}
node=node.parentNode;
}
if(_1b0){
return null;
}
return _1b1;
};
dojo.dom.getAncestorsByTag=function(node,tag,_1b5){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_1b5);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_1ba,_1bb){
if(_1bb&&node){
node=node.parentNode;
}
while(node){
if(node==_1ba){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
if(!dj_undef("ActiveXObject")){
var _1be=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_1be.length;i++){
try{
doc=new ActiveXObject(_1be[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((document.implementation)&&(document.implementation.createDocument)){
doc=document.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_1c1){
if(!_1c1){
_1c1="text/xml";
}
if(!dj_undef("DOMParser")){
var _1c2=new DOMParser();
return _1c2.parseFromString(str,_1c1);
}else{
if(!dj_undef("ActiveXObject")){
var _1c3=dojo.dom.createDocument();
if(_1c3){
_1c3.async=false;
_1c3.loadXML(str);
return _1c3;
}else{
dojo.debug("toXml didn't work?");
}
}else{
if(document.createElement){
var tmp=document.createElement("xml");
tmp.innerHTML=str;
if(document.implementation&&document.implementation.createDocument){
var _1c5=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_1c5.importNode(tmp.childNodes.item(i),true);
}
return _1c5;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_1c8){
if(_1c8.firstChild){
_1c8.insertBefore(node,_1c8.firstChild);
}else{
_1c8.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_1cb){
if(_1cb!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _1cc=ref.parentNode;
_1cc.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_1cf){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_1cf!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_1cf);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_1d3){
if((!node)||(!ref)||(!_1d3)){
return false;
}
switch(_1d3.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,_1d5,_1d6){
var _1d7=_1d5.childNodes;
if(!_1d7.length){
_1d5.appendChild(node);
return true;
}
var _1d8=null;
for(var i=0;i<_1d7.length;i++){
var _1da=_1d7.item(i)["getAttribute"]?parseInt(_1d7.item(i).getAttribute("dojoinsertionindex")):-1;
if(_1da<_1d6){
_1d8=_1d7.item(i);
}
}
if(_1d8){
return dojo.dom.insertAfter(node,_1d8);
}else{
return dojo.dom.insertBefore(node,_1d7.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _1dd="";
if(node==null){
return _1dd;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_1dd+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_1dd+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _1dd;
}
};
dojo.dom.collectionToArray=function(_1df){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_1df);
};
dojo.dom.hasParent=function(node){
return node&&node.parentNode&&dojo.dom.isNode(node.parentNode);
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
var arr=dojo.lang.toArray(arguments,1);
return arr[dojo.lang.find(node.tagName,arr)]||"";
}
return "";
};
dojo.provide("dojo.graphics.color");
dojo.graphics.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.graphics.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.graphics.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.graphics.color.Color.fromArray=function(arr){
return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_1e9){
if(_1e9){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.graphics.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_1ea,_1eb){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_1ea).toRgb(),_1eb);
}});
dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.graphics.color.blend=function(a,b,_1ee){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_1ee);
}
if(!_1ee){
_1ee=0;
}else{
if(_1ee>1){
_1ee=1;
}else{
if(_1ee<-1){
_1ee=-1;
}
}
}
var c=new Array(3);
for(var i=0;i<3;i++){
var half=Math.abs(a[i]-b[i])/2;
c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_1ee));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_1f4){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_1f4));
};
dojo.graphics.color.extractRGB=function(_1f5){
var hex="0123456789abcdef";
_1f5=_1f5.toLowerCase();
if(_1f5.indexOf("rgb")==0){
var _1f7=_1f5.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_1f7.splice(1,3);
return ret;
}else{
var _1f9=dojo.graphics.color.hex2rgb(_1f5);
if(_1f9){
return _1f9;
}else{
return dojo.graphics.color.named[_1f5]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _1fb="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_1fb+"]","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]=_1fb.indexOf(rgb[i].charAt(0))*16+_1fb.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.graphics.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.joinPath=function(){
var arr=[];
for(var i=0;i<arguments.length;i++){
arr.push(arguments[i]);
}
return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/");
};
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _209=new dojo.uri.Uri(arguments[i].toString());
var _20a=new dojo.uri.Uri(uri.toString());
if(_209.path==""&&_209.scheme==null&&_209.authority==null&&_209.query==null){
if(_209.fragment!=null){
_20a.fragment=_209.fragment;
}
_209=_20a;
}else{
if(_209.scheme==null){
_209.scheme=_20a.scheme;
if(_209.authority==null){
_209.authority=_20a.authority;
if(_209.path.charAt(0)!="/"){
var path=_20a.path.substring(0,_20a.path.lastIndexOf("/")+1)+_209.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;
}
}
}
}
_209.path=segs.join("/");
}
}
}
}
uri="";
if(_209.scheme!=null){
uri+=_209.scheme+":";
}
if(_209.authority!=null){
uri+="//"+_209.authority;
}
uri+=_209.path;
if(_209.query!=null){
uri+="?"+_209.query;
}
if(_209.fragment!=null){
uri+="#"+_209.fragment;
}
}
this.uri=uri.toString();
var _20e="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_20e));
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){
_20e="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_20e));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.style");
(function(){
var h=dojo.render.html;
var ds=dojo.style;
var db=document["body"]||document["documentElement"];
ds.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
var bs=ds.boxSizing;
ds.getBoxSizing=function(node){
if((h.ie)||(h.opera)){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _216=ds.getStyle(node,"-moz-box-sizing");
if(!_216){
_216=ds.getStyle(node,"box-sizing");
}
return (_216?_216:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_219,_21a){
var s=ds.getComputedStyle(node,_219);
if((!s)||((s=="auto")&&(_21a))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _21c=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_21c){
return ds.getUnitValue.bad;
}
return {value:Number(_21c[1]),units:_21c[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_21e,_21f){
var _220=ds.getUnitValue(node,_21e,_21f);
if(isNaN(_220.value)){
return 0;
}
if((_220.value)&&(_220.units!="px")){
return NaN;
}
return _220.value;
};
ds.getNumericStyle=function(){
dojo.deprecated("dojo.(style|html).getNumericStyle","in favor of dojo.(style|html).getPixelValue","0.4");
return ds.getPixelValue.apply(this,arguments);
};
ds.setPositivePixelValue=function(node,_222,_223){
if(isNaN(_223)){
return false;
}
node.style[_222]=Math.max(0,_223)+"px";
return true;
};
ds._sumPixelValues=function(node,_225,_226){
var _227=0;
for(var x=0;x<_225.length;x++){
_227+=ds.getPixelValue(node,_225[x],_226);
}
return _227;
};
ds.isPositionAbsolute=function(node){
return (ds.getComputedStyle(node,"position")=="absolute");
};
ds.getBorderExtent=function(node,side){
return (ds.getStyle(node,"border-"+side+"-style")=="none"?0:ds.getPixelValue(node,"border-"+side+"-width"));
};
ds.getMarginWidth=function(node){
return ds._sumPixelValues(node,["margin-left","margin-right"],ds.isPositionAbsolute(node));
};
ds.getBorderWidth=function(node){
return ds.getBorderExtent(node,"left")+ds.getBorderExtent(node,"right");
};
ds.getPaddingWidth=function(node){
return ds._sumPixelValues(node,["padding-left","padding-right"],true);
};
ds.getPadBorderWidth=function(node){
return ds.getPaddingWidth(node)+ds.getBorderWidth(node);
};
ds.getContentBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth-ds.getPadBorderWidth(node);
};
ds.getBorderBoxWidth=function(node){
node=dojo.byId(node);
return node.offsetWidth;
};
ds.getMarginBoxWidth=function(node){
return ds.getInnerWidth(node)+ds.getMarginWidth(node);
};
ds.setContentBoxWidth=function(node,_234){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_234+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_234);
};
ds.setMarginBoxWidth=function(node,_236){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_236-=ds.getPadBorderWidth(node);
}
_236-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_236);
};
ds.getContentWidth=ds.getContentBoxWidth;
ds.getInnerWidth=ds.getBorderBoxWidth;
ds.getOuterWidth=ds.getMarginBoxWidth;
ds.setContentWidth=ds.setContentBoxWidth;
ds.setOuterWidth=ds.setMarginBoxWidth;
ds.getMarginHeight=function(node){
return ds._sumPixelValues(node,["margin-top","margin-bottom"],ds.isPositionAbsolute(node));
};
ds.getBorderHeight=function(node){
return ds.getBorderExtent(node,"top")+ds.getBorderExtent(node,"bottom");
};
ds.getPaddingHeight=function(node){
return ds._sumPixelValues(node,["padding-top","padding-bottom"],true);
};
ds.getPadBorderHeight=function(node){
return ds.getPaddingHeight(node)+ds.getBorderHeight(node);
};
ds.getContentBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight-ds.getPadBorderHeight(node);
};
ds.getBorderBoxHeight=function(node){
node=dojo.byId(node);
return node.offsetHeight;
};
ds.getMarginBoxHeight=function(node){
return ds.getInnerHeight(node)+ds.getMarginHeight(node);
};
ds.setContentBoxHeight=function(node,_23f){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_23f+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_23f);
};
ds.setMarginBoxHeight=function(node,_241){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_241-=ds.getPadBorderHeight(node);
}
_241-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_241);
};
ds.getContentHeight=ds.getContentBoxHeight;
ds.getInnerHeight=ds.getBorderBoxHeight;
ds.getOuterHeight=ds.getMarginBoxHeight;
ds.setContentHeight=ds.setContentBoxHeight;
ds.setOuterHeight=ds.setMarginBoxHeight;
ds.getAbsolutePosition=ds.abs=function(node,_243){
node=dojo.byId(node);
var ret=[];
ret.x=ret.y=0;
var st=dojo.html.getScrollTop();
var sl=dojo.html.getScrollLeft();
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-ds.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-ds.sumAncestorProperties(node,"scrollTop");
}else{
if(node["offsetParent"]){
var _248;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_248=db;
}else{
_248=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(window.opera){
nd=db;
}
ret.x-=ds.sumAncestorProperties(nd,"scrollLeft");
ret.y-=ds.sumAncestorProperties(nd,"scrollTop");
}
do{
var n=node["offsetLeft"];
ret.x+=isNaN(n)?0:n;
var m=node["offsetTop"];
ret.y+=isNaN(m)?0:m;
node=node.offsetParent;
}while((node!=_248)&&(node!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_243){
ret.y+=st;
ret.x+=sl;
}
ret[0]=ret.x;
ret[1]=ret.y;
return ret;
};
ds.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _24e=0;
while(node){
var val=node[prop];
if(val){
_24e+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _24e;
};
ds.getTotalOffset=function(node,type,_252){
return ds.abs(node,_252)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_254){
return ds.getTotalOffset(node,"left",_254);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_256){
return ds.getTotalOffset(node,"top",_256);
};
ds.styleSheet=null;
ds.insertCssRule=function(_257,_258,_259){
if(!ds.styleSheet){
if(document.createStyleSheet){
ds.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
ds.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(ds.styleSheet.cssRules){
_259=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_259=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_257+" { "+_258+" }";
return ds.styleSheet.insertRule(rule,_259);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_257,_258,_259);
}else{
return null;
}
}
};
ds.removeCssRule=function(_25b){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_25b){
_25b=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_25b);
}
}else{
if(document.styleSheets[0]){
if(!_25b){
_25b=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_25b);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_25e){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _25f=dojo.hostenv.getText(URI);
_25f=ds.fixPathsInCssText(_25f,URI);
if(_25e){
var _260=doc.getElementsByTagName("style");
var _261="";
for(var i=0;i<_260.length;i++){
_261=(_260[i].styleSheet&&_260[i].styleSheet.cssText)?_260[i].styleSheet.cssText:_260[i].innerHTML;
if(_25f==_261){
return;
}
}
}
var _263=ds.insertCssText(_25f);
if(_263&&djConfig.isDebug){
_263.setAttribute("dbgHref",URI);
}
return _263;
};
ds.insertCssText=function(_264,doc,URI){
if(!_264){
return;
}
if(!doc){
doc=document;
}
if(URI){
_264=ds.fixPathsInCssText(_264,URI);
}
var _267=doc.createElement("style");
_267.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(_267);
}
if(_267.styleSheet){
_267.styleSheet.cssText=_264;
}else{
var _269=doc.createTextNode(_264);
_267.appendChild(_269);
}
return _267;
};
ds.fixPathsInCssText=function(_26a,URI){
if(!_26a||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_26a.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_26a.slice(0,pos+4);
_26a=_26a.substring(pos+4,_26a.length);
url+=_26a.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_26a=_26a.substring(url.length-1,_26a.length);
url=url.replace(/^[\s\t]*(['"]?)([\w()\/.\\'"-:#=&?]*)\1[\s\t]*?\)/,"$2");
if(url.search(/(file|https?|ftps?):\/\//)==-1){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=url;
}
return str+_26a;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _270;
do{
_270=ds.getStyle(node,"background-color");
if(_270.toLowerCase()=="rgba(0, 0, 0, 0)"){
_270="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_270,["transparent",""]));
if(_270=="transparent"){
_270=[255,255,255,0];
}else{
_270=dojo.graphics.color.extractRGB(_270);
}
return _270;
};
ds.getComputedStyle=function(node,_272,_273){
node=dojo.byId(node);
var _272=ds.toSelectorCase(_272);
var _274=ds.toCamelCase(_272);
if(!node||!node.style){
return _273;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_272);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_272);
}else{
return _273;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_274];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_272);
}else{
return _273;
}
};
ds.getStyleProperty=function(node,_277){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_277)]:undefined);
};
ds.getStyle=function(node,_279){
var _27a=ds.getStyleProperty(node,_279);
return (_27a?_27a:ds.getComputedStyle(node,_279));
};
ds.setStyle=function(node,_27c,_27d){
node=dojo.byId(node);
if(node&&node.style){
var _27e=ds.toCamelCase(_27c);
node.style[_27e]=_27d;
}
};
ds.toCamelCase=function(_27f){
var arr=_27f.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
ds.toSelectorCase=function(_282){
return _282.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_284,_285){
node=dojo.byId(node);
if(!_285){
if(_284>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_284=0.999999;
}
}else{
if(_284<0){
_284=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="+_284*100+")";
}
}
node.style.filter="Alpha(Opacity="+_284*100+")";
}else{
if(h.moz){
node.style.opacity=_284;
node.style.MozOpacity=_284;
}else{
if(h.safari){
node.style.opacity=_284;
node.style.KhtmlOpacity=_284;
}else{
node.style.opacity=_284;
}
}
}
};
ds.getOpacity=function getOpacity(node){
node=dojo.byId(node);
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
ds.clearOpacity=function clearOpacity(node){
node=dojo.byId(node);
var ns=node.style;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
ds.setStyleAttributes=function(node,_28d){
var _28e={"opacity":dojo.style.setOpacity,"content-height":dojo.style.setContentHeight,"content-width":dojo.style.setContentWidth,"outer-height":dojo.style.setOuterHeight,"outer-width":dojo.style.setOuterWidth};
var _28f=_28d.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_28f.length;i++){
var _291=_28f[i].split(":");
var name=_291[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _293=_291[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_28e,name)){
_28e[name](node,_293);
}else{
node.style[dojo.style.toCamelCase(name)]=_293;
}
}
};
ds._toggle=function(node,_295,_296){
node=dojo.byId(node);
_296(node,!_295(node));
return _295(node);
};
ds.show=function(node){
node=dojo.byId(node);
if(ds.getStyleProperty(node,"display")=="none"){
ds.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
ds.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=ds.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
ds.setStyle(node,"display","none");
};
ds.setShowing=function(node,_29b){
ds[(_29b?"show":"hide")](node);
};
ds.isShowing=function(node){
return (ds.getStyleProperty(node,"display")!="none");
};
ds.toggleShowing=function(node){
return ds._toggle(node,ds.isShowing,ds.setShowing);
};
ds.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
ds.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in ds.displayMap?ds.displayMap[tag]:"block");
}
};
ds.setDisplay=function(node,_2a1){
ds.setStyle(node,"display",(dojo.lang.isString(_2a1)?_2a1:(_2a1?ds.suggestDisplayByTagName(node):"none")));
};
ds.isDisplayed=function(node){
return (ds.getComputedStyle(node,"display")!="none");
};
ds.toggleDisplay=function(node){
return ds._toggle(node,ds.isDisplayed,ds.setDisplay);
};
ds.setVisibility=function(node,_2a5){
ds.setStyle(node,"visibility",(dojo.lang.isString(_2a5)?_2a5:(_2a5?"visible":"hidden")));
};
ds.isVisible=function(node){
return (ds.getComputedStyle(node,"visibility")!="hidden");
};
ds.toggleVisibility=function(node){
return ds._toggle(node,ds.isVisible,ds.setVisibility);
};
ds.toCoordinateArray=function(_2a8,_2a9){
if(dojo.lang.isArray(_2a8)){
while(_2a8.length<4){
_2a8.push(0);
}
while(_2a8.length>4){
_2a8.pop();
}
var ret=_2a8;
}else{
var node=dojo.byId(_2a8);
var pos=ds.getAbsolutePosition(node,_2a9);
var ret=[pos.x,pos.y,ds.getBorderBoxWidth(node),ds.getBorderBoxHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
})();
dojo.provide("dojo.string.common");
dojo.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,_2b3,_2b4){
var out="";
for(var i=0;i<_2b3;i++){
out+=str;
if(_2b4&&i<_2b3-1){
out+=_2b4;
}
}
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.html");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.lang.mixin(dojo.html,dojo.style);
dojo.html.clearSelection=function(){
try{
if(window["getSelection"]){
if(dojo.render.html.safari){
window.getSelection().collapse();
}else{
window.getSelection().removeAllRanges();
}
}else{
if(document.selection){
if(document.selection.empty){
document.selection.empty();
}else{
if(document.selection.clear){
document.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_2c2){
_2c2=dojo.byId(_2c2)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_2c2.style.MozUserSelect="none";
}else{
if(h.safari){
_2c2.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_2c2.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_2c4){
_2c4=dojo.byId(_2c4)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_2c4.style.MozUserSelect="";
}else{
if(h.safari){
_2c4.style.KhtmlUserSelect="";
}else{
if(h.ie){
_2c4.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_2c6){
_2c6=dojo.byId(_2c6);
if(document.selection&&document.body.createTextRange){
var _2c7=document.body.createTextRange();
_2c7.moveToElementText(_2c6);
_2c7.select();
}else{
if(window["getSelection"]){
var _2c8=window.getSelection();
if(_2c8["selectAllChildren"]){
_2c8.selectAllChildren(_2c6);
}
}
}
};
dojo.html.selectInputText=function(_2c9){
_2c9=dojo.byId(_2c9);
if(document.selection&&document.body.createTextRange){
var _2ca=_2c9.createTextRange();
_2ca.moveStart("character",0);
_2ca.moveEnd("character",_2c9.value.length);
_2ca.select();
}else{
if(window["getSelection"]){
var _2cb=window.getSelection();
_2c9.setSelectionRange(0,_2c9.value.length);
}
}
_2c9.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _2cc=window.getSelection();
if(dojo.lang.isString(_2cc)){
return _2cc=="";
}else{
return _2cc.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument*","replaced by dojo.html.getViewport*","0.4");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument*","replaced of dojo.html.getViewport*","0.4");
return dojo.html.getViewportSize();
};
dojo.html.getViewportWidth=function(){
var w=0;
if(window.innerWidth){
w=window.innerWidth;
}
if(dojo.exists(document,"documentElement.clientWidth")){
var w2=document.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
return w;
}
if(document.body){
return document.body.clientWidth;
}
return 0;
};
dojo.html.getViewportHeight=function(){
if(window.innerHeight){
return window.innerHeight;
}
if(dojo.exists(document,"documentElement.clientHeight")){
return document.documentElement.clientHeight;
}
if(document.body){
return document.body.clientHeight;
}
return 0;
};
dojo.html.getViewportSize=function(){
var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()];
ret.w=ret[0];
ret.h=ret[1];
return ret;
};
dojo.html.getScrollTop=function(){
return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
dojo.html.getScrollOffset=function(){
var off=[dojo.html.getScrollLeft(),dojo.html.getScrollTop()];
off.x=off[0];
off.y=off[1];
return off;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType","replaced by dojo.html.getParentByType*","0.4");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _2d7=dojo.byId(node);
type=type.toLowerCase();
while((_2d7)&&(_2d7.nodeName.toLowerCase()!=type)){
if(_2d7==(document["body"]||document["documentElement"])){
return null;
}
_2d7=_2d7.parentNode;
}
return _2d7;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
node=dojo.byId(node);
return dojo.html.getAttribute(node,attr)?true:false;
};
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return dojo.string.trim(cs);
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_2e3){
return dojo.lang.inArray(dojo.html.getClasses(node),_2e3);
};
dojo.html.prependClass=function(node,_2e5){
_2e5+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_2e5);
};
dojo.html.addClass=function(node,_2e7){
if(dojo.html.hasClass(node,_2e7)){
return false;
}
_2e7=dojo.string.trim(dojo.html.getClass(node)+" "+_2e7);
return dojo.html.setClass(node,_2e7);
};
dojo.html.setClass=function(node,_2e9){
node=dojo.byId(node);
var cs=new String(_2e9);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_2e9);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_2ec,_2ed){
var _2ec=dojo.string.trim(new String(_2ec));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_2ed){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_2ec)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_2ec){
nca.push(cs[i]);
}
}
}
dojo.html.setClass(node,nca.join(" "));
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_2f2,_2f3){
dojo.html.removeClass(node,_2f3);
dojo.html.addClass(node,_2f2);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_2f4,_2f5,_2f6,_2f7,_2f8){
_2f5=dojo.byId(_2f5)||document;
var _2f9=_2f4.split(/\s+/g);
var _2fa=[];
if(_2f7!=1&&_2f7!=2){
_2f7=0;
}
var _2fb=new RegExp("(\\s|^)(("+_2f9.join(")|(")+"))(\\s|$)");
var _2fc=[];
if(!_2f8&&document.evaluate){
var _2fd="//"+(_2f6||"*")+"[contains(";
if(_2f7!=dojo.html.classMatchType.ContainsAny){
_2fd+="concat(' ',@class,' '), ' "+_2f9.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_2fd+="concat(' ',@class,' '), ' "+_2f9.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _2fe=document.evaluate(_2fd,_2f5,null,XPathResult.ANY_TYPE,null);
var _2ff=_2fe.iterateNext();
while(_2ff){
try{
_2fc.push(_2ff);
_2ff=_2fe.iterateNext();
}
catch(e){
break;
}
}
return _2fc;
}else{
if(!_2f6){
_2f6="*";
}
_2fc=_2f5.getElementsByTagName(_2f6);
var node,i=0;
outer:
while(node=_2fc[i++]){
var _301=dojo.html.getClasses(node);
if(_301.length==0){
continue outer;
}
var _302=0;
for(var j=0;j<_301.length;j++){
if(_2fb.test(_301[j])){
if(_2f7==dojo.html.classMatchType.ContainsAny){
_2fa.push(node);
continue outer;
}else{
_302++;
}
}else{
if(_2f7==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_302==_2f9.length){
if((_2f7==dojo.html.classMatchType.IsOnly)&&(_302==_301.length)){
_2fa.push(node);
}else{
if(_2f7==dojo.html.classMatchType.ContainsAll){
_2fa.push(node);
}
}
}
}
return _2fa;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _305={x:0,y:0};
if(e.pageX||e.pageY){
_305.x=e.pageX;
_305.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_305.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_305.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _305;
};
dojo.html.overElement=function(_308,e){
_308=dojo.byId(_308);
var _30a=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_308,true);
var _30c=top+getInnerHeight(_308);
var left=getAbsoluteX(_308,true);
var _30e=left+getInnerWidth(_308);
}
return (_30a.x>=left&&_30a.x<=_30e&&_30a.y>=top&&_30a.y<=_30c);
};
dojo.html.setActiveStyleSheet=function(_30f){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_30f){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=document.getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.body=function(){
return document.body||document.getElementsByTagName("body")[0];
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){
return String(a).toLowerCase();
});
return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||"";
}
return "";
};
dojo.html.copyStyle=function(_316,_317){
if(dojo.lang.isUndefined(_317.style.cssText)){
_316.setAttribute("style",_317.getAttribute("style"));
}else{
_316.style.cssText=_317.style.cssText;
}
dojo.html.addClass(_316,dojo.html.getClass(_317));
};
dojo.html._callExtrasDeprecated=function(_318,args){
var _31a="dojo.html.extras";
dojo.deprecated("dojo.html."+_318,"moved to "+_31a,"0.4");
dojo["require"](_31a);
return dojo.html[_318].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.provide("dojo.math.curves");
dojo.math.curves={Line:function(_31b,end){
this.start=_31b;
this.end=end;
this.dimensions=_31b.length;
for(var i=0;i<_31b.length;i++){
_31b[i]=Number(_31b[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _31f=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_31f[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _31f;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _323=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_323[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_323[j]=C/D;
}
return _323;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _32d=step*(this.p.length-1);
var node=Math.floor(_32d);
var _32f=_32d-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_32f;
var u2=_32f*_32f;
var u3=_32f*_32f*_32f;
var _337=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_337[k]=x1*u3+x2*u2+x3*u+x4;
}
return _337;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_33d,end,ccw){
var _340=dojo.math.points.midpoint(_33d,end);
var _341=dojo.math.points.translate(dojo.math.points.invert(_340),_33d);
var rad=Math.sqrt(Math.pow(_341[0],2)+Math.pow(_341[1],2));
var _343=dojo.math.radToDeg(Math.atan(_341[1]/_341[0]));
if(_341[0]<0){
_343-=90;
}else{
_343+=90;
}
dojo.math.curves.CenteredArc.call(this,_340,rad,_343,_343+(ccw?-180:180));
},CenteredArc:function(_344,_345,_346,end){
this.center=_344;
this.radius=_345;
this.start=_346||0;
this.end=end;
this.getValue=function(n){
var _349=new Array(2);
var _34a=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_349[0]=this.center[0]+this.radius*Math.sin(_34a);
_349[1]=this.center[1]-this.radius*Math.cos(_34a);
return _349;
};
return this;
},Circle:function(_34b,_34c){
dojo.math.curves.CenteredArc.call(this,_34b,_34c,0,360);
return this;
},Path:function(){
var _34d=[];
var _34e=[];
var _34f=[];
var _350=0;
this.add=function(_351,_352){
if(_352<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_34d.push(_351);
_34e.push(_352);
_350+=_352;
computeRanges();
};
this.remove=function(_353){
for(var i=0;i<_34d.length;i++){
if(_34d[i]==_353){
_34d.splice(i,1);
_350-=_34e.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_34d=[];
_34e=[];
_350=0;
};
this.getValue=function(n){
var _356=false,value=0;
for(var i=0;i<_34f.length;i++){
var r=_34f[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_34d[i].getValue(subN);
_356=true;
break;
}
}
if(!_356){
value=_34d[_34d.length-1].getValue(1);
}
for(var j=0;j<i;j++){
value=dojo.math.points.translate(value,_34d[j].getValue(1));
}
return value;
};
function computeRanges(){
var _35b=0;
for(var i=0;i<_34e.length;i++){
var end=_35b+_34e[i]/_350;
var len=end-_35b;
_34f[i]=[_35b,end,len];
_35b=end;
}
}
return this;
}};
dojo.provide("dojo.animation.AnimationEvent");
dojo.animation.AnimationEvent=function(anim,type,_361,_362,_363,_364,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_361;
this.x=_361[0];
this.y=_361[1];
this.z=_361[2];
this.startTime=_362;
this.currentTime=_363;
this.endTime=_364;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _368=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_368[i]=Math.round(this.coords[i]);
}
return _368;
}});
dojo.provide("dojo.animation.Animation");
dojo.animation.Animation=function(_36a,_36b,_36c,_36d,rate){
if(dojo.lang.isArray(_36a)){
_36a=new dojo.math.curves.Line(_36a[0],_36a[1]);
}
this.curve=_36a;
this.duration=_36b;
this.repeatCount=_36d||0;
this.rate=rate||25;
if(_36c){
if(dojo.lang.isFunction(_36c.getValue)){
this.accel=_36c;
}else{
var i=0.35*_36c+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_370){
if(_370){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence._setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_374){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_374){
this.play();
}
},stop:function(_375){
clearTimeout(this._timer);
var step=this._percent/100;
if(_375){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
var fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence._playNext();
}
}
}
}
}
}});
dojo.provide("dojo.animation");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_37c){
if(!this.topics[_37c]){
this.topics[_37c]=new this.TopicImpl(_37c);
}
return this.topics[_37c];
};
this.registerPublisher=function(_37d,obj,_37f){
var _37d=this.getTopic(_37d);
_37d.registerPublisher(obj,_37f);
};
this.subscribe=function(_380,obj,_382){
var _380=this.getTopic(_380);
_380.subscribe(obj,_382);
};
this.unsubscribe=function(_383,obj,_385){
var _383=this.getTopic(_383);
_383.unsubscribe(obj,_385);
};
this.destroy=function(_386){
this.getTopic(_386).destroy();
delete this.topics[_386];
};
this.publishApply=function(_387,args){
var _387=this.getTopic(_387);
_387.sendMessage.apply(_387,args);
};
this.publish=function(_389,_38a){
var _389=this.getTopic(_389);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_389.sendMessage.apply(_389,args);
};
};
dojo.event.topic.TopicImpl=function(_38d){
this.topicName=_38d;
this.subscribe=function(_38e,_38f){
var tf=_38f||_38e;
var to=(!_38f)?dj_global:_38e;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_392,_393){
var tf=(!_393)?_392:_393;
var to=(!_393)?null:_392;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_396,_397){
dojo.event.connect(_396,_397,this,"sendMessage");
};
this.sendMessage=function(_398){
};
};
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(_39b){
var na;
var tna;
if(_39b){
tna=_39b.all||_39b.getElementsByTagName("*");
na=[_39b];
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 _39f={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
if(el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
na=null;
};
};
if(dojo.render.html.ie){
dojo.addOnUnload(function(){
dojo._ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _3a3=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_3a7){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_3a7.length;x++){
node.__clobberAttrs__.push(_3a7[x]);
}
};
this.removeListener=function(node,_3aa,fp,_3ac){
if(!_3ac){
var _3ac=false;
}
_3aa=_3aa.toLowerCase();
if(_3aa.substr(0,2)=="on"){
_3aa=_3aa.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_3aa,fp,_3ac);
}
};
this.addListener=function(node,_3ae,fp,_3b0,_3b1){
if(!node){
return;
}
if(!_3b0){
var _3b0=false;
}
_3ae=_3ae.toLowerCase();
if(_3ae.substr(0,2)!="on"){
_3ae="on"+_3ae;
}
if(!_3b1){
var _3b2=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_3b0){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_3b2=fp;
}
if(node.addEventListener){
node.addEventListener(_3ae.substr(2),_3b2,_3b0);
return _3b2;
}else{
if(typeof node[_3ae]=="function"){
var _3b5=node[_3ae];
node[_3ae]=function(e){
_3b5(e);
return _3b2(e);
};
}else{
node[_3ae]=_3b2;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_3ae]);
}
return _3b2;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3b8,_3b9){
if(typeof _3b8!="function"){
dojo.raise("listener not a function: "+_3b8);
}
dojo.event.browser.currentEvent.currentTarget=_3b9;
return _3b8.call(_3b9,dojo.event.browser.currentEvent);
};
this.stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this.preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_3bc){
if((!evt)&&(window["event"])){
var evt=window.event;
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if((dojo.render.html.ie)&&(evt["type"]=="keypress")){
evt.charCode=evt.keyCode;
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_3bc?_3bc:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _3be=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_3be.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_3be.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this.stopPropagation;
evt.preventDefault=this.preventDefault;
}
return evt;
};
this.stopEvent=function(ev){
if(window.event){
ev.returnValue=false;
ev.cancelBubble=true;
}else{
ev.preventDefault();
ev.stopPropagation();
}
};
};
dojo.provide("dojo.event.*");
dojo.provide("dojo.fx.html");
dojo.deprecated("dojo.fx.html","use dojo.lfx.html instead","0.4");
dojo.fx.duration=300;
dojo.fx.html._makeFadeable=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
dojo.fx.html.fadeOut=function(node,_3c2,_3c3,_3c4){
return dojo.fx.html.fade(node,_3c2,dojo.style.getOpacity(node),0,_3c3,_3c4);
};
dojo.fx.html.fadeIn=function(node,_3c6,_3c7,_3c8){
return dojo.fx.html.fade(node,_3c6,dojo.style.getOpacity(node),1,_3c7,_3c8);
};
dojo.fx.html.fadeHide=function(node,_3ca,_3cb,_3cc){
node=dojo.byId(node);
if(!_3ca){
_3ca=150;
}
return dojo.fx.html.fadeOut(node,_3ca,function(node){
node.style.display="none";
if(typeof _3cb=="function"){
_3cb(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_3cf,_3d0,_3d1){
node=dojo.byId(node);
if(!_3cf){
_3cf=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_3cf,0,1,_3d0,_3d1);
};
dojo.fx.html.fade=function(node,_3d3,_3d4,_3d5,_3d6,_3d7){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_3d4],[_3d5]),_3d3||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_3d6){
dojo.event.connect(anim,"onEnd",function(e){
_3d6(node,anim);
});
}
if(!_3d7){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_3dc,_3dd,_3de,_3df){
if(!dojo.lang.isNumber(_3dc)){
var tmp=_3dc;
_3dc=_3dd;
_3dd=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slide(node,_3dc,[left,top],_3dd,_3de,_3df);
};
dojo.fx.html.slideBy=function(node,_3e5,_3e6,_3e7,_3e8){
if(!dojo.lang.isNumber(_3e5)){
var tmp=_3e5;
_3e5=_3e6;
_3e6=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slideTo(node,_3e5,[left+_3e6[0],top+_3e6[1]],_3e7,_3e8);
};
dojo.fx.html.slide=function(node,_3ee,_3ef,_3f0,_3f1,_3f2){
if(!dojo.lang.isNumber(_3ee)){
var tmp=_3ee;
_3ee=_3f0;
_3f0=_3ef;
_3ef=tmp;
}
node=dojo.byId(node);
if(dojo.style.getComputedStyle(node,"position")=="static"){
node.style.position="relative";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_3ef,_3f0),_3ee||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_3f1){
dojo.event.connect(anim,"onEnd",function(e){
_3f1(node,anim);
});
}
if(!_3f2){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_3f8,_3f9,_3fa,_3fb,_3fc){
if(!dojo.lang.isNumber(_3f8)){
var tmp=_3f8;
_3f8=_3f9;
_3f9=tmp;
}
node=dojo.byId(node);
var _3fe=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _400=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_3fe.length>3){
_3fe.pop();
}
var rgb=new dojo.graphics.color.Color(_3f9).toRgb();
var anim=dojo.fx.html.colorFade(node,_3f8||dojo.fx.duration,_3f9,_3fe,_3fb,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_400){
node.style.backgroundColor="transparent";
}
});
if(_3fa>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_3fc){
setTimeout(function(){
anim.play(true);
},_3fa);
}
}else{
if(!_3fc){
anim.play(true);
}
}
return anim;
};
dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeOut=function(node,_405,_406,_407,_408,_409){
if(!dojo.lang.isNumber(_405)){
var tmp=_405;
_405=_406;
_406=tmp;
}
node=dojo.byId(node);
var _40b=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_406).toRgb();
var anim=dojo.fx.html.colorFade(node,_405||dojo.fx.duration,_40b,rgb,_408,_407>0||_409);
if(_407>0){
node.style.backgroundColor="rgb("+_40b.join(",")+")";
if(!_409){
setTimeout(function(){
anim.play(true);
},_407);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_40f,_410,_411,_412,_413){
if(!dojo.lang.isNumber(_40f)){
var tmp=_40f;
_40f=_411;
_411=_410;
_410=tmp;
}
node=dojo.byId(node);
var _415=new dojo.graphics.color.Color(_410).toRgb();
var _416=new dojo.graphics.color.Color(_411).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_415,_416),_40f||dojo.fx.duration,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_412){
dojo.event.connect(anim,"onEnd",function(e){
_412(node,anim);
});
}
if(!_413){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_41b,_41c,_41d){
node=dojo.byId(node);
var _41e=dojo.style.getStyle(node,"overflow");
if(_41e=="visible"){
node.style.overflow="hidden";
}
node.style.height=0;
dojo.style.show(node);
var anim=dojo.fx.html.wipe(node,_41b,0,node.scrollHeight,null,true);
dojo.event.connect(anim,"onEnd",function(){
node.style.overflow=_41e;
node.style.visibility="";
node.style.height="auto";
if(_41c){
_41c(node,anim);
}
});
if(!_41d){
anim.play();
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_421,_422,_423){
node=dojo.byId(node);
var _424=dojo.style.getStyle(node,"overflow");
if(_424=="visible"){
node.style.overflow="hidden";
}
var anim=dojo.fx.html.wipe(node,_421,node.offsetHeight,0,null,true);
dojo.event.connect(anim,"onEnd",function(){
dojo.style.hide(node);
node.style.visibility="hidden";
node.style.overflow=_424;
if(_422){
_422(node,anim);
}
});
if(!_423){
anim.play();
}
return anim;
};
dojo.fx.html.wipe=function(node,_427,_428,_429,_42a,_42b){
node=dojo.byId(node);
var anim=new dojo.animation.Animation([[_428],[_429]],_427||dojo.fx.duration,1);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=e.x+"px";
});
dojo.event.connect(anim,"onEnd",function(){
if(_42a){
_42a(node,anim);
}
});
if(!_42b){
anim.play();
}
return anim;
};
dojo.fx.html.wiper=function(node,_42f){
this.node=dojo.byId(node);
if(_42f){
dojo.event.connect(dojo.byId(_42f),"onclick",this,"toggle");
}
};
dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){
if(!this._anim){
var type="wipe"+(dojo.style.isVisible(this.node)?"Out":"In");
this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback"));
}
},_callback:function(){
this._anim=null;
}});
dojo.fx.html.explode=function(_431,_432,_433,_434,_435){
var _436=dojo.style.toCoordinateArray(_431);
var _437=document.createElement("div");
with(_437.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_437);
_432=dojo.byId(_432);
with(_432.style){
visibility="hidden";
display="block";
}
var _438=dojo.style.toCoordinateArray(_432);
with(_432.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_436,_438),_433||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_437.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_437.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_432.style.display="block";
_437.parentNode.removeChild(_437);
if(_434){
_434(_432,anim);
}
});
if(!_435){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_43c,end,_43e,_43f,_440){
var _441=dojo.style.toCoordinateArray(_43c);
var _442=dojo.style.toCoordinateArray(end);
_43c=dojo.byId(_43c);
var _443=document.createElement("div");
with(_443.style){
position="absolute";
border="1px solid black";
display="none";
}
document.body.appendChild(_443);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_441,_442),_43e||dojo.fx.duration,0);
dojo.event.connect(anim,"onBegin",function(e){
_43c.style.display="none";
_443.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_443.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_443.parentNode.removeChild(_443);
if(_43f){
_43f(_43c,anim);
}
});
if(!_440){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_447,_448){
_447=dojo.byId(_447);
_448=dojo.byId(_448);
var _449=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _44a=null;
var _44b=null;
var _44c=null;
var _44d=null;
var _44e=null;
var _44f=null;
this.showing=false;
this.onBeforeExplode=null;
this.onAfterExplode=null;
this.onBeforeImplode=null;
this.onAfterImplode=null;
this.onExploding=null;
this.onImploding=null;
this.timeShow=function(){
clearTimeout(_44c);
_44c=setTimeout(_449.show,_449.waitToShow);
};
this.show=function(){
clearTimeout(_44c);
clearTimeout(_44d);
if((_44b&&_44b.status()=="playing")||(_44a&&_44a.status()=="playing")||_449.showing){
return;
}
if(typeof _449.onBeforeExplode=="function"){
_449.onBeforeExplode(_447,_448);
}
_44a=dojo.fx.html.explode(_447,_448,_449.timeToShow,function(e){
_449.showing=true;
if(typeof _449.onAfterExplode=="function"){
_449.onAfterExplode(_447,_448);
}
});
if(typeof _449.onExploding=="function"){
dojo.event.connect(_44a,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_44c);
clearTimeout(_44d);
if(_449.showing){
_44d=setTimeout(_449.hide,_449.waitToHide);
}
};
this.hide=function(){
clearTimeout(_44c);
clearTimeout(_44d);
if(_44a&&_44a.status()=="playing"){
return;
}
_449.showing=false;
if(typeof _449.onBeforeImplode=="function"){
_449.onBeforeImplode(_447,_448);
}
_44b=dojo.fx.html.implode(_448,_447,_449.timeToHide,function(e){
if(typeof _449.onAfterImplode=="function"){
_449.onAfterImplode(_447,_448);
}
});
if(typeof _449.onImploding=="function"){
dojo.event.connect(_44b,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_447,"onclick",function(e){
if(_449.showing){
_449.hide();
}else{
_449.show();
}
});
dojo.event.connect(_447,"onmouseover",function(e){
if(_449.autoShow){
_449.timeShow();
}
});
dojo.event.connect(_447,"onmouseout",function(e){
if(_449.autoHide){
_449.timeHide();
}
});
dojo.event.connect(_448,"onmouseover",function(e){
clearTimeout(_44d);
});
dojo.event.connect(_448,"onmouseout",function(e){
if(_449.autoHide){
_449.timeHide();
}
});
dojo.event.connect(document.documentElement||document.body,"onclick",function(e){
function isDesc(node,_459){
while(node){
if(node==_459){
return true;
}
node=node.parentNode;
}
return false;
}
if(_449.autoHide&&_449.showing&&!isDesc(e.target,_448)&&!isDesc(e.target,_447)){
_449.hide();
}
});
return this;
};
dojo.fx.html.toggle={};
dojo.fx.html.toggle.plain={show:function(node,_45b,_45c,_45d){
dojo.style.show(node);
if(dojo.lang.isFunction(_45d)){
_45d();
}
},hide:function(node,_45f,_460,_461){
dojo.style.hide(node);
if(dojo.lang.isFunction(_461)){
_461();
}
}};
dojo.fx.html.toggle.fade={show:function(node,_463,_464,_465){
dojo.fx.html.fadeShow(node,_463,_465);
},hide:function(node,_467,_468,_469){
dojo.fx.html.fadeHide(node,_467,_469);
}};
dojo.fx.html.toggle.wipe={show:function(node,_46b,_46c,_46d){
dojo.fx.html.wipeIn(node,_46b,_46d);
},hide:function(node,_46f,_470,_471){
dojo.fx.html.wipeOut(node,_46f,_471);
}};
dojo.fx.html.toggle.explode={show:function(node,_473,_474,_475){
dojo.fx.html.explode(_474||[0,0,0,0],node,_473,_475);
},hide:function(node,_477,_478,_479){
dojo.fx.html.implode(node,_478||[0,0,0,0],_477,_479);
}};
dojo.lang.mixin(dojo.fx,dojo.fx.html);
dojo.provide("dojo.io.IO");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_47b,_47c,_47d){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_47b){
this.mimetype=_47b;
}
if(_47c){
this.transport=_47c;
}
if(arguments.length>=4){
this.changeUrl=_47d;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){
},error:function(type,_482){
},timeout:function(type){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_484){
if(_484["url"]){
_484.url=_484.url.toString();
}
if(_484["formNode"]){
_484.formNode=dojo.byId(_484.formNode);
}
if(!_484["method"]&&_484["formNode"]&&_484["formNode"].method){
_484.method=_484["formNode"].method;
}
if(!_484["handle"]&&_484["handler"]){
_484.handle=_484.handler;
}
if(!_484["load"]&&_484["loaded"]){
_484.load=_484.loaded;
}
if(!_484["changeUrl"]&&_484["changeURL"]){
_484.changeUrl=_484.changeURL;
}
_484.encoding=dojo.lang.firstValued(_484["encoding"],djConfig["bindEncoding"],"");
_484.sendTransport=dojo.lang.firstValued(_484["sendTransport"],djConfig["ioSendTransport"],false);
var _485=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_485(_484[fn])){
continue;
}
if(_485(_484["handle"])){
_484[fn]=_484.handle;
}
}
dojo.lang.mixin(this,_484);
}});
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(_48c){
if(!(_48c instanceof dojo.io.Request)){
try{
_48c=new dojo.io.Request(_48c);
}
catch(e){
dojo.debug(e);
}
}
var _48d="";
if(_48c["transport"]){
_48d=_48c["transport"];
if(!this[_48d]){
return _48c;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_48c))){
_48d=tmp;
}
}
if(_48d==""){
return _48c;
}
}
var xhr=this[_48d].bind(_48c);
_48c.bindSuccess=true;
return xhr;
};
dojo.io.queueBind=function(_491){
if(!(_491 instanceof dojo.io.Request)){
try{
_491=new dojo.io.Request(_491);
}
catch(e){
dojo.debug(e);
}
}
var _492=_491.load;
_491.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_492.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _494=_491.error;
_491.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_494.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_491);
dojo.io._dispatchNextQueueBind();
return _491;
};
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,_497,last){
var enc=/utf/i.test(_497||"")?encodeURIComponent:dojo.string.encodeAscii;
var _49a=[];
var _49b=new Object();
for(var name in map){
var _49d=function(elt){
var val=enc(name)+"="+enc(elt);
_49a[(last==name)?"push":"unshift"](val);
};
if(!_49b[name]){
var _4a0=map[name];
if(dojo.lang.isArray(_4a0)){
dojo.lang.forEach(_4a0,_49d);
}else{
_49d(_4a0);
}
}
}
return _49a.join("&");
};
dojo.io.setIFrameSrc=function(_4a1,src,_4a3){
try{
var r=dojo.render.html;
if(!_4a3){
if(r.safari){
_4a1.location=src;
}else{
frames[_4a1.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_4a1.contentWindow.document;
}else{
if(r.safari){
idoc=_4a1.document;
}else{
idoc=_4a1.contentWindow;
}
}
if(!idoc){
_4a1.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(_4a6,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _4a6.replace(/\%\{(\w+)\}/g,function(_4a9,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_4ac,_4ad){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _4ac){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_4ac[name]);
}
if(_4ad){
str=str.replace(/%\{([^\}\s]+)\}/g,"");
}
return str;
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _4b1=str.split(" ");
for(var i=0;i<_4b1.length;i++){
_4b1[i]=_4b1[i].charAt(0).toUpperCase()+_4b1[i].substring(1);
}
return _4b1.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 _4b6=escape(str);
var _4b7,re=/%u([0-9A-F]{4})/i;
while((_4b7=_4b6.match(re))){
var num=Number("0x"+_4b7[1]);
var _4b9=escape("&#"+num+";");
ret+=_4b6.substring(0,_4b7.index)+_4b9;
_4b6=_4b6.substring(_4b7.index+_4b7[0].length);
}
ret+=_4b6.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,_4be){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_4be){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}else{
return str.substring(0,len).replace(/\.+$/,"")+"...";
}
};
dojo.string.endsWith=function(str,end,_4c7){
if(_4c7){
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,_4cb,_4cc){
if(_4cc){
str=str.toLowerCase();
_4cb=_4cb.toLowerCase();
}
return str.indexOf(_4cb)==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,_4d2){
if(_4d2=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_4d2=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n");
text=text.replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_4d4){
var _4d5=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_4d4){
_4d5.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_4d5.push(str.substr(prevcomma));
return _4d5;
};
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={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash};
},addToHistory:function(args){
var hash=null;
if(!this.historyIframe){
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
(document.body||document.getElementsByTagName("body")[0]).appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if((!args["changeUrl"])||(dojo.render.html.ie)){
var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
}
if(args["changeUrl"]){
this.changingUrl=true;
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _4db=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_4dd){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_4db.apply(this,[_4dd]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _4de=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_4e0){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_4de){
_4de.apply(this,[_4e0]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"kwArgs":args,"urlHash":hash});
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_4e3){
if(!dojo.render.html.opera){
var _4e4=this._getUrlQuery(_4e3.href);
if(_4e4==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_4e4==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_4e4==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _4e5=this.historyStack.pop();
if(!_4e5){
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(_4e5);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_getUrlQuery:function(url){
var _4e9=url.split("?");
if(_4e9.length<2){
return null;
}else{
return _4e9[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.io.checkChildrenForFile=function(node){
var _4eb=false;
var _4ec=node.getElementsByTagName("input");
dojo.lang.forEach(_4ec,function(_4ed){
if(_4eb){
return;
}
if(_4ed.getAttribute("type")=="file"){
_4eb=true;
}
});
return _4eb;
};
dojo.io.formHasFile=function(_4ee){
return dojo.io.checkChildrenForFile(_4ee);
};
dojo.io.updateNode=function(node,_4f0){
node=dojo.byId(node);
var args=_4f0;
if(dojo.lang.isString(_4f0)){
args={url:_4f0};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
if(dojo["event"]){
try{
dojo.event.browser.clean(node.firstChild);
}
catch(e){
}
}
node.removeChild(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(type,["file","submit","image","reset","button"]);
};
dojo.io.encodeForm=function(_4f7,_4f8,_4f9){
if((!_4f7)||(!_4f7.tagName)||(!_4f7.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_4f9){
_4f9=dojo.io.formFilter;
}
var enc=/utf/i.test(_4f8||"")?encodeURIComponent:dojo.string.encodeAscii;
var _4fb=[];
for(var i=0;i<_4f7.elements.length;i++){
var elm=_4f7.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_4f9(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){
_4fb.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_4fb.push(name+"="+enc(elm.value));
}
}else{
_4fb.push(name+"="+enc(elm.value));
}
}
}
var _501=_4f7.getElementsByTagName("input");
for(var i=0;i<_501.length;i++){
var _502=_501[i];
if(_502.type.toLowerCase()=="image"&&_502.form==_4f7&&_4f9(_502)){
var name=enc(_502.name);
_4fb.push(name+"="+enc(_502.value));
_4fb.push(name+".x=0");
_4fb.push(name+".y=0");
}
}
return _4fb.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(node.type.toLowerCase(),["submit","button"])){
this.connect(node,"onclick","click");
}
}
var _508=form.getElementsByTagName("input");
for(var i=0;i<_508.length;i++){
var _509=_508[i];
if(_509.type.toLowerCase()=="image"&&_509.form==form){
this.connect(_509,"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 _510=false;
if(node.disabled||!node.name){
_510=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_510=node==this.clickedButton;
}else{
_510=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _510;
},connect:function(_511,_512,_513){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_511,_512,this,_513);
}else{
var fcn=dojo.lang.hitch(this,_513);
_511[_512]=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 _516=this;
var _517={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_519,_51a){
return url+"|"+_519+"|"+_51a.toLowerCase();
}
function addToCache(url,_51c,_51d,http){
_517[getCacheKey(url,_51c,_51d)]=http;
}
function getFromCache(url,_520,_521){
return _517[getCacheKey(url,_520,_521)];
}
this.clearCache=function(){
_517={};
};
function doLoad(_522,http,url,_525,_526){
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(_522.method.toLowerCase()=="head"){
var _528=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _528;
};
var _529=_528.split(/[\r\n]+/g);
for(var i=0;i<_529.length;i++){
var pair=_529[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_522.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_522.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_522.mimetype=="application/xml")||(_522.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(_526){
addToCache(url,_525,_522.method,http);
}
_522[(typeof _522.load=="function")?"load":"handle"]("load",ret,http,_522);
}else{
var _52c=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_522[(typeof _522.error=="function")?"error":"handle"]("error",_52c,http,_522);
}
}
function setHeaders(http,_52e){
if(_52e["headers"]){
for(var _52f in _52e["headers"]){
if(_52f.toLowerCase()=="content-type"&&!_52e["contentType"]){
_52e["contentType"]=_52e["headers"][_52f];
}else{
http.setRequestHeader(_52f,_52e["headers"][_52f]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
for(var x=this.inFlight.length-1;x>=0;x--){
var tif=this.inFlight[x];
if(!tif){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
};
var _533=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_534){
return _533&&dojo.lang.inArray((_534["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_534["formNode"]&&dojo.io.formHasFile(_534["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_535){
if(!_535["url"]){
if(!_535["formNode"]&&(_535["backButton"]||_535["back"]||_535["changeUrl"]||_535["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(_535);
return true;
}
}
var url=_535.url;
var _537="";
if(_535["formNode"]){
var ta=_535.formNode.getAttribute("action");
if((ta)&&(!_535["url"])){
url=ta;
}
var tp=_535.formNode.getAttribute("method");
if((tp)&&(!_535["method"])){
_535.method=tp;
}
_537+=dojo.io.encodeForm(_535.formNode,_535.encoding,_535["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_535["file"]){
_535.method="post";
}
if(!_535["method"]){
_535.method="get";
}
if(_535.method.toLowerCase()=="get"){
_535.multipart=false;
}else{
if(_535["file"]){
_535.multipart=true;
}else{
if(!_535["multipart"]){
_535.multipart=false;
}
}
}
if(_535["backButton"]||_535["back"]||_535["changeUrl"]){
dojo.undo.browser.addToHistory(_535);
}
var _53a=_535["content"]||{};
if(_535.sendTransport){
_53a["dojo.transport"]="xmlhttp";
}
do{
if(_535.postContent){
_537=_535.postContent;
break;
}
if(_53a){
_537+=dojo.io.argsFromMap(_53a,_535.encoding);
}
if(_535.method.toLowerCase()=="get"||!_535.multipart){
break;
}
var t=[];
if(_537.length){
var q=_537.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(_535.file){
if(dojo.lang.isArray(_535.file)){
for(var i=0;i<_535.file.length;++i){
var o=_535.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=_535.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+"--","");
_537=t.join("\r\n");
}
}while(false);
var _540=_535["sync"]?false:true;
var _541=_535["preventCache"]||(this.preventCache==true&&_535["preventCache"]!=false);
var _542=_535["useCache"]==true||(this.useCache==true&&_535["useCache"]!=false);
if(!_541&&_542){
var _543=getFromCache(url,_537,_535.method);
if(_543){
doLoad(_535,_543,url,_537,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_535);
var _545=false;
if(_540){
var _546=this.inFlight.push({"req":_535,"http":http,"url":url,"query":_537,"useCache":_542,"startTime":_535.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_535.method.toLowerCase()=="post"){
http.open("POST",url,_540);
setHeaders(http,_535);
http.setRequestHeader("Content-Type",_535.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_535.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_537);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_535,{status:404},url,_537,_542);
}
}else{
var _547=url;
if(_537!=""){
_547+=(_547.indexOf("?")>-1?"&":"?")+_537;
}
if(_541){
_547+=(dojo.string.endsWithAny(_547,"?","&")?"":(_547.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_535.method.toUpperCase(),_547,_540);
setHeaders(http,_535);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_535,{status:404},url,_537,_542);
}
}
if(!_540){
doLoad(_535,http,url,_537,_542);
}
_535.abort=function(){
return http.abort();
};
return http;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_549,days,path,_54c,_54d){
var _54e=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_54e=d.toGMTString();
}
_549=escape(_549);
document.cookie=name+"="+_549+";"+(_54e!=-1?" expires="+_54e+";":"")+(path?"path="+path:"")+(_54c?"; domain="+_54c:"")+(_54d?"; 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 _552=document.cookie.substring(idx+name.length+1);
var end=_552.indexOf(";");
if(end==-1){
end=_552.length;
}
_552=_552.substring(0,end);
_552=unescape(_552);
return _552;
};
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,_559,_55a,_55b){
if(arguments.length==5){
_55b=_559;
_559=null;
_55a=null;
}
var _55c=[],cookie,value="";
if(!_55b){
cookie=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!cookie){
cookie={};
}
for(var prop in obj){
if(prop==null){
delete cookie[prop];
}else{
if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){
cookie[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in cookie){
_55c.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_55c.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_559,_55a);
};
dojo.io.cookie.getObjectCookie=function(name){
var _55f=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_55f={};
var _560=cookie.split("&");
for(var i=0;i<_560.length;i++){
var pair=_560[i].split("=");
var _563=pair[1];
if(isNaN(_563)){
_563=unescape(pair[1]);
}
_55f[unescape(pair[0])]=_563;
}
}
return _55f;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _564=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_564=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");

