/*
	Copyright (c) 2004-2005, 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.
*/

var dj_global=this;
function dj_undef(_1,_2){
if(!_2){
_2=dj_global;
}
return (typeof _2[_1]=="undefined");
}
if(dj_undef("djConfig")){
var djConfig={};
}
var dojo;
if(dj_undef("dojo")){
dojo={};
}
dojo.version={major:0,minor:2,patch:0,flag:"",revision:Number("$Rev: 2495 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalObjPath=function(_3,_4){
if(typeof _3!="string"){
return dj_global;
}
if(_3.indexOf(".")==-1){
if((dj_undef(_3,dj_global))&&(_4)){
dj_global[_3]={};
}
return dj_global[_3];
}
var _5=_3.split(/\./);
var _6=dj_global;
for(var i=0;i<_5.length;++i){
if(!_4){
_6=_6[_5[i]];
if((typeof _6=="undefined")||(!_6)){
return _6;
}
}else{
if(dj_undef(_5[i],_6)){
_6[_5[i]]={};
}
_6=_6[_5[i]];
}
}
return _6;
};
dojo.errorToString=function(_8){
return ((!dj_undef("message",_8))?_8.message:(dj_undef("description",_8)?_8:_8.description));
};
dojo.raise=function(_9,_a){
if(_a){
_9=_9+": "+dojo.errorToString(_a);
}
var he=dojo.hostenv;
if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){
dojo.hostenv.println("FATAL: "+_9);
}
throw Error(_9);
};
dj_throw=dj_rethrow=function(m,e){
dojo.deprecated("dj_throw and dj_rethrow deprecated, use dojo.raise instead");
dojo.raise(m,e);
};
dojo.debug=function(){
if(!djConfig.isDebug){
return;
}
var _e=arguments;
if(dj_undef("println",dojo.hostenv)){
dojo.raise("dojo.debug not available (yet?)");
}
var _f=dj_global["jum"]&&!dj_global["jum"].isBrowser;
var s=[(_f?"":"DEBUG: ")];
for(var i=0;i<_e.length;++i){
if(!false&&_e[i] instanceof Error){
var msg="["+_e[i].name+": "+dojo.errorToString(_e[i])+(_e[i].fileName?", file: "+_e[i].fileName:"")+(_e[i].lineNumber?", line: "+_e[i].lineNumber:"")+"]";
}else{
try{
var msg=String(_e[i]);
}
catch(e){
if(dojo.render.html.ie){
var msg="[ActiveXObject]";
}else{
var msg="[unknown]";
}
}
}
s.push(msg);
}
if(_f){
jum.debug(s.join(" "));
}else{
dojo.hostenv.println(s.join(" "));
}
};
dojo.debugShallow=function(obj){
if(!djConfig.isDebug){
return;
}
dojo.debug("------------------------------------------------------------");
dojo.debug("Object: "+obj);
for(i in obj){
dojo.debug(i+": "+obj[i]);
}
dojo.debug("------------------------------------------------------------");
};
var dj_debug=dojo.debug;
function dj_eval(s){
return dj_global.eval?dj_global.eval(s):eval(s);
}
dj_unimplemented=dojo.unimplemented=function(_15,_16){
var _17="'"+_15+"' not implemented";
if((!dj_undef(_16))&&(_16)){
_17+=" "+_16;
}
dojo.raise(_17);
};
dj_deprecated=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("superclass: "+_1d+" borken");
}
_1c.prototype=new _1d();
_1c.prototype.constructor=_1c;
_1c.superclass=_1d.prototype;
_1c["super"]=_1d.prototype;
};
dj_inherits=function(_1e,_1f){
dojo.deprecated("dj_inherits deprecated, use dojo.inherits instead");
dojo.inherits(_1e,_1f);
};
dojo.render=(function(){
function vscaffold(_20,_21){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_20};
for(var x in _21){
tmp[x]=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 _24={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_24;
}else{
for(var _25 in _24){
if(typeof djConfig[_25]=="undefined"){
djConfig[_25]=_24[_25];
}
}
}
var djc=djConfig;
function _def(obj,_28,def){
return (dj_undef(_28,obj)?def:obj[_28]);
}
return {name_:"(unset)",version_:"(unset)",pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_2a,_2b){
this.modulePrefixes_[_2a]={name:_2a,value:_2b};
},getModulePrefix:function(_2c){
var mp=this.modulePrefixes_;
if((mp[_2c])&&(mp[_2c]["name"])){
return mp[_2c].value;
}
return _2c;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
},getLibraryScriptUri:function(){
dojo.unimplemented("getLibraryScriptUri","");
}};
})();
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 _30=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
dojo.hostenv.setBaseScriptUri=function(uri){
djConfig.baseScriptUri=uri;
};
dojo.hostenv.loadPath=function(_32,_33,cb){
if((_32.charAt(0)=="/")||(_32.match(/^\w+:/))){
dojo.raise("relpath '"+_32+"'; must be relative");
}
var uri=this.getBaseScriptUri()+_32;
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+djConfig.cacheBust.replace(/\W+/g,"");
}
try{
return ((!_33)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_33,cb));
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(dojo.hostenv.loadedUris[uri]){
return;
}
var _38=this.getText(uri,null,true);
if(_38==null){
return 0;
}
var _39=dj_eval(_38);
return 1;
};
dojo.hostenv.loadUriAndCheck=function(uri,_3b,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return ((ok)&&(this.findModule(_3b,false)))?true:false;
};
dojo.loaded=function(){
};
dojo.hostenv.loaded=function(){
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
dojo.loaded();
};
dojo.addOnLoad=function(obj,_41){
if(arguments.length==1){
dojo.hostenv.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dojo.hostenv.modulesLoadedListeners.push(function(){
obj[_41]();
});
}
}
};
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;
}
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
}
};
dojo.hostenv.moduleLoaded=function(_42){
var _43=dojo.evalObjPath((_42.split(".").slice(0,-1)).join("."));
this.loaded_modules_[(new String(_42)).toLowerCase()]=_43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_44,_45,_46){
_46=this._global_omit_module_check||_46;
var _47=this.findModule(_44,false);
if(_47){
return _47;
}
if(dj_undef(_44,this.loading_modules_)){
this.addedToLoadingCount.push(_44);
}
this.loading_modules_[_44]=1;
var _48=_44.replace(/\./g,"/")+".js";
var _49=_44.split(".");
var _4a=_44.split(".");
for(var i=_49.length-1;i>0;i--){
var _4c=_49.slice(0,i).join(".");
var _4d=this.getModulePrefix(_4c);
if(_4d!=_4c){
_49.splice(0,i,_4d);
break;
}
}
var _4e=_49[_49.length-1];
if(_4e=="*"){
_44=(_4a.slice(0,-1)).join(".");
while(_49.length){
_49.pop();
_49.push(this.pkgFileName);
_48=_49.join("/")+".js";
if(_48.charAt(0)=="/"){
_48=_48.slice(1);
}
ok=this.loadPath(_48,((!_46)?_44:null));
if(ok){
break;
}
_49.pop();
}
}else{
_48=_49.join("/")+".js";
_44=_4a.join(".");
var ok=this.loadPath(_48,((!_46)?_44:null));
if((!ok)&&(!_45)){
_49.pop();
while(_49.length){
_48=_49.join("/")+".js";
ok=this.loadPath(_48,((!_46)?_44:null));
if(ok){
break;
}
_49.pop();
_48=_49.join("/")+"/"+this.pkgFileName+".js";
if(_48.charAt(0)=="/"){
_48=_48.slice(1);
}
ok=this.loadPath(_48,((!_46)?_44:null));
if(ok){
break;
}
}
}
if((!ok)&&(!_46)){
dojo.raise("Could not load '"+_44+"'; last tried '"+_48+"'");
}
}
if(!_46){
_47=this.findModule(_44,false);
if(!_47){
dojo.raise("symbol '"+_44+"' is not defined after loading '"+_48+"'");
}
}
return _47;
};
dojo.hostenv.startPackage=function(_50){
var _51=_50.split(/\./);
if(_51[_51.length-1]=="*"){
_51.pop();
}
return dojo.evalObjPath(_51.join("."),true);
};
dojo.hostenv.findModule=function(_52,_53){
if(this.loaded_modules_[(new String(_52)).toLowerCase()]){
return this.loaded_modules_[_52];
}
var _54=dojo.evalObjPath(_52);
if((typeof _54!=="undefined")&&(_54)){
return _54;
}
if(_53){
dojo.raise("no loaded module named '"+_52+"'");
}
return null;
};
if(typeof window=="undefined"){
dojo.raise("no window object");
}
(function(){
if(djConfig.allowQueryConfig){
var _55=document.location.toString();
var _56=_55.split("?",2);
if(_56.length>1){
var _57=_56[1];
var _58=_57.split("&");
for(var x in _58){
var sp=_58[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 _5c=document.getElementsByTagName("script");
var _5d=/(__package__|dojo)\.js(\?|$)/i;
for(var i=0;i<_5c.length;i++){
var src=_5c[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_5d);
if(m){
root=src.substring(0,m.index);
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=root;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=root;
}
break;
}
}
if(djConfig["debugAtAllCosts"]){
document.write("<scr"+"ipt type='text/javascript' src='"+djConfig["baseRelativePath"]+"src/browser_debug.js"+"'></scr"+"ipt>");
}
}
var dr=dojo.render;
var drh=dojo.render.html;
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 _67=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_67>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_67+6,_67+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;
dr.vml.capable=drh.ie;
dr.svg.capable=f;
dr.svg.support.plugin=f;
dr.svg.support.builtin=f;
dr.svg.adobe=f;
if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){
dr.svg.capable=t;
dr.svg.support.builtin=t;
dr.svg.support.plugin=f;
dr.svg.adobe=f;
}else{
if(navigator.mimeTypes&&navigator.mimeTypes.length>0){
var _68=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"];
if(_68){
dr.svg.adobe=_68&&_68.enabledPlugin&&_68.enabledPlugin.description&&(_68.enabledPlugin.description.indexOf("Adobe")>-1);
if(dr.svg.adobe){
dr.svg.capable=t;
dr.svg.support.plugin=t;
}
}
}else{
if(drh.ie&&dr.os.win){
var _68=f;
try{
var _69=new ActiveXObject("Adobe.SVGCtl");
_68=t;
}
catch(e){
}
if(_68){
dr.svg.capable=t;
dr.svg.support.plugin=t;
dr.svg.adobe=t;
}
}else{
dr.svg.capable=f;
dr.svg.support.plugin=f;
dr.svg.adobe=f;
}
}
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _6a=null;
var _6b=null;
try{
_6a=new XMLHttpRequest();
}
catch(e){
}
if(!_6a){
for(var i=0;i<3;++i){
var _6d=DJ_XMLHTTP_PROGIDS[i];
try{
_6a=new ActiveXObject(_6d);
}
catch(e){
_6b=e;
}
if(_6a){
DJ_XMLHTTP_PROGIDS=[_6d];
break;
}
}
}
if(!_6a){
return dojo.raise("XMLHTTP not available",_6b);
}
return _6a;
};
dojo.hostenv.getText=function(uri,_6f,_70){
var _71=this.getXmlhttpObject();
if(_6f){
_71.onreadystatechange=function(){
if((4==_71.readyState)&&(_71["status"])){
if(_71.status==200){
dojo.debug("LOADED URI: "+uri);
_6f(_71.responseText);
}
}
};
}
_71.open("GET",uri,_6f?true:false);
_71.send(null);
if(_6f){
return null;
}
return _71.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_72){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_72);
}else{
try{
var _73=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_73){
_73=document.getElementsByTagName("body")[0]||document.body;
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_72));
_73.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_72+"</div>");
}
catch(e2){
window.status=_72;
}
}
}
};
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(_75,_76,fp,_78){
var _79=_75["on"+_76]||function(){
};
_75["on"+_76]=function(){
fp.apply(_75,arguments);
_79.apply(_75,arguments);
};
return true;
}
dj_addNodeEvtHdlr(window,"load",function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
dojo.hostenv.modulesLoaded();
});
dojo.hostenv.makeWidgets=function(){
var _7a=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_7a=_7a.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_7a=_7a.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_7a.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
try{
var _7b=new dojo.xml.Parse();
if(_7a.length>0){
for(var x=0;x<_7a.length;x++){
var _7d=document.getElementById(_7a[x]);
if(!_7d){
continue;
}
var _7e=_7b.parseElement(_7d,null,true);
dojo.widget.getParser().createComponents(_7e);
}
}else{
if(djConfig.parseWidgets){
var _7e=_7b.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true);
dojo.widget.getParser().createComponents(_7e);
}
}
}
catch(e){
dojo.debug("auto-build-widgets error:",e);
}
}
}
};
dojo.hostenv.modulesLoadedListeners.push(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(!window["djConfig"]||!window.djConfig["preventBackButtonFix"]){
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>");
}
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.hostenv.byId=dojo.byId=function(id,doc){
if(typeof id=="string"||id instanceof String){
if(!doc){
doc=document;
}
return doc.getElementById(id);
}
return id;
};
dojo.hostenv.byIdArray=dojo.byIdArray=function(){
var ids=[];
for(var i=0;i<arguments.length;i++){
if((arguments[i] instanceof Array)||(typeof arguments[i]=="array")){
for(var j=0;j<arguments[i].length;j++){
ids=ids.concat(dojo.hostenv.byIdArray(arguments[i][j]));
}
}else{
ids.push(dojo.hostenv.byId(arguments[i]));
}
}
return ids;
};
dojo.hostenv.conditionalLoadModule=function(_84){
var _85=_84["common"]||[];
var _86=(_84[dojo.hostenv.name_])?_85.concat(_84[dojo.hostenv.name_]||[]):_85.concat(_84["default"]||[]);
for(var x=0;x<_86.length;x++){
var _88=_86[x];
if(_88.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_88);
}else{
dojo.hostenv.loadModule(_88);
}
}
};
dojo.hostenv.require=dojo.hostenv.loadModule;
dojo.require=function(){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireAfter=dojo.require;
dojo.requireIf=function(){
if((arguments[0]===true)||(arguments[0]=="common")||(dojo.render[arguments[0]].capable)){
var _89=[];
for(var i=1;i<arguments.length;i++){
_89.push(arguments[i]);
}
dojo.require.apply(dojo,_89);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.conditionalRequire=dojo.requireIf;
dojo.kwCompoundRequire=function(){
dojo.hostenv.conditionalLoadModule.apply(dojo.hostenv,arguments);
};
dojo.hostenv.provide=dojo.hostenv.startPackage;
dojo.provide=function(){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.setModulePrefix=function(_8b,_8c){
return dojo.hostenv.setModulePrefix(_8b,_8c);
};
dojo.profile={start:function(){
},end:function(){
},dump:function(){
}};
dojo.exists=function(obj,_8e){
var p=_8e.split(".");
for(var i=0;i<p.length;i++){
if(!(obj[p[i]])){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.provide("dojo.lang");
dojo.provide("dojo.AdapterRegistry");
dojo.provide("dojo.lang.Lang");
dojo.lang.mixin=function(obj,_92,_93){
if(typeof _93!="object"){
_93={};
}
for(var x in _92){
if(typeof _93[x]=="undefined"||_93[x]!=_92[x]){
obj[x]=_92[x];
}
}
return obj;
};
dojo.lang.extend=function(_95,_96){
this.mixin(_95.prototype,_96);
};
dojo.lang.extendPrototype=function(obj,_98){
this.extend(obj.constructor,_98);
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_99,_9a){
var nso=(_9a||dojo.lang.anon);
if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){
for(var x in nso){
if(nso[x]===_99){
return x;
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_99;
return ret;
};
dojo.lang.hitch=function(_9e,_9f){
if(dojo.lang.isString(_9f)){
var fcn=_9e[_9f];
}else{
var fcn=_9f;
}
return function(){
return fcn.apply(_9e,arguments);
};
};
dojo.lang.setTimeout=function(_a1,_a2){
var _a3=window,argsStart=2;
if(!dojo.lang.isFunction(_a1)){
_a3=_a1;
_a1=_a2;
_a2=arguments[2];
argsStart++;
}
if(dojo.lang.isString(_a1)){
_a1=_a3[_a1];
}
var _a4=[];
for(var i=argsStart;i<arguments.length;i++){
_a4.push(arguments[i]);
}
return setTimeout(function(){
_a1.apply(_a3,_a4);
},_a2);
};
dojo.lang.isObject=function(wh){
return typeof wh=="object"||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.isArray(wh)){
return true;
}
if(dojo.lang.isNumber(wh.length)&&isFinite(wh)){
return true;
}
return false;
};
dojo.lang.isFunction=function(wh){
return (wh instanceof Function||typeof wh=="function");
};
dojo.lang.isString=function(wh){
return (wh instanceof String||typeof wh=="string");
};
dojo.lang.isAlien=function(wh){
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.lang.whatAmI=function(wh){
try{
if(dojo.lang.isArray(wh)){
return "array";
}
if(dojo.lang.isFunction(wh)){
return "function";
}
if(dojo.lang.isString(wh)){
return "string";
}
if(dojo.lang.isNumber(wh)){
return "number";
}
if(dojo.lang.isBoolean(wh)){
return "boolean";
}
if(dojo.lang.isAlien(wh)){
return "alien";
}
if(dojo.lang.isUndefined(wh)){
return "undefined";
}
for(var _b0 in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[_b0](wh)){
return _b0;
}
}
if(dojo.lang.isObject(wh)){
return "object";
}
}
catch(E){
}
return "unknown";
};
dojo.lang.whatAmI.custom={};
dojo.lang.find=function(arr,val,_b3){
if(!dojo.lang.isArray(arr)&&dojo.lang.isArray(val)){
var a=arr;
arr=val;
val=a;
}
var _b5=dojo.lang.isString(arr);
if(_b5){
arr=arr.split("");
}
if(_b3){
for(var i=0;i<arr.length;++i){
if(arr[i]===val){
return i;
}
}
}else{
for(var i=0;i<arr.length;++i){
if(arr[i]==val){
return i;
}
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(arr,val,_b9){
if(!dojo.lang.isArray(arr)&&dojo.lang.isArray(val)){
var a=arr;
arr=val;
val=a;
}
var _bb=dojo.lang.isString(arr);
if(_bb){
arr=arr.split("");
}
if(_b9){
for(var i=arr.length-1;i>=0;i--){
if(arr[i]===val){
return i;
}
}
}else{
for(var i=arr.length-1;i>=0;i--){
if(arr[i]==val){
return i;
}
}
}
return -1;
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(arr,val){
return dojo.lang.find(arr,val)>-1;
};
dojo.lang.getNameInObj=function(ns,_c0){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===_c0){
return new String(x);
}
}
return null;
};
dojo.lang.has=function(obj,_c3){
return (typeof obj[_c3]!=="undefined");
};
dojo.lang.isEmpty=function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _c6=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_c6++;
break;
}
}
return (_c6==0);
}else{
if(dojo.lang.isArray(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
};
dojo.lang.forEach=function(arr,_c9,_ca){
var _cb=dojo.lang.isString(arr);
if(_cb){
arr=arr.split("");
}
var il=arr.length;
for(var i=0;i<((_ca)?il:arr.length);i++){
if(_c9(arr[i],i,arr)=="break"){
break;
}
}
};
dojo.lang.map=function(arr,obj,_d0){
var _d1=dojo.lang.isString(arr);
if(_d1){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_d0)){
_d0=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_d0){
var _d2=obj;
obj=_d0;
_d0=_d2;
}
}
if(Array.map){
var _d3=Array.map(arr,_d0,obj);
}else{
var _d3=[];
for(var i=0;i<arr.length;++i){
_d3.push(_d0.call(obj,arr[i]));
}
}
if(_d1){
return _d3.join("");
}else{
return _d3;
}
};
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(_d7,cb,_d9,_da){
if(!_d7.length){
if(typeof _da=="function"){
_da();
}
return;
}
if((typeof _d9=="undefined")&&(typeof cb=="number")){
_d9=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_d9){
_d9=0;
}
}
}
setTimeout(function(){
(_d7.shift())();
cb();
dojo.lang.delayThese(_d7,cb,_d9,_da);
},_d9);
};
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.every=function(arr,_de,_df){
var _e0=dojo.lang.isString(arr);
if(_e0){
arr=arr.split("");
}
if(Array.every){
return Array.every(arr,_de,_df);
}else{
if(!_df){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_df=dj_global;
}
for(var i=0;i<arr.length;i++){
if(!_de.call(_df,arr[i],i,arr)){
return false;
}
}
return true;
}
};
dojo.lang.some=function(arr,_e3,_e4){
var _e5=dojo.lang.isString(arr);
if(_e5){
arr=arr.split("");
}
if(Array.some){
return Array.some(arr,_e3,_e4);
}else{
if(!_e4){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_e4=dj_global;
}
for(var i=0;i<arr.length;i++){
if(_e3.call(_e4,arr[i],i,arr)){
return true;
}
}
return false;
}
};
dojo.lang.filter=function(arr,_e8,_e9){
var _ea=dojo.lang.isString(arr);
if(_ea){
arr=arr.split("");
}
if(Array.filter){
var _eb=Array.filter(arr,_e8,_e9);
}else{
if(!_e9){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_e9=dj_global;
}
var _eb=[];
for(var i=0;i<arr.length;i++){
if(_e8.call(_e9,arr[i],i,arr)){
_eb.push(arr[i]);
}
}
}
if(_ea){
return _eb.join("");
}else{
return _eb;
}
};
dojo.AdapterRegistry=function(){
this.pairs=[];
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(_ed,_ee,_ef,_f0){
if(_f0){
this.pairs.unshift([_ed,_ee,_ef]);
}else{
this.pairs.push([_ed,_ee,_ef]);
}
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var _f2=this.pairs[i];
if(_f2[1].apply(this,arguments)){
return _f2[2].apply(this,arguments);
}
}
dojo.raise("No match found");
},unregister:function(_f3){
for(var i=0;i<this.pairs.length;i++){
var _f5=this.pairs[i];
if(_f5[0]==_f3){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(_f6,_f7,_f8,_f9){
dojo.lang.reprRegistry.register(_f6,_f7,_f8,_f9);
};
dojo.lang.repr=function(obj){
if(typeof (obj)=="undefined"){
return "undefined";
}else{
if(obj===null){
return "null";
}
}
try{
if(typeof (obj["__repr__"])=="function"){
return obj["__repr__"]();
}else{
if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){
return obj["repr"]();
}
}
return dojo.lang.reprRegistry.match(obj);
}
catch(e){
if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){
return o.NAME;
}
}
if(typeof (obj)=="function"){
obj=(obj+"").replace(/^\s+/,"");
var idx=obj.indexOf("{");
if(idx!=-1){
obj=obj.substr(0,idx)+"{...}";
}
}
return obj+"";
};
dojo.lang.reprArrayLike=function(arr){
try{
var na=dojo.lang.map(arr,dojo.lang.repr);
return "["+na.join(", ")+"]";
}
catch(e){
}
};
dojo.lang.reprString=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.lang.reprNumber=function(num){
return num+"";
};
(function(){
var m=dojo.lang;
m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike);
m.registerRepr("string",m.isString,m.reprString);
m.registerRepr("numbers",m.isNumber,m.reprNumber);
m.registerRepr("boolean",m.isBoolean,m.reprNumber);
})();
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.provide("dojo.string");
dojo.require("dojo.lang");
dojo.string.trim=function(str,wh){
if(!dojo.lang.isString(str)){
return str;
}
if(!str.length){
return str;
}
if(wh>0){
return str.replace(/^\s+/,"");
}else{
if(wh<0){
return str.replace(/\s+$/,"");
}else{
return str.replace(/^\s+|\s+$/g,"");
}
}
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.paramString=function(str,_109,_10a){
for(var name in _109){
var re=new RegExp("\\%\\{"+name+"\\}","g");
str=str.replace(re,_109[name]);
}
if(_10a){
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 _10e=str.split(" ");
var _10f="";
var len=_10e.length;
for(var i=0;i<len;i++){
var word=_10e[i];
word=word.charAt(0).toUpperCase()+word.substring(1,word.length);
_10f+=word;
if(i<len-1){
_10f+=" ";
}
}
return new String(_10f);
};
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 _116=escape(str);
var _117,re=/%u([0-9A-F]{4})/i;
while((_117=_116.match(re))){
var num=Number("0x"+_117[1]);
var _119=escape("&#"+num+";");
ret+=_116.substring(0,_117.index)+_119;
_116=_116.substring(_117.index+_117[0].length);
}
ret+=_116.replace(/\+/g,"%2B");
return ret;
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}else{
return str.substring(0,len).replace(/\.+$/,"")+"...";
}
};
dojo.string.escape=function(type,str){
switch(type.toLowerCase()){
case "xml":
case "html":
case "xhtml":
return dojo.string.escapeXml(str);
case "sql":
return dojo.string.escapeSql(str);
case "regexp":
case "regex":
return dojo.string.escapeRegExp(str);
case "javascript":
case "jscript":
case "js":
return dojo.string.escapeJavaScript(str);
case "ascii":
return dojo.string.encodeAscii(str);
default:
return str;
}
};
dojo.string.escapeXml=function(str){
return str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/'/gm,"&#39;");
};
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.repeat=function(str,_123,_124){
var out="";
for(var i=0;i<_123;i++){
out+=str;
if(_124&&i<_123-1){
out+=_124;
}
}
return out;
};
dojo.string.endsWith=function(str,end,_129){
if(_129){
str=str.toLowerCase();
end=end.toLowerCase();
}
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,_12d,_12e){
if(_12e){
str=str.toLowerCase();
_12d=_12d.toLowerCase();
}
return str.indexOf(_12d)==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.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.string.addToPrototype=function(){
for(var _13e in dojo.string){
if(dojo.lang.isFunction(dojo.string[_13e])){
var func=(function(){
var meth=_13e;
switch(meth){
case "addToPrototype":
return null;
break;
case "escape":
return function(type){
return dojo.string.escape(type,this);
};
break;
default:
return function(){
var args=[this];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
dojo.debug(args);
return dojo.string[meth].apply(dojo.string,args);
};
}
})();
if(func){
String.prototype[_13e]=func;
}
}
}
};
dojo.provide("dojo.io.IO");
dojo.require("dojo.string");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error"];
dojo.io.Request=function(url,_145,_146,_147){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_145){
this.mimetype=_145;
}
if(_146){
this.transport=_146;
}
if(arguments.length>=4){
this.changeUrl=_147;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){
},error:function(type,_14c){
},handle:function(){
},abort:function(){
},fromKwArgs:function(_14d){
if(_14d["url"]){
_14d.url=_14d.url.toString();
}
if(!_14d["method"]&&_14d["formNode"]&&_14d["formNode"].method){
_14d.method=_14d["formNode"].method;
}
if(!_14d["handle"]&&_14d["handler"]){
_14d.handle=_14d.handler;
}
if(!_14d["load"]&&_14d["loaded"]){
_14d.load=_14d.loaded;
}
if(!_14d["changeUrl"]&&_14d["changeURL"]){
_14d.changeUrl=_14d.changeURL;
}
if(!_14d["encoding"]){
if(!dojo.lang.isUndefined(djConfig["bindEncoding"])){
_14d.encoding=djConfig.bindEncoding;
}else{
_14d.encoding="";
}
}
var _14e=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_14e(_14d[fn])){
continue;
}
if(_14e(_14d["handle"])){
_14d[fn]=_14d.handle;
}
}
dojo.lang.mixin(this,_14d);
}});
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(_155){
if(!(_155 instanceof dojo.io.Request)){
try{
_155=new dojo.io.Request(_155);
}
catch(e){
dojo.debug(e);
}
}
var _156="";
if(_155["transport"]){
_156=_155["transport"];
if(!this[_156]){
return _155;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_155))){
_156=tmp;
}
}
if(_156==""){
return _155;
}
}
this[_156].bind(_155);
_155.bindSuccess=true;
return _155;
};
dojo.io.queueBind=function(_159){
if(!(_159 instanceof dojo.io.Request)){
try{
_159=new dojo.io.Request(_159);
}
catch(e){
dojo.debug(e);
}
}
var _15a=_159.load;
_159.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_15a.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _15c=_159.error;
_159.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_15c.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_159);
dojo.io._dispatchNextQueueBind();
return _159;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
dojo.io.bind(dojo.io._bindQueue.shift());
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_15f){
var _160=new Object();
var _161="";
var enc=/utf/i.test(_15f||"")?encodeURIComponent:dojo.string.encodeAscii;
for(var x in map){
if(!_160[x]){
_161+=enc(x)+"="+enc(map[x])+"&";
}
}
return _161;
};
dojo.provide("dojo.dom");
dojo.require("dojo.lang");
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=dojo.lang.isDomNode=function(wh){
if(typeof Element=="object"){
try{
return wh instanceof Element;
}
catch(E){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.lang.whatAmI.custom["node"]=dojo.dom.isNode;
dojo.dom.getTagName=function(node){
var _166=node.tagName;
if(_166.substr(0,5).toLowerCase()!="dojo:"){
if(_166.substr(0,4).toLowerCase()=="dojo"){
return "dojo:"+_166.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 _168=node.className||node.getAttribute("class");
if((_168)&&(_168.indexOf("dojo-")!=-1)){
var _169=_168.split(" ");
for(var x=0;x<_169.length;x++){
if((_169[x].length>5)&&(_169[x].indexOf("dojo-")>=0)){
return "dojo:"+_169[x].substr(5).toLowerCase();
}
}
}
}
}
return _166.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(_16c,_16d){
var node=_16c.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_16d&&node&&node.tagName&&node.tagName.toLowerCase()!=_16d.toLowerCase()){
node=dojo.dom.nextElement(node,_16d);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_16f,_170){
var node=_16f.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_170&&node&&node.tagName&&node.tagName.toLowerCase()!=_170.toLowerCase()){
node=dojo.dom.prevElement(node,_170);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_173){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_173&&_173.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_173);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_175){
if(!node){
return null;
}
if(_175){
_175=_175.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_175&&_175.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_175);
}
return node;
};
dojo.dom.moveChildren=function(_176,_177,trim){
var _179=0;
if(trim){
while(_176.hasChildNodes()&&_176.firstChild.nodeType==dojo.dom.TEXT_NODE){
_176.removeChild(_176.firstChild);
}
while(_176.hasChildNodes()&&_176.lastChild.nodeType==dojo.dom.TEXT_NODE){
_176.removeChild(_176.lastChild);
}
}
while(_176.hasChildNodes()){
_177.appendChild(_176.firstChild);
_179++;
}
return _179;
};
dojo.dom.copyChildren=function(_17a,_17b,trim){
var _17d=_17a.cloneNode(true);
return this.moveChildren(_17d,_17b,trim);
};
dojo.dom.removeChildren=function(node){
var _17f=node.childNodes.length;
while(node.hasChildNodes()){
node.removeChild(node.firstChild);
}
return _17f;
};
dojo.dom.replaceChildren=function(node,_181){
dojo.dom.removeChildren(node);
node.appendChild(_181);
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_184,_185){
var _186=[];
var _187=dojo.lang.isFunction(_184);
while(node){
if(!_187||_184(node)){
_186.push(node);
}
if(_185&&_186.length>0){
return _186[0];
}
node=node.parentNode;
}
if(_185){
return null;
}
return _186;
};
dojo.dom.getAncestorsByTag=function(node,tag,_18a){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_18a);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_18f,_190){
if(_190&&node){
node=node.parentNode;
}
while(node){
if(node==_18f){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
};
dojo.dom.createDocumentFromText=function(str,_193){
if(!_193){
_193="text/xml";
}
if(typeof DOMParser!="undefined"){
var _194=new DOMParser();
return _194.parseFromString(str,_193);
}else{
if(typeof ActiveXObject!="undefined"){
var _195=new ActiveXObject("Microsoft.XMLDOM");
if(_195){
_195.async=false;
_195.loadXML(str);
return _195;
}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 _197=document.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_197.importNode(tmp.childNodes.item(i),true);
}
return _197;
}
return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp;
}
}
}
return null;
};
dojo.dom.insertBefore=function(node,ref,_19b){
if(_19b!=true&&(node===ref||node.nextSibling===ref)){
return false;
}
var _19c=ref.parentNode;
_19c.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_19f){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_19f!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_19f);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_1a3){
if((!node)||(!ref)||(!_1a3)){
return false;
}
switch(_1a3.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,_1a5,_1a6){
var _1a7=_1a5.childNodes;
if(!_1a7.length){
_1a5.appendChild(node);
return true;
}
var _1a8=null;
for(var i=0;i<_1a7.length;i++){
var _1aa=_1a7.item(i)["getAttribute"]?parseInt(_1a7.item(i).getAttribute("dojoinsertionindex")):-1;
if(_1aa<_1a6){
_1a8=_1a7.item(i);
}
}
if(_1a8){
return dojo.dom.insertAfter(node,_1a8);
}else{
return dojo.dom.insertBefore(node,_1a7.item(0));
}
};
dojo.dom.textContent=function(node,text){
if(text){
dojo.dom.replaceChildren(node,document.createTextNode(text));
return text;
}else{
var _1ad="";
if(node==null){
return _1ad;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_1ad+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_1ad+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _1ad;
}
};
dojo.dom.collectionToArray=function(_1af){
var _1b0=new Array(_1af.length);
for(var i=0;i<_1af.length;i++){
_1b0[i]=_1af[i];
}
return _1b0;
};
dojo.provide("dojo.io.BrowserIO");
dojo.require("dojo.io");
dojo.require("dojo.lang");
dojo.require("dojo.dom");
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){
}
dojo.io.checkChildrenForFile=function(node){
var _1b3=false;
var _1b4=node.getElementsByTagName("input");
dojo.lang.forEach(_1b4,function(_1b5){
if(_1b3){
return;
}
if(_1b5.getAttribute("type")=="file"){
_1b3=true;
}
});
return _1b3;
};
dojo.io.formHasFile=function(_1b6){
return dojo.io.checkChildrenForFile(_1b6);
};
dojo.io.encodeForm=function(_1b7,_1b8){
if((!_1b7)||(!_1b7.tagName)||(!_1b7.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
var enc=/utf/i.test(_1b8||"")?encodeURIComponent:dojo.string.encodeAscii;
var _1ba=[];
for(var i=0;i<_1b7.elements.length;i++){
var elm=_1b7.elements[i];
if(elm.disabled||elm.tagName.toLowerCase()=="fieldset"||!elm.name){
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){
_1ba.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(type,["radio","checkbox"])){
if(elm.checked){
_1ba.push(name+"="+enc(elm.value));
}
}else{
if(!dojo.lang.inArray(type,["file","submit","reset","button"])){
_1ba.push(name+"="+enc(elm.value));
}
}
}
}
var _1c0=_1b7.getElementsByTagName("input");
for(var i=0;i<_1c0.length;i++){
var _1c1=_1c0[i];
if(_1c1.type.toLowerCase()=="image"&&_1c1.form==_1b7){
var name=enc(_1c1.name);
_1ba.push(name+"="+enc(_1c1.value));
_1ba.push(name+".x=0");
_1ba.push(name+".y=0");
}
}
return _1ba.join("&")+"&";
};
dojo.io.setIFrameSrc=function(_1c2,src,_1c4){
try{
var r=dojo.render.html;
if(!_1c4){
if(r.safari){
_1c2.location=src;
}else{
frames[_1c2.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_1c2.contentWindow.document;
}else{
if(r.moz){
idoc=_1c2.contentWindow;
}
}
idoc.location.replace(src);
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.io.XMLHTTPTransport=new function(){
var _1c7=this;
this.initialHref=window.location.href;
this.initialHash=window.location.hash;
this.moveForward=false;
var _1c8={};
this.useCache=false;
this.preventCache=false;
this.historyStack=[];
this.forwardStack=[];
this.historyIframe=null;
this.bookmarkAnchor=null;
this.locationTimer=null;
function getCacheKey(url,_1ca,_1cb){
return url+"|"+_1ca+"|"+_1cb.toLowerCase();
}
function addToCache(url,_1cd,_1ce,http){
_1c8[getCacheKey(url,_1cd,_1ce)]=http;
}
function getFromCache(url,_1d1,_1d2){
return _1c8[getCacheKey(url,_1d1,_1d2)];
}
this.clearCache=function(){
_1c8={};
};
function doLoad(_1d3,http,url,_1d6,_1d7){
if((http.status==200)||(location.protocol=="file:"&&http.status==0)){
var ret;
if(_1d3.method.toLowerCase()=="head"){
var _1d9=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _1d9;
};
var _1da=_1d9.split(/[\r\n]+/g);
for(var i=0;i<_1da.length;i++){
var pair=_1da[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_1d3.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_1d3.mimetype=="text/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_1d3.mimetype=="application/xml")||(_1d3.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_1d7){
addToCache(url,_1d6,_1d3.method,http);
}
_1d3[(typeof _1d3.load=="function")?"load":"handle"]("load",ret,http);
}else{
var _1dd=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_1d3[(typeof _1d3.error=="function")?"error":"handle"]("error",_1dd,http);
}
}
function setHeaders(http,_1df){
if(_1df["headers"]){
for(var _1e0 in _1df["headers"]){
if(_1e0.toLowerCase()=="content-type"&&!_1df["contentType"]){
_1df["contentType"]=_1df["headers"][_1e0];
}else{
http.setRequestHeader(_1e0,_1df["headers"][_1e0]);
}
}
}
}
this.addToHistory=function(args){
var _1e2=args["back"]||args["backButton"]||args["handle"];
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"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
setTimeout("window.location.href = '"+hash+"';",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
var _1e5=_1e2;
var lh=null;
var hsl=this.historyStack.length-1;
if(hsl>=0){
while(!this.historyStack[hsl]["urlHash"]){
hsl--;
}
lh=this.historyStack[hsl]["urlHash"];
}
if(lh){
_1e2=function(){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+lh+"';",1);
}
_1e5();
};
}
this.forwardStack=[];
var _1e8=args["forward"]||args["forwardButton"];
var tfw=function(){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_1e8){
_1e8();
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.io.XMLHTTPTransport.checkLocation();",200);
}
}
}
}
this.historyStack.push({"url":url,"callback":_1e2,"kwArgs":args,"urlHash":hash});
};
this.checkLocation=function(){
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;
}
}
};
this.iframeLoaded=function(evt,_1ec){
var isp=_1ec.href.split("?");
if(isp.length<2){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
var _1ee=isp[1];
if(this.moveForward){
this.moveForward=false;
return;
}
var last=this.historyStack.pop();
if(!last){
if(this.forwardStack.length>0){
var next=this.forwardStack[this.forwardStack.length-1];
if(_1ee==next.url.split("?")[1]){
this.handleForwardButton();
}
}
return;
}
this.historyStack.push(last);
if(this.historyStack.length>=2){
if(isp[1]==this.historyStack[this.historyStack.length-2].url.split("?")[1]){
this.handleBackButton();
}
}else{
this.handleBackButton();
}
};
this.handleBackButton=function(){
var last=this.historyStack.pop();
if(!last){
return;
}
if(last["callback"]){
last.callback();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(last);
};
this.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);
};
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
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);
if(this.inFlight.length==0){
clearInterval(this.inFlightTimer);
this.inFlightTimer=null;
}
}
}
};
var _1f5=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_1f6){
return _1f5&&dojo.lang.inArray((_1f6["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_1f6["method"].toLowerCase(),["post","get","head"])&&!(_1f6["formNode"]&&dojo.io.formHasFile(_1f6["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_1f7){
if(!_1f7["url"]){
if(!_1f7["formNode"]&&(_1f7["backButton"]||_1f7["back"]||_1f7["changeUrl"]||_1f7["watchForURL"])&&(!djConfig.preventBackButtonFix)){
this.addToHistory(_1f7);
return true;
}
}
var url=_1f7.url;
var _1f9="";
if(_1f7["formNode"]){
var ta=_1f7.formNode.getAttribute("action");
if((ta)&&(!_1f7["url"])){
url=ta;
}
var tp=_1f7.formNode.getAttribute("method");
if((tp)&&(!_1f7["method"])){
_1f7.method=tp;
}
_1f9+=dojo.io.encodeForm(_1f7.formNode,_1f7.encoding);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_1f7["file"]){
_1f7.method="post";
}
if(!_1f7["method"]){
_1f7.method="get";
}
if(_1f7.method.toLowerCase()=="get"){
_1f7.multipart=false;
}else{
if(_1f7["file"]){
_1f7.multipart=true;
}else{
if(!_1f7["multipart"]){
_1f7.multipart=false;
}
}
}
if(_1f7["backButton"]||_1f7["back"]||_1f7["changeUrl"]){
this.addToHistory(_1f7);
}
do{
if(_1f7.postContent){
_1f9=_1f7.postContent;
break;
}
if(_1f7["content"]){
_1f9+=dojo.io.argsFromMap(_1f7.content,_1f7.encoding);
}
if(_1f7.method.toLowerCase()=="get"||!_1f7.multipart){
break;
}
var t=[];
if(_1f9.length){
var q=_1f9.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(_1f7.file){
if(dojo.lang.isArray(_1f7.file)){
for(var i=0;i<_1f7.file.length;++i){
var o=_1f7.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=_1f7.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+"--","");
_1f9=t.join("\r\n");
}
}while(false);
var _201=_1f7["sync"]?false:true;
var _202=_1f7["preventCache"]||(this.preventCache==true&&_1f7["preventCache"]!=false);
var _203=_1f7["useCache"]==true||(this.useCache==true&&_1f7["useCache"]!=false);
if(!_202&&_203){
var _204=getFromCache(url,_1f9,_1f7.method);
if(_204){
doLoad(_1f7,_204,url,_1f9,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject();
var _206=false;
if(_201){
this.inFlight.push({"req":_1f7,"http":http,"url":url,"query":_1f9,"useCache":_203});
this.startWatchingInFlight();
}
if(_1f7.method.toLowerCase()=="post"){
http.open("POST",url,_201);
setHeaders(http,_1f7);
http.setRequestHeader("Content-Type",_1f7.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_1f7.contentType||"application/x-www-form-urlencoded"));
http.send(_1f9);
}else{
var _207=url;
if(_1f9!=""){
_207+=(_207.indexOf("?")>-1?"&":"?")+_1f9;
}
if(_202){
_207+=(dojo.string.endsWithAny(_207,"?","&")?"":(_207.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
http.open(_1f7.method.toUpperCase(),_207,_201);
setHeaders(http,_1f7);
http.send(null);
}
if(!_201){
doLoad(_1f7,http,url,_1f9,_203);
}
_1f7.abort=function(){
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
dojo.require("dojo.lang");
dojo.provide("dojo.event");
dojo.event=new function(){
this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
this.nameAnonFunc=dojo.lang.nameAnonFunc;
this.createFunctionPair=function(obj,cb){
var ret=[];
if(typeof obj=="function"){
ret[1]=dojo.event.nameAnonFunc(obj,dj_global);
ret[0]=dj_global;
return ret;
}else{
if((typeof obj=="object")&&(typeof cb=="string")){
return [obj,cb];
}else{
if((typeof obj=="object")&&(typeof cb=="function")){
ret[1]=dojo.event.nameAnonFunc(cb,obj);
ret[0]=obj;
return ret;
}
}
}
return null;
};
this.matchSignature=function(args,_20c){
var end=Math.min(args.length,_20c.length);
for(var x=0;x<end;x++){
if(compareTypes){
if((typeof args[x]).toLowerCase()!=(typeof _20c[x])){
return false;
}
}else{
if((typeof args[x]).toLowerCase()!=_20c[x].toLowerCase()){
return false;
}
}
}
return true;
};
this.matchSignatureSets=function(args){
for(var x=1;x<arguments.length;x++){
if(this.matchSignature(args,arguments[x])){
return true;
}
}
return false;
};
function interpolateArgs(args){
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((typeof args[0]=="object")&&(typeof args[1]=="string")&&(typeof args[2]=="string")){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((typeof args[1]=="string")&&(typeof args[2]=="string")){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((typeof args[0]=="object")&&(typeof args[1]=="string")&&(typeof args[2]=="function")){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _213=dojo.event.nameAnonFunc(args[2],ao.adviceObj);
ao.adviceObj[_213]=args[2];
ao.adviceFunc=_213;
}else{
if((typeof args[0]=="function")&&(typeof args[1]=="object")&&(typeof args[2]=="string")){
ao.adviceType="after";
ao.srcObj=dj_global;
var _213=dojo.event.nameAnonFunc(args[0],ao.srcObj);
ao.srcObj[_213]=args[0];
ao.srcFunc=_213;
ao.adviceObj=args[1];
ao.adviceFunc=args[2];
}
}
}
}
break;
case 4:
if((typeof args[0]=="object")&&(typeof args[2]=="object")){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((typeof args[1]).toLowerCase()=="object"){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if((typeof args[2]).toLowerCase()=="object"){
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((typeof ao.srcFunc).toLowerCase()!="string"){
ao.srcFunc=dojo.lang.getNameInObj(ao.srcObj,ao.srcFunc);
}
if((typeof ao.adviceFunc).toLowerCase()!="string"){
ao.adviceFunc=dojo.lang.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&((typeof ao.aroundFunc).toLowerCase()!="string")){
ao.aroundFunc=dojo.lang.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(){
var ao=interpolateArgs(arguments);
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.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.kwConnectImpl_=function(_21b,_21c){
var fn=(_21c)?"disconnect":"connect";
if(typeof _21b["srcFunc"]=="function"){
_21b.srcObj=_21b["srcObj"]||dj_global;
var _21e=dojo.event.nameAnonFunc(_21b.srcFunc,_21b.srcObj);
_21b.srcFunc=_21e;
}
if(typeof _21b["adviceFunc"]=="function"){
_21b.adviceObj=_21b["adviceObj"]||dj_global;
var _21e=dojo.event.nameAnonFunc(_21b.adviceFunc,_21b.adviceObj);
_21b.adviceFunc=_21e;
}
return dojo.event[fn]((_21b["type"]||_21b["adviceType"]||"after"),_21b["srcObj"]||dj_global,_21b["srcFunc"],_21b["adviceObj"]||_21b["targetObj"]||dj_global,_21b["adviceFunc"]||_21b["targetFunc"],_21b["aroundObj"],_21b["aroundFunc"],_21b["once"],_21b["delay"],_21b["rate"],_21b["adviceMsg"]||false);
};
this.kwConnect=function(_21f){
return this.kwConnectImpl_(_21f,false);
};
this.disconnect=function(){
var ao=interpolateArgs(arguments);
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(_222){
return this.kwConnectImpl_(_222,true);
};
};
dojo.event.MethodInvocation=function(_223,obj,args){
this.jp_=_223;
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,_22b){
this.object=obj||dj_global;
this.methodname=_22b;
this.methodfunc=this.object[_22b];
this.before=[];
this.after=[];
this.around=[];
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_22d){
if(!obj){
obj=dj_global;
}
if(!obj[_22d]){
obj[_22d]=function(){
};
}else{
if((!dojo.lang.isFunction(obj[_22d]))&&(!dojo.lang.isAlien(obj[_22d]))){
return null;
}
}
var _22e=_22d+"$joinpoint";
var _22f=_22d+"$joinpoint$method";
var _230=obj[_22e];
if(!_230){
var _231=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_231=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_22e,_22f,_22d]);
}
}
obj[_22f]=obj[_22d];
_230=obj[_22e]=new dojo.event.MethodJoinPoint(obj,_22f);
obj[_22d]=function(){
var args=[];
if((_231)&&(!arguments.length)&&(window.event)){
args.push(dojo.event.browser.fixEvent(window.event));
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(_231)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x]));
}else{
args.push(arguments[x]);
}
}
}
return _230.run.apply(_230,args);
};
}
return _230;
};
dojo.event.MethodJoinPoint.prototype.unintercept=function(){
this.object[this.methodname]=this.methodfunc;
};
dojo.event.MethodJoinPoint.prototype.run=function(){
var obj=this.object||dj_global;
var args=arguments;
var _236=[];
for(var x=0;x<args.length;x++){
_236[x]=args[x];
}
var _238=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _23a=marr[0]||dj_global;
var _23b=marr[1];
if(!_23a[_23b]){
throw new Error("function \""+_23b+"\" does not exist on \""+_23a+"\"");
}
var _23c=marr[2]||dj_global;
var _23d=marr[3];
var msg=marr[6];
var _23f;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _23a[_23b].apply(_23a,to.args);
}};
to.args=_236;
var _241=parseInt(marr[4]);
var _242=((!isNaN(_241))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _245=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;
_238(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_23d){
_23c[_23d].call(_23c,to);
}else{
if((_242)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_23a[_23b].call(_23a,to);
}else{
_23a[_23b].apply(_23a,args);
}
},_241);
}else{
if(msg){
_23a[_23b].call(_23a,to);
}else{
_23a[_23b].apply(_23a,args);
}
}
}
};
if(this.before.length>0){
dojo.lang.forEach(this.before,_238,true);
}
var _248;
if(this.around.length>0){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_248=mi.proceed();
}else{
if(this.methodfunc){
_248=this.object[this.methodname].apply(this.object,args);
}
}
if(this.after.length>0){
dojo.lang.forEach(this.after,_238,true);
}
return (this.methodfunc)?_248:null;
};
dojo.event.MethodJoinPoint.prototype.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;
};
dojo.event.MethodJoinPoint.prototype.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"]);
};
dojo.event.MethodJoinPoint.prototype.addAdvice=function(_24d,_24e,_24f,_250,_251,_252,once,_254,rate,_256){
var arr=this.getArr(_251);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_24d,_24e,_24f,_250,_254,rate,_256];
if(once){
if(this.hasAdvice(_24d,_24e,_251,arr)>=0){
return;
}
}
if(_252=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
};
dojo.event.MethodJoinPoint.prototype.hasAdvice=function(_259,_25a,_25b,arr){
if(!arr){
arr=this.getArr(_25b);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
if((arr[x][0]==_259)&&(arr[x][1]==_25a)){
ind=x;
}
}
return ind;
};
dojo.event.MethodJoinPoint.prototype.removeAdvice=function(_25f,_260,_261,once){
var arr=this.getArr(_261);
var ind=this.hasAdvice(_25f,_260,_261,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_25f,_260,_261,arr);
}
return true;
};
dojo.require("dojo.event");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_265){
if(!this.topics[_265]){
this.topics[_265]=new this.TopicImpl(_265);
}
return this.topics[_265];
};
this.registerPublisher=function(_266,obj,_268){
var _266=this.getTopic(_266);
_266.registerPublisher(obj,_268);
};
this.subscribe=function(_269,obj,_26b){
var _269=this.getTopic(_269);
_269.subscribe(obj,_26b);
};
this.unsubscribe=function(_26c,obj,_26e){
var _26c=this.getTopic(_26c);
_26c.unsubscribe(obj,_26e);
};
this.publish=function(_26f,_270){
var _26f=this.getTopic(_26f);
var args=[];
if((arguments.length==2)&&(_270.length)&&(typeof _270!="string")){
args=_270;
}else{
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
}
_26f.sendMessage.apply(_26f,args);
};
};
dojo.event.topic.TopicImpl=function(_273){
this.topicName=_273;
var self=this;
self.subscribe=function(_275,_276){
dojo.event.connect("before",self,"sendMessage",_275,_276);
};
self.unsubscribe=function(_277,_278){
dojo.event.disconnect("before",self,"sendMessage",_277,_278);
};
self.registerPublisher=function(_279,_27a){
dojo.event.connect(_279,_27a,self,"sendMessage");
};
self.sendMessage=function(_27b){
};
};
dojo.provide("dojo.event.browser");
dojo.require("dojo.event");
dojo_ie_clobber=new function(){
this.clobberArr=["data","onload","onmousedown","onmouseup","onmouseover","onmouseout","onmousemove","onclick","ondblclick","onfocus","onblur","onkeypress","onkeydown","onkeyup","onsubmit","onreset","onselect","onchange","onselectstart","ondragstart","oncontextmenu"];
this.exclusions=[];
this.clobberList={};
this.clobberNodes=[];
this.addClobberAttr=function(type){
if(dojo.render.html.ie){
if(this.clobberList[type]!="set"){
this.clobberArr.push(type);
this.clobberList[type]="set";
}
}
};
this.addExclusionID=function(id){
this.exclusions.push(id);
};
if(dojo.render.html.ie){
for(var x=0;x<this.clobberArr.length;x++){
this.clobberList[this.clobberArr[x]]="set";
}
}
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(_281){
for(var x=0;x<this.exclusions.length;x++){
try{
var tn=document.getElementById(this.exclusions[x]);
tn.parentNode.removeChild(tn);
}
catch(e){
}
}
var na;
var tna;
if(_281){
tna=_281.getElementsByTagName("*");
na=[_281];
for(var x=0;x<tna.length;x++){
if(!djConfig.ieClobberMinimal){
na.push(tna[x]);
}else{
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 _286={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
if(djConfig.ieClobberMinimal){
if(el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}else{
for(var p=this.clobberArr.length-1;p>=0;p=p-1){
var ta=this.clobberArr[p];
nukeProp(el,ta);
}
}
}
na=null;
};
};
if((dojo.render.html.ie)&&((!dojo.hostenv.ie_prevent_clobber_)||(djConfig.ieClobberMinimal))){
window.onunload=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 _28c=0;
this.clean=function(node){
if(dojo.render.html.ie){
dojo_ie_clobber.clobber(node);
}
};
this.addClobberAttr=function(type){
dojo_ie_clobber.addClobberAttr(type);
};
this.addClobberAttrs=function(){
for(var x=0;x<arguments.length;x++){
this.addClobberAttr(arguments[x]);
}
};
this.addClobberNode=function(node){
if(djConfig.ieClobberMinimal){
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo_ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
}
};
this.addClobberNodeAttrs=function(node,_292){
this.addClobberNode(node);
if(djConfig.ieClobberMinimal){
for(var x=0;x<_292.length;x++){
node.__clobberAttrs__.push(_292[x]);
}
}else{
this.addClobberAttrs.apply(this,_292);
}
};
this.removeListener=function(node,_295,fp,_297){
if(!_297){
var _297=false;
}
_295=_295.toLowerCase();
if(_295.substr(0,2)=="on"){
_295=_295.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_295,fp,_297);
}
};
this.addListener=function(node,_299,fp,_29b,_29c){
if(!node){
return;
}
if(!_29b){
var _29b=false;
}
_299=_299.toLowerCase();
if(_299.substr(0,2)!="on"){
_299="on"+_299;
}
if(!_29c){
var _29d=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt));
if(_29b){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_29d=fp;
}
if(node.addEventListener){
node.addEventListener(_299.substr(2),_29d,_29b);
return _29d;
}else{
if(typeof node[_299]=="function"){
var _2a0=node[_299];
node[_299]=function(e){
_2a0(e);
return _29d(e);
};
}else{
node[_299]=_29d;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_299]);
}
return _29d;
}
};
this.isEvent=function(obj){
return (typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_2a3,_2a4){
if(typeof _2a3!="function"){
dojo.raise("listener not a function: "+_2a3);
}
dojo.event.browser.currentEvent.currentTarget=_2a4;
return _2a3.call(_2a4,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){
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=evt.srcElement;
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
if(evt.fromElement){
evt.relatedTarget=evt.fromElement;
}
if(evt.toElement){
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.hostenv.conditionalLoadModule({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"]});
dojo.hostenv.moduleLoaded("dojo.event.*");
dojo.hostenv.conditionalLoadModule({common:["dojo.lang"]});
dojo.hostenv.moduleLoaded("dojo.lang.*");
dojo.provide("dojo.widget.Manager");
dojo.require("dojo.lang");
dojo.require("dojo.event.*");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _2a9={};
var _2aa=[];
this.getUniqueId=function(_2ab){
return _2ab+"_"+(_2a9[_2ab]!=undefined?++_2a9[_2ab]:_2a9[_2ab]=0);
};
this.add=function(_2ac){
dojo.profile.start("dojo.widget.manager.add");
this.widgets.push(_2ac);
if(_2ac.widgetId==""){
if(_2ac["id"]){
_2ac.widgetId=_2ac["id"];
}else{
if(_2ac.extraArgs["id"]){
_2ac.widgetId=_2ac.extraArgs["id"];
}else{
_2ac.widgetId=this.getUniqueId(_2ac.widgetType);
}
}
}
if(this.widgetIds[_2ac.widgetId]){
dojo.debug("widget ID collision on ID: "+_2ac.widgetId);
}
this.widgetIds[_2ac.widgetId]=_2ac;
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(_2ae){
var tw=this.widgets[_2ae].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_2ae,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){
dj_deprecated("getWidgetsOfType is depecrecated, use getWidgetsByType");
return dojo.widget.manager.getWidgetsByType(id);
};
this.getWidgetsByFilter=function(_2b8){
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_2b8(x)){
ret.push(x);
}
});
return ret;
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
var _2bb={};
var _2bc=["dojo.widget","dojo.webui.widgets"];
for(var i=0;i<_2bc.length;i++){
_2bc[_2bc[i]]=true;
}
this.registerWidgetPackage=function(_2be){
if(!_2bc[_2be]){
_2bc[_2be]=true;
_2bc.push(_2be);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_2bc,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_2c0,_2c1,_2c2){
var impl=this.getImplementationName(_2c0);
if(impl){
var ret=new impl(_2c1);
return ret;
}
};
this.getImplementationName=function(_2c5){
var _2c6=_2c5.toLowerCase();
var impl=_2bb[_2c6];
if(impl){
return impl;
}
if(!_2aa.length){
for(var _2c8 in dojo.render){
if(dojo.render[_2c8]["capable"]===true){
var _2c9=dojo.render[_2c8].prefixes;
for(var i=0;i<_2c9.length;i++){
_2aa.push(_2c9[i].toLowerCase());
}
}
}
_2aa.push("");
}
for(var i=0;i<_2bc.length;i++){
var _2cb=dojo.evalObjPath(_2bc[i]);
if(!_2cb){
continue;
}
for(var j=0;j<_2aa.length;j++){
if(!_2cb[_2aa[j]]){
continue;
}
for(var _2cd in _2cb[_2aa[j]]){
if(_2cd.toLowerCase()!=_2c6){
continue;
}
_2bb[_2c6]=_2cb[_2aa[j]][_2cd];
return _2bb[_2c6];
}
}
for(var j=0;j<_2aa.length;j++){
for(var _2cd in _2cb){
if(_2cd.toLowerCase()!=(_2aa[j]+_2c6)){
continue;
}
_2bb[_2c6]=_2cb[_2cd];
return _2bb[_2c6];
}
}
}
throw new Error("Could not locate \""+_2c5+"\" class");
};
this.onResized=function(){
for(var id in this.topWidgets){
var _2cf=this.topWidgets[id];
if(_2cf.onResized){
_2cf.onResized();
}
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onResized");
dojo.event.connect(window,"onresize",this,"onResized");
}
};
dojo.widget.getUniqueId=function(){
return dojo.widget.manager.getUniqueId.apply(dojo.widget.manager,arguments);
};
dojo.widget.addWidget=function(){
return dojo.widget.manager.add.apply(dojo.widget.manager,arguments);
};
dojo.widget.destroyAllWidgets=function(){
return dojo.widget.manager.destroyAll.apply(dojo.widget.manager,arguments);
};
dojo.widget.removeWidget=function(){
return dojo.widget.manager.remove.apply(dojo.widget.manager,arguments);
};
dojo.widget.removeWidgetById=function(){
return dojo.widget.manager.removeById.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetById=function(){
return dojo.widget.manager.getWidgetById.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetsByType=function(){
return dojo.widget.manager.getWidgetsByType.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetsByFilter=function(){
return dojo.widget.manager.getWidgetsByFilter.apply(dojo.widget.manager,arguments);
};
dojo.widget.byId=function(){
return dojo.widget.manager.getWidgetById.apply(dojo.widget.manager,arguments);
};
dojo.widget.byType=function(){
return dojo.widget.manager.getWidgetsByType.apply(dojo.widget.manager,arguments);
};
dojo.widget.byFilter=function(){
return dojo.widget.manager.getWidgetsByFilter.apply(dojo.widget.manager,arguments);
};
dojo.widget.all=function(){
return dojo.widget.manager.getAllWidgets.apply(dojo.widget.manager,arguments);
};
dojo.widget.registerWidgetPackage=function(){
return dojo.widget.manager.registerWidgetPackage.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetImplementation=function(){
return dojo.widget.manager.getImplementation.apply(dojo.widget.manager,arguments);
};
dojo.widget.getWidgetImplementationName=function(){
return dojo.widget.manager.getImplementationName.apply(dojo.widget.manager,arguments);
};
dojo.widget.widgets=dojo.widget.manager.widgets;
dojo.widget.widgetIds=dojo.widget.manager.widgetIds;
dojo.widget.root=dojo.widget.manager.root;
dojo.provide("dojo.xml.Parse");
dojo.require("dojo.dom");
dojo.xml.Parse=function(){
this.parseFragment=function(_2d0){
var _2d1={};
var _2d2=dojo.dom.getTagName(_2d0);
_2d1[_2d2]=new Array(_2d0.tagName);
var _2d3=this.parseAttributes(_2d0);
for(var attr in _2d3){
if(!_2d1[attr]){
_2d1[attr]=[];
}
_2d1[attr][_2d1[attr].length]=_2d3[attr];
}
var _2d5=_2d0.childNodes;
for(var _2d6 in _2d5){
switch(_2d5[_2d6].nodeType){
case dojo.dom.ELEMENT_NODE:
_2d1[_2d2].push(this.parseElement(_2d5[_2d6]));
break;
case dojo.dom.TEXT_NODE:
if(_2d5.length==1){
if(!_2d1[_2d0.tagName]){
_2d1[_2d2]=[];
}
_2d1[_2d2].push({value:_2d5[0].nodeValue});
}
break;
}
}
return _2d1;
};
this.parseElement=function(node,_2d8,_2d9,_2da){
var _2db={};
var _2dc=dojo.dom.getTagName(node);
_2db[_2dc]=[];
if((!_2d9)||(_2dc.substr(0,4).toLowerCase()=="dojo")){
var _2dd=this.parseAttributes(node);
for(var attr in _2dd){
if((!_2db[_2dc][attr])||(typeof _2db[_2dc][attr]!="array")){
_2db[_2dc][attr]=[];
}
_2db[_2dc][attr].push(_2dd[attr]);
}
_2db[_2dc].nodeRef=node;
_2db.tagName=_2dc;
_2db.index=_2da||0;
}
var _2df=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
_2df++;
var ctn=dojo.dom.getTagName(tcn);
if(!_2db[ctn]){
_2db[ctn]=[];
}
_2db[ctn].push(this.parseElement(tcn,true,_2d9,_2df));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_2db[ctn][_2db[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_2db[_2dc].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _2db;
};
this.parseAttributes=function(node){
var _2e4={};
var atts=node.attributes;
for(var i=0;i<atts.length;i++){
var _2e7=atts.item(i);
if((dojo.render.html.capable)&&(dojo.render.html.ie)){
if(!_2e7){
continue;
}
if((typeof _2e7=="object")&&(typeof _2e7.nodeValue=="undefined")||(_2e7.nodeValue==null)||(_2e7.nodeValue=="")){
continue;
}
}
var nn=(_2e7.nodeName.indexOf("dojo:")==-1)?_2e7.nodeName:_2e7.nodeName.split("dojo:")[1];
_2e4[nn]={value:_2e7.nodeValue};
}
return _2e4;
};
};
dojo.provide("dojo.widget.Widget");
dojo.provide("dojo.widget.tags");
dojo.require("dojo.lang");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.event.*");
dojo.require("dojo.string");
dojo.widget.Widget=function(){
this.children=[];
this.extraArgs={};
};
dojo.lang.extend(dojo.widget.Widget,{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;
},create:function(args,_2ea,_2eb){
this.satisfyPropertySets(args,_2ea,_2eb);
this.mixInProperties(args,_2ea,_2eb);
this.postMixInProperties(args,_2ea,_2eb);
dojo.widget.manager.add(this);
this.buildRendering(args,_2ea,_2eb);
this.initialize(args,_2ea,_2eb);
this.postInitialize(args,_2ea,_2eb);
this.postCreate(args,_2ea,_2eb);
return this;
},destroy:function(_2ec){
this.uninitialize();
this.destroyRendering(_2ec);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(_2ed){
_2ed=(!_2ed)?function(){
return true;
}:_2ed;
for(var x=0;x<this.children.length;x++){
var tc=this.children[x];
if((tc)&&(_2ed(tc))){
tc.destroy();
}
}
},destroyChildrenOfType:function(type){
type=type.toLowerCase();
this.destroyChildren(function(item){
if(item.widgetType.toLowerCase()==type){
return true;
}else{
return false;
}
});
},getChildrenOfType:function(type,_2f3){
var ret=[];
type=type.toLowerCase();
for(var x=0;x<this.children.length;x++){
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
if(_2f3){
ret=ret.concat(this.children[x].getChildrenOfType(type,_2f3));
}
}
return ret;
},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 _2fa;
var _2fb=dojo.widget.lcArgsCache[this.widgetType];
if(_2fb==null){
_2fb={};
for(var y in this){
_2fb[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_2fb;
}
var _2fd={};
for(var x in args){
if(!this[x]){
var y=_2fb[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_2fd[x]){
continue;
}
_2fd[x]=true;
if((typeof this[x])!=(typeof _2fa)){
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])){
var tn=dojo.event.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"){
var _2ff=args[x].split(";");
for(var y=0;y<_2ff.length;y++){
var si=_2ff[y].indexOf(":");
if((si!=-1)&&(_2ff[y].length>si)){
this[x][dojo.string.trim(_2ff[y].substr(0,si))]=_2ff[y].substr(si+1);
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x]=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(){
dj_unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dj_unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},cleanUp:function(){
dj_unimplemented("dojo.widget.Widget.cleanUp");
return false;
},addedTo:function(_307){
},addChild:function(_308){
dj_unimplemented("dojo.widget.Widget.addChild");
return false;
},addChildAtIndex:function(_309,_30a){
dj_unimplemented("dojo.widget.Widget.addChildAtIndex");
return false;
},removeChild:function(_30b){
dj_unimplemented("dojo.widget.Widget.removeChild");
return false;
},removeChildAtIndex:function(_30c){
dj_unimplemented("dojo.widget.Widget.removeChildAtIndex");
return false;
},resize:function(_30d,_30e){
this.setWidth(_30d);
this.setHeight(_30e);
},setWidth:function(_30f){
if((typeof _30f=="string")&&(_30f.substr(-1)=="%")){
this.setPercentageWidth(_30f);
}else{
this.setNativeWidth(_30f);
}
},setHeight:function(_310){
if((typeof _310=="string")&&(_310.substr(-1)=="%")){
this.setPercentageHeight(_310);
}else{
this.setNativeHeight(_310);
}
},setPercentageHeight:function(_311){
return false;
},setNativeHeight:function(_312){
return false;
},setPercentageWidth:function(_313){
return false;
},setNativeWidth:function(_314){
return false;
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
var _316=type.toLowerCase();
this[_316]=function(_317,_318,_319,_31a){
return dojo.widget.buildWidgetFromParseTree(_316,_317,_318,_319,_31a);
};
};
dojo.widget.tags.addParseTreeHandler("dojo:widget");
dojo.widget.tags["dojo:propertyset"]=function(_31b,_31c,_31d){
var _31e=_31c.parseProperties(_31b["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_31f,_320,_321){
var _322=_320.parseProperties(_31f["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_325,_326,_327){
var _328={};
var _329=type.split(":");
_329=(_329.length==2)?_329[1]:type;
var _328=_325.parseProperties(frag["dojo:"+_329]);
var _32a=dojo.widget.manager.getImplementation(_329);
if(!_32a){
throw new Error("cannot find \""+_329+"\" widget");
}else{
if(!_32a.create){
throw new Error("\""+_329+"\" widget object does not appear to implement *Widget");
}
}
_328["dojoinsertionindex"]=_327;
var ret=_32a.create(_328,frag,_326);
return ret;
};
dojo.provide("dojo.widget.Parse");
dojo.require("dojo.widget.Manager");
dojo.require("dojo.string");
dojo.require("dojo.dom");
dojo.widget.Parse=function(_32c){
this.propertySetsList=[];
this.fragment=_32c;
this.createComponents=function(_32d,_32e){
var _32f=dojo.widget.tags;
var _330=[];
for(var item in _32d){
var _332=false;
try{
if(_32d[item]&&(_32d[item]["tagName"])&&(_32d[item]!=_32d["nodeRef"])){
var tn=new String(_32d[item]["tagName"]);
var tna=tn.split(";");
for(var x=0;x<tna.length;x++){
var ltn=dojo.string.trim(tna[x]).toLowerCase();
if(_32f[ltn]){
_332=true;
_32d[item].tagName=ltn;
_330.push(_32f[ltn](_32d[item],this,_32e,_32d[item]["index"]));
}else{
if(ltn.substr(0,5)=="dojo:"){
dojo.debug("no tag handler registed for type: ",ltn);
}
}
}
}
}
catch(e){
dojo.debug(e);
}
if((!_332)&&(typeof _32d[item]=="object")&&(_32d[item]!=_32d.nodeRef)&&(_32d[item]!=_32d["tagName"])){
_330.push(this.createComponents(_32d[item],_32e));
}
}
return _330;
};
this.parsePropertySets=function(_337){
return [];
var _338=[];
for(var item in _337){
if((_337[item]["tagName"]=="dojo:propertyset")){
_338.push(_337[item]);
}
}
this.propertySetsList.push(_338);
return _338;
};
this.parseProperties=function(_33a){
var _33b={};
for(var item in _33a){
if((_33a[item]==_33a["tagName"])||(_33a[item]==_33a.nodeRef)){
}else{
if((_33a[item]["tagName"])&&(dojo.widget.tags[_33a[item].tagName.toLowerCase()])){
}else{
if((_33a[item][0])&&(_33a[item][0].value!="")){
try{
if(item.toLowerCase()=="dataprovider"){
var _33d=this;
this.getDataProvider(_33d,_33a[item][0].value);
_33b.dataProvider=this.dataProvider;
}
_33b[item]=_33a[item][0].value;
var _33e=this.parseProperties(_33a[item]);
for(var _33f in _33e){
_33b[_33f]=_33e[_33f];
}
}
catch(e){
dj_debug(e);
}
}
}
}
}
return _33b;
};
this.getDataProvider=function(_340,_341){
dojo.io.bind({url:_341,load:function(type,_343){
if(type=="load"){
_340.dataProvider=_343;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_344){
for(var x=0;x<this.propertySetsList.length;x++){
if(_344==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_346){
var _347=[];
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)){
_347.push(cpl);
}
}
return _347;
};
this.getPropertySets=function(_34b){
var ppl="dojo:propertyproviderlist";
var _34d=[];
var _34e=_34b["tagName"];
if(_34b[ppl]){
var _34f=_34b[ppl].value.split(" ");
for(propertySetId in _34f){
if((propertySetId.indexOf("..")==-1)&&(propertySetId.indexOf("://")==-1)){
var _350=this.getPropertySetById(propertySetId);
if(_350!=""){
_34d.push(_350);
}
}else{
}
}
}
return (this.getPropertySetsByType(_34e)).concat(_34d);
};
this.createComponentFromScript=function(_351,_352,_353,_354){
var frag={};
var _356="dojo:"+_352.toLowerCase();
frag[_356]={};
var bo={};
_353.dojotype=_352;
for(var prop in _353){
if(typeof bo[prop]=="undefined"){
frag[_356][prop]=[{value:_353[prop]}];
}
}
frag[_356].nodeRef=_351;
frag.tagName=_356;
var _359=[frag];
if(_354){
_359[0].fastMixIn=true;
}
return this.createComponents(_359);
};
};
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.fromScript=function(name,_35c,_35d,_35e){
if((typeof name!="string")&&(typeof _35c=="string")){
return dojo.widget._oldFromScript(name,_35c,_35d);
}
_35c=_35c||{};
var _35f=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_35d){
_35f=true;
_35d=tn;
if(h){
dojo.html.body().appendChild(_35d);
}
}else{
if(_35e){
dojo.dom.insertAtPosition(tn,_35d,_35e);
}else{
tn=_35d;
}
}
var _362=dojo.widget._oldFromScript(tn,name,_35c);
if(!_362[0]||typeof _362[0].widgetType=="undefined"){
throw new Error("Creation of \""+name+"\" widget fromScript failed.");
}
if(_35f){
if(_362[0].domNode.parentNode){
_362[0].domNode.parentNode.removeChild(_362[0].domNode);
}
}
return _362[0];
};
dojo.widget._oldFromScript=function(_363,name,_365){
var ln=name.toLowerCase();
var tn="dojo:"+ln;
_365[tn]={dojotype:[{value:ln}],nodeRef:_363,fastMixIn:true};
var ret=dojo.widget.getParser().createComponentFromScript(_363,name,_365,true);
return ret;
};
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 _36e=new dojo.uri.Uri(arguments[i].toString());
var _36f=new dojo.uri.Uri(uri.toString());
if(_36e.path==""&&_36e.scheme==null&&_36e.authority==null&&_36e.query==null){
if(_36e.fragment!=null){
_36f.fragment=_36e.fragment;
}
_36e=_36f;
}else{
if(_36e.scheme==null){
_36e.scheme=_36f.scheme;
if(_36e.authority==null){
_36e.authority=_36f.authority;
if(_36e.path.charAt(0)!="/"){
var path=_36f.path.substring(0,_36f.path.lastIndexOf("/")+1)+_36e.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;
}
}
}
}
_36e.path=segs.join("/");
}
}
}
}
uri="";
if(_36e.scheme!=null){
uri+=_36e.scheme+":";
}
if(_36e.authority!=null){
uri+="//"+_36e.authority;
}
uri+=_36e.path;
if(_36e.query!=null){
uri+="?"+_36e.query;
}
if(_36e.fragment!=null){
uri+="#"+_36e.fragment;
}
}
this.uri=uri.toString();
var _373="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_373));
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){
_373="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_373));
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.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]});
dojo.hostenv.moduleLoaded("dojo.uri.*");
dojo.provide("dojo.widget.DomWidget");
dojo.require("dojo.event.*");
dojo.require("dojo.string");
dojo.require("dojo.widget.Widget");
dojo.require("dojo.dom");
dojo.require("dojo.xml.Parse");
dojo.require("dojo.uri.*");
dojo.widget._cssFiles={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.buildFromTemplate=function(obj,_376,_377,_378){
var _379=_376||obj.templatePath;
var _37a=_377||obj.templateCssPath;
if(!_37a&&obj.templateCSSPath){
obj.templateCssPath=_37a=obj.templateCSSPath;
obj.templateCSSPath=null;
dj_deprecated("templateCSSPath is deprecated, use templateCssPath");
}
if(_379&&!(_379 instanceof dojo.uri.Uri)){
_379=dojo.uri.dojoUri(_379);
dj_deprecated("templatePath should be of type dojo.uri.Uri");
}
if(_37a&&!(_37a instanceof dojo.uri.Uri)){
_37a=dojo.uri.dojoUri(_37a);
dj_deprecated("templateCssPath should be of type dojo.uri.Uri");
}
var _37b=dojo.widget.DomWidget.templates;
if(!obj["widgetType"]){
do{
var _37c="__dummyTemplate__"+dojo.widget.buildFromTemplate.dummyCount++;
}while(_37b[_37c]);
obj.widgetType=_37c;
}
if((_37a)&&(!dojo.widget._cssFiles[_37a])){
dojo.html.insertCssFile(_37a);
obj.templateCssPath=null;
dojo.widget._cssFiles[_37a]=true;
}
var ts=_37b[obj.widgetType];
if(!ts){
_37b[obj.widgetType]={};
ts=_37b[obj.widgetType];
}
if(!obj.templateString){
obj.templateString=_378||ts["string"];
}
if(!obj.templateNode){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_379)){
var _37e=dojo.hostenv.getText(_379);
if(_37e){
var _37f=_37e.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_37f){
_37e=_37f[1];
}
}else{
_37e="";
}
obj.templateString=_37e;
ts.string=_37e;
}
if(!ts["string"]){
ts.string=obj.templateString;
}
};
dojo.widget.buildFromTemplate.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.attachTemplateNodes=function(_380,_381,_382){
var _383=dojo.dom.ELEMENT_NODE;
if(!_380){
_380=_381.domNode;
}
if(_380.nodeType!=_383){
return;
}
var _384=_380.getElementsByTagName("*");
var _385=_381;
for(var x=-1;x<_384.length;x++){
var _387=(x==-1)?_380:_384[x];
var _388=[];
for(var y=0;y<this.attachProperties.length;y++){
var _38a=_387.getAttribute(this.attachProperties[y]);
if(_38a){
_388=_38a.split(";");
for(var z=0;z<this.attachProperties.length;z++){
if((_381[_388[z]])&&(dojo.lang.isArray(_381[_388[z]]))){
_381[_388[z]].push(_387);
}else{
_381[_388[z]]=_387;
}
}
break;
}
}
var _38c=_387.getAttribute(this.templateProperty);
if(_38c){
_381[_38c]=_387;
}
var _38d=_387.getAttribute(this.eventAttachProperty);
if(_38d){
var evts=_38d.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _38f=null;
var tevt=dojo.string.trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _391=tevt.split(":");
tevt=dojo.string.trim(_391[0]);
_38f=dojo.string.trim(_391[1]);
}
if(!_38f){
_38f=tevt;
}
var tf=function(){
var ntf=new String(_38f);
return function(evt){
if(_385[ntf]){
_385[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_387,tevt,tf,false,true);
}
}
for(var y=0;y<_382.length;y++){
var _395=_387.getAttribute(_382[y]);
if((_395)&&(_395.length)){
var _38f=null;
var _396=_382[y].substr(4);
_38f=dojo.string.trim(_395);
var tf=function(){
var ntf=new String(_38f);
return function(evt){
if(_385[ntf]){
_385[ntf](dojo.event.browser.fixEvent(evt));
}
};
}();
dojo.event.browser.addListener(_387,_396,tf,false,true);
}
}
var _399=_387.getAttribute(this.onBuildProperty);
if(_399){
eval("var node = baseNode; var widget = targetObj; "+_399);
}
_387.id="";
}
};
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.widget.buildAndAttachTemplate=function(obj,_3a2,_3a3,_3a4,_3a5){
this.buildFromTemplate(obj,_3a2,_3a3,_3a4);
var node=dojo.dom.createNodesFromText(obj.templateString,true)[0];
this.attachTemplateNodes(node,_3a5||obj,dojo.widget.getDojoEventsFromStr(_3a4));
return node;
};
dojo.widget.DomWidget=function(){
dojo.widget.Widget.call(this);
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
};
dojo.inherits(dojo.widget.DomWidget,dojo.widget.Widget);
dojo.lang.extend(dojo.widget.DomWidget,{templateNode:null,templateString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_3a7,_3a8,pos,ref,_3ab){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
this.addWidgetAsDirectChild(_3a7,_3a8,pos,ref,_3ab);
this.registerChild(_3a7);
}
return _3a7;
},addWidgetAsDirectChild:function(_3ac,_3ad,pos,ref,_3b0){
if((!this.containerNode)&&(!_3ad)){
this.containerNode=this.domNode;
}
var cn=(_3ad)?_3ad:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
ref=cn.lastChild;
}
if(!_3b0){
_3b0=0;
}
_3ac.domNode.setAttribute("dojoinsertionindex",_3b0);
if(!ref){
cn.appendChild(_3ac.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_3ac.domNode,ref.parentNode,_3b0);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_3ac.domNode);
}else{
dojo.dom.insertAtPosition(_3ac.domNode,cn,pos);
}
}
}
},registerChild:function(_3b2,_3b3){
_3b2.dojoInsertionIndex=_3b3;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<_3b3){
idx=i;
}
}
this.children.splice(idx+1,0,_3b2);
_3b2.parent=this;
_3b2.addedTo(this);
delete dojo.widget.manager.topWidgets[_3b2.widgetId];
},removeChild:function(_3b6){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_3b6){
this.children.splice(x,1);
break;
}
}
return _3b6;
},getFragNodeRef:function(frag){
if(!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,_3bb){
var _3bc=this.getFragNodeRef(frag);
if(_3bb&&(_3bb.snarfChildDomOutput||!_3bc)){
_3bb.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_3bc);
}else{
if(_3bc){
if(this.domNode&&(this.domNode!==_3bc)){
var _3bd=_3bc.parentNode.replaceChild(this.domNode,_3bc);
}
}
}
if(_3bb){
_3bb.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.isContainer){
var _3be=dojo.widget.getParser();
_3be.createComponents(frag,this);
}
},startResize:function(_3bf){
dj_unimplemented("dojo.widget.DomWidget.startResize");
},updateResize:function(_3c0){
dj_unimplemented("dojo.widget.DomWidget.updateResize");
},endResize:function(_3c1){
dj_unimplemented("dojo.widget.DomWidget.endResize");
},buildRendering:function(args,frag){
var ts=dojo.widget.DomWidget.templates[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 ts=dojo.widget.DomWidget.templates[this.widgetType];
if(ts){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _3c8=false;
var node=null;
var tstr=new String(this.templateString);
if((!this.templateNode)&&(this.templateString)){
_3c8=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_3c8){
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<_3c8.length;i++){
var key=_3c8[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?this[key.substring(5)]:hash[key];
var _3cf;
if((kval)||(dojo.lang.isString(kval))){
_3cf=(dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval;
tstr=tstr.replace(_3c8[i],_3cf);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
ts.node=this.templateNode;
}
}
if((!this.templateNode)&&(!_3c8)){
dojo.debug("weren't able to create template!");
return false;
}else{
if(!_3c8){
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(_3d1,_3d2){
if(!_3d2){
_3d2=this;
}
return dojo.widget.attachTemplateNodes(_3d1,_3d2,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
var _3d3=this.domNode.parentNode.removeChild(this.domNode);
delete _3d3;
}
catch(e){
}
},cleanUp:function(){
},getContainerHeight:function(){
return dojo.html.getInnerHeight(this.domNode.parentNode);
},getContainerWidth:function(){
return dojo.html.getInnerWidth(this.domNode.parentNode);
},createNodesFromText:function(){
dj_unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.widget.DomWidget.templates={};
dojo.provide("dojo.math");
dojo.math.degToRad=function(x){
return (x*Math.PI)/180;
};
dojo.math.radToDeg=function(x){
return (x*180)/Math.PI;
};
dojo.math.factorial=function(n){
if(n<1){
return 0;
}
var _3d7=1;
for(var i=1;i<=n;i++){
_3d7*=i;
}
return _3d7;
};
dojo.math.permutations=function(n,k){
if(n==0||k==0){
return 1;
}
return (dojo.math.factorial(n)/dojo.math.factorial(n-k));
};
dojo.math.combinations=function(n,r){
if(n==0||r==0){
return 1;
}
return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r)));
};
dojo.math.bernstein=function(t,n,i){
return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i));
};
dojo.math.gaussianRandom=function(){
var k=2;
do{
var i=2*Math.random()-1;
var j=2*Math.random()-1;
k=i*i+j*j;
}while(k>=1);
k=Math.sqrt((-2*Math.log(k))/k);
return i*k;
};
dojo.math.mean=function(){
var _3e3=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_3e3.length;i++){
mean+=_3e3[i];
}
return mean/_3e3.length;
};
dojo.math.round=function(_3e6,_3e7){
if(!_3e7){
var _3e8=1;
}else{
var _3e8=Math.pow(10,_3e7);
}
return Math.round(_3e6*_3e8)/_3e8;
};
dojo.math.sd=function(){
var _3e9=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_3e9));
};
dojo.math.variance=function(){
var _3ea=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,squares=0;
for(var i=0;i<_3ea.length;i++){
mean+=_3ea[i];
squares+=Math.pow(_3ea[i],2);
}
return (squares/_3ea.length)-Math.pow(mean/_3ea.length,2);
};
dojo.provide("dojo.graphics.color");
dojo.require("dojo.lang");
dojo.require("dojo.string");
dojo.require("dojo.math");
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.lang.extend(dojo.graphics.color.Color,{toRgb:function(_3f2){
if(_3f2){
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();
},toHsv:function(){
return dojo.graphics.color.rgb2hsv(this.toRgb());
},toHsl:function(){
return dojo.graphics.color.rgb2hsl(this.toRgb());
},blend:function(_3f3,_3f4){
return dojo.graphics.color.blend(this.toRgb(),new Color(_3f3).toRgb(),_3f4);
}});
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,_3f7){
if(typeof a=="string"){
return dojo.graphics.color.blendHex(a,b,_3f7);
}
if(!_3f7){
_3f7=0;
}else{
if(_3f7>1){
_3f7=1;
}else{
if(_3f7<-1){
_3f7=-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*_3f7));
}
return c;
};
dojo.graphics.color.blendHex=function(a,b,_3fd){
return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_3fd));
};
dojo.graphics.color.extractRGB=function(_3fe){
var hex="0123456789abcdef";
_3fe=_3fe.toLowerCase();
if(_3fe.indexOf("rgb")==0){
var _400=_3fe.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_400.splice(1,3);
return ret;
}else{
var _402=dojo.graphics.color.hex2rgb(_3fe);
if(_402){
return _402;
}else{
return dojo.graphics.color.named[_3fe]||[255,255,255];
}
}
};
dojo.graphics.color.hex2rgb=function(hex){
var _404="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_404+"]","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]=_404.indexOf(rgb[i].charAt(0))*16+_404.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;
}
return ["#",dojo.string.pad(r.toString(16),2),dojo.string.pad(g.toString(16),2),dojo.string.pad(b.toString(16),2)].join("");
};
dojo.graphics.color.rgb2hsv=function(r,g,b){
if(dojo.lang.isArray(r)){
b=r[2]||0;
g=r[1]||0;
r=r[0]||0;
}
var h=null;
var s=null;
var v=null;
var min=Math.min(r,g,b);
v=Math.max(r,g,b);
var _411=v-min;
s=(v==0)?0:_411/v;
if(s==0){
h=0;
}else{
if(r==v){
h=60*(g-b)/_411;
}else{
if(g==v){
h=120+60*(b-r)/_411;
}else{
if(b==v){
h=240+60*(r-g)/_411;
}
}
}
if(h<0){
h+=360;
}
}
h=(h==0)?360:Math.ceil((h/360)*255);
s=Math.ceil(s*255);
return [h,s,v];
};
dojo.graphics.color.hsv2rgb=function(h,s,v){
if(dojo.lang.isArray(h)){
v=h[2]||0;
s=h[1]||0;
h=h[0]||0;
}
h=(h/255)*360;
if(h==360){
h=0;
}
s=s/255;
v=v/255;
var r=null;
var g=null;
var b=null;
if(s==0){
r=v;
g=v;
b=v;
}else{
var _418=h/60;
var i=Math.floor(_418);
var f=_418-i;
var p=v*(1-s);
var q=v*(1-(s*f));
var t=v*(1-(s*(1-f)));
switch(i){
case 0:
r=v;
g=t;
b=p;
break;
case 1:
r=q;
g=v;
b=p;
break;
case 2:
r=p;
g=v;
b=t;
break;
case 3:
r=p;
g=q;
b=v;
break;
case 4:
r=t;
g=p;
b=v;
break;
case 5:
r=v;
g=p;
b=q;
break;
}
}
r=Math.ceil(r*255);
g=Math.ceil(g*255);
b=Math.ceil(b*255);
return [r,g,b];
};
dojo.graphics.color.rgb2hsl=function(r,g,b){
if(dojo.lang.isArray(r)){
b=r[2]||0;
g=r[1]||0;
r=r[0]||0;
}
r/=255;
g/=255;
b/=255;
var h=null;
var s=null;
var l=null;
var min=Math.min(r,g,b);
var max=Math.max(r,g,b);
var _426=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_426/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_426>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_426;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_426);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_426);
}
h*=60;
}
h=(h==0)?360:Math.ceil((h/360)*255);
s=Math.ceil(s*255);
l=Math.ceil(l*255);
return [h,s,l];
};
dojo.graphics.color.hsl2rgb=function(h,s,l){
if(dojo.lang.isArray(h)){
l=h[2]||0;
s=h[1]||0;
h=h[0]||0;
}
h=(h/255)*360;
if(h==360){
h=0;
}
s=s/255;
l=l/255;
while(h<0){
h+=360;
}
while(h>360){
h-=360;
}
if(h<120){
r=(120-h)/60;
g=h/60;
b=0;
}else{
if(h<240){
r=0;
g=(240-h)/60;
b=(h-120)/60;
}else{
r=(h-240)/60;
g=0;
b=(360-h)/60;
}
}
r=Math.min(r,1);
g=Math.min(g,1);
b=Math.min(b,1);
r=2*s*r+(1-s);
g=2*s*g+(1-s);
b=2*s*b+(1-s);
if(l<0.5){
r=l*r;
g=l*g;
b=l*b;
}else{
r=(1-l)*r+2*l-1;
g=(1-l)*g+2*l-1;
b=(1-l)*b+2*l-1;
}
r=Math.ceil(r*255);
g=Math.ceil(g*255);
b=Math.ceil(b*255);
return [r,g,b];
};
dojo.provide("dojo.style");
dojo.require("dojo.dom");
dojo.require("dojo.uri.Uri");
dojo.require("dojo.graphics.color");
dojo.style.boxSizing={marginBox:"margin-box",borderBox:"border-box",paddingBox:"padding-box",contentBox:"content-box"};
dojo.style.getBoxSizing=function(node){
if(dojo.render.html.ie||dojo.render.html.opera){
var cm=document["compatMode"];
if(cm=="BackCompat"||cm=="QuirksMode"){
return dojo.style.boxSizing.borderBox;
}else{
return dojo.style.boxSizing.contentBox;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _42c=dojo.style.getStyle(node,"-moz-box-sizing");
if(!_42c){
_42c=dojo.style.getStyle(node,"box-sizing");
}
return (_42c?_42c:dojo.style.boxSizing.contentBox);
}
};
dojo.style.isBorderBox=function(node){
return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox);
};
dojo.style.getUnitValue=function(_42e,_42f,_430){
var _431={value:0,units:"px"};
var s=dojo.style.getComputedStyle(_42e,_42f);
if(s==""||(s=="auto"&&_430)){
return _431;
}
if(dojo.lang.isUndefined(s)){
_431.value=NaN;
}else{
var _433=s.match(/([\d.]+)([a-z%]*)/i);
if(!_433){
_431.value=NaN;
}else{
_431.value=Number(_433[1]);
_431.units=_433[2].toLowerCase();
}
}
return _431;
};
dojo.style.getPixelValue=function(_434,_435,_436){
var _437=dojo.style.getUnitValue(_434,_435,_436);
if(isNaN(_437.value)||(_437.value&&_437.units!="px")){
return NaN;
}
return _437.value;
};
dojo.style.getNumericStyle=dojo.style.getPixelValue;
dojo.style.isPositionAbsolute=function(node){
return (dojo.style.getComputedStyle(node,"position")=="absolute");
};
dojo.style.getMarginWidth=function(node){
var _43a=dojo.style.isPositionAbsolute(node);
var left=dojo.style.getPixelValue(node,"margin-left",_43a);
var _43c=dojo.style.getPixelValue(node,"margin-right",_43a);
return left+_43c;
};
dojo.style.getBorderWidth=function(node){
var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width"));
var _43f=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width"));
return left+_43f;
};
dojo.style.getPaddingWidth=function(node){
var left=dojo.style.getPixelValue(node,"padding-left",true);
var _442=dojo.style.getPixelValue(node,"padding-right",true);
return left+_442;
};
dojo.style.getContentWidth=function(node){
return node.offsetWidth-dojo.style.getPaddingWidth(node)-dojo.style.getBorderWidth(node);
};
dojo.style.getInnerWidth=function(node){
return node.offsetWidth;
};
dojo.style.getOuterWidth=function(node){
return dojo.style.getInnerWidth(node)+dojo.style.getMarginWidth(node);
};
dojo.style.setOuterWidth=function(node,_447){
if(!dojo.style.isBorderBox(node)){
_447-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
_447-=dojo.style.getMarginWidth(node);
if(!isNaN(_447)&&_447>0){
node.style.width=_447+"px";
return true;
}else{
return false;
}
};
dojo.style.getContentBoxWidth=dojo.style.getContentWidth;
dojo.style.getBorderBoxWidth=dojo.style.getInnerWidth;
dojo.style.getMarginBoxWidth=dojo.style.getOuterWidth;
dojo.style.setMarginBoxWidth=dojo.style.setOuterWidth;
dojo.style.getMarginHeight=function(node){
var _449=dojo.style.isPositionAbsolute(node);
var top=dojo.style.getPixelValue(node,"margin-top",_449);
var _44b=dojo.style.getPixelValue(node,"margin-bottom",_449);
return top+_44b;
};
dojo.style.getBorderHeight=function(node){
var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width"));
var _44e=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width"));
return top+_44e;
};
dojo.style.getPaddingHeight=function(node){
var top=dojo.style.getPixelValue(node,"padding-top",true);
var _451=dojo.style.getPixelValue(node,"padding-bottom",true);
return top+_451;
};
dojo.style.getContentHeight=function(node){
return node.offsetHeight-dojo.style.getPaddingHeight(node)-dojo.style.getBorderHeight(node);
};
dojo.style.getInnerHeight=function(node){
return node.offsetHeight;
};
dojo.style.getOuterHeight=function(node){
return dojo.style.getInnerHeight(node)+dojo.style.getMarginHeight(node);
};
dojo.style.setOuterHeight=function(node,_456){
if(!dojo.style.isBorderBox(node)){
_456-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
_456-=dojo.style.getMarginHeight(node);
if(!isNaN(_456)&&_456>0){
node.style.height=_456+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentWidth=function(node,_458){
if(dojo.style.isBorderBox(node)){
_458+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node);
}
if(!isNaN(_458)&&_458>0){
node.style.width=_458+"px";
return true;
}else{
return false;
}
};
dojo.style.setContentHeight=function(node,_45a){
if(dojo.style.isBorderBox(node)){
_45a+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node);
}
if(!isNaN(_45a)&&_45a>0){
node.style.height=_45a+"px";
return true;
}else{
return false;
}
};
dojo.style.getContentBoxHeight=dojo.style.getContentHeight;
dojo.style.getBorderBoxHeight=dojo.style.getInnerHeight;
dojo.style.getMarginBoxHeight=dojo.style.getOuterHeight;
dojo.style.setMarginBoxHeight=dojo.style.setOuterHeight;
dojo.style.getTotalOffset=function(node,type,_45d){
var _45e=(type=="top")?"offsetTop":"offsetLeft";
var _45f=(type=="top")?"scrollTop":"scrollLeft";
var alt=(type=="top")?"y":"x";
var ret=0;
if(node["offsetParent"]){
if(_45d&&node.parentNode!=document.body){
ret-=dojo.style.sumAncestorProperties(node,_45f);
}
do{
ret+=node[_45e];
node=node.offsetParent;
}while(node!=document.getElementsByTagName("body")[0].parentNode&&node!=null);
}else{
if(node[alt]){
ret+=node[alt];
}
}
return ret;
};
dojo.style.sumAncestorProperties=function(node,prop){
if(!node){
return 0;
}
var _464=0;
while(node){
var val=node[prop];
if(val){
_464+=val-0;
}
node=node.parentNode;
}
return _464;
};
dojo.style.totalOffsetLeft=function(node,_467){
return dojo.style.getTotalOffset(node,"left",_467);
};
dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft;
dojo.style.totalOffsetTop=function(node,_469){
return dojo.style.getTotalOffset(node,"top",_469);
};
dojo.style.getAbsoluteY=dojo.style.totalOffsetTop;
dojo.style.getAbsolutePosition=function(node,_46b){
var _46c=[dojo.style.getAbsoluteX(node,_46b),dojo.style.getAbsoluteY(node,_46b)];
_46c.x=_46c[0];
_46c.y=_46c[1];
return _46c;
};
dojo.style.styleSheet=null;
dojo.style.insertCssRule=function(_46d,_46e,_46f){
if(!dojo.style.styleSheet){
if(document.createStyleSheet){
dojo.style.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.style.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.style.styleSheet.cssRules){
_46f=dojo.style.styleSheet.cssRules.length;
}else{
if(dojo.style.styleSheet.rules){
_46f=dojo.style.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.style.styleSheet.insertRule){
var rule=_46d+" { "+_46e+" }";
return dojo.style.styleSheet.insertRule(rule,_46f);
}else{
if(dojo.style.styleSheet.addRule){
return dojo.style.styleSheet.addRule(_46d,_46e,_46f);
}else{
return null;
}
}
};
dojo.style.removeCssRule=function(_471){
if(!dojo.style.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_471){
_471=dojo.style.styleSheet.rules.length;
dojo.style.styleSheet.removeRule(_471);
}
}else{
if(document.styleSheets[0]){
if(!_471){
_471=dojo.style.styleSheet.cssRules.length;
}
dojo.style.styleSheet.deleteRule(_471);
}
}
return true;
};
dojo.style.insertCssFile=function(URI,doc,_474){
if(!URI){
return;
}
if(!doc){
doc=document;
}
if(doc.baseURI){
URI=new dojo.uri.Uri(doc.baseURI,URI);
}
if(_474&&doc.styleSheets){
var loc=location.href.split("#")[0].substring(0,location.href.indexOf(location.pathname));
for(var i=0;i<doc.styleSheets.length;i++){
if(doc.styleSheets[i].href&&URI.toString()==new dojo.uri.Uri(doc.styleSheets[i].href.toString())){
return;
}
}
}
var file=doc.createElement("link");
file.setAttribute("type","text/css");
file.setAttribute("rel","stylesheet");
file.setAttribute("href",URI);
var head=doc.getElementsByTagName("head")[0];
if(head){
head.appendChild(file);
}
};
dojo.style.getBackgroundColor=function(node){
var _47a;
do{
_47a=dojo.style.getStyle(node,"background-color");
if(_47a.toLowerCase()=="rgba(0, 0, 0, 0)"){
_47a="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(_47a,["transparent",""]));
if(_47a=="transparent"){
_47a=[255,255,255,0];
}else{
_47a=dojo.graphics.color.extractRGB(_47a);
}
return _47a;
};
dojo.style.getComputedStyle=function(_47b,_47c,_47d){
var _47e=_47d;
if(_47b.style.getPropertyValue){
_47e=_47b.style.getPropertyValue(_47c);
}
if(!_47e){
if(document.defaultView){
_47e=document.defaultView.getComputedStyle(_47b,"").getPropertyValue(_47c);
}else{
if(_47b.currentStyle){
_47e=_47b.currentStyle[dojo.style.toCamelCase(_47c)];
}
}
}
return _47e;
};
dojo.style.getStyle=function(_47f,_480){
var _481=dojo.style.toCamelCase(_480);
var _482=_47f.style[_481];
return (_482?_482:dojo.style.getComputedStyle(_47f,_480,_482));
};
dojo.style.toCamelCase=function(_483){
var arr=_483.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.style.toSelectorCase=function(_486){
return _486.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.style.setOpacity=function setOpacity(node,_488,_489){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_489){
if(_488>=1){
if(h.ie){
dojo.style.clearOpacity(node);
return;
}else{
_488=0.999999;
}
}else{
if(_488<0){
_488=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="+_488*100+")";
}
}
node.style.filter="Alpha(Opacity="+_488*100+")";
}else{
if(h.moz){
node.style.opacity=_488;
node.style.MozOpacity=_488;
}else{
if(h.safari){
node.style.opacity=_488;
node.style.KhtmlOpacity=_488;
}else{
node.style.opacity=_488;
}
}
}
};
dojo.style.getOpacity=function getOpacity(node){
if(dojo.render.html.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.style.clearOpacity=function clearOpacity(node){
var h=dojo.render.html;
if(h.ie){
if(node.filters&&node.filters.alpha){
node.style.filter="";
}
}else{
if(h.moz){
node.style.opacity=1;
node.style.MozOpacity=1;
}else{
if(h.safari){
node.style.opacity=1;
node.style.KhtmlOpacity=1;
}else{
node.style.opacity=1;
}
}
}
};
dojo.provide("dojo.html");
dojo.require("dojo.dom");
dojo.require("dojo.style");
dojo.require("dojo.string");
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)&&(document.selection.clear)){
document.selection.clear();
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_491){
_491=_491||dojo.html.body();
var h=dojo.render.html;
if(h.mozilla){
_491.style.MozUserSelect="none";
}else{
if(h.safari){
_491.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_491.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_493){
_493=_493||dojo.html.body();
var h=dojo.render.html;
if(h.mozilla){
_493.style.MozUserSelect="";
}else{
if(h.safari){
_493.style.KhtmlUserSelect="";
}else{
if(h.ie){
_493.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_495){
if(document.selection&&dojo.html.body().createTextRange){
var _496=dojo.html.body().createTextRange();
_496.moveToElementText(_495);
_496.select();
}else{
if(window["getSelection"]){
var _497=window.getSelection();
if(_497["selectAllChildren"]){
_497.selectAllChildren(_495);
}
}
}
};
dojo.html.isSelectionCollapsed=function(){
if(document["selection"]){
return document.selection.createRange().text=="";
}else{
if(window["getSelection"]){
var _498=window.getSelection();
if(dojo.lang.isString(_498)){
return _498=="";
}else{
return _498.isCollapsed;
}
}
}
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=window.event||{};
}
if(evt.srcElement){
return evt.srcElement;
}else{
if(evt.target){
return evt.target;
}
}
return null;
};
dojo.html.getScrollTop=function(){
return document.documentElement.scrollTop||dojo.html.body().scrollTop||0;
};
dojo.html.getScrollLeft=function(){
return document.documentElement.scrollLeft||dojo.html.body().scrollLeft||0;
};
dojo.html.getDocumentWidth=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
return dojo.html.getViewportWidth();
};
dojo.html.getDocumentHeight=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
return dojo.html.getViewportHeight();
};
dojo.html.getDocumentSize=function(){
dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*");
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.getScrollOffset=function(){
var ret=[0,0];
if(window.pageYOffset){
ret=[window.pageXOffset,window.pageYOffset];
}else{
if(dojo.exists(document,"documentElement.scrollTop")){
ret=[document.documentElement.scrollLeft,document.documentElement.scrollTop];
}else{
if(document.body){
ret=[document.body.scrollLeft,document.body.scrollTop];
}
}
}
ret.x=ret[0];
ret.y=ret[1];
return ret;
};
dojo.html.getParentOfType=function(node,type){
dojo.deprecated("dojo.html.getParentOfType has been deprecated in favor of dojo.html.getParentByType*");
return dojo.html.getParentByType(node,type);
};
dojo.html.getParentByType=function(node,type){
var _4a2=node;
type=type.toLowerCase();
while((_4a2)&&(_4a2.nodeName.toLowerCase()!=type)){
if(_4a2==(document["body"]||document["documentElement"])){
return null;
}
_4a2=_4a2.parentNode;
}
return _4a2;
};
dojo.html.getAttribute=function(node,attr){
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
return dojo.html.getAttribute(node,attr)?true:false;
};
dojo.html.getClass=function(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,_4ae){
return dojo.lang.inArray(dojo.html.getClasses(node),_4ae);
};
dojo.html.prependClass=function(node,_4b0){
if(!node){
return false;
}
_4b0+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_4b0);
};
dojo.html.addClass=function(node,_4b2){
if(!node){
return false;
}
if(dojo.html.hasClass(node,_4b2)){
return false;
}
_4b2=dojo.string.trim(dojo.html.getClass(node)+" "+_4b2);
return dojo.html.setClass(node,_4b2);
};
dojo.html.setClass=function(node,_4b4){
if(!node){
return false;
}
var cs=new String(_4b4);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_4b4);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_4b7,_4b8){
if(!node){
return false;
}
var _4b7=dojo.string.trim(new String(_4b7));
try{
var cs=dojo.html.getClasses(node);
var nca=[];
if(_4b8){
for(var i=0;i<cs.length;i++){
if(cs[i].indexOf(_4b7)==-1){
nca.push(cs[i]);
}
}
}else{
for(var i=0;i<cs.length;i++){
if(cs[i]!=_4b7){
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,_4bd,_4be){
dojo.html.removeClass(node,_4be);
dojo.html.addClass(node,_4bd);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_4bf,_4c0,_4c1,_4c2){
if(!_4c0){
_4c0=document;
}
var _4c3=_4bf.split(/\s+/g);
var _4c4=[];
if(_4c2!=1&&_4c2!=2){
_4c2=0;
}
var _4c5=new RegExp("(\\s|^)(("+_4c3.join(")|(")+"))(\\s|$)");
if(!_4c1){
_4c1="*";
}
var _4c6=_4c0.getElementsByTagName(_4c1);
outer:
for(var i=0;i<_4c6.length;i++){
var node=_4c6[i];
var _4c9=dojo.html.getClasses(node);
if(nodesClasses.length==0){
continue outer;
}
var _4ca=0;
for(var j=0;j<_4c9.length;j++){
if(_4c5.test(_4c9[j])){
if(_4c2==dojo.html.classMatchType.ContainsAny){
_4c4.push(node);
continue outer;
}else{
_4ca++;
}
}else{
if(_4c2==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_4ca==_4c3.length){
if(_4c2==dojo.html.classMatchType.IsOnly&&_4ca==_4c9.length){
_4c4.push(node);
}else{
if(_4c2==dojo.html.classMatchType.ContainsAll){
_4c4.push(node);
}
}
}
}
return _4c4;
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.gravity=function(node,e){
var _4ce=e.pageX||e.clientX+dojo.html.body().scrollLeft;
var _4cf=e.pageY||e.clientY+dojo.html.body().scrollTop;
with(dojo.html){
var _4d0=getAbsoluteX(node)+(getInnerWidth(node)/2);
var _4d1=getAbsoluteY(node)+(getInnerHeight(node)/2);
}
with(dojo.html.gravity){
return ((_4ce<_4d0?WEST:EAST)|(_4cf<_4d1?NORTH:SOUTH));
}
};
dojo.html.gravity.NORTH=1;
dojo.html.gravity.SOUTH=1<<1;
dojo.html.gravity.EAST=1<<2;
dojo.html.gravity.WEST=1<<3;
dojo.html.overElement=function(_4d2,e){
var _4d4=e.pageX||e.clientX+dojo.html.body().scrollLeft;
var _4d5=e.pageY||e.clientY+dojo.html.body().scrollTop;
with(dojo.html){
var top=getAbsoluteY(_4d2);
var _4d7=top+getInnerHeight(_4d2);
var left=getAbsoluteX(_4d2);
var _4d9=left+getInnerWidth(_4d2);
}
return (_4d4>=left&&_4d4<=_4d9&&_4d5>=top&&_4d5<=_4d7);
};
dojo.html.renderedTextContent=function(node){
var _4db="";
if(node==null){
return _4db;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _4dd="unknown";
try{
_4dd=dojo.style.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_4dd){
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":
_4db+="\n";
_4db+=dojo.html.renderedTextContent(node.childNodes[i]);
_4db+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_4db+="\n";
}else{
_4db+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _4df="unknown";
try{
_4df=dojo.style.getStyle(node,"text-transform");
}
catch(E){
}
switch(_4df){
case "capitalize":
text=dojo.string.capitalize(text);
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_4df){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_4db)){
text.replace(/^\s/,"");
}
break;
}
_4db+=text;
break;
default:
break;
}
}
return _4db;
};
dojo.html.setActiveStyleSheet=function(_4e0){
var i,a,main;
for(i=0;(a=document.getElementsByTagName("link")[i]);i++){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_4e0){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);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,a;
for(i=0;(a=document.getElementsByTagName("link")[i]);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.createNodesFromText=function(txt,wrap){
var tn=document.createElement("div");
tn.style.visibility="hidden";
document.body.appendChild(tn);
tn.innerHTML=txt;
tn.normalize();
if(wrap){
var ret=[];
var fc=tn.firstChild;
ret[0]=((fc.nodeValue==" ")||(fc.nodeValue=="\t"))?fc.nextSibling:fc;
document.body.removeChild(tn);
return ret;
}
var _4e9=[];
for(var x=0;x<tn.childNodes.length;x++){
_4e9.push(tn.childNodes[x].cloneNode(true));
}
tn.style.display="none";
document.body.removeChild(tn);
return _4e9;
};
if(!dojo.evalObjPath("dojo.dom.createNodesFromText")){
dojo.dom.createNodesFromText=function(){
dojo.deprecated("dojo.dom.createNodesFromText","use dojo.html.createNodesFromText instead");
return dojo.html.createNodesFromText.apply(dojo.html,arguments);
};
}
dojo.html.isVisible=function(node){
return dojo.style.getComputedStyle(node||this.domNode,"display")!="none";
};
dojo.html.show=function(node){
if(node.style){
node.style.display=dojo.lang.inArray(["tr","td","th"],node.tagName.toLowerCase())?"":"block";
}
};
dojo.html.hide=function(node){
if(node.style){
node.style.display="none";
}
};
dojo.html.toCoordinateArray=function(_4ee,_4ef){
if(dojo.lang.isArray(_4ee)){
while(_4ee.length<4){
_4ee.push(0);
}
while(_4ee.length>4){
_4ee.pop();
}
var ret=_4ee;
}else{
var node=dojo.byId(_4ee);
var ret=[dojo.html.getAbsoluteX(node,_4ef),dojo.html.getAbsoluteY(node,_4ef),dojo.html.getInnerWidth(node),dojo.html.getInnerHeight(node)];
}
ret.x=ret[0];
ret.y=ret[1];
ret.w=ret[2];
ret.h=ret[3];
return ret;
};
dojo.html.placeOnScreen=function(node,_4f3,_4f4,_4f5,_4f6){
if(dojo.lang.isArray(_4f3)){
_4f6=_4f5;
_4f5=_4f4;
_4f4=_4f3[1];
_4f3=_4f3[0];
}
if(!isNaN(_4f5)){
_4f5=[Number(_4f5),Number(_4f5)];
}else{
if(!dojo.lang.isArray(_4f5)){
_4f5=[0,0];
}
}
var _4f7=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth+_4f5[0];
var h=node.offsetHeight+_4f5[1];
if(_4f6){
_4f3-=_4f7.x;
_4f4-=_4f7.y;
}
var x=_4f3+w;
if(x>view.w){
x=view.w-w;
}else{
x=_4f3;
}
x=Math.max(_4f5[0],x)+_4f7.x;
var y=_4f4+h;
if(y>view.h){
y=view.h-h;
}else{
y=_4f4;
}
y=Math.max(_4f5[1],y)+_4f7.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,_4ff,_500,_501,_502){
if(dojo.lang.isArray(_4ff)){
_502=_501;
_501=_500;
_500=_4ff[1];
_4ff=_4ff[0];
}
var _503=dojo.html.getScrollOffset();
var view=dojo.html.getViewportSize();
node=dojo.byId(node);
var w=node.offsetWidth;
var h=node.offsetHeight;
if(_502){
_4ff-=_503.x;
_500-=_503.y;
}
var x=-1,y=-1;
if(_4ff+w<=view.w&&_500+h<=view.h){
x=_4ff;
y=_500;
}
if((x<0||y<0)&&_4ff<=view.w&&_500+h<=view.h){
x=_4ff-w;
y=_500;
}
if((x<0||y<0)&&_4ff+w<=view.w&&_500<=view.h){
x=_4ff;
y=_500-h;
}
if((x<0||y<0)&&_4ff<=view.w&&_500<=view.h){
x=_4ff-w;
y=_500-h;
}
if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){
return dojo.html.placeOnScreen(node,_4ff,_500,_501,_502);
}
x+=_503.x;
y+=_503.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(){
if(this.ie){
this.iframe=document.createElement("<iframe frameborder='0' src='about:blank'>");
var s=this.iframe.style;
s.position="absolute";
s.left=s.top="0px";
s.zIndex=2;
s.display="none";
dojo.style.setOpacity(this.iframe,0);
dojo.html.body().appendChild(this.iframe);
}else{
this.enabled=false;
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{ie:dojo.render.html.ie,enabled:true,visibile:false,iframe:null,sizeNode:null,sizeCoords:null,size:function(node){
if(!this.ie||!this.enabled){
return;
}
if(dojo.dom.isNode(node)){
this.sizeNode=node;
}else{
if(arguments.length>0){
this.sizeNode=null;
this.sizeCoords=node;
}
}
this.update();
},update:function(){
if(!this.ie||!this.enabled){
return;
}
if(this.sizeNode){
this.sizeCoords=dojo.html.toCoordinateArray(this.sizeNode,true);
}else{
if(this.sizeCoords){
this.sizeCoords=dojo.html.toCoordinateArray(this.sizeCoords,true);
}else{
return;
}
}
var s=this.iframe.style;
var dims=this.sizeCoords;
s.width=dims.w+"px";
s.height=dims.h+"px";
s.left=dims.x+"px";
s.top=dims.y+"px";
},setZIndex:function(node){
if(!this.ie||!this.enabled){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.zIndex=node;
}
}
},show:function(node){
if(!this.ie||!this.enabled){
return;
}
this.size(node);
this.iframe.style.display="block";
},hide:function(){
if(!this.ie){
return;
}
var s=this.iframe.style;
s.display="none";
s.width=s.height="1px";
},remove:function(){
dojo.dom.removeNode(this.iframe);
}});
dojo.provide("dojo.widget.HtmlWidget");
dojo.require("dojo.widget.DomWidget");
dojo.require("dojo.html");
dojo.require("dojo.string");
dojo.widget.HtmlWidget=function(args){
dojo.widget.DomWidget.call(this);
};
dojo.inherits(dojo.widget.HtmlWidget,dojo.widget.DomWidget);
dojo.lang.extend(dojo.widget.HtmlWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,allowResizeX:true,allowResizeY:true,resizeGhost:null,initialResizeCoords:null,toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
dojo.lang.mixin(this,dojo.widget.HtmlWidget.Toggle[dojo.string.capitalize(this.toggle)]||dojo.widget.HtmlWidget.Toggle.Plain);
},getContainerHeight:function(){
dj_unimplemented("dojo.widget.HtmlWidget.getContainerHeight");
},getContainerWidth:function(){
return this.parent.domNode.offsetWidth;
},setNativeHeight:function(_515){
var ch=this.getContainerHeight();
},startResize:function(_517){
_517.offsetLeft=dojo.html.totalOffsetLeft(this.domNode);
_517.offsetTop=dojo.html.totalOffsetTop(this.domNode);
_517.innerWidth=dojo.html.getInnerWidth(this.domNode);
_517.innerHeight=dojo.html.getInnerHeight(this.domNode);
if(!this.resizeGhost){
this.resizeGhost=document.createElement("div");
var rg=this.resizeGhost;
rg.style.position="absolute";
rg.style.backgroundColor="white";
rg.style.border="1px solid black";
dojo.html.setOpacity(rg,0.3);
dojo.html.body().appendChild(rg);
}
with(this.resizeGhost.style){
left=_517.offsetLeft+"px";
top=_517.offsetTop+"px";
}
this.initialResizeCoords=_517;
this.resizeGhost.style.display="";
this.updateResize(_517,true);
},updateResize:function(_519,_51a){
var dx=_519.x-this.initialResizeCoords.x;
var dy=_519.y-this.initialResizeCoords.y;
with(this.resizeGhost.style){
if((this.allowResizeX)||(_51a)){
width=this.initialResizeCoords.innerWidth+dx+"px";
}
if((this.allowResizeY)||(_51a)){
height=this.initialResizeCoords.innerHeight+dy+"px";
}
}
},endResize:function(_51d){
var dx=_51d.x-this.initialResizeCoords.x;
var dy=_51d.y-this.initialResizeCoords.y;
with(this.domNode.style){
if(this.allowResizeX){
width=this.initialResizeCoords.innerWidth+dx+"px";
}
if(this.allowResizeY){
height=this.initialResizeCoords.innerHeight+dy+"px";
}
}
this.resizeGhost.style.display="none";
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},_old_buildFromTemplate:dojo.widget.DomWidget.prototype.buildFromTemplate,buildFromTemplate:function(args,frag){
if(dojo.widget.DomWidget.templates[this.widgetType]){
var ot=dojo.widget.DomWidget.templates[this.widgetType];
dojo.widget.DomWidget.templates[this.widgetType]={};
}
dojo.widget.buildFromTemplate(this,args["templatePath"],args["templateCssPath"]);
this._old_buildFromTemplate(args,frag);
dojo.widget.DomWidget.templates[this.widgetType]=ot;
},destroyRendering:function(_525){
try{
var _526=this.domNode.parentNode.removeChild(this.domNode);
if(!_525){
dojo.event.browser.clean(_526);
}
delete _526;
}
catch(e){
}
},isVisible:function(){
return dojo.html.isVisible(this.domNode);
},doToggle:function(){
this.isVisible()?this.hide():this.show();
},show:function(){
this.showMe();
},onShow:function(){
},hide:function(){
this.hideMe();
},onHide:function(){
}});
dojo.widget.HtmlWidget.Toggle={};
dojo.widget.HtmlWidget.Toggle.Plain={showMe:function(){
dojo.html.show(this.domNode);
if(dojo.lang.isFunction(this.onShow)){
this.onShow();
}
},hideMe:function(){
dojo.html.hide(this.domNode);
if(dojo.lang.isFunction(this.onHide)){
this.onHide();
}
}};
dojo.widget.HtmlWidget.Toggle.Fade={showMe:function(){
dojo.fx.html.fadeShow(this.domNode,this.toggleDuration,dojo.lang.hitch(this,this.onShow));
},hideMe:function(){
dojo.fx.html.fadeHide(this.domNode,this.toggleDuration,dojo.lang.hitch(this,this.onHide));
}};
dojo.widget.HtmlWidget.Toggle.Wipe={showMe:function(){
dojo.fx.html.wipeIn(this.domNode,this.toggleDuration,dojo.lang.hitch(this,this.onShow));
},hideMe:function(){
dojo.fx.html.wipeOut(this.domNode,this.toggleDuration,dojo.lang.hitch(this,this.onHide));
}};
dojo.widget.HtmlWidget.Toggle.Explode={showMe:function(){
dojo.fx.html.explode(this.explodeSrc,this.domNode,this.toggleDuration,dojo.lang.hitch(this,this.onShow));
},hideMe:function(){
dojo.fx.html.implode(this.domNode,this.explodeSrc,this.toggleDuration,dojo.lang.hitch(this,this.onHide));
}};
dojo.hostenv.conditionalLoadModule({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"]});
dojo.hostenv.moduleLoaded("dojo.widget.*");
dojo.provide("dojo.widget.LayoutPane");
dojo.require("dojo.widget.*");
dojo.widget.tags.addParseTreeHandler("dojo:LayoutPane");
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_528,days,path,_52b,_52c){
var _52d=-1;
if(typeof days=="number"&&days>=0){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_52d=d.toGMTString();
}
_528=escape(_528);
document.cookie=name+"="+_528+";"+(_52d!=-1?" expires="+_52d+";":"")+(path?"path="+path:"")+(_52b?"; domain="+_52b:"")+(_52c?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.indexOf(name+"=");
if(idx==-1){
return null;
}
value=document.cookie.substring(idx+name.length+1);
var end=value.indexOf(";");
if(end==-1){
end=value.length;
}
value=value.substring(0,end);
value=unescape(value);
return value;
};
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,_537,_538,_539){
if(arguments.length==5){
_539=_537;
_537=null;
_538=null;
}
var _53a=[],cookie,value="";
if(!_539){
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){
_53a.push(escape(prop)+"="+escape(cookie[prop]));
}
value=_53a.join("&");
}
dojo.io.cookie.setCookie(name,value,days,path,_537,_538);
};
dojo.io.cookie.getObjectCookie=function(name){
var _53d=null,cookie=dojo.io.cookie.getCookie(name);
if(cookie){
_53d={};
var _53e=cookie.split("&");
for(var i=0;i<_53e.length;i++){
var pair=_53e[i].split("=");
var _541=pair[1];
if(isNaN(_541)){
_541=unescape(pair[1]);
}
_53d[unescape(pair[0])]=_541;
}
}
return _53d;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _542=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_542=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.hostenv.conditionalLoadModule({common:["dojo.io",false,false],rhino:["dojo.io.RhinoIO",false,false],browser:[["dojo.io.BrowserIO",false,false],["dojo.io.cookie",false,false]]});
dojo.hostenv.moduleLoaded("dojo.io.*");
dojo.provide("dojo.widget.Container");
dojo.provide("dojo.widget.html.Container");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.Container");
dojo.widget.html.Container=function(){
dojo.widget.HtmlWidget.call(this);
};
dojo.inherits(dojo.widget.html.Container,dojo.widget.HtmlWidget);
dojo.lang.extend(dojo.widget.html.Container,{widgetType:"Container",isContainer:true,containerNode:null,domNode:null,onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _544=this.children[i];
if(_544.onResized){
_544.onResized();
}
}
}});
dojo.widget.tags.addParseTreeHandler("dojo:Container");
dojo.provide("dojo.widget.LayoutPane");
dojo.provide("dojo.widget.html.LayoutPane");
dojo.require("dojo.widget.LayoutPane");
dojo.require("dojo.widget.*");
dojo.require("dojo.event.*");
dojo.require("dojo.io.*");
dojo.require("dojo.widget.Container");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.require("dojo.dom");
dojo.require("dojo.string");
dojo.widget.html.LayoutPane=function(){
dojo.widget.html.Container.call(this);
};
dojo.inherits(dojo.widget.html.LayoutPane,dojo.widget.html.Container);
dojo.lang.extend(dojo.widget.html.LayoutPane,{widgetType:"LayoutPane",isChild:false,clientLeft:0,clientTop:0,clientRect:{"left":0,"right":0,"top":0,"bottom":0},clientWidth:0,clientHeight:0,layoutAlign:"none",layoutChildPriority:"top-bottom",cssPath:dojo.uri.dojoUri("src/widget/templates/HtmlLayoutPane.css"),url:"inline",extractContent:true,parseContent:true,handler:"none",minWidth:0,minHeight:0,fillInTemplate:function(){
this.filterAllowed("layoutAlign",["none","left","top","right","bottom","client","flood"]);
this.filterAllowed("layoutChildPriority",["left-right","top-bottom"]);
dojo.style.insertCssFile(this.cssPath,null,true);
this.domNode.style.position="relative";
dojo.html.addClass(this.domNode,"dojoLayoutPane");
dojo.html.addClass(this.domNode,"dojoAlign"+dojo.string.capitalize(this.layoutAlign));
},postCreate:function(args,_546,_547){
for(var i=0;i<this.children.length;i++){
if(this.hasLayoutAlign(this.children[i])){
this.children[i].domNode.style.position="absolute";
this.children[i].isChild=true;
}
}
if(this.handler!="none"){
this.setHandler(this.handler);
}
if(this.isVisible()){
this.loadContents();
}
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.url!="inline"){
this._downloadExternalContent(this.url,true);
}
}
this.isLoaded=true;
},setUrl:function(url){
this.url=url;
this.isLoaded=false;
if(this.isVisible()){
this.loadContents();
}
},_downloadExternalContent:function(url,_54b){
var node=this.containerNode||this.domNode;
node.innerHTML="Loading...";
var _54d=this.extractContent;
var _54e=this.parseContent;
var self=this;
dojo.io.bind({url:url,useCache:_54b,mimetype:"text/html",handler:function(type,data,e){
if(type=="load"){
if(_54d){
var _553=data.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_553){
data=_553[1];
}
}
node.innerHTML=data;
if(_54e){
var _554=new dojo.xml.Parse();
var frag=_554.parseElement(node,null,true);
dojo.widget.getParser().createComponents(frag);
}
self.onResized();
}else{
node.innerHTML="Error loading '"+url+"' ("+e.status+" "+e.statusText+")";
}
}});
},setHandler:function(_556){
var fcn=dojo.lang.isFunction(_556)?_556:window[_556];
if(!dojo.lang.isFunction(fcn)){
throw new Error("Unable to set handler, '"+_556+"' not a function.");
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;
},filterAllowed:function(_558,_559){
if(!dojo.lang.inArray(_559,this[_558])){
this[_558]=_559[0];
}
},layoutChildren:function(){
var kids={"left":[],"right":[],"top":[],"bottom":[],"client":[],"flood":[]};
var hits=0;
for(var i=0;i<this.children.length;i++){
if(this.hasLayoutAlign(this.children[i])){
kids[this.children[i].layoutAlign].push(this.children[i]);
hits++;
}
}
if(!hits){
return;
}
var _55d=this.containerNode||this.domNode;
this.clientWidth=dojo.style.getContentWidth(_55d);
this.clientHeight=dojo.style.getContentHeight(_55d);
this.clientRect["left"]=dojo.style.getPixelValue(_55d,"padding-left",true);
this.clientRect["right"]=dojo.style.getPixelValue(_55d,"padding-right",true);
this.clientRect["top"]=dojo.style.getPixelValue(_55d,"padding-top",true);
this.clientRect["bottom"]=dojo.style.getPixelValue(_55d,"padding-bottom",true);
this.layoutCenter(kids,"flood");
if(this.layoutChildPriority=="top-bottom"){
this.layoutFloat(kids,"top");
this.layoutFloat(kids,"bottom");
this.layoutFloat(kids,"left");
this.layoutFloat(kids,"right");
}else{
this.layoutFloat(kids,"left");
this.layoutFloat(kids,"right");
this.layoutFloat(kids,"top");
this.layoutFloat(kids,"bottom");
}
this.layoutCenter(kids,"client");
},layoutFloat:function(kids,_55f){
var ary=kids[_55f];
var lr=(_55f=="right")?"right":"left";
var tb=(_55f=="bottom")?"bottom":"top";
for(var i=0;i<ary.length;i++){
var elm=ary[i];
elm.domNode.style[lr]=this.clientRect[lr]+"px";
elm.domNode.style[tb]=this.clientRect[tb]+"px";
if((_55f=="top")||(_55f=="bottom")){
dojo.style.setOuterWidth(elm.domNode,this.clientWidth);
var _565=dojo.style.getOuterHeight(elm.domNode);
this.clientHeight-=_565;
this.clientRect[_55f]+=_565;
}else{
dojo.style.setOuterHeight(elm.domNode,this.clientHeight);
var _566=dojo.style.getOuterWidth(elm.domNode);
this.clientWidth-=_566;
this.clientRect[_55f]+=_566;
}
}
},layoutCenter:function(kids,_568){
var ary=kids[_568];
for(var i=0;i<ary.length;i++){
var elm=ary[i];
elm.domNode.style.left=this.clientRect.left+"px";
elm.domNode.style.top=this.clientRect.top+"px";
dojo.style.setOuterWidth(elm.domNode,this.clientWidth);
dojo.style.setOuterHeight(elm.domNode,this.clientHeight);
}
},hasLayoutAlign:function(_56c){
return dojo.lang.inArray(["left","right","top","bottom","client","flood"],_56c.layoutAlign);
},addPane:function(pane){
pane.domNode.style.position="absolute";
pane.isChild=true;
this.addChild(pane);
this.resizeSoon();
},removePane:function(pane){
this.removeChild(pane);
dojo.dom.removeNode(pane.domNode);
this.resizeSoon();
},resizeSoon:function(){
if(this.isVisible()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
if(!this.isVisible()){
return;
}
this.layoutChildren();
this.notifyChildrenOfResize();
},resizeTo:function(w,h){
w=Math.max(w,this.getMinWidth());
h=Math.max(h,this.getMinHeight());
dojo.style.setOuterWidth(this.domNode,w);
dojo.style.setOuterHeight(this.domNode,h);
this.onResized();
},show:function(){
this.loadContents();
this.domNode.style.display="";
this.onResized();
this.domNode.style.display="none";
this.domNode.style.visibility="";
dojo.widget.html.LayoutPane.superclass.show.call(this);
},getMinWidth:function(){
var w=this.minWidth;
if((this.layoutAlign=="left")||(this.layoutAlign=="right")){
w=dojo.style.getOuterWidth(this.domNode);
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="left")||(a=="right")||(a=="client")){
if(dojo.lang.isFunction(ch.getMinWidth)){
w+=ch.getMinWidth();
}
}
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="top")||(a=="bottom")){
if(dojo.lang.isFunction(ch.getMinWidth)){
w=Math.max(w,ch.getMinWidth());
}
}
}
return w;
},getMinHeight:function(){
var h=this.minHeight;
if((this.layoutAlign=="top")||(this.layoutAlign=="bottom")){
h=dojo.style.getOuterHeight(this.domNode);
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="top")||(a=="bottom")||(a=="client")){
if(dojo.lang.isFunction(ch.getMinHeight)){
h+=ch.getMinHeight();
}
}
}
for(var i=0;i<this.children.length;i++){
var ch=this.children[i];
var a=ch.layoutAlign;
if((a=="left")||(a=="right")){
if(dojo.lang.isFunction(ch.getMinHeight)){
h=Math.max(h,ch.getMinHeight());
}
}
}
return h;
}});
dojo.provide("dojo.widget.FloatingPane");
dojo.provide("dojo.widget.html.FloatingPane");
dojo.require("dojo.widget.*");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.require("dojo.dom");
dojo.require("dojo.widget.LayoutPane");
dojo.widget.html.FloatingPane=function(){
dojo.widget.html.LayoutPane.call(this);
};
dojo.inherits(dojo.widget.html.FloatingPane,dojo.widget.html.LayoutPane);
dojo.lang.extend(dojo.widget.html.FloatingPane,{widgetType:"FloatingPane",title:"Untitled",iconSrc:"",hasShadow:false,constrainToContainer:false,taskBarId:"",resizable:true,url:"inline",extractContent:true,parseContent:true,resizable:false,fancyTitleBar:true,isContainer:true,containerNode:null,domNode:null,clientPane:null,dragBar:null,dragOrigin:null,posOrigin:null,maxPosition:null,templateCssPath:dojo.uri.dojoUri("src/widget/templates/HtmlFloatingPane.css"),titleBarBackground:dojo.uri.dojoUri("src/widget/templates/images/titlebar-bg.jpg"),isDragging:false,fillInTemplate:function(){
if(this.templateCssPath){
dojo.style.insertCssFile(this.templateCssPath,null,true);
}
dojo.html.addClass(this.domNode,"dojoFloatingPane");
var _579=document.createElement("div");
dojo.dom.moveChildren(this.domNode,_579,0);
dojo.html.addClass(_579,"dojoFloatingPaneClient");
this.clientPane=this.createPane(_579,{layoutAlign:"client",url:this.url,id:this.widgetId+"_client"});
delete this.url;
var _57a=document.createElement("div");
dojo.html.addClass(_57a,"dojoFloatingPaneDragbar");
this.dragBar=this.createPane(_57a,{layoutAlign:"top",id:this.widgetId+"_chrome"});
dojo.html.disableSelection(this.dragBar.domNode);
if(this.fancyTitleBar){
var img=document.createElement("img");
img.src=this.titleBarBackground,dojo.html.addClass(img,"dojoFloatingPaneDragbarBackground");
var _57c=dojo.widget.fromScript("LayoutPane",{layoutAlign:"flood",id:this.widgetId+"_titleBackground"},img);
this.dragBar.addPane(_57c);
}
var _57d=document.createElement("div");
dojo.html.addClass(_57d,"dojoFloatingPaneTitle");
dojo.html.disableSelection(_57d);
_57d.appendChild(document.createTextNode(this.title));
_57a.appendChild(_57d);
dojo.event.connect(this.dragBar.domNode,"onmousedown",this,"onMyDragStart");
if(this.resizable){
var _57e=document.createElement("div");
dojo.html.addClass(_57e,"dojoFloatingPaneResizebar");
var rh=dojo.widget.fromScript("ResizeHandle",{targetElmId:this.widgetId,id:this.widgetId+"_resize"});
this.resizePane=this.createPane(_57e,{layoutAlign:"bottom"});
this.resizePane.addChild(rh);
}
if(this.hasShadow){
this.shadow=document.createElement("div");
dojo.html.addClass(this.shadow,"dojoDropShadow");
this.shadow.style["z-index"]="-100";
dojo.style.setOpacity(this.shadow,0.5);
this.domNode.appendChild(this.shadow);
dojo.html.disableSelection(this.shadow);
dojo.style.setOpacity(this.domNode,1);
}
var _580=document.createElement("div");
dojo.html.addClass(_580,"dojoFloatingPaneBackground");
this.background=this.createPane(_580,{layoutAlign:"flood",id:this.widgetId+"_background"});
},postCreate:function(args,_582,_583){
var kids=this.children.concat();
this.children=[];
for(var i=0;i<kids.length;i++){
if(kids[i].ownerPane==this){
this.children.push(kids[i]);
}else{
this.clientPane.children.push(kids[i]);
if(kids[i].widgetType=="LayoutPane"){
kids[i].domNode.style.position="absolute";
}
}
}
if(this.taskBarId!=""){
dojo.addOnLoad(this,"taskBarSetup");
}
this.bgIframe=new dojo.html.BackgroundIframe();
if(this.bgIframe.iframe){
this.domNode.appendChild(this.bgIframe.iframe);
}
if(this.isVisible()){
this.bgIframe.show();
}
},taskBarSetup:function(){
var _586=dojo.widget.getWidgetById(this.taskBarId);
if(!_586){
return;
}
var tbi=dojo.widget.fromScript("TaskBarItem",{caption:this.title,iconSrc:this.iconSrc,task:this});
_586.addChild(tbi);
},onResized:function(){
if(!this.isVisible()){
return;
}
var _588=dojo.style.getOuterHeight(this.domNode);
var _589=dojo.style.getOuterWidth(this.domNode);
if(isNaN(_588)||isNaN(_589)){
this.resizeSoon();
return;
}
this.outerWidth=_589;
this.outerHeight=_588;
if(this.shadow){
dojo.style.setOuterWidth(this.shadow,_589);
dojo.style.setOuterHeight(this.shadow,_588);
}
dojo.widget.html.FloatingPane.superclass.onResized.call(this);
this.bgIframe.size([0,0,_589,_588]);
},hide:function(){
dojo.widget.html.FloatingPane.superclass.hide.call(this);
this.bgIframe.hide();
},show:function(){
dojo.widget.html.FloatingPane.superclass.show.call(this);
this.bgIframe.show();
},createPane:function(node,args){
var pane=dojo.widget.fromScript("LayoutPane",args,node);
this.addPane(pane);
pane.ownerPane=this;
return pane;
},onMyDragStart:function(e){
if(this.isDragging){
return;
}
this.dragOrigin={"x":e.clientX,"y":e.clientY};
this.posOrigin={"x":this.domNode.offsetLeft,"y":this.domNode.offsetTop};
if(this.constrainToContainer){
if(this.domNode.parentNode.nodeName.toLowerCase()=="body"){
var _58e={"w":dojo.html.getViewportWidth(),"h":dojo.html.getViewportHeight()};
}else{
var _58e={"w":dojo.style.getInnerWidth(this.domNode.parentNode),"h":dojo.style.getInnerHeight(this.domNode.parentNode)};
}
this.maxPosition={"x":_58e.w-dojo.style.getOuterWidth(this.domNode),"y":_58e.h-dojo.style.getOuterHeight(this.domNode)};
}
dojo.event.connect(document,"onmousemove",this,"onMyDragMove");
dojo.event.connect(document,"onmouseup",this,"onMyDragEnd");
this.isDragging=true;
},onMyDragMove:function(e){
var x=this.posOrigin.x+(e.clientX-this.dragOrigin.x);
var y=this.posOrigin.y+(e.clientY-this.dragOrigin.y);
if(this.constrainToContainer){
if(x<0){
x=0;
}
if(y<0){
y=0;
}
if(x>this.maxPosition.x){
x=this.maxPosition.x;
}
if(y>this.maxPosition.y){
y=this.maxPosition.y;
}
}
this.domNode.style.left=x+"px";
this.domNode.style.top=y+"px";
},onMyDragEnd:function(e){
dojo.event.disconnect(document,"onmousemove",this,"onMyDragMove");
dojo.event.disconnect(document,"onmouseup",this,"onMyDragEnd");
this.isDragging=false;
}});
dojo.widget.tags.addParseTreeHandler("dojo:FloatingPane");
dojo.provide("dojo.math.curves");
dojo.require("dojo.math");
dojo.math.curves={Line:function(_593,end){
this.start=_593;
this.end=end;
this.dimensions=_593.length;
for(var i=0;i<_593.length;i++){
_593[i]=Number(_593[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _597=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_597[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _597;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _59b=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_59b[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_59b[j]=C/D;
}
return _59b;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _5a5=step*(this.p.length-1);
var node=Math.floor(_5a5);
var _5a7=_5a5-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_5a7;
var u2=_5a7*_5a7;
var u3=_5a7*_5a7*_5a7;
var _5af=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_5af[k]=x1*u3+x2*u2+x3*u+x4;
}
return _5af;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_5b5,end,ccw){
var _5b8=dojo.math.points.midpoint(_5b5,end);
var _5b9=dojo.math.points.translate(dojo.math.points.invert(_5b8),_5b5);
var rad=Math.sqrt(Math.pow(_5b9[0],2)+Math.pow(_5b9[1],2));
var _5bb=dojo.math.radToDeg(Math.atan(_5b9[1]/_5b9[0]));
if(_5b9[0]<0){
_5bb-=90;
}else{
_5bb+=90;
}
dojo.math.curves.CenteredArc.call(this,_5b8,rad,_5bb,_5bb+(ccw?-180:180));
},CenteredArc:function(_5bc,_5bd,_5be,end){
this.center=_5bc;
this.radius=_5bd;
this.start=_5be||0;
this.end=end;
this.getValue=function(n){
var _5c1=new Array(2);
var _5c2=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_5c1[0]=this.center[0]+this.radius*Math.sin(_5c2);
_5c1[1]=this.center[1]-this.radius*Math.cos(_5c2);
return _5c1;
};
return this;
},Circle:function(_5c3,_5c4){
dojo.math.curves.CenteredArc.call(this,_5c3,_5c4,0,360);
return this;
},Path:function(){
var _5c5=[];
var _5c6=[];
var _5c7=[];
var _5c8=0;
this.add=function(_5c9,_5ca){
if(_5ca<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_5c5.push(_5c9);
_5c6.push(_5ca);
_5c8+=_5ca;
computeRanges();
};
this.remove=function(_5cb){
for(var i=0;i<_5c5.length;i++){
if(_5c5[i]==_5cb){
_5c5.splice(i,1);
_5c8-=_5c6.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_5c5=[];
_5c6=[];
_5c8=0;
};
this.getValue=function(n){
var _5ce=false,value=0;
for(var i=0;i<_5c7.length;i++){
var r=_5c7[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
value=_5c5[i].getValue(subN);
_5ce=true;
break;
}
}
if(!_5ce){
value=_5c5[_5c5.length-1].getValue(1);
}
for(j=0;j<i;j++){
value=dojo.math.points.translate(value,_5c5[j].getValue(1));
}
return value;
};
function computeRanges(){
var _5d2=0;
for(var i=0;i<_5c6.length;i++){
var end=_5d2+_5c6[i]/_5c8;
var len=end-_5d2;
_5c7[i]=[_5d2,end,len];
_5d2=end;
}
}
return this;
}};
dojo.provide("dojo.animation");
dojo.provide("dojo.animation.Animation");
dojo.require("dojo.lang");
dojo.require("dojo.math");
dojo.require("dojo.math.curves");
dojo.animation.Animation=function(_5d6,_5d7,_5d8,_5d9,rate){
this.curve=_5d6;
this.duration=_5d7;
this.repeatCount=_5d9||0;
this.rate=rate||10;
if(_5d8){
if(dojo.lang.isFunction(_5d8.getValue)){
this.accel=_5d8;
}else{
var i=0.35*_5d8+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_5dc){
if(_5dc){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence.setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_5e0){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5e0){
this.play();
}
},stop:function(_5e1){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5e1){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence.playNext();
}
}
}
}
}
}});
dojo.animation.AnimationEvent=function(anim,type,_5e9,_5ea,_5eb,_5ec,dur,pct,fps){
this.type=type;
this.animation=anim;
this.coords=_5e9;
this.x=_5e9[0];
this.y=_5e9[1];
this.z=_5e9[2];
this.startTime=_5ea;
this.currentTime=_5eb;
this.endTime=_5ec;
this.duration=dur;
this.percent=pct;
this.fps=fps;
};
dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _5f0=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_5f0[i]=Math.round(this.coords[i]);
}
return _5f0;
}});
dojo.animation.AnimationSequence=function(_5f2){
this.repeatCount=_5f2||0;
};
dojo.lang.extend(dojo.animation.AnimationSequence,{repeateCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){
for(var i=0;i<arguments.length;i++){
this._anims.push(arguments[i]);
arguments[i]._animSequence=this;
}
},remove:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._anims[i]._animSequence=null;
this._anims.splice(i,1);
break;
}
}
},removeAll:function(){
for(var i=0;i<this._anims.length;i++){
this._anims[i]._animSequence=null;
}
this._anims=[];
this._currAnim=-1;
},clear:function(){
this.removeAll();
},play:function(_5f7){
if(this._anims.length==0){
return;
}
if(_5f7||!this._anims[this._currAnim]){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
if(this._currAnim==0){
var e={type:"begin",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
this._anims[this._currAnim].play(_5f7);
}
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
}
},playPause:function(){
if(this._anims.length==0){
return;
}
if(this._currAnim==-1){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
this._anims[this._currAnim].playPause();
}
},stop:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].stop();
}
},status:function(){
if(this._anims[this._currAnim]){
return this._anims[this._currAnim].status();
}else{
return "stopped";
}
},setCurrent:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._currAnim=i;
break;
}
}
},playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return;
}
this._currAnim++;
if(this._anims[this._currAnim]){
var e={type:"next",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onNext=="function"){
this.onNext(e);
}
this._anims[this._currAnim].play(true);
}else{
var e={type:"end",animation:this._anims[this._anims.length-1]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this._currAnim=0;
this.repeatCount--;
this._anims[this._currAnim].play(true);
}else{
if(this.repeatCount==-1){
this._currAnim=0;
this._anims[this._currAnim].play(true);
}else{
this._currAnim=-1;
}
}
}
}});
dojo.hostenv.conditionalLoadModule({common:["dojo.animation.Animation",false,false]});
dojo.hostenv.moduleLoaded("dojo.animation.*");
dojo.provide("dojo.fx.html");
dojo.require("dojo.html");
dojo.require("dojo.style");
dojo.require("dojo.lang");
dojo.require("dojo.animation.*");
dojo.require("dojo.event.*");
dojo.require("dojo.graphics.color");
dojo.fx.html._makeFadeable=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
dojo.fx.html.fadeOut=function(node,_5fe,_5ff,_600){
return dojo.fx.html.fade(node,_5fe,dojo.style.getOpacity(node),0,_5ff,_600);
};
dojo.fx.html.fadeIn=function(node,_602,_603,_604){
return dojo.fx.html.fade(node,_602,dojo.style.getOpacity(node),1,_603,_604);
};
dojo.fx.html.fadeHide=function(node,_606,_607,_608){
node=dojo.byId(node);
if(!_606){
_606=150;
}
return dojo.fx.html.fadeOut(node,_606,function(node){
node.style.display="none";
if(typeof _607=="function"){
_607(node);
}
});
};
dojo.fx.html.fadeShow=function(node,_60b,_60c,_60d){
node=dojo.byId(node);
if(!_60b){
_60b=150;
}
node.style.display="block";
return dojo.fx.html.fade(node,_60b,0,1,_60c,_60d);
};
dojo.fx.html.fade=function(node,_60f,_610,_611,_612,_613){
node=dojo.byId(node);
dojo.fx.html._makeFadeable(node);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_610],[_611]),_60f,0);
dojo.event.connect(anim,"onAnimate",function(e){
dojo.style.setOpacity(node,e.x);
});
if(_612){
dojo.event.connect(anim,"onEnd",function(e){
_612(node,anim);
});
}
if(!_613){
anim.play(true);
}
return anim;
};
dojo.fx.html.slideTo=function(node,_618,_619,_61a,_61b){
if(!dojo.lang.isNumber(_618)){
var tmp=_618;
_618=_619;
_619=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slide(node,_618,[left,top],_619,_61a,_61b);
};
dojo.fx.html.slideBy=function(node,_621,_622,_623,_624){
if(!dojo.lang.isNumber(_621)){
var tmp=_621;
_621=_622;
_622=tmp;
}
node=dojo.byId(node);
var top=node.offsetTop;
var left=node.offsetLeft;
var pos=dojo.style.getComputedStyle(node,"position");
if(pos=="relative"||pos=="static"){
top=parseInt(dojo.style.getComputedStyle(node,"top"))||0;
left=parseInt(dojo.style.getComputedStyle(node,"left"))||0;
}
return dojo.fx.html.slideTo(node,_621,[left+_622[0],top+_622[1]],_623,_624);
};
dojo.fx.html.slide=function(node,_62a,_62b,_62c,_62d,_62e){
if(!dojo.lang.isNumber(_62a)){
var tmp=_62a;
_62a=_62c;
_62c=_62b;
_62b=tmp;
}
node=dojo.byId(node);
if(dojo.style.getComputedStyle(node,"position")=="static"){
node.style.position="relative";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_62b,_62c),_62a,0);
dojo.event.connect(anim,"onAnimate",function(e){
with(node.style){
left=e.x+"px";
top=e.y+"px";
}
});
if(_62d){
dojo.event.connect(anim,"onEnd",function(e){
_62d(node,anim);
});
}
if(!_62e){
anim.play(true);
}
return anim;
};
dojo.fx.html.colorFadeIn=function(node,_634,_635,_636,_637,_638){
if(!dojo.lang.isNumber(_634)){
var tmp=_634;
_634=_635;
_635=tmp;
}
node=dojo.byId(node);
var _63a=dojo.html.getBackgroundColor(node);
var bg=dojo.style.getStyle(node,"background-color").toLowerCase();
var _63c=bg=="transparent"||bg=="rgba(0, 0, 0, 0)";
while(_63a.length>3){
_63a.pop();
}
var rgb=new dojo.graphics.color.Color(_635).toRgb();
var anim=dojo.fx.html.colorFade(node,_634,_635,_63a,_637,true);
dojo.event.connect(anim,"onEnd",function(e){
if(_63c){
node.style.backgroundColor="transparent";
}
});
if(_636>0){
node.style.backgroundColor="rgb("+rgb.join(",")+")";
if(!_638){
setTimeout(function(){
anim.play(true);
},_636);
}
}else{
if(!_638){
anim.play(true);
}
}
return anim;
};
dojo.fx.html.highlight=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn;
dojo.fx.html.colorFadeOut=function(node,_641,_642,_643,_644,_645){
if(!dojo.lang.isNumber(_641)){
var tmp=_641;
_641=_642;
_642=tmp;
}
node=dojo.byId(node);
var _647=new dojo.graphics.color.Color(dojo.html.getBackgroundColor(node)).toRgb();
var rgb=new dojo.graphics.color.Color(_642).toRgb();
var anim=dojo.fx.html.colorFade(node,_641,_647,rgb,_644,_643>0||_645);
if(_643>0){
node.style.backgroundColor="rgb("+_647.join(",")+")";
if(!_645){
setTimeout(function(){
anim.play(true);
},_643);
}
}
return anim;
};
dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut;
dojo.fx.html.colorFade=function(node,_64b,_64c,_64d,_64e,_64f){
if(!dojo.lang.isNumber(_64b)){
var tmp=_64b;
_64b=_64d;
_64d=_64c;
_64c=tmp;
}
node=dojo.byId(node);
var _651=new dojo.graphics.color.Color(_64c).toRgb();
var _652=new dojo.graphics.color.Color(_64d).toRgb();
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_651,_652),_64b,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")";
});
if(_64e){
dojo.event.connect(anim,"onEnd",function(e){
_64e(node,anim);
});
}
if(!_64f){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeIn=function(node,_657,_658,_659){
node=dojo.byId(node);
var _65a=dojo.html.getStyle(node,"height");
var _65b=dojo.lang.inArray(node.tagName.toLowerCase(),["tr","td","th"])?"":"block";
node.style.display=_65b;
var _65c=node.offsetHeight;
var anim=dojo.fx.html.wipeInToHeight(node,_657,_65c,function(e){
node.style.height=_65a||"auto";
if(_658){
_658(node,anim);
}
},_659);
};
dojo.fx.html.wipeInToHeight=function(node,_660,_661,_662,_663){
node=dojo.byId(node);
var _664=dojo.html.getStyle(node,"overflow");
node.style.height="0px";
node.style.display="none";
if(_664=="visible"){
node.style.overflow="hidden";
}
var _665=dojo.lang.inArray(node.tagName.toLowerCase(),["tr","td","th"])?"":"block";
node.style.display=_665;
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([0],[_661]),_660,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=Math.round(e.x)+"px";
});
dojo.event.connect(anim,"onEnd",function(e){
if(_664!="visible"){
node.style.overflow=_664;
}
if(_662){
_662(node,anim);
}
});
if(!_663){
anim.play(true);
}
return anim;
};
dojo.fx.html.wipeOut=function(node,_66a,_66b,_66c){
node=dojo.byId(node);
var _66d=dojo.html.getStyle(node,"overflow");
var _66e=dojo.html.getStyle(node,"height");
var _66f=node.offsetHeight;
node.style.overflow="hidden";
var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_66f],[0]),_66a,0);
dojo.event.connect(anim,"onAnimate",function(e){
node.style.height=Math.round(e.x)+"px";
});
dojo.event.connect(anim,"onEnd",function(e){
node.style.display="none";
node.style.overflow=_66d;
node.style.height=_66e||"auto";
if(_66b){
_66b(node,anim);
}
});
if(!_66c){
anim.play(true);
}
return anim;
};
dojo.fx.html.explode=function(_673,_674,_675,_676,_677){
var _678=dojo.html.toCoordinateArray(_673);
var _679=document.createElement("div");
with(_679.style){
position="absolute";
border="1px solid black";
display="none";
}
dojo.html.body().appendChild(_679);
_674=dojo.byId(_674);
with(_674.style){
visibility="hidden";
display="block";
}
var _67a=dojo.html.toCoordinateArray(_674);
with(_674.style){
display="none";
visibility="visible";
}
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_678,_67a),_675,0);
dojo.event.connect(anim,"onBegin",function(e){
_679.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_679.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_674.style.display="block";
_679.parentNode.removeChild(_679);
if(_676){
_676(_674,anim);
}
});
if(!_677){
anim.play();
}
return anim;
};
dojo.fx.html.implode=function(_67e,end,_680,_681,_682){
var _683=dojo.html.toCoordinateArray(_67e);
var _684=dojo.html.toCoordinateArray(end);
_67e=dojo.byId(_67e);
var _685=document.createElement("div");
with(_685.style){
position="absolute";
border="1px solid black";
display="none";
}
dojo.html.body().appendChild(_685);
var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_683,_684),_680,0);
dojo.event.connect(anim,"onBegin",function(e){
_67e.style.display="none";
_685.style.display="block";
});
dojo.event.connect(anim,"onAnimate",function(e){
with(_685.style){
left=e.x+"px";
top=e.y+"px";
width=e.coords[2]+"px";
height=e.coords[3]+"px";
}
});
dojo.event.connect(anim,"onEnd",function(){
_685.parentNode.removeChild(_685);
if(_681){
_681(_67e,anim);
}
});
if(!_682){
anim.play();
}
return anim;
};
dojo.fx.html.Exploder=function(_689,_68a){
_689=dojo.byId(_689);
_68a=dojo.byId(_68a);
var _68b=this;
this.waitToHide=500;
this.timeToShow=100;
this.waitToShow=200;
this.timeToHide=70;
this.autoShow=false;
this.autoHide=false;
var _68c=null;
var _68d=null;
var _68e=null;
var _68f=null;
var _690=null;
var _691=null;
this.showing=false;
this.onBeforeExplode=null;
this.onAfterExplode=null;
this.onBeforeImplode=null;
this.onAfterImplode=null;
this.onExploding=null;
this.onImploding=null;
this.timeShow=function(){
clearTimeout(_68e);
_68e=setTimeout(_68b.show,_68b.waitToShow);
};
this.show=function(){
clearTimeout(_68e);
clearTimeout(_68f);
if((_68d&&_68d.status()=="playing")||(_68c&&_68c.status()=="playing")||_68b.showing){
return;
}
if(typeof _68b.onBeforeExplode=="function"){
_68b.onBeforeExplode(_689,_68a);
}
_68c=dojo.fx.html.explode(_689,_68a,_68b.timeToShow,function(e){
_68b.showing=true;
if(typeof _68b.onAfterExplode=="function"){
_68b.onAfterExplode(_689,_68a);
}
});
if(typeof _68b.onExploding=="function"){
dojo.event.connect(_68c,"onAnimate",this,"onExploding");
}
};
this.timeHide=function(){
clearTimeout(_68e);
clearTimeout(_68f);
if(_68b.showing){
_68f=setTimeout(_68b.hide,_68b.waitToHide);
}
};
this.hide=function(){
clearTimeout(_68e);
clearTimeout(_68f);
if(_68c&&_68c.status()=="playing"){
return;
}
_68b.showing=false;
if(typeof _68b.onBeforeImplode=="function"){
_68b.onBeforeImplode(_689,_68a);
}
_68d=dojo.fx.html.implode(_68a,_689,_68b.timeToHide,function(e){
if(typeof _68b.onAfterImplode=="function"){
_68b.onAfterImplode(_689,_68a);
}
});
if(typeof _68b.onImploding=="function"){
dojo.event.connect(_68d,"onAnimate",this,"onImploding");
}
};
dojo.event.connect(_689,"onclick",function(e){
if(_68b.showing){
_68b.hide();
}else{
_68b.show();
}
});
dojo.event.connect(_689,"onmouseover",function(e){
if(_68b.autoShow){
_68b.timeShow();
}
});
dojo.event.connect(_689,"onmouseout",function(e){
if(_68b.autoHide){
_68b.timeHide();
}
});
dojo.event.connect(_68a,"onmouseover",function(e){
clearTimeout(_68f);
});
dojo.event.connect(_68a,"onmouseout",function(e){
if(_68b.autoHide){
_68b.timeHide();
}
});
dojo.event.connect(document.documentElement||dojo.html.body(),"onclick",function(e){
if(_68b.autoHide&&_68b.showing&&!dojo.dom.isDescendantOf(e.target,_68a)&&!dojo.dom.isDescendantOf(e.target,_689)){
_68b.hide();
}
});
return this;
};
dojo.lang.mixin(dojo.fx,dojo.fx.html);

