/*
	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.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,_b2,_b3){
var out="";
for(var i=0;i<_b2;i++){
out+=str;
if(_b3&&i<_b2-1){
out+=_b3;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.lang.common");
dojo.lang._mixin=function(obj,_c2){
var _c3={};
for(var x in _c2){
if(typeof _c3[x]=="undefined"||_c3[x]!=_c2[x]){
obj[x]=_c2[x];
}
}
if(dojo.render.html.ie&&dojo.lang.isFunction(_c2["toString"])&&_c2["toString"]!=obj["toString"]){
obj.toString=_c2.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_c6){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_c8,_c9){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_c8.prototype,arguments[i]);
}
return _c8;
};
dojo.lang.find=function(arr,val,_cd,_ce){
if(!dojo.lang.isArrayLike(arr)&&dojo.lang.isArrayLike(val)){
var a=arr;
arr=val;
val=a;
}
var _d0=dojo.lang.isString(arr);
if(_d0){
arr=arr.split("");
}
if(_ce){
var _d1=-1;
var i=arr.length-1;
var end=-1;
}else{
var _d1=1;
var i=0;
var end=arr.length;
}
if(_cd){
while(i!=end){
if(arr[i]===val){
return i;
}
i+=_d1;
}
}else{
while(i!=end){
if(arr[i]==val){
return i;
}
i+=_d1;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_d6){
return dojo.lang.find(arr,val,_d6,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.extras");
dojo.lang.setTimeout=function(_e2,_e3){
var _e4=window,argsStart=2;
if(!dojo.lang.isFunction(_e2)){
_e4=_e2;
_e2=_e3;
_e3=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_e2)){
_e2=_e4[_e2];
}
var _e5=[];
for(var i=argsStart;i<arguments.length;i++){
_e5.push(arguments[i]);
}
return setTimeout(function(){
_e2.apply(_e4,_e5);
},_e3);
};
dojo.lang.getNameInObj=function(ns,_e8){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_e8){
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(_ed,_ee,_ef){
with(dojo.parseObjPath(_ed,_ee,_ef)){
return dojo.evalProp(prop,obj,_ef);
}
};
dojo.lang.setObjPathValue=function(_f0,_f1,_f2,_f3){
if(arguments.length<4){
_f3=true;
}
with(dojo.parseObjPath(_f0,_f2,_f3)){
if(obj&&(_f3||(prop in obj))){
obj[prop]=_f1;
}
}
};
dojo.provide("dojo.io.IO");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_f5,_f6,_f7){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_f5){
this.mimetype=_f5;
}
if(_f6){
this.transport=_f6;
}
if(arguments.length>=4){
this.changeUrl=_f7;
}
}
};
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(_f8,_f9,evt){
},error:function(_fb,_fc){
},timeout:function(_fd){
},handle:function(){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_fe){
if(_fe["url"]){
_fe.url=_fe.url.toString();
}
if(_fe["formNode"]){
_fe.formNode=dojo.byId(_fe.formNode);
}
if(!_fe["method"]&&_fe["formNode"]&&_fe["formNode"].method){
_fe.method=_fe["formNode"].method;
}
if(!_fe["handle"]&&_fe["handler"]){
_fe.handle=_fe.handler;
}
if(!_fe["load"]&&_fe["loaded"]){
_fe.load=_fe.loaded;
}
if(!_fe["changeUrl"]&&_fe["changeURL"]){
_fe.changeUrl=_fe.changeURL;
}
_fe.encoding=dojo.lang.firstValued(_fe["encoding"],djConfig["bindEncoding"],"");
_fe.sendTransport=dojo.lang.firstValued(_fe["sendTransport"],djConfig["ioSendTransport"],false);
var _ff=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_ff(_fe[fn])){
continue;
}
if(_ff(_fe["handle"])){
_fe[fn]=_fe.handle;
}
}
dojo.lang.mixin(this,_fe);
}});
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(_106){
if(!(_106 instanceof dojo.io.Request)){
try{
_106=new dojo.io.Request(_106);
}
catch(e){
dojo.debug(e);
}
}
var _107="";
if(_106["transport"]){
_107=_106["transport"];
if(!this[_107]){
return _106;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_106))){
_107=tmp;
}
}
if(_107==""){
return _106;
}
}
this[_107].bind(_106);
_106.bindSuccess=true;
return _106;
};
dojo.io.queueBind=function(_10a){
if(!(_10a instanceof dojo.io.Request)){
try{
_10a=new dojo.io.Request(_10a);
}
catch(e){
dojo.debug(e);
}
}
var _10b=_10a.load;
_10a.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_10b.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _10d=_10a.error;
_10a.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_10d.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_10a);
dojo.io._dispatchNextQueueBind();
return _10a;
};
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,_110,last){
var enc=/utf/i.test(_110||"")?encodeURIComponent:dojo.string.encodeAscii;
var _113=[];
var _114=new Object();
for(var name in map){
var _116=function(elt){
var val=enc(name)+"="+enc(elt);
_113[(last==name)?"push":"unshift"](val);
};
if(!_114[name]){
var _119=map[name];
if(dojo.lang.isArray(_119)){
dojo.lang.forEach(_119,_116);
}else{
_116(_119);
}
}
}
return _113.join("&");
};
dojo.io.setIFrameSrc=function(_11a,src,_11c){
try{
var r=dojo.render.html;
if(!_11c){
if(r.safari){
_11a.location=src;
}else{
frames[_11a.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_11a.contentWindow.document;
}else{
if(r.safari){
idoc=_11a.document;
}else{
idoc=_11a.contentWindow;
}
}
if(!idoc){
_11a.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_120,days,path,_123,_124){
var _125=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_125=d.toGMTString();
}
_120=escape(_120);
document.cookie=name+"="+_120+";"+(_125!=-1?" expires="+_125+";":"")+(path?"path="+path:"")+(_123?"; domain="+_123:"")+(_124?"; 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 _129=document.cookie.substring(idx+name.length+1);
var end=_129.indexOf(";");
if(end==-1){
end=_129.length;
}
_129=_129.substring(0,end);
_129=unescape(_129);
return _129;
};
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,_130,_131,_132){
if(arguments.length==5){
_132=_130;
_130=null;
_131=null;
}
var _133=[],cookie,value="";
if(!_132){
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){
_133.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_133.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_130,_131);
};
dojo.io.cookie.getObjectCookie=function(name){
var _136=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_136={};
var _137=cookie.split("&");
for(var i=0;i<_137.length;i++){
var pair=_137[i].split("=");
var _13a=pair[1];
if(isNaN(_13a)){
_13a=unescape(pair[1]);
}
_136[unescape(pair[0])]=_13a;
}
}
return _136;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _13b=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_13b=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.lang.array");
dojo.lang.has=function(obj,name){
try{
return (typeof obj[name]!="undefined");
}
catch(e){
return false;
}
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _140=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_140++;
break;
}
}
return (_140==0);
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.map=function(arr,obj,_144){
var _145=dojo.lang.isString(arr);
if(_145){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_144)){
_144=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_144){
var _146=obj;
obj=_144;
_144=_146;
}
}
if(Array.map){
var _147=Array.map(arr,_144,obj);
}else{
var _147=[];
for(var i=0;i<arr.length;++i){
_147.push(_144.call(obj,arr[i]));
}
}
if(_145){
return _147.join("");
}else{
return _147;
}
};
dojo.lang.forEach=function(_149,_14a,_14b){
if(dojo.lang.isString(_149)){
_149=_149.split("");
}
if(Array.forEach){
Array.forEach(_149,_14a,_14b);
}else{
if(!_14b){
_14b=dj_global;
}
for(var i=0,l=_149.length;i<l;i++){
_14a.call(_14b,_149[i],i,_149);
}
}
};
dojo.lang._everyOrSome=function(_14d,arr,_14f,_150){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[(_14d)?"every":"some"](arr,_14f,_150);
}else{
if(!_150){
_150=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _152=_14f.call(_150,arr[i],i,arr);
if((_14d)&&(!_152)){
return false;
}else{
if((!_14d)&&(_152)){
return true;
}
}
}
return (_14d)?true:false;
}
};
dojo.lang.every=function(arr,_154,_155){
return this._everyOrSome(true,arr,_154,_155);
};
dojo.lang.some=function(arr,_157,_158){
return this._everyOrSome(false,arr,_157,_158);
};
dojo.lang.filter=function(arr,_15a,_15b){
var _15c=dojo.lang.isString(arr);
if(_15c){
arr=arr.split("");
}
if(Array.filter){
var _15d=Array.filter(arr,_15a,_15b);
}else{
if(!_15b){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_15b=dj_global;
}
var _15d=[];
for(var i=0;i<arr.length;i++){
if(_15a.call(_15b,arr[i],i,arr)){
_15d.push(arr[i]);
}
}
}
if(_15c){
return _15d.join("");
}else{
return _15d;
}
};
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(_162,_163){
var _164=[];
for(var i=_163||0;i<_162.length;i++){
_164.push(_162[i]);
}
return _164;
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_166,_167){
if(dojo.lang.isString(_167)){
var fcn=_166[_167];
}else{
var fcn=_167;
}
return function(){
return fcn.apply(_166,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_169,_16a,_16b){
var nso=(_16a||dojo.lang.anon);
if((_16b)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
if(nso[x]===_169){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_169;
return ret;
};
dojo.lang.forward=function(_16f){
return function(){
return this[_16f].apply(this,arguments);
};
};
dojo.lang.curry=function(ns,func){
var _172=[];
ns=ns||dj_global;
if(dojo.lang.isString(func)){
func=ns[func];
}
for(var x=2;x<arguments.length;x++){
_172.push(arguments[x]);
}
var _174=(func["__preJoinArity"]||func.length)-_172.length;
function gather(_175,_176,_177){
var _178=_177;
var _179=_176.slice(0);
for(var x=0;x<_175.length;x++){
_179.push(_175[x]);
}
_177=_177-_175.length;
if(_177<=0){
var res=func.apply(ns,_179);
_177=_178;
return res;
}else{
return function(){
return gather(arguments,_179,_177);
};
}
}
return gather([],_172,_174);
};
dojo.lang.curryArguments=function(ns,func,args,_17f){
var _180=[];
var x=_17f||0;
for(x=_17f;x<args.length;x++){
_180.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[ns,func].concat(_180));
};
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,_186,_187){
if(!farr.length){
if(typeof _187=="function"){
_187();
}
return;
}
if((typeof _186=="undefined")&&(typeof cb=="number")){
_186=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_186){
_186=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_186,_187);
},_186);
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_188,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _188.replace(/\%\{(\w+)\}/g,function(_18b,key){
return map[key]||dojo.raise("Substitution not found: "+key);
});
};
dojo.string.paramString=function(str,_18e,_18f){
dojo.deprecated("dojo.string.paramString","use dojo.string.substituteParams instead","0.4");
for(var name in _18e){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_18e[name]);
}
if(_18f){
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 _193=str.split(" ");
for(var i=0;i<_193.length;i++){
_193[i]=_193[i].charAt(0).toUpperCase()+_193[i].substring(1);
}
return _193.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 _198=escape(str);
var _199,re=/%u([0-9A-F]{4})/i;
while((_199=_198.match(re))){
var num=Number("0x"+_199[1]);
var _19b=escape("&#"+num+";");
ret+=_198.substring(0,_199.index)+_19b;
_198=_198.substring(_199.index+_199[0].length);
}
ret+=_198.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,_1a0){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1a0){
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,_1a9){
if(_1a9){
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,_1ad,_1ae){
if(_1ae){
str=str.toLowerCase();
_1ad=_1ad.toLowerCase();
}
return str.indexOf(_1ad)==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,_1b4){
if(_1b4=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1b4=="\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,_1b6){
var _1b7=[];
for(var i=0,prevcomma=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1b6){
_1b7.push(str.substring(prevcomma,i));
prevcomma=i+1;
}
}
_1b7.push(str.substr(prevcomma));
return _1b7;
};
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 _1bb=node.tagName;
if(_1bb.substr(0,5).toLowerCase()!="dojo:"){
if(_1bb.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_1bb.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 _1bd=node.className||node.getAttribute("class");
if((_1bd)&&(_1bd.indexOf)&&(_1bd.indexOf("dojo-")!=-1)){
var _1be=_1bd.split(" ");
for(var x=0;x<_1be.length;x++){
if((_1be[x].length>5)&&(_1be[x].indexOf("dojo-")>=0)){
return "dojo:"+_1be[x].substr(5).toLowerCase();
}
}
}
}
}
return _1bb.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(_1c1,_1c2){
var node=_1c1.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_1c2&&node&&node.tagName&&node.tagName.toLowerCase()!=_1c2.toLowerCase()){
node=dojo.dom.nextElement(node,_1c2);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_1c4,_1c5){
var node=_1c4.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_1c5&&node&&node.tagName&&node.tagName.toLowerCase()!=_1c5.toLowerCase()){
node=dojo.dom.prevElement(node,_1c5);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_1c8){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1c8&&_1c8.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_1c8);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_1ca){
if(!node){
return null;
}
if(_1ca){
_1ca=_1ca.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_1ca&&_1ca.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_1ca);
}
return node;
};
dojo.dom.moveChildren=function(_1cb,_1cc,trim){
var _1ce=0;
if(trim){
while(_1cb.hasChildNodes()&&_1cb.firstChild.nodeType==dojo.dom.TEXT_NODE){
_1cb.removeChild(_1cb.firstChild);
}
while(_1cb.hasChildNodes()&&_1cb.lastChild.nodeType==dojo.dom.TEXT_NODE){
_1cb.removeChild(_1cb.lastChild);
}
}
while(_1cb.hasChildNodes()){
_1cc.appendChild(_1cb.firstChild);
_1ce++;
}
return _1ce;
};
dojo.dom.copyChildren=function(_1cf,_1d0,trim){
var _1d2=_1cf.cloneNode(true);
return this.moveChildren(_1d2,_1d0,trim);
};
dojo.dom.removeChildren=function(node){
var _1d4=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _1d4;
};
dojo.dom.replaceChildren=function(node,_1d6){
dojo.dom.removeChildren(node);
node.appendChild(_1d6);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_1d9,_1da){
var _1db=[];
var _1dc=dojo.lang.isFunction(_1d9);
while(node){
if(!_1dc||_1d9(node)){
_1db.push(node);
}
if(_1da&&_1db.length>0){
return _1db[0];
}
node=node.parentNode;
}
if(_1da){
return null;
}
return _1db;
};
dojo.dom.getAncestorsByTag=function(node,tag,_1df){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_1df);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_1e4,_1e5){
if(_1e5&&node){
node=node.parentNode;
}
while(node){
if(node==_1e4){
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 _1e8=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_1e8.length;i++){
try{
doc=new ActiveXObject(_1e8[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,_1eb){
if(!_1eb){
_1eb="text/xml";
}
if(!dj_undef("DOMParser")){
var _1ec=new DOMParser();
return _1ec.parseFromString(str,_1eb);
}else{
if(!dj_undef("ActiveXObject")){
var _1ed=dojo.dom.createDocument();
if(_1ed){
_1ed.async=false;
_1ed.loadXML(str);
return _1ed;
}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 _1ef=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_1ef.importNode(tmp.childNodes.item(i),true);
}
return _1ef;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_1f2){
if(_1f2.firstChild){
_1f2.insertBefore(node,_1f2.firstChild);
}else{
_1f2.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_1f5){
if(_1f5!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _1f6=ref.parentNode;
_1f6.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_1f9){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_1f9!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_1f9);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_1fd){
if((!node)||(!ref)||(!_1fd)){
return false;
}
switch(_1fd.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,_1ff,_200){
var _201=_1ff.childNodes;
if(!_201.length){
_1ff.appendChild(node);
return true;
}
var _202=null;
for(var i=0;i<_201.length;i++){
var _204=_201.item(i)["getAttribute"]?parseInt(_201.item(i).getAttribute("dojoinsertionindex")):-1;
if(_204<_200){
_202=_201.item(i);
}
}
if(_202){
return dojo.dom.insertAfter(node,_202);
}else{
return dojo.dom.insertBefore(node,_201.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _207="";
if(node==null){
return _207;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_207+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_207+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _207;
}
};
dojo.dom.collectionToArray=function(_209){
dojo.deprecated("dojo.dom.collectionToArray","use dojo.lang.toArray instead","0.4");
return dojo.lang.toArray(_209);
};
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.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 _211=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_213){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_211.apply(this,[_213]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
this.forwardStack=[];
var _214=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_216){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_214){
_214.apply(this,[_216]);
}
};
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,_219){
if(!dojo.render.html.opera){
var _21a=this._getUrlQuery(_219.href);
if(_21a==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_21a==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_21a==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _21b=this.historyStack.pop();
if(!_21b){
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(_21b);
},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 _21f=url.split("?");
if(_21f.length<2){
return null;
}else{
return _21f[1];
}
}};
dojo.provide("dojo.io.BrowserIO");
dojo.io.checkChildrenForFile=function(node){
var _221=false;
var _222=node.getElementsByTagName("input");
dojo.lang.forEach(_222,function(_223){
if(_221){
return;
}
if(_223.getAttribute("type")=="file"){
_221=true;
}
});
return _221;
};
dojo.io.formHasFile=function(_224){
return dojo.io.checkChildrenForFile(_224);
};
dojo.io.updateNode=function(node,_226){
node=dojo.byId(node);
var args=_226;
if(dojo.lang.isString(_226)){
args={url:_226};
}
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(_22d,_22e,_22f){
if((!_22d)||(!_22d.tagName)||(!_22d.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_22f){
_22f=dojo.io.formFilter;
}
var enc=/utf/i.test(_22e||"")?encodeURIComponent:dojo.string.encodeAscii;
var _231=[];
for(var i=0;i<_22d.elements.length;i++){
var elm=_22d.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_22f(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){
_231.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_231.push(name+"="+enc(elm.value));
}
}else{
_231.push(name+"="+enc(elm.value));
}
}
}
var _237=_22d.getElementsByTagName("input");
for(var i=0;i<_237.length;i++){
var _238=_237[i];
if(_238.type.toLowerCase()=="image"&&_238.form==_22d&&_22f(_238)){
var name=enc(_238.name);
_231.push(name+"="+enc(_238.value));
_231.push(name+".x=0");
_231.push(name+".y=0");
}
}
return _231.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 _23e=form.getElementsByTagName("input");
for(var i=0;i<_23e.length;i++){
var _23f=_23e[i];
if(_23f.type.toLowerCase()=="image"&&_23f.form==form){
this.connect(_23f,"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 _246=false;
if(node.disabled||!node.name){
_246=false;
}else{
if(dojo.lang.inArray(type,["submit","button","image"])){
if(!this.clickedButton){
this.clickedButton=node;
}
_246=node==this.clickedButton;
}else{
_246=!dojo.lang.inArray(type,["file","submit","reset","button"]);
}
}
return _246;
},connect:function(_247,_248,_249){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_247,_248,this,_249);
}else{
var fcn=dojo.lang.hitch(this,_249);
_247[_248]=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 _24c=this;
var _24d={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_24f,_250){
return url+"|"+_24f+"|"+_250.toLowerCase();
}
function addToCache(url,_252,_253,http){
_24d[getCacheKey(url,_252,_253)]=http;
}
function getFromCache(url,_256,_257){
return _24d[getCacheKey(url,_256,_257)];
}
this.clearCache=function(){
_24d={};
};
function doLoad(_258,http,url,_25b,_25c){
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(_258.method.toLowerCase()=="head"){
var _25e=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _25e;
};
var _25f=_25e.split(/[\r\n]+/g);
for(var i=0;i<_25f.length;i++){
var pair=_25f[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_258.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_258.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_258.mimetype=="application/xml")||(_258.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(_25c){
addToCache(url,_25b,_258.method,http);
}
_258[(typeof _258.load=="function")?"load":"handle"]("load",ret,http,_258);
}else{
var _262=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_258[(typeof _258.error=="function")?"error":"handle"]("error",_262,http,_258);
}
}
function setHeaders(http,_264){
if(_264["headers"]){
for(var _265 in _264["headers"]){
if(_265.toLowerCase()=="content-type"&&!_264["contentType"]){
_264["contentType"]=_264["headers"][_265];
}else{
http.setRequestHeader(_265,_264["headers"][_265]);
}
}
}
}
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 _269=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_26a){
return _269&&dojo.lang.inArray((_26a["mimetype"].toLowerCase()||""),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&!(_26a["formNode"]&&dojo.io.formHasFile(_26a["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_26b){
if(!_26b["url"]){
if(!_26b["formNode"]&&(_26b["backButton"]||_26b["back"]||_26b["changeUrl"]||_26b["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(_26b);
return true;
}
}
var url=_26b.url;
var _26d="";
if(_26b["formNode"]){
var ta=_26b.formNode.getAttribute("action");
if((ta)&&(!_26b["url"])){
url=ta;
}
var tp=_26b.formNode.getAttribute("method");
if((tp)&&(!_26b["method"])){
_26b.method=tp;
}
_26d+=dojo.io.encodeForm(_26b.formNode,_26b.encoding,_26b["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_26b["file"]){
_26b.method="post";
}
if(!_26b["method"]){
_26b.method="get";
}
if(_26b.method.toLowerCase()=="get"){
_26b.multipart=false;
}else{
if(_26b["file"]){
_26b.multipart=true;
}else{
if(!_26b["multipart"]){
_26b.multipart=false;
}
}
}
if(_26b["backButton"]||_26b["back"]||_26b["changeUrl"]){
dojo.undo.browser.addToHistory(_26b);
}
var _270=_26b["content"]||{};
if(_26b.sendTransport){
_270["dojo.transport"]="xmlhttp";
}
do{
if(_26b.postContent){
_26d=_26b.postContent;
break;
}
if(_270){
_26d+=dojo.io.argsFromMap(_270,_26b.encoding);
}
if(_26b.method.toLowerCase()=="get"||!_26b.multipart){
break;
}
var t=[];
if(_26d.length){
var q=_26d.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(_26b.file){
if(dojo.lang.isArray(_26b.file)){
for(var i=0;i<_26b.file.length;++i){
var o=_26b.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=_26b.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+"--","");
_26d=t.join("\r\n");
}
}while(false);
var _276=_26b["sync"]?false:true;
var _277=_26b["preventCache"]||(this.preventCache==true&&_26b["preventCache"]!=false);
var _278=_26b["useCache"]==true||(this.useCache==true&&_26b["useCache"]!=false);
if(!_277&&_278){
var _279=getFromCache(url,_26d,_26b.method);
if(_279){
doLoad(_26b,_279,url,_26d,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_26b);
var _27b=false;
if(_276){
var _27c=this.inFlight.push({"req":_26b,"http":http,"url":url,"query":_26d,"useCache":_278,"startTime":_26b.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}
if(_26b.method.toLowerCase()=="post"){
http.open("POST",url,_276);
setHeaders(http,_26b);
http.setRequestHeader("Content-Type",_26b.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_26b.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_26d);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_26b,{status:404},url,_26d,_278);
}
}else{
var _27d=url;
if(_26d!=""){
_27d+=(_27d.indexOf("?")>-1?"&":"?")+_26d;
}
if(_277){
_27d+=(dojo.string.endsWithAny(_27d,"?","&")?"":(_27d.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_26b.method.toUpperCase(),_27d,_276);
setHeaders(http,_26b);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_26b,{status:404},url,_26d,_278);
}
}
if(!_276){
doLoad(_26b,http,url,_26d,_278);
}
_26b.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
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,_27f){
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 _282=dl.nameAnonFunc(args[2],ao.adviceObj,_27f);
ao.adviceFunc=_282;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _282=dl.nameAnonFunc(args[0],ao.srcObj,_27f);
ao.srcFunc=_282;
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 _282=dl.nameAnonFunc(args[1],dj_global,_27f);
ao.srcFunc=_282;
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 _282=dl.nameAnonFunc(args[3],dj_global,_27f);
ao.adviceObj=dj_global;
ao.adviceFunc=_282;
}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 _282=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_27f);
ao.aroundFunc=_282;
}
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 _284={};
for(var x in ao){
_284[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);
}
_284.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_284));
});
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 _28c;
if((arguments.length==1)&&(typeof a1=="object")){
_28c=a1;
}else{
_28c={srcObj:a1,srcFunc:a2};
}
_28c.adviceFunc=function(){
var _28d=[];
for(var x=0;x<arguments.length;x++){
_28d.push(arguments[x]);
}
dojo.debug("("+_28c.srcObj+")."+_28c.srcFunc,":",_28d.join(", "));
};
this.kwConnect(_28c);
};
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(_294,_295){
var fn=(_295)?"disconnect":"connect";
if(typeof _294["srcFunc"]=="function"){
_294.srcObj=_294["srcObj"]||dj_global;
var _297=dojo.lang.nameAnonFunc(_294.srcFunc,_294.srcObj,true);
_294.srcFunc=_297;
}
if(typeof _294["adviceFunc"]=="function"){
_294.adviceObj=_294["adviceObj"]||dj_global;
var _297=dojo.lang.nameAnonFunc(_294.adviceFunc,_294.adviceObj,true);
_294.adviceFunc=_297;
}
return dojo.event[fn]((_294["type"]||_294["adviceType"]||"after"),_294["srcObj"]||dj_global,_294["srcFunc"],_294["adviceObj"]||_294["targetObj"]||dj_global,_294["adviceFunc"]||_294["targetFunc"],_294["aroundObj"],_294["aroundFunc"],_294["once"],_294["delay"],_294["rate"],_294["adviceMsg"]||false);
};
this.kwConnect=function(_298){
return this._kwConnectImpl(_298,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(_29b){
return this._kwConnectImpl(_29b,true);
};
};
dojo.event.MethodInvocation=function(_29c,obj,args){
this.jp_=_29c;
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,_2a4){
this.object=obj||dj_global;
this.methodname=_2a4;
this.methodfunc=this.object[_2a4];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_2a6){
if(!obj){
obj=dj_global;
}
if(!obj[_2a6]){
obj[_2a6]=function(){
};
if(!obj[_2a6]){
dojo.raise("Cannot set do-nothing method on that object "+_2a6);
}
}else{
if((!dojo.lang.isFunction(obj[_2a6]))&&(!dojo.lang.isAlien(obj[_2a6]))){
return null;
}
}
var _2a7=_2a6+"$joinpoint";
var _2a8=_2a6+"$joinpoint$method";
var _2a9=obj[_2a7];
if(!_2a9){
var _2aa=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_2aa=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_2a7,_2a8,_2a6]);
}
}
var _2ab=obj[_2a6].length;
obj[_2a8]=obj[_2a6];
_2a9=obj[_2a7]=new dojo.event.MethodJoinPoint(obj,_2a8);
obj[_2a6]=function(){
var args=[];
if((_2aa)&&(!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)&&(_2aa)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _2a9.run.apply(_2a9,args);
};
obj[_2a6].__preJoinArity=_2ab;
}
return _2a9;
};
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 _2b1=[];
for(var x=0;x<args.length;x++){
_2b1[x]=args[x];
}
var _2b3=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _2b5=marr[0]||dj_global;
var _2b6=marr[1];
if(!_2b5[_2b6]){
dojo.raise("function \""+_2b6+"\" does not exist on \""+_2b5+"\"");
}
var _2b7=marr[2]||dj_global;
var _2b8=marr[3];
var msg=marr[6];
var _2ba;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _2b5[_2b6].apply(_2b5,to.args);
}};
to.args=_2b1;
var _2bc=parseInt(marr[4]);
var _2bd=((!isNaN(_2bc))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _2c0=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;
_2b3(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_2b8){
_2b7[_2b8].call(_2b7,to);
}else{
if((_2bd)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_2b5[_2b6].call(_2b5,to);
}else{
_2b5[_2b6].apply(_2b5,args);
}
},_2bc);
}else{
if(msg){
_2b5[_2b6].call(_2b5,to);
}else{
_2b5[_2b6].apply(_2b5,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_2b3);
}
var _2c3;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_2c3=mi.proceed();
}else{
if(this.methodfunc){
_2c3=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_2b3);
}
return (this.methodfunc)?_2c3: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(_2c8,_2c9,_2ca,_2cb,_2cc,_2cd,once,_2cf,rate,_2d1){
var arr=this.getArr(_2cc);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_2c8,_2c9,_2ca,_2cb,_2cf,rate,_2d1];
if(once){
if(this.hasAdvice(_2c8,_2c9,_2cc,arr)>=0){
return;
}
}
if(_2cd=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_2d4,_2d5,_2d6,arr){
if(!arr){
arr=this.getArr(_2d6);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _2d5=="object")?(new String(_2d5)).toString():_2d5;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_2d4)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_2dc,_2dd,_2de,once){
var arr=this.getArr(_2de);
var ind=this.hasAdvice(_2dc,_2dd,_2de,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_2dc,_2dd,_2de,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_2e2){
if(!this.topics[_2e2]){
this.topics[_2e2]=new this.TopicImpl(_2e2);
}
return this.topics[_2e2];
};
this.registerPublisher=function(_2e3,obj,_2e5){
var _2e3=this.getTopic(_2e3);
_2e3.registerPublisher(obj,_2e5);
};
this.subscribe=function(_2e6,obj,_2e8){
var _2e6=this.getTopic(_2e6);
_2e6.subscribe(obj,_2e8);
};
this.unsubscribe=function(_2e9,obj,_2eb){
var _2e9=this.getTopic(_2e9);
_2e9.unsubscribe(obj,_2eb);
};
this.destroy=function(_2ec){
this.getTopic(_2ec).destroy();
delete this.topics[_2ec];
};
this.publishApply=function(_2ed,args){
var _2ed=this.getTopic(_2ed);
_2ed.sendMessage.apply(_2ed,args);
};
this.publish=function(_2ef,_2f0){
var _2ef=this.getTopic(_2ef);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_2ef.sendMessage.apply(_2ef,args);
};
};
dojo.event.topic.TopicImpl=function(_2f3){
this.topicName=_2f3;
this.subscribe=function(_2f4,_2f5){
var tf=_2f5||_2f4;
var to=(!_2f5)?dj_global:_2f4;
dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_2f8,_2f9){
var tf=(!_2f9)?_2f8:_2f9;
var to=(!_2f9)?null:_2f8;
dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.destroy=function(){
dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage").disconnect();
};
this.registerPublisher=function(_2fc,_2fd){
dojo.event.connect(_2fc,_2fd,this,"sendMessage");
};
this.sendMessage=function(_2fe){
};
};
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(_301){
var na;
var tna;
if(_301){
tna=_301.all||_301.getElementsByTagName("*");
na=[_301];
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 _305={};
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 _309=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,_30d){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_30d.length;x++){
node.__clobberAttrs__.push(_30d[x]);
}
};
this.removeListener=function(node,_310,fp,_312){
if(!_312){
var _312=false;
}
_310=_310.toLowerCase();
if(_310.substr(0,2)=="on"){
_310=_310.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_310,fp,_312);
}
};
this.addListener=function(node,_314,fp,_316,_317){
if(!node){
return;
}
if(!_316){
var _316=false;
}
_314=_314.toLowerCase();
if(_314.substr(0,2)!="on"){
_314="on"+_314;
}
if(!_317){
var _318=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_316){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_318=fp;
}
if(node.addEventListener){
node.addEventListener(_314.substr(2),_318,_316);
return _318;
}else{
if(typeof node[_314]=="function"){
var _31b=node[_314];
node[_314]=function(e){
_31b(e);
return _318(e);
};
}else{
node[_314]=_318;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_314]);
}
return _318;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_31e,_31f){
if(typeof _31e!="function"){
dojo.raise("listener not a function: "+_31e);
}
dojo.event.browser.currentEvent.currentTarget=_31f;
return _31e.call(_31f,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,_322){
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=(_322?_322:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var _324=((dojo.render.html.ie55)||(document["compatMode"]=="BackCompat"))?document.body:document.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_324.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_324.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.lfx.Animation");
dojo.provide("dojo.lfx.Line");
dojo.lfx.Line=function(_326,end){
this.start=_326;
this.end=end;
if(dojo.lang.isArray(_326)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_326;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
},_active:false,_paused:false});
dojo.lfx.Animation=function(_335,_336,_337,_338,_339,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_335)||(!_335&&_336.getValue)){
rate=_339;
_339=_338;
_338=_337;
_337=_336;
_336=_335;
_335=null;
}else{
if(_335.getValue||dojo.lang.isArray(_335)){
rate=_338;
_339=_337;
_338=_336;
_337=_335;
_336=null;
_335=null;
}
}
if(dojo.lang.isArray(_337)){
this.curve=new dojo.lfx.Line(_337[0],_337[1]);
}else{
this.curve=_337;
}
if(_336!=null&&_336>0){
this.duration=_336;
}
if(_339){
this.repeatCount=_339;
}
if(rate){
this.rate=rate;
}
if(_335){
this.handler=_335.handler;
this.beforeBegin=_335.beforeBegin;
this.onBegin=_335.onBegin;
this.onEnd=_335.onEnd;
this.onPlay=_335.onPlay;
this.onPause=_335.onPause;
this.onStop=_335.onStop;
this.onAnimate=_335.onAnimate;
}
if(_338&&dojo.lang.isFunction(_338)){
this.easing=_338;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_33b,_33c){
if(_33c){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_33b>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_33c);
}),_33b);
return this;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _33e=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_33e]);
this.fire("onBegin",[_33e]);
}
this.fire("handler",["play",_33e]);
this.fire("onPlay",[_33e]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _33f=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_33f]);
this.fire("onPause",[_33f]);
return this;
},gotoPercent:function(pct,_341){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_341){
this.play();
}
},stop:function(_342){
clearTimeout(this._timer);
var step=this._percent/100;
if(_342){
step=1;
}
var _344=this.curve.getValue(step);
this.fire("handler",["stop",_344]);
this.fire("onStop",[_344]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _347=this.curve.getValue(step);
this.fire("handler",["animate",_347]);
this.fire("onAnimate",[_347]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _348=arguments;
if(_348.length==1&&(dojo.lang.isArray(_348[0])||dojo.lang.isArrayLike(_348[0]))){
_348=_348[0];
}
var _349=this;
dojo.lang.forEach(_348,function(anim){
_349._anims.push(anim);
var _34b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_34b();
_349._onAnimsEnded();
};
});
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_34c,_34d){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_34c>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_34d);
}),_34c);
return this;
}
if(_34d||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_34d);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_34e){
this.fire("onStop");
this._animsCall("stop",_34e);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_34f){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _352=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_34f](args);
},_352);
return this;
}});
dojo.lfx.Chain=function(){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _354=arguments;
if(_354.length==1&&(dojo.lang.isArray(_354[0])||dojo.lang.isArrayLike(_354[0]))){
_354=_354[0];
}
var _355=this;
dojo.lang.forEach(_354,function(anim,i,_358){
_355._anims.push(anim);
var _359=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
if(i<_358.length-1){
anim.onEnd=function(){
_359();
_355._playNext();
};
}else{
anim.onEnd=function(){
_359();
_355.fire("onEnd");
};
}
},_355);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_35a,_35b){
if(!this._anims.length){
return this;
}
if(_35b||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _35c=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_35a>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_35b);
}),_35a);
return this;
}
if(_35c){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_35c.play(null,_35b);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _35d=this._anims[this._currAnim];
if(_35d){
if(!_35d._active||_35d._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _35e=this._anims[this._currAnim];
if(_35e){
_35e.stop();
this.fire("onStop",[this._currAnim]);
}
return _35e;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(){
var _35f=arguments;
if(dojo.lang.isArray(arguments[0])){
_35f=arguments[0];
}
return new dojo.lfx.Combine(_35f);
};
dojo.lfx.chain=function(){
var _360=arguments;
if(dojo.lang.isArray(arguments[0])){
_360=arguments[0];
}
return new dojo.lfx.Chain(_360);
};
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(_367){
if(_367){
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(_368,_369){
return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_368).toRgb(),_369);
}});
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,_36c){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_36c);
}
if(!_36c){
_36c=0;
}else{
if(_36c>1){
_36c=1;
}else{
if(_36c<-1){
_36c=-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*_36c));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_372){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_372));
};
dojo.graphics.color.extractRGB=function(_373){
var hex="0123456789abcdef";
_373=_373.toLowerCase();
if(_373.indexOf("rgb")==0){
var _375=_373.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_375.splice(1,3);
return ret;
}else{
var _377=dojo.graphics.color.hex2rgb(_373);
if(_377){
return _377;
}else{
return dojo.graphics.color.named[_373]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _379="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_379+"]","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]=_379.indexOf(rgb[i].charAt(0))*16+_379.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 _387=new dojo.uri.Uri(arguments[i].toString());
var _388=new dojo.uri.Uri(uri.toString());
if(_387.path==""&&_387.scheme==null&&_387.authority==null&&_387.query==null){
if(_387.fragment!=null){
_388.fragment=_387.fragment;
}
_387=_388;
}else{
if(_387.scheme==null){
_387.scheme=_388.scheme;
if(_387.authority==null){
_387.authority=_388.authority;
if(_387.path.charAt(0)!="/"){
var path=_388.path.substring(0,_388.path.lastIndexOf("/")+1)+_387.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;
}
}
}
}
_387.path=segs.join("/");
}
}
}
}
uri="";
if(_387.scheme!=null){
uri+=_387.scheme+":";
}
if(_387.authority!=null){
uri+="//"+_387.authority;
}
uri+=_387.path;
if(_387.query!=null){
uri+="?"+_387.query;
}
if(_387.fragment!=null){
uri+="#"+_387.fragment;
}
}
this.uri=uri.toString();
var _38c="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_38c));
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){
_38c="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_38c));
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 _394=ds.getStyle(node,"-moz-box-sizing");
if(!_394){
_394=ds.getStyle(node,"box-sizing");
}
return (_394?_394:bs.CONTENT_BOX);
}
};
ds.isBorderBox=function(node){
return (ds.getBoxSizing(node)==bs.BORDER_BOX);
};
ds.getUnitValue=function(node,_397,_398){
var s=ds.getComputedStyle(node,_397);
if((!s)||((s=="auto")&&(_398))){
return {value:0,units:"px"};
}
if(dojo.lang.isUndefined(s)){
return ds.getUnitValue.bad;
}
var _39a=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_39a){
return ds.getUnitValue.bad;
}
return {value:Number(_39a[1]),units:_39a[2].toLowerCase()};
};
ds.getUnitValue.bad={value:NaN,units:""};
ds.getPixelValue=function(node,_39c,_39d){
var _39e=ds.getUnitValue(node,_39c,_39d);
if(isNaN(_39e.value)){
return 0;
}
if((_39e.value)&&(_39e.units!="px")){
return NaN;
}
return _39e.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,_3a0,_3a1){
if(isNaN(_3a1)){
return false;
}
node.style[_3a0]=Math.max(0,_3a1)+"px";
return true;
};
ds._sumPixelValues=function(node,_3a3,_3a4){
var _3a5=0;
for(var x=0;x<_3a3.length;x++){
_3a5+=ds.getPixelValue(node,_3a3[x],_3a4);
}
return _3a5;
};
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,_3b2){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3b2+=ds.getPadBorderWidth(node);
}
return ds.setPositivePixelValue(node,"width",_3b2);
};
ds.setMarginBoxWidth=function(node,_3b4){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3b4-=ds.getPadBorderWidth(node);
}
_3b4-=ds.getMarginWidth(node);
return ds.setPositivePixelValue(node,"width",_3b4);
};
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,_3bd){
node=dojo.byId(node);
if(ds.isBorderBox(node)){
_3bd+=ds.getPadBorderHeight(node);
}
return ds.setPositivePixelValue(node,"height",_3bd);
};
ds.setMarginBoxHeight=function(node,_3bf){
node=dojo.byId(node);
if(!ds.isBorderBox(node)){
_3bf-=ds.getPadBorderHeight(node);
}
_3bf-=ds.getMarginHeight(node);
return ds.setPositivePixelValue(node,"height",_3bf);
};
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,_3c1){
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 _3c6;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_3c6=db;
}else{
_3c6=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!=_3c6)&&(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(_3c1){
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 _3cc=0;
while(node){
var val=node[prop];
if(val){
_3cc+=val-0;
if(node==document.body){
break;
}
}
node=node.parentNode;
}
return _3cc;
};
ds.getTotalOffset=function(node,type,_3d0){
return ds.abs(node,_3d0)[(type=="top")?"y":"x"];
};
ds.getAbsoluteX=ds.totalOffsetLeft=function(node,_3d2){
return ds.getTotalOffset(node,"left",_3d2);
};
ds.getAbsoluteY=ds.totalOffsetTop=function(node,_3d4){
return ds.getTotalOffset(node,"top",_3d4);
};
ds.styleSheet=null;
ds.insertCssRule=function(_3d5,_3d6,_3d7){
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){
_3d7=ds.styleSheet.cssRules.length;
}else{
if(ds.styleSheet.rules){
_3d7=ds.styleSheet.rules.length;
}else{
return null;
}
}
}
if(ds.styleSheet.insertRule){
var rule=_3d5+" { "+_3d6+" }";
return ds.styleSheet.insertRule(rule,_3d7);
}else{
if(ds.styleSheet.addRule){
return ds.styleSheet.addRule(_3d5,_3d6,_3d7);
}else{
return null;
}
}
};
ds.removeCssRule=function(_3d9){
if(!ds.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(h.ie){
if(!_3d9){
_3d9=ds.styleSheet.rules.length;
ds.styleSheet.removeRule(_3d9);
}
}else{
if(document.styleSheets[0]){
if(!_3d9){
_3d9=ds.styleSheet.cssRules.length;
}
ds.styleSheet.deleteRule(_3d9);
}
}
return true;
};
ds.insertCssFile=function(URI,doc,_3dc){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _3dd=dojo.hostenv.getText(URI);
_3dd=ds.fixPathsInCssText(_3dd,URI);
if(_3dc){
var _3de=doc.getElementsByTagName("style");
var _3df="";
for(var i=0;i<_3de.length;i++){
_3df=(_3de[i].styleSheet&&_3de[i].styleSheet.cssText)?_3de[i].styleSheet.cssText:_3de[i].innerHTML;
if(_3dd==_3df){
return;
}
}
}
var _3e1=ds.insertCssText(_3dd);
if(_3e1&&djConfig.isDebug){
_3e1.setAttribute("dbgHref",URI);
}
return _3e1;
};
ds.insertCssText=function(_3e2,doc,URI){
if(!_3e2){
return;
}
if(!doc){
doc=document;
}
if(URI){
_3e2=ds.fixPathsInCssText(_3e2,URI);
}
var _3e5=doc.createElement("style");
_3e5.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(_3e5);
}
if(_3e5.styleSheet){
_3e5.styleSheet.cssText=_3e2;
}else{
var _3e7=doc.createTextNode(_3e2);
_3e5.appendChild(_3e7);
}
return _3e5;
};
ds.fixPathsInCssText=function(_3e8,URI){
if(!_3e8||!URI){
return;
}
var pos=0;
var str="";
var url="";
while(pos!=-1){
pos=0;
url="";
pos=_3e8.indexOf("url(",pos);
if(pos<0){
break;
}
str+=_3e8.slice(0,pos+4);
_3e8=_3e8.substring(pos+4,_3e8.length);
url+=_3e8.match(/^[\t\s\w()\/.\\'"-:#=&?]*\)/)[0];
_3e8=_3e8.substring(url.length-1,_3e8.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+_3e8;
};
ds.getBackgroundColor=function(node){
node=dojo.byId(node);
var _3ee;
do{
_3ee=ds.getStyle(node,"background-color");
if(_3ee.toLowerCase()=="rgba(0, 0, 0, 0)"){
_3ee="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_3ee,["transparent",""]));
if(_3ee=="transparent"){
_3ee=[255,255,255,0];
}else{
_3ee=dojo.graphics.color.extractRGB(_3ee);
}
return _3ee;
};
ds.getComputedStyle=function(node,_3f0,_3f1){
node=dojo.byId(node);
var _3f0=ds.toSelectorCase(_3f0);
var _3f2=ds.toCamelCase(_3f0);
if(!node||!node.style){
return _3f1;
}else{
if(document.defaultView){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_3f0);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3f0);
}else{
return _3f1;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_3f2];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_3f0);
}else{
return _3f1;
}
};
ds.getStyleProperty=function(node,_3f5){
node=dojo.byId(node);
return (node&&node.style?node.style[ds.toCamelCase(_3f5)]:undefined);
};
ds.getStyle=function(node,_3f7){
var _3f8=ds.getStyleProperty(node,_3f7);
return (_3f8?_3f8:ds.getComputedStyle(node,_3f7));
};
ds.setStyle=function(node,_3fa,_3fb){
node=dojo.byId(node);
if(node&&node.style){
var _3fc=ds.toCamelCase(_3fa);
node.style[_3fc]=_3fb;
}
};
ds.toCamelCase=function(_3fd){
var arr=_3fd.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(_400){
return _400.replace(/([A-Z])/g,"-$1").toLowerCase();
};
ds.setOpacity=function setOpacity(node,_402,_403){
node=dojo.byId(node);
if(!_403){
if(_402>=1){
if(h.ie){
ds.clearOpacity(node);
return;
}else{
_402=0.999999;
}
}else{
if(_402<0){
_402=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="+_402*100+")";
}
}
node.style.filter="Alpha(Opacity="+_402*100+")";
}else{
if(h.moz){
node.style.opacity=_402;
node.style.MozOpacity=_402;
}else{
if(h.safari){
node.style.opacity=_402;
node.style.KhtmlOpacity=_402;
}else{
node.style.opacity=_402;
}
}
}
};
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,_40b){
var _40c={"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 _40d=_40b.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_40d.length;i++){
var _40f=_40d[i].split(":");
var name=_40f[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _411=_40f[1].replace(/\s*$/,"").replace(/^\s*/,"");
if(dojo.lang.has(_40c,name)){
_40c[name](node,_411);
}else{
node.style[dojo.style.toCamelCase(name)]=_411;
}
}
};
ds._toggle=function(node,_413,_414){
node=dojo.byId(node);
_414(node,!_413(node));
return _413(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,_419){
ds[(_419?"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,_41f){
ds.setStyle(node,"display",(dojo.lang.isString(_41f)?_41f:(_41f?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,_423){
ds.setStyle(node,"visibility",(dojo.lang.isString(_423)?_423:(_423?"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(_426,_427){
if(dojo.lang.isArray(_426)){
while(_426.length<4){
_426.push(0);
}
while(_426.length>4){
_426.pop();
}
var ret=_426;
}else{
var node=dojo.byId(_426);
var pos=ds.getAbsolutePosition(node,_427);
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.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(_42b){
_42b=dojo.byId(_42b)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_42b.style.MozUserSelect="none";
}else{
if(h.safari){
_42b.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_42b.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_42d){
_42d=dojo.byId(_42d)||document.body;
var h=dojo.render.html;
if(h.mozilla){
_42d.style.MozUserSelect="";
}else{
if(h.safari){
_42d.style.KhtmlUserSelect="";
}else{
if(h.ie){
_42d.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_42f){
_42f=dojo.byId(_42f);
if(document.selection&&document.body.createTextRange){
var _430=document.body.createTextRange();
_430.moveToElementText(_42f);
_430.select();
}else{
if(window["getSelection"]){
var _431=window.getSelection();
if(_431["selectAllChildren"]){
_431.selectAllChildren(_42f);
}
}
}
};
dojo.html.selectInputText=function(_432){
_432=dojo.byId(_432);
if(document.selection&&document.body.createTextRange){
var _433=_432.createTextRange();
_433.moveStart("character",0);
_433.moveEnd("character",_432.value.length);
_433.select();
}else{
if(window["getSelection"]){
var _434=window.getSelection();
_432.setSelectionRange(0,_432.value.length);
}
}
_432.focus();
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _435=window.getSelection();
if(dojo.lang.isString(_435)){
return _435=="";
}else{
return _435.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 _440=dojo.byId(node);
type=type.toLowerCase();
while((_440)&&(_440.nodeName.toLowerCase()!=type)){
if(_440==(document["body"]||document["documentElement"])){
return null;
}
_440=_440.parentNode;
}
return _440;
};
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,_44c){
return dojo.lang.inArray(dojo.html.getClasses(node),_44c);
};
dojo.html.prependClass=function(node,_44e){
_44e+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_44e);
};
dojo.html.addClass=function(node,_450){
if(dojo.html.hasClass(node,_450)){
return false;
}
_450=dojo.string.trim(dojo.html.getClass(node)+" "+_450);
return dojo.html.setClass(node,_450);
};
dojo.html.setClass=function(node,_452){
node=dojo.byId(node);
var cs=new String(_452);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_452);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_455,_456){
var _455=dojo.string.trim(new String(_455));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_456){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_455)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_455){
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,_45b,_45c){
dojo.html.removeClass(node,_45c);
dojo.html.addClass(node,_45b);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_45d,_45e,_45f,_460,_461){
_45e=dojo.byId(_45e)||document;
var _462=_45d.split(/\s+/g);
var _463=[];
if(_460!=1&&_460!=2){
_460=0;
}
var _464=new RegExp("(\\s|^)(("+_462.join(")|(")+"))(\\s|$)");
var _465=[];
if(!_461&&document.evaluate){
var _466="//"+(_45f||"*")+"[contains(";
if(_460!=dojo.html.classMatchType.ContainsAny){
_466+="concat(' ',@class,' '), ' "+_462.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')]";
}else{
_466+="concat(' ',@class,' '), ' "+_462.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _467=document.evaluate(_466,_45e,null,XPathResult.ANY_TYPE,null);
var _468=_467.iterateNext();
while(_468){
try{
_465.push(_468);
_468=_467.iterateNext();
}
catch(e){
break;
}
}
return _465;
}else{
if(!_45f){
_45f="*";
}
_465=_45e.getElementsByTagName(_45f);
var node,i=0;
outer:
while(node=_465[i++]){
var _46a=dojo.html.getClasses(node);
if(_46a.length==0){
continue outer;
}
var _46b=0;
for(var j=0;j<_46a.length;j++){
if(_464.test(_46a[j])){
if(_460==dojo.html.classMatchType.ContainsAny){
_463.push(node);
continue outer;
}else{
_46b++;
}
}else{
if(_460==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_46b==_462.length){
if((_460==dojo.html.classMatchType.IsOnly)&&(_46b==_46a.length)){
_463.push(node);
}else{
if(_460==dojo.html.classMatchType.ContainsAll){
_463.push(node);
}
}
}
}
return _463;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.getCursorPosition=function(e){
e=e||window.event;
var _46e={x:0,y:0};
if(e.pageX||e.pageY){
_46e.x=e.pageX;
_46e.y=e.pageY;
}else{
var de=document.documentElement;
var db=document.body;
_46e.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_46e.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _46e;
};
dojo.html.overElement=function(_471,e){
_471=dojo.byId(_471);
var _473=dojo.html.getCursorPosition(e);
with(dojo.html){
var top=getAbsoluteY(_471,true);
var _475=top+getInnerHeight(_471);
var left=getAbsoluteX(_471,true);
var _477=left+getInnerWidth(_471);
}
return (_473.x>=left&&_473.x<=_477&&_473.y>=top&&_473.y<=_475);
};
dojo.html.setActiveStyleSheet=function(_478){
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")==_478){
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(_47f,_480){
if(dojo.lang.isUndefined(_480.style.cssText)){
_47f.setAttribute("style",_480.getAttribute("style"));
}else{
_47f.style.cssText=_480.style.cssText;
}
dojo.html.addClass(_47f,dojo.html.getClass(_480));
};
dojo.html._callExtrasDeprecated=function(_481,args){
var _483="dojo.html.extras";
dojo.deprecated("dojo.html."+_481,"moved to "+_483,"0.4");
dojo["require"](_483);
return dojo.html[_481].apply(dojo.html,args);
};
dojo.html.createNodesFromText=function(){
return dojo.html._callExtrasDeprecated("createNodesFromText",arguments);
};
dojo.html.gravity=function(){
return dojo.html._callExtrasDeprecated("gravity",arguments);
};
dojo.html.placeOnScreen=function(){
return dojo.html._callExtrasDeprecated("placeOnScreen",arguments);
};
dojo.html.placeOnScreenPoint=function(){
return dojo.html._callExtrasDeprecated("placeOnScreenPoint",arguments);
};
dojo.html.renderedTextContent=function(){
return dojo.html._callExtrasDeprecated("renderedTextContent",arguments);
};
dojo.html.BackgroundIframe=function(){
return dojo.html._callExtrasDeprecated("BackgroundIframe",arguments);
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_484){
if(!_484){
return [];
}
if(dojo.lang.isArray(_484)){
if(!_484.alreadyChecked){
var n=[];
dojo.lang.forEach(_484,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _484;
}
}else{
var n=[];
n.push(dojo.byId(_484));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_487,_488,_489,_48a){
_487=dojo.lfx.html._byId(_487);
if(_487.length==1){
dojo.lang.forEach(_488,function(prop){
if(typeof prop["start"]=="undefined"){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.style.getComputedStyle(_487[0],prop.property));
}else{
prop.start=dojo.style.getOpacity(_487[0]);
}
}
});
}
var _48c=function(_48d){
var _48e=new Array(_48d.length);
for(var i=0;i<_48d.length;i++){
_48e[i]=Math.round(_48d[i]);
}
return _48e;
};
var _490=function(n,_492){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _492){
if(s=="opacity"){
dojo.style.setOpacity(n,_492[s]);
}else{
n.style[s]=_492[s];
}
}
};
var _494=function(_495){
this._properties=_495;
this.diffs=new Array(_495.length);
dojo.lang.forEach(_495,function(prop,i){
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.graphics.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _49c=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.graphics.color.Color){
_49c=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_49c+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_49c+=")";
}else{
_49c=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.style.toCamelCase(prop.property)]=_49c;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({onAnimate:function(_49f){
dojo.lang.forEach(_487,function(node){
_490(node,_49f);
});
}},_489,new _494(_488),_48a);
return anim;
};
dojo.lfx.html._makeFadeable=function(_4a1){
var _4a2=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_4a1)){
dojo.lang.forEach(_4a1,_4a2);
}else{
_4a2(_4a1);
}
};
dojo.lfx.html.fadeIn=function(_4a4,_4a5,_4a6,_4a7){
_4a4=dojo.lfx.html._byId(_4a4);
dojo.lfx.html._makeFadeable(_4a4);
var anim=dojo.lfx.propertyAnimation(_4a4,[{property:"opacity",start:dojo.style.getOpacity(_4a4[0]),end:1}],_4a5,_4a6);
if(_4a7){
var _4a9=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4a9();
_4a7(_4a4,anim);
};
}
return anim;
};
dojo.lfx.html.fadeOut=function(_4aa,_4ab,_4ac,_4ad){
_4aa=dojo.lfx.html._byId(_4aa);
dojo.lfx.html._makeFadeable(_4aa);
var anim=dojo.lfx.propertyAnimation(_4aa,[{property:"opacity",start:dojo.style.getOpacity(_4aa[0]),end:0}],_4ab,_4ac);
if(_4ad){
var _4af=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4af();
_4ad(_4aa,anim);
};
}
return anim;
};
dojo.lfx.html.fadeShow=function(_4b0,_4b1,_4b2,_4b3){
var anim=dojo.lfx.html.fadeIn(_4b0,_4b1,_4b2,_4b3);
var _4b5=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_4b5();
if(dojo.lang.isArrayLike(_4b0)){
dojo.lang.forEach(_4b0,dojo.style.show);
}else{
dojo.style.show(_4b0);
}
};
return anim;
};
dojo.lfx.html.fadeHide=function(_4b6,_4b7,_4b8,_4b9){
var anim=dojo.lfx.html.fadeOut(_4b6,_4b7,_4b8,function(){
if(dojo.lang.isArrayLike(_4b6)){
dojo.lang.forEach(_4b6,dojo.style.hide);
}else{
dojo.style.hide(_4b6);
}
if(_4b9){
_4b9(_4b6,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_4bb,_4bc,_4bd,_4be){
_4bb=dojo.lfx.html._byId(_4bb);
var _4bf=[];
dojo.lang.forEach(_4bb,function(node){
var _4c1=dojo.style.getStyle(node,"overflow");
if(_4c1=="visible"){
node.style.overflow="hidden";
}
node.style.height="0px";
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:0,end:node.scrollHeight}],_4bc,_4bd);
var _4c3=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4c3();
node.style.overflow=_4c1;
node.style.height="auto";
if(_4be){
_4be(node,anim);
}
};
_4bf.push(anim);
});
if(_4bb.length>1){
return dojo.lfx.combine(_4bf);
}else{
return _4bf[0];
}
};
dojo.lfx.html.wipeOut=function(_4c4,_4c5,_4c6,_4c7){
_4c4=dojo.lfx.html._byId(_4c4);
var _4c8=[];
dojo.lang.forEach(_4c4,function(node){
var _4ca=dojo.style.getStyle(node,"overflow");
if(_4ca=="visible"){
node.style.overflow="hidden";
}
dojo.style.show(node);
var anim=dojo.lfx.propertyAnimation(node,[{property:"height",start:dojo.style.getContentBoxHeight(node),end:0}],_4c5,_4c6);
var _4cc=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4cc();
dojo.style.hide(node);
node.style.overflow=_4ca;
if(_4c7){
_4c7(node,anim);
}
};
_4c8.push(anim);
});
if(_4c4.length>1){
return dojo.lfx.combine(_4c8);
}else{
return _4c8[0];
}
};
dojo.lfx.html.slideTo=function(_4cd,_4ce,_4cf,_4d0,_4d1){
_4cd=dojo.lfx.html._byId(_4cd);
var _4d2=[];
dojo.lang.forEach(_4cd,function(node){
var top=null;
var left=null;
var init=(function(){
var _4d7=node;
return function(){
top=_4d7.offsetTop;
left=_4d7.offsetLeft;
if(!dojo.style.isPositionAbsolute(_4d7)){
var ret=dojo.style.abs(_4d7,true);
dojo.style.setStyleAttributes(_4d7,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:_4ce[0]},{property:"left",start:left,end:_4ce[1]}],_4cf,_4d0);
var _4da=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_4da();
init();
};
if(_4d1){
var _4db=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4db();
_4d1(_4cd,anim);
};
}
_4d2.push(anim);
});
if(_4cd.length>1){
return dojo.lfx.combine(_4d2);
}else{
return _4d2[0];
}
};
dojo.lfx.html.slideBy=function(_4dc,_4dd,_4de,_4df,_4e0){
_4dc=dojo.lfx.html._byId(_4dc);
var _4e1=[];
dojo.lang.forEach(_4dc,function(node){
var top=null;
var left=null;
var init=(function(){
var _4e6=node;
return function(){
top=node.offsetTop;
left=node.offsetLeft;
if(!dojo.style.isPositionAbsolute(_4e6)){
var ret=dojo.style.abs(_4e6);
dojo.style.setStyleAttributes(_4e6,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,[{property:"top",start:top,end:top+_4dd[0]},{property:"left",start:left,end:left+_4dd[1]}],_4de,_4df);
var _4e9=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_4e9();
init();
};
if(_4e0){
var _4ea=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4ea();
_4e0(_4dc,anim);
};
}
_4e1.push(anim);
});
if(_4dc.length>1){
return dojo.lfx.combine(_4e1);
}else{
return _4e1[0];
}
};
dojo.lfx.html.explode=function(_4eb,_4ec,_4ed,_4ee,_4ef){
_4eb=dojo.byId(_4eb);
_4ec=dojo.byId(_4ec);
var _4f0=dojo.style.toCoordinateArray(_4eb,true);
var _4f1=document.createElement("div");
dojo.html.copyStyle(_4f1,_4ec);
with(_4f1.style){
position="absolute";
display="none";
}
document.body.appendChild(_4f1);
with(_4ec.style){
visibility="hidden";
display="block";
}
var _4f2=dojo.style.toCoordinateArray(_4ec,true);
with(_4ec.style){
display="none";
visibility="visible";
}
var anim=new dojo.lfx.propertyAnimation(_4f1,[{property:"height",start:_4f0[3],end:_4f2[3]},{property:"width",start:_4f0[2],end:_4f2[2]},{property:"top",start:_4f0[1],end:_4f2[1]},{property:"left",start:_4f0[0],end:_4f2[0]},{property:"opacity",start:0.3,end:1}],_4ed,_4ee);
anim.beforeBegin=function(){
dojo.style.setDisplay(_4f1,"block");
};
anim.onEnd=function(){
dojo.style.setDisplay(_4ec,"block");
_4f1.parentNode.removeChild(_4f1);
};
if(_4ef){
var _4f4=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4f4();
_4ef(_4ec,anim);
};
}
return anim;
};
dojo.lfx.html.implode=function(_4f5,end,_4f7,_4f8,_4f9){
_4f5=dojo.byId(_4f5);
end=dojo.byId(end);
var _4fa=dojo.style.toCoordinateArray(_4f5,true);
var _4fb=dojo.style.toCoordinateArray(end,true);
var _4fc=document.createElement("div");
dojo.html.copyStyle(_4fc,_4f5);
dojo.style.setOpacity(_4fc,0.3);
with(_4fc.style){
position="absolute";
display="none";
}
document.body.appendChild(_4fc);
var anim=new dojo.lfx.propertyAnimation(_4fc,[{property:"height",start:_4fa[3],end:_4fb[3]},{property:"width",start:_4fa[2],end:_4fb[2]},{property:"top",start:_4fa[1],end:_4fb[1]},{property:"left",start:_4fa[0],end:_4fb[0]},{property:"opacity",start:1,end:0.3}],_4f7,_4f8);
anim.beforeBegin=function(){
dojo.style.hide(_4f5);
dojo.style.show(_4fc);
};
anim.onEnd=function(){
_4fc.parentNode.removeChild(_4fc);
};
if(_4f9){
var _4fe=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_4fe();
_4f9(_4f5,anim);
};
}
return anim;
};
dojo.lfx.html.highlight=function(_4ff,_500,_501,_502,_503){
_4ff=dojo.lfx.html._byId(_4ff);
var _504=[];
dojo.lang.forEach(_4ff,function(node){
var _506=dojo.style.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _508=dojo.style.getStyle(node,"background-image");
var _509=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_506.length>3){
_506.pop();
}
var rgb=new dojo.graphics.color.Color(_500);
var _50b=new dojo.graphics.color.Color(_506);
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:rgb,end:_50b}],_501,_502);
var _50d=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_50d();
if(_508){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
};
var _50e=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_50e();
if(_508){
node.style.backgroundImage=_508;
}
if(_509){
node.style.backgroundColor="transparent";
}
if(_503){
_503(node,anim);
}
};
_504.push(anim);
});
if(_4ff.length>1){
return dojo.lfx.combine(_504);
}else{
return _504[0];
}
};
dojo.lfx.html.unhighlight=function(_50f,_510,_511,_512,_513){
_50f=dojo.lfx.html._byId(_50f);
var _514=[];
dojo.lang.forEach(_50f,function(node){
var _516=new dojo.graphics.color.Color(dojo.style.getBackgroundColor(node));
var rgb=new dojo.graphics.color.Color(_510);
var _518=dojo.style.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,[{property:"background-color",start:_516,end:rgb}],_511,_512);
var _51a=(anim["beforeBegin"])?dojo.lang.hitch(anim,"beforeBegin"):function(){
};
anim.beforeBegin=function(){
_51a();
if(_518){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_516.toRgb().join(",")+")";
};
var _51b=(anim["onEnd"])?dojo.lang.hitch(anim,"onEnd"):function(){
};
anim.onEnd=function(){
_51b();
if(_513){
_513(node,anim);
}
};
_514.push(anim);
});
if(_50f.length>1){
return dojo.lfx.combine(_514);
}else{
return _514[0];
}
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
function getDojoTagName(node){
var _51d=node.tagName;
if(_51d.substr(0,5).toLowerCase()!="dojo:"){
if(_51d.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_51d.substring(4).toLowerCase();
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type")){
return "dojo:"+node.getAttributeNS(dojo.dom.dojoml,"type").toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if(!dj_global["djConfig"]||!djConfig["ignoreClassNames"]){
var _51f=node.className||node.getAttribute("class");
if(_51f&&_51f.indexOf&&_51f.indexOf("dojo-")!=-1){
var _520=_51f.split(" ");
for(var x=0;x<_520.length;x++){
if(_520[x].length>5&&_520[x].indexOf("dojo-")>=0){
return "dojo:"+_520[x].substr(5).toLowerCase();
}
}
}
}
}
return _51d.toLowerCase();
}
this.parseElement=function(node,_523,_524,_525){
if(node.getAttribute("parseWidgets")=="false"){
return {};
}
var _526={};
var _527=getDojoTagName(node);
_526[_527]=[];
if((!_524)||(_527.substr(0,4).toLowerCase()=="dojo")){
var _528=parseAttributes(node);
for(var attr in _528){
if((!_526[_527][attr])||(typeof _526[_527][attr]!="array")){
_526[_527][attr]=[];
}
_526[_527][attr].push(_528[attr]);
}
_526[_527].nodeRef=node;
_526.tagName=_527;
_526.index=_525||0;
}
var _52a=0;
var tcn,i=0,nodes=node.childNodes;
while(tcn=nodes[i++]){
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_52a++;
var ctn=getDojoTagName(tcn);
if(!_526[ctn]){
_526[ctn]=[];
}
_526[ctn].push(this.parseElement(tcn,true,_524,_52a));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_526[ctn][_526[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_526[_527].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _526;
};
function parseAttributes(node){
var _52e={};
var atts=node.attributes;
var _530,i=0;
while(_530=atts[i++]){
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_530){
continue;
}
if((typeof _530=="object")&&(typeof _530.nodeValue=="undefined")||(_530.nodeValue==null)||(_530.nodeValue=="")){
continue;
}
}
var nn=(_530.nodeName.indexOf("dojo:")==-1)?_530.nodeName:_530.nodeName.split("dojo:")[1];
_52e[nn]={value:_530.nodeValue};
}
return _52e;
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_532,_533,init,_535){
if((dojo.lang.isFunction(_535))||((!_535)&&(!dojo.lang.isFunction(init)))){
var temp=_535;
_535=init;
init=temp;
}
var _537=[];
if(dojo.lang.isArray(_533)){
_537=_533;
_533=_537.shift();
}
if(!init){
init=dojo.evalObjPath(_532,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_533?_533.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _533();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_537;
for(var i=0,l=_537.length;i<l;i++){
dojo.lang.extend(ctor,_537[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_532;
if(dojo.lang.isArray(_535)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_535));
}else{
dojo.lang.extend(ctor,(_535)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare.base);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
dojo.lang.setObjPathValue(_532,ctor,null,true);
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this.inherited("constructor",arguments);
}else{
this._inherited(s,"constructor",arguments);
}
}
var m=(self.constructor.mixins)||([]);
for(var i=0,l=m.length;i<l;i++){
(((m[i].prototype)&&(m[i].prototype.initializer))||(m[i])).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare.base={_getPropContext:function(){
return (this.___proto||this);
},_inherited:function(_53f,_540,args){
var _542=this.___proto;
this.___proto=_53f;
var _543=_53f[_540].apply(this,(args||[]));
this.___proto=_542;
return _543;
},inheritedFrom:function(ctor,prop,args){
var p=((ctor)&&(ctor.prototype)&&(ctor.prototype[prop]));
return (dojo.lang.isFunction(p)?p.apply(this,(args||[])):p);
},inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._inherited(p,prop,args):p[prop]);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _54b={};
var _54c=[];
this.getUniqueId=function(_54d){
return _54d+"_"+(_54b[_54d]!=undefined?++_54b[_54d]:_54b[_54d]=0);
};
this.add=function(_54e){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_54e);
if(!_54e.extraArgs["id"]){
_54e.extraArgs["id"]=_54e.extraArgs["ID"];
}
if(_54e.widgetId==""){
if(_54e["id"]){
_54e.widgetId=_54e["id"];
}else{
if(_54e.extraArgs["id"]){
_54e.widgetId=_54e.extraArgs["id"];
}else{
_54e.widgetId=this.getUniqueId(_54e.widgetType);
}
}
}
if(this.widgetIds[_54e.widgetId]){
dojo.debug("widget ID collision on ID: "+_54e.widgetId);
}
this.widgetIds[_54e.widgetId]=_54e;
dojo.profile.end("dojo.widget.manager.add");
};
this.destroyAll=function(){
for(var x=this.widgets.length-1;x>=0;x--){
try{
this.widgets[x].destroy(true);
delete this.widgets[x];
}
catch(e){
}
}
};
this.remove=function(_550){
var tw=this.widgets[_550].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_550,1);
};
this.removeById=function(id){
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
return this.widgetIds[id];
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(x.widgetType.toLowerCase()==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsOfType=function(id){
dojo.deprecated("getWidgetsOfType","use getWidgetsByType","0.4");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_55a,_55b){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_55a(x)){
ret.push(x);
if(_55b){
return false;
}
}
return true;
});
return (_55b?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _561={};
var _562=["dojo.widget"];
for(var i=0;i<_562.length;i++){
_562[_562[i]]=true;
}
this.registerWidgetPackage=function(_564){
if(!_562[_564]){
_562[_564]=true;
_562.push(_564);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_562,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_566,_567,_568){
var impl=this.getImplementationName(_566);
if(impl){
var ret=new impl(_567);
return ret;
}
};
this.getImplementationName=function(_56b){
var _56c=_56b.toLowerCase();
var impl=_561[_56c];
if(impl){
return impl;
}
if(!_54c.length){
for(var _56e in dojo.render){
if(dojo.render[_56e]["capable"]===true){
var _56f=dojo.render[_56e].prefixes;
for(var i=0;i<_56f.length;i++){
_54c.push(_56f[i].toLowerCase());
}
}
}
_54c.push("");
}
for(var i=0;i<_562.length;i++){
var _571=dojo.evalObjPath(_562[i]);
if(!_571){
continue;
}
for(var j=0;j<_54c.length;j++){
if(!_571[_54c[j]]){
continue;
}
for(var _573 in _571[_54c[j]]){
if(_573.toLowerCase()!=_56c){
continue;
}
_561[_56c]=_571[_54c[j]][_573];
return _561[_56c];
}
}
for(var j=0;j<_54c.length;j++){
for(var _573 in _571){
if(_573.toLowerCase()!=(_54c[j]+_56c)){
continue;
}
_561[_56c]=_571[_573];
return _561[_56c];
}
}
}
throw new Error("Could not locate \""+_56b+"\" class");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _575=this.topWidgets[id];
if(_575.checkSize){
_575.checkSize();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_57a,_57b){
dw[(_57b||_57a)]=h(_57a);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _57d=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _57d[n];
}
return _57d;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.declare("dojo.widget.Widget",null,{initializer:function(){
this.children=[];
this.extraArgs={};
},parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",toString:function(){
return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.isEnabled=true;
},disable:function(){
this.isEnabled=false;
},hide:function(){
this.isHidden=true;
},show:function(){
this.isHidden=false;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _57f=this.children[i];
if(_57f.onResized){
_57f.onResized();
}
}
},create:function(args,_581,_582){
this.satisfyPropertySets(args,_581,_582);
this.mixInProperties(args,_581,_582);
this.postMixInProperties(args,_581,_582);
dojo.widget.manager.add(this);
this.buildRendering(args,_581,_582);
this.initialize(args,_581,_582);
this.postInitialize(args,_581,_582);
this.postCreate(args,_581,_582);
return this;
},destroy:function(_583){
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_583);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
while(this.children.length>0){
var tc=this.children[0];
this.removeChild(tc);
tc.destroy();
}
},getChildrenOfType:function(type,_586){
var ret=[];
var _588=dojo.lang.isFunction(type);
if(!_588){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_588){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_586){
ret=ret.concat(this.children[x].getChildrenOfType(type,_586));
}
}
return ret;
},getDescendants:function(){
var _58a=[];
var _58b=[this];
var elem;
while(elem=_58b.pop()){
_58a.push(elem);
dojo.lang.forEach(elem.children,function(elem){
_58b.push(elem);
});
}
return _58a;
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _592;
var _593=dojo.widget.lcArgsCache[this.widgetType];
if(_593==null){
_593={};
for(var y in this){
_593[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_593;
}
var _595={};
for(var x in args){
if(!this[x]){
var y=_593[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_595[x]){
continue;
}
_595[x]=true;
if((typeof this[x])!=(typeof _592)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.connect(this,x,this,tn);
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=args[x];
}else{
var _597=args[x].split(";");
for(var y=0;y<_597.length;y++){
var si=_597[y].indexOf(":");
if((si!=-1)&&(_597[y].length>si)){
this[x][_597[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_597[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(){
},initialize:function(args,frag){
return false;
},postInitialize:function(args,frag){
return false;
},postCreate:function(args,frag){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dojo.unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_59f){
},addChild:function(_5a0){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_5a1){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_5a1){
this.children.splice(x,1);
break;
}
}
return _5a1;
},resize:function(_5a3,_5a4){
this.setWidth(_5a3);
this.setHeight(_5a4);
},setWidth:function(_5a5){
if((typeof _5a5=="string")&&(_5a5.substr(-1)=="%")){
this.setPercentageWidth(_5a5);
}else{
this.setNativeWidth(_5a5);
}
},setHeight:function(_5a6){
if((typeof _5a6=="string")&&(_5a6.substr(-1)=="%")){
this.setPercentageHeight(_5a6);
}else{
this.setNativeHeight(_5a6);
}
},setPercentageHeight:function(_5a7){
return false;
},setNativeHeight:function(_5a8){
return false;
},setPercentageWidth:function(_5a9){
return false;
},setNativeWidth:function(_5aa){
return false;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.getSiblings()[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.getSiblings(),this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.getSiblings().length-1){
return null;
}
if(idx<0){
return null;
}
return this.getSiblings()[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _5ae=type.toLowerCase();
this[_5ae]=function(_5af,_5b0,_5b1,_5b2,_5b3){
return dojo.widget.buildWidgetFromParseTree(_5ae,_5af,_5b0,_5b1,_5b2,_5b3);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_5b4,_5b5,_5b6){
var _5b7=_5b5.parseProperties(_5b4["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_5b8,_5b9,_5ba){
var _5bb=_5b9.parseProperties(_5b8["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_5be,_5bf,_5c0,_5c1){
var _5c2=type.split(":");
_5c2=(_5c2.length==2)?_5c2[1]:type;
var _5c3=_5c1||_5be.parseProperties(frag["dojo:"+_5c2]);
var _5c4=dojo.widget.manager.getImplementation(_5c2);
if(!_5c4){
throw new Error("cannot find \""+_5c2+"\" widget");
}else{
if(!_5c4.create){
throw new Error("\""+_5c2+"\" widget object does not appear to implement *Widget");
}
}
_5c3["dojoinsertionindex"]=_5c0;
var ret=_5c4.create(_5c3,frag,_5bf);
return ret;
};
dojo.widget.defineWidget=function(_5c6,_5c7,_5c8,init,_5ca){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_5cc,_5cd,_5ce,init,_5d0){
var _5d1=_5cc.split(".");
var type=_5d1.pop();
var regx="\\.("+(_5cd?_5cd+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_5cc.search(new RegExp(regx));
_5d1=(r<0?_5d1.join("."):_5cc.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_5d1);
dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase());
_5d0=(_5d0)||{};
_5d0.widgetType=type;
if((!init)&&(_5d0["classConstructor"])){
init=_5d0.classConstructor;
delete _5d0.classConstructor;
}
dojo.declare(_5cc,_5ce,init,_5d0);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_5d5){
this.propertySetsList=[];
this.fragment=_5d5;
this.createComponents=function(frag,_5d7){
var _5d8=[];
var _5d9=false;
try{
if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){
var _5da=dojo.widget.tags;
var tna=String(frag["tagName"]).split(";");
for(var x=0;x<tna.length;x++){
var ltn=(tna[x].replace(/^\s+|\s+$/g,"")).toLowerCase();
if(_5da[ltn]){
_5d9=true;
frag.tagName=ltn;
var ret=_5da[ltn](frag,this,_5d7,frag["index"]);
_5d8.push(ret);
}else{
if((dojo.lang.isString(ltn))&&(ltn.substr(0,5)=="dojo:")){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_5d9){
_5d8=_5d8.concat(this.createSubComponents(frag,_5d7));
}
return _5d8;
};
this.createSubComponents=function(_5df,_5e0){
var frag,comps=[];
for(var item in _5df){
frag=_5df[item];
if((frag)&&(typeof frag=="object")&&(frag!=_5df.nodeRef)&&(frag!=_5df["tagName"])){
comps=comps.concat(this.createComponents(frag,_5e0));
}
}
return comps;
};
this.parsePropertySets=function(_5e3){
return [];
var _5e4=[];
for(var item in _5e3){
if((_5e3[item]["tagName"]=="dojo:propertyset")){
_5e4.push(_5e3[item]);
}
}
this.propertySetsList.push(_5e4);
return _5e4;
};
this.parseProperties=function(_5e6){
var _5e7={};
for(var item in _5e6){
if((_5e6[item]==_5e6["tagName"])||(_5e6[item]==_5e6.nodeRef)){
}else{
if((_5e6[item]["tagName"])&&(dojo.widget.tags[_5e6[item].tagName.toLowerCase()])){
}else{
if((_5e6[item][0])&&(_5e6[item][0].value!="")&&(_5e6[item][0].value!=null)){
try{
if(item.toLowerCase()=="dataprovider"){
var _5e9=this;
this.getDataProvider(_5e9,_5e6[item][0].value);
_5e7.dataProvider=this.dataProvider;
}
_5e7[item]=_5e6[item][0].value;
var _5ea=this.parseProperties(_5e6[item]);
for(var _5eb in _5ea){
_5e7[_5eb]=_5ea[_5eb];
}
}
catch(e){
dojo.debug(e);
}
}
}
}
}
return _5e7;
};
this.getDataProvider=function(_5ec,_5ed){
dojo.io.bind({url:_5ed,load:function(type,_5ef){
if(type=="load"){
_5ec.dataProvider=_5ef;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_5f0){
for(var x=0;x<this.propertySetsList.length;x++){
if(_5f0==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_5f2){
var _5f3=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl["componentClass"]||cpl["componentType"]||null;
if((cpcc)&&(propertySetId==cpcc[0].value)){
_5f3.push(cpl);
}
}
return _5f3;
};
this.getPropertySets=function(_5f7){
var ppl="dojo:propertyproviderlist";
var _5f9=[];
var _5fa=_5f7["tagName"];
if(_5f7[ppl]){
var _5fb=_5f7[ppl].value.split(" ");
for(var _5fc in _5fb){
if((_5fc.indexOf("..")==-1)&&(_5fc.indexOf("://")==-1)){
var _5fd=this.getPropertySetById(_5fc);
if(_5fd!=""){
_5f9.push(_5fd);
}
}else{
}
}
}
return (this.getPropertySetsByType(_5fa)).concat(_5f9);
};
this.createComponentFromScript=function(_5fe,_5ff,_600){
var ltn="dojo:"+_5ff.toLowerCase();
if(dojo.widget.tags[ltn]){
_600.fastMixIn=true;
return [dojo.widget.tags[ltn](_600,this,null,null,_600)];
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_604,_605,_606){
var _607=name.toLowerCase();
var _608="dojo:"+_607;
var _609=(dojo.byId(name)&&(!dojo.widget.tags[_608]));
if((arguments.length==1)&&((typeof name!="string")||(_609))){
var xp=new dojo.xml.Parse();
var tn=(_609)?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_60c,name,_60e){
_60e[_608]={dojotype:[{value:_607}],nodeRef:_60c,fastMixIn:true};
return dojo.widget.getParser().createComponentFromScript(_60c,name,_60e,true);
}
if(typeof name!="string"&&typeof _604=="string"){
dojo.deprecated("dojo.widget.createWidget","argument order is now of the form "+"dojo.widget.createWidget(NAME, [PROPERTIES, [REFERENCENODE, [POSITION]]])","0.4");
return fromScript(name,_604,_605);
}
_604=_604||{};
var _60f=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_605){
_60f=true;
_605=tn;
if(h){
document.body.appendChild(_605);
}
}else{
if(_606){
dojo.dom.insertAtPosition(tn,_605,_606);
}else{
tn=_605;
}
}
var _611=fromScript(tn,name,_604);
if(!_611||!_611[0]||typeof _611[0].widgetType=="undefined"){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
if(_60f){
if(_611[0].domNode.parentNode){
_611[0].domNode.parentNode.removeChild(_611[0].domNode);
}
}
return _611[0];
};
dojo.widget.fromScript=function(name,_613,_614,_615){
dojo.deprecated("dojo.widget.fromScript"," use "+"dojo.widget.createWidget instead","0.4");
return dojo.widget.createWidget(name,_613,_614,_615);
};
dojo.provide("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(){
dojo.lang.forward("fillFromTemplateCache");
};
dojo.widget.fillFromTemplateCache=function(obj,_617,_618,_619,_61a){
var _61b=_617||obj.templatePath;
var _61c=_618||obj.templateCssPath;
if(_61b&&!(_61b instanceof dojo.uri.Uri)){
_61b=dojo.uri.dojoUri(_61b);
dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4");
}
if(_61c&&!(_61c instanceof dojo.uri.Uri)){
_61c=dojo.uri.dojoUri(_61c);
dojo.deprecated("templateCssPath should be of type dojo.uri.Uri",null,"0.4");
}
var _61d=dojo.widget._templateCache;
if(!obj["widgetType"]){
do{
var _61e="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_61d[_61e]);
obj.widgetType=_61e;
}
var wt=obj.widgetType;
if(_61c&&!dojo.widget._cssFiles[_61c.toString()]){
if((!obj.templateCssString)&&(_61c)){
obj.templateCssString=dojo.hostenv.getText(_61c);
obj.templateCssPath=null;
}
if((obj["templateCssString"])&&(!obj.templateCssString["loaded"])){
dojo.style.insertCssText(obj.templateCssString,null,_61c);
if(!obj.templateCssString){
obj.templateCssString="";
}
obj.templateCssString.loaded=true;
}
dojo.widget._cssFiles[_61c.toString()]=true;
}
var ts=_61d[wt];
if(!ts){
_61d[wt]={"string":null,"node":null};
if(_61a){
ts={};
}else{
ts=_61d[wt];
}
}
if((!obj.templateString)&&(!_61a)){
obj.templateString=_619||ts["string"];
}
if((!obj.templateNode)&&(!_61a)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_61b)){
var _621=dojo.hostenv.getText(_61b);
if(_621){
_621=_621.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _622=_621.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_622){
_621=_622[1];
}
}else{
_621="";
}
obj.templateString=_621;
if(!_61a){
_61d[wt]["string"]=_621;
}
}
if((!ts["string"])&&(!_61a)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:",nsName:"role"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:"",nsName:"state"},setAttr:function(node,attr,_625){
if(dojo.render.html.ie){
node.setAttribute(this[attr].alias+":"+this[attr].nsName,this[attr].prefix+_625);
}else{
node.setAttributeNS(this[attr].namespace,this[attr].nsName,this[attr].prefix+_625);
}
}};
dojo.widget.attachTemplateNodes=function(_626,_627,_628){
var _629=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_626){
_626=_627.domNode;
}
if(_626.nodeType!=_629){
return;
}
var _62b=_626.all||_626.getElementsByTagName("*");
var _62c=_627;
for(var x=-1;x<_62b.length;x++){
var _62e=(x==-1)?_626:_62b[x];
var _62f=[];
for(var y=0;y<this.attachProperties.length;y++){
var _631=_62e.getAttribute(this.attachProperties[y]);
if(_631){
_62f=_631.split(";");
for(var z=0;z<_62f.length;z++){
if(dojo.lang.isArray(_627[_62f[z]])){
_627[_62f[z]].push(_62e);
}else{
_627[_62f[z]]=_62e;
}
}
break;
}
}
var _633=_62e.getAttribute(this.templateProperty);
if(_633){
_627[_633]=_62e;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_62e.getAttribute(wai.name);
if(val){
dojo.widget.wai.setAttr(_62e,wai.name,val);
}
},this);
var _637=_62e.getAttribute(this.eventAttachProperty);
if(_637){
var evts=_637.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _639=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _63b=tevt.split(":");
tevt=trim(_63b[0]);
_639=trim(_63b[1]);
}
if(!_639){
_639=tevt;
}
var tf=function(){
var ntf=new String(_639);
return function(evt){
if(_62c[ntf]){
_62c[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_62e,tevt,tf,false,true);
}
}
for(var y=0;y<_628.length;y++){
var _63f=_62e.getAttribute(_628[y]);
if((_63f)&&(_63f.length)){
var _639=null;
var _640=_628[y].substr(4);
_639=trim(_63f);
var _641=[_639];
if(_639.indexOf(";")>=0){
_641=dojo.lang.map(_639.split(";"),trim);
}
for(var z=0;z<_641.length;z++){
if(!_641[z].length){
continue;
}
var tf=function(){
var ntf=new String(_641[z]);
return function(evt){
if(_62c[ntf]){
_62c[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_62e,_640,tf,false,true);
}
}
}
var _644=_62e.getAttribute(this.onBuildProperty);
if(_644){
eval("var node = baseNode; var widget = targetObj; "+_644);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].legth<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,{initializer:function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_64c,_64d,pos,ref,_650){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_64c,_64d,pos,ref,_650);
this.registerChild(_64c,_650);
}
return _64c;
},addWidgetAsDirectChild:function(_651,_652,pos,ref,_655){
if((!this.containerNode)&&(!_652)){
this.containerNode=this.domNode;
}
var cn=(_652)?_652:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=document.body;
}
ref=cn.lastChild;
}
if(!_655){
_655=0;
}
_651.domNode.setAttribute("dojoinsertionindex",_655);
if(!ref){
cn.appendChild(_651.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_651.domNode,ref.parentNode,_655);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_651.domNode);
}else{
dojo.dom.insertAtPosition(_651.domNode,cn,pos);
}
}
}
},registerChild:function(_657,_658){
_657.dojoInsertionIndex=_658;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_658){
idx=i;
}
}
this.children.splice(idx+1,0,_657);
_657.parent=this;
_657.addedTo(this);
delete dojo.widget.manager.topWidgets[_657.widgetId];
},removeChild:function(_65b){
dojo.dom.removeNode(_65b.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_65b);
},getFragNodeRef:function(frag){
if(!frag||!frag["dojo:"+this.widgetType.toLowerCase()]){
dojo.raise("Error: no frag for widget type "+this.widgetType+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return (frag?frag["dojo:"+this.widgetType.toLowerCase()]["nodeRef"]:null);
},postInitialize:function(args,frag,_65f){
var _660=this.getFragNodeRef(frag);
if(_65f&&(_65f.snarfChildDomOutput||!_660)){
_65f.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_660);
}else{
if(_660){
if(this.domNode&&(this.domNode!==_660)){
var _661=_660.parentNode.replaceChild(this.domNode,_660);
}
}
}
if(_65f){
_65f.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _662=dojo.widget.getParser();
_662.createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _668=false;
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
if(args["templatepath"]){
_668=true;
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],args["templateCssPath"],null,_668);
var ts=dojo.widget._templateCache[this.widgetType];
if((ts)&&(!_668)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _66a=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_66a=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_66a){
var hash=this.strings||{};
for(var key in dojo.widget.defaultStrings){
if(dojo.lang.isUndefined(hash[key])){
hash[key]=dojo.widget.defaultStrings[key];
}
}
for(var i=0;i<_66a.length;i++){
var key=_66a[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _671;
if((kval)||(dojo.lang.isString(kval))){
_671=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_66a[i],_671);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_668){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_66a)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_66a){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes(this.domNode,this);
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_673,_674){
if(!_674){
_674=this;
}
return dojo.widget.attachTemplateNodes(_673,_674,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
delete this.domNode;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerHeight");
},getContainerWidth:function(){
dojo.unimplemented("dojo.widget.DomWidget.getContainerWidth");
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.html.extras");
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _677=dojo.html.getCursorPosition(e);
with(dojo.html){
var _678=getAbsoluteX(node,true)+(getInnerWidth(node)/2);
var _679=getAbsoluteY(node,true)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_677.x<_678?WEST:EAST)|(_677.y<_679?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _67b="";
if(node==null){
return _67b;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _67d="unknown";
try{
_67d=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_67d){
case "block":
case "list-item":
case "run-in":
case "table":
case "table-row-group":
case "table-header-group":
case "table-footer-group":
case "table-row":
case "table-column-group":
case "table-column":
case "table-cell":
case "table-caption":
_67b+="\n";
_67b+=dojo.html.renderedTextContent(node.childNodes[i]);
_67b+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_67b+="\n";
}else{
_67b+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _67f="unknown";
try{
_67f=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_67f){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_67f){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_67b)){
text.replace(/^\s/,"");
}
break;
}
_67b+=text;
break;
default:
break;
}
}
return _67b;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=dojo.string.trim(txt);
}
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
var _683="none";
if((/^<t[dh][\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_683="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table><tbody>"+txt+"</tbody></table>";
_683="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){
txt="<table>"+txt+"</table>";
_683="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _684=null;
switch(_683){
case "cell":
_684=tn.getElementsByTagName("tr")[0];
break;
case "row":
_684=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_684=tn.getElementsByTagName("table")[0];
break;
default:
_684=tn;
break;
}
var _685=[];
for(var x=0;x<_684.childNodes.length;x++){
_685.push(_684.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _685;
};
dojo.html.placeOnScreen=function(node,_688,_689,_68a,_68b){
if(dojo.lang.isArray(_688)){
_68b=_68a;
_68a=_689;
_689=_688[1];
_688=_688[0];
}
if(!isNaN(_68a)){
_68a=[Number(_68a),Number(_68a)];
}else{
if(!dojo.lang.isArray(_68a)){
_68a=[0,0];
}
}
var _68c=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_68a[0];
var h=node.offsetHeight+_68a[1];
if(_68b){
_688-=_68c.x;
_689-=_68c.y;
}
var x=_688+w;
if(x>view.w){
x=view.w-w;
}else{
x=_688;
}
x=Math.max(_68a[0],x)+_68c.x;
var y=_689+h;
if(y>view.h){
y=view.h-h;
}else{
y=_689;
}
y=Math.max(_68a[1],y)+_68c.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.placeOnScreenPoint=function(node,_694,_695,_696,_697){
if(dojo.lang.isArray(_694)){
_697=_696;
_696=_695;
_695=_694[1];
_694=_694[0];
}
if(!isNaN(_696)){
_696=[Number(_696),Number(_696)];
}else{
if(!dojo.lang.isArray(_696)){
_696=[0,0];
}
}
var _698=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var _69a=node.style.display;
node.style.display="";
var w=dojo.style.getInnerWidth(node);
var h=dojo.style.getInnerHeight(node);
node.style.display=_69a;
if(_697){
_694-=_698.x;
_695-=_698.y;
}
var x=-1,y=-1;
if((_694+_696[0])+w<=view.w&&(_695+_696[1])+h<=view.h){
x=(_694+_696[0]);
y=(_695+_696[1]);
}
if((x<0||y<0)&&(_694-_696[0])<=view.w&&(_695+_696[1])+h<=view.h){
x=(_694-_696[0])-w;
y=(_695+_696[1]);
}
if((x<0||y<0)&&(_694+_696[0])+w<=view.w&&(_695-_696[1])<=view.h){
x=(_694+_696[0]);
y=(_695-_696[1])-h;
}
if((x<0||y<0)&&(_694-_696[0])<=view.w&&(_695-_696[1])<=view.h){
x=(_694-_696[0])-w;
y=(_695-_696[1])-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_694,_695,_696,_697);
}
x+=_698.x;
y+=_698.y;
node.style.left=x+"px";
node.style.top=y+"px";
var ret=[x,y];
ret.x=x;
ret.y=y;
return ret;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe "+"style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=document.createElement(html);
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
document.body.appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentElement){
var w=dojo.style.getOuterWidth(this.domNode);
var h=dojo.style.getOuterHeight(this.domNode);
if(w==0||h==0){
dojo.lang.setTimeout(this,this.onResized,50);
return;
}
var s=this.iframe.style;
s.width=w+"px";
s.height=h+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _6a5=dojo.style.toCoordinateArray(node,true);
var s=this.iframe.style;
s.width=_6a5.w+"px";
s.height=_6a5.h+"px";
s.left=_6a5.x+"px";
s.top=_6a5.y+"px";
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(!this.iframe){
return;
}
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_6aa,_6ab,_6ac){
dojo.style.show(node);
if(dojo.lang.isFunction(_6ac)){
_6ac();
}
},hide:function(node,_6ae,_6af,_6b0){
dojo.style.hide(node);
if(dojo.lang.isFunction(_6b0)){
_6b0();
}
}};
dojo.lfx.toggle.fade={show:function(node,_6b2,_6b3,_6b4){
dojo.lfx.fadeShow(node,_6b2,_6b3,_6b4).play();
},hide:function(node,_6b6,_6b7,_6b8){
dojo.lfx.fadeHide(node,_6b6,_6b7,_6b8).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_6ba,_6bb,_6bc){
dojo.lfx.wipeIn(node,_6ba,_6bb,_6bc).play();
},hide:function(node,_6be,_6bf,_6c0){
dojo.lfx.wipeOut(node,_6be,_6bf,_6c0).play();
}};
dojo.lfx.toggle.explode={show:function(node,_6c2,_6c3,_6c4,_6c5){
dojo.lfx.explode(_6c5||[0,0,0,0],node,_6c2,_6c3,_6c4).play();
},hide:function(node,_6c7,_6c8,_6c9,_6ca){
dojo.lfx.implode(node,_6ca||[0,0,0,0],_6c7,_6c8,_6c9).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},getContainerHeight:function(){
dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_6cf){
var ch=this.getContainerHeight();
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_6d3){
try{
if(!_6d3){
dojo.event.browser.clean(this.domNode);
}
this.domNode.parentNode.removeChild(this.domNode);
delete this.domNode;
}
catch(e){
}
},isShowing:function(){
return dojo.style.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isHidden){
this.show();
}else{
this.hide();
}
},show:function(){
this.animationInProgress=true;
this.isHidden=false;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
this.animationInProgress=true;
this.isHidden=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
w=w||dojo.style.getOuterWidth(this.domNode);
h=h||dojo.style.getOuterHeight(this.domNode);
if(this.width==w&&this.height==h){
return false;
}
this.width=w;
this.height=h;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
if(!this._isResized(w,h)){
return;
}
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_6d8){
_6d8.checkSize();
});
}});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.widget.LinkPane");
dojo.widget.tags.addParseTreeHandler("dojo:LinkPane");
dojo.provide("dojo.io.*");
dojo.provide("dojo.widget.ContentPane");
dojo.provide("dojo.widget.html.ContentPane");
dojo.widget.html.ContentPane=function(){
this._onLoadStack=[];
this._onUnLoadStack=[];
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.ContentPane,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.ContentPane,{widgetType:"ContentPane",isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptScope:null,_remoteStyles:null,_callOnUnLoad:false,postCreate:function(args,frag,_6db){
if(this.handler!=""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.html.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
this.isLoaded=true;
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},_downloadExternalContent:function(url,_6de){
this._handleDefaults("Loading...","onDownloadStart");
var self=this;
dojo.io.bind({url:url,useCache:_6de,preventCache:!_6de,mimetype:"text/html",handler:function(type,data,e){
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
self._handleDefaults.call(self,"Error loading '"+url+"' ("+e.status+" "+e.statusText+")","onDownloadError");
self.onLoad();
}
}});
},onLoad:function(e){
this._runStack("_onLoadStack");
},onUnLoad:function(e){
this._runStack("_onUnLoadStack");
this.scriptScope=null;
},_runStack:function(_6e5){
var st=this[_6e5];
var err="";
for(var i=0;i<st.length;i++){
try{
st[i].call(this.scriptScope);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_6e5]=[];
if(err.length){
var name=(_6e5=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError",true);
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnLoad:function(obj,func){
this._pushOnStack(this._onUnLoadStack,obj,func);
},_pushOnStack:function(_6ee,obj,func){
if(typeof func=="undefined"){
_6ee.push(obj);
}else{
_6ee.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnLoad();
dojo.widget.html.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_6f8,_6f9){
if(!_6f8){
_6f8="onContentError";
}
if(dojo.lang.isString(e)){
e={"text":e,"toString":function(){
return this.text;
}};
}
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_6f8](e);
if(e.returnValue){
if(_6f9){
alert(e.toString());
}else{
if(this._callOnUnLoad){
this.onUnLoad();
}
this._callOnUnLoad=false;
this._setContent(e.toString());
}
}
},splitAndFixPaths:function(s,url){
if(!url){
url="./";
}
if(!s){
return "";
}
var _6fc=[];
var _6fd=[];
var _6fe=[];
var _6ff=[];
var _700=[];
var _701=[];
var _702=[];
while(_702){
_702=s.match(/<title[^>]*>([\s\S]*?)<\/title>/i);
if(!_702){
break;
}
_6fc.push(_702[1]);
s=s.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"");
}
var _702=[];
while(_702){
_702=s.match(/<style[^>]*>([\s\S]*?)<\/style>/i);
if(!_702){
break;
}
_6ff.push(dojo.style.fixPathsInCssText(_702[1],url));
s=s.replace(/<style[^>]*?>[\s\S]*?<\/style>/i,"");
}
var pos=0;
var pos2=0;
var stop=0;
var str="";
var _707="";
var attr=[];
var fix="";
var _70a="";
var tag="";
var _70c="";
while(pos>-1){
pos=s.search(/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i);
if(pos==-1){
break;
}
str+=s.substring(0,pos);
s=s.substring(pos,s.length);
tag=s.match(/^<[a-z][a-z0-9]*[^>]*>/i)[0];
s=s.substring(tag.length,s.length);
pos2=0;
_70a="";
fix="";
_70c="";
var _70d=0;
while(pos2!=-1){
_70a+=tag.substring(0,pos2)+fix;
tag=tag.substring(pos2+_70d,tag.length);
attr=tag.match(/ (src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i);
if(!attr){
break;
}
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(attr[3].search(/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/)==-1){
_707=(new dojo.uri.Uri(url,attr[3]).toString());
}else{
pos2=pos2+attr[3].length;
continue;
}
break;
case "style":
_707=dojo.style.fixPathsInCssText(attr[3],url);
break;
default:
pos2=pos2+attr[3].length;
continue;
}
_70c=" "+attr[1]+"="+attr[2]+attr[3]+attr[2];
_70d=_70c.length;
fix=" "+attr[1]+"="+attr[2]+_707+attr[2];
pos2=tag.search(new RegExp(dojo.string.escapeRegExp(_70c)));
}
str+=_70a+tag;
pos=0;
}
s=str+s;
_702=[];
var tmp=[];
while(_702){
_702=s.match(/<script([^>]*)>([\s\S]*?)<\/script>/i);
if(!_702){
break;
}
if(_702[1]){
attr=_702[1].match(/src=(['"]?)([^"']*)\1/i);
if(attr){
var tmp=attr[2].search(/.*(\bdojo\b(?:\.uncompressed)?\.js)$/);
if(tmp>-1){
dojo.debug("Security note! inhibit:"+attr[2]+" from  beeing loaded again.");
}else{
_700.push(attr[2]);
}
}
}
if(_702[2]){
var sc=_702[2].replace(/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g,"");
if(!sc){
continue;
}
tmp=[];
while(tmp&&_701.length<100){
tmp=sc.match(/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix))\((['"]).*?\1\)\s*;?/);
if(!tmp){
break;
}
_701.push(tmp[0]);
sc=sc.replace(tmp[0],"");
}
_6fd.push(sc);
}
s=s.replace(/<script[^>]*>[\s\S]*?<\/script>/i,"");
}
if(this.executeScripts){
var _70c=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*\S=(['"])[^>]*[^\.\]])scriptScope([^>]*>)/;
var pos=0;
var str="";
_702=[];
var cit="";
while(pos>-1){
pos=s.search(_70c);
if(pos>-1){
cit=((RegExp.$2=="'")?"\"":"'");
str+=s.substring(0,pos);
s=s.substr(pos).replace(_70c,"$1dojo.widget.byId("+cit+this.widgetId+cit+").scriptScope$3");
}
}
s=str+s;
}
_702=[];
while(_702){
_702=s.match(/<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>/i);
if(!_702){
break;
}
attr=_702[1].match(/href=(['"]?)([^'">]*)\1/i);
if(attr){
_6fe.push(attr[2]);
}
s=s.replace(new RegExp(_702[0]),"");
}
return {"xml":s,"styles":_6ff,"linkStyles":_6fe,"titles":_6fc,"requires":_701,"scripts":_6fd,"remoteScripts":_700,"url":url};
},_setContent:function(xml){
this.destroyChildren();
if(this._remoteStyles){
for(var i=0;i<this._remoteStyles.length;i++){
if(this._remoteStyles[i]&&this._remoteStyles.parentNode){
this._remoteStyles[i].parentNode.removeChild(this._remoteStyles[i]);
}
}
this._remoteStyles=null;
}
var node=this.containerNode||this.domNode;
try{
if(typeof xml!="string"){
node.innerHTML="";
node.appendChild(xml);
}else{
node.innerHTML=xml;
}
}
catch(e){
e="Could'nt load content:"+e;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
if(this._callOnUnLoad){
this.onUnLoad();
}
this._callOnUnLoad=true;
if(!data||dojo.dom.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if((!data.xml)&&(this.adjustPaths)){
data=this.splitAndFixPaths(data);
}
if(this.extractContent){
var _715=data.xml.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_715){
data.xml=_715[1];
}
}
for(var i=0;i<data.styles.length;i++){
if(i==0){
this._remoteStyles=[];
}
this._remoteStyles.push(dojo.style.insertCssText(data.styles[i]));
}
for(var i=0;i<data.linkStyles.length;i++){
if(i==0){
this._remoteStyles=[];
}
this._remoteStyles.push(dojo.style.insertCssFile(data.linkStyles[i]));
}
this._setContent(data.xml);
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
this._handleDefaults(e,"onContentError",true);
}
}
}
var _717=this;
function asyncParse(){
if(_717.executeScripts){
_717._executeScripts(data);
}
if(_717.parseContent){
var node=_717.containerNode||_717.domNode;
var _719=new dojo.xml.Parse();
var frag=_719.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_717);
}
_717.onResized();
_717.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_71b){
var fcn=dojo.lang.isFunction(_71b)?_71b:window[_71b];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_71b+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
return false;
}
return true;
},_executeScripts:function(data){
var self=this;
for(var i=0;i<data.remoteScripts.length;i++){
dojo.io.bind({"url":data.remoteScripts[i],"useCash":this.cacheContent,"load":function(type,_721){
dojo.lang.hitch(self,data.scripts.push(_721));
},"error":function(type,_723){
self._handleDefaults.call(self,type+" downloading remote script","onExecError",true);
},"mimetype":"text/plain","sync":true});
}
var _724="";
for(var i=0;i<data.scripts.length;i++){
_724+=data.scripts[i];
}
try{
this.scriptScope=null;
this.scriptScope=new (new Function("_container_",_724+"; return this;"))(self);
}
catch(e){
this._handleDefaults("Error running scripts from content:\n"+e,"onExecError",true);
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:ContentPane");
dojo.provide("dojo.widget.LinkPane");
dojo.provide("dojo.widget.html.LinkPane");
dojo.widget.html.LinkPane=function(){
dojo.widget.html.ContentPane.call(this);
};
dojo.inherits(dojo.widget.html.LinkPane,dojo.widget.html.ContentPane);
dojo.lang.extend(dojo.widget.html.LinkPane,{widgetType:"LinkPane",templateString:"<div class=\"dojoLinkPane\"></div>",fillInTemplate:function(args,frag){
var _727=this.getFragNodeRef(frag);
this.label+=_727.innerHTML;
var _727=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_727);
}});
dojo.provide("dojo.html.layout");
dojo.html.layout=function(_728,_729,_72a){
dojo.html.addClass(_728,"dojoLayoutContainer");
_729=dojo.lang.filter(_729,function(_72b,idx){
_72b.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_72b.layoutAlign);
});
if(_72a&&_72a!="none"){
var rank=function(_72e){
switch(_72e.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_72a=="left-right")?2:3;
case "top":
case "bottom":
return (_72a=="left-right")?3:2;
default:
return 4;
}
};
_729.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.style.getPixelValue(_728,"padding-top",true),left:dojo.style.getPixelValue(_728,"padding-left",true),height:dojo.style.getContentHeight(_728),width:dojo.style.getContentWidth(_728)};
dojo.lang.forEach(_729,function(_732){
var elm=_732.domNode;
var pos=_732.layoutAlign;
with(elm.style){
left=f.left+"px";
top=f.top+"px";
bottom="auto";
right="auto";
}
dojo.html.addClass(elm,"dojoAlign"+dojo.string.capitalize(pos));
if((pos=="top")||(pos=="bottom")){
dojo.style.setOuterWidth(elm,f.width);
var h=dojo.style.getOuterHeight(elm);
f.height-=h;
if(pos=="top"){
f.top+=h;
}else{
elm.style.top=f.top+f.height+"px";
}
}else{
if(pos=="left"||pos=="right"){
dojo.style.setOuterHeight(elm,f.height);
var w=dojo.style.getOuterWidth(elm);
f.width-=w;
if(pos=="left"){
f.left+=w;
}else{
elm.style.left=f.left+f.width+"px";
}
}else{
if(pos=="flood"||pos=="client"){
dojo.style.setOuterWidth(elm,f.width);
dojo.style.setOuterHeight(elm,f.height);
}
}
}
if(_732.onResized){
_732.onResized();
}
});
};
dojo.style.insertCssText(".dojoLayoutContainer{ position: relative; display: block; }\n"+"body .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; }\n"+"body .dojoAlignClient { position: absolute }\n"+".dojoAlignClient { overflow: auto; }\n");
dojo.provide("dojo.widget.LayoutContainer");
dojo.provide("dojo.widget.html.LayoutContainer");
dojo.widget.html.LayoutContainer=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.LayoutContainer,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.LayoutContainer,{widgetType:"LayoutContainer",isContainer:true,layoutChildPriority:"top-bottom",postCreate:function(){
dojo.html.layout(this.domNode,this.children,this.layoutChildPriority);
},addChild:function(_737,_738,pos,ref,_73b){
dojo.widget.html.LayoutContainer.superclass.addChild.call(this,_737,_738,pos,ref,_73b);
dojo.html.layout(this.domNode,this.children,this.layoutChildPriority);
},removeChild:function(pane){
dojo.widget.html.LayoutContainer.superclass.removeChild.call(this,pane);
dojo.html.layout(this.domNode,this.children,this.layoutChildPriority);
},onResized:function(){
dojo.html.layout(this.domNode,this.children,this.layoutChildPriority);
},show:function(){
this.domNode.style.display="";
this.checkSize();
this.domNode.style.display="none";
this.domNode.style.visibility="";
dojo.widget.html.LayoutContainer.superclass.show.call(this);
}});
dojo.lang.extend(dojo.widget.Widget,{layoutAlign:"none"});
dojo.widget.tags.addParseTreeHandler("dojo:LayoutContainer");
dojo.provide("dojo.widget.TabContainer");
dojo.provide("dojo.widget.html.TabContainer");
dojo.provide("dojo.widget.Tab");
dojo.widget.html.TabContainer=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.TabContainer,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.TabContainer,{widgetType:"TabContainer",isContainer:true,labelPosition:"top",closeButton:"none",useVisibility:false,doLayout:true,templatePath:dojo.uri.dojoUri("src/widget/templates/HtmlTabContainer.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlTabContainer.css"),selectedTab:"",fillInTemplate:function(args,frag){
var _73f=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_73f);
dojo.widget.html.TabContainer.superclass.fillInTemplate.call(this,args,frag);
},postCreate:function(args,frag){
for(var i=0;i<this.children.length;i++){
this._setupTab(this.children[i]);
}
if(this.closeButton=="pane"){
var div=document.createElement("div");
dojo.html.addClass(div,"dojoTabPanePaneClose");
var self=this;
dojo.event.connect(div,"onclick",function(){
self._runOnCloseTab(self.selectedTabWidget);
});
dojo.event.connect(div,"onmouseover",function(){
dojo.html.addClass(div,"dojoTabPanePaneCloseHover");
});
dojo.event.connect(div,"onmouseout",function(){
dojo.html.removeClass(div,"dojoTabPanePaneCloseHover");
});
this.dojoTabLabels.appendChild(div);
}
if(this.doLayout){
dojo.html.addClass(this.dojoTabLabels,"dojoTabLabels-"+this.labelPosition);
}else{
dojo.html.addClass(this.dojoTabLabels,"dojoTabLabels-"+this.labelPosition+"-noLayout");
}
this._doSizing();
if(this.selectedTabWidget){
this.selectTab(this.selectedTabWidget,true);
}
},addChild:function(_745,_746,pos,ref,_749){
this._setupTab(_745);
dojo.widget.html.TabContainer.superclass.addChild.call(this,_745,_746,pos,ref,_749);
this._doSizing();
},_setupTab:function(tab){
tab.domNode.style.display="none";
tab.div=document.createElement("div");
dojo.widget.wai.setAttr(tab.div,"waiRole","tab");
dojo.html.addClass(tab.div,"dojoTabPaneTab");
var span=document.createElement("span");
span.innerHTML=tab.label;
dojo.html.disableSelection(span);
if(this.closeButton=="tab"){
var img=document.createElement("div");
dojo.html.addClass(img,"dojoTabPaneTabClose");
var self=this;
dojo.event.connect(img,"onclick",function(evt){
self._runOnCloseTab(tab);
dojo.event.browser.stopEvent(evt);
});
dojo.event.connect(img,"onmouseover",function(){
dojo.html.addClass(img,"dojoTabPaneTabCloseHover");
});
dojo.event.connect(img,"onmouseout",function(){
dojo.html.removeClass(img,"dojoTabPaneTabCloseHover");
});
span.appendChild(img);
}
tab.div.appendChild(span);
this.dojoTabLabels.appendChild(tab.div);
var self=this;
dojo.event.connect(tab.div,"onclick",function(){
self.selectTab(tab);
});
if(!this.selectedTabWidget||this.selectedTab==tab.widgetId||tab.selected){
this.selectedTabWidget=tab;
}else{
this._hideTab(tab);
}
dojo.html.addClass(tab.domNode,"dojoTabPane");
with(tab.domNode.style){
top=dojo.style.getPixelValue(this.containerNode,"padding-top",true);
left=dojo.style.getPixelValue(this.containerNode,"padding-left",true);
}
},_doSizing:function(){
var _74f=this.labelPosition.replace(/-h/,"");
var _750=[{domNode:this.dojoTabLabels,layoutAlign:_74f},{domNode:this.containerNode,layoutAlign:"client"}];
if(this.doLayout){
dojo.html.layout(this.domNode,_750);
}
var cw=dojo.style.getContentWidth(this.containerNode);
var ch=dojo.style.getContentHeight(this.containerNode);
dojo.lang.forEach(this.children,function(_753){
if(_753.selected){
_753.resizeTo(cw,ch);
}
});
},removeChild:function(tab){
dojo.event.disconnect(tab.div,"onclick",function(){
});
if(this.closeButton=="tab"){
var img=tab.div.lastChild.lastChild;
if(img){
dojo.html.removeClass(img,"dojoTabPaneTabClose",function(){
});
dojo.event.disconnect(img,"onclick",function(){
});
dojo.event.disconnect(img,"onmouseover",function(){
});
dojo.event.disconnect(img,"onmouseout",function(){
});
}
}
dojo.widget.html.TabContainer.superclass.removeChild.call(this,tab);
dojo.html.removeClass(tab.domNode,"dojoTabPane");
this.dojoTabLabels.removeChild(tab.div);
delete (tab.div);
if(this.selectedTabWidget===tab){
this.selectedTabWidget=undefined;
if(this.children.length>0){
this.selectTab(this.children[0],true);
}
}
this._doSizing();
},selectTab:function(tab,_757){
if(this.selectedTabWidget){
this._hideTab(this.selectedTabWidget);
}
this.selectedTabWidget=tab;
this._showTab(tab,_757);
},_showTab:function(tab,_759){
dojo.html.addClass(tab.div,"current");
tab.selected=true;
if(this.useVisibility&&!dojo.render.html.ie){
tab.domNode.style.visibility="visible";
}else{
if(_759&&tab.refreshOnShow){
var tmp=tab.refreshOnShow;
tab.refreshOnShow=false;
tab.show();
tab.refreshOnShow=tmp;
}else{
tab.show();
}
tab.resizeTo(dojo.style.getContentWidth(this.containerNode),dojo.style.getContentHeight(this.containerNode));
}
},_hideTab:function(tab){
dojo.html.removeClass(tab.div,"current");
tab.selected=false;
if(this.useVisibility){
tab.domNode.style.visibility="hidden";
}else{
tab.hide();
}
},_runOnCloseTab:function(tab){
var onc=tab.extraArgs.onClose||tab.extraArgs.onclose;
var fcn=dojo.lang.isFunction(onc)?onc:window[onc];
var _75f=dojo.lang.isFunction(fcn)?fcn(this,tab):true;
if(_75f){
this.removeChild(tab);
tab.destroy();
}
},onResized:function(){
this._doSizing();
}});
dojo.widget.tags.addParseTreeHandler("dojo:TabContainer");
dojo.lang.extend(dojo.widget.Widget,{label:"",selected:false});
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("dojo.widget.ResizeHandle");
dojo.provide("dojo.widget.html.ResizeHandle");
dojo.widget.html.ResizeHandle=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.ResizeHandle,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.ResizeHandle,{widgetType:"ResizeHandle",isSizing:false,startPoint:null,startSize:null,minSize:null,targetElmId:"",templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlResizeHandle.css"),templateString:"<div class=\"dojoHtmlResizeHandle\"><div></div></div>",postCreate:function(){
dojo.event.connect(this.domNode,"onmousedown",this,"beginSizing");
},beginSizing:function(e){
if(this.isSizing){
return false;
}
this.targetWidget=dojo.widget.byId(this.targetElmId);
this.targetDomNode=this.targetWidget?this.targetWidget.domNode:dojo.byId(this.targetElmId);
if(!this.targetDomNode){
return;
}
this.isSizing=true;
this.startPoint={"x":e.clientX,"y":e.clientY};
this.startSize={"w":dojo.style.getOuterWidth(this.targetDomNode),"h":dojo.style.getOuterHeight(this.targetDomNode)};
dojo.event.kwConnect({srcObj:document.body,srcFunc:"onmousemove",targetObj:this,targetFunc:"changeSizing",rate:25});
dojo.event.connect(document.body,"onmouseup",this,"endSizing");
e.preventDefault();
},changeSizing:function(e){
try{
if(!e.clientX||!e.clientY){
return;
}
}
catch(e){
return;
}
var dx=this.startPoint.x-e.clientX;
var dy=this.startPoint.y-e.clientY;
var newW=this.startSize.w-dx;
var newH=this.startSize.h-dy;
if(this.minSize){
if(newW<this.minSize.w){
newW=dojo.style.getOuterWidth(this.targetDomNode);
}
if(newH<this.minSize.h){
newH=dojo.style.getOuterHeight(this.targetDomNode);
}
}
if(this.targetWidget){
this.targetWidget.resizeTo(newW,newH);
}else{
dojo.style.setOuterWidth(this.targetDomNode,newW);
dojo.style.setOuterHeight(this.targetDomNode,newH);
}
e.preventDefault();
},endSizing:function(e){
dojo.event.disconnect(document.body,"onmousemove",this,"changeSizing");
dojo.event.disconnect(document.body,"onmouseup",this,"endSizing");
this.isSizing=false;
}});
dojo.widget.tags.addParseTreeHandler("dojo:ResizeHandle");
dojo.provide("dojo.html.shadow");
dojo.html.shadow=function(node){
this.init(node);
};
dojo.lang.extend(dojo.html.shadow,{shadowPng:dojo.uri.dojoUri("src/html/images/shadow"),shadowThickness:8,shadowOffset:15,init:function(node){
this.node=node;
this.pieces={};
var x1=-1*this.shadowThickness;
var y0=this.shadowOffset;
var y1=this.shadowOffset+this.shadowThickness;
this._makePiece("tl","top",y0,"left",x1);
this._makePiece("l","top",y1,"left",x1,"scale");
this._makePiece("tr","top",y0,"left",0);
this._makePiece("r","top",y1,"left",0,"scale");
this._makePiece("bl","top",0,"left",x1);
this._makePiece("b","top",0,"left",0,"crop");
this._makePiece("br","top",0,"left",0);
},_makePiece:function(name,_76d,_76e,_76f,_770,_771){
var img;
var url=this.shadowPng+name.toUpperCase()+".png";
if(dojo.render.html.ie){
img=document.createElement("div");
img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+url+"'"+(_771?", sizingMethod='"+_771+"'":"")+")";
}else{
img=document.createElement("img");
img.src=url;
}
img.style.position="absolute";
img.style[_76d]=_76e+"px";
img.style[_76f]=_770+"px";
img.style.width=this.shadowThickness+"px";
img.style.height=this.shadowThickness+"px";
this.pieces[name]=img;
this.node.appendChild(img);
},size:function(_774,_775){
var _776=_775-(this.shadowOffset+this.shadowThickness+1);
with(this.pieces){
l.style.height=_776+"px";
r.style.height=_776+"px";
b.style.width=(_774-1)+"px";
bl.style.top=(_775-1)+"px";
b.style.top=(_775-1)+"px";
br.style.top=(_775-1)+"px";
tr.style.left=(_774-1)+"px";
r.style.left=(_774-1)+"px";
br.style.left=(_774-1)+"px";
}
}});
dojo.provide("dojo.dnd.DragSource");
dojo.provide("dojo.dnd.DropTarget");
dojo.provide("dojo.dnd.DragObject");
dojo.provide("dojo.dnd.DragAndDrop");
dojo.dnd.DragSource=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragSource"]){
dm.registerDragSource(this);
}
};
dojo.lang.extend(dojo.dnd.DragSource,{type:"",onDragEnd:function(){
},onDragStart:function(){
},onSelected:function(){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.dnd.DragObject=function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
};
dojo.lang.extend(dojo.dnd.DragObject,{type:"",onDragStart:function(){
},onDragMove:function(){
},onDragOver:function(){
},onDragOut:function(){
},onDragEnd:function(){
},onDragLeave:this.onDragOut,onDragEnter:this.onDragOver,ondragout:this.onDragOut,ondragover:this.onDragOver});
dojo.dnd.DropTarget=function(){
if(this.constructor==dojo.dnd.DropTarget){
return;
}
this.acceptedTypes=[];
dojo.dnd.dragManager.registerDropTarget(this);
};
dojo.lang.extend(dojo.dnd.DropTarget,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_77a){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_77a.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_77a[i].type)){
return false;
}
}
}
return true;
},onDragOver:function(){
},onDragOut:function(){
},onDragMove:function(){
},onDropStart:function(){
},onDrop:function(){
},onDropEnd:function(){
}});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.dnd.DragManager=function(){
};
dojo.lang.extend(dojo.dnd.DragManager,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(){
},dropTargets:[],registerDropTarget:function(){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.dnd.HtmlDragManager=function(){
};
dojo.inherits(dojo.dnd.HtmlDragManager,dojo.dnd.DragManager);
dojo.lang.extend(dojo.dnd.HtmlDragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){
e.stopPropagation();
e.preventDefault();
},registerDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _77f=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_77f;
this.dragSources[_77f]=ds;
ds.domNode.setAttribute(dp,_77f);
if(dojo.render.html.ie){
dojo.event.connect(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _782=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_782];
ds.domNode.setAttribute(dp,null);
}
if(dojo.render.html.ie){
dojo.event.disconnect(ds.domNode,"ondragstart",this.cancelEvent);
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _785=dojo.lang.find(this.dropTargets,dt,true);
if(_785>=0){
this.dropTargets.splice(_785,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===document.body){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===document.body)){
return;
}
ta=dojo.html.getAttribute(tn,this.dsPrefix);
}
return this.dragSources[ta];
},onKeyDown:function(e){
},onMouseDown:function(e){
if(this.disabled){
return;
}
if(dojo.render.html.ie){
if(e.button!=1){
return;
}
}else{
if(e.which!=1){
return;
}
}
var _78b=e.target.nodeType==dojo.dom.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_78b,"button","textarea","input","select","option")){
return;
}
var ds=this.getDragSource(e);
if(!ds){
return;
}
if(!dojo.lang.inArray(this.selectedSources,ds)){
this.selectedSources.push(ds);
ds.onSelected();
}
this.mouseDownX=e.pageX;
this.mouseDownY=e.pageY;
e.preventDefault();
dojo.event.connect(document,"onmousemove",this,"onMouseMove");
},onMouseUp:function(e,_78e){
if(this.selectedSources.length==0){
return;
}
this.mouseDownX=null;
this.mouseDownY=null;
this._dragTriggered=false;
e.dragSource=this.dragSource;
if((!e.shiftKey)&&(!e.ctrlKey)){
if(this.currentDropTarget){
this.currentDropTarget.onDropStart();
}
dojo.lang.forEach(this.dragObjects,function(_78f){
var ret=null;
if(!_78f){
return;
}
if(this.currentDropTarget){
e.dragObject=_78f;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_78f.domNode){
e.dropTarget=e.dropTarget.nextSibling;
}
}else{
e.dropTarget=this.currentDropTarget.domNode;
}
if(this.dropAcceptable){
ret=this.currentDropTarget.onDrop(e);
}else{
this.currentDropTarget.onDragOut(e);
}
}
e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";
dojo.lang.delayThese([function(){
try{
_78f.dragSource.onDragEnd(e);
}
catch(err){
var _792={};
for(var i in e){
if(i=="type"){
_792.type="mouseup";
continue;
}
_792[i]=e[i];
}
_78f.dragSource.onDragEnd(_792);
}
},function(){
_78f.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}
dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");
this.currentDropTarget=null;
},onScroll:function(){
for(var i=0;i<this.dragObjects.length;i++){
if(this.dragObjects[i].updateDragOffset){
this.dragObjects[i].updateDragOffset();
}
}
this.cacheTargetLocations();
},_dragStartDistance:function(x,y){
if((!this.mouseDownX)||(!this.mouseDownX)){
return;
}
var dx=Math.abs(x-this.mouseDownX);
var dx2=dx*dx;
var dy=Math.abs(y-this.mouseDownY);
var dy2=dy*dy;
return parseInt(Math.sqrt(dx2+dy2),10);
},cacheTargetLocations:function(){
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_79b){
var tn=_79b.domNode;
if(!tn){
return;
}
var ttx=dojo.style.getAbsoluteX(tn,true);
var tty=dojo.style.getAbsoluteY(tn,true);
this.dropTargetDimensions.push([[ttx,tty],[ttx+dojo.style.getInnerWidth(tn),tty+dojo.style.getInnerHeight(tn)],_79b]);
},this);
},onMouseMove:function(e){
if((dojo.render.html.ie)&&(e.button!=1)){
this.currentDropTarget=null;
this.onMouseUp(e,true);
return;
}
if((this.selectedSources.length)&&(!this.dragObjects.length)){
var dx;
var dy;
if(!this._dragTriggered){
this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);
if(!this._dragTriggered){
return;
}
dx=e.pageX-this.mouseDownX;
dy=e.pageY-this.mouseDownY;
}
this.dragSource=this.selectedSources[0];
dojo.lang.forEach(this.selectedSources,function(_7a2){
if(!_7a2){
return;
}
var tdo=_7a2.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.top+=dy;
tdo.dragOffset.left+=dx;
tdo.dragSource=_7a2;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_7a4){
if(_7a4){
_7a4.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.style.toCoordinateArray(this.currentDropTarget.domNode,true);
var dtp=[[c[0],c[1]],[c[0]+c[2],c[1]+c[3]]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _7a7=this.findBestTarget(e);
if(_7a7.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_7a7.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_7a7.target;
e.dragObjects=this.dragObjects;
this.dropAcceptable=this.currentDropTarget.onDragOver(e);
}else{
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}
}
},findBestTarget:function(e){
var _7a9=this;
var _7aa=new Object();
_7aa.target=null;
_7aa.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_7ab){
if(!_7a9.isInsideBox(e,_7ab)){
return true;
}
_7aa.target=_7ab[2];
_7aa.points=_7ab;
return Boolean(_7a9.nestedTargets);
});
return _7aa;
},isInsideBox:function(e,_7ad){
if((e.pageX>_7ad[0][0])&&(e.pageX<_7ad[1][0])&&(e.pageY>_7ad[0][1])&&(e.pageY<_7ad[1][1])){
return true;
}
return false;
},onMouseOver:function(e){
},onMouseOut:function(e){
}});
dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();
(function(){
var d=document;
var dm=dojo.dnd.dragManager;
dojo.event.connect(d,"onkeydown",dm,"onKeyDown");
dojo.event.connect(d,"onmouseover",dm,"onMouseOver");
dojo.event.connect(d,"onmouseout",dm,"onMouseOut");
dojo.event.connect(d,"onmousedown",dm,"onMouseDown");
dojo.event.connect(d,"onmouseup",dm,"onMouseUp");
dojo.event.connect(window,"onscroll",dm,"onScroll");
})();
dojo.provide("dojo.dnd.HtmlDragAndDrop");
dojo.provide("dojo.dnd.HtmlDragSource");
dojo.provide("dojo.dnd.HtmlDropTarget");
dojo.provide("dojo.dnd.HtmlDragObject");
dojo.dnd.HtmlDragSource=function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
dojo.dnd.DragSource.call(this);
this.type=(type)||(this.domNode.nodeName.toLowerCase());
}
};
dojo.inherits(dojo.dnd.HtmlDragSource,dojo.dnd.DragSource);
dojo.lang.extend(dojo.dnd.HtmlDragSource,{dragClass:"",onDragStart:function(){
var _7b4=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_7b4.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_7b4.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _7b4;
},setDragHandle:function(node){
node=dojo.byId(node);
dojo.dnd.dragManager.unregisterDragSource(this);
this.domNode=node;
dojo.dnd.dragManager.registerDragSource(this);
},setDragTarget:function(node){
this.dragObject=node;
},constrainTo:function(_7b7){
this.constrainToContainer=true;
if(_7b7){
this.constrainingContainer=_7b7;
}
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));
}
},addDragObjects:function(el){
for(var i=0;i<arguments.length;i++){
this.dragObjects.push(arguments[i]);
}
}});
dojo.dnd.HtmlDragObject=function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
};
dojo.inherits(dojo.dnd.HtmlDragObject,dojo.dnd.DragObject);
dojo.lang.extend(dojo.dnd.HtmlDragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){
var node=this.domNode.cloneNode(true);
if(this.dragClass){
dojo.html.addClass(node,this.dragClass);
}
if(this.opacity<1){
dojo.style.setOpacity(node,this.opacity);
}
if(node.tagName.toLowerCase()=="tr"){
var doc=this.domNode.ownerDocument;
var _7bf=doc.createElement("table");
var _7c0=doc.createElement("tbody");
_7c0.appendChild(node);
_7bf.appendChild(_7c0);
var _7c1=this.domNode.childNodes;
var _7c2=node.childNodes;
for(var i=0;i<_7c1.length;i++){
if((_7c2[i])&&(_7c2[i].style)){
_7c2[i].style.width=dojo.style.getContentWidth(_7c1[i])+"px";
}
}
node=_7bf;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _7c4=document.createElement("div");
_7c4.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_7c4);
_7c4.appendChild(this.bgIframe.iframe);
node=_7c4;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScrollOffset();
this.dragStartPosition=dojo.style.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.dragClone=this.createDragNode();
this.containingBlockPosition=this.domNode.offsetParent?dojo.style.getAbsolutePosition(this.domNode.offsetParent):{x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
with(this.dragClone.style){
position="absolute";
top=this.dragOffset.y+e.pageY+"px";
left=this.dragOffset.x+e.pageX+"px";
}
document.body.appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _7c6=dojo.html.getViewportWidth();
var _7c7=dojo.html.getViewportHeight();
var x=0;
var y=0;
}else{
_7c6=dojo.style.getContentWidth(this.constrainingContainer);
_7c7=dojo.style.getContentHeight(this.constrainingContainer);
x=this.containingBlockPosition.x+dojo.style.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.style.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.style.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.style.getBorderExtent(this.constrainingContainer,"top");
}
return {minX:x,minY:y,maxX:x+_7c6-dojo.style.getOuterWidth(this.domNode),maxY:y+_7c7-dojo.style.getOuterHeight(this.domNode)};
},updateDragOffset:function(){
var _7ca=dojo.html.getScrollOffset();
if(_7ca.y!=this.scrollOffset.y){
var diff=_7ca.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_7ca.y;
}
if(_7ca.x!=this.scrollOffset.x){
var diff=_7ca.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_7ca.x;
}
},onDragMove:function(e){
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX;
}
if(y<this.constraints.minY){
y=this.constraints.minY;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.dragClone.style.top=y+"px";
}
if(!this.disableX){
this.dragClone.style.left=x+"px";
}
},onDragEnd:function(e){
switch(e.dragStatus){
case "dropSuccess":
dojo.dom.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _7d2=dojo.style.getAbsolutePosition(this.dragClone,true);
var _7d3=[this.dragStartPosition.x+1,this.dragStartPosition.y+1];
var line=new dojo.lfx.Line(_7d2,_7d3);
var anim=new dojo.lfx.Animation(500,line,dojo.lfx.easeOut);
var _7d6=this;
dojo.event.connect(anim,"onAnimate",function(e){
_7d6.dragClone.style.left=e[0]+"px";
_7d6.dragClone.style.top=e[1]+"px";
});
dojo.event.connect(anim,"onEnd",function(e){
dojo.lang.setTimeout(function(){
dojo.dom.removeNode(_7d6.dragClone);
_7d6.dragClone=null;
},200);
});
anim.play();
break;
}
dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick");
dojo.event.topic.publish("dragEnd",{source:this});
},squelchOnClick:function(e){
e.preventDefault();
dojo.event.disconnect(this.domNode,"onclick",this,"squelchOnClick");
},constrainTo:function(_7da){
this.constrainToContainer=true;
if(_7da){
this.constrainingContainer=_7da;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}});
dojo.dnd.HtmlDropTarget=function(node,_7dc){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_7dc&&dojo.lang.isString(_7dc)){
_7dc=[_7dc];
}
this.acceptedTypes=_7dc||[];
};
dojo.inherits(dojo.dnd.HtmlDropTarget,dojo.dnd.DropTarget);
dojo.lang.extend(dojo.dnd.HtmlDropTarget,{onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,child;i<this.domNode.childNodes.length;i++){
child=this.domNode.childNodes[i];
if(child.nodeType!=dojo.dom.ELEMENT_NODE){
continue;
}
var pos=dojo.style.getAbsolutePosition(child,true);
var _7e0=dojo.style.getInnerHeight(child);
var _7e1=dojo.style.getInnerWidth(child);
this.childBoxes.push({top:pos.y,bottom:pos.y+_7e0,left:pos.x,right:pos.x+_7e1,node:child});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,child;i<this.childBoxes.length;i++){
with(this.childBoxes[i]){
if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){
return i;
}
}
}
return -1;
},createDropIndicator:function(){
this.dropIndicator=document.createElement("div");
with(this.dropIndicator.style){
position="absolute";
zIndex=999;
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.style.getInnerWidth(this.domNode)+"px";
left=dojo.style.getAbsoluteX(this.domNode,true)+"px";
}
},onDragMove:function(e,_7e5){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
if(i<0){
if(this.childBoxes.length){
var _7e7=(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH);
}else{
var _7e7=true;
}
}else{
var _7e8=this.childBoxes[i];
var _7e7=(dojo.html.gravity(_7e8.node,e)&dojo.html.gravity.NORTH);
}
this.placeIndicator(e,_7e5,i,_7e7);
if(!dojo.html.hasParent(this.dropIndicator)){
document.body.appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_7ea,_7eb,_7ec){
with(this.dropIndicator.style){
if(_7eb<0){
if(this.childBoxes.length){
top=(_7ec?this.childBoxes[0].top:this.childBoxes[this.childBoxes.length-1].bottom)+"px";
}else{
top=dojo.style.getAbsoluteY(this.domNode,true)+"px";
}
}else{
var _7ed=this.childBoxes[_7eb];
top=(_7ec?_7ed.top:_7ed.bottom)+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.dom.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH){
return this.insert(e,this.childBoxes[0].node,"before");
}else{
return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");
}
}
return this.insert(e,this.domNode,"append");
}
var _7f1=this.childBoxes[i];
if(dojo.html.gravity(_7f1.node,e)&dojo.html.gravity.NORTH){
return this.insert(e,_7f1.node,"before");
}else{
return this.insert(e,_7f1.node,"after");
}
},insert:function(e,_7f3,_7f4){
var node=e.dragObject.domNode;
if(_7f4=="before"){
return dojo.html.insertBefore(node,_7f3);
}else{
if(_7f4=="after"){
return dojo.html.insertAfter(node,_7f3);
}else{
if(_7f4=="append"){
_7f3.appendChild(node);
return true;
}
}
}
return false;
}});
dojo.provide("dojo.dnd.*");
dojo.provide("dojo.dnd.HtmlDragMove");
dojo.provide("dojo.dnd.HtmlDragMoveSource");
dojo.provide("dojo.dnd.HtmlDragMoveObject");
dojo.dnd.HtmlDragMoveSource=function(node,type){
dojo.dnd.HtmlDragSource.call(this,node,type);
};
dojo.inherits(dojo.dnd.HtmlDragMoveSource,dojo.dnd.HtmlDragSource);
dojo.lang.extend(dojo.dnd.HtmlDragMoveSource,{onDragStart:function(){
var _7f8=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);
if(this.constrainToContainer){
_7f8.constrainTo(this.constrainingContainer);
}
return _7f8;
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragMoveSource(this.dragObjects[i]));
}
}});
dojo.dnd.HtmlDragMoveObject=function(node,type){
dojo.dnd.HtmlDragObject.call(this,node,type);
};
dojo.inherits(dojo.dnd.HtmlDragMoveObject,dojo.dnd.HtmlDragObject);
dojo.lang.extend(dojo.dnd.HtmlDragMoveObject,{onDragEnd:function(e){
dojo.event.connect(this.domNode,"onclick",this,"squelchOnClick");
},onDragStart:function(e){
dojo.html.clearSelection();
this.dragClone=this.domNode;
this.scrollOffset=dojo.html.getScrollOffset();
this.dragStartPosition=dojo.style.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.containingBlockPosition=this.domNode.offsetParent?dojo.style.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};
this.dragClone.style.position="absolute";
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.domNode.style.top=(y-this.containingBlockPosition.y)+"px";
}
if(!this.disableX){
this.domNode.style.left=(x-this.containingBlockPosition.x)+"px";
}
}});
dojo.provide("dojo.widget.FloatingPane");
dojo.provide("dojo.widget.html.FloatingPane");
dojo.widget.html.FloatingPane=function(){
dojo.widget.html.ContentPane.call(this);
};
dojo.inherits(dojo.widget.html.FloatingPane,dojo.widget.html.ContentPane);
dojo.lang.extend(dojo.widget.html.FloatingPane,{widgetType:"FloatingPane",title:"",iconSrc:"",hasShadow:false,constrainToContainer:false,taskBarId:"",resizable:true,titleBarDisplay:"fancy",windowState:"normal",displayCloseAction:false,displayMinimizeAction:false,displayMaximizeAction:false,maxTaskBarConnectAttempts:5,taskBarConnectAttempts:0,templatePath:dojo.uri.dojoUri("src/widget/templates/HtmlFloatingPane.html"),templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlFloatingPane.css"),drag:null,fillInTemplate:function(args,frag){
var _802=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_802);
document.body.appendChild(this.domNode);
if(!this.isShowing()){
this.windowState="minimized";
}
if(this.iconSrc==""){
dojo.dom.removeNode(this.titleBarIcon);
}else{
this.titleBarIcon.src=this.iconSrc.toString();
}
if(this.titleBarDisplay!="none"){
this.titleBar.style.display="";
dojo.html.disableSelection(this.titleBar);
this.titleBarIcon.style.display=(this.iconSrc==""?"none":"");
this.minimizeAction.style.display=(this.displayMinimizeAction?"":"none");
this.maximizeAction.style.display=(this.displayMaximizeAction&&this.windowState!="maximized"?"":"none");
this.restoreAction.style.display=(this.displayMaximizeAction&&this.windowState=="maximized"?"":"none");
this.closeAction.style.display=(this.displayCloseAction?"":"none");
this.drag=new dojo.dnd.HtmlDragMoveSource(this.domNode);
if(this.constrainToContainer){
this.drag.constrainTo();
}
this.drag.setDragHandle(this.titleBar);
var self=this;
dojo.event.topic.subscribe("dragMove",function(info){
if(info.source.domNode==self.domNode){
dojo.event.topic.publish("floatingPaneMove",{source:self});
}
});
}
if(this.resizable){
this.resizeBar.style.display="";
var rh=dojo.widget.createWidget("ResizeHandle",{targetElmId:this.widgetId,id:this.widgetId+"_resize"});
this.resizeBar.appendChild(rh.domNode);
}
if(this.hasShadow){
this.shadow=new dojo.html.shadow(this.domNode);
}
this.bgIframe=new dojo.html.BackgroundIframe(this.domNode);
if(this.taskBarId){
this.taskBarSetup();
}
if(dojo.hostenv.post_load_){
this.setInitialWindowState();
}else{
dojo.addOnLoad(this,"setInitialWindowState");
}
document.body.removeChild(this.domNode);
dojo.widget.html.FloatingPane.superclass.fillInTemplate.call(this,args,frag);
},postCreate:function(){
if(this.isShowing()){
this.width=-1;
this.resizeTo(dojo.style.getOuterWidth(this.domNode),dojo.style.getOuterHeight(this.domNode));
}
},maximizeWindow:function(evt){
this.previous={width:dojo.style.getOuterWidth(this.domNode)||this.width,height:dojo.style.getOuterHeight(this.domNode)||this.height,left:this.domNode.style.left,top:this.domNode.style.top,bottom:this.domNode.style.bottom,right:this.domNode.style.right};
this.domNode.style.left=dojo.style.getPixelValue(this.domNode.parentNode,"padding-left",true)+"px";
this.domNode.style.top=dojo.style.getPixelValue(this.domNode.parentNode,"padding-top",true)+"px";
if((this.domNode.parentNode.nodeName.toLowerCase()=="body")){
this.resizeTo(dojo.html.getViewportWidth()-dojo.style.getPaddingWidth(document.body),dojo.html.getViewportHeight()-dojo.style.getPaddingHeight(document.body));
}else{
this.resizeTo(dojo.style.getContentWidth(this.domNode.parentNode),dojo.style.getContentHeight(this.domNode.parentNode));
}
this.maximizeAction.style.display="none";
this.restoreAction.style.display="";
this.windowState="maximized";
},minimizeWindow:function(evt){
this.hide();
this.windowState="minimized";
},restoreWindow:function(evt){
if(this.windowState=="minimized"){
this.show();
}else{
for(var attr in this.previous){
this.domNode.style[attr]=this.previous[attr];
}
this.resizeTo(this.previous.width,this.previous.height);
this.previous=null;
this.restoreAction.style.display="none";
this.maximizeAction.style.display=this.displayMaximizeAction?"":"none";
}
this.windowState="normal";
},closeWindow:function(evt){
dojo.dom.removeNode(this.domNode);
this.destroy();
},onMouseDown:function(evt){
this.bringToTop();
},bringToTop:function(){
var _80c=dojo.widget.manager.getWidgetsByType(this.widgetType);
var _80d=[];
for(var x=0;x<_80c.length;x++){
if(this.widgetId!=_80c[x].widgetId){
_80d.push(_80c[x]);
}
}
_80d.sort(function(a,b){
return a.domNode.style.zIndex-b.domNode.style.zIndex;
});
_80d.push(this);
var _811=100;
for(x=0;x<_80d.length;x++){
_80d[x].domNode.style.zIndex=_811+x;
}
},setInitialWindowState:function(){
if(this.windowState=="maximized"){
this.maximizeWindow();
this.show();
return;
}
if(this.windowState=="normal"){
this.show();
return;
}
if(this.windowState=="minimized"){
this.hide();
return;
}
this.windowState="minimized";
},taskBarSetup:function(){
var _812=dojo.widget.getWidgetById(this.taskBarId);
if(!_812){
if(this.taskBarConnectAttempts<this.maxTaskBarConnectAttempts){
dojo.lang.setTimeout(this,this.taskBarSetup,50);
this.taskBarConnectAttempts++;
}else{
dojo.debug("Unable to connect to the taskBar");
}
return;
}
_812.addChild(this);
},show:function(){
dojo.widget.html.FloatingPane.superclass.show.apply(this,arguments);
this.bringToTop();
},onShow:function(){
dojo.widget.html.FloatingPane.superclass.onShow.call(this);
this.resizeTo(dojo.style.getOuterWidth(this.domNode),dojo.style.getOuterHeight(this.domNode));
},resizeTo:function(w,h){
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
dojo.html.layout(this.domNode,[{domNode:this.titleBar,layoutAlign:"top"},{domNode:this.resizeBar,layoutAlign:"bottom"},{domNode:this.containerNode,layoutAlign:"client"}]);
dojo.html.layout(this.containerNode,this.children,"top-bottom");
this.bgIframe.onResized();
if(this.shadow){
this.shadow.size(w,h);
}
this.onResized();
},checkSize:function(){
}});
dojo.widget.tags.addParseTreeHandler("dojo:FloatingPane");

