/*
	Copyright (c) 2004-2006, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/community/licensing.shtml
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(typeof dojo=="undefined"){
var dj_global=this;
var dj_currentContext=this;
function dj_undef(_1,_2){
return (typeof (_2||dj_currentContext)[_1]=="undefined");
}
if(dj_undef("djConfig",this)){
var djConfig={};
}
if(dj_undef("dojo",this)){
var dojo={};
}
dojo.global=function(){
return dj_currentContext;
};
dojo.locale=djConfig.locale;
dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 8617 $".match(/[0-9]+/)[0]),toString:function(){
with(dojo.version){
return major+"."+minor+"."+patch+flag+" ("+revision+")";
}
}};
dojo.evalProp=function(_3,_4,_5){
if((!_4)||(!_3)){
return undefined;
}
if(!dj_undef(_3,_4)){
return _4[_3];
}
return (_5?(_4[_3]={}):undefined);
};
dojo.parseObjPath=function(_6,_7,_8){
var _9=(_7||dojo.global());
var _a=_6.split(".");
var _b=_a.pop();
for(var i=0,l=_a.length;i<l&&_9;i++){
_9=dojo.evalProp(_a[i],_9,_8);
}
return {obj:_9,prop:_b};
};
dojo.evalObjPath=function(_e,_f){
if(typeof _e!="string"){
return dojo.global();
}
if(_e.indexOf(".")==-1){
return dojo.evalProp(_e,dojo.global(),_f);
}
var ref=dojo.parseObjPath(_e,dojo.global(),_f);
if(ref){
return dojo.evalProp(ref.prop,ref.obj,_f);
}
return null;
};
dojo.errorToString=function(_11){
if(!dj_undef("message",_11)){
return _11.message;
}else{
if(!dj_undef("description",_11)){
return _11.description;
}else{
return _11;
}
}
};
dojo.raise=function(_12,_13){
if(_13){
_12=_12+": "+dojo.errorToString(_13);
}else{
_12=dojo.errorToString(_12);
}
try{
if(djConfig.isDebug){
dojo.hostenv.println("FATAL exception raised: "+_12);
}
}
catch(e){
}
throw _13||Error(_12);
};
dojo.debug=function(){
};
dojo.debugShallow=function(obj){
};
dojo.profile={start:function(){
},end:function(){
},stop:function(){
},dump:function(){
}};
function dj_eval(_15){
return dj_global.eval?dj_global.eval(_15):eval(_15);
}
dojo.unimplemented=function(_16,_17){
var _18="'"+_16+"' not implemented";
if(_17!=null){
_18+=" "+_17;
}
dojo.raise(_18);
};
dojo.deprecated=function(_19,_1a,_1b){
var _1c="DEPRECATED: "+_19;
if(_1a){
_1c+=" "+_1a;
}
if(_1b){
_1c+=" -- will be removed in version: "+_1b;
}
dojo.debug(_1c);
};
dojo.render=(function(){
function vscaffold(_1d,_1e){
var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};
for(var i=0;i<_1e.length;i++){
tmp[_1e[i]]=false;
}
return tmp;
}
return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};
})();
dojo.hostenv=(function(){
var _21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};
if(typeof djConfig=="undefined"){
djConfig=_21;
}else{
for(var _22 in _21){
if(typeof djConfig[_22]=="undefined"){
djConfig[_22]=_21[_22];
}
}
}
return {name_:"(unset)",version_:"(unset)",getName:function(){
return this.name_;
},getVersion:function(){
return this.version_;
},getText:function(uri){
dojo.unimplemented("getText","uri="+uri);
}};
})();
dojo.hostenv.getBaseScriptUri=function(){
if(djConfig.baseScriptUri.length){
return djConfig.baseScriptUri;
}
var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
if(!uri){
dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
}
var _25=uri.lastIndexOf("/");
djConfig.baseScriptUri=djConfig.baseRelativePath;
return djConfig.baseScriptUri;
};
(function(){
var _26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_27,_28){
this.modulePrefixes_[_27]={name:_27,value:_28};
},moduleHasPrefix:function(_29){
var mp=this.modulePrefixes_;
return Boolean(mp[_29]&&mp[_29].value);
},getModulePrefix:function(_2b){
if(this.moduleHasPrefix(_2b)){
return this.modulePrefixes_[_2b].value;
}
return _2b;
},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};
for(var _2c in _26){
dojo.hostenv[_2c]=_26[_2c];
}
})();
dojo.hostenv.loadPath=function(_2d,_2e,cb){
var uri;
if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){
uri=_2d;
}else{
uri=this.getBaseScriptUri()+_2d;
}
if(djConfig.cacheBust&&dojo.render.html.capable){
uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");
}
try{
return !_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.hostenv.loadUri=function(uri,cb){
if(this.loadedUris[uri]){
return true;
}
var _33=this.getText(uri,null,true);
if(!_33){
return false;
}
this.loadedUris[uri]=true;
if(cb){
_33="("+_33+")";
}
var _34=dj_eval(_33);
if(cb){
cb(_34);
}
return true;
};
dojo.hostenv.loadUriAndCheck=function(uri,_36,cb){
var ok=true;
try{
ok=this.loadUri(uri,cb);
}
catch(e){
dojo.debug("failed loading ",uri," with error: ",e);
}
return Boolean(ok&&this.findModule(_36,false));
};
dojo.loaded=function(){
};
dojo.unloaded=function(){
};
dojo.hostenv.loaded=function(){
this.loadNotifying=true;
this.post_load_=true;
var mll=this.modulesLoadedListeners;
for(var x=0;x<mll.length;x++){
mll[x]();
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&dojo.render.html.opera)){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;i>0;i--){
var _45=_43.slice(0,i).join(".");
if((i==1)&&!this.moduleHasPrefix(_45)){
_43[0]="../"+_43[0];
}else{
var _46=this.getModulePrefix(_45);
if(_46!=_45){
_43.splice(0,i,_46);
break;
}
}
}
return _43;
};
dojo.hostenv._global_omit_module_check=false;
dojo.hostenv.loadModule=function(_47,_48,_49){
if(!_47){
return;
}
_49=this._global_omit_module_check||_49;
var _4a=this.findModule(_47,false);
if(_4a){
return _4a;
}
if(dj_undef(_47,this.loading_modules_)){
this.addedToLoadingCount.push(_47);
}
this.loading_modules_[_47]=1;
var _4b=_47.replace(/\./g,"/")+".js";
var _4c=_47.split(".");
var _4d=this.getModuleSymbols(_47);
var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));
var _4f=_4d[_4d.length-1];
var ok;
if(_4f=="*"){
_47=_4c.slice(0,-1).join(".");
while(_4d.length){
_4d.pop();
_4d.push(this.pkgFileName);
_4b=_4d.join("/")+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,!_49?_47:null);
if(ok){
break;
}
_4d.pop();
}
}else{
_4b=_4d.join("/")+".js";
_47=_4c.join(".");
var _51=!_49?_47:null;
ok=this.loadPath(_4b,_51);
if(!ok&&!_48){
_4d.pop();
while(_4d.length){
_4b=_4d.join("/")+".js";
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
_4d.pop();
_4b=_4d.join("/")+"/"+this.pkgFileName+".js";
if(_4e&&_4b.charAt(0)=="/"){
_4b=_4b.slice(1);
}
ok=this.loadPath(_4b,_51);
if(ok){
break;
}
}
}
if(!ok&&!_49){
dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'");
}
}
if(!_49&&!this["isXDomain"]){
_4a=this.findModule(_47,false);
if(!_4a){
dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'");
}
}
return _4a;
};
dojo.hostenv.startPackage=function(_52){
var _53=String(_52);
var _54=_53;
var _55=_52.split(/\./);
if(_55[_55.length-1]=="*"){
_55.pop();
_54=_55.join(".");
}
var _56=dojo.evalObjPath(_54,true);
this.loaded_modules_[_53]=_56;
this.loaded_modules_[_54]=_56;
return _56;
};
dojo.hostenv.findModule=function(_57,_58){
var lmn=String(_57);
if(this.loaded_modules_[lmn]){
return this.loaded_modules_[lmn];
}
if(_58){
dojo.raise("no loaded module named '"+_57+"'");
}
return null;
};
dojo.kwCompoundRequire=function(_5a){
var _5b=_5a["common"]||[];
var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);
for(var x=0;x<_5c.length;x++){
var _5e=_5c[x];
if(_5e.constructor==Array){
dojo.hostenv.loadModule.apply(dojo.hostenv,_5e);
}else{
dojo.hostenv.loadModule(_5e);
}
}
};
dojo.require=function(_5f){
dojo.hostenv.loadModule.apply(dojo.hostenv,arguments);
};
dojo.requireIf=function(_60,_61){
var _62=arguments[0];
if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){
var _63=[];
for(var i=1;i<arguments.length;i++){
_63.push(arguments[i]);
}
dojo.require.apply(dojo,_63);
}
};
dojo.requireAfterIf=dojo.requireIf;
dojo.provide=function(_65){
return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments);
};
dojo.registerModulePath=function(_66,_67){
return dojo.hostenv.setModulePrefix(_66,_67);
};
if(djConfig["modulePaths"]){
for(var param in djConfig["modulePaths"]){
dojo.registerModulePath(param,djConfig["modulePaths"][param]);
}
}
dojo.setModulePrefix=function(_68,_69){
dojo.deprecated("dojo.setModulePrefix(\""+_68+"\", \""+_69+"\")","replaced by dojo.registerModulePath","0.5");
return dojo.registerModulePath(_68,_69);
};
dojo.exists=function(obj,_6b){
var p=_6b.split(".");
for(var i=0;i<p.length;i++){
if(!obj[p[i]]){
return false;
}
obj=obj[p[i]];
}
return true;
};
dojo.hostenv.normalizeLocale=function(_6e){
var _6f=_6e?_6e.toLowerCase():dojo.locale;
if(_6f=="root"){
_6f="ROOT";
}
return _6f;
};
dojo.hostenv.searchLocalePath=function(_70,_71,_72){
_70=dojo.hostenv.normalizeLocale(_70);
var _73=_70.split("-");
var _74=[];
for(var i=_73.length;i>0;i--){
_74.push(_73.slice(0,i).join("-"));
}
_74.push(false);
if(_71){
_74.reverse();
}
for(var j=_74.length-1;j>=0;j--){
var loc=_74[j]||"ROOT";
var _78=_72(loc);
if(_78){
break;
}
}
};
dojo.hostenv.localesGenerated=["ROOT","es-es","es","it-it","pt-br","de","fr-fr","zh-cn","pt","en-us","zh","fr","zh-tw","it","en-gb","xx","de-de","ko-kr","ja-jp","ko","en","ja"];
dojo.hostenv.registerNlsPrefix=function(){
dojo.registerModulePath("nls","nls");
};
dojo.hostenv.preloadLocalizations=function(){
if(dojo.hostenv.localesGenerated){
dojo.hostenv.registerNlsPrefix();
function preload(_79){
_79=dojo.hostenv.normalizeLocale(_79);
dojo.hostenv.searchLocalePath(_79,true,function(loc){
for(var i=0;i<dojo.hostenv.localesGenerated.length;i++){
if(dojo.hostenv.localesGenerated[i]==loc){
dojo["require"]("nls.dojo_"+loc);
return true;
}
}
return false;
});
}
preload();
var _7c=djConfig.extraLocale||[];
for(var i=0;i<_7c.length;i++){
preload(_7c[i]);
}
}
dojo.hostenv.preloadLocalizations=function(){
};
};
dojo.requireLocalization=function(_7e,_7f,_80,_81){
dojo.hostenv.preloadLocalizations();
var _82=dojo.hostenv.normalizeLocale(_80);
var _83=[_7e,"nls",_7f].join(".");
var _84="";
if(_81){
var _85=_81.split(",");
for(var i=0;i<_85.length;i++){
if(_82.indexOf(_85[i])==0){
if(_85[i].length>_84.length){
_84=_85[i];
}
}
}
if(!_84){
_84="ROOT";
}
}
var _87=_81?_84:_82;
var _88=dojo.hostenv.findModule(_83);
var _89=null;
if(_88){
if(djConfig.localizationComplete&&_88._built){
return;
}
var _8a=_87.replace("-","_");
var _8b=_83+"."+_8a;
_89=dojo.hostenv.findModule(_8b);
}
if(!_89){
_88=dojo.hostenv.startPackage(_83);
var _8c=dojo.hostenv.getModuleSymbols(_7e);
var _8d=_8c.concat("nls").join("/");
var _8e;
dojo.hostenv.searchLocalePath(_87,_81,function(loc){
var _90=loc.replace("-","_");
var _91=_83+"."+_90;
var _92=false;
if(!dojo.hostenv.findModule(_91)){
dojo.hostenv.startPackage(_91);
var _93=[_8d];
if(loc!="ROOT"){
_93.push(loc);
}
_93.push(_7f);
var _94=_93.join("/")+".js";
_92=dojo.hostenv.loadPath(_94,null,function(_95){
var _96=function(){
};
_96.prototype=_8e;
_88[_90]=new _96();
for(var j in _95){
_88[_90][j]=_95[j];
}
});
}else{
_92=true;
}
if(_92&&_88[_90]){
_8e=_88[_90];
}else{
_88[_90]=_8e;
}
if(_81){
return true;
}
});
}
if(_81&&_82!=_84){
_88[_82.replace("-","_")]=_88[_84.replace("-","_")];
}
};
(function(){
var _98=djConfig.extraLocale;
if(_98){
if(!_98 instanceof Array){
_98=[_98];
}
var req=dojo.requireLocalization;
dojo.requireLocalization=function(m,b,_9c,_9d){
req(m,b,_9c,_9d);
if(_9c){
return;
}
for(var i=0;i<_98.length;i++){
req(m,b,_98[i],_9d);
}
};
}
})();
}
if(typeof window!="undefined"){
(function(){
if(djConfig.allowQueryConfig){
var _9f=document.location.toString();
var _a0=_9f.split("?",2);
if(_a0.length>1){
var _a1=_a0[1];
var _a2=_a1.split("&");
for(var x in _a2){
var sp=_a2[x].split("=");
if((sp[0].length>9)&&(sp[0].substr(0,9)=="djConfig.")){
var opt=sp[0].substr(9);
try{
djConfig[opt]=eval(sp[1]);
}
catch(e){
djConfig[opt]=sp[1];
}
}
}
}
}
if(((djConfig["baseScriptUri"]=="")||(djConfig["baseRelativePath"]==""))&&(document&&document.getElementsByTagName)){
var _a6=document.getElementsByTagName("script");
var _a7=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i;
for(var i=0;i<_a6.length;i++){
var src=_a6[i].getAttribute("src");
if(!src){
continue;
}
var m=src.match(_a7);
if(m){
var _ab=src.substring(0,m.index);
if(src.indexOf("bootstrap1")>-1){
_ab+="../";
}
if(!this["djConfig"]){
djConfig={};
}
if(djConfig["baseScriptUri"]==""){
djConfig["baseScriptUri"]=_ab;
}
if(djConfig["baseRelativePath"]==""){
djConfig["baseRelativePath"]=_ab;
}
break;
}
}
}
var dr=dojo.render;
var drh=dojo.render.html;
var drs=dojo.render.svg;
var dua=(drh.UA=navigator.userAgent);
var dav=(drh.AV=navigator.appVersion);
var t=true;
var f=false;
drh.capable=t;
drh.support.builtin=t;
dr.ver=parseFloat(drh.AV);
dr.os.mac=dav.indexOf("Macintosh")>=0;
dr.os.win=dav.indexOf("Windows")>=0;
dr.os.linux=dav.indexOf("X11")>=0;
drh.opera=dua.indexOf("Opera")>=0;
drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0);
drh.safari=dav.indexOf("Safari")>=0;
var _b3=dua.indexOf("Gecko");
drh.mozilla=drh.moz=(_b3>=0)&&(!drh.khtml);
if(drh.mozilla){
drh.geckoVersion=dua.substring(_b3+6,_b3+14);
}
drh.ie=(document.all)&&(!drh.opera);
drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0;
drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0;
drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0;
drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0;
var cm=document["compatMode"];
drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50;
dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase();
dr.vml.capable=drh.ie;
drs.capable=f;
drs.support.plugin=f;
drs.support.builtin=f;
var _b5=window["document"];
var tdi=_b5["implementation"];
if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
if(drh.safari){
var tmp=dua.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
drs.capable=t;
drs.support.builtin=t;
drs.support.plugin=f;
}
}else{
}
})();
dojo.hostenv.startPackage("dojo.hostenv");
dojo.render.name=dojo.hostenv.name_="browser";
dojo.hostenv.searchIds=[];
dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];
dojo.hostenv.getXmlhttpObject=function(){
var _b9=null;
var _ba=null;
try{
_b9=new XMLHttpRequest();
}
catch(e){
}
if(!_b9){
for(var i=0;i<3;++i){
var _bc=dojo.hostenv._XMLHTTP_PROGIDS[i];
try{
_b9=new ActiveXObject(_bc);
}
catch(e){
_ba=e;
}
if(_b9){
dojo.hostenv._XMLHTTP_PROGIDS=[_bc];
break;
}
}
}
if(!_b9){
return dojo.raise("XMLHTTP not available",_ba);
}
return _b9;
};
dojo.hostenv._blockAsync=false;
dojo.hostenv.getText=function(uri,_be,_bf){
if(!_be){
this._blockAsync=true;
}
var _c0=this.getXmlhttpObject();
function isDocumentOk(_c1){
var _c2=_c1["status"];
return Boolean((!_c2)||((200<=_c2)&&(300>_c2))||(_c2==304));
}
if(_be){
var _c3=this,_c4=null,gbl=dojo.global();
var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport");
_c0.onreadystatechange=function(){
if(_c4){
gbl.clearTimeout(_c4);
_c4=null;
}
if(_c3._blockAsync||(xhr&&xhr._blockAsync)){
_c4=gbl.setTimeout(function(){
_c0.onreadystatechange.apply(this);
},10);
}else{
if(4==_c0.readyState){
if(isDocumentOk(_c0)){
_be(_c0.responseText);
}
}
}
};
}
_c0.open("GET",uri,_be?true:false);
try{
_c0.send(null);
if(_be){
return null;
}
if(!isDocumentOk(_c0)){
var err=Error("Unable to load "+uri+" status:"+_c0.status);
err.status=_c0.status;
err.responseText=_c0.responseText;
throw err;
}
}
catch(e){
this._blockAsync=false;
if((_bf)&&(!_be)){
return null;
}else{
throw e;
}
}
this._blockAsync=false;
return _c0.responseText;
};
dojo.hostenv.defaultDebugContainerId="dojoDebug";
dojo.hostenv._println_buffer=[];
dojo.hostenv._println_safe=false;
dojo.hostenv.println=function(_c8){
if(!dojo.hostenv._println_safe){
dojo.hostenv._println_buffer.push(_c8);
}else{
try{
var _c9=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId);
if(!_c9){
_c9=dojo.body();
}
var div=document.createElement("div");
div.appendChild(document.createTextNode(_c8));
_c9.appendChild(div);
}
catch(e){
try{
document.write("<div>"+_c8+"</div>");
}
catch(e2){
window.status=_c8;
}
}
}
};
dojo.addOnLoad(function(){
dojo.hostenv._println_safe=true;
while(dojo.hostenv._println_buffer.length>0){
dojo.hostenv.println(dojo.hostenv._println_buffer.shift());
}
});
function dj_addNodeEvtHdlr(_cb,_cc,fp){
var _ce=_cb["on"+_cc]||function(){
};
_cb["on"+_cc]=function(){
fp.apply(_cb,arguments);
_ce.apply(_cb,arguments);
};
return true;
}
dojo.hostenv._djInitFired=false;
function dj_load_init(e){
dojo.hostenv._djInitFired=true;
var _d0=(e&&e.type)?e.type.toLowerCase():"load";
if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){
return;
}
arguments.callee.initialized=true;
if(typeof (_timer)!="undefined"){
clearInterval(_timer);
delete _timer;
}
var _d1=function(){
if(dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
};
if(dojo.hostenv.inFlightCount==0){
_d1();
dojo.hostenv.modulesLoaded();
}else{
dojo.hostenv.modulesLoadedListeners.unshift(_d1);
}
}
if(document.addEventListener){
if(dojo.render.html.opera||(dojo.render.html.moz&&(djConfig["enableMozDomContentLoaded"]===true))){
document.addEventListener("DOMContentLoaded",dj_load_init,null);
}
window.addEventListener("load",dj_load_init,null);
}
if(dojo.render.html.ie&&dojo.render.os.win){
document.attachEvent("onreadystatechange",function(e){
if(document.readyState=="complete"){
dj_load_init();
}
});
}
if(/(WebKit|khtml)/i.test(navigator.userAgent)){
var _timer=setInterval(function(){
if(/loaded|complete/.test(document.readyState)){
dj_load_init();
}
},10);
}
if(dojo.render.html.ie){
dj_addNodeEvtHdlr(window,"beforeunload",function(){
dojo.hostenv._unloading=true;
window.setTimeout(function(){
dojo.hostenv._unloading=false;
},0);
});
}
dj_addNodeEvtHdlr(window,"unload",function(){
dojo.hostenv.unloaded();
if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){
dojo.hostenv.unloaded();
}
});
dojo.hostenv.makeWidgets=function(){
var _d3=[];
if(djConfig.searchIds&&djConfig.searchIds.length>0){
_d3=_d3.concat(djConfig.searchIds);
}
if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){
_d3=_d3.concat(dojo.hostenv.searchIds);
}
if((djConfig.parseWidgets)||(_d3.length>0)){
if(dojo.evalObjPath("dojo.widget.Parse")){
var _d4=new dojo.xml.Parse();
if(_d3.length>0){
for(var x=0;x<_d3.length;x++){
var _d6=document.getElementById(_d3[x]);
if(!_d6){
continue;
}
var _d7=_d4.parseElement(_d6,null,true);
dojo.widget.getParser().createComponents(_d7);
}
}else{
if(djConfig.parseWidgets){
var _d7=_d4.parseElement(dojo.body(),null,true);
dojo.widget.getParser().createComponents(_d7);
}
}
}
}
};
dojo.addOnLoad(function(){
if(!dojo.render.html.ie){
dojo.hostenv.makeWidgets();
}
});
try{
if(dojo.render.html.ie){
document.namespaces.add("v","urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");
}
}
catch(e){
}
dojo.hostenv.writeIncludes=function(){
};
if(!dj_undef("document",this)){
dj_currentDocument=this.document;
}
dojo.doc=function(){
return dj_currentDocument;
};
dojo.body=function(){
return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0];
};
dojo.byId=function(id,doc){
if((id)&&((typeof id=="string")||(id instanceof String))){
if(!doc){
doc=dj_currentDocument;
}
var ele=doc.getElementById(id);
if(ele&&(ele.id!=id)&&doc.all){
ele=null;
eles=doc.all[id];
if(eles){
if(eles.length){
for(var i=0;i<eles.length;i++){
if(eles[i].id==id){
ele=eles[i];
break;
}
}
}else{
ele=eles;
}
}
}
return ele;
}
return id;
};
dojo.setContext=function(_dc,_dd){
dj_currentContext=_dc;
dj_currentDocument=_dd;
};
dojo._fireCallback=function(_de,_df,_e0){
if((_df)&&((typeof _de=="string")||(_de instanceof String))){
_de=_df[_de];
}
return (_df?_de.apply(_df,_e0||[]):_de());
};
dojo.withGlobal=function(_e1,_e2,_e3,_e4){
var _e5;
var _e6=dj_currentContext;
var _e7=dj_currentDocument;
try{
dojo.setContext(_e1,_e1.document);
_e5=dojo._fireCallback(_e2,_e3,_e4);
}
finally{
dojo.setContext(_e6,_e7);
}
return _e5;
};
dojo.withDoc=function(_e8,_e9,_ea,_eb){
var _ec;
var _ed=dj_currentDocument;
try{
dj_currentDocument=_e8;
_ec=dojo._fireCallback(_e9,_ea,_eb);
}
finally{
dj_currentDocument=_ed;
}
return _ec;
};
}
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&!djConfig["useXDomain"],"dojo.browser_debug");
dojo.requireIf(djConfig["debugAtAllCosts"]&&!window.widget&&djConfig["useXDomain"],"dojo.browser_debug_xd");
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_ee,_ef){
_ee.setMonth(0);
_ee.setDate(_ef);
return _ee;
};
dojo.date.getDayOfYear=function(_f0){
var _f1=_f0.getFullYear();
var _f2=new Date(_f1-1,11,31);
return Math.floor((_f0.getTime()-_f2.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_f3,_f4,_f5){
if(arguments.length==1){
_f5=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_f6,_f7){
if(arguments.length==1){
_f7=0;
}
var _f8=new Date(_f6.getFullYear(),0,1);
var day=_f8.getDay();
_f8.setDate(_f8.getDate()-day+_f7-(day>_f7?7:0));
return Math.floor((_f6.getTime()-_f8.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_fa,_fb,_fc){
if(arguments.length==1){
_fc=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_fd,_fe){
if(arguments.length==1){
_fe=1;
}
dojo.unimplemented("dojo.date.getIsoWeekOfYear");
};
dojo.date.shortTimezones=["IDLW","BET","HST","MART","AKST","PST","MST","CST","EST","AST","NFT","BST","FST","AT","GMT","CET","EET","MSK","IRT","GST","AFT","AGTT","IST","NPT","ALMT","MMT","JT","AWST","JST","ACST","AEST","LHST","VUT","NFT","NZT","CHAST","PHOT","LINT"];
dojo.date.timezoneOffsets=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,540,570,600,630,660,690,720,765,780,840];
dojo.date.getDaysInMonth=function(_ff){
var _100=_ff.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_100==1&&dojo.date.isLeapYear(_ff)){
return 29;
}else{
return days[_100];
}
};
dojo.date.isLeapYear=function(_102){
var year=_102.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_104){
var str=_104.toString();
var tz="";
var _107;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_107=str.match(pat))){
tz=_107[1];
}else{
str=_104.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_107=str.match(pat))){
tz=_107[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_10a){
var date=_10a.getDate();
if(date%100!=11&&date%10==1){
return "st";
}else{
if(date%100!=12&&date%10==2){
return "nd";
}else{
if(date%100!=13&&date%10==3){
return "rd";
}else{
return "th";
}
}
}
};
dojo.date.compareTypes={DATE:1,TIME:2};
dojo.date.compare=function(_10c,_10d,_10e){
var dA=_10c;
var dB=_10d||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_10e||(DATE|TIME);
var d1=new Date((opt&DATE)?dA.getFullYear():now.getFullYear(),(opt&DATE)?dA.getMonth():now.getMonth(),(opt&DATE)?dA.getDate():now.getDate(),(opt&TIME)?dA.getHours():0,(opt&TIME)?dA.getMinutes():0,(opt&TIME)?dA.getSeconds():0);
var d2=new Date((opt&DATE)?dB.getFullYear():now.getFullYear(),(opt&DATE)?dB.getMonth():now.getMonth(),(opt&DATE)?dB.getDate():now.getDate(),(opt&TIME)?dB.getHours():0,(opt&TIME)?dB.getMinutes():0,(opt&TIME)?dB.getSeconds():0);
}
if(d1.valueOf()>d2.valueOf()){
return 1;
}
if(d1.valueOf()<d2.valueOf()){
return -1;
}
return 0;
};
dojo.date.dateParts={YEAR:0,MONTH:1,DAY:2,HOUR:3,MINUTE:4,SECOND:5,MILLISECOND:6,QUARTER:7,WEEK:8,WEEKDAY:9};
dojo.date.add=function(dt,_116,incr){
if(typeof dt=="number"){
dt=new Date(dt);
}
function fixOvershoot(){
if(sum.getDate()<dt.getDate()){
sum.setDate(0);
}
}
var sum=new Date(dt);
with(dojo.date.dateParts){
switch(_116){
case YEAR:
sum.setFullYear(dt.getFullYear()+incr);
fixOvershoot();
break;
case QUARTER:
incr*=3;
case MONTH:
sum.setMonth(dt.getMonth()+incr);
fixOvershoot();
break;
case WEEK:
incr*=7;
case DAY:
sum.setDate(dt.getDate()+incr);
break;
case WEEKDAY:
var dat=dt.getDate();
var _11a=0;
var days=0;
var strt=0;
var trgt=0;
var adj=0;
var mod=incr%5;
if(mod==0){
days=(incr>0)?5:-5;
_11a=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_11a=parseInt(incr/5);
}
strt=dt.getDay();
if(strt==6&&incr>0){
adj=1;
}else{
if(strt==0&&incr<0){
adj=-1;
}
}
trgt=(strt+days);
if(trgt==0||trgt==6){
adj=(incr>0)?2:-2;
}
sum.setDate(dat+(7*_11a)+days+adj);
break;
case HOUR:
sum.setHours(sum.getHours()+incr);
break;
case MINUTE:
sum.setMinutes(sum.getMinutes()+incr);
break;
case SECOND:
sum.setSeconds(sum.getSeconds()+incr);
break;
case MILLISECOND:
sum.setMilliseconds(sum.getMilliseconds()+incr);
break;
default:
break;
}
}
return sum;
};
dojo.date.diff=function(dtA,dtB,_122){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _123=dtB.getFullYear()-dtA.getFullYear();
var _124=(dtB.getMonth()-dtA.getMonth())+(_123*12);
var _125=dtB.getTime()-dtA.getTime();
var _126=_125/1000;
var _127=_126/60;
var _128=_127/60;
var _129=_128/24;
var _12a=_129/7;
var _12b=0;
with(dojo.date.dateParts){
switch(_122){
case YEAR:
_12b=_123;
break;
case QUARTER:
var mA=dtA.getMonth();
var mB=dtB.getMonth();
var qA=Math.floor(mA/3)+1;
var qB=Math.floor(mB/3)+1;
qB+=(_123*4);
_12b=qB-qA;
break;
case MONTH:
_12b=_124;
break;
case WEEK:
_12b=parseInt(_12a);
break;
case DAY:
_12b=_129;
break;
case WEEKDAY:
var days=Math.round(_129);
var _131=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_131*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_131=parseInt(days/7);
mod=days%7;
var _136=new Date(dtA);
_136.setDate(_136.getDate()+(_131*7));
var _137=_136.getDay();
if(_129>0){
switch(true){
case aDay==6:
adj=-1;
break;
case aDay==0:
adj=0;
break;
case bDay==6:
adj=-1;
break;
case bDay==0:
adj=-2;
break;
case (_137+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_129<0){
switch(true){
case aDay==6:
adj=0;
break;
case aDay==0:
adj=1;
break;
case bDay==6:
adj=2;
break;
case bDay==0:
adj=1;
break;
case (_137+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_131*2);
}
_12b=days;
break;
case HOUR:
_12b=_128;
break;
case MINUTE:
_12b=_127;
break;
case SECOND:
_12b=_126;
break;
case MILLISECOND:
_12b=_125;
break;
default:
break;
}
}
return Math.round(_12b);
};
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_138,_139){
if(!dojo.lang.isFunction(_139)){
dojo.raise("dojo.inherits: superclass argument ["+_139+"] must be a function (subclass: ["+_138+"']");
}
_138.prototype=new _139();
_138.prototype.constructor=_138;
_138.superclass=_139.prototype;
_138["super"]=_139.prototype;
};
dojo.lang._mixin=function(obj,_13b){
var tobj={};
for(var x in _13b){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_13b[x])){
obj[x]=_13b[x];
}
}
if(dojo.render.html.ie&&(typeof (_13b["toString"])=="function")&&(_13b["toString"]!=obj["toString"])&&(_13b["toString"]!=tobj["toString"])){
obj.toString=_13b.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_13f){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_142,_143){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_142.prototype,arguments[i]);
}
return _142;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_146,_147,_148,_149){
if(!dojo.lang.isArrayLike(_146)&&dojo.lang.isArrayLike(_147)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_146;
_146=_147;
_147=temp;
}
var _14b=dojo.lang.isString(_146);
if(_14b){
_146=_146.split("");
}
if(_149){
var step=-1;
var i=_146.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_146.length;
}
if(_148){
while(i!=end){
if(_146[i]===_147){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_146[i]==_147){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_14f,_150,_151){
return dojo.lang.find(_14f,_150,_151,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_152,_153){
return dojo.lang.find(_152,_153)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_15e,_15f){
var args=[];
for(var x=2;x<arguments.length;x++){
args.push(arguments[x]);
}
var fcn=(dojo.lang.isString(_15f)?_15e[_15f]:_15f)||function(){
};
return function(){
var ta=args.concat([]);
for(var x=0;x<arguments.length;x++){
ta.push(arguments[x]);
}
return fcn.apply(_15e,ta);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_165,_166,_167){
var nso=(_166||dojo.lang.anon);
if((_167)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_165){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_165;
return ret;
};
dojo.lang.forward=function(_16b){
return function(){
return this[_16b].apply(this,arguments);
};
};
dojo.lang.curry=function(_16c,func){
var _16e=[];
_16c=_16c||dj_global;
if(dojo.lang.isString(func)){
func=_16c[func];
}
for(var x=2;x<arguments.length;x++){
_16e.push(arguments[x]);
}
var _170=(func["__preJoinArity"]||func.length)-_16e.length;
function gather(_171,_172,_173){
var _174=_173;
var _175=_172.slice(0);
for(var x=0;x<_171.length;x++){
_175.push(_171[x]);
}
_173=_173-_171.length;
if(_173<=0){
var res=func.apply(_16c,_175);
_173=_174;
return res;
}else{
return function(){
return gather(arguments,_175,_173);
};
}
}
return gather([],_16e,_170);
};
dojo.lang.curryArguments=function(_178,func,args,_17b){
var _17c=[];
var x=_17b||0;
for(x=_17b;x<args.length;x++){
_17c.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_178,func].concat(_17c));
};
dojo.lang.tryThese=function(){
for(var x=0;x<arguments.length;x++){
try{
if(typeof arguments[x]=="function"){
var ret=(arguments[x]());
if(ret){
return ret;
}
}
}
catch(e){
dojo.debug(e);
}
}
};
dojo.lang.delayThese=function(farr,cb,_182,_183){
if(!farr.length){
if(typeof _183=="function"){
_183();
}
return;
}
if((typeof _182=="undefined")&&(typeof cb=="number")){
_182=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_182){
_182=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_182,_183);
},_182);
};
dojo.provide("dojo.string.common");
dojo.string.trim=function(str,wh){
if(!str.replace){
return str;
}
if(!str.length){
return str;
}
var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g);
return str.replace(re,"");
};
dojo.string.trimStart=function(str){
return dojo.string.trim(str,1);
};
dojo.string.trimEnd=function(str){
return dojo.string.trim(str,-1);
};
dojo.string.repeat=function(str,_18a,_18b){
var out="";
for(var i=0;i<_18a;i++){
out+=str;
if(_18b&&i<_18a-1){
out+=_18b;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.lang.array");
dojo.lang.mixin(dojo.lang,{has:function(obj,name){
try{
return typeof obj[name]!="undefined";
}
catch(e){
return false;
}
},isEmpty:function(obj){
if(dojo.lang.isObject(obj)){
var tmp={};
var _19d=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_19d++;
break;
}
}
return _19d==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_1a1){
var _1a2=dojo.lang.isString(arr);
if(_1a2){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_1a1)){
_1a1=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_1a1){
var _1a3=obj;
obj=_1a1;
_1a1=_1a3;
}
}
if(Array.map){
var _1a4=Array.map(arr,_1a1,obj);
}else{
var _1a4=[];
for(var i=0;i<arr.length;++i){
_1a4.push(_1a1.call(obj,arr[i]));
}
}
if(_1a2){
return _1a4.join("");
}else{
return _1a4;
}
},reduce:function(arr,_1a7,obj,_1a9){
var _1aa=_1a7;
if(arguments.length==2){
_1a9=_1a7;
_1aa=arr[0];
arr=arr.slice(1);
}else{
if(arguments.length==3){
if(dojo.lang.isFunction(obj)){
_1a9=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_1a9;
_1a9=obj;
obj=tmp;
}
}
}
var ob=obj||dj_global;
dojo.lang.map(arr,function(val){
_1aa=_1a9.call(ob,_1aa,val);
});
return _1aa;
},forEach:function(_1ae,_1af,_1b0){
if(dojo.lang.isString(_1ae)){
_1ae=_1ae.split("");
}
if(Array.forEach){
Array.forEach(_1ae,_1af,_1b0);
}else{
if(!_1b0){
_1b0=dj_global;
}
for(var i=0,l=_1ae.length;i<l;i++){
_1af.call(_1b0,_1ae[i],i,_1ae);
}
}
},_everyOrSome:function(_1b3,arr,_1b5,_1b6){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_1b3?"every":"some"](arr,_1b5,_1b6);
}else{
if(!_1b6){
_1b6=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _1b9=_1b5.call(_1b6,arr[i],i,arr);
if(_1b3&&!_1b9){
return false;
}else{
if((!_1b3)&&(_1b9)){
return true;
}
}
}
return Boolean(_1b3);
}
},every:function(arr,_1bb,_1bc){
return this._everyOrSome(true,arr,_1bb,_1bc);
},some:function(arr,_1be,_1bf){
return this._everyOrSome(false,arr,_1be,_1bf);
},filter:function(arr,_1c1,_1c2){
var _1c3=dojo.lang.isString(arr);
if(_1c3){
arr=arr.split("");
}
var _1c4;
if(Array.filter){
_1c4=Array.filter(arr,_1c1,_1c2);
}else{
if(!_1c2){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_1c2=dj_global;
}
_1c4=[];
for(var i=0;i<arr.length;i++){
if(_1c1.call(_1c2,arr[i],i,arr)){
_1c4.push(arr[i]);
}
}
}
if(_1c3){
return _1c4.join("");
}else{
return _1c4;
}
},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;
},toArray:function(_1c9,_1ca){
var _1cb=[];
for(var i=_1ca||0;i<_1c9.length;i++){
_1cb.push(_1c9[i]);
}
return _1cb;
}});
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_1cd,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _1cd.replace(/\%\{(\w+)\}/g,function(_1d0,key){
if(typeof (map[key])!="undefined"&&map[key]!=null){
return map[key];
}
dojo.raise("Substitution not found: "+key);
});
};
dojo.string.capitalize=function(str){
if(!dojo.lang.isString(str)){
return "";
}
if(arguments.length==0){
str=this;
}
var _1d3=str.split(" ");
for(var i=0;i<_1d3.length;i++){
_1d3[i]=_1d3[i].charAt(0).toUpperCase()+_1d3[i].substring(1);
}
return _1d3.join(" ");
};
dojo.string.isBlank=function(str){
if(!dojo.lang.isString(str)){
return true;
}
return (dojo.string.trim(str).length==0);
};
dojo.string.encodeAscii=function(str){
if(!dojo.lang.isString(str)){
return str;
}
var ret="";
var _1d8=escape(str);
var _1d9,re=/%u([0-9A-F]{4})/i;
while((_1d9=_1d8.match(re))){
var num=Number("0x"+_1d9[1]);
var _1dc=escape("&#"+num+";");
ret+=_1d8.substring(0,_1d9.index)+_1dc;
_1d8=_1d8.substring(_1d9.index+_1d9[0].length);
}
ret+=_1d8.replace(/\+/g,"%2B");
return ret;
};
dojo.string.escape=function(type,str){
var args=dojo.lang.toArray(arguments,1);
switch(type.toLowerCase()){
case "xml":
case "html":
case "xhtml":
return dojo.string.escapeXml.apply(this,args);
case "sql":
return dojo.string.escapeSql.apply(this,args);
case "regexp":
case "regex":
return dojo.string.escapeRegExp.apply(this,args);
case "javascript":
case "jscript":
case "js":
return dojo.string.escapeJavaScript.apply(this,args);
case "ascii":
return dojo.string.encodeAscii.apply(this,args);
default:
return str;
}
};
dojo.string.escapeXml=function(str,_1e1){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_1e1){
str=str.replace(/'/gm,"&#39;");
}
return str;
};
dojo.string.escapeSql=function(str){
return str.replace(/'/gm,"''");
};
dojo.string.escapeRegExp=function(str){
return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1");
};
dojo.string.escapeJavaScript=function(str){
return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1");
};
dojo.string.escapeString=function(str){
return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");
};
dojo.string.summary=function(str,len){
if(!len||str.length<=len){
return str;
}
return str.substring(0,len).replace(/\.+$/,"")+"...";
};
dojo.string.endsWith=function(str,end,_1ea){
if(_1ea){
str=str.toLowerCase();
end=end.toLowerCase();
}
if((str.length-end.length)<0){
return false;
}
return str.lastIndexOf(end)==str.length-end.length;
};
dojo.string.endsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.endsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.startsWith=function(str,_1ee,_1ef){
if(_1ef){
str=str.toLowerCase();
_1ee=_1ee.toLowerCase();
}
return str.indexOf(_1ee)==0;
};
dojo.string.startsWithAny=function(str){
for(var i=1;i<arguments.length;i++){
if(dojo.string.startsWith(str,arguments[i])){
return true;
}
}
return false;
};
dojo.string.has=function(str){
for(var i=1;i<arguments.length;i++){
if(str.indexOf(arguments[i])>-1){
return true;
}
}
return false;
};
dojo.string.normalizeNewlines=function(text,_1f5){
if(_1f5=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_1f5=="\r"){
text=text.replace(/\r\n/g,"\r");
text=text.replace(/\n/g,"\r");
}else{
text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1");
}
}
return text;
};
dojo.string.splitEscaped=function(str,_1f7){
var _1f8=[];
for(var i=0,_1fa=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_1f7){
_1f8.push(str.substring(_1fa,i));
_1fa=i+1;
}
}
_1f8.push(str.substr(_1fa));
return _1f8;
};
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_1fb){
this.pairs=[];
this.returnWrappers=_1fb||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_1fd,wrap,_1ff,_200){
var type=(_200)?"unshift":"push";
this.pairs[type]([name,_1fd,wrap,_1ff]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_208,wrap,_20a){
dojo.json.jsonRegistry.register(name,_208,wrap,_20a);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _20d=typeof (o);
if(_20d=="undefined"){
return "undefined";
}else{
if((_20d=="number")||(_20d=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_20d=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _20f;
if(typeof (o.__json__)=="function"){
_20f=o.__json__();
if(o!==_20f){
return me(_20f);
}
}
if(typeof (o.json)=="function"){
_20f=o.json();
if(o!==_20f){
return me(_20f);
}
}
if(_20d!="function"&&typeof (o.length)=="number"){
var res=[];
for(var i=0;i<o.length;i++){
var val=me(o[i]);
if(typeof (val)!="string"){
val="undefined";
}
res.push(val);
}
return "["+res.join(",")+"]";
}
try{
window.o=o;
_20f=dojo.json.jsonRegistry.match(o);
return me(_20f);
}
catch(e){
}
if(_20d=="function"){
return null;
}
res=[];
for(var k in o){
var _214;
if(typeof (k)=="number"){
_214="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_214=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_214+":"+val);
}
return "{"+res.join(",")+"}";
}};
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("dojo.charting.*");
dojo.provide("dojo.gfx.color");
dojo.gfx.color.Color=function(r,g,b,a){
if(dojo.lang.isArray(r)){
this.r=r[0];
this.g=r[1];
this.b=r[2];
this.a=r[3]||1;
}else{
if(dojo.lang.isString(r)){
var rgb=dojo.gfx.color.extractRGB(r);
this.r=rgb[0];
this.g=rgb[1];
this.b=rgb[2];
this.a=g||1;
}else{
if(r instanceof dojo.gfx.color.Color){
this.r=r.r;
this.b=r.b;
this.g=r.g;
this.a=r.a;
}else{
this.r=r;
this.g=g;
this.b=b;
this.a=a;
}
}
}
};
dojo.gfx.color.Color.fromArray=function(arr){
return new dojo.gfx.color.Color(arr[0],arr[1],arr[2],arr[3]);
};
dojo.extend(dojo.gfx.color.Color,{toRgb:function(_21b){
if(_21b){
return this.toRgba();
}else{
return [this.r,this.g,this.b];
}
},toRgba:function(){
return [this.r,this.g,this.b,this.a];
},toHex:function(){
return dojo.gfx.color.rgb2hex(this.toRgb());
},toCss:function(){
return "rgb("+this.toRgb().join()+")";
},toString:function(){
return this.toHex();
},blend:function(_21c,_21d){
var rgb=null;
if(dojo.lang.isArray(_21c)){
rgb=_21c;
}else{
if(_21c instanceof dojo.gfx.color.Color){
rgb=_21c.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_21c).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_21d);
}});
dojo.gfx.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],lime:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]};
dojo.gfx.color.blend=function(a,b,_221){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_221);
}
if(!_221){
_221=0;
}
_221=Math.min(Math.max(-1,_221),1);
_221=((_221+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_221));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_226){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_226));
};
dojo.gfx.color.extractRGB=function(_227){
var hex="0123456789abcdef";
_227=_227.toLowerCase();
if(_227.indexOf("rgb")==0){
var _229=_227.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_229.splice(1,3);
return ret;
}else{
var _22b=dojo.gfx.color.hex2rgb(_227);
if(_22b){
return _22b;
}else{
return dojo.gfx.color.named[_227]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _22d="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_22d+"]","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]=_22d.indexOf(rgb[i].charAt(0))*16+_22d.indexOf(rgb[i].charAt(1));
}
return rgb;
};
dojo.gfx.color.rgb2hex=function(r,g,b){
if(dojo.lang.isArray(r)){
g=r[1]||0;
b=r[2]||0;
r=r[0]||0;
}
var ret=dojo.lang.map([r,g,b],function(x){
x=new Number(x);
var s=x.toString(16);
while(s.length<2){
s="0"+s;
}
return s;
});
ret.unshift("#");
return ret.join("");
};
dojo.provide("dojo.gfx.color.hsl");
dojo.lang.extend(dojo.gfx.color.Color,{toHsl:function(){
return dojo.gfx.color.rgb2hsl(this.toRgb());
}});
dojo.gfx.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 _23e=max-min;
l=(min+max)/2;
s=0;
if((l>0)&&(l<1)){
s=_23e/((l<0.5)?(2*l):(2-2*l));
}
h=0;
if(_23e>0){
if((max==r)&&(max!=g)){
h+=(g-b)/_23e;
}
if((max==g)&&(max!=b)){
h+=(2+(b-r)/_23e);
}
if((max==b)&&(max!=r)){
h+=(4+(r-g)/_23e);
}
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.gfx.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;
}
var r,g,b;
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.gfx.color.hsl2hex=function(h,s,l){
var rgb=dojo.gfx.color.hsl2rgb(h,s,l);
return dojo.gfx.color.rgb2hex(rgb[0],rgb[1],rgb[2]);
};
dojo.gfx.color.hex2hsl=function(hex){
var rgb=dojo.gfx.color.hex2rgb(hex);
return dojo.gfx.color.rgb2hsl(rgb[0],rgb[1],rgb[2]);
};
dojo.provide("dojo.charting.Axis");
dojo.charting.Axis=function(_24b,_24c,_24d){
var id="dojo-charting-axis-"+dojo.charting.Axis.count++;
this.getId=function(){
return id;
};
this.setId=function(key){
id=key;
};
this.scale=_24c||"linear";
this.label=_24b||"";
this.showLabel=true;
this.showLabels=true;
this.showLines=false;
this.showTicks=false;
this.range={upper:100,lower:0};
this.origin="min";
this._origin=null;
this.labels=_24d||[];
this._labels=[];
this.nodes={main:null,axis:null,label:null,labels:null,lines:null,ticks:null};
this._rerender=false;
};
dojo.charting.Axis.count=0;
dojo.extend(dojo.charting.Axis,{getCoord:function(val,_251,plot){
val=parseFloat(val,10);
var area=_251.getArea();
if(plot.axisX==this){
var _254=0-this.range.lower;
var min=this.range.lower+_254;
var max=this.range.upper+_254;
val+=_254;
return (val*((area.right-area.left)/max))+area.left;
}else{
var max=this.range.upper;
var min=this.range.lower;
var _254=0;
if(min<0){
_254+=Math.abs(min);
}
max+=_254;
min+=_254;
val+=_254;
var pmin=area.bottom;
var pmax=area.top;
return (((pmin-pmax)/(max-min))*(max-val))+pmax;
}
},initializeOrigin:function(_259,_25a){
if(this._origin==null){
this._origin=this.origin;
}
if(isNaN(this._origin)){
if(this._origin.toLowerCase()=="max"){
this.origin=_259.range[(_25a=="y")?"upper":"lower"];
}else{
if(this._origin.toLowerCase()=="min"){
this.origin=_259.range[(_25a=="y")?"lower":"upper"];
}else{
this.origin=0;
}
}
}
},initializeLabels:function(){
this._labels=[];
if(this.labels.length==0){
this.showLabels=false;
this.showLines=false;
this.showTicks=false;
}else{
if(this.labels[0].label&&this.labels[0].value!=null){
for(var i=0;i<this.labels.length;i++){
this._labels.push(this.labels[i]);
}
}else{
if(!isNaN(this.labels[0])){
for(var i=0;i<this.labels.length;i++){
this._labels.push({label:this.labels[i],value:this.labels[i]});
}
}else{
var a=[];
for(var i=0;i<this.labels.length;i++){
a.push(this.labels[i]);
}
var s=a.shift();
this._labels.push({label:s,value:this.range.lower});
if(a.length>0){
var s=a.pop();
this._labels.push({label:s,value:this.range.upper});
}
if(a.length>0){
var _25e=this.range.upper-this.range.lower;
var step=_25e/(this.labels.length-1);
for(var i=1;i<=a.length;i++){
this._labels.push({label:a[i-1],value:this.range.lower+(step*i)});
}
}
}
}
}
},initialize:function(_260,plot,_262,_263){
this.destroy();
this.initializeOrigin(_262,_263);
this.initializeLabels();
var node=this.render(_260,plot,_262,_263);
return node;
},destroy:function(){
for(var p in this.nodes){
while(this.nodes[p]&&this.nodes[p].childNodes.length>0){
this.nodes[p].removeChild(this.nodes[p].childNodes[0]);
}
if(this.nodes[p]&&this.nodes[p].parentNode){
this.nodes[p].parentNode.removeChild(this.nodes[p]);
}
this.nodes[p]=null;
}
}});
dojo.provide("dojo.charting.Plotters");
dojo.provide("dojo.charting.Series");
dojo.charting.Series=function(_266){
var args=_266||{length:1};
this.dataSource=args.dataSource||null;
this.bindings={};
this.color=args.color;
this.label=args.label;
if(args.bindings){
for(var p in args.bindings){
this.addBinding(p,args.bindings[p]);
}
}
};
dojo.extend(dojo.charting.Series,{bind:function(src,_26a){
this.dataSource=src;
this.bindings=_26a;
},addBinding:function(name,_26c){
this.bindings[name]=_26c;
},evaluate:function(_26d){
var ret=[];
var a=this.dataSource.getData();
var l=a.length;
var _271=0;
var end=l;
if(_26d){
if(_26d.between){
for(var i=0;i<l;i++){
var fld=this.dataSource.getField(a[i],_26d.between.field);
if(fld>=_26d.between.low&&fld<=_26d.between.high){
var o={src:a[i],series:this};
for(var p in this.bindings){
o[p]=this.dataSource.getField(a[i],this.bindings[p]);
}
ret.push(o);
}
}
}else{
if(_26d.from||_26d.length){
if(_26d.from){
_271=Math.max(_26d.from,0);
if(_26d.to){
end=Math.min(_26d.to,end);
}
}else{
if(_26d.length<0){
_271=Math.max((end+length),0);
}else{
end=Math.min((_271+length),end);
}
}
for(var i=_271;i<end;i++){
var o={src:a[i],series:this};
for(var p in this.bindings){
o[p]=this.dataSource.getField(a[i],this.bindings[p]);
}
ret.push(o);
}
}
}
}else{
for(var i=_271;i<end;i++){
var o={src:a[i],series:this};
for(var p in this.bindings){
o[p]=this.dataSource.getField(a[i],this.bindings[p]);
}
ret.push(o);
}
}
if(ret.length>0&&typeof (ret[0].x)!="undefined"){
ret.sort(function(a,b){
if(a.x>b.x){
return 1;
}
if(a.x<b.x){
return -1;
}
return 0;
});
}
return ret;
},trends:{createRange:function(_279,len){
var idx=_279.length-1;
var _27c=(len||_279.length);
return {"index":idx,"length":_27c,"start":Math.max(idx-_27c,0)};
},mean:function(_27d,len){
var _27f=this.createRange(_27d,len);
if(_27f.index<0){
return 0;
}
var _280=0;
var _281=0;
for(var i=_27f.index;i>=_27f.start;i--){
_280+=_27d[i].y;
_281++;
}
_280/=Math.max(_281,1);
return _280;
},variance:function(_283,len){
var _285=this.createRange(_283,len);
if(_285.index<0){
return 0;
}
var _286=0;
var _287=0;
var _288=0;
for(var i=_285.index;i>=_285.start;i--){
_286+=_283[i].y;
_287+=Math.pow(_283[i].y,2);
_288++;
}
return (_287/_288)-Math.pow(_286/_288,2);
},standardDeviation:function(_28a,len){
return Math.sqrt(this.getVariance(_28a,len));
},max:function(_28c,len){
var _28e=this.createRange(_28c,len);
if(_28e.index<0){
return 0;
}
var max=Number.MIN_VALUE;
for(var i=_28e.index;i>=_28e.start;i--){
max=Math.max(_28c[i].y,max);
}
return max;
},min:function(_291,len){
var _293=this.createRange(_291,len);
if(_293.index<0){
return 0;
}
var min=Number.MAX_VALUE;
for(var i=_293.index;i>=_293.start;i--){
min=Math.min(_291[i].y,min);
}
return min;
},median:function(_296,len){
var _298=this.createRange(_296,len);
if(_298.index<0){
return 0;
}
var a=[];
for(var i=_298.index;i>=_298.start;i--){
var b=false;
for(var j=0;j<a.length;j++){
if(_296[i].y==a[j]){
b=true;
break;
}
}
if(!b){
a.push(_296[i].y);
}
}
a.sort();
if(a.length>0){
return a[Math.ceil(a.length/2)];
}
return 0;
},mode:function(_29d,len){
var _29f=this.createRange(_29d,len);
if(_29f.index<0){
return 0;
}
var o={};
var ret=0;
var _2a2=Number.MIN_VALUE;
for(var i=_29f.index;i>=_29f.start;i--){
if(!o[_29d[i].y]){
o[_29d[i].y]=1;
}else{
o[_29d[i].y]++;
}
}
for(var p in o){
if(_2a2<o[p]){
_2a2=o[p];
ret=p;
}
}
return ret;
}}});
dojo.provide("dojo.charting.Plot");
dojo.charting.RenderPlotSeries={Singly:"single",Grouped:"grouped"};
dojo.charting.Plot=function(_2a5,_2a6,_2a7){
var id="dojo-charting-plot-"+dojo.charting.Plot.count++;
this.getId=function(){
return id;
};
this.setId=function(key){
id=key;
};
this.axisX=null;
this.axisY=null;
this.series=[];
this.dataNode=null;
this.renderType=dojo.charting.RenderPlotSeries.Singly;
if(_2a5){
this.setAxis(_2a5,"x");
}
if(_2a6){
this.setAxis(_2a6,"y");
}
if(_2a7){
for(var i=0;i<_2a7.length;i++){
this.addSeries(_2a7[i]);
}
}
};
dojo.charting.Plot.count=0;
dojo.extend(dojo.charting.Plot,{addSeries:function(_2ab,_2ac){
if(_2ab.plotter){
this.series.push(_2ab);
}else{
this.series.push({data:_2ab,plotter:_2ac||dojo.charting.Plotters["Default"]});
}
},setAxis:function(axis,_2ae){
if(_2ae.toLowerCase()=="x"){
this.axisX=axis;
}else{
if(_2ae.toLowerCase()=="y"){
this.axisY=axis;
}
}
},getRanges:function(){
var xmin,xmax,ymin,ymax;
xmin=ymin=Number.MAX_VALUE;
xmax=ymax=Number.MIN_VALUE;
for(var i=0;i<this.series.length;i++){
var _2b4=this.series[i].data.evaluate();
for(var j=0;j<_2b4.length;j++){
var comp=_2b4[j];
xmin=Math.min(comp.x,xmin);
ymin=Math.min(comp.y,ymin);
xmax=Math.max(comp.x,xmax);
ymax=Math.max(comp.y,ymax);
}
}
return {x:{upper:xmax,lower:xmin},y:{upper:ymax,lower:ymin},toString:function(){
return "[ x:"+xmax+" - "+xmin+", y:"+ymax+" - "+ymin+"]";
}};
},destroy:function(){
var node=this.dataNode;
while(node&&node.childNodes&&node.childNodes.length>0){
node.removeChild(node.childNodes[0]);
}
this.dataNode=null;
}});
dojo.provide("dojo.charting.PlotArea");
dojo.charting.PlotArea=function(){
var id="dojo-charting-plotarea-"+dojo.charting.PlotArea.count++;
this.getId=function(){
return id;
};
this.setId=function(key){
id=key;
};
this.areaType="standard";
this.plots=[];
this.size={width:600,height:400};
this.padding={top:10,right:10,bottom:20,left:20};
this.nodes={main:null,area:null,background:null,axes:null,plots:null};
this._color={h:140,s:120,l:120,step:27};
};
dojo.charting.PlotArea.count=0;
dojo.extend(dojo.charting.PlotArea,{nextColor:function(){
var rgb=dojo.gfx.color.hsl2rgb(this._color.h,this._color.s,this._color.l);
this._color.h=(this._color.h+this._color.step)%360;
while(this._color.h<140){
this._color.h+=this._color.step;
}
return dojo.gfx.color.rgb2hex(rgb[0],rgb[1],rgb[2]);
},getArea:function(){
return {left:this.padding.left,right:this.size.width-this.padding.right,top:this.padding.top,bottom:this.size.height-this.padding.bottom,toString:function(){
var a=[this.top,this.right,this.bottom,this.left];
return "["+a.join()+"]";
}};
},getAxes:function(){
var axes={};
for(var i=0;i<this.plots.length;i++){
var plot=this.plots[i];
axes[plot.axisX.getId()]={axis:plot.axisX,drawAgainst:plot.axisY,plot:plot,plane:"x"};
axes[plot.axisY.getId()]={axis:plot.axisY,drawAgainst:plot.axisX,plot:plot,plane:"y"};
}
return axes;
},getLegendInfo:function(){
var a=[];
for(var i=0;i<this.plots.length;i++){
for(var j=0;j<this.plots[i].series.length;j++){
var data=this.plots[i].series[j].data;
a.push({label:data.label,color:data.color});
}
}
return a;
},setAxesRanges:function(){
var _2c3={};
var axes={};
for(var i=0;i<this.plots.length;i++){
var plot=this.plots[i];
var _2c3=plot.getRanges();
var x=_2c3.x;
var y=_2c3.y;
var ax,ay;
if(!axes[plot.axisX.getId()]){
axes[plot.axisX.getId()]=plot.axisX;
_2c3[plot.axisX.getId()]={upper:x.upper,lower:x.lower};
}
ax=_2c3[plot.axisX.getId()];
ax.upper=Math.max(ax.upper,x.upper);
ax.lower=Math.min(ax.lower,x.lower);
if(!axes[plot.axisY.getId()]){
axes[plot.axisY.getId()]=plot.axisY;
_2c3[plot.axisY.getId()]={upper:y.upper,lower:y.lower};
}
ay=_2c3[plot.axisY.getId()];
ay.upper=Math.max(ay.upper,y.upper);
ay.lower=Math.min(ay.lower,y.lower);
}
for(var p in axes){
axes[p].range=_2c3[p];
}
},render:function(_2cc,_2cd){
if(!this.nodes.main||!this.nodes.area||!this.nodes.background||!this.nodes.plots||!this.nodes.axes){
this.initialize();
}
this.resize();
for(var i=0;i<this.plots.length;i++){
var plot=this.plots[i];
if(plot.dataNode){
this.nodes.plots.removeChild(plot.dataNode);
}
var _2d0=this.initializePlot(plot);
switch(plot.renderType){
case dojo.charting.RenderPlotSeries.Grouped:
if(plot.series[0]){
_2d0.appendChild(plot.series[0].plotter(this,plot,_2cc,_2cd));
}
break;
case dojo.charting.RenderPlotSeries.Singly:
default:
for(var j=0;j<plot.series.length;j++){
var _2d2=plot.series[j];
var data=_2d2.data.evaluate(_2cc);
_2d0.appendChild(_2d2.plotter(data,this,plot,_2cd));
}
}
this.nodes.plots.appendChild(_2d0);
}
},destroy:function(){
for(var i=0;i<this.plots.length;i++){
this.plots[i].destroy();
}
for(var p in this.nodes){
var node=this.nodes[p];
if(!node){
continue;
}
if(!node.childNodes){
continue;
}
while(node.childNodes.length>0){
node.removeChild(node.childNodes[0]);
}
this.nodes[p]=null;
}
}});
dojo.provide("dojo.charting.Chart");
dojo.charting.Chart=function(node,_2d8,_2d9){
this.node=node||null;
this.title=_2d8||"Chart";
this.description=_2d9||"";
this.plotAreas=[];
};
dojo.extend(dojo.charting.Chart,{addPlotArea:function(obj,_2db){
if(obj.x!=null&&obj.left==null){
obj.left=obj.x;
}
if(obj.y!=null&&obj.top==null){
obj.top=obj.y;
}
this.plotAreas.push(obj);
if(_2db){
this.render();
}
},onInitialize:function(_2dc){
},onRender:function(_2dd){
},onDestroy:function(_2de){
},initialize:function(){
if(!this.node){
dojo.raise("dojo.charting.Chart.initialize: there must be a root node defined for the Chart.");
}
this.destroy();
this.render();
this.onInitialize(this);
},render:function(){
if(this.node.style.position!="absolute"){
this.node.style.position="relative";
}
for(var i=0;i<this.plotAreas.length;i++){
var area=this.plotAreas[i].plotArea;
var node=area.initialize();
node.style.position="absolute";
node.style.top=this.plotAreas[i].top+"px";
node.style.left=this.plotAreas[i].left+"px";
this.node.appendChild(node);
area.render();
}
},destroy:function(){
for(var i=0;i<this.plotAreas.length;i++){
this.plotAreas[i].plotArea.destroy();
}
while(this.node&&this.node.childNodes&&this.node.childNodes.length>0){
this.node.removeChild(this.node.childNodes[0]);
}
}});
dojo.provide("dojo.charting.svg.Axis");
if(dojo.render.svg.capable){
dojo.extend(dojo.charting.Axis,{renderLines:function(_2e3,plot,_2e5){
if(this.nodes.lines){
while(this.nodes.lines.childNodes.length>0){
this.nodes.lines.removeChild(this.nodes.lines.childNodes[0]);
}
if(this.nodes.lines.parentNode){
this.nodes.lines.parentNode.removeChild(this.nodes.lines);
this.nodes.lines=null;
}
}
var area=_2e3.getArea();
var g=this.nodes.lines=document.createElementNS(dojo.svg.xmlns.svg,"g");
g.setAttribute("id",this.getId()+"-lines");
for(var i=0;i<this._labels.length;i++){
if(this._labels[i].value==this.origin){
continue;
}
var v=this.getCoord(this._labels[i].value,_2e3,plot);
var l=document.createElementNS(dojo.svg.xmlns.svg,"line");
l.setAttribute("style","stroke:#999;stroke-width:1px;stroke-dasharray:1,4;");
if(_2e5=="x"){
l.setAttribute("y1",area.top);
l.setAttribute("y2",area.bottom);
l.setAttribute("x1",v);
l.setAttribute("x2",v);
}else{
if(_2e5=="y"){
l.setAttribute("y1",v);
l.setAttribute("y2",v);
l.setAttribute("x1",area.left);
l.setAttribute("x2",area.right);
}
}
g.appendChild(l);
}
return g;
},renderTicks:function(_2eb,plot,_2ed,_2ee){
if(this.nodes.ticks){
while(this.nodes.ticks.childNodes.length>0){
this.nodes.ticks.removeChild(this.nodes.ticks.childNodes[0]);
}
if(this.nodes.ticks.parentNode){
this.nodes.ticks.parentNode.removeChild(this.nodes.ticks);
this.nodes.ticks=null;
}
}
var g=this.nodes.ticks=document.createElementNS(dojo.svg.xmlns.svg,"g");
g.setAttribute("id",this.getId()+"-ticks");
for(var i=0;i<this._labels.length;i++){
var v=this.getCoord(this._labels[i].value,_2eb,plot);
var l=document.createElementNS(dojo.svg.xmlns.svg,"line");
l.setAttribute("style","stroke:#000;stroke-width:1pt;");
if(_2ed=="x"){
l.setAttribute("y1",_2ee);
l.setAttribute("y2",_2ee+3);
l.setAttribute("x1",v);
l.setAttribute("x2",v);
}else{
if(_2ed=="y"){
l.setAttribute("y1",v);
l.setAttribute("y2",v);
l.setAttribute("x1",_2ee-2);
l.setAttribute("x2",_2ee+2);
}
}
g.appendChild(l);
}
return g;
},renderLabels:function(_2f3,plot,_2f5,_2f6,_2f7,_2f8){
function createLabel(_2f9,x,y,_2fc,_2fd){
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",x);
text.setAttribute("y",(_2f5=="x"?y:y+2));
text.setAttribute("style","text-anchor:"+_2fd+";font-family:sans-serif;font-size:"+_2fc+"px;fill:#000;");
text.appendChild(document.createTextNode(_2f9));
return text;
}
if(this.nodes.labels){
while(this.nodes.labels.childNodes.length>0){
this.nodes.labels.removeChild(this.nodes.labels.childNodes[0]);
}
if(this.nodes.labels.parentNode){
this.nodes.labels.parentNode.removeChild(this.nodes.labels);
this.nodes.labels=null;
}
}
var g=this.nodes.labels=document.createElementNS(dojo.svg.xmlns.svg,"g");
g.setAttribute("id",this.getId()+"-labels");
for(var i=0;i<this._labels.length;i++){
var v=this.getCoord(this._labels[i].value,_2f3,plot);
if(_2f5=="x"){
g.appendChild(createLabel(this._labels[i].label,v,_2f6,_2f7,_2f8));
}else{
if(_2f5=="y"){
g.appendChild(createLabel(this._labels[i].label,_2f6,v,_2f7,_2f8));
}
}
}
return g;
},render:function(_302,plot,_304,_305){
if(!this._rerender&&this.nodes.main){
return this.nodes.main;
}
this._rerender=false;
var area=_302.getArea();
var _307=1;
var _308="stroke:#000;stroke-width:"+_307+"px;";
var _309=10;
var _30a=_304.getCoord(this.origin,_302,plot);
this.nodes.main=document.createElementNS(dojo.svg.xmlns.svg,"g");
var g=this.nodes.main;
g.setAttribute("id",this.getId());
var line=this.nodes.axis=document.createElementNS(dojo.svg.xmlns.svg,"line");
if(_305=="x"){
line.setAttribute("y1",_30a);
line.setAttribute("y2",_30a);
line.setAttribute("x1",area.left-_307);
line.setAttribute("x2",area.right+_307);
line.setAttribute("style",_308);
var y=_30a+_309+2;
if(this.showLines){
g.appendChild(this.renderLines(_302,plot,_305,y));
}
if(this.showTicks){
g.appendChild(this.renderTicks(_302,plot,_305,_30a));
}
if(this.showLabels){
g.appendChild(this.renderLabels(_302,plot,_305,y,_309,"middle"));
}
if(this.showLabel&&this.label){
var x=_302.size.width/2;
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",x);
text.setAttribute("y",(_30a+(_309*2)+(_309/2)));
text.setAttribute("style","text-anchor:middle;font-family:sans-serif;font-weight:bold;font-size:"+(_309+2)+"px;fill:#000;");
text.appendChild(document.createTextNode(this.label));
g.appendChild(text);
}
}else{
line.setAttribute("x1",_30a);
line.setAttribute("x2",_30a);
line.setAttribute("y1",area.top);
line.setAttribute("y2",area.bottom);
line.setAttribute("style",_308);
var _310=this.origin==_304.range.upper;
var x=_30a+(_310?4:-4);
var _311=_310?"start":"end";
if(this.showLines){
g.appendChild(this.renderLines(_302,plot,_305,x));
}
if(this.showTicks){
g.appendChild(this.renderTicks(_302,plot,_305,_30a));
}
if(this.showLabels){
g.appendChild(this.renderLabels(_302,plot,_305,x,_309,_311));
}
if(this.showLabel&&this.label){
var x=_310?(_30a+(_309*2)+(_309/2)):(_30a-(_309*4));
var y=_302.size.height/2;
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",x);
text.setAttribute("y",y);
text.setAttribute("transform","rotate(90, "+x+", "+y+")");
text.setAttribute("style","text-anchor:middle;font-family:sans-serif;font-weight:bold;font-size:"+(_309+2)+"px;fill:#000;");
text.appendChild(document.createTextNode(this.label));
g.appendChild(text);
}
}
g.appendChild(line);
return g;
}});
}
dojo.provide("dojo.dom");
dojo.dom.ELEMENT_NODE=1;
dojo.dom.ATTRIBUTE_NODE=2;
dojo.dom.TEXT_NODE=3;
dojo.dom.CDATA_SECTION_NODE=4;
dojo.dom.ENTITY_REFERENCE_NODE=5;
dojo.dom.ENTITY_NODE=6;
dojo.dom.PROCESSING_INSTRUCTION_NODE=7;
dojo.dom.COMMENT_NODE=8;
dojo.dom.DOCUMENT_NODE=9;
dojo.dom.DOCUMENT_TYPE_NODE=10;
dojo.dom.DOCUMENT_FRAGMENT_NODE=11;
dojo.dom.NOTATION_NODE=12;
dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml";
dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"};
dojo.dom.isNode=function(wh){
if(typeof Element=="function"){
try{
return wh instanceof Element;
}
catch(e){
}
}else{
return wh&&!isNaN(wh.nodeType);
}
};
dojo.dom.getUniqueId=function(){
var _313=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_313.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_315,_316){
var node=_315.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_316&&node&&node.tagName&&node.tagName.toLowerCase()!=_316.toLowerCase()){
node=dojo.dom.nextElement(node,_316);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_318,_319){
var node=_318.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_319&&node&&node.tagName&&node.tagName.toLowerCase()!=_319.toLowerCase()){
node=dojo.dom.prevElement(node,_319);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_31c){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_31c&&_31c.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_31c);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_31e){
if(!node){
return null;
}
if(_31e){
_31e=_31e.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_31e&&_31e.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_31e);
}
return node;
};
dojo.dom.moveChildren=function(_31f,_320,trim){
var _322=0;
if(trim){
while(_31f.hasChildNodes()&&_31f.firstChild.nodeType==dojo.dom.TEXT_NODE){
_31f.removeChild(_31f.firstChild);
}
while(_31f.hasChildNodes()&&_31f.lastChild.nodeType==dojo.dom.TEXT_NODE){
_31f.removeChild(_31f.lastChild);
}
}
while(_31f.hasChildNodes()){
_320.appendChild(_31f.firstChild);
_322++;
}
return _322;
};
dojo.dom.copyChildren=function(_323,_324,trim){
var _326=_323.cloneNode(true);
return this.moveChildren(_326,_324,trim);
};
dojo.dom.replaceChildren=function(node,_328){
var _329=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_329.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_328);
for(var i=0;i<_329.length;i++){
dojo.dom.destroyNode(_329[i]);
}
};
dojo.dom.removeChildren=function(node){
var _32c=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _32c;
};
dojo.dom.replaceNode=function(node,_32e){
return node.parentNode.replaceChild(_32e,node);
};
dojo.dom.destroyNode=function(node){
if(node.parentNode){
node=dojo.dom.removeNode(node);
}
if(node.nodeType!=3){
if(dojo.evalObjPath("dojo.event.browser.clean",false)){
dojo.event.browser.clean(node);
}
if(dojo.render.html.ie){
node.outerHTML="";
}
}
};
dojo.dom.removeNode=function(node){
if(node&&node.parentNode){
return node.parentNode.removeChild(node);
}
};
dojo.dom.getAncestors=function(node,_332,_333){
var _334=[];
var _335=(_332&&(_332 instanceof Function||typeof _332=="function"));
while(node){
if(!_335||_332(node)){
_334.push(node);
}
if(_333&&_334.length>0){
return _334[0];
}
node=node.parentNode;
}
if(_333){
return null;
}
return _334;
};
dojo.dom.getAncestorsByTag=function(node,tag,_338){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_338);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_33d,_33e){
if(_33e&&node){
node=node.parentNode;
}
while(node){
if(node==_33d){
return true;
}
node=node.parentNode;
}
return false;
};
dojo.dom.innerXML=function(node){
if(node.innerXML){
return node.innerXML;
}else{
if(node.xml){
return node.xml;
}else{
if(typeof XMLSerializer!="undefined"){
return (new XMLSerializer()).serializeToString(node);
}
}
}
};
dojo.dom.createDocument=function(){
var doc=null;
var _341=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _342=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_342.length;i++){
try{
doc=new ActiveXObject(_342[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_341.implementation)&&(_341.implementation.createDocument)){
doc=_341.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_345){
if(!_345){
_345="text/xml";
}
if(!dj_undef("DOMParser")){
var _346=new DOMParser();
return _346.parseFromString(str,_345);
}else{
if(!dj_undef("ActiveXObject")){
var _347=dojo.dom.createDocument();
if(_347){
_347.async=false;
_347.loadXML(str);
return _347;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _348=dojo.doc();
if(_348.createElement){
var tmp=_348.createElement("xml");
tmp.innerHTML=str;
if(_348.implementation&&_348.implementation.createDocument){
var _34a=_348.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_34a.importNode(tmp.childNodes.item(i),true);
}
return _34a;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_34d){
if(_34d.firstChild){
_34d.insertBefore(node,_34d.firstChild);
}else{
_34d.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_350){
if((_350!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _351=ref.parentNode;
_351.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_354){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_354!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_354);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_358){
if((!node)||(!ref)||(!_358)){
return false;
}
switch(_358.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,_35a,_35b){
var _35c=_35a.childNodes;
if(!_35c.length||_35c.length==_35b){
_35a.appendChild(node);
return true;
}
if(_35b==0){
return dojo.dom.prependChild(node,_35a);
}
return dojo.dom.insertAfter(node,_35c[_35b-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _35f=dojo.doc();
dojo.dom.replaceChildren(node,_35f.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _360="";
if(node==null){
return _360;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_360+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_360+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _360;
}
};
dojo.dom.hasParent=function(node){
return Boolean(node&&node.parentNode&&dojo.dom.isNode(node.parentNode));
};
dojo.dom.isTag=function(node){
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName==String(arguments[i])){
return String(arguments[i]);
}
}
}
return "";
};
dojo.dom.setAttributeNS=function(elem,_366,_367,_368){
if(elem==null||((elem==undefined)&&(typeof elem=="undefined"))){
dojo.raise("No element given to dojo.dom.setAttributeNS");
}
if(!((elem.setAttributeNS==undefined)&&(typeof elem.setAttributeNS=="undefined"))){
elem.setAttributeNS(_366,_367,_368);
}else{
var _369=elem.ownerDocument;
var _36a=_369.createNode(2,_367,_366);
_36a.nodeValue=_368;
elem.setAttributeNode(_36a);
}
};
dojo.provide("dojo.svg");
dojo.mixin(dojo.svg,dojo.dom);
dojo.svg.graphics=dojo.svg.g=new function(d){
this.suspend=function(){
try{
d.documentElement.suspendRedraw(0);
}
catch(e){
}
};
this.resume=function(){
try{
d.documentElement.unsuspendRedraw(0);
}
catch(e){
}
};
this.force=function(){
try{
d.documentElement.forceRedraw();
}
catch(e){
}
};
}(document);
dojo.svg.animations=dojo.svg.anim=new function(d){
this.arePaused=function(){
try{
return d.documentElement.animationsPaused();
}
catch(e){
return false;
}
};
this.pause=function(){
try{
d.documentElement.pauseAnimations();
}
catch(e){
}
};
this.resume=function(){
try{
d.documentElement.unpauseAnimations();
}
catch(e){
}
};
}(document);
dojo.svg.toCamelCase=function(_36d){
var arr=_36d.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.svg.toSelectorCase=function(_371){
return _371.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.svg.getStyle=function(node,_373){
return document.defaultView.getComputedStyle(node,_373);
};
dojo.svg.getNumericStyle=function(node,_375){
return parseFloat(dojo.svg.getStyle(node,_375));
};
dojo.svg.getOpacity=function(node){
return Math.min(1,dojo.svg.getNumericStyle(node,"fill-opacity"));
};
dojo.svg.setOpacity=function(node,_378){
node.setAttributeNS(this.xmlns.svg,"fill-opacity",_378);
node.setAttributeNS(this.xmlns.svg,"stroke-opacity",_378);
};
dojo.svg.clearOpacity=function(node){
node.setAttributeNS(this.xmlns.svg,"fill-opacity","1.0");
node.setAttributeNS(this.xmlns.svg,"stroke-opacity","1.0");
};
dojo.svg.getCoords=function(node){
if(node.getBBox){
var box=node.getBBox();
return {x:box.x,y:box.y};
}
return null;
};
dojo.svg.setCoords=function(node,_37d){
var p=dojo.svg.getCoords();
if(!p){
return;
}
var dx=p.x-_37d.x;
var dy=p.y-_37d.y;
dojo.svg.translate(node,dx,dy);
};
dojo.svg.getDimensions=function(node){
if(node.getBBox){
var box=node.getBBox();
return {width:box.width,height:box.height};
}
return null;
};
dojo.svg.setDimensions=function(node,dim){
if(node.width){
node.width.baseVal.value=dim.width;
node.height.baseVal.value=dim.height;
}else{
if(node.r){
node.r.baseVal.value=Math.min(dim.width,dim.height)/2;
}else{
if(node.rx){
node.rx.baseVal.value=dim.width/2;
node.ry.baseVal.value=dim.height/2;
}
}
}
};
dojo.svg.translate=function(node,dx,dy){
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
t.setTranslate(dx,dy);
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.scale=function(node,_38a,_38b){
if(!_38b){
var _38b=_38a;
}
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
t.setScale(_38a,_38b);
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.rotate=function(node,ang,cx,cy){
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
if(cx==null){
t.setMatrix(t.matrix.rotate(ang));
}else{
t.setRotate(ang,cx,cy);
}
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.skew=function(node,ang,axis){
var dir=axis||"x";
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
if(dir!="x"){
t.setSkewY(ang);
}else{
t.setSkewX(ang);
}
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.flip=function(node,axis){
var dir=axis||"x";
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
t.setMatrix((dir!="x")?t.matrix.flipY():t.matrix.flipX());
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.invert=function(node){
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var t=node.ownerSVGElement.createSVGTransform();
t.setMatrix(t.matrix.inverse());
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.applyMatrix=function(node,a,b,c,d,e,f){
if(node.transform&&node.ownerSVGElement&&node.ownerSVGElement.createSVGTransform){
var m;
if(b){
var m=node.ownerSVGElement.createSVGMatrix();
m.a=a;
m.b=b;
m.c=c;
m.d=d;
m.e=e;
m.f=f;
}else{
m=a;
}
var t=node.ownerSVGElement.createSVGTransform();
t.setMatrix(m);
node.transform.baseVal.appendItem(t);
}
};
dojo.svg.group=function(_3a6){
var p=_3a6.item(0).parentNode;
var g=document.createElementNS(this.xmlns.svg,"g");
for(var i=0;i<_3a6.length;i++){
g.appendChild(_3a6.item(i));
}
p.appendChild(g);
return g;
};
dojo.svg.ungroup=function(g){
var p=g.parentNode;
while(g.childNodes.length>0){
p.appendChild(g.childNodes.item(0));
}
p.removeChild(g);
};
dojo.svg.getGroup=function(node){
var a=this.getAncestors(node);
for(var i=0;i<a.length;i++){
if(a[i].nodeType==this.ELEMENT_NODE&&a[i].nodeName.toLowerCase()=="g"){
return a[i];
}
}
return null;
};
dojo.svg.bringToFront=function(node){
var n=this.getGroup(node)||node;
n.ownerSVGElement.appendChild(n);
};
dojo.svg.sendToBack=function(node){
var n=this.getGroup(node)||node;
n.ownerSVGElement.insertBefore(n,n.ownerSVGElement.firstChild);
};
dojo.svg.bringForward=function(node){
var n=this.getGroup(node)||node;
if(this.getLastChildElement(n.parentNode)!=n){
this.insertAfter(n,this.getNextSiblingElement(n),true);
}
};
dojo.svg.sendBackward=function(node){
var n=this.getGroup(node)||node;
if(this.getFirstChildElement(n.parentNode)!=n){
this.insertBefore(n,this.getPreviousSiblingElement(n),true);
}
};
dojo.svg.createNodesFromText=function(txt,wrap){
var _3b9=(new DOMParser()).parseFromString(txt,"text/xml").normalize();
if(wrap){
return [_3b9.firstChild.cloneNode(true)];
}
var _3ba=[];
for(var x=0;x<_3b9.childNodes.length;x++){
_3ba.push(_3b9.childNodes.item(x).cloneNode(true));
}
return _3ba;
};
dojo.provide("dojo.charting.svg.PlotArea");
if(dojo.render.svg.capable){
dojo.extend(dojo.charting.PlotArea,{resize:function(){
var area=this.getArea();
this.nodes.area.setAttribute("width",this.size.width);
this.nodes.area.setAttribute("height",this.size.height);
var rect=this.nodes.area.getElementsByTagName("rect")[0];
rect.setAttribute("x",area.left);
rect.setAttribute("y",area.top);
rect.setAttribute("width",area.right-area.left);
rect.setAttribute("height",area.bottom-area.top);
this.nodes.background.setAttribute("width",this.size.width);
this.nodes.background.setAttribute("height",this.size.height);
if(this.nodes.plots){
this.nodes.area.removeChild(this.nodes.plots);
this.nodes.plots=null;
}
this.nodes.plots=document.createElementNS(dojo.svg.xmlns.svg,"g");
this.nodes.plots.setAttribute("id",this.getId()+"-plots");
this.nodes.plots.setAttribute("style","clip-path:url(#"+this.getId()+"-clip);");
this.nodes.area.appendChild(this.nodes.plots);
for(var i=0;i<this.plots.length;i++){
this.nodes.plots.appendChild(this.initializePlot(this.plots[i]));
}
if(this.nodes.axes){
this.nodes.area.removeChild(this.nodes.axes);
this.nodes.axes=null;
}
this.nodes.axes=document.createElementNS(dojo.svg.xmlns.svg,"g");
this.nodes.axes.setAttribute("id",this.getId()+"-axes");
this.nodes.area.appendChild(this.nodes.axes);
var axes=this.getAxes();
for(var p in axes){
var obj=axes[p];
this.nodes.axes.appendChild(obj.axis.initialize(this,obj.plot,obj.drawAgainst,obj.plane));
}
},initializePlot:function(plot){
plot.destroy();
plot.dataNode=document.createElementNS(dojo.svg.xmlns.svg,"g");
plot.dataNode.setAttribute("id",plot.getId());
return plot.dataNode;
},initialize:function(){
this.destroy();
this.nodes.main=document.createElement("div");
this.nodes.area=document.createElementNS(dojo.svg.xmlns.svg,"svg");
this.nodes.area.setAttribute("id",this.getId());
this.nodes.main.appendChild(this.nodes.area);
var defs=document.createElementNS(dojo.svg.xmlns.svg,"defs");
var clip=document.createElementNS(dojo.svg.xmlns.svg,"clipPath");
clip.setAttribute("id",this.getId()+"-clip");
var rect=document.createElementNS(dojo.svg.xmlns.svg,"rect");
clip.appendChild(rect);
defs.appendChild(clip);
this.nodes.area.appendChild(defs);
this.nodes.background=document.createElementNS(dojo.svg.xmlns.svg,"rect");
this.nodes.background.setAttribute("id",this.getId()+"-background");
this.nodes.background.setAttribute("fill","#fff");
this.nodes.area.appendChild(this.nodes.background);
this.resize();
return this.nodes.main;
}});
}
dojo.provide("dojo.charting.svg.Plotters");
if(dojo.render.svg.capable){
dojo.mixin(dojo.charting.Plotters,{Bar:function(_3c6,plot,_3c8,_3c9){
var area=_3c6.getArea();
var _3cb=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_3c8);
data.push(tmp);
}
var _3d0=8;
var _3d1=data[0].length;
if(_3d1==0){
return _3cb;
}
var _3d2=((area.right-area.left)-(_3d0*(_3d1-1)))/_3d1;
var _3d3=_3d2/n;
var _3d4=plot.axisY.getCoord(plot.axisX.origin,_3c6,plot);
for(var i=0;i<_3d1;i++){
var _3d5=area.left+(_3d2*i)+(_3d0*i);
for(var j=0;j<n;j++){
var _3d7=data[j][i].y;
var yA=_3d4;
var x=_3d5+(_3d3*j);
var y=plot.axisY.getCoord(_3d7,_3c6,plot);
var h=Math.abs(yA-y);
if(_3d7<plot.axisX.origin){
yA=y;
y=_3d4;
}
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[j][i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",_3d3);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.6");
if(_3c9){
_3c9(bar,data[j][i].src);
}
_3cb.appendChild(bar);
}
}
return _3cb;
},HorizontalBar:function(_3dd,plot,_3df,_3e0){
var area=_3dd.getArea();
var _3e2=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_3df);
data.push(tmp);
}
var _3e7=6;
var _3e8=data[0].length;
if(_3e8==0){
return _3e2;
}
var h=((area.bottom-area.top)-(_3e7*(_3e8-1)))/_3e8;
var barH=h/n;
var _3eb=plot.axisX.getCoord(0,_3dd,plot);
for(var i=0;i<_3e8;i++){
var _3ec=area.top+(h*i)+(_3e7*i);
for(var j=0;j<n;j++){
var _3ee=data[j][i].y;
var y=_3ec+(barH*j);
var xA=_3eb;
var x=plot.axisX.getCoord(_3ee,_3dd,plot);
var w=Math.abs(x-xA);
if(_3ee>0){
x=_3eb;
}
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[j][i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",xA);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",barH);
bar.setAttribute("fill-opacity","0.6");
if(_3e0){
_3e0(bar,data[j][i].src);
}
_3e2.appendChild(bar);
}
}
return _3e2;
},Gantt:function(_3f4,plot,_3f6,_3f7){
var area=_3f4.getArea();
var _3f9=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_3f6);
data.push(tmp);
}
var _3fe=2;
var _3ff=data[0].length;
if(_3ff==0){
return _3f9;
}
var h=((area.bottom-area.top)-(_3fe*(_3ff-1)))/_3ff;
var barH=h/n;
for(var i=0;i<_3ff;i++){
var _402=area.top+(h*i)+(_3fe*i);
for(var j=0;j<n;j++){
var high=data[j][i].high;
var low=data[j][i].low;
if(low>high){
var t=high;
high=low;
low=t;
}
var x=plot.axisX.getCoord(low,_3f4,plot);
var w=plot.axisX.getCoord(high,_3f4,plot)-x;
var y=_402+(barH*j);
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[j][i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",barH);
bar.setAttribute("fill-opacity","0.6");
if(_3f7){
_3f7(bar,data[j][i].src);
}
_3f9.appendChild(bar);
}
}
return _3f9;
},StackedArea:function(_40b,plot,_40d,_40e){
var area=_40b.getArea();
var _410=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=plot.series.length;
var data=[];
var _413=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_40d);
for(var j=0;j<tmp.length;j++){
if(i==0){
_413.push(tmp[j].y);
}else{
_413[j]+=tmp[j].y;
}
tmp[j].y=_413[j];
}
data.push(tmp);
}
for(var i=n-1;i>=0;i--){
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
path.setAttribute("fill",data[i][0].series.color);
path.setAttribute("fill-opacity","0.4");
path.setAttribute("stroke",data[i][0].series.color);
path.setAttribute("stroke-width","1");
path.setAttribute("stroke-opacity","0.85");
var cmd=[];
var r=3;
for(var j=0;j<data[i].length;j++){
var _41a=data[i];
var x=plot.axisX.getCoord(_41a[j].x,_40b,plot);
var y=plot.axisY.getCoord(_41a[j].y,_40b,plot);
if(j==0){
cmd.push("M");
}else{
cmd.push("L");
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",_41a[j].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
_410.appendChild(c);
if(_40e){
_40e(c,data[i].src);
}
}
if(i==0){
cmd.push("L");
cmd.push(x+","+plot.axisY.getCoord(plot.axisX.origin,_40b,plot));
cmd.push("L");
cmd.push(plot.axisX.getCoord(data[0][0].x,_40b,plot)+","+plot.axisY.getCoord(plot.axisX.origin,_40b,plot));
cmd.push("Z");
}else{
var _41a=data[i-1];
cmd.push("L");
cmd.push(x+","+Math.round(plot.axisY.getCoord(_41a[_41a.length-1].y,_40b,plot)));
for(var j=_41a.length-2;j>=0;j--){
var x=plot.axisX.getCoord(_41a[j].x,_40b,plot);
var y=plot.axisY.getCoord(_41a[j].y,_40b,plot);
cmd.push("L");
cmd.push(x+","+y);
}
}
path.setAttribute("d",cmd.join(" ")+" Z");
_410.appendChild(path);
}
return _410;
},StackedCurvedArea:function(_41e,plot,_420,_421){
var _422=3;
var area=_41e.getArea();
var _424=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=plot.series.length;
var data=[];
var _427=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_420);
for(var j=0;j<tmp.length;j++){
if(i==0){
_427.push(tmp[j].y);
}else{
_427[j]+=tmp[j].y;
}
tmp[j].y=_427[j];
}
data.push(tmp);
}
for(var i=n-1;i>=0;i--){
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
path.setAttribute("fill",data[i][0].series.color);
path.setAttribute("fill-opacity","0.4");
path.setAttribute("stroke",data[i][0].series.color);
path.setAttribute("stroke-width","1");
path.setAttribute("stroke-opacity","0.85");
var cmd=[];
var r=3;
for(var j=0;j<data[i].length;j++){
var _42e=data[i];
var x=plot.axisX.getCoord(_42e[j].x,_41e,plot);
var y=plot.axisY.getCoord(_42e[j].y,_41e,plot);
var dx=area.left+1;
var dy=area.bottom;
if(j>0){
dx=x-plot.axisX.getCoord(_42e[j-1].x,_41e,plot);
dy=plot.axisY.getCoord(_42e[j-1].y,_41e,plot);
}
if(j==0){
cmd.push("M");
}else{
cmd.push("C");
var cx=x-(_422-1)*(dx/_422);
cmd.push(cx+","+dy);
cx=x-(dx/_422);
cmd.push(cx+","+y);
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",_42e[j].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
_424.appendChild(c);
if(_421){
_421(c,data[i].src);
}
}
if(i==0){
cmd.push("L");
cmd.push(x+","+plot.axisY.getCoord(plot.axisX.origin,_41e,plot));
cmd.push("L");
cmd.push(plot.axisX.getCoord(data[0][0].x,_41e,plot)+","+plot.axisY.getCoord(plot.axisX.origin,_41e,plot));
cmd.push("Z");
}else{
var _42e=data[i-1];
cmd.push("L");
cmd.push(x+","+Math.round(plot.axisY.getCoord(_42e[_42e.length-1].y,_41e,plot)));
for(var j=_42e.length-2;j>=0;j--){
var x=plot.axisX.getCoord(_42e[j].x,_41e,plot);
var y=plot.axisY.getCoord(_42e[j].y,_41e,plot);
var dx=x-plot.axisX.getCoord(_42e[j+1].x,_41e,plot);
var dy=plot.axisY.getCoord(_42e[j+1].y,_41e,plot);
cmd.push("C");
var cx=x-(_422-1)*(dx/_422);
cmd.push(cx+","+dy);
cx=x-(dx/_422);
cmd.push(cx+","+y);
cmd.push(x+","+y);
}
}
path.setAttribute("d",cmd.join(" ")+" Z");
_424.appendChild(path);
}
return _424;
},DataBar:function(data,_436,plot,_438){
var area=_436.getArea();
var _43a=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=data.length;
var w=(area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower);
var _43d=plot.axisY.getCoord(plot.axisX.origin,_436,plot);
for(var i=0;i<n;i++){
var _43f=data[i].y;
var yA=_43d;
var x=plot.axisX.getCoord(data[i].x,_436,plot)-(w/2);
var y=plot.axisY.getCoord(_43f,_436,plot);
var h=Math.abs(yA-y);
if(_43f<plot.axisX.origin){
yA=y;
y=_43d;
}
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.6");
if(_438){
_438(bar,data[i].src);
}
_43a.appendChild(bar);
}
return _43a;
},Line:function(data,_446,plot,_448){
var area=_446.getArea();
var line=document.createElementNS(dojo.svg.xmlns.svg,"g");
if(data.length==0){
return line;
}
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.appendChild(path);
path.setAttribute("fill","none");
path.setAttribute("stroke",data[0].series.color);
path.setAttribute("stroke-width","2");
path.setAttribute("stroke-opacity","0.85");
if(data[0].series.label!=null){
path.setAttribute("title",data[0].series.label);
}
var cmd=[];
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_446,plot);
var y=plot.axisY.getCoord(data[i].y,_446,plot);
if(i==0){
cmd.push("M");
}else{
cmd.push("L");
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",data[i].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
line.appendChild(c);
if(_448){
_448(c,data[i].src);
}
}
path.setAttribute("d",cmd.join(" "));
return line;
},CurvedLine:function(data,_452,plot,_454){
var _455=3;
var area=_452.getArea();
var line=document.createElementNS(dojo.svg.xmlns.svg,"g");
if(data.length==0){
return line;
}
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.appendChild(path);
path.setAttribute("fill","none");
path.setAttribute("stroke",data[0].series.color);
path.setAttribute("stroke-width","2");
path.setAttribute("stroke-opacity","0.85");
if(data[0].series.label!=null){
path.setAttribute("title",data[0].series.label);
}
var cmd=[];
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_452,plot);
var y=plot.axisY.getCoord(data[i].y,_452,plot);
var dx=area.left+1;
var dy=area.bottom;
if(i>0){
dx=x-plot.axisX.getCoord(data[i-1].x,_452,plot);
dy=plot.axisY.getCoord(data[i-1].y,_452,plot);
}
if(i==0){
cmd.push("M");
}else{
cmd.push("C");
var cx=x-(_455-1)*(dx/_455);
cmd.push(cx+","+dy);
cx=x-(dx/_455);
cmd.push(cx+","+y);
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",data[i].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
line.appendChild(c);
if(_454){
_454(c,data[i].src);
}
}
path.setAttribute("d",cmd.join(" "));
return line;
},Area:function(data,_462,plot,_464){
var area=_462.getArea();
var line=document.createElementNS(dojo.svg.xmlns.svg,"g");
if(data.length==0){
return line;
}
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.appendChild(path);
path.setAttribute("fill",data[0].series.color);
path.setAttribute("fill-opacity","0.4");
path.setAttribute("stroke",data[0].series.color);
path.setAttribute("stroke-width","1");
path.setAttribute("stroke-opacity","0.85");
if(data[0].series.label!=null){
path.setAttribute("title",data[0].series.label);
}
var cmd=[];
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_462,plot);
var y=plot.axisY.getCoord(data[i].y,_462,plot);
if(i==0){
cmd.push("M");
}else{
cmd.push("L");
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",data[i].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
line.appendChild(c);
if(_464){
_464(c,data[i].src);
}
}
cmd.push("L");
cmd.push(x+","+plot.axisY.getCoord(plot.axisX.origin,_462,plot));
cmd.push("L");
cmd.push(plot.axisX.getCoord(data[0].x,_462,plot)+","+plot.axisY.getCoord(plot.axisX.origin,_462,plot));
cmd.push("Z");
path.setAttribute("d",cmd.join(" "));
return line;
},CurvedArea:function(data,_46e,plot,_470){
var _471=3;
var area=_46e.getArea();
var line=document.createElementNS(dojo.svg.xmlns.svg,"g");
if(data.length==0){
return line;
}
var path=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.appendChild(path);
path.setAttribute("fill",data[0].series.color);
path.setAttribute("fill-opacity","0.4");
path.setAttribute("stroke",data[0].series.color);
path.setAttribute("stroke-width","1");
path.setAttribute("stroke-opacity","0.85");
if(data[0].series.label!=null){
path.setAttribute("title",data[0].series.label);
}
var cmd=[];
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_46e,plot);
var y=plot.axisY.getCoord(data[i].y,_46e,plot);
var dx=area.left+1;
var dy=area.bottom;
if(i>0){
dx=x-plot.axisX.getCoord(data[i-1].x,_46e,plot);
dy=plot.axisY.getCoord(data[i-1].y,_46e,plot);
}
if(i==0){
cmd.push("M");
}else{
cmd.push("C");
var cx=x-(_471-1)*(dx/_471);
cmd.push(cx+","+dy);
cx=x-(dx/_471);
cmd.push(cx+","+y);
}
cmd.push(x+","+y);
var c=document.createElementNS(dojo.svg.xmlns.svg,"circle");
c.setAttribute("cx",x);
c.setAttribute("cy",y);
c.setAttribute("r","3");
c.setAttribute("fill",data[i].series.color);
c.setAttribute("fill-opacity","0.6");
c.setAttribute("stroke-width","1");
c.setAttribute("stroke-opacity","0.85");
line.appendChild(c);
if(_470){
_470(c,data[i].src);
}
}
cmd.push("L");
cmd.push(x+","+plot.axisY.getCoord(plot.axisX.origin,_46e,plot));
cmd.push("L");
cmd.push(plot.axisX.getCoord(data[0].x,_46e,plot)+","+plot.axisY.getCoord(plot.axisX.origin,_46e,plot));
cmd.push("Z");
path.setAttribute("d",cmd.join(" "));
return line;
},HighLow:function(data,_47e,plot,_480){
var area=_47e.getArea();
var _482=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var x=plot.axisX.getCoord(data[i].x,_47e,plot)-(w/2);
var y=plot.axisY.getCoord(high,_47e,plot);
var h=plot.axisY.getCoord(low,_47e,plot)-y;
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.6");
if(_480){
_480(bar,data[i].src);
}
_482.appendChild(bar);
}
return _482;
},HighLowClose:function(data,_48f,plot,_491){
var area=_48f.getArea();
var _493=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var c=data[i].close;
var x=plot.axisX.getCoord(data[i].x,_48f,plot)-(w/2);
var y=plot.axisY.getCoord(high,_48f,plot);
var h=plot.axisY.getCoord(low,_48f,plot)-y;
var _49f=plot.axisY.getCoord(c,_48f,plot);
var g=document.createElementNS(dojo.svg.xmlns.svg,"g");
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.6");
g.appendChild(bar);
var line=document.createElementNS(dojo.svg.xmlns.svg,"line");
line.setAttribute("x1",x);
line.setAttribute("x2",x+w+(part*2));
line.setAttribute("y1",_49f);
line.setAttribute("y2",_49f);
line.setAttribute("style","stroke:"+data[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
g.appendChild(line);
if(_491){
_491(g,data[i].src);
}
_493.appendChild(g);
}
return _493;
},HighLowOpenClose:function(data,_4a4,plot,_4a6){
var area=_4a4.getArea();
var _4a8=document.createElementNS(dojo.svg.xmlns.svg,"g");
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var o=data[i].open;
var c=data[i].close;
var x=plot.axisX.getCoord(data[i].x,_4a4,plot)-(w/2);
var y=plot.axisY.getCoord(high,_4a4,plot);
var h=plot.axisY.getCoord(low,_4a4,plot)-y;
var open=plot.axisY.getCoord(o,_4a4,plot);
var _4b6=plot.axisY.getCoord(c,_4a4,plot);
var g=document.createElementNS(dojo.svg.xmlns.svg,"g");
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",data[i].series.color);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.6");
g.appendChild(bar);
var line=document.createElementNS(dojo.svg.xmlns.svg,"line");
line.setAttribute("x1",x-(part*2));
line.setAttribute("x2",x+w);
line.setAttribute("y1",open);
line.setAttribute("y2",open);
line.setAttribute("style","stroke:"+data[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
g.appendChild(line);
var line=document.createElementNS(dojo.svg.xmlns.svg,"line");
line.setAttribute("x1",x);
line.setAttribute("x2",x+w+(part*2));
line.setAttribute("y1",_4b6);
line.setAttribute("y2",_4b6);
line.setAttribute("style","stroke:"+data[i].series.color+";stroke-width:1px;stroke-opacity:0.6;");
g.appendChild(line);
if(_4a6){
_4a6(g,data[i].src);
}
_4a8.appendChild(g);
}
return _4a8;
},Scatter:function(data,_4bb,plot,_4bd){
var r=7;
var _4bf=document.createElementNS(dojo.svg.xmlns.svg,"g");
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_4bb,plot);
var y=plot.axisY.getCoord(data[i].y,_4bb,plot);
var _4c3=document.createElementNS(dojo.svg.xmlns.svg,"path");
_4c3.setAttribute("fill",data[i].series.color);
_4c3.setAttribute("stroke-width","0");
_4c3.setAttribute("d","M "+x+","+(y-r)+" "+"Q "+x+","+y+" "+(x+r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y+r)+" "+"Q "+x+","+y+" "+(x-r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y-r)+" "+"Z");
if(_4bd){
_4bd(_4c3,data[i].src);
}
_4bf.appendChild(_4c3);
}
return _4bf;
},Bubble:function(data,_4c5,plot,_4c7){
var _4c8=document.createElementNS(dojo.svg.xmlns.svg,"g");
var _4c9=1;
for(var i=0;i<data.length;i++){
var x=plot.axisX.getCoord(data[i].x,_4c5,plot);
var y=plot.axisY.getCoord(data[i].y,_4c5,plot);
if(i==0){
var raw=data[i].size;
var dy=plot.axisY.getCoord(data[i].y+raw,_4c5,plot)-y;
_4c9=dy/raw;
}
if(_4c9<1){
_4c9=1;
}
var _4cf=document.createElementNS(dojo.svg.xmlns.svg,"circle");
_4cf.setAttribute("fill",data[i].series.color);
_4cf.setAttribute("fill-opacity","0.8");
_4cf.setAttribute("stroke",data[i].series.color);
_4cf.setAttribute("stroke-width","1");
_4cf.setAttribute("cx",x);
_4cf.setAttribute("cy",y);
_4cf.setAttribute("r",(data[i].size/2)*_4c9);
if(_4c7){
_4c7(_4cf,data[i].src);
}
_4c8.appendChild(_4cf);
}
return _4c8;
}});
dojo.charting.Plotters["Default"]=dojo.charting.Plotters.Line;
}
dojo.provide("dojo.charting.vml.Axis");
if(dojo.render.vml.capable){
dojo.extend(dojo.charting.Axis,{renderLines:function(_4d0,plot,_4d2){
if(this.nodes.lines){
while(this.nodes.lines.childNodes.length>0){
this.nodes.lines.removeChild(this.nodes.lines.childNodes[0]);
}
if(this.nodes.lines.parentNode){
this.nodes.lines.parentNode.removeChild(this.nodes.lines);
this.nodes.lines=null;
}
}
var area=_4d0.getArea();
var g=this.nodes.lines=document.createElement("div");
g.setAttribute("id",this.getId()+"-lines");
for(var i=0;i<this._labels.length;i++){
if(this._labels[i].value==this.origin){
continue;
}
var v=this.getCoord(this._labels[i].value,_4d0,plot);
var l=document.createElement("v:line");
var str=document.createElement("v:stroke");
str.dashstyle="dot";
l.appendChild(str);
l.setAttribute("strokecolor","#666");
l.setAttribute("strokeweight","1px");
var s=l.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
if(_4d2=="x"){
l.setAttribute("from",v+"px,"+area.top+"px");
l.setAttribute("to",v+"px,"+area.bottom+"px");
}else{
if(_4d2=="y"){
l.setAttribute("from",area.left+"px,"+v+"px");
l.setAttribute("to",area.right+"px,"+v+"px");
}
}
g.appendChild(l);
}
return g;
},renderTicks:function(_4da,plot,_4dc,_4dd){
if(this.nodes.ticks){
while(this.nodes.ticks.childNodes.length>0){
this.nodes.ticks.removeChild(this.nodes.ticks.childNodes[0]);
}
if(this.nodes.ticks.parentNode){
this.nodes.ticks.parentNode.removeChild(this.nodes.ticks);
this.nodes.ticks=null;
}
}
var g=this.nodes.ticks=document.createElement("div");
g.setAttribute("id",this.getId()+"-ticks");
for(var i=0;i<this._labels.length;i++){
var v=this.getCoord(this._labels[i].value,_4da,plot);
var l=document.createElement("v:line");
l.setAttribute("strokecolor","#000");
l.setAttribute("strokeweight","1px");
var s=l.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
if(_4dc=="x"){
l.setAttribute("from",v+"px,"+_4dd+"px");
l.setAttribute("to",v+"px,"+(_4dd+3)+"px");
}else{
if(_4dc=="y"){
l.setAttribute("from",(_4dd-2)+"px,"+v+"px");
l.setAttribute("to",(_4dd+2)+"px,"+v+"px");
}
}
g.appendChild(l);
}
return g;
},renderLabels:function(_4e3,plot,_4e5,_4e6,_4e7,_4e8){
function createLabel(_4e9,x,y,_4ec,_4ed){
var text=document.createElement("div");
var s=text.style;
text.innerHTML=_4e9;
s.fontSize=_4ec+"px";
s.fontFamily="sans-serif";
s.position="absolute";
s.top=y+"px";
if(_4ed=="center"){
s.left=x+"px";
s.textAlign="center";
}else{
if(_4ed=="left"){
s.left=x+"px";
s.textAlign="left";
}else{
if(_4ed=="right"){
s.right=x+"px";
s.textAlign="right";
}
}
}
return text;
}
if(this.nodes.labels){
while(this.nodes.labels.childNodes.length>0){
this.nodes.labels.removeChild(this.nodes.labels.childNodes[0]);
}
if(this.nodes.labels.parentNode){
this.nodes.labels.parentNode.removeChild(this.nodes.labels);
this.nodes.labels=null;
}
}
var g=this.nodes.labels=document.createElement("div");
g.setAttribute("id",this.getId()+"-labels");
for(var i=0;i<this._labels.length;i++){
var v=this.getCoord(this._labels[i].value,_4e3,plot);
if(_4e5=="x"){
var node=createLabel(this._labels[i].label,v,_4e6,_4e7,_4e8);
document.body.appendChild(node);
node.style.left=v-(node.offsetWidth/2)+"px";
g.appendChild(node);
}else{
if(_4e5=="y"){
var node=createLabel(this._labels[i].label,_4e6,v,_4e7,_4e8);
document.body.appendChild(node);
node.style.top=v-(node.offsetHeight/2)+"px";
g.appendChild(node);
}
}
}
return g;
},render:function(_4f4,plot,_4f6,_4f7){
if(!this._rerender&&this.nodes.main){
return this.nodes.main;
}
this._rerender=false;
var area=_4f4.getArea();
var _4f9=1;
var _4fa="stroke:#000;stroke-width:"+_4f9+"px;";
var _4fb=10;
var _4fc=_4f6.getCoord(this.origin,_4f4,plot);
var g=this.nodes.main=document.createElement("div");
g.setAttribute("id",this.getId());
var line=this.nodes.axis=document.createElement("v:line");
line.setAttribute("strokecolor","#000");
line.setAttribute("strokeweight",_4f9+"px");
var s=line.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
if(_4f7=="x"){
line.setAttribute("from",area.left+"px,"+_4fc+"px");
line.setAttribute("to",area.right+"px,"+_4fc+"px");
var y=_4fc+Math.floor(_4fb/2);
if(this.showLines){
g.appendChild(this.renderLines(_4f4,plot,_4f7,y));
}
if(this.showTicks){
g.appendChild(this.renderTicks(_4f4,plot,_4f7,_4fc));
}
if(this.showLabels){
g.appendChild(this.renderLabels(_4f4,plot,_4f7,y,_4fb,"center"));
}
if(this.showLabel&&this.label){
var x=_4f4.size.width/2;
var y=_4fc+Math.round(_4fb*1.5);
var text=document.createElement("div");
var s=text.style;
text.innerHTML=this.label;
s.fontSize=(_4fb+2)+"px";
s.fontFamily="sans-serif";
s.fontWeight="bold";
s.position="absolute";
s.top=y+"px";
s.left=x+"px";
s.textAlign="center";
document.body.appendChild(text);
text.style.left=x-(text.offsetWidth/2)+"px";
g.appendChild(text);
}
}else{
line.setAttribute("from",_4fc+"px,"+area.top+"px");
line.setAttribute("to",_4fc+"px,"+area.bottom+"px");
var _503=this.origin==_4f6.range.upper;
var x=_4fc+4;
var _504="left";
if(!_503){
x=area.right-_4fc+_4fb+4;
_504="right";
if(_4fc==area.left){
x+=(_4fb*2)-(_4fb/2);
}
}
if(this.showLines){
g.appendChild(this.renderLines(_4f4,plot,_4f7,x));
}
if(this.showTicks){
g.appendChild(this.renderTicks(_4f4,plot,_4f7,_4fc));
}
if(this.showLabels){
g.appendChild(this.renderLabels(_4f4,plot,_4f7,x,_4fb,_504));
}
if(this.showLabel&&this.label){
x+=(_4fb*2)-2;
var y=_4f4.size.height/2;
var text=document.createElement("div");
var s=text.style;
text.innerHTML=this.label;
s.fontSize=(_4fb+2)+"px";
s.fontFamily="sans-serif";
s.fontWeight="bold";
s.position="absolute";
s.height=_4f4.size.height+"px";
s.writingMode="tb-rl";
s.textAlign="center";
s[_504]=x+"px";
document.body.appendChild(text);
s.top=y-(text.offsetHeight/2)+"px";
g.appendChild(text);
}
}
g.appendChild(line);
return g;
}});
}
dojo.provide("dojo.charting.vml.PlotArea");
if(dojo.render.vml.capable){
dojo.extend(dojo.charting.PlotArea,{resize:function(){
var a=this.getArea();
this.nodes.area.style.width=this.size.width+"px";
this.nodes.area.style.height=this.size.height+"px";
this.nodes.background.style.width=this.size.width+"px";
this.nodes.background.style.height=this.size.height+"px";
this.nodes.plots.width=this.size.width+"px";
this.nodes.plots.height=this.size.height+"px";
this.nodes.plots.style.clip="rect("+a.top+" "+a.right+" "+a.bottom+" "+a.left+")";
if(this.nodes.axes){
this.nodes.area.removeChild(this.nodes.axes);
}
var axes=this.nodes.axes=document.createElement("div");
axes.id=this.getId()+"-axes";
this.nodes.area.appendChild(axes);
var ax=this.getAxes();
for(var p in ax){
var obj=ax[p];
axes.appendChild(obj.axis.initialize(this,obj.plot,obj.drawAgainst,obj.plane));
}
},initializePlot:function(plot){
plot.destroy();
plot.dataNode=document.createElement("div");
plot.dataNode.id=plot.getId();
return plot.dataNode;
},initialize:function(){
this.destroy();
var main=this.nodes.main=document.createElement("div");
var area=this.nodes.area=document.createElement("div");
area.id=this.getId();
area.style.position="absolute";
main.appendChild(area);
var bg=this.nodes.background=document.createElement("div");
bg.id=this.getId()+"-background";
bg.style.position="absolute";
bg.style.top="0px";
bg.style.left="0px";
bg.style.backgroundColor="#fff";
area.appendChild(bg);
var a=this.getArea();
var _50f=this.nodes.plots=document.createElement("div");
_50f.id=this.getId()+"-plots";
_50f.style.position="absolute";
_50f.style.top="0px";
_50f.style.left="0px";
area.appendChild(_50f);
for(var i=0;i<this.plots.length;i++){
_50f.appendChild(this.initializePlot(this.plots[i]));
}
this.resize();
return main;
}});
}
dojo.provide("dojo.charting.vml.Plotters");
if(dojo.render.vml.capable){
dojo.mixin(dojo.charting.Plotters,{_group:function(_511){
var _512=document.createElement("div");
_512.style.position="absolute";
_512.style.top="0px";
_512.style.left="0px";
_512.style.width=_511.size.width+"px";
_512.style.height=_511.size.height+"px";
return _512;
},Bar:function(_513,plot,_515,_516){
var area=_513.getArea();
var _518=dojo.charting.Plotters._group(_513);
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_515);
data.push(tmp);
}
var _51d=8;
var _51e=data[0].length;
if(_51e==0){
return _518;
}
var _51f=((area.right-area.left)-(_51d*(_51e-1)))/_51e;
var _520=Math.round(_51f/n);
var _521=plot.axisY.getCoord(plot.axisX.origin,_513,plot);
for(var i=0;i<_51e;i++){
var _522=area.left+(_51f*i)+(_51d*i);
for(var j=0;j<n;j++){
var _524=data[j][i].y;
var yA=_521;
var x=_522+(_520*j);
var y=plot.axisY.getCoord(_524,_513,plot);
var h=Math.abs(yA-y);
if(_524<plot.axisX.origin){
yA=y;
y=_521;
}
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=_520+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",data[j][i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
if(_516){
_516(bar,data[j][i].src);
}
_518.appendChild(bar);
}
}
return _518;
},HorizontalBar:function(_52b,plot,_52d,_52e){
var area=_52b.getArea();
var _530=dojo.charting.Plotters._group(_52b);
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_52d);
data.push(tmp);
}
var _535=6;
var _536=data[0].length;
if(_536==0){
return _530;
}
var h=((area.bottom-area.top)-(_535*(_536-1)))/_536;
var barH=h/n;
var _539=plot.axisX.getCoord(0,_52b,plot);
for(var i=0;i<_536;i++){
var _53a=area.top+(h*i)+(_535*i);
for(var j=0;j<n;j++){
var _53c=data[j][i].y;
var y=_53a+(barH*j);
var xA=_539;
var x=plot.axisX.getCoord(_53c,_52b,plot);
var w=Math.abs(x-xA);
if(_53c>0){
x=_539;
}
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=xA+"px";
bar.style.width=w+"px";
bar.style.height=barH+"px";
bar.setAttribute("fillColor",data[j][i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
if(_52e){
_52e(bar,data[j][i].src);
}
_530.appendChild(bar);
}
}
var _535=4;
var n=plot.series.length;
var h=((area.bottom-area.top)-(_535*(n-1)))/n;
var _539=plot.axisX.getCoord(0,_52b,plot);
for(var i=0;i<n;i++){
var _543=plot.series[i];
var data=_543.data.evaluate(_52d);
var y=area.top+(h*i)+(_535*i);
var _53c=data[data.length-1].y;
var xA=_539;
var x=plot.axisX.getCoord(_53c,_52b,plot);
var w=Math.abs(xA-x);
if(_53c>0){
xA=x;
x=_539;
}
}
return _530;
},Gantt:function(_544,plot,_546,_547){
var area=_544.getArea();
var _549=dojo.charting.Plotters._group(_544);
var n=plot.series.length;
var data=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_546);
data.push(tmp);
}
var _54e=2;
var _54f=data[0].length;
if(_54f==0){
return _549;
}
var h=((area.bottom-area.top)-(_54e*(_54f-1)))/_54f;
var barH=h/n;
for(var i=0;i<_54f;i++){
var _552=area.top+(h*i)+(_54e*i);
for(var j=0;j<n;j++){
var high=data[j][i].high;
var low=data[j][i].low;
if(low>high){
var t=high;
high=low;
low=t;
}
var x=plot.axisX.getCoord(low,_544,plot);
var w=plot.axisX.getCoord(high,_544,plot)-x;
var y=_552+(barH*j);
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=barH+"px";
bar.setAttribute("fillColor",data[j][i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
if(_547){
_547(bar,data[j][i].src);
}
_549.appendChild(bar);
}
}
return _549;
},StackedArea:function(_55c,plot,_55e,_55f){
var area=_55c.getArea();
var _561=dojo.charting.Plotters._group(_55c);
var n=plot.series.length;
var data=[];
var _564=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_55e);
for(var j=0;j<tmp.length;j++){
if(i==0){
_564.push(tmp[j].y);
}else{
_564[j]+=tmp[j].y;
}
tmp[j].y=_564[j];
}
data.push(tmp);
}
for(var i=n-1;i>=0;i--){
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","1px");
path.setAttribute("strokecolor",data[i][0].series.color);
path.setAttribute("fillcolor",data[i][0].series.color);
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _569=document.createElement("v:stroke");
_569.setAttribute("opacity","0.8");
path.appendChild(_569);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.4");
path.appendChild(fill);
var cmd=[];
var r=3;
for(var j=0;j<data[i].length;j++){
var _56d=data[i];
var x=Math.round(plot.axisX.getCoord(_56d[j].x,_55c,plot));
var y=Math.round(plot.axisY.getCoord(_56d[j].y,_55c,plot));
if(j==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
cmd.push("l");
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",_56d[j].series.color);
c.setAttribute("fillcolor",_56d[j].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_561.appendChild(c);
if(_55f){
_55f(c,data[j].src);
}
}
if(i==0){
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_55c,plot)));
cmd.push("l");
cmd.push(Math.round(plot.axisX.getCoord(data[0][0].x,_55c,plot))+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_55c,plot)));
}else{
var _56d=data[i-1];
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(_56d[_56d.length-1].y,_55c,plot)));
for(var j=_56d.length-2;j>=0;j--){
var x=Math.round(plot.axisX.getCoord(_56d[j].x,_55c,plot));
var y=Math.round(plot.axisY.getCoord(_56d[j].y,_55c,plot));
cmd.push("l");
cmd.push(x+","+y);
}
}
path.setAttribute("path",cmd.join(" ")+" x e");
_561.appendChild(path);
}
return _561;
},StackedCurvedArea:function(_573,plot,_575,_576){
var _577=3;
var area=_573.getArea();
var _579=dojo.charting.Plotters._group(_573);
var n=plot.series.length;
var data=[];
var _57c=[];
for(var i=0;i<n;i++){
var tmp=plot.series[i].data.evaluate(_575);
for(var j=0;j<tmp.length;j++){
if(i==0){
_57c.push(tmp[j].y);
}else{
_57c[j]+=tmp[j].y;
}
tmp[j].y=_57c[j];
}
data.push(tmp);
}
for(var i=n-1;i>=0;i--){
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","1px");
path.setAttribute("strokecolor",data[i][0].series.color);
path.setAttribute("fillcolor",data[i][0].series.color);
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _581=document.createElement("v:stroke");
_581.setAttribute("opacity","0.8");
path.appendChild(_581);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.4");
path.appendChild(fill);
var cmd=[];
var r=3;
for(var j=0;j<data[i].length;j++){
var _585=data[i];
var x=Math.round(plot.axisX.getCoord(_585[j].x,_573,plot));
var y=Math.round(plot.axisY.getCoord(_585[j].y,_573,plot));
if(j==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
var _588=Math.round(plot.axisX.getCoord(_585[j-1].x,_573,plot));
var _589=Math.round(plot.axisY.getCoord(_585[j-1].y,_573,plot));
var dx=x-_588;
var dy=y-_589;
cmd.push("c");
var cx=Math.round((x-(_577-1)*(dx/_577)));
cmd.push(cx+","+_589);
cx=Math.round((x-(dx/_577)));
cmd.push(cx+","+y);
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",_585[j].series.color);
c.setAttribute("fillcolor",_585[j].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_579.appendChild(c);
if(_576){
_576(c,data[j].src);
}
}
if(i==0){
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_573,plot)));
cmd.push("l");
cmd.push(Math.round(plot.axisX.getCoord(data[0][0].x,_573,plot))+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_573,plot)));
}else{
var _585=data[i-1];
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(_585[_585.length-1].y,_573,plot)));
for(var j=_585.length-2;j>=0;j--){
var x=Math.round(plot.axisX.getCoord(_585[j].x,_573,plot));
var y=Math.round(plot.axisY.getCoord(_585[j].y,_573,plot));
var _588=Math.round(plot.axisX.getCoord(_585[j+1].x,_573,plot));
var _589=Math.round(plot.axisY.getCoord(_585[j+1].y,_573,plot));
var dx=x-_588;
var dy=y-_589;
cmd.push("c");
var cx=Math.round((x-(_577-1)*(dx/_577)));
cmd.push(cx+","+_589);
cx=Math.round((x-(dx/_577)));
cmd.push(cx+","+y);
cmd.push(x+","+y);
}
}
path.setAttribute("path",cmd.join(" ")+" x e");
_579.appendChild(path);
}
return _579;
},DataBar:function(data,_591,plot,_593){
var area=_591.getArea();
var _595=dojo.charting.Plotters._group(_591);
var n=data.length;
var w=(area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower);
var _598=plot.axisY.getCoord(plot.axisX.origin,_591,plot);
for(var i=0;i<n;i++){
var _59a=data[i].y;
var yA=_598;
var x=plot.axisX.getCoord(data[i].x,_591,plot)-(w/2)+1;
var y=plot.axisY.getCoord(_59a,_591,plot);
var h=Math.abs(yA-y);
if(_59a<plot.axisX.origin){
yA=y;
y=_598;
}
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",data[i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
if(_593){
_593(bar,data[i].src);
}
_595.appendChild(bar);
}
return _595;
},Line:function(data,_5a2,plot,_5a4){
var area=_5a2.getArea();
var _5a6=dojo.charting.Plotters._group(_5a2);
if(data.length==0){
return _5a6;
}
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","2px");
path.setAttribute("strokecolor",data[0].series.color);
path.setAttribute("fillcolor","none");
path.setAttribute("filled","false");
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _5a8=document.createElement("v:stroke");
_5a8.setAttribute("opacity","0.8");
path.appendChild(_5a8);
var cmd=[];
var r=3;
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_5a2,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_5a2,plot));
if(i==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
cmd.push("l");
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",data[i].series.color);
c.setAttribute("fillcolor",data[i].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_5a6.appendChild(c);
if(_5a4){
_5a4(c,data[i].src);
}
}
path.setAttribute("path",cmd.join(" ")+" e");
_5a6.appendChild(path);
return _5a6;
},CurvedLine:function(data,_5b2,plot,_5b4){
var _5b5=3;
var area=_5b2.getArea();
var _5b7=dojo.charting.Plotters._group(_5b2);
if(data.length==0){
return _5b7;
}
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","2px");
path.setAttribute("strokecolor",data[0].series.color);
path.setAttribute("fillcolor","none");
path.setAttribute("filled","false");
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _5b9=document.createElement("v:stroke");
_5b9.setAttribute("opacity","0.8");
path.appendChild(_5b9);
var cmd=[];
var r=3;
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_5b2,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_5b2,plot));
if(i==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
var _5bf=Math.round(plot.axisX.getCoord(data[i-1].x,_5b2,plot));
var _5c0=Math.round(plot.axisY.getCoord(data[i-1].y,_5b2,plot));
var dx=x-_5bf;
var dy=y-_5c0;
cmd.push("c");
var cx=Math.round((x-(_5b5-1)*(dx/_5b5)));
cmd.push(cx+","+_5c0);
cx=Math.round((x-(dx/_5b5)));
cmd.push(cx+","+y);
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",data[i].series.color);
c.setAttribute("fillcolor",data[i].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_5b7.appendChild(c);
if(_5b4){
_5b4(c,data[i].src);
}
}
path.setAttribute("path",cmd.join(" ")+" e");
_5b7.appendChild(path);
return _5b7;
},Area:function(data,_5c8,plot,_5ca){
var area=_5c8.getArea();
var _5cc=dojo.charting.Plotters._group(_5c8);
if(data.length==0){
return _5cc;
}
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","1px");
path.setAttribute("strokecolor",data[0].series.color);
path.setAttribute("fillcolor",data[0].series.color);
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _5ce=document.createElement("v:stroke");
_5ce.setAttribute("opacity","0.8");
path.appendChild(_5ce);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.4");
path.appendChild(fill);
var cmd=[];
var r=3;
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_5c8,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_5c8,plot));
if(i==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
cmd.push("l");
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",data[i].series.color);
c.setAttribute("fillcolor",data[i].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_5cc.appendChild(c);
if(_5ca){
_5ca(c,data[i].src);
}
}
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_5c8,plot)));
cmd.push("l");
cmd.push(Math.round(plot.axisX.getCoord(data[0].x,_5c8,plot))+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_5c8,plot)));
path.setAttribute("path",cmd.join(" ")+" x e");
_5cc.appendChild(path);
return _5cc;
},CurvedArea:function(data,_5d9,plot,_5db){
var _5dc=3;
var area=_5d9.getArea();
var _5de=dojo.charting.Plotters._group(_5d9);
if(data.length==0){
return _5de;
}
var path=document.createElement("v:shape");
path.setAttribute("strokeweight","1px");
path.setAttribute("strokecolor",data[0].series.color);
path.setAttribute("fillcolor",data[0].series.color);
path.setAttribute("coordsize",(area.right-area.left)+","+(area.bottom-area.top));
path.style.position="absolute";
path.style.top="0px";
path.style.left="0px";
path.style.width=area.right-area.left+"px";
path.style.height=area.bottom-area.top+"px";
var _5e0=document.createElement("v:stroke");
_5e0.setAttribute("opacity","0.8");
path.appendChild(_5e0);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.4");
path.appendChild(fill);
var cmd=[];
var r=3;
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_5d9,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_5d9,plot));
if(i==0){
cmd.push("m");
cmd.push(x+","+y);
}else{
var _5e7=Math.round(plot.axisX.getCoord(data[i-1].x,_5d9,plot));
var _5e8=Math.round(plot.axisY.getCoord(data[i-1].y,_5d9,plot));
var dx=x-_5e7;
var dy=y-_5e8;
cmd.push("c");
var cx=Math.round((x-(_5dc-1)*(dx/_5dc)));
cmd.push(cx+","+_5e8);
cx=Math.round((x-(dx/_5dc)));
cmd.push(cx+","+y);
cmd.push(x+","+y);
}
var c=document.createElement("v:oval");
c.setAttribute("strokeweight","1px");
c.setAttribute("strokecolor",data[i].series.color);
c.setAttribute("fillcolor",data[i].series.color);
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.8");
c.appendChild(str);
str=document.createElement("v:fill");
str.setAttribute("opacity","0.6");
c.appendChild(str);
var s=c.style;
s.position="absolute";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_5de.appendChild(c);
if(_5db){
_5db(c,data[i].src);
}
}
cmd.push("l");
cmd.push(x+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_5d9,plot)));
cmd.push("l");
cmd.push(Math.round(plot.axisX.getCoord(data[0].x,_5d9,plot))+","+Math.round(plot.axisY.getCoord(plot.axisX.origin,_5d9,plot)));
path.setAttribute("path",cmd.join(" ")+" x e");
_5de.appendChild(path);
return _5de;
},HighLow:function(data,_5f0,plot,_5f2){
var area=_5f0.getArea();
var _5f4=dojo.charting.Plotters._group(_5f0);
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var x=plot.axisX.getCoord(data[i].x,_5f0,plot)-(w/2);
var y=plot.axisY.getCoord(high,_5f0,plot);
var h=plot.axisY.getCoord(low,_5f0,plot)-y;
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",data[i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
if(_5f2){
_5f2(bar,data[i].src);
}
_5f4.appendChild(bar);
}
return _5f4;
},HighLowClose:function(data,_602,plot,_604){
var area=_602.getArea();
var _606=dojo.charting.Plotters._group(_602);
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var c=data[i].close;
var x=plot.axisX.getCoord(data[i].x,_602,plot)-(w/2);
var y=plot.axisY.getCoord(high,_602,plot);
var h=plot.axisY.getCoord(low,_602,plot)-y;
var _612=plot.axisY.getCoord(c,_602,plot);
var g=document.createElement("div");
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",data[i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
g.appendChild(bar);
var line=document.createElement("v:line");
line.setAttribute("strokecolor",data[i].series.color);
line.setAttribute("strokeweight","1px");
line.setAttribute("from",x+"px,"+_612+"px");
line.setAttribute("to",(x+w+(part*2)-2)+"px,"+_612+"px");
var s=line.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.6");
line.appendChild(str);
g.appendChild(line);
if(_604){
_604(g,data[i].src);
}
_606.appendChild(g);
}
return _606;
},HighLowOpenClose:function(data,_61a,plot,_61c){
var area=_61a.getArea();
var _61e=dojo.charting.Plotters._group(_61a);
var n=data.length;
var part=((area.right-area.left)/(plot.axisX.range.upper-plot.axisX.range.lower))/4;
var w=part*2;
for(var i=0;i<n;i++){
var high=data[i].high;
var low=data[i].low;
if(low>high){
var t=low;
low=high;
high=t;
}
var o=data[i].open;
var c=data[i].close;
var x=plot.axisX.getCoord(data[i].x,_61a,plot)-(w/2);
var y=plot.axisY.getCoord(high,_61a,plot);
var h=plot.axisY.getCoord(low,_61a,plot)-y;
var open=plot.axisY.getCoord(o,_61a,plot);
var _62c=plot.axisY.getCoord(c,_61a,plot);
var g=document.createElement("div");
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+1+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",data[i].series.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
bar.appendChild(fill);
g.appendChild(bar);
var line=document.createElement("v:line");
line.setAttribute("strokecolor",data[i].series.color);
line.setAttribute("strokeweight","1px");
line.setAttribute("from",(x-(part*2))+"px,"+open+"px");
line.setAttribute("to",(x+w-2)+"px,"+open+"px");
var s=line.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.6");
line.appendChild(str);
g.appendChild(line);
var line=document.createElement("v:line");
line.setAttribute("strokecolor",data[i].series.color);
line.setAttribute("strokeweight","1px");
line.setAttribute("from",x+"px,"+_62c+"px");
line.setAttribute("to",(x+w+(part*2)-2)+"px,"+_62c+"px");
var s=line.style;
s.position="absolute";
s.top="0px";
s.left="0px";
s.antialias="false";
var str=document.createElement("v:stroke");
str.setAttribute("opacity","0.6");
line.appendChild(str);
g.appendChild(line);
if(_61c){
_61c(g,data[i].src);
}
_61e.appendChild(g);
}
return _61e;
},Scatter:function(data,_634,plot,_636){
var r=6;
var mod=r/2;
var area=_634.getArea();
var _63a=dojo.charting.Plotters._group(_634);
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_634,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_634,plot));
var _63e=document.createElement("v:rect");
_63e.setAttribute("strokecolor",data[i].series.color);
_63e.setAttribute("fillcolor",data[i].series.color);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
_63e.appendChild(fill);
var s=_63e.style;
s.position="absolute";
s.rotation="45";
s.top=(y-mod)+"px";
s.left=(x-mod)+"px";
s.width=r+"px";
s.height=r+"px";
_63a.appendChild(_63e);
if(_636){
_636(_63e,data[i].src);
}
}
return _63a;
},Bubble:function(data,_642,plot,_644){
var _645=1;
var area=_642.getArea();
var _647=dojo.charting.Plotters._group(_642);
for(var i=0;i<data.length;i++){
var x=Math.round(plot.axisX.getCoord(data[i].x,_642,plot));
var y=Math.round(plot.axisY.getCoord(data[i].y,_642,plot));
if(i==0){
var raw=data[i].size;
var dy=plot.axisY.getCoord(data[i].y+raw,_642,plot)-y;
_645=dy/raw;
}
if(_645<1){
_645=1;
}
var r=(data[i].size/2)*_645;
var _64e=document.createElement("v:oval");
_64e.setAttribute("strokecolor",data[i].series.color);
_64e.setAttribute("fillcolor",data[i].series.color);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
_64e.appendChild(fill);
var s=_64e.style;
s.position="absolute";
s.rotation="45";
s.top=(y-r)+"px";
s.left=(x-r)+"px";
s.width=(r*2)+"px";
s.height=(r*2)+"px";
_647.appendChild(_64e);
if(_644){
_644(_64e,data[i].src);
}
}
return _647;
}});
dojo.charting.Plotters["Default"]=dojo.charting.Plotters.Line;
}
dojo.provide("dojo.collections.Collections");
dojo.collections.DictionaryEntry=function(k,v){
this.key=k;
this.value=v;
this.valueOf=function(){
return this.value;
};
this.toString=function(){
return String(this.value);
};
};
dojo.collections.Iterator=function(arr){
var a=arr;
var _655=0;
this.element=a[_655]||null;
this.atEnd=function(){
return (_655>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_655++];
return this.element;
};
this.map=function(fn,_657){
var s=_657||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_655=0;
this.element=a[_655];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _65d={};
for(var p in obj){
if(!_65d[p]){
a.push(obj[p]);
}
}
var _65f=0;
this.element=a[_65f]||null;
this.atEnd=function(){
return (_65f>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_65f++];
return this.element;
};
this.map=function(fn,_661){
var s=_661||dj_global;
if(Array.map){
return Array.map(a,fn,s);
}else{
var arr=[];
for(var i=0;i<a.length;i++){
arr.push(fn.call(s,a[i]));
}
return arr;
}
};
this.reset=function(){
_65f=0;
this.element=a[_65f];
};
};
dojo.provide("dojo.collections.SortedList");
dojo.collections.SortedList=function(_665){
var _666=this;
var _667={};
var q=[];
var _669=function(a,b){
if(a.key>b.key){
return 1;
}
if(a.key<b.key){
return -1;
}
return 0;
};
var _66c=function(){
q=[];
var e=_666.getIterator();
while(!e.atEnd()){
q.push(e.get());
}
q.sort(_669);
};
var _66e={};
this.count=q.length;
this.add=function(k,v){
if(!_667[k]){
_667[k]=new dojo.collections.DictionaryEntry(k,v);
this.count=q.push(_667[k]);
q.sort(_669);
}
};
this.clear=function(){
_667={};
q=[];
this.count=q.length;
};
this.clone=function(){
return new dojo.collections.SortedList(this);
};
this.contains=this.containsKey=function(k){
if(_66e[k]){
return false;
}
return (_667[k]!=null);
};
this.containsValue=function(o){
var e=this.getIterator();
while(!e.atEnd()){
var item=e.get();
if(item.value==o){
return true;
}
}
return false;
};
this.copyTo=function(arr,i){
var e=this.getIterator();
var idx=i;
while(!e.atEnd()){
arr.splice(idx,0,e.get());
idx++;
}
};
this.entry=function(k){
return _667[k];
};
this.forEach=function(fn,_67b){
var s=_67b||dj_global;
if(Array.forEach){
Array.forEach(q,fn,s);
}else{
for(var i=0;i<q.length;i++){
fn.call(s,q[i],i,q);
}
}
};
this.getByIndex=function(i){
return q[i].valueOf();
};
this.getIterator=function(){
return new dojo.collections.DictionaryIterator(_667);
};
this.getKey=function(i){
return q[i].key;
};
this.getKeyList=function(){
var arr=[];
var e=this.getIterator();
while(!e.atEnd()){
arr.push(e.get().key);
}
return arr;
};
this.getValueList=function(){
var arr=[];
var e=this.getIterator();
while(!e.atEnd()){
arr.push(e.get().value);
}
return arr;
};
this.indexOfKey=function(k){
for(var i=0;i<q.length;i++){
if(q[i].key==k){
return i;
}
}
return -1;
};
this.indexOfValue=function(o){
for(var i=0;i<q.length;i++){
if(q[i].value==o){
return i;
}
}
return -1;
};
this.item=function(k){
if(k in _667&&!_66e[k]){
return _667[k].valueOf();
}
return undefined;
};
this.remove=function(k){
delete _667[k];
_66c();
this.count=q.length;
};
this.removeAt=function(i){
delete _667[q[i].key];
_66c();
this.count=q.length;
};
this.replace=function(k,v){
if(!_667[k]){
this.add(k,v);
return false;
}else{
_667[k]=new dojo.collections.DictionaryEntry(k,v);
q.sort(_669);
return true;
}
};
this.setByIndex=function(i,o){
_667[q[i].key].value=o;
_66c();
this.count=q.length;
};
if(_665){
var e=_665.getIterator();
while(!e.atEnd()){
var item=e.get();
q[q.length]=_667[item.key]=new dojo.collections.DictionaryEntry(item.key,item.value);
}
q.sort(_669);
}
};
dojo.provide("dojo.collections.Dictionary");
dojo.collections.Dictionary=function(_691){
var _692={};
this.count=0;
var _693={};
this.add=function(k,v){
var b=(k in _692);
_692[k]=new dojo.collections.DictionaryEntry(k,v);
if(!b){
this.count++;
}
};
this.clear=function(){
_692={};
this.count=0;
};
this.clone=function(){
return new dojo.collections.Dictionary(this);
};
this.contains=this.containsKey=function(k){
if(_693[k]){
return false;
}
return (_692[k]!=null);
};
this.containsValue=function(v){
var e=this.getIterator();
while(e.get()){
if(e.element.value==v){
return true;
}
}
return false;
};
this.entry=function(k){
return _692[k];
};
this.forEach=function(fn,_69c){
var a=[];
for(var p in _692){
if(!_693[p]){
a.push(_692[p]);
}
}
var s=_69c||dj_global;
if(Array.forEach){
Array.forEach(a,fn,s);
}else{
for(var i=0;i<a.length;i++){
fn.call(s,a[i],i,a);
}
}
};
this.getKeyList=function(){
return (this.getIterator()).map(function(_6a1){
return _6a1.key;
});
};
this.getValueList=function(){
return (this.getIterator()).map(function(_6a2){
return _6a2.value;
});
};
this.item=function(k){
if(k in _692){
return _692[k].valueOf();
}
return undefined;
};
this.getIterator=function(){
return new dojo.collections.DictionaryIterator(_692);
};
this.remove=function(k){
if(k in _692&&!_693[k]){
delete _692[k];
this.count--;
return true;
}
return false;
};
if(_691){
var e=_691.getIterator();
while(e.get()){
this.add(e.element.key,e.element.value);
}
}
};
dojo.provide("dojo.collections.Queue");
dojo.collections.Queue=function(arr){
var q=[];
if(arr){
q=q.concat(arr);
}
this.count=q.length;
this.clear=function(){
q=[];
this.count=q.length;
};
this.clone=function(){
return new dojo.collections.Queue(q);
};
this.contains=function(o){
for(var i=0;i<q.length;i++){
if(q[i]==o){
return true;
}
}
return false;
};
this.copyTo=function(arr,i){
arr.splice(i,0,q);
};
this.dequeue=function(){
var r=q.shift();
this.count=q.length;
return r;
};
this.enqueue=function(o){
this.count=q.push(o);
};
this.forEach=function(fn,_6af){
var s=_6af||dj_global;
if(Array.forEach){
Array.forEach(q,fn,s);
}else{
for(var i=0;i<q.length;i++){
fn.call(s,q[i],i,q);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(q);
};
this.peek=function(){
return q[0];
};
this.toArray=function(){
return [].concat(q);
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.collections.ArrayList=function(arr){
var _6b3=[];
if(arr){
_6b3=_6b3.concat(arr);
}
this.count=_6b3.length;
this.add=function(obj){
_6b3.push(obj);
this.count=_6b3.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_6b3.length;
}else{
for(var i=0;i<a.length;i++){
_6b3.push(a[i]);
}
this.count=_6b3.length;
}
};
this.clear=function(){
_6b3.splice(0,_6b3.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_6b3);
};
this.contains=function(obj){
for(var i=0;i<_6b3.length;i++){
if(_6b3[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_6bb){
var s=_6bb||dj_global;
if(Array.forEach){
Array.forEach(_6b3,fn,s);
}else{
for(var i=0;i<_6b3.length;i++){
fn.call(s,_6b3[i],i,_6b3);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_6b3);
};
this.indexOf=function(obj){
for(var i=0;i<_6b3.length;i++){
if(_6b3[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_6b3.splice(i,0,obj);
this.count=_6b3.length;
};
this.item=function(i){
return _6b3[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_6b3.splice(i,1);
}
this.count=_6b3.length;
};
this.removeAt=function(i){
_6b3.splice(i,1);
this.count=_6b3.length;
};
this.reverse=function(){
_6b3.reverse();
};
this.sort=function(fn){
if(fn){
_6b3.sort(fn);
}else{
_6b3.sort();
}
};
this.setByIndex=function(i,obj){
_6b3[i]=obj;
this.count=_6b3.length;
};
this.toArray=function(){
return [].concat(_6b3);
};
this.toString=function(_6c9){
return _6b3.join((_6c9||","));
};
};
dojo.provide("dojo.collections.Stack");
dojo.collections.Stack=function(arr){
var q=[];
if(arr){
q=q.concat(arr);
}
this.count=q.length;
this.clear=function(){
q=[];
this.count=q.length;
};
this.clone=function(){
return new dojo.collections.Stack(q);
};
this.contains=function(o){
for(var i=0;i<q.length;i++){
if(q[i]==o){
return true;
}
}
return false;
};
this.copyTo=function(arr,i){
arr.splice(i,0,q);
};
this.forEach=function(fn,_6d1){
var s=_6d1||dj_global;
if(Array.forEach){
Array.forEach(q,fn,s);
}else{
for(var i=0;i<q.length;i++){
fn.call(s,q[i],i,q);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(q);
};
this.peek=function(){
return q[(q.length-1)];
};
this.pop=function(){
var r=q.pop();
this.count=q.length;
return r;
};
this.push=function(o){
this.count=q.push(o);
};
this.toArray=function(){
return [].concat(q);
};
};
dojo.provide("dojo.collections.Set");
dojo.collections.Set=new function(){
this.union=function(setA,setB){
if(setA.constructor==Array){
var setA=new dojo.collections.ArrayList(setA);
}
if(setB.constructor==Array){
var setB=new dojo.collections.ArrayList(setB);
}
if(!setA.toArray||!setB.toArray){
dojo.raise("Set operations can only be performed on array-based collections.");
}
var _6d8=new dojo.collections.ArrayList(setA.toArray());
var e=setB.getIterator();
while(!e.atEnd()){
var item=e.get();
if(!_6d8.contains(item)){
_6d8.add(item);
}
}
return _6d8;
};
this.intersection=function(setA,setB){
if(setA.constructor==Array){
var setA=new dojo.collections.ArrayList(setA);
}
if(setB.constructor==Array){
var setB=new dojo.collections.ArrayList(setB);
}
if(!setA.toArray||!setB.toArray){
dojo.raise("Set operations can only be performed on array-based collections.");
}
var _6dd=new dojo.collections.ArrayList();
var e=setB.getIterator();
while(!e.atEnd()){
var item=e.get();
if(setA.contains(item)){
_6dd.add(item);
}
}
return _6dd;
};
this.difference=function(setA,setB){
if(setA.constructor==Array){
var setA=new dojo.collections.ArrayList(setA);
}
if(setB.constructor==Array){
var setB=new dojo.collections.ArrayList(setB);
}
if(!setA.toArray||!setB.toArray){
dojo.raise("Set operations can only be performed on array-based collections.");
}
var _6e2=new dojo.collections.ArrayList();
var e=setA.getIterator();
while(!e.atEnd()){
var item=e.get();
if(!setB.contains(item)){
_6e2.add(item);
}
}
return _6e2;
};
this.isSubSet=function(setA,setB){
if(setA.constructor==Array){
var setA=new dojo.collections.ArrayList(setA);
}
if(setB.constructor==Array){
var setB=new dojo.collections.ArrayList(setB);
}
if(!setA.toArray||!setB.toArray){
dojo.raise("Set operations can only be performed on array-based collections.");
}
var e=setA.getIterator();
while(!e.atEnd()){
if(!setB.contains(e.get())){
return false;
}
}
return true;
};
this.isSuperSet=function(setA,setB){
if(setA.constructor==Array){
var setA=new dojo.collections.ArrayList(setA);
}
if(setB.constructor==Array){
var setB=new dojo.collections.ArrayList(setB);
}
if(!setA.toArray||!setB.toArray){
dojo.raise("Set operations can only be performed on array-based collections.");
}
var e=setB.getIterator();
while(!e.atEnd()){
if(!setA.contains(e.get())){
return false;
}
}
return true;
};
}();
dojo.kwCompoundRequire({common:["dojo.collections.Collections","dojo.collections.SortedList","dojo.collections.Dictionary","dojo.collections.Queue","dojo.collections.ArrayList","dojo.collections.Stack","dojo.collections.Set"]});
dojo.provide("dojo.collections.*");
dojo.provide("dojo.collections.Store");
dojo.collections.Store=function(_6eb){
var data=[];
var _6ed={};
this.keyField="Id";
this.get=function(){
return data;
};
this.getByKey=function(key){
return _6ed[key];
};
this.getByIndex=function(idx){
return data[idx];
};
this.getIndexOf=function(key){
for(var i=0;i<data.length;i++){
if(data[i].key==key){
return i;
}
}
return -1;
};
this.getData=function(){
var arr=[];
for(var i=0;i<data.length;i++){
arr.push(data[i].src);
}
return arr;
};
this.getDataByKey=function(key){
if(_6ed[key]!=null){
return _6ed[key].src;
}
return null;
};
this.getIndexOfData=function(obj){
for(var i=0;i<data.length;i++){
if(data[i].src==obj){
return i;
}
}
return -1;
};
this.getDataByIndex=function(idx){
if(data[idx]){
return data[idx].src;
}
return null;
};
this.update=function(obj,_6f9,val,_6fb){
var _6fc=_6f9.split("."),i=0,o=obj,_6ff;
if(_6fc.length>1){
_6ff=_6fc.pop();
do{
if(_6fc[i].indexOf("()")>-1){
var temp=_6fc[i++].split("()")[0];
if(!o[temp]){
dojo.raise("dojo.collections.Store.getField(obj, '"+_6ff+"'): '"+temp+"' is not a property of the passed object.");
}else{
o=o[temp]();
}
}else{
o=o[_6fc[i++]];
}
}while(i<_6fc.length&&o!=null);
}else{
_6ff=_6fc[0];
}
obj[_6ff]=val;
if(!_6fb){
this.onUpdateField(obj,_6f9,val);
}
};
this.forEach=function(fn){
if(Array.forEach){
Array.forEach(data,fn,this);
}else{
for(var i=0;i<data.length;i++){
fn.call(this,data[i]);
}
}
};
this.forEachData=function(fn){
if(Array.forEach){
Array.forEach(this.getData(),fn,this);
}else{
var a=this.getData();
for(var i=0;i<a.length;i++){
fn.call(this,a[i]);
}
}
};
this.setData=function(arr,_707){
data=[];
for(var i=0;i<arr.length;i++){
var o={key:arr[i][this.keyField],src:arr[i]};
data.push(o);
_6ed[o.key]=o;
}
if(!_707){
this.onSetData();
}
};
this.clearData=function(_70a){
data=[];
_6ed={};
if(!_70a){
this.onClearData();
}
};
this.addData=function(obj,key,_70d){
var k=key||obj[this.keyField];
if(_6ed[k]!=null){
var o=_6ed[k];
o.src=obj;
}else{
var o={key:k,src:obj};
data.push(o);
_6ed[o.key]=o;
}
if(!_70d){
this.onAddData(o);
}
};
this.addDataRange=function(arr,_711){
var _712=[];
for(var i=0;i<arr.length;i++){
var k=arr[i][this.keyField];
if(_6ed[k]!=null){
var o=_6ed[k];
o.src=arr[i];
}else{
var o={key:k,src:arr[i]};
data.push(o);
_6ed[k]=o;
}
_712.push(o);
}
if(!_711){
this.onAddDataRange(_712);
}
};
this.addDataByIndex=function(obj,idx,key,_719){
var k=key||obj[this.keyField];
if(_6ed[k]!=null){
var i=this.getIndexOf(k);
var o=data.splice(i,1);
o.src=obj;
}else{
var o={key:k,src:obj};
_6ed[k]=o;
}
data.splice(idx,0,o);
if(!_719){
this.onAddData(o);
}
};
this.addDataRangeByIndex=function(arr,idx,_71f){
var _720=[];
for(var i=0;i<arr.length;i++){
var k=arr[i][this.keyField];
if(_6ed[k]!=null){
var j=this.getIndexOf(k);
var o=data.splice(j,1);
o.src=arr[i];
}else{
var o={key:k,src:arr[i]};
_6ed[k]=o;
}
_720.push(o);
}
data.splice(idx,0,_720);
if(!_71f){
this.onAddDataRange(_720);
}
};
this.removeData=function(obj,_726){
var idx=-1;
var o=null;
for(var i=0;i<data.length;i++){
if(data[i].src==obj){
idx=i;
o=data[i];
break;
}
}
if(!_726){
this.onRemoveData(o);
}
if(idx>-1){
data.splice(idx,1);
delete _6ed[o.key];
}
};
this.removeDataRange=function(idx,_72b,_72c){
var ret=data.splice(idx,_72b);
for(var i=0;i<ret.length;i++){
delete _6ed[ret[i].key];
}
if(!_72c){
this.onRemoveDataRange(ret);
}
return ret;
};
this.removeDataByKey=function(key,_730){
this.removeData(this.getDataByKey(key),_730);
};
this.removeDataByIndex=function(idx,_732){
this.removeData(this.getDataByIndex(idx),_732);
};
if(_6eb&&_6eb.length&&_6eb[0]){
this.setData(_6eb,true);
}
};
dojo.extend(dojo.collections.Store,{getField:function(obj,_734){
var _735=_734.split("."),i=0,o=obj;
do{
if(_735[i].indexOf("()")>-1){
var temp=_735[i++].split("()")[0];
if(!o[temp]){
dojo.raise("dojo.collections.Store.getField(obj, '"+_734+"'): '"+temp+"' is not a property of the passed object.");
}else{
o=o[temp]();
}
}else{
o=o[_735[i++]];
}
}while(i<_735.length&&o!=null);
if(i<_735.length){
dojo.raise("dojo.collections.Store.getField(obj, '"+_734+"'): '"+_734+"' is not a property of the passed object.");
}
return o;
},getFromHtml:function(meta,body,_73b){
var rows=body.rows;
var ctor=function(row){
var obj={};
for(var i=0;i<meta.length;i++){
var o=obj;
var data=row.cells[i].innerHTML;
var p=meta[i].getField();
if(p.indexOf(".")>-1){
p=p.split(".");
while(p.length>1){
var pr=p.shift();
o[pr]={};
o=o[pr];
}
p=p[0];
}
var type=meta[i].getType();
if(type==String){
o[p]=data;
}else{
if(data){
o[p]=new type(data);
}else{
o[p]=new type();
}
}
}
return obj;
};
var arr=[];
for(var i=0;i<rows.length;i++){
var o=ctor(rows[i]);
if(_73b){
_73b(o,rows[i]);
}
arr.push(o);
}
return arr;
},onSetData:function(){
},onClearData:function(){
},onAddData:function(obj){
},onAddDataRange:function(arr){
},onRemoveData:function(obj){
},onRemoveDataRange:function(arr){
},onUpdateField:function(obj,_74e,val){
}});
dojo.provide("dojo.debug");
dojo.debug=function(){
if(!djConfig.isDebug){
return;
}
var args=arguments;
if(dj_undef("println",dojo.hostenv)){
dojo.raise("dojo.debug not available (yet?)");
}
var _751=dj_global["jum"]&&!dj_global["jum"].isBrowser;
var s=[(_751?"":"DEBUG: ")];
for(var i=0;i<args.length;++i){
if(!false&&args[i]&&args[i] instanceof Error){
var msg="["+args[i].name+": "+dojo.errorToString(args[i])+(args[i].fileName?", file: "+args[i].fileName:"")+(args[i].lineNumber?", line: "+args[i].lineNumber:"")+"]";
}else{
try{
var msg=String(args[i]);
}
catch(e){
if(dojo.render.html.ie){
var msg="[ActiveXObject]";
}else{
var msg="[unknown]";
}
}
}
s.push(msg);
}
dojo.hostenv.println(s.join(" "));
};
dojo.debugShallow=function(obj){
if(!djConfig.isDebug){
return;
}
dojo.debug("------------------------------------------------------------");
dojo.debug("Object: "+obj);
var _756=[];
for(var prop in obj){
try{
_756.push(prop+": "+obj[prop]);
}
catch(E){
_756.push(prop+": ERROR - "+E.message);
}
}
_756.sort();
for(var i=0;i<_756.length;i++){
dojo.debug(_756[i]);
}
dojo.debug("------------------------------------------------------------");
};
dojo.debugDeep=function(obj){
if(!djConfig.isDebug){
return;
}
if(!dojo.uri||!dojo.uri.dojoUri){
return dojo.debug("You'll need to load dojo.uri.* for deep debugging - sorry!");
}
if(!window.open){
return dojo.debug("Deep debugging is only supported in host environments with window.open");
}
var idx=dojo.debugDeep.debugVars.length;
dojo.debugDeep.debugVars.push(obj);
var url=(djConfig["dojoDebugDeepHtmlUrl"]||new dojo.uri.Uri(location,dojo.uri.moduleUri("dojo.debug","deep.html")).toString())+"?var="+idx;
var win=window.open(url,"_blank","width=600, height=400, resizable=yes, scrollbars=yes, status=yes");
try{
win.debugVar=obj;
}
catch(e){
}
};
dojo.debugDeep.debugVars=[];
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_75e){
var _75f=window,_760=2;
if(!dojo.lang.isFunction(func)){
_75f=func;
func=_75e;
_75e=arguments[2];
_760++;
}
if(dojo.lang.isString(func)){
func=_75f[func];
}
var args=[];
for(var i=_760;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_75f,args);
},_75e);
};
dojo.lang.clearTimeout=function(_763){
dojo.global().clearTimeout(_763);
};
dojo.lang.getNameInObj=function(ns,item){
if(!ns){
ns=dj_global;
}
for(var x in ns){
if(ns[x]===item){
return new String(x);
}
}
return null;
};
dojo.lang.shallowCopy=function(obj,deep){
var i,ret;
if(obj===null){
return null;
}
if(dojo.lang.isObject(obj)){
ret=new obj.constructor();
for(i in obj){
if(dojo.lang.isUndefined(ret[i])){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}
}else{
if(dojo.lang.isArray(obj)){
ret=[];
for(i=0;i<obj.length;i++){
ret[i]=deep?dojo.lang.shallowCopy(obj[i],deep):obj[i];
}
}else{
ret=obj;
}
}
return ret;
};
dojo.lang.firstValued=function(){
for(var i=0;i<arguments.length;i++){
if(typeof arguments[i]!="undefined"){
return arguments[i];
}
}
return undefined;
};
dojo.lang.getObjPathValue=function(_76c,_76d,_76e){
with(dojo.parseObjPath(_76c,_76d,_76e)){
return dojo.evalProp(prop,obj,_76e);
}
};
dojo.lang.setObjPathValue=function(_76f,_770,_771,_772){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_772=true;
}
with(dojo.parseObjPath(_76f,_771,_772)){
if(obj&&(_772||(prop in obj))){
obj[prop]=_770;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_773,_774,init,_776){
if((dojo.lang.isFunction(_776))||((!_776)&&(!dojo.lang.isFunction(init)))){
var temp=_776;
_776=init;
init=temp;
}
var _778=[];
if(dojo.lang.isArray(_774)){
_778=_774;
_774=_778.shift();
}
if(!init){
init=dojo.evalObjPath(_773,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_774?_774.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _774();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_778;
for(var i=0,l=_778.length;i<l;i++){
dojo.lang.extend(ctor,_778[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_773;
if(dojo.lang.isArray(_776)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_776));
}else{
dojo.lang.extend(ctor,(_776)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _77d=dojo.parseObjPath(_773,null,true);
_77d.obj[_77d.prop]=ctor;
return ctor;
};
dojo.lang.declare._makeConstructor=function(){
return function(){
var self=this._getPropContext();
var s=self.constructor.superclass;
if((s)&&(s.constructor)){
if(s.constructor==arguments.callee){
this._inherited("constructor",arguments);
}else{
this._contextMethod(s,"constructor",arguments);
}
}
var ms=(self.constructor.mixins)||([]);
for(var i=0,m;(m=ms[i]);i++){
(((m.prototype)&&(m.prototype.initializer))||(m)).apply(this,arguments);
}
if((!this.prototyping)&&(self.initializer)){
self.initializer.apply(this,arguments);
}
};
};
dojo.lang.declare._common={_getPropContext:function(){
return (this.___proto||this);
},_contextMethod:function(_783,_784,args){
var _786,_787=this.___proto;
this.___proto=_783;
try{
_786=_783[_784].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_787;
}
return _786;
},_inherited:function(prop,args){
var p=this._getPropContext();
do{
if((!p.constructor)||(!p.constructor.superclass)){
return;
}
p=p.constructor.superclass;
}while(!(prop in p));
return (dojo.lang.isFunction(p[prop])?this._contextMethod(p,prop,args):p[prop]);
},inherited:function(prop,args){
dojo.deprecated("'inherited' method is dangerous, do not up-call! 'inherited' is slated for removal in 0.5; name your super class (or use superclass property) instead.","0.5");
this._inherited(prop,args);
}};
dojo.declare=dojo.lang.declare;
dojo.provide("dojo.dnd.DragAndDrop");
dojo.declare("dojo.dnd.DragSource",null,{type:"",onDragEnd:function(evt){
},onDragStart:function(evt){
},onSelected:function(evt){
},unregister:function(){
dojo.dnd.dragManager.unregisterDragSource(this);
},reregister:function(){
dojo.dnd.dragManager.registerDragSource(this);
}});
dojo.declare("dojo.dnd.DragObject",null,{type:"",register:function(){
var dm=dojo.dnd.dragManager;
if(dm["registerDragObject"]){
dm.registerDragObject(this);
}
},onDragStart:function(evt){
},onDragMove:function(evt){
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragEnd:function(evt){
},onDragLeave:dojo.lang.forward("onDragOut"),onDragEnter:dojo.lang.forward("onDragOver"),ondragout:dojo.lang.forward("onDragOut"),ondragover:dojo.lang.forward("onDragOver")});
dojo.declare("dojo.dnd.DropTarget",null,{acceptsType:function(type){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
if(!dojo.lang.inArray(this.acceptedTypes,type)){
return false;
}
}
return true;
},accepts:function(_797){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_797.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_797[i].type)){
return false;
}
}
}
return true;
},unregister:function(){
dojo.dnd.dragManager.unregisterDropTarget(this);
},onDragOver:function(evt){
},onDragOut:function(evt){
},onDragMove:function(evt){
},onDropStart:function(evt){
},onDrop:function(evt){
},onDropEnd:function(){
}},function(){
this.acceptedTypes=[];
});
dojo.dnd.DragEvent=function(){
this.dragSource=null;
this.dragObject=null;
this.target=null;
this.eventStatus="success";
};
dojo.declare("dojo.dnd.DragManager",null,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(_79e){
},dropTargets:[],registerDropTarget:function(_79f){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
dojo.provide("dojo.event.common");
dojo.event=new function(){
this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]);
function interpolateArgs(args,_7a1){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _7a4=dl.nameAnonFunc(args[2],ao.adviceObj,_7a1);
ao.adviceFunc=_7a4;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _7a4=dl.nameAnonFunc(args[0],ao.srcObj,_7a1);
ao.srcFunc=_7a4;
ao.adviceObj=args[1];
ao.adviceFunc=args[2];
}
}
}
}
break;
case 4:
if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){
ao.adviceType=args[0];
ao.srcObj=dj_global;
var _7a4=dl.nameAnonFunc(args[1],dj_global,_7a1);
ao.srcFunc=_7a4;
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){
ao.srcObj=args[1];
ao.srcFunc=args[2];
var _7a4=dl.nameAnonFunc(args[3],dj_global,_7a1);
ao.adviceObj=dj_global;
ao.adviceFunc=_7a4;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
ao.maxCalls=(!isNaN(parseInt(args[11])))?args[11]:-1;
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _7a4=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_7a1);
ao.aroundFunc=_7a4;
}
if(dl.isFunction(ao.srcFunc)){
ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc);
}
if(dl.isFunction(ao.adviceFunc)){
ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc);
}
if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){
ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc);
}
if(!ao.srcObj){
dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc);
}
if(!ao.adviceObj){
dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc);
}
if(!ao.adviceFunc){
dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc);
dojo.debugShallow(ao);
}
return ao;
}
this.connect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.connect(ao);
}
ao.srcFunc="onkeypress";
}
if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){
var _7a6={};
for(var x in ao){
_7a6[x]=ao[x];
}
var mjps=[];
dojo.lang.forEach(ao.srcObj,function(src){
if((dojo.render.html.capable)&&(dojo.lang.isString(src))){
src=dojo.byId(src);
}
_7a6.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_7a6));
});
return mjps;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc);
if(ao.adviceFunc){
var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc);
}
mjp.kwAddAdvice(ao);
return mjp;
};
this.log=function(a1,a2){
var _7ae;
if((arguments.length==1)&&(typeof a1=="object")){
_7ae=a1;
}else{
_7ae={srcObj:a1,srcFunc:a2};
}
_7ae.adviceFunc=function(){
var _7af=[];
for(var x=0;x<arguments.length;x++){
_7af.push(arguments[x]);
}
dojo.debug("("+_7ae.srcObj+")."+_7ae.srcFunc,":",_7af.join(", "));
};
this.kwConnect(_7ae);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this.connectRunOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.maxCalls=1;
return this.connect(ao);
};
this._kwConnectImpl=function(_7b7,_7b8){
var fn=(_7b8)?"disconnect":"connect";
if(typeof _7b7["srcFunc"]=="function"){
_7b7.srcObj=_7b7["srcObj"]||dj_global;
var _7ba=dojo.lang.nameAnonFunc(_7b7.srcFunc,_7b7.srcObj,true);
_7b7.srcFunc=_7ba;
}
if(typeof _7b7["adviceFunc"]=="function"){
_7b7.adviceObj=_7b7["adviceObj"]||dj_global;
var _7ba=dojo.lang.nameAnonFunc(_7b7.adviceFunc,_7b7.adviceObj,true);
_7b7.adviceFunc=_7ba;
}
_7b7.srcObj=_7b7["srcObj"]||dj_global;
_7b7.adviceObj=_7b7["adviceObj"]||_7b7["targetObj"]||dj_global;
_7b7.adviceFunc=_7b7["adviceFunc"]||_7b7["targetFunc"];
return dojo.event[fn](_7b7);
};
this.kwConnect=function(_7bb){
return this._kwConnectImpl(_7bb,false);
};
this.disconnect=function(){
if(arguments.length==1){
var ao=arguments[0];
}else{
var ao=interpolateArgs(arguments,true);
}
if(!ao.adviceFunc){
return;
}
if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){
if(dojo.render.html.ie){
ao.srcFunc="onkeydown";
this.disconnect(ao);
}
ao.srcFunc="onkeypress";
}
if(!ao.srcObj[ao.srcFunc]){
return null;
}
var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc,true);
mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once);
return mjp;
};
this.kwDisconnect=function(_7be){
return this._kwConnectImpl(_7be,true);
};
};
dojo.event.MethodInvocation=function(_7bf,obj,args){
this.jp_=_7bf;
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,_7c7){
this.object=obj||dj_global;
this.methodname=_7c7;
this.methodfunc=this.object[_7c7];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_7c9){
if(!obj){
obj=dj_global;
}
var ofn=obj[_7c9];
if(!ofn){
ofn=obj[_7c9]=function(){
};
if(!obj[_7c9]){
dojo.raise("Cannot set do-nothing method on that object "+_7c9);
}
}else{
if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){
return null;
}
}
var _7cb=_7c9+"$joinpoint";
var _7cc=_7c9+"$joinpoint$method";
var _7cd=obj[_7cb];
if(!_7cd){
var _7ce=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_7ce=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_7cb,_7cc,_7c9]);
}
}
var _7cf=ofn.length;
obj[_7cc]=ofn;
_7cd=obj[_7cb]=new dojo.event.MethodJoinPoint(obj,_7cc);
if(!_7ce){
obj[_7c9]=function(){
return _7cd.run.apply(_7cd,arguments);
};
}else{
obj[_7c9]=function(){
var args=[];
if(!arguments.length){
var evt=null;
try{
if(obj.ownerDocument){
evt=obj.ownerDocument.parentWindow.event;
}else{
if(obj.documentElement){
evt=obj.documentElement.ownerDocument.parentWindow.event;
}else{
if(obj.event){
evt=obj.event;
}else{
evt=window.event;
}
}
}
}
catch(e){
evt=window.event;
}
if(evt){
args.push(dojo.event.browser.fixEvent(evt,this));
}
}else{
for(var x=0;x<arguments.length;x++){
if((x==0)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _7cd.run.apply(_7cd,args);
};
}
obj[_7c9].__preJoinArity=_7cf;
}
return _7cd;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{squelch:false,unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _7d5=[];
for(var x=0;x<args.length;x++){
_7d5[x]=args[x];
}
var _7d7=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _7d9=marr[0]||dj_global;
var _7da=marr[1];
if(!_7d9[_7da]){
dojo.raise("function \""+_7da+"\" does not exist on \""+_7d9+"\"");
}
var _7db=marr[2]||dj_global;
var _7dc=marr[3];
var msg=marr[6];
var _7de=marr[7];
if(_7de>-1){
if(_7de==0){
return;
}
marr[7]--;
}
var _7df;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _7d9[_7da].apply(_7d9,to.args);
}};
to.args=_7d5;
var _7e1=parseInt(marr[4]);
var _7e2=((!isNaN(_7e1))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _7e5=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;
_7d7(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_7dc){
_7db[_7dc].call(_7db,to);
}else{
if((_7e2)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_7d9[_7da].call(_7d9,to);
}else{
_7d9[_7da].apply(_7d9,args);
}
},_7e1);
}else{
if(msg){
_7d9[_7da].call(_7d9,to);
}else{
_7d9[_7da].apply(_7d9,args);
}
}
}
};
var _7e8=function(){
if(this.squelch){
try{
return _7d7.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _7d7.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_7e8);
}
var _7e9;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_7e9=mi.proceed();
}else{
if(this.methodfunc){
_7e9=this.object[this.methodname].apply(this.object,args);
}
}
}
catch(e){
if(!this.squelch){
dojo.debug(e,"when calling",this.methodname,"on",this.object,"with arguments",args);
dojo.raise(e);
}
}
if((this["after"])&&(this.after.length>0)){
dojo.lang.forEach(this.after.concat(new Array()),_7e8);
}
return (this.methodfunc)?_7e9:null;
},getArr:function(kind){
var type="after";
if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){
type="before";
}else{
if(kind=="around"){
type="around";
}
}
if(!this[type]){
this[type]=[];
}
return this[type];
},kwAddAdvice:function(args){
this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"],args["maxCalls"]);
},addAdvice:function(_7ee,_7ef,_7f0,_7f1,_7f2,_7f3,once,_7f5,rate,_7f7,_7f8){
var arr=this.getArr(_7f2);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_7ee,_7ef,_7f0,_7f1,_7f5,rate,_7f7,_7f8];
if(once){
if(this.hasAdvice(_7ee,_7ef,_7f2,arr)>=0){
return;
}
}
if(_7f3=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_7fb,_7fc,_7fd,arr){
if(!arr){
arr=this.getArr(_7fd);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _7fc=="object")?(new String(_7fc)).toString():_7fc;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_7fb)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_803,_804,_805,once){
var arr=this.getArr(_805);
var ind=this.hasAdvice(_803,_804,_805,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_803,_804,_805,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_809){
if(!this.topics[_809]){
this.topics[_809]=new this.TopicImpl(_809);
}
return this.topics[_809];
};
this.registerPublisher=function(_80a,obj,_80c){
var _80a=this.getTopic(_80a);
_80a.registerPublisher(obj,_80c);
};
this.subscribe=function(_80d,obj,_80f){
var _80d=this.getTopic(_80d);
_80d.subscribe(obj,_80f);
};
this.unsubscribe=function(_810,obj,_812){
var _810=this.getTopic(_810);
_810.unsubscribe(obj,_812);
};
this.destroy=function(_813){
this.getTopic(_813).destroy();
delete this.topics[_813];
};
this.publishApply=function(_814,args){
var _814=this.getTopic(_814);
_814.sendMessage.apply(_814,args);
};
this.publish=function(_816,_817){
var _816=this.getTopic(_816);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_816.sendMessage.apply(_816,args);
};
};
dojo.event.topic.TopicImpl=function(_81a){
this.topicName=_81a;
this.subscribe=function(_81b,_81c){
var tf=_81c||_81b;
var to=(!_81c)?dj_global:_81b;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_81f,_820){
var tf=(!_820)?_81f:_820;
var to=(!_820)?null:_81f;
return dojo.event.kwDisconnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this._getJoinPoint=function(){
return dojo.event.MethodJoinPoint.getForMethod(this,"sendMessage");
};
this.setSquelch=function(_823){
this._getJoinPoint().squelch=_823;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_824,_825){
dojo.event.connect(_824,_825,this,"sendMessage");
};
this.sendMessage=function(_826){
};
};
dojo.provide("dojo.event.browser");
dojo._ie_clobber=new function(){
this.clobberNodes=[];
function nukeProp(node,prop){
try{
node[prop]=null;
}
catch(e){
}
try{
delete node[prop];
}
catch(e){
}
try{
node.removeAttribute(prop);
}
catch(e){
}
}
this.clobber=function(_829){
var na;
var tna;
if(_829){
tna=_829.all||_829.getElementsByTagName("*");
na=[_829];
for(var x=0;x<tna.length;x++){
if(tna[x]["__doClobber__"]){
na.push(tna[x]);
}
}
}else{
try{
window.onload=null;
}
catch(e){
}
na=(this.clobberNodes.length)?this.clobberNodes:document.all;
}
tna=null;
var _82d={};
for(var i=na.length-1;i>=0;i=i-1){
var el=na[i];
try{
if(el&&el["__clobberAttrs__"]){
for(var j=0;j<el.__clobberAttrs__.length;j++){
nukeProp(el,el.__clobberAttrs__[j]);
}
nukeProp(el,"__clobberAttrs__");
nukeProp(el,"__doClobber__");
}
}
catch(e){
}
}
na=null;
};
};
if(dojo.render.html.ie){
dojo.addOnUnload(function(){
dojo._ie_clobber.clobber();
try{
if((dojo["widget"])&&(dojo.widget["manager"])){
dojo.widget.manager.destroyAll();
}
}
catch(e){
}
if(dojo.widget){
for(var name in dojo.widget._templateCache){
if(dojo.widget._templateCache[name].node){
dojo.dom.destroyNode(dojo.widget._templateCache[name].node);
dojo.widget._templateCache[name].node=null;
delete dojo.widget._templateCache[name].node;
}
}
}
try{
window.onload=null;
}
catch(e){
}
try{
window.onunload=null;
}
catch(e){
}
dojo._ie_clobber.clobberNodes=[];
});
}
dojo.event.browser=new function(){
var _832=0;
this.normalizedEventName=function(_833){
switch(_833){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _833;
break;
default:
var lcn=_833.toLowerCase();
return (lcn.indexOf("on")==0)?lcn.substr(2):lcn;
break;
}
};
this.clean=function(node){
if(dojo.render.html.ie){
dojo._ie_clobber.clobber(node);
}
};
this.addClobberNode=function(node){
if(!dojo.render.html.ie){
return;
}
if(!node["__doClobber__"]){
node.__doClobber__=true;
dojo._ie_clobber.clobberNodes.push(node);
node.__clobberAttrs__=[];
}
};
this.addClobberNodeAttrs=function(node,_838){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_838.length;x++){
node.__clobberAttrs__.push(_838[x]);
}
};
this.removeListener=function(node,_83b,fp,_83d){
if(!_83d){
var _83d=false;
}
_83b=dojo.event.browser.normalizedEventName(_83b);
if(_83b=="key"){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_83d);
}
_83b="keypress";
}
if(node.removeEventListener){
node.removeEventListener(_83b,fp,_83d);
}
};
this.addListener=function(node,_83f,fp,_841,_842){
if(!node){
return;
}
if(!_841){
var _841=false;
}
_83f=dojo.event.browser.normalizedEventName(_83f);
if(_83f=="key"){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_841,_842);
}
_83f="keypress";
}
if(!_842){
var _843=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_841){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_843=fp;
}
if(node.addEventListener){
node.addEventListener(_83f,_843,_841);
return _843;
}else{
_83f="on"+_83f;
if(typeof node[_83f]=="function"){
var _846=node[_83f];
node[_83f]=function(e){
_846(e);
return _843(e);
};
}else{
node[_83f]=_843;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_83f]);
}
return _843;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_849,_84a){
if(typeof _849!="function"){
dojo.raise("listener not a function: "+_849);
}
dojo.event.browser.currentEvent.currentTarget=_84a;
return _849.call(_84a,dojo.event.browser.currentEvent);
};
this._stopPropagation=function(){
dojo.event.browser.currentEvent.cancelBubble=true;
};
this._preventDefault=function(){
dojo.event.browser.currentEvent.returnValue=false;
};
this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_HELP:47,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_NUMPAD_MULTIPLY:106,KEY_NUMPAD_PLUS:107,KEY_NUMPAD_ENTER:108,KEY_NUMPAD_MINUS:109,KEY_NUMPAD_PERIOD:110,KEY_NUMPAD_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145};
this.revKeys=[];
for(var key in this.keys){
this.revKeys[this.keys[key]]=key;
}
this.fixEvent=function(evt,_84d){
if(!evt){
if(window["event"]){
evt=window.event;
}
}
if((evt["type"])&&(evt["type"].indexOf("key")==0)){
evt.keys=this.revKeys;
for(var key in this.keys){
evt[key]=this.keys[key];
}
if(evt["type"]=="keydown"&&dojo.render.html.ie){
switch(evt.keyCode){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_LEFT_WINDOW:
case evt.KEY_RIGHT_WINDOW:
case evt.KEY_SELECT:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
case evt.KEY_NUMPAD_0:
case evt.KEY_NUMPAD_1:
case evt.KEY_NUMPAD_2:
case evt.KEY_NUMPAD_3:
case evt.KEY_NUMPAD_4:
case evt.KEY_NUMPAD_5:
case evt.KEY_NUMPAD_6:
case evt.KEY_NUMPAD_7:
case evt.KEY_NUMPAD_8:
case evt.KEY_NUMPAD_9:
case evt.KEY_NUMPAD_PERIOD:
break;
case evt.KEY_NUMPAD_MULTIPLY:
case evt.KEY_NUMPAD_PLUS:
case evt.KEY_NUMPAD_ENTER:
case evt.KEY_NUMPAD_MINUS:
case evt.KEY_NUMPAD_DIVIDE:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
case evt.KEY_PAGE_UP:
case evt.KEY_PAGE_DOWN:
case evt.KEY_END:
case evt.KEY_HOME:
case evt.KEY_LEFT_ARROW:
case evt.KEY_UP_ARROW:
case evt.KEY_RIGHT_ARROW:
case evt.KEY_DOWN_ARROW:
case evt.KEY_INSERT:
case evt.KEY_DELETE:
case evt.KEY_F1:
case evt.KEY_F2:
case evt.KEY_F3:
case evt.KEY_F4:
case evt.KEY_F5:
case evt.KEY_F6:
case evt.KEY_F7:
case evt.KEY_F8:
case evt.KEY_F9:
case evt.KEY_F10:
case evt.KEY_F11:
case evt.KEY_F12:
case evt.KEY_F12:
case evt.KEY_F13:
case evt.KEY_F14:
case evt.KEY_F15:
case evt.KEY_CLEAR:
case evt.KEY_HELP:
evt.key=evt.keyCode;
break;
default:
if(evt.ctrlKey||evt.altKey){
var _84f=evt.keyCode;
if(_84f>=65&&_84f<=90&&evt.shiftKey==false){
_84f+=32;
}
if(_84f>=1&&_84f<=26&&evt.ctrlKey){
_84f+=96;
}
evt.key=String.fromCharCode(_84f);
}
}
}else{
if(evt["type"]=="keypress"){
if(dojo.render.html.opera){
if(evt.which==0){
evt.key=evt.keyCode;
}else{
if(evt.which>0){
switch(evt.which){
case evt.KEY_SHIFT:
case evt.KEY_CTRL:
case evt.KEY_ALT:
case evt.KEY_CAPS_LOCK:
case evt.KEY_NUM_LOCK:
case evt.KEY_SCROLL_LOCK:
break;
case evt.KEY_PAUSE:
case evt.KEY_TAB:
case evt.KEY_BACKSPACE:
case evt.KEY_ENTER:
case evt.KEY_ESCAPE:
evt.key=evt.which;
break;
default:
var _84f=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_84f+=32;
}
evt.key=String.fromCharCode(_84f);
}
}
}
}else{
if(dojo.render.html.ie){
if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){
evt.key=String.fromCharCode(evt.keyCode);
}
}else{
if(dojo.render.html.safari){
switch(evt.keyCode){
case 25:
evt.key=evt.KEY_TAB;
evt.shift=true;
break;
case 63232:
evt.key=evt.KEY_UP_ARROW;
break;
case 63233:
evt.key=evt.KEY_DOWN_ARROW;
break;
case 63234:
evt.key=evt.KEY_LEFT_ARROW;
break;
case 63235:
evt.key=evt.KEY_RIGHT_ARROW;
break;
case 63236:
evt.key=evt.KEY_F1;
break;
case 63237:
evt.key=evt.KEY_F2;
break;
case 63238:
evt.key=evt.KEY_F3;
break;
case 63239:
evt.key=evt.KEY_F4;
break;
case 63240:
evt.key=evt.KEY_F5;
break;
case 63241:
evt.key=evt.KEY_F6;
break;
case 63242:
evt.key=evt.KEY_F7;
break;
case 63243:
evt.key=evt.KEY_F8;
break;
case 63244:
evt.key=evt.KEY_F9;
break;
case 63245:
evt.key=evt.KEY_F10;
break;
case 63246:
evt.key=evt.KEY_F11;
break;
case 63247:
evt.key=evt.KEY_F12;
break;
case 63250:
evt.key=evt.KEY_PAUSE;
break;
case 63272:
evt.key=evt.KEY_DELETE;
break;
case 63273:
evt.key=evt.KEY_HOME;
break;
case 63275:
evt.key=evt.KEY_END;
break;
case 63276:
evt.key=evt.KEY_PAGE_UP;
break;
case 63277:
evt.key=evt.KEY_PAGE_DOWN;
break;
case 63302:
evt.key=evt.KEY_INSERT;
break;
case 63248:
case 63249:
case 63289:
break;
default:
evt.key=evt.charCode>=evt.KEY_SPACE?String.fromCharCode(evt.charCode):evt.keyCode;
}
}else{
evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode;
}
}
}
}
}
}
if(dojo.render.html.ie){
if(!evt.target){
evt.target=evt.srcElement;
}
if(!evt.currentTarget){
evt.currentTarget=(_84d?_84d:evt.srcElement);
}
if(!evt.layerX){
evt.layerX=evt.offsetX;
}
if(!evt.layerY){
evt.layerY=evt.offsetY;
}
var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document;
var _851=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_851.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_851.scrollTop||0);
}
if(evt.type=="mouseover"){
evt.relatedTarget=evt.fromElement;
}
if(evt.type=="mouseout"){
evt.relatedTarget=evt.toElement;
}
this.currentEvent=evt;
evt.callListener=this.callListener;
evt.stopPropagation=this._stopPropagation;
evt.preventDefault=this._preventDefault;
}
return evt;
};
this.stopEvent=function(evt){
if(window.event){
evt.cancelBubble=true;
evt.returnValue=false;
}else{
evt.preventDefault();
evt.stopPropagation();
}
};
};
dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]});
dojo.provide("dojo.event.*");
dojo.provide("dojo.html.common");
dojo.lang.mixin(dojo.html,dojo.dom);
dojo.html.body=function(){
dojo.deprecated("dojo.html.body() moved to dojo.body()","0.5");
return dojo.body();
};
dojo.html.getEventTarget=function(evt){
if(!evt){
evt=dojo.global().event||{};
}
var t=(evt.srcElement?evt.srcElement:(evt.target?evt.target:null));
while((t)&&(t.nodeType!=1)){
t=t.parentNode;
}
return t;
};
dojo.html.getViewport=function(){
var _855=dojo.global();
var _856=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_856.documentElement.clientWidth;
h=_855.innerHeight;
}else{
if(!dojo.render.html.opera&&_855.innerWidth){
w=_855.innerWidth;
h=_855.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_856,"documentElement.clientWidth")){
var w2=_856.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_856.documentElement.clientHeight;
}else{
if(dojo.body().clientWidth){
w=dojo.body().clientWidth;
h=dojo.body().clientHeight;
}
}
}
}
return {width:w,height:h};
};
dojo.html.getScroll=function(){
var _85a=dojo.global();
var _85b=dojo.doc();
var top=_85a.pageYOffset||_85b.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_85a.pageXOffset||_85b.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _860=dojo.doc();
var _861=dojo.byId(node);
type=type.toLowerCase();
while((_861)&&(_861.nodeName.toLowerCase()!=type)){
if(_861==(_860["body"]||_860["documentElement"])){
return null;
}
_861=_861.parentNode;
}
return _861;
};
dojo.html.getAttribute=function(node,attr){
node=dojo.byId(node);
if((!node)||(!node.getAttribute)){
return null;
}
var ta=typeof attr=="string"?attr:new String(attr);
var v=node.getAttribute(ta.toUpperCase());
if((v)&&(typeof v=="string")&&(v!="")){
return v;
}
if(v&&v.value){
return v.value;
}
if((node.getAttributeNode)&&(node.getAttributeNode(ta))){
return (node.getAttributeNode(ta)).value;
}else{
if(node.getAttribute(ta)){
return node.getAttribute(ta);
}else{
if(node.getAttribute(ta.toLowerCase())){
return node.getAttribute(ta.toLowerCase());
}
}
}
return null;
};
dojo.html.hasAttribute=function(node,attr){
return dojo.html.getAttribute(dojo.byId(node),attr)?true:false;
};
dojo.html.getCursorPosition=function(e){
e=e||dojo.global().event;
var _869={x:0,y:0};
if(e.pageX||e.pageY){
_869.x=e.pageX;
_869.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_869.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_869.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _869;
};
dojo.html.isTag=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
for(var i=1;i<arguments.length;i++){
if(node.tagName.toLowerCase()==String(arguments[i]).toLowerCase()){
return String(arguments[i]).toLowerCase();
}
}
}
return "";
};
if(dojo.render.html.ie&&!dojo.render.html.ie70){
if(window.location.href.substr(0,6).toLowerCase()!="https:"){
(function(){
var _86e=dojo.doc().createElement("script");
_86e.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_86e);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_871,_872,args,_874,_875){
dojo.deprecated("dojo.html."+_871,"replaced by dojo.html."+_872+"("+(_874?"node, {"+_874+": "+_874+"}":"")+")"+(_875?"."+_875:""),"0.5");
var _876=[];
if(_874){
var _877={};
_877[_874]=args[1];
_876.push(args[0]);
_876.push(_877);
}else{
_876=args;
}
var ret=dojo.html[_872].apply(dojo.html,args);
if(_875){
return ret[_875];
}else{
return ret;
}
};
dojo.html.getViewportWidth=function(){
return dojo.html._callDeprecated("getViewportWidth","getViewport",arguments,null,"width");
};
dojo.html.getViewportHeight=function(){
return dojo.html._callDeprecated("getViewportHeight","getViewport",arguments,null,"height");
};
dojo.html.getViewportSize=function(){
return dojo.html._callDeprecated("getViewportSize","getViewport",arguments);
};
dojo.html.getScrollTop=function(){
return dojo.html._callDeprecated("getScrollTop","getScroll",arguments,null,"top");
};
dojo.html.getScrollLeft=function(){
return dojo.html._callDeprecated("getScrollLeft","getScroll",arguments,null,"left");
};
dojo.html.getScrollOffset=function(){
return dojo.html._callDeprecated("getScrollOffset","getScroll",arguments,null,"offset");
};
dojo.provide("dojo.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_87a,uri){
var loc=dojo.hostenv.getModuleSymbols(_87a).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _87d=loc.indexOf(":");
var _87e=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_87d==-1||_87d>_87e)){
loc=dojo.hostenv.getBaseScriptUri()+loc;
}
return new dojo.uri.Uri(loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _881=new dojo.uri.Uri(arguments[i].toString());
var _882=new dojo.uri.Uri(uri.toString());
if((_881.path=="")&&(_881.scheme==null)&&(_881.authority==null)&&(_881.query==null)){
if(_881.fragment!=null){
_882.fragment=_881.fragment;
}
_881=_882;
}else{
if(_881.scheme==null){
_881.scheme=_882.scheme;
if(_881.authority==null){
_881.authority=_882.authority;
if(_881.path.charAt(0)!="/"){
var path=_882.path.substring(0,_882.path.lastIndexOf("/")+1)+_881.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;
}
}
}
}
_881.path=segs.join("/");
}
}
}
}
uri="";
if(_881.scheme!=null){
uri+=_881.scheme+":";
}
if(_881.authority!=null){
uri+="//"+_881.authority;
}
uri+=_881.path;
if(_881.query!=null){
uri+="?"+_881.query;
}
if(_881.fragment!=null){
uri+="#"+_881.fragment;
}
}
this.uri=uri.toString();
var _886="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_886));
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){
_886="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_886));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.html.style");
dojo.html.getClass=function(node){
node=dojo.byId(node);
if(!node){
return "";
}
var cs="";
if(node.className){
cs=node.className;
}else{
if(dojo.html.hasAttribute(node,"class")){
cs=dojo.html.getAttribute(node,"class");
}
}
return cs.replace(/^\s+|\s+$/g,"");
};
dojo.html.getClasses=function(node){
var c=dojo.html.getClass(node);
return (c=="")?[]:c.split(/\s+/g);
};
dojo.html.hasClass=function(node,_88d){
return (new RegExp("(^|\\s+)"+_88d+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_88f){
_88f+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_88f);
};
dojo.html.addClass=function(node,_891){
if(dojo.html.hasClass(node,_891)){
return false;
}
_891=(dojo.html.getClass(node)+" "+_891).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_891);
};
dojo.html.setClass=function(node,_893){
node=dojo.byId(node);
var cs=new String(_893);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_893);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_896,_897){
try{
if(!_897){
var _898=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_896+"(\\s+|$)"),"$1$2");
}else{
var _898=dojo.html.getClass(node).replace(_896,"");
}
dojo.html.setClass(node,_898);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_89a,_89b){
dojo.html.removeClass(node,_89b);
dojo.html.addClass(node,_89a);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_89c,_89d,_89e,_89f,_8a0){
_8a0=false;
var _8a1=dojo.doc();
_89d=dojo.byId(_89d)||_8a1;
var _8a2=_89c.split(/\s+/g);
var _8a3=[];
if(_89f!=1&&_89f!=2){
_89f=0;
}
var _8a4=new RegExp("(\\s|^)(("+_8a2.join(")|(")+"))(\\s|$)");
var _8a5=_8a2.join(" ").length;
var _8a6=[];
if(!_8a0&&_8a1.evaluate){
var _8a7=".//"+(_89e||"*")+"[contains(";
if(_89f!=dojo.html.classMatchType.ContainsAny){
_8a7+="concat(' ',@class,' '), ' "+_8a2.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_89f==2){
_8a7+=" and string-length(@class)="+_8a5+"]";
}else{
_8a7+="]";
}
}else{
_8a7+="concat(' ',@class,' '), ' "+_8a2.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _8a8=_8a1.evaluate(_8a7,_89d,null,XPathResult.ANY_TYPE,null);
var _8a9=_8a8.iterateNext();
while(_8a9){
try{
_8a6.push(_8a9);
_8a9=_8a8.iterateNext();
}
catch(e){
break;
}
}
return _8a6;
}else{
if(!_89e){
_89e="*";
}
_8a6=_89d.getElementsByTagName(_89e);
var node,i=0;
outer:
while(node=_8a6[i++]){
var _8ac=dojo.html.getClasses(node);
if(_8ac.length==0){
continue outer;
}
var _8ad=0;
for(var j=0;j<_8ac.length;j++){
if(_8a4.test(_8ac[j])){
if(_89f==dojo.html.classMatchType.ContainsAny){
_8a3.push(node);
continue outer;
}else{
_8ad++;
}
}else{
if(_89f==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_8ad==_8a2.length){
if((_89f==dojo.html.classMatchType.IsOnly)&&(_8ad==_8ac.length)){
_8a3.push(node);
}else{
if(_89f==dojo.html.classMatchType.ContainsAll){
_8a3.push(node);
}
}
}
}
return _8a3;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_8af){
var arr=_8af.split("-"),cc=arr[0];
for(var i=1;i<arr.length;i++){
cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1);
}
return cc;
};
dojo.html.toSelectorCase=function(_8b3){
return _8b3.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_8b5,_8b6){
node=dojo.byId(node);
if(!node||!node.currentStyle){
return _8b6;
}
return node.currentStyle[dojo.html.toCamelCase(_8b5)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_8b9,_8ba){
node=dojo.byId(node);
if(!node||!node.style){
return _8ba;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_8b9)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_8be){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_8be)]:undefined);
};
dojo.html.getStyle=function(node,_8c0){
var _8c1=dojo.html.getStyleProperty(node,_8c0);
return (_8c1?_8c1:dojo.html.getComputedStyle(node,_8c0));
};
dojo.html.setStyle=function(node,_8c3,_8c4){
node=dojo.byId(node);
if(node&&node.style){
var _8c5=dojo.html.toCamelCase(_8c3);
node.style[_8c5]=_8c4;
}
};
dojo.html.setStyleText=function(_8c6,text){
try{
_8c6.style.cssText=text;
}
catch(e){
_8c6.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_8c8,_8c9){
if(!_8c9.style.cssText){
_8c8.setAttribute("style",_8c9.getAttribute("style"));
}else{
_8c8.style.cssText=_8c9.style.cssText;
}
dojo.html.addClass(_8c8,dojo.html.getClass(_8c9));
};
dojo.html.getUnitValue=function(node,_8cb,_8cc){
var s=dojo.html.getComputedStyle(node,_8cb);
if((!s)||((s=="auto")&&(_8cc))){
return {value:0,units:"px"};
}
var _8ce=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_8ce){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_8ce[1]),units:_8ce[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_8cf,_8d0){
if(!_8d0){
return 0;
}
if(_8d0.slice(-2)=="px"){
return parseFloat(_8d0);
}
var _8d1=0;
with(_8cf){
var _8d2=style.left;
var _8d3=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_8d0||0;
_8d1=style.pixelLeft;
style.left=_8d2;
runtimeStyle.left=_8d3;
}
catch(e){
}
}
return _8d1;
};
}else{
dojo.html.toPixelValue=function(_8d4,_8d5){
return (_8d5&&(_8d5.slice(-2)=="px")?parseFloat(_8d5):0);
};
}
dojo.html.getPixelValue=function(node,_8d7,_8d8){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_8d7));
};
dojo.html.setPositivePixelValue=function(node,_8da,_8db){
if(isNaN(_8db)){
return false;
}
node.style[_8da]=Math.max(0,_8db)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_8dc,_8dd,_8de){
if(!dojo.html.styleSheet){
if(document.createStyleSheet){
dojo.html.styleSheet=document.createStyleSheet();
}else{
if(document.styleSheets[0]){
dojo.html.styleSheet=document.styleSheets[0];
}else{
return null;
}
}
}
if(arguments.length<3){
if(dojo.html.styleSheet.cssRules){
_8de=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_8de=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_8dc+" { "+_8dd+" }";
return dojo.html.styleSheet.insertRule(rule,_8de);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_8dc,_8dd,_8de);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_8e0){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_8e0){
_8e0=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_8e0);
}
}else{
if(document.styleSheets[0]){
if(!_8e0){
_8e0=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_8e0);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_8e3,_8e4){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _8e5=dojo.hostenv.getText(URI,false,_8e4);
if(_8e5===null){
return;
}
_8e5=dojo.html.fixPathsInCssText(_8e5,URI);
if(_8e3){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_8e5)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _8ea=doc.getElementsByTagName("style");
for(var i=0;i<_8ea.length;i++){
if(_8ea[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _8eb=dojo.html.insertCssText(_8e5,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_8e5,"nodeRef":_8eb});
if(_8eb&&djConfig.isDebug){
_8eb.setAttribute("dbgHref",URI);
}
return _8eb;
};
dojo.html.insertCssText=function(_8ec,doc,URI){
if(!_8ec){
return;
}
if(!doc){
doc=document;
}
if(URI){
_8ec=dojo.html.fixPathsInCssText(_8ec,URI);
}
var _8ef=doc.createElement("style");
_8ef.setAttribute("type","text/css");
var head=doc.getElementsByTagName("head")[0];
if(!head){
dojo.debug("No head tag in document, aborting styles");
return;
}else{
head.appendChild(_8ef);
}
if(_8ef.styleSheet){
var _8f1=function(){
try{
_8ef.styleSheet.cssText=_8ec;
}
catch(e){
dojo.debug(e);
}
};
if(_8ef.styleSheet.disabled){
setTimeout(_8f1,10);
}else{
_8f1();
}
}else{
var _8f2=doc.createTextNode(_8ec);
_8ef.appendChild(_8f2);
}
return _8ef;
};
dojo.html.fixPathsInCssText=function(_8f3,URI){
if(!_8f3||!URI){
return;
}
var _8f5,str="",url="",_8f8="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _8f9=new RegExp("url\\(\\s*("+_8f8+")\\s*\\)");
var _8fa=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_8f8+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _8fb=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_8f8+")['\"]");
while(_8f5=_8fb.exec(_8f3)){
url=_8f5[2].replace(regexTrim,"$2");
if(!_8fa.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_8f3.substring(0,_8f5.index)+"AlphaImageLoader("+_8f5[1]+"src='"+url+"'";
_8f3=_8f3.substr(_8f5.index+_8f5[0].length);
}
_8f3=str+_8f3;
str="";
}
while(_8f5=_8f9.exec(_8f3)){
url=_8f5[1].replace(regexTrim,"$2");
if(!_8fa.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_8f3.substring(0,_8f5.index)+"url("+url+")";
_8f3=_8f3.substr(_8f5.index+_8f5[0].length);
}
return str+_8f3;
};
dojo.html.setActiveStyleSheet=function(_8fc){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){
a.disabled=true;
if(a.getAttribute("title")==_8fc){
a.disabled=false;
}
}
}
};
dojo.html.getActiveStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.getPreferredStyleSheet=function(){
var i=0,a,els=dojo.doc().getElementsByTagName("link");
while(a=els[i++]){
if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){
return a.getAttribute("title");
}
}
return null;
};
dojo.html.applyBrowserClass=function(node){
var drh=dojo.render.html;
var _908={dj_ie:drh.ie,dj_ie55:drh.ie55,dj_ie6:drh.ie60,dj_ie7:drh.ie70,dj_iequirks:drh.ie&&drh.quirks,dj_opera:drh.opera,dj_opera8:drh.opera&&(Math.floor(dojo.render.version)==8),dj_opera9:drh.opera&&(Math.floor(dojo.render.version)==9),dj_khtml:drh.khtml,dj_safari:drh.safari,dj_gecko:drh.mozilla};
for(var p in _908){
if(_908[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_90b,_90c){
node=dojo.byId(node);
_90c(node,!_90b(node));
return _90b(node);
};
dojo.html.show=function(node){
node=dojo.byId(node);
if(dojo.html.getStyleProperty(node,"display")=="none"){
dojo.html.setStyle(node,"display",(node.dojoDisplayCache||""));
node.dojoDisplayCache=undefined;
}
};
dojo.html.hide=function(node){
node=dojo.byId(node);
if(typeof node["dojoDisplayCache"]=="undefined"){
var d=dojo.html.getStyleProperty(node,"display");
if(d!="none"){
node.dojoDisplayCache=d;
}
}
dojo.html.setStyle(node,"display","none");
};
dojo.html.setShowing=function(node,_911){
dojo.html[(_911?"show":"hide")](node);
};
dojo.html.isShowing=function(node){
return (dojo.html.getStyleProperty(node,"display")!="none");
};
dojo.html.toggleShowing=function(node){
return dojo.html._toggle(node,dojo.html.isShowing,dojo.html.setShowing);
};
dojo.html.displayMap={tr:"",td:"",th:"",img:"inline",span:"inline",input:"inline",button:"inline"};
dojo.html.suggestDisplayByTagName=function(node){
node=dojo.byId(node);
if(node&&node.tagName){
var tag=node.tagName.toLowerCase();
return (tag in dojo.html.displayMap?dojo.html.displayMap[tag]:"block");
}
};
dojo.html.setDisplay=function(node,_917){
dojo.html.setStyle(node,"display",((_917 instanceof String||typeof _917=="string")?_917:(_917?dojo.html.suggestDisplayByTagName(node):"none")));
};
dojo.html.isDisplayed=function(node){
return (dojo.html.getComputedStyle(node,"display")!="none");
};
dojo.html.toggleDisplay=function(node){
return dojo.html._toggle(node,dojo.html.isDisplayed,dojo.html.setDisplay);
};
dojo.html.setVisibility=function(node,_91b){
dojo.html.setStyle(node,"visibility",((_91b instanceof String||typeof _91b=="string")?_91b:(_91b?"visible":"hidden")));
};
dojo.html.isVisible=function(node){
return (dojo.html.getComputedStyle(node,"visibility")!="hidden");
};
dojo.html.toggleVisibility=function(node){
return dojo.html._toggle(node,dojo.html.isVisible,dojo.html.setVisibility);
};
dojo.html.setOpacity=function(node,_91f,_920){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_920){
if(_91f>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_91f=0.999999;
}
}else{
if(_91f<0){
_91f=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="+_91f*100+")";
}
}
node.style.filter="Alpha(Opacity="+_91f*100+")";
}else{
if(h.moz){
node.style.opacity=_91f;
node.style.MozOpacity=_91f;
}else{
if(h.safari){
node.style.opacity=_91f;
node.style.KhtmlOpacity=_91f;
}else{
node.style.opacity=_91f;
}
}
}
};
dojo.html.clearOpacity=function(node){
node=dojo.byId(node);
var ns=node.style;
var h=dojo.render.html;
if(h.ie){
try{
if(node.filters&&node.filters.alpha){
ns.filter="";
}
}
catch(e){
}
}else{
if(h.moz){
ns.opacity=1;
ns.MozOpacity=1;
}else{
if(h.safari){
ns.opacity=1;
ns.KhtmlOpacity=1;
}else{
ns.opacity=1;
}
}
}
};
dojo.html.getOpacity=function(node){
node=dojo.byId(node);
var h=dojo.render.html;
if(h.ie){
var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100;
}else{
var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1;
}
return opac>=0.999999?1:Number(opac);
};
dojo.provide("dojo.html.layout");
dojo.html.sumAncestorProperties=function(node,prop){
node=dojo.byId(node);
if(!node){
return 0;
}
var _92c=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_92c+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _92c;
};
dojo.html.setStyleAttributes=function(node,_92f){
node=dojo.byId(node);
var _930=_92f.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_930.length;i++){
var _932=_930[i].split(":");
var name=_932[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _934=_932[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_934);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_934});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_934});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_934});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_934});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_934;
}
}
};
dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"};
dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_936,_937){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_937){
_937=bs.CONTENT_BOX;
}
var _93a=2;
var _93b;
switch(_937){
case bs.MARGIN_BOX:
_93b=3;
break;
case bs.BORDER_BOX:
_93b=2;
break;
case bs.PADDING_BOX:
default:
_93b=1;
break;
case bs.CONTENT_BOX:
_93b=0;
break;
}
var h=dojo.render.html;
var db=document["body"]||document["documentElement"];
if(h.ie){
with(node.getBoundingClientRect()){
ret.x=left-2;
ret.y=top-2;
}
}else{
if(document.getBoxObjectFor){
_93a=1;
try{
var bo=document.getBoxObjectFor(node);
ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft");
ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop");
}
catch(e){
}
}else{
if(node["offsetParent"]){
var _93f;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_93f=db;
}else{
_93f=db.parentNode;
}
if(node.parentNode!=db){
var nd=node;
if(dojo.render.html.opera){
nd=db;
}
ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft");
ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop");
}
var _941=node;
do{
var n=_941["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_941["offsetTop"];
ret.y+=isNaN(m)?0:m;
_941=_941.offsetParent;
}while((_941!=_93f)&&(_941!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_936){
var _944=dojo.html.getScroll();
ret.y+=_944.top;
ret.x+=_944.left;
}
var _945=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_93a>_93b){
for(var i=_93b;i<_93a;++i){
ret.y+=_945[i](node,"top");
ret.x+=_945[i](node,"left");
}
}else{
if(_93a<_93b){
for(var i=_93b;i>_93a;--i){
ret.y-=_945[i-1](node,"top");
ret.x-=_945[i-1](node,"left");
}
}
}
ret.top=ret.y;
ret.left=ret.x;
return ret;
};
dojo.html.isPositionAbsolute=function(node){
return (dojo.html.getComputedStyle(node,"position")=="absolute");
};
dojo.html._sumPixelValues=function(node,_949,_94a){
var _94b=0;
for(var x=0;x<_949.length;x++){
_94b+=dojo.html.getPixelValue(node,_949[x],_94a);
}
return _94b;
};
dojo.html.getMargin=function(node){
return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))};
};
dojo.html.getBorder=function(node){
return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")};
};
dojo.html.getBorderExtent=function(node,side){
return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width"));
};
dojo.html.getMarginExtent=function(node,side){
return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node));
};
dojo.html.getPaddingExtent=function(node,side){
return dojo.html._sumPixelValues(node,["padding-"+side],true);
};
dojo.html.getPadding=function(node){
return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)};
};
dojo.html.getPadBorder=function(node){
var pad=dojo.html.getPadding(node);
var _958=dojo.html.getBorder(node);
return {width:pad.width+_958.width,height:pad.height+_958.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName.toLowerCase()!="img"){
var cm=document["compatMode"];
if((cm=="BackCompat")||(cm=="QuirksMode")){
return bs.BORDER_BOX;
}else{
return bs.CONTENT_BOX;
}
}else{
if(arguments.length==0){
node=document.documentElement;
}
var _95d;
if(!h.ie){
_95d=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_95d){
_95d=dojo.html.getStyle(node,"box-sizing");
}
}
return (_95d?_95d:bs.CONTENT_BOX);
}
};
dojo.html.isBorderBox=function(node){
return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX);
};
dojo.html.getBorderBox=function(node){
node=dojo.byId(node);
return {width:node.offsetWidth,height:node.offsetHeight};
};
dojo.html.getPaddingBox=function(node){
var box=dojo.html.getBorderBox(node);
var _962=dojo.html.getBorder(node);
return {width:box.width-_962.width,height:box.height-_962.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _964=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_964.width,height:node.offsetHeight-_964.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _967=0;
var _968=0;
var isbb=dojo.html.isBorderBox(node);
var _96a=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_967=args.width+_96a.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_967);
}
if(typeof args.height!="undefined"){
_968=args.height+_96a.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_968);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _96d=dojo.html.getBorderBox(node);
var _96e=dojo.html.getMargin(node);
return {width:_96d.width+_96e.width,height:_96d.height+_96e.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _971=0;
var _972=0;
var isbb=dojo.html.isBorderBox(node);
var _974=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _975=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_971=args.width-_974.width;
_971-=_975.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_971);
}
if(typeof args.height!="undefined"){
_972=args.height-_974.height;
_972-=_975.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_972);
}
return ret;
};
dojo.html.getElementBox=function(node,type){
var bs=dojo.html.boxSizing;
switch(type){
case bs.MARGIN_BOX:
return dojo.html.getMarginBox(node);
case bs.BORDER_BOX:
return dojo.html.getBorderBox(node);
case bs.PADDING_BOX:
return dojo.html.getPaddingBox(node);
case bs.CONTENT_BOX:
default:
return dojo.html.getContentBox(node);
}
};
dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_97a,_97b,_97c){
if(_97a instanceof Array||typeof _97a=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_97a.length<4){
_97a.push(0);
}
while(_97a.length>4){
_97a.pop();
}
var ret={left:_97a[0],top:_97a[1],width:_97a[2],height:_97a[3]};
}else{
if(!_97a.nodeType&&!(_97a instanceof String||typeof _97a=="string")&&("width" in _97a||"height" in _97a||"left" in _97a||"x" in _97a||"top" in _97a||"y" in _97a)){
var ret={left:_97a.left||_97a.x||0,top:_97a.top||_97a.y||0,width:_97a.width||0,height:_97a.height||0};
}else{
var node=dojo.byId(_97a);
var pos=dojo.html.abs(node,_97b,_97c);
var _980=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_980.width,height:_980.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_982){
return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width");
};
dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){
return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height");
};
dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){
return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width");
};
dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){
return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height");
};
dojo.html.getTotalOffset=function(node,type,_985){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_987){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_989){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_98b){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_98d){
return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top");
};
dojo.html.getMarginWidth=function(node){
return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width");
};
dojo.html.getMarginHeight=function(node){
return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height");
};
dojo.html.getBorderWidth=function(node){
return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width");
};
dojo.html.getBorderHeight=function(node){
return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height");
};
dojo.html.getPaddingWidth=function(node){
return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width");
};
dojo.html.getPaddingHeight=function(node){
return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height");
};
dojo.html.getPadBorderWidth=function(node){
return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width");
};
dojo.html.getPadBorderHeight=function(node){
return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height");
};
dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){
return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width");
};
dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){
return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height");
};
dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){
return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width");
};
dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){
return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height");
};
dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_997){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_999){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.dnd.HtmlDragManager");
dojo.declare("dojo.dnd.HtmlDragManager",dojo.dnd.DragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,previousDropTarget:null,_dragTriggered:false,selectedSources:[],dragObjects:[],dragSources:[],dropTargets:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,threshold:7,dropAcceptable:false,cancelEvent:function(e){
e.stopPropagation();
e.preventDefault();
},registerDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _99d=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_99d;
this.dragSources[_99d]=ds;
ds.domNode.setAttribute(dp,_99d);
if(dojo.render.html.ie){
dojo.event.browser.addListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},unregisterDragSource:function(ds){
if(ds["domNode"]){
var dp=this.dsPrefix;
var _9a0=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_9a0];
ds.domNode.setAttribute(dp,null);
if(dojo.render.html.ie){
dojo.event.browser.removeListener(ds.domNode,"ondragstart",this.cancelEvent);
}
}
},registerDropTarget:function(dt){
this.dropTargets.push(dt);
},unregisterDropTarget:function(dt){
var _9a3=dojo.lang.find(this.dropTargets,dt,true);
if(_9a3>=0){
this.dropTargets.splice(_9a3,1);
}
},getDragSource:function(e){
var tn=e.target;
if(tn===dojo.body()){
return;
}
var ta=dojo.html.getAttribute(tn,this.dsPrefix);
while((!ta)&&(tn)){
tn=tn.parentNode;
if((!tn)||(tn===dojo.body())){
return;
}
ta=dojo.html.getAttribute(tn,this.dsPrefix);
}
return this.dragSources[ta];
},onKeyDown:function(e){
},onMouseDown:function(e){
if(this.disabled){
return;
}
if(dojo.render.html.ie){
if(e.button!=1){
return;
}
}else{
if(e.which!=1){
return;
}
}
var _9a9=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_9a9,"button","textarea","input","select","option")){
return;
}
var ds=this.getDragSource(e);
if(!ds){
return;
}
if(!dojo.lang.inArray(this.selectedSources,ds)){
this.selectedSources.push(ds);
ds.onSelected();
}
this.mouseDownX=e.pageX;
this.mouseDownY=e.pageY;
e.preventDefault();
dojo.event.connect(document,"onmousemove",this,"onMouseMove");
},onMouseUp:function(e,_9ac){
if(this.selectedSources.length==0){
return;
}
this.mouseDownX=null;
this.mouseDownY=null;
this._dragTriggered=false;
e.dragSource=this.dragSource;
if((!e.shiftKey)&&(!e.ctrlKey)){
if(this.currentDropTarget){
this.currentDropTarget.onDropStart();
}
dojo.lang.forEach(this.dragObjects,function(_9ad){
var ret=null;
if(!_9ad){
return;
}
if(this.currentDropTarget){
e.dragObject=_9ad;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_9ad.domNode){
e.dropTarget=e.dropTarget.nextSibling;
}
}else{
e.dropTarget=this.currentDropTarget.domNode;
}
if(this.dropAcceptable){
ret=this.currentDropTarget.onDrop(e);
}else{
this.currentDropTarget.onDragOut(e);
}
}
e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure";
dojo.lang.delayThese([function(){
try{
_9ad.dragSource.onDragEnd(e);
}
catch(err){
var _9b0={};
for(var i in e){
if(i=="type"){
_9b0.type="mouseup";
continue;
}
_9b0[i]=e[i];
}
_9ad.dragSource.onDragEnd(_9b0);
}
},function(){
_9ad.onDragEnd(e);
}]);
},this);
this.selectedSources=[];
this.dragObjects=[];
this.dragSource=null;
if(this.currentDropTarget){
this.currentDropTarget.onDropEnd();
}
}else{
}
dojo.event.disconnect(document,"onmousemove",this,"onMouseMove");
this.currentDropTarget=null;
},onScroll:function(){
for(var i=0;i<this.dragObjects.length;i++){
if(this.dragObjects[i].updateDragOffset){
this.dragObjects[i].updateDragOffset();
}
}
if(this.dragObjects.length){
this.cacheTargetLocations();
}
},_dragStartDistance:function(x,y){
if((!this.mouseDownX)||(!this.mouseDownX)){
return;
}
var dx=Math.abs(x-this.mouseDownX);
var dx2=dx*dx;
var dy=Math.abs(y-this.mouseDownY);
var dy2=dy*dy;
return parseInt(Math.sqrt(dx2+dy2),10);
},cacheTargetLocations:function(){
dojo.profile.start("cacheTargetLocations");
this.dropTargetDimensions=[];
dojo.lang.forEach(this.dropTargets,function(_9b9){
var tn=_9b9.domNode;
if(!tn||!_9b9.accepts([this.dragSource])){
return;
}
var abs=dojo.html.getAbsolutePosition(tn,true);
var bb=dojo.html.getBorderBox(tn);
this.dropTargetDimensions.push([[abs.x,abs.y],[abs.x+bb.width,abs.y+bb.height],_9b9]);
},this);
dojo.profile.end("cacheTargetLocations");
},onMouseMove:function(e){
if((dojo.render.html.ie)&&(e.button!=1)){
this.currentDropTarget=null;
this.onMouseUp(e,true);
return;
}
if((this.selectedSources.length)&&(!this.dragObjects.length)){
var dx;
var dy;
if(!this._dragTriggered){
this._dragTriggered=(this._dragStartDistance(e.pageX,e.pageY)>this.threshold);
if(!this._dragTriggered){
return;
}
dx=e.pageX-this.mouseDownX;
dy=e.pageY-this.mouseDownY;
}
this.dragSource=this.selectedSources[0];
dojo.lang.forEach(this.selectedSources,function(_9c0){
if(!_9c0){
return;
}
var tdo=_9c0.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.y+=dy;
tdo.dragOffset.x+=dx;
tdo.dragSource=_9c0;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_9c2){
if(_9c2){
_9c2.onDragMove(e);
}
});
if(this.currentDropTarget){
var c=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true);
var dtp=[[c.x,c.y],[c.x+c.width,c.y+c.height]];
}
if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}else{
var _9c5=this.findBestTarget(e);
if(_9c5.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_9c5.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_9c5.target;
e.dragObjects=this.dragObjects;
this.dropAcceptable=this.currentDropTarget.onDragOver(e);
}else{
if(this.dropAcceptable){
this.currentDropTarget.onDragMove(e,this.dragObjects);
}
}
}
},findBestTarget:function(e){
var _9c7=this;
var _9c8=new Object();
_9c8.target=null;
_9c8.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_9c9){
if(!_9c7.isInsideBox(e,_9c9)){
return true;
}
_9c8.target=_9c9[2];
_9c8.points=_9c9;
return Boolean(_9c7.nestedTargets);
});
return _9c8;
},isInsideBox:function(e,_9cb){
if((e.pageX>_9cb[0][0])&&(e.pageX<_9cb[1][0])&&(e.pageY>_9cb[0][1])&&(e.pageY<_9cb[1][1])){
return true;
}
return false;
},onMouseOver:function(e){
},onMouseOut:function(e){
}});
dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager();
(function(){
var d=document;
var dm=dojo.dnd.dragManager;
dojo.event.connect(d,"onkeydown",dm,"onKeyDown");
dojo.event.connect(d,"onmouseover",dm,"onMouseOver");
dojo.event.connect(d,"onmouseout",dm,"onMouseOut");
dojo.event.connect(d,"onmousedown",dm,"onMouseDown");
dojo.event.connect(d,"onmouseup",dm,"onMouseUp");
dojo.event.connect(window,"onscroll",dm,"onScroll");
})();
dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]});
dojo.provide("dojo.html.*");
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_9d0){
return dojo.html.getDocumentWindow(_9d0.ownerDocument);
};
dojo.html.getDocumentWindow=function(doc){
if(dojo.render.html.safari&&!doc._parentWindow){
var fix=function(win){
win.document._parentWindow=win;
for(var i=0;i<win.frames.length;i++){
fix(win.frames[i]);
}
};
fix(window.top);
}
if(dojo.render.html.ie&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
dojo.html.gravity=function(node,e){
node=dojo.byId(node);
var _9d8=dojo.html.getCursorPosition(e);
with(dojo.html){
var _9d9=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _9db=_9d9.x+(bb.width/2);
var _9dc=_9d9.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_9d8.x<_9db?WEST:EAST)|(_9d8.y<_9dc?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(_9dd,e){
_9dd=dojo.byId(_9dd);
var _9df=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_9dd);
var _9e1=dojo.html.getAbsolutePosition(_9dd,true,dojo.html.boxSizing.BORDER_BOX);
var top=_9e1.y;
var _9e3=top+bb.height;
var left=_9e1.x;
var _9e5=left+bb.width;
return (_9df.x>=left&&_9df.x<=_9e5&&_9df.y>=top&&_9df.y<=_9e3);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _9e7="";
if(node==null){
return _9e7;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _9e9="unknown";
try{
_9e9=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_9e9){
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":
_9e7+="\n";
_9e7+=dojo.html.renderedTextContent(node.childNodes[i]);
_9e7+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_9e7+="\n";
}else{
_9e7+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _9eb="unknown";
try{
_9eb=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_9eb){
case "capitalize":
var _9ec=text.split(" ");
for(var i=0;i<_9ec.length;i++){
_9ec[i]=_9ec[i].charAt(0).toUpperCase()+_9ec[i].substring(1);
}
text=_9ec.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_9eb){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_9e7)){
text.replace(/^\s/,"");
}
break;
}
_9e7+=text;
break;
default:
break;
}
}
return _9e7;
};
dojo.html.createNodesFromText=function(txt,trim){
if(trim){
txt=txt.replace(/^\s+|\s+$/g,"");
}
var tn=dojo.doc().createElement("div");
tn.style.visibility="hidden";
dojo.body().appendChild(tn);
var _9f0="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_9f0="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_9f0="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_9f0="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _9f1=null;
switch(_9f0){
case "cell":
_9f1=tn.getElementsByTagName("tr")[0];
break;
case "row":
_9f1=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_9f1=tn.getElementsByTagName("table")[0];
break;
default:
_9f1=tn;
break;
}
var _9f2=[];
for(var x=0;x<_9f1.childNodes.length;x++){
_9f2.push(_9f1.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _9f2;
};
dojo.html.placeOnScreen=function(node,_9f5,_9f6,_9f7,_9f8,_9f9,_9fa){
if(_9f5 instanceof Array||typeof _9f5=="array"){
_9fa=_9f9;
_9f9=_9f8;
_9f8=_9f7;
_9f7=_9f6;
_9f6=_9f5[1];
_9f5=_9f5[0];
}
if(_9f9 instanceof String||typeof _9f9=="string"){
_9f9=_9f9.split(",");
}
if(!isNaN(_9f7)){
_9f7=[Number(_9f7),Number(_9f7)];
}else{
if(!(_9f7 instanceof Array||typeof _9f7=="array")){
_9f7=[0,0];
}
}
var _9fb=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _9fd=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_9fd;
if(!(_9f9 instanceof Array||typeof _9f9=="array")){
_9f9=["TL"];
}
var _a01,_a02,_a03=Infinity,_a04;
for(var _a05=0;_a05<_9f9.length;++_a05){
var _a06=_9f9[_a05];
var _a07=true;
var tryX=_9f5-(_a06.charAt(1)=="L"?0:w)+_9f7[0]*(_a06.charAt(1)=="L"?1:-1);
var tryY=_9f6-(_a06.charAt(0)=="T"?0:h)+_9f7[1]*(_a06.charAt(0)=="T"?1:-1);
if(_9f8){
tryX-=_9fb.x;
tryY-=_9fb.y;
}
if(tryX<0){
tryX=0;
_a07=false;
}
if(tryY<0){
tryY=0;
_a07=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_a07=false;
}else{
x=tryX;
}
x=Math.max(_9f7[0],x)+_9fb.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_a07=false;
}else{
y=tryY;
}
y=Math.max(_9f7[1],y)+_9fb.y;
if(_a07){
_a01=x;
_a02=y;
_a03=0;
_a04=_a06;
break;
}else{
var dist=Math.pow(x-tryX-_9fb.x,2)+Math.pow(y-tryY-_9fb.y,2);
if(_a03>dist){
_a03=dist;
_a01=x;
_a02=y;
_a04=_a06;
}
}
}
if(!_9fa){
node.style.left=_a01+"px";
node.style.top=_a02+"px";
}
return {left:_a01,top:_a02,x:_a01,y:_a02,dist:_a03,corner:_a04};
};
dojo.html.placeOnScreenPoint=function(node,_a0e,_a0f,_a10,_a11){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_a0e,_a0f,_a10,_a11,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_a13,_a14,_a15,_a16,_a17){
var best,_a19=Infinity;
_a13=dojo.byId(_a13);
var _a1a=_a13.style.display;
_a13.style.display="";
var mb=dojo.html.getElementBox(_a13,_a15);
var _a1c=mb.width;
var _a1d=mb.height;
var _a1e=dojo.html.getAbsolutePosition(_a13,true,_a15);
_a13.style.display=_a1a;
for(var _a1f in _a16){
var pos,_a21,_a22;
var _a23=_a16[_a1f];
_a21=_a1e.x+(_a1f.charAt(1)=="L"?0:_a1c);
_a22=_a1e.y+(_a1f.charAt(0)=="T"?0:_a1d);
pos=dojo.html.placeOnScreen(node,_a21,_a22,_a14,true,_a23,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_a19>pos.dist){
_a19=pos.dist;
best=pos;
}
}
}
if(!_a17){
node.style.left=best.left+"px";
node.style.top=best.top+"px";
}
return best;
};
dojo.html.scrollIntoView=function(node){
if(!node){
return;
}
if(dojo.render.html.ie){
if(dojo.html.getBorderBox(node.parentNode).height<=node.parentNode.scrollHeight){
node.scrollIntoView(false);
}
}else{
if(dojo.render.html.mozilla){
node.scrollIntoView(false);
}else{
var _a25=node.parentNode;
var _a26=_a25.scrollTop+dojo.html.getBorderBox(_a25).height;
var _a27=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_a26<_a27){
_a25.scrollTop+=(_a27-_a26);
}else{
if(_a25.scrollTop>node.offsetTop){
_a25.scrollTop-=(_a25.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _a28=dojo.global();
var _a29=dojo.doc();
try{
if(_a28["getSelection"]){
if(dojo.render.html.safari){
_a28.getSelection().collapse();
}else{
_a28.getSelection().removeAllRanges();
}
}else{
if(_a29.selection){
if(_a29.selection.empty){
_a29.selection.empty();
}else{
if(_a29.selection.clear){
_a29.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_a2a){
_a2a=dojo.byId(_a2a)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_a2a.style.MozUserSelect="none";
}else{
if(h.safari){
_a2a.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_a2a.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_a2c){
_a2c=dojo.byId(_a2c)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_a2c.style.MozUserSelect="";
}else{
if(h.safari){
_a2c.style.KhtmlUserSelect="";
}else{
if(h.ie){
_a2c.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_a2e){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_a2f){
var _a30=dojo.global();
var _a31=dojo.doc();
_a2f=dojo.byId(_a2f);
if(_a31["selection"]&&dojo.body()["createTextRange"]){
var _a32=_a2f.createTextRange();
_a32.moveStart("character",0);
_a32.moveEnd("character",_a2f.value.length);
_a32.select();
}else{
if(_a30["getSelection"]){
var _a33=_a30.getSelection();
_a2f.setSelectionRange(0,_a2f.value.length);
}
}
_a2f.focus();
};
dojo.html.isSelectionCollapsed=function(){
dojo.deprecated("dojo.html.isSelectionCollapsed","replaced by dojo.html.selection.isCollapsed",0.5);
return dojo.html.selection.isCollapsed();
};
dojo.lang.mixin(dojo.html.selection,{getType:function(){
if(dojo.doc()["selection"]){
return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];
}else{
var _a34=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _a36=oSel.getRangeAt(0);
if(_a36.startContainer==_a36.endContainer&&(_a36.endOffset-_a36.startOffset)==1&&_a36.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_a34=dojo.html.selectionType.CONTROL;
}
}
return _a34;
}
},isCollapsed:function(){
var _a37=dojo.global();
var _a38=dojo.doc();
if(_a38["selection"]){
return _a38.selection.createRange().text=="";
}else{
if(_a37["getSelection"]){
var _a39=_a37.getSelection();
if(dojo.lang.isString(_a39)){
return _a39=="";
}else{
return _a39.isCollapsed||_a39.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _a3a=dojo.doc().selection.createRange();
if(_a3a&&_a3a.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _a3b=dojo.global().getSelection();
return _a3b.anchorNode.childNodes[_a3b.anchorOffset];
}
}
},getParentElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
var p=dojo.html.selection.getSelectedElement();
if(p){
return p.parentNode;
}
}else{
if(dojo.doc()["selection"]){
return dojo.doc().selection.createRange().parentElement();
}else{
var _a3d=dojo.global().getSelection();
if(_a3d){
var node=_a3d.anchorNode;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.parentNode;
}
return node;
}
}
}
},getSelectedText:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().text;
}else{
var _a3f=dojo.global().getSelection();
if(_a3f){
return _a3f.toString();
}
}
},getSelectedHtml:function(){
if(dojo.doc()["selection"]){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
return null;
}
return dojo.doc().selection.createRange().htmlText;
}else{
var _a40=dojo.global().getSelection();
if(_a40&&_a40.rangeCount){
var frag=_a40.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_a43){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_a44){
var node=dojo.html.selection.getSelectedElement()||dojo.html.selection.getParentElement();
while(node){
if(dojo.html.selection.isTag(node,arguments).length>0){
return node;
}
node=node.parentNode;
}
return null;
},isTag:function(node,tags){
if(node&&node.tagName){
for(var i=0;i<tags.length;i++){
if(node.tagName.toLowerCase()==String(tags[i]).toLowerCase()){
return String(tags[i]).toLowerCase();
}
}
}
return "";
},selectElement:function(_a49){
var _a4a=dojo.global();
var _a4b=dojo.doc();
_a49=dojo.byId(_a49);
if(_a4b.selection&&dojo.body().createTextRange){
try{
var _a4c=dojo.body().createControlRange();
_a4c.addElement(_a49);
_a4c.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_a49);
}
}else{
if(_a4a["getSelection"]){
var _a4d=_a4a.getSelection();
if(_a4d["removeAllRanges"]){
var _a4c=_a4b.createRange();
_a4c.selectNode(_a49);
_a4d.removeAllRanges();
_a4d.addRange(_a4c);
}
}
}
},selectElementChildren:function(_a4e){
var _a4f=dojo.global();
var _a50=dojo.doc();
_a4e=dojo.byId(_a4e);
if(_a50.selection&&dojo.body().createTextRange){
var _a51=dojo.body().createTextRange();
_a51.moveToElementText(_a4e);
_a51.select();
}else{
if(_a4f["getSelection"]){
var _a52=_a4f.getSelection();
if(_a52["setBaseAndExtent"]){
_a52.setBaseAndExtent(_a4e,0,_a4e,_a4e.innerText.length-1);
}else{
if(_a52["selectAllChildren"]){
_a52.selectAllChildren(_a4e);
}
}
}
}
},getBookmark:function(){
var _a53;
var _a54=dojo.doc();
if(_a54["selection"]){
var _a55=_a54.selection.createRange();
_a53=_a55.getBookmark();
}else{
var _a56;
try{
_a56=dojo.global().getSelection();
}
catch(e){
}
if(_a56){
var _a55=_a56.getRangeAt(0);
_a53=_a55.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _a53;
},moveToBookmark:function(_a57){
var _a58=dojo.doc();
if(_a58["selection"]){
var _a59=_a58.selection.createRange();
_a59.moveToBookmark(_a57);
_a59.select();
}else{
var _a5a;
try{
_a5a=dojo.global().getSelection();
}
catch(e){
}
if(_a5a&&_a5a["removeAllRanges"]){
_a5a.removeAllRanges();
_a5a.addRange(_a57);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_a5b){
if(dojo.global()["getSelection"]){
var _a5c=dojo.global().getSelection();
if(_a5c.removeAllRanges){
if(_a5b){
_a5c.collapseToStart();
}else{
_a5c.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_a5b);
}
}else{
if(dojo.doc().selection){
var _a5d=dojo.doc().selection.createRange();
_a5d.collapse(_a5b);
_a5d.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _a5e=dojo.doc().selection;
if(_a5e.type.toUpperCase()!="NONE"){
_a5e.clear();
}
return _a5e;
}else{
var _a5e=dojo.global().getSelection();
for(var i=0;i<_a5e.rangeCount;i++){
_a5e.getRangeAt(i).deleteContents();
}
return _a5e;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_a60){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_a60))||dojo.html.iframeContentDocument(_a60).__parent__||(_a60.name&&document.frames[_a60.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_a62){
var doc=_a62.contentDocument||((_a62.contentWindow)&&(_a62.contentWindow.document))||((_a62.name)&&(document.frames[_a62.name])&&(document.frames[_a62.name].document))||null;
return doc;
};
dojo.html.BackgroundIframe=function(node){
if(dojo.render.html.ie55||dojo.render.html.ie60){
var html="<iframe src='javascript:false'"+" style='position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;"+"z-index: -1; filter:Alpha(Opacity=\"0\");' "+">";
this.iframe=dojo.doc().createElement(html);
this.iframe.tabIndex=-1;
if(node){
node.appendChild(this.iframe);
this.domNode=node;
}else{
dojo.body().appendChild(this.iframe);
this.iframe.style.display="none";
}
}
};
dojo.lang.extend(dojo.html.BackgroundIframe,{iframe:null,onResized:function(){
if(this.iframe&&this.domNode&&this.domNode.parentNode){
var _a66=dojo.html.getMarginBox(this.domNode);
if(_a66.width==0||_a66.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_a66.width+"px";
this.iframe.style.height=_a66.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _a68=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_a68.width+"px";
height=_a68.height+"px";
left=_a68.left+"px";
top=_a68.top+"px";
}
},setZIndex:function(node){
if(!this.iframe){
return;
}
if(dojo.dom.isNode(node)){
this.iframe.style.zIndex=dojo.html.getStyle(node,"z-index")-1;
}else{
if(!isNaN(node)){
this.iframe.style.zIndex=node;
}
}
},show:function(){
if(this.iframe){
this.iframe.style.display="block";
}
},hide:function(){
if(this.iframe){
this.iframe.style.display="none";
}
},remove:function(){
if(this.iframe){
dojo.html.removeNode(this.iframe,true);
delete this.iframe;
this.iframe=null;
}
}});
dojo.provide("dojo.lfx.Animation");
dojo.lfx.Line=function(_a6a,end){
this.start=_a6a;
this.end=end;
if(dojo.lang.isArray(_a6a)){
var diff=[];
dojo.lang.forEach(this.start,function(s,i){
diff[i]=this.end[i]-s;
},this);
this.getValue=function(n){
var res=[];
dojo.lang.forEach(this.start,function(s,i){
res[i]=(diff[i]*n)+s;
},this);
return res;
};
}else{
var diff=end-_a6a;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
if((dojo.render.html.khtml)&&(!dojo.render.html.safari)){
dojo.lfx.easeDefault=function(n){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
};
}else{
dojo.lfx.easeDefault=function(n){
return (0.5+((Math.sin((n+1.5)*Math.PI))/2));
};
}
dojo.lfx.easeIn=function(n){
return Math.pow(n,3);
};
dojo.lfx.easeOut=function(n){
return (1-Math.pow(1-n,3));
};
dojo.lfx.easeInOut=function(n){
return ((3*Math.pow(n,2))-(2*Math.pow(n,3)));
};
dojo.lfx.IAnimation=function(){
};
dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:10,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_a7a,_a7b){
if(!_a7b){
_a7b=_a7a;
_a7a=this;
}
_a7b=dojo.lang.hitch(_a7a,_a7b);
var _a7c=this[evt]||function(){
};
this[evt]=function(){
var ret=_a7c.apply(this,arguments);
_a7b.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_a80){
this.repeatCount=_a80;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_a81,_a82,_a83,_a84,_a85,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_a81)||(!_a81&&_a82.getValue)){
rate=_a85;
_a85=_a84;
_a84=_a83;
_a83=_a82;
_a82=_a81;
_a81=null;
}else{
if(_a81.getValue||dojo.lang.isArray(_a81)){
rate=_a84;
_a85=_a83;
_a84=_a82;
_a83=_a81;
_a82=null;
_a81=null;
}
}
if(dojo.lang.isArray(_a83)){
this.curve=new dojo.lfx.Line(_a83[0],_a83[1]);
}else{
this.curve=_a83;
}
if(_a82!=null&&_a82>0){
this.duration=_a82;
}
if(_a85){
this.repeatCount=_a85;
}
if(rate){
this.rate=rate;
}
if(_a81){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_a81[item]){
this.connect(item,_a81[item]);
}
},this);
}
if(_a84&&dojo.lang.isFunction(_a84)){
this.easing=_a84;
}
};
dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_a88,_a89){
if(_a89){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return this;
}
}
this.fire("handler",["beforeBegin"]);
this.fire("beforeBegin");
if(_a88>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_a89);
}),_a88);
return this;
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._active=true;
this._paused=false;
var step=this._percent/100;
var _a8b=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_a8b]);
this.fire("onBegin",[_a8b]);
}
this.fire("handler",["play",_a8b]);
this.fire("onPlay",[_a8b]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _a8c=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_a8c]);
this.fire("onPause",[_a8c]);
return this;
},gotoPercent:function(pct,_a8e){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_a8e){
this.play();
}
return this;
},stop:function(_a8f){
clearTimeout(this._timer);
var step=this._percent/100;
if(_a8f){
step=1;
}
var _a91=this.curve.getValue(step);
this.fire("handler",["stop",_a91]);
this.fire("onStop",[_a91]);
this._active=false;
this._paused=false;
return this;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
return this;
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if((this.easing)&&(dojo.lang.isFunction(this.easing))){
step=this.easing(step);
}
var _a94=this.curve.getValue(step);
this.fire("handler",["animate",_a94]);
this.fire("onAnimate",[_a94]);
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
this._active=false;
this.fire("handler",["end"]);
this.fire("onEnd");
if(this.repeatCount>0){
this.repeatCount--;
this.play(null,true);
}else{
if(this.repeatCount==-1){
this.play(null,true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
}
}
}
}
return this;
}});
dojo.lfx.Combine=function(_a95){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _a96=arguments;
if(_a96.length==1&&(dojo.lang.isArray(_a96[0])||dojo.lang.isArrayLike(_a96[0]))){
_a96=_a96[0];
}
dojo.lang.forEach(_a96,function(anim){
this._anims.push(anim);
anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded"));
},this);
};
dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_a98,_a99){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_a98>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_a99);
}),_a98);
return this;
}
if(_a99||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_a99);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_a9a){
this.fire("onStop");
this._animsCall("stop",_a9a);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_a9b){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _a9e=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_a9b](args);
},_a9e);
return this;
}});
dojo.lfx.Chain=function(_aa0){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _aa1=arguments;
if(_aa1.length==1&&(dojo.lang.isArray(_aa1[0])||dojo.lang.isArrayLike(_aa1[0]))){
_aa1=_aa1[0];
}
var _aa2=this;
dojo.lang.forEach(_aa1,function(anim,i,_aa5){
this._anims.push(anim);
if(i<_aa5.length-1){
anim.connect("onEnd",dojo.lang.hitch(this,"_playNext"));
}else{
anim.connect("onEnd",dojo.lang.hitch(this,function(){
this.fire("onEnd");
}));
}
},this);
};
dojo.inherits(dojo.lfx.Chain,dojo.lfx.IAnimation);
dojo.lang.extend(dojo.lfx.Chain,{_currAnim:-1,play:function(_aa6,_aa7){
if(!this._anims.length){
return this;
}
if(_aa7||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _aa8=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_aa6>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_aa7);
}),_aa6);
return this;
}
if(_aa8){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_aa8.play(null,_aa7);
}
return this;
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
this.fire("onPause",[this._currAnim]);
}
return this;
},playPause:function(){
if(this._anims.length==0){
return this;
}
if(this._currAnim==-1){
this._currAnim=0;
}
var _aa9=this._anims[this._currAnim];
if(_aa9){
if(!_aa9._active||_aa9._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _aaa=this._anims[this._currAnim];
if(_aaa){
_aaa.stop();
this.fire("onStop",[this._currAnim]);
}
return _aaa;
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return this;
}
this._currAnim++;
if(this._anims[this._currAnim]){
this._anims[this._currAnim].play(null,true);
}
return this;
}});
dojo.lfx.combine=function(_aab){
var _aac=arguments;
if(dojo.lang.isArray(arguments[0])){
_aac=arguments[0];
}
if(_aac.length==1){
return _aac[0];
}
return new dojo.lfx.Combine(_aac);
};
dojo.lfx.chain=function(_aad){
var _aae=arguments;
if(dojo.lang.isArray(arguments[0])){
_aae=arguments[0];
}
if(_aae.length==1){
return _aae[0];
}
return new dojo.lfx.Chain(_aae);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _ab0;
do{
_ab0=dojo.html.getStyle(node,"background-color");
if(_ab0.toLowerCase()=="rgba(0, 0, 0, 0)"){
_ab0="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_ab0));
if(_ab0=="transparent"){
_ab0=[255,255,255,0];
}else{
_ab0=dojo.gfx.color.extractRGB(_ab0);
}
return _ab0;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_ab1){
if(!_ab1){
return [];
}
if(dojo.lang.isArrayLike(_ab1)){
if(!_ab1.alreadyChecked){
var n=[];
dojo.lang.forEach(_ab1,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _ab1;
}
}else{
var n=[];
n.push(dojo.byId(_ab1));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_ab4,_ab5,_ab6,_ab7,_ab8){
_ab4=dojo.lfx.html._byId(_ab4);
var _ab9={"propertyMap":_ab5,"nodes":_ab4,"duration":_ab6,"easing":_ab7||dojo.lfx.easeDefault};
var _aba=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _abe in pm){
pm[_abe].property=_abe;
parr.push(pm[_abe]);
}
pm=args.propertyMap=parr;
}
dojo.lang.forEach(pm,function(prop){
if(dj_undef("start",prop)){
if(prop.property!="opacity"){
prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property));
}else{
prop.start=dojo.html.getOpacity(args.nodes[0]);
}
}
});
}
};
var _ac0=function(_ac1){
var _ac2=[];
dojo.lang.forEach(_ac1,function(c){
_ac2.push(Math.round(c));
});
return _ac2;
};
var _ac4=function(n,_ac6){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _ac6){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_ac6[s]);
}else{
n.style[s]=_ac6[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _ac8=function(_ac9){
this._properties=_ac9;
this.diffs=new Array(_ac9.length);
dojo.lang.forEach(_ac9,function(prop,i){
if(dojo.lang.isFunction(prop.start)){
prop.start=prop.start(prop,i);
}
if(dojo.lang.isFunction(prop.end)){
prop.end=prop.end(prop,i);
}
if(dojo.lang.isArray(prop.start)){
this.diffs[i]=null;
}else{
if(prop.start instanceof dojo.gfx.color.Color){
prop.startRgb=prop.start.toRgb();
prop.endRgb=prop.end.toRgb();
}else{
this.diffs[i]=prop.end-prop.start;
}
}
},this);
this.getValue=function(n){
var ret={};
dojo.lang.forEach(this._properties,function(prop,i){
var _ad0=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_ad0=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_ad0+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_ad0+=")";
}else{
_ad0=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_ad0;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_aba(_ab9);
anim.curve=new _ac8(_ab9.propertyMap);
},onAnimate:function(_ad3){
dojo.lang.forEach(_ab9.nodes,function(node){
_ac4(node,_ad3);
});
}},_ab9.duration,null,_ab9.easing);
if(_ab8){
for(var x in _ab8){
if(dojo.lang.isFunction(_ab8[x])){
anim.connect(x,anim,_ab8[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_ad6){
var _ad7=function(node){
if(dojo.render.html.ie){
if((node.style.zoom.length==0)&&(dojo.html.getStyle(node,"zoom")=="normal")){
node.style.zoom="1";
}
if((node.style.width.length==0)&&(dojo.html.getStyle(node,"width")=="auto")){
node.style.width="auto";
}
}
};
if(dojo.lang.isArrayLike(_ad6)){
dojo.lang.forEach(_ad6,_ad7);
}else{
_ad7(_ad6);
}
};
dojo.lfx.html.fade=function(_ad9,_ada,_adb,_adc,_add){
_ad9=dojo.lfx.html._byId(_ad9);
var _ade={property:"opacity"};
if(!dj_undef("start",_ada)){
_ade.start=_ada.start;
}else{
_ade.start=function(){
return dojo.html.getOpacity(_ad9[0]);
};
}
if(!dj_undef("end",_ada)){
_ade.end=_ada.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_ad9,[_ade],_adb,_adc);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_ad9);
});
if(_add){
anim.connect("onEnd",function(){
_add(_ad9,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_ae0,_ae1,_ae2,_ae3){
return dojo.lfx.html.fade(_ae0,{end:1},_ae1,_ae2,_ae3);
};
dojo.lfx.html.fadeOut=function(_ae4,_ae5,_ae6,_ae7){
return dojo.lfx.html.fade(_ae4,{end:0},_ae5,_ae6,_ae7);
};
dojo.lfx.html.fadeShow=function(_ae8,_ae9,_aea,_aeb){
_ae8=dojo.lfx.html._byId(_ae8);
dojo.lang.forEach(_ae8,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_ae8,_ae9,_aea,_aeb);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_ae8)){
dojo.lang.forEach(_ae8,dojo.html.show);
}else{
dojo.html.show(_ae8);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_aee,_aef,_af0,_af1){
var anim=dojo.lfx.html.fadeOut(_aee,_aef,_af0,function(){
if(dojo.lang.isArrayLike(_aee)){
dojo.lang.forEach(_aee,dojo.html.hide);
}else{
dojo.html.hide(_aee);
}
if(_af1){
_af1(_aee,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_af3,_af4,_af5,_af6){
_af3=dojo.lfx.html._byId(_af3);
var _af7=[];
dojo.lang.forEach(_af3,function(node){
var _af9={};
var _afa,_afb,_afc;
with(node.style){
_afa=top;
_afb=left;
_afc=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _afd=dojo.html.getBorderBox(node).height;
with(node.style){
top=_afa;
left=_afb;
position=_afc;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _afd;
}}},_af4,_af5);
anim.connect("beforeBegin",function(){
_af9.overflow=node.style.overflow;
_af9.height=node.style.height;
with(node.style){
overflow="hidden";
height="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_af9.overflow;
height=_af9.height;
}
if(_af6){
_af6(node,anim);
}
});
_af7.push(anim);
});
return dojo.lfx.combine(_af7);
};
dojo.lfx.html.wipeOut=function(_aff,_b00,_b01,_b02){
_aff=dojo.lfx.html._byId(_aff);
var _b03=[];
dojo.lang.forEach(_aff,function(node){
var _b05={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_b00,_b01,{"beforeBegin":function(){
_b05.overflow=node.style.overflow;
_b05.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_b05.overflow;
height=_b05.height;
}
if(_b02){
_b02(node,anim);
}
}});
_b03.push(anim);
});
return dojo.lfx.combine(_b03);
};
dojo.lfx.html.slideTo=function(_b07,_b08,_b09,_b0a,_b0b){
_b07=dojo.lfx.html._byId(_b07);
var _b0c=[];
var _b0d=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_b08)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_b08={top:_b08[0],left:_b08[1]};
}
dojo.lang.forEach(_b07,function(node){
var top=null;
var left=null;
var init=(function(){
var _b12=node;
return function(){
var pos=_b0d(_b12,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_b0d(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_b0d(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_b12,true);
dojo.html.setStyleAttributes(_b12,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:(_b08.top||0)},"left":{start:left,end:(_b08.left||0)}},_b09,_b0a,{"beforeBegin":init});
if(_b0b){
anim.connect("onEnd",function(){
_b0b(_b07,anim);
});
}
_b0c.push(anim);
});
return dojo.lfx.combine(_b0c);
};
dojo.lfx.html.slideBy=function(_b16,_b17,_b18,_b19,_b1a){
_b16=dojo.lfx.html._byId(_b16);
var _b1b=[];
var _b1c=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_b17)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_b17={top:_b17[0],left:_b17[1]};
}
dojo.lang.forEach(_b16,function(node){
var top=null;
var left=null;
var init=(function(){
var _b21=node;
return function(){
var pos=_b1c(_b21,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_b1c(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_b1c(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_b21,true);
dojo.html.setStyleAttributes(_b21,"position:absolute;top:"+ret.y+"px;left:"+ret.x+"px;");
top=ret.y;
left=ret.x;
}
};
})();
init();
var anim=dojo.lfx.propertyAnimation(node,{"top":{start:top,end:top+(_b17.top||0)},"left":{start:left,end:left+(_b17.left||0)}},_b18,_b19).connect("beforeBegin",init);
if(_b1a){
anim.connect("onEnd",function(){
_b1a(_b16,anim);
});
}
_b1b.push(anim);
});
return dojo.lfx.combine(_b1b);
};
dojo.lfx.html.explode=function(_b25,_b26,_b27,_b28,_b29){
var h=dojo.html;
_b25=dojo.byId(_b25);
_b26=dojo.byId(_b26);
var _b2b=h.toCoordinateObject(_b25,true);
var _b2c=document.createElement("div");
h.copyStyle(_b2c,_b26);
if(_b26.explodeClassName){
_b2c.className=_b26.explodeClassName;
}
with(_b2c.style){
position="absolute";
display="none";
var _b2d=h.getStyle(_b25,"background-color");
backgroundColor=_b2d?_b2d.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_b2c);
with(_b26.style){
visibility="hidden";
display="block";
}
var _b2e=h.toCoordinateObject(_b26,true);
with(_b26.style){
display="none";
visibility="visible";
}
var _b2f={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_b2f[type]={start:_b2b[type],end:_b2e[type]};
});
var anim=new dojo.lfx.propertyAnimation(_b2c,_b2f,_b27,_b28,{"beforeBegin":function(){
h.setDisplay(_b2c,"block");
},"onEnd":function(){
h.setDisplay(_b26,"block");
_b2c.parentNode.removeChild(_b2c);
}});
if(_b29){
anim.connect("onEnd",function(){
_b29(_b26,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_b32,end,_b34,_b35,_b36){
var h=dojo.html;
_b32=dojo.byId(_b32);
end=dojo.byId(end);
var _b38=dojo.html.toCoordinateObject(_b32,true);
var _b39=dojo.html.toCoordinateObject(end,true);
var _b3a=document.createElement("div");
dojo.html.copyStyle(_b3a,_b32);
if(_b32.explodeClassName){
_b3a.className=_b32.explodeClassName;
}
dojo.html.setOpacity(_b3a,0.3);
with(_b3a.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_b32,"background-color").toLowerCase();
}
dojo.body().appendChild(_b3a);
var _b3b={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_b3b[type]={start:_b38[type],end:_b39[type]};
});
var anim=new dojo.lfx.propertyAnimation(_b3a,_b3b,_b34,_b35,{"beforeBegin":function(){
dojo.html.hide(_b32);
dojo.html.show(_b3a);
},"onEnd":function(){
_b3a.parentNode.removeChild(_b3a);
}});
if(_b36){
anim.connect("onEnd",function(){
_b36(_b32,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_b3e,_b3f,_b40,_b41,_b42){
_b3e=dojo.lfx.html._byId(_b3e);
var _b43=[];
dojo.lang.forEach(_b3e,function(node){
var _b45=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _b47=dojo.html.getStyle(node,"background-image");
var _b48=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_b45.length>3){
_b45.pop();
}
var rgb=new dojo.gfx.color.Color(_b3f);
var _b4a=new dojo.gfx.color.Color(_b45);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_b4a}},_b40,_b41,{"beforeBegin":function(){
if(_b47){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_b47){
node.style.backgroundImage=_b47;
}
if(_b48){
node.style.backgroundColor="transparent";
}
if(_b42){
_b42(node,anim);
}
}});
_b43.push(anim);
});
return dojo.lfx.combine(_b43);
};
dojo.lfx.html.unhighlight=function(_b4c,_b4d,_b4e,_b4f,_b50){
_b4c=dojo.lfx.html._byId(_b4c);
var _b51=[];
dojo.lang.forEach(_b4c,function(node){
var _b53=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_b4d);
var _b55=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_b53,end:rgb}},_b4e,_b4f,{"beforeBegin":function(){
if(_b55){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_b53.toRgb().join(",")+")";
},"onEnd":function(){
if(_b50){
_b50(node,anim);
}
}});
_b51.push(anim);
});
return dojo.lfx.combine(_b51);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]});
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.dnd.HtmlDragAndDrop");
dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){
var _b57=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_b57.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_b57.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _b57;
},setDragHandle:function(node){
node=dojo.byId(node);
dojo.dnd.dragManager.unregisterDragSource(this);
this.domNode=node;
dojo.dnd.dragManager.registerDragSource(this);
},setDragTarget:function(node){
this.dragObject=node;
},constrainTo:function(_b5a){
this.constrainToContainer=true;
if(_b5a){
this.constrainingContainer=_b5a;
}
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragSource(this.dragObjects[i]));
}
},addDragObjects:function(el){
for(var i=0;i<arguments.length;i++){
this.dragObjects.push(dojo.byId(arguments[i]));
}
}},function(node,type){
node=dojo.byId(node);
this.dragObjects=[];
this.constrainToContainer=false;
if(node){
this.domNode=node;
this.dragObject=node;
this.type=(type)||(this.domNode.nodeName.toLowerCase());
dojo.dnd.DragSource.prototype.reregister.call(this);
}
});
dojo.declare("dojo.dnd.HtmlDragObject",dojo.dnd.DragObject,{dragClass:"",opacity:0.5,createIframe:true,disableX:false,disableY:false,createDragNode:function(){
var node=this.domNode.cloneNode(true);
if(this.dragClass){
dojo.html.addClass(node,this.dragClass);
}
if(this.opacity<1){
dojo.html.setOpacity(node,this.opacity);
}
var ltn=node.tagName.toLowerCase();
var isTr=(ltn=="tr");
if((isTr)||(ltn=="tbody")){
var doc=this.domNode.ownerDocument;
var _b64=doc.createElement("table");
if(isTr){
var _b65=doc.createElement("tbody");
_b64.appendChild(_b65);
_b65.appendChild(node);
}else{
_b64.appendChild(node);
}
var _b66=((isTr)?this.domNode:this.domNode.firstChild);
var _b67=((isTr)?node:node.firstChild);
var _b68=_b66.childNodes;
var _b69=_b67.childNodes;
for(var i=0;i<_b68.length;i++){
if((_b69[i])&&(_b69[i].style)){
_b69[i].style.width=dojo.html.getContentBox(_b68[i]).width+"px";
}
}
node=_b64;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _b6b=document.createElement("div");
_b6b.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_b6b);
_b6b.appendChild(this.bgIframe.iframe);
node=_b6b;
}
node.style.zIndex=999;
return node;
},onDragStart:function(e){
dojo.html.clearSelection();
this.scrollOffset=dojo.html.getScroll().offset;
this.dragStartPosition=dojo.html.getAbsolutePosition(this.domNode,true);
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.dragClone=this.createDragNode();
this.containingBlockPosition=this.domNode.offsetParent?dojo.html.getAbsolutePosition(this.domNode.offsetParent,true):{x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
with(this.dragClone.style){
position="absolute";
top=this.dragOffset.y+e.pageY+"px";
left=this.dragOffset.x+e.pageX+"px";
}
dojo.body().appendChild(this.dragClone);
dojo.event.topic.publish("dragStart",{source:this});
},getConstraints:function(){
if(this.constrainingContainer.nodeName.toLowerCase()=="body"){
var _b6d=dojo.html.getViewport();
var _b6e=_b6d.width;
var _b6f=_b6d.height;
var _b70=dojo.html.getScroll().offset;
var x=_b70.x;
var y=_b70.y;
}else{
var _b73=dojo.html.getContentBox(this.constrainingContainer);
_b6e=_b73.width;
_b6f=_b73.height;
x=this.containingBlockPosition.x+dojo.html.getPixelValue(this.constrainingContainer,"padding-left",true)+dojo.html.getBorderExtent(this.constrainingContainer,"left");
y=this.containingBlockPosition.y+dojo.html.getPixelValue(this.constrainingContainer,"padding-top",true)+dojo.html.getBorderExtent(this.constrainingContainer,"top");
}
var mb=dojo.html.getMarginBox(this.domNode);
return {minX:x,minY:y,maxX:x+_b6e-mb.width,maxY:y+_b6f-mb.height};
},updateDragOffset:function(){
var _b75=dojo.html.getScroll().offset;
if(_b75.y!=this.scrollOffset.y){
var diff=_b75.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_b75.y;
}
if(_b75.x!=this.scrollOffset.x){
var diff=_b75.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_b75.x;
}
},onDragMove:function(e){
this.updateDragOffset();
var x=this.dragOffset.x+e.pageX;
var y=this.dragOffset.y+e.pageY;
if(this.constrainToContainer){
if(x<this.constraints.minX){
x=this.constraints.minX;
}
if(y<this.constraints.minY){
y=this.constraints.minY;
}
if(x>this.constraints.maxX){
x=this.constraints.maxX;
}
if(y>this.constraints.maxY){
y=this.constraints.maxY;
}
}
this.setAbsolutePosition(x,y);
dojo.event.topic.publish("dragMove",{source:this});
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.dragClone.style.top=y+"px";
}
if(!this.disableX){
this.dragClone.style.left=x+"px";
}
},onDragEnd:function(e){
switch(e.dragStatus){
case "dropSuccess":
dojo.html.removeNode(this.dragClone);
this.dragClone=null;
break;
case "dropFailure":
var _b7d=dojo.html.getAbsolutePosition(this.dragClone,true);
var _b7e={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};
var anim=dojo.lfx.slideTo(this.dragClone,_b7e,300);
var _b80=this;
dojo.event.connect(anim,"onEnd",function(e){
dojo.html.removeNode(_b80.dragClone);
_b80.dragClone=null;
});
anim.play();
break;
}
dojo.event.topic.publish("dragEnd",{source:this});
},constrainTo:function(_b82){
this.constrainToContainer=true;
if(_b82){
this.constrainingContainer=_b82;
}else{
this.constrainingContainer=this.domNode.parentNode;
}
}},function(node,type){
this.domNode=dojo.byId(node);
this.type=type;
this.constrainToContainer=false;
this.dragSource=null;
dojo.dnd.DragObject.prototype.register.call(this);
});
dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(e){
if(!this.accepts(e.dragObjects)){
return false;
}
this.childBoxes=[];
for(var i=0,_b87;i<this.domNode.childNodes.length;i++){
_b87=this.domNode.childNodes[i];
if(_b87.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(_b87,true);
var _b89=dojo.html.getBorderBox(_b87);
this.childBoxes.push({top:pos.y,bottom:pos.y+_b89.height,left:pos.x,right:pos.x+_b89.width,height:_b89.height,width:_b89.width,node:_b87});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_b8c;i<this.childBoxes.length;i++){
with(this.childBoxes[i]){
if(e.pageX>=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){
return i;
}
}
}
return -1;
},createDropIndicator:function(){
this.dropIndicator=document.createElement("div");
with(this.dropIndicator.style){
position="absolute";
zIndex=999;
if(this.vertical){
borderLeftWidth="1px";
borderLeftColor="black";
borderLeftStyle="solid";
height=dojo.html.getBorderBox(this.domNode).height+"px";
top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px";
}else{
borderTopWidth="1px";
borderTopColor="black";
borderTopStyle="solid";
width=dojo.html.getBorderBox(this.domNode).width+"px";
left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px";
}
}
},onDragMove:function(e,_b8e){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
var _b90=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
var hide=false;
if(i<0){
if(this.childBoxes.length){
var _b92=(dojo.html.gravity(this.childBoxes[0].node,e)&_b90);
if(_b92){
hide=true;
}
}else{
var _b92=true;
}
}else{
var _b93=this.childBoxes[i];
var _b92=(dojo.html.gravity(_b93.node,e)&_b90);
if(_b93.node===_b8e[0].dragSource.domNode){
hide=true;
}else{
var _b94=_b92?(i>0?this.childBoxes[i-1]:_b93):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_b93);
if(_b94.node===_b8e[0].dragSource.domNode){
hide=true;
}
}
}
if(hide){
this.dropIndicator.style.display="none";
return;
}else{
this.dropIndicator.style.display="";
}
this.placeIndicator(e,_b8e,i,_b92);
if(!dojo.html.hasParent(this.dropIndicator)){
dojo.body().appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_b96,_b97,_b98){
var _b99=this.vertical?"left":"top";
var _b9a;
if(_b97<0){
if(this.childBoxes.length){
_b9a=_b98?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];
}else{
this.dropIndicator.style[_b99]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";
}
}else{
_b9a=this.childBoxes[_b97];
}
if(_b9a){
this.dropIndicator.style[_b99]=(_b98?_b9a[_b99]:_b9a[this.vertical?"right":"bottom"])+"px";
if(this.vertical){
this.dropIndicator.style.height=_b9a.height+"px";
this.dropIndicator.style.top=_b9a.top+"px";
}else{
this.dropIndicator.style.width=_b9a.width+"px";
this.dropIndicator.style.left=_b9a.left+"px";
}
}
},onDragOut:function(e){
if(this.dropIndicator){
dojo.html.removeNode(this.dropIndicator);
delete this.dropIndicator;
}
},onDrop:function(e){
this.onDragOut(e);
var i=this._getNodeUnderMouse(e);
var _b9e=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
if(i<0){
if(this.childBoxes.length){
if(dojo.html.gravity(this.childBoxes[0].node,e)&_b9e){
return this.insert(e,this.childBoxes[0].node,"before");
}else{
return this.insert(e,this.childBoxes[this.childBoxes.length-1].node,"after");
}
}
return this.insert(e,this.domNode,"append");
}
var _b9f=this.childBoxes[i];
if(dojo.html.gravity(_b9f.node,e)&_b9e){
return this.insert(e,_b9f.node,"before");
}else{
return this.insert(e,_b9f.node,"after");
}
},insert:function(e,_ba1,_ba2){
var node=e.dragObject.domNode;
if(_ba2=="before"){
return dojo.html.insertBefore(node,_ba1);
}else{
if(_ba2=="after"){
return dojo.html.insertAfter(node,_ba1);
}else{
if(_ba2=="append"){
_ba1.appendChild(node);
return true;
}
}
}
return false;
}},function(node,_ba5){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_ba5&&dojo.lang.isString(_ba5)){
_ba5=[_ba5];
}
this.acceptedTypes=_ba5||[];
dojo.dnd.dragManager.registerDropTarget(this);
});
dojo.kwCompoundRequire({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]});
dojo.provide("dojo.dnd.*");
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_ba7,_ba8,_ba9){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_ba7){
this.mimetype=_ba7;
}
if(_ba8){
this.transport=_ba8;
}
if(arguments.length>=4){
this.changeUrl=_ba9;
}
}
};
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,jsonFilter:function(_baa){
if((this.mimetype=="text/json-comment-filtered")||(this.mimetype=="application/json-comment-filtered")){
var _bab=_baa.indexOf("/*");
var _bac=_baa.lastIndexOf("*/");
if((_bab==-1)||(_bac==-1)){
dojo.debug("your JSON wasn't comment filtered!");
return "";
}
return _baa.substring(_bab+2,_bac);
}
dojo.debug("please consider using a mimetype of text/json-comment-filtered to avoid potential security issues with JSON endpoints");
return _baa;
},load:function(type,data,_baf,_bb0){
},error:function(type,_bb2,_bb3,_bb4){
},timeout:function(type,_bb6,_bb7,_bb8){
},handle:function(type,data,_bbb,_bbc){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_bbd){
if(_bbd["url"]){
_bbd.url=_bbd.url.toString();
}
if(_bbd["formNode"]){
_bbd.formNode=dojo.byId(_bbd.formNode);
}
if(!_bbd["method"]&&_bbd["formNode"]&&_bbd["formNode"].method){
_bbd.method=_bbd["formNode"].method;
}
if(!_bbd["handle"]&&_bbd["handler"]){
_bbd.handle=_bbd.handler;
}
if(!_bbd["load"]&&_bbd["loaded"]){
_bbd.load=_bbd.loaded;
}
if(!_bbd["changeUrl"]&&_bbd["changeURL"]){
_bbd.changeUrl=_bbd.changeURL;
}
_bbd.encoding=dojo.lang.firstValued(_bbd["encoding"],djConfig["bindEncoding"],"");
_bbd.sendTransport=dojo.lang.firstValued(_bbd["sendTransport"],djConfig["ioSendTransport"],false);
var _bbe=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_bbd[fn]&&_bbe(_bbd[fn])){
continue;
}
if(_bbd["handle"]&&_bbe(_bbd["handle"])){
_bbd[fn]=_bbd.handle;
}
}
dojo.lang.mixin(this,_bbd);
}});
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(_bc5){
if(!(_bc5 instanceof dojo.io.Request)){
try{
_bc5=new dojo.io.Request(_bc5);
}
catch(e){
dojo.debug(e);
}
}
var _bc6="";
if(_bc5["transport"]){
_bc6=_bc5["transport"];
if(!this[_bc6]){
dojo.io.sendBindError(_bc5,"No dojo.io.bind() transport with name '"+_bc5["transport"]+"'.");
return _bc5;
}
if(!this[_bc6].canHandle(_bc5)){
dojo.io.sendBindError(_bc5,"dojo.io.bind() transport with name '"+_bc5["transport"]+"' cannot handle this type of request.");
return _bc5;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_bc5))){
_bc6=tmp;
break;
}
}
if(_bc6==""){
dojo.io.sendBindError(_bc5,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _bc5;
}
}
this[_bc6].bind(_bc5);
_bc5.bindSuccess=true;
return _bc5;
};
dojo.io.sendBindError=function(_bc9,_bca){
if((typeof _bc9.error=="function"||typeof _bc9.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _bcb=new dojo.io.Error(_bca);
setTimeout(function(){
_bc9[(typeof _bc9.error=="function")?"error":"handle"]("error",_bcb,null,_bc9);
},50);
}else{
dojo.raise(_bca);
}
};
dojo.io.queueBind=function(_bcc){
if(!(_bcc instanceof dojo.io.Request)){
try{
_bcc=new dojo.io.Request(_bcc);
}
catch(e){
dojo.debug(e);
}
}
var _bcd=_bcc.load;
_bcc.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_bcd.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _bcf=_bcc.error;
_bcc.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_bcf.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_bcc);
dojo.io._dispatchNextQueueBind();
return _bcc;
};
dojo.io._dispatchNextQueueBind=function(){
if(!dojo.io._queueBindInFlight){
dojo.io._queueBindInFlight=true;
if(dojo.io._bindQueue.length>0){
dojo.io.bind(dojo.io._bindQueue.shift());
}else{
dojo.io._queueBindInFlight=false;
}
}
};
dojo.io._bindQueue=[];
dojo.io._queueBindInFlight=false;
dojo.io.argsFromMap=function(map,_bd2,last){
var enc=/utf/i.test(_bd2||"")?encodeURIComponent:dojo.string.encodeAscii;
var _bd5=[];
var _bd6=new Object();
for(var name in map){
var _bd8=function(elt){
var val=enc(name)+"="+enc(elt);
_bd5[(last==name)?"push":"unshift"](val);
};
if(!_bd6[name]){
var _bdb=map[name];
if(dojo.lang.isArray(_bdb)){
dojo.lang.forEach(_bdb,_bd8);
}else{
_bd8(_bdb);
}
}
}
return _bd5.join("&");
};
dojo.io.setIFrameSrc=function(_bdc,src,_bde){
try{
var r=dojo.render.html;
if(!_bde){
if(r.safari){
_bdc.location=src;
}else{
frames[_bdc.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_bdc.contentWindow.document;
}else{
if(r.safari){
idoc=_bdc.document;
}else{
idoc=_bdc.contentWindow;
}
}
if(!idoc){
_bdc.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){
this.initialState=this._createState(this.initialHref,args,this.initialHash);
},addToHistory:function(args){
this.forwardStack=[];
var hash=null;
var url=null;
if(!this.historyIframe){
if(djConfig["useXDomain"]&&!djConfig["dojoIframeHistoryUrl"]){
dojo.debug("dojo.undo.browser: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");
}
this.historyIframe=window.frames["djhistory"];
}
if(!this.bookmarkAnchor){
this.bookmarkAnchor=document.createElement("a");
dojo.body().appendChild(this.bookmarkAnchor);
this.bookmarkAnchor.style.display="none";
}
if(args["changeUrl"]){
hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());
if(this.historyStack.length==0&&this.initialState.urlHash==hash){
this.initialState=this._createState(url,args,hash);
return;
}else{
if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){
this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash);
return;
}
}
this.changingUrl=true;
setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1);
this.bookmarkAnchor.href=hash;
if(dojo.render.html.ie){
url=this._loadIframeHistory();
var _be5=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_be7){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_be5.apply(this,[_be7]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _be8=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_bea){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_be8){
_be8.apply(this,[_bea]);
}
};
if(args["forward"]){
args.forward=tfw;
}else{
if(args["forwardButton"]){
args.forwardButton=tfw;
}else{
if(args["handle"]){
args.handle=tfw;
}
}
}
}else{
if(dojo.render.html.moz){
if(!this.locationTimer){
this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200);
}
}
}
}else{
url=this._loadIframeHistory();
}
this.historyStack.push(this._createState(url,args,hash));
},checkLocation:function(){
if(!this.changingUrl){
var hsl=this.historyStack.length;
if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){
this.handleBackButton();
return;
}
if(this.forwardStack.length>0){
if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){
this.handleForwardButton();
return;
}
}
if((hsl>=2)&&(this.historyStack[hsl-2])){
if(this.historyStack[hsl-2].urlHash==window.location.hash){
this.handleBackButton();
return;
}
}
}
},iframeLoaded:function(evt,_bed){
if(!dojo.render.html.opera){
var _bee=this._getUrlQuery(_bed.href);
if(_bee==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_bee==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_bee==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _bef=this.historyStack.pop();
if(!_bef){
return;
}
var last=this.historyStack[this.historyStack.length-1];
if(!last&&this.historyStack.length==0){
last=this.initialState;
}
if(last){
if(last.kwArgs["back"]){
last.kwArgs["back"]();
}else{
if(last.kwArgs["backButton"]){
last.kwArgs["backButton"]();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("back");
}
}
}
}
this.forwardStack.push(_bef);
},handleForwardButton:function(){
var last=this.forwardStack.pop();
if(!last){
return;
}
if(last.kwArgs["forward"]){
last.kwArgs.forward();
}else{
if(last.kwArgs["forwardButton"]){
last.kwArgs.forwardButton();
}else{
if(last.kwArgs["handle"]){
last.kwArgs.handle("forward");
}
}
}
this.historyStack.push(last);
},_createState:function(url,args,hash){
return {"url":url,"kwArgs":args,"urlHash":hash};
},_getUrlQuery:function(url){
var _bf6=url.split("?");
if(_bf6.length<2){
return null;
}else{
return _bf6[1];
}
},_loadIframeHistory:function(){
var url=(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime();
this.moveForward=true;
dojo.io.setIFrameSrc(this.historyIframe,url,false);
return url;
}};
dojo.provide("dojo.io.BrowserIO");
if(!dj_undef("window")){
dojo.io.checkChildrenForFile=function(node){
var _bf9=false;
var _bfa=node.getElementsByTagName("input");
dojo.lang.forEach(_bfa,function(_bfb){
if(_bf9){
return;
}
if(_bfb.getAttribute("type")=="file"){
_bf9=true;
}
});
return _bf9;
};
dojo.io.formHasFile=function(_bfc){
return dojo.io.checkChildrenForFile(_bfc);
};
dojo.io.updateNode=function(node,_bfe){
node=dojo.byId(node);
var args=_bfe;
if(dojo.lang.isString(_bfe)){
args={url:_bfe};
}
args.mimetype="text/html";
args.load=function(t,d,e){
while(node.firstChild){
dojo.dom.destroyNode(node.firstChild);
}
node.innerHTML=d;
};
dojo.io.bind(args);
};
dojo.io.formFilter=function(node){
var type=(node.type||"").toLowerCase();
return !node.disabled&&node.name&&!dojo.lang.inArray(["file","submit","image","reset","button"],type);
};
dojo.io.encodeForm=function(_c05,_c06,_c07){
if((!_c05)||(!_c05.tagName)||(!_c05.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_c07){
_c07=dojo.io.formFilter;
}
var enc=/utf/i.test(_c06||"")?encodeURIComponent:dojo.string.encodeAscii;
var _c09=[];
for(var i=0;i<_c05.elements.length;i++){
var elm=_c05.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_c07(elm)){
continue;
}
var name=enc(elm.name);
var type=elm.type.toLowerCase();
if(type=="select-multiple"){
for(var j=0;j<elm.options.length;j++){
if(elm.options[j].selected){
_c09.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_c09.push(name+"="+enc(elm.value));
}
}else{
_c09.push(name+"="+enc(elm.value));
}
}
}
var _c0f=_c05.getElementsByTagName("input");
for(var i=0;i<_c0f.length;i++){
var _c10=_c0f[i];
if(_c10.type.toLowerCase()=="image"&&_c10.form==_c05&&_c07(_c10)){
var name=enc(_c10.name);
_c09.push(name+"="+enc(_c10.value));
_c09.push(name+".x=0");
_c09.push(name+".y=0");
}
}
return _c09.join("&")+"&";
};
dojo.io.FormBind=function(args){
this.bindArgs={};
if(args&&args.formNode){
this.init(args);
}else{
if(args){
this.init({formNode:args});
}
}
};
dojo.lang.extend(dojo.io.FormBind,{form:null,bindArgs:null,clickedButton:null,init:function(args){
var form=dojo.byId(args.formNode);
if(!form||!form.tagName||form.tagName.toLowerCase()!="form"){
throw new Error("FormBind: Couldn't apply, invalid form");
}else{
if(this.form==form){
return;
}else{
if(this.form){
throw new Error("FormBind: Already applied to a form");
}
}
}
dojo.lang.mixin(this.bindArgs,args);
this.form=form;
this.connect(form,"onsubmit","submit");
for(var i=0;i<form.elements.length;i++){
var node=form.elements[i];
if(node&&node.type&&dojo.lang.inArray(["submit","button"],node.type.toLowerCase())){
this.connect(node,"onclick","click");
}
}
var _c16=form.getElementsByTagName("input");
for(var i=0;i<_c16.length;i++){
var _c17=_c16[i];
if(_c17.type.toLowerCase()=="image"&&_c17.form==form){
this.connect(_c17,"onclick","click");
}
}
},onSubmit:function(form){
return true;
},submit:function(e){
e.preventDefault();
if(this.onSubmit(this.form)){
dojo.io.bind(dojo.lang.mixin(this.bindArgs,{formFilter:dojo.lang.hitch(this,"formFilter")}));
}
},click:function(e){
var node=e.currentTarget;
if(node.disabled){
return;
}
this.clickedButton=node;
},formFilter:function(node){
var type=(node.type||"").toLowerCase();
var _c1e=false;
if(node.disabled||!node.name){
_c1e=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_c1e=node==this.clickedButton;
}else{
_c1e=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _c1e;
},connect:function(_c1f,_c20,_c21){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_c1f,_c20,this,_c21);
}else{
var fcn=dojo.lang.hitch(this,_c21);
_c1f[_c20]=function(e){
if(!e){
e=window.event;
}
if(!e.currentTarget){
e.currentTarget=e.srcElement;
}
if(!e.preventDefault){
e.preventDefault=function(){
window.event.returnValue=false;
};
}
fcn(e);
};
}
}});
dojo.io.XMLHTTPTransport=new function(){
var _c24=this;
var _c25={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_c27,_c28){
return url+"|"+_c27+"|"+_c28.toLowerCase();
}
function addToCache(url,_c2a,_c2b,http){
_c25[getCacheKey(url,_c2a,_c2b)]=http;
}
function getFromCache(url,_c2e,_c2f){
return _c25[getCacheKey(url,_c2e,_c2f)];
}
this.clearCache=function(){
_c25={};
};
function doLoad(_c30,http,url,_c33,_c34){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(http.status==1223)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_c30.method.toLowerCase()=="head"){
var _c36=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _c36;
};
var _c37=_c36.split(/[\r\n]+/g);
for(var i=0;i<_c37.length;i++){
var pair=_c37[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_c30.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_c30.mimetype.substr(0,9)=="text/json"||_c30.mimetype.substr(0,16)=="application/json"){
try{
ret=dj_eval("("+_c30.jsonFilter(http.responseText)+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_c30.mimetype=="application/xml")||(_c30.mimetype=="text/xml")){
ret=http.responseXML;
if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){
ret=dojo.dom.createDocumentFromText(http.responseText);
}
}else{
ret=http.responseText;
}
}
}
}
if(_c34){
addToCache(url,_c33,_c30.method,http);
}
_c30[(typeof _c30.load=="function")?"load":"handle"]("load",ret,http,_c30);
}else{
var _c3a=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_c30[(typeof _c30.error=="function")?"error":"handle"]("error",_c3a,http,_c30);
}
}
function setHeaders(http,_c3c){
if(_c3c["headers"]){
for(var _c3d in _c3c["headers"]){
if(_c3d.toLowerCase()=="content-type"&&!_c3c["contentType"]){
_c3c["contentType"]=_c3c["headers"][_c3d];
}else{
http.setRequestHeader(_c3d,_c3c["headers"][_c3d]);
}
}
}
}
this.inFlight=[];
this.inFlightTimer=null;
this.startWatchingInFlight=function(){
if(!this.inFlightTimer){
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
}
};
this.watchInFlight=function(){
var now=null;
if(!dojo.hostenv._blockAsync&&!_c24._blockAsync){
for(var x=this.inFlight.length-1;x>=0;x--){
try{
var tif=this.inFlight[x];
if(!tif||tif.http._aborted||!tif.http.readyState){
this.inFlight.splice(x,1);
continue;
}
if(4==tif.http.readyState){
this.inFlight.splice(x,1);
doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache);
}else{
if(tif.startTime){
if(!now){
now=(new Date()).getTime();
}
if(tif.startTime+(tif.req.timeoutSeconds*1000)<now){
if(typeof tif.http.abort=="function"){
tif.http.abort();
}
this.inFlight.splice(x,1);
tif.req[(typeof tif.req.timeout=="function")?"timeout":"handle"]("timeout",null,tif.http,tif.req);
}
}
}
}
catch(e){
try{
var _c41=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_c41,tif.http,tif.req);
}
catch(e2){
dojo.debug("XMLHttpTransport error callback failed: "+e2);
}
}
}
}
clearTimeout(this.inFlightTimer);
if(this.inFlight.length==0){
this.inFlightTimer=null;
return;
}
this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10);
};
var _c42=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_c43){
var mlc=_c43["mimetype"].toLowerCase()||"";
return _c42&&((dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript"],mlc))||(mlc.substr(0,9)=="text/json"||mlc.substr(0,16)=="application/json"))&&!(_c43["formNode"]&&dojo.io.formHasFile(_c43["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_c45){
if(!_c45["url"]){
if(!_c45["formNode"]&&(_c45["backButton"]||_c45["back"]||_c45["changeUrl"]||_c45["watchForURL"])&&(!djConfig.preventBackButtonFix)){
dojo.deprecated("Using dojo.io.XMLHTTPTransport.bind() to add to browser history without doing an IO request","Use dojo.undo.browser.addToHistory() instead.","0.4");
dojo.undo.browser.addToHistory(_c45);
return true;
}
}
var url=_c45.url;
var _c47="";
if(_c45["formNode"]){
var ta=_c45.formNode.getAttribute("action");
if((ta)&&(!_c45["url"])){
url=ta;
}
var tp=_c45.formNode.getAttribute("method");
if((tp)&&(!_c45["method"])){
_c45.method=tp;
}
_c47+=dojo.io.encodeForm(_c45.formNode,_c45.encoding,_c45["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_c45["file"]){
_c45.method="post";
}
if(!_c45["method"]){
_c45.method="get";
}
if(_c45.method.toLowerCase()=="get"){
_c45.multipart=false;
}else{
if(_c45["file"]){
_c45.multipart=true;
}else{
if(!_c45["multipart"]){
_c45.multipart=false;
}
}
}
if(_c45["backButton"]||_c45["back"]||_c45["changeUrl"]){
dojo.undo.browser.addToHistory(_c45);
}
var _c4a=_c45["content"]||{};
if(_c45.sendTransport){
_c4a["dojo.transport"]="xmlhttp";
}
do{
if(_c45.postContent){
_c47=_c45.postContent;
break;
}
if(_c4a){
_c47+=dojo.io.argsFromMap(_c4a,_c45.encoding);
}
if(_c45.method.toLowerCase()=="get"||!_c45.multipart){
break;
}
var t=[];
if(_c47.length){
var q=_c47.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(_c45.file){
if(dojo.lang.isArray(_c45.file)){
for(var i=0;i<_c45.file.length;++i){
var o=_c45.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=_c45.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+"--","");
_c47=t.join("\r\n");
}
}while(false);
var _c50=_c45["sync"]?false:true;
var _c51=_c45["preventCache"]||(this.preventCache==true&&_c45["preventCache"]!=false);
var _c52=_c45["useCache"]==true||(this.useCache==true&&_c45["useCache"]!=false);
if(!_c51&&_c52){
var _c53=getFromCache(url,_c47,_c45.method);
if(_c53){
doLoad(_c45,_c53,url,_c47,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_c45);
var _c55=false;
if(_c50){
var _c56=this.inFlight.push({"req":_c45,"http":http,"url":url,"query":_c47,"useCache":_c52,"startTime":_c45.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_c24._blockAsync=true;
}
if(_c45.method.toLowerCase()=="post"){
if(!_c45.user){
http.open("POST",url,_c50);
}else{
http.open("POST",url,_c50,_c45.user,_c45.password);
}
setHeaders(http,_c45);
http.setRequestHeader("Content-Type",_c45.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_c45.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_c47);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_c45,{status:404},url,_c47,_c52);
}
}else{
var _c57=url;
if(_c47!=""){
_c57+=(_c57.indexOf("?")>-1?"&":"?")+_c47;
}
if(_c51){
_c57+=(dojo.string.endsWithAny(_c57,"?","&")?"":(_c57.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_c45.user){
http.open(_c45.method.toUpperCase(),_c57,_c50);
}else{
http.open(_c45.method.toUpperCase(),_c57,_c50,_c45.user,_c45.password);
}
setHeaders(http,_c45);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_c45,{status:404},url,_c47,_c52);
}
}
if(!_c50){
doLoad(_c45,http,url,_c47,_c52);
_c24._blockAsync=false;
}
_c45.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_c59,days,path,_c5c,_c5d){
var _c5e=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_c5e=d.toGMTString();
}
_c59=escape(_c59);
document.cookie=name+"="+_c59+";"+(_c5e!=-1?" expires="+_c5e+";":"")+(path?"path="+path:"")+(_c5c?"; domain="+_c5c:"")+(_c5d?"; secure":"");
};
dojo.io.cookie.set=dojo.io.cookie.setCookie;
dojo.io.cookie.getCookie=function(name){
var idx=document.cookie.lastIndexOf(name+"=");
if(idx==-1){
return null;
}
var _c62=document.cookie.substring(idx+name.length+1);
var end=_c62.indexOf(";");
if(end==-1){
end=_c62.length;
}
_c62=_c62.substring(0,end);
_c62=unescape(_c62);
return _c62;
};
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,_c69,_c6a,_c6b){
if(arguments.length==5){
_c6b=_c69;
_c69=null;
_c6a=null;
}
var _c6c=[],_c6d,_c6e="";
if(!_c6b){
_c6d=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_c6d){
_c6d={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _c6d[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_c6d[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _c6d){
_c6c.push(escape(prop)+"="+escape(_c6d[prop]));
}
_c6e=_c6c.join("&");
}
dojo.io.cookie.setCookie(name,_c6e,days,path,_c69,_c6a);
};
dojo.io.cookie.getObjectCookie=function(name){
var _c71=null,_c72=dojo.io.cookie.getCookie(name);
if(_c72){
_c71={};
var _c73=_c72.split("&");
for(var i=0;i<_c73.length;i++){
var pair=_c73[i].split("=");
var _c76=pair[1];
if(isNaN(_c76)){
_c76=unescape(pair[1]);
}
_c71[unescape(pair[0])]=_c76;
}
}
return _c71;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _c77=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_c77=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]});
dojo.provide("dojo.io.*");
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_c78){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_c78);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_c79){
try{
if(dojo.lang.isArray(_c79)){
return "array";
}
if(dojo.lang.isFunction(_c79)){
return "function";
}
if(dojo.lang.isString(_c79)){
return "string";
}
if(dojo.lang.isNumber(_c79)){
return "number";
}
if(dojo.lang.isBoolean(_c79)){
return "boolean";
}
if(dojo.lang.isAlien(_c79)){
return "alien";
}
if(dojo.lang.isUndefined(_c79)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_c79)){
return name;
}
}
if(dojo.lang.isObject(_c79)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_c7b){
return (!isNaN(_c7b)&&isFinite(_c7b)&&(_c7b!=null)&&!dojo.lang.isBoolean(_c7b)&&!dojo.lang.isArray(_c7b)&&!/^\s*$/.test(_c7b));
};
dojo.lang.isBuiltIn=function(_c7c){
return (dojo.lang.isArray(_c7c)||dojo.lang.isFunction(_c7c)||dojo.lang.isString(_c7c)||dojo.lang.isNumber(_c7c)||dojo.lang.isBoolean(_c7c)||(_c7c==null)||(_c7c instanceof Error)||(typeof _c7c=="error"));
};
dojo.lang.isPureObject=function(_c7d){
return ((_c7d!=null)&&dojo.lang.isObject(_c7d)&&_c7d.constructor==Object);
};
dojo.lang.isOfType=function(_c7e,type,_c80){
var _c81=false;
if(_c80){
_c81=_c80["optional"];
}
if(_c81&&((_c7e===null)||dojo.lang.isUndefined(_c7e))){
return true;
}
if(dojo.lang.isArray(type)){
var _c82=type;
for(var i in _c82){
var _c84=_c82[i];
if(dojo.lang.isOfType(_c7e,_c84)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_c7e);
case Function:
case "function":
return dojo.lang.isFunction(_c7e);
case String:
case "string":
return dojo.lang.isString(_c7e);
case Number:
case "number":
return dojo.lang.isNumber(_c7e);
case "numeric":
return dojo.lang.isNumeric(_c7e);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_c7e);
case Object:
case "object":
return dojo.lang.isObject(_c7e);
case "pureobject":
return dojo.lang.isPureObject(_c7e);
case "builtin":
return dojo.lang.isBuiltIn(_c7e);
case "alien":
return dojo.lang.isAlien(_c7e);
case "undefined":
return dojo.lang.isUndefined(_c7e);
case null:
case "null":
return (_c7e===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_c7e===null)||dojo.lang.isUndefined(_c7e));
default:
if(dojo.lang.isFunction(type)){
return (_c7e instanceof type);
}else{
dojo.raise("dojo.lang.isOfType() was passed an invalid type");
}
}
}
dojo.raise("If we get here, it means a bug was introduced above.");
};
dojo.lang.getObject=function(str){
var _c86=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_c86[i++]];
}while(i<_c86.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _c8a=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_c8a[i++]];
}while(i<_c8a.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_c8d,_c8e){
if(!_c8d){
var _c8f="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_c8e){
_c8f+="Here's the assert message:\n"+_c8e+"\n";
}
throw new Error(_c8f);
}
};
dojo.lang.assertType=function(_c90,type,_c92){
if(dojo.lang.isString(_c92)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_c90,type,_c92)){
if(!dojo.lang.assertType._errorMessage){
dojo.lang.assertType._errorMessage="Type mismatch: dojo.lang.assertType() failed.";
}
dojo.lang.assert(false,dojo.lang.assertType._errorMessage);
}
};
dojo.lang.assertValidKeywords=function(_c93,_c94,_c95){
var key;
if(!_c95){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_c95=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_c94)){
for(key in _c93){
if(!dojo.lang.inArray(_c94,key)){
dojo.lang.assert(false,_c95+" "+key);
}
}
}else{
for(key in _c93){
if(!(key in _c94)){
dojo.lang.assert(false,_c95+" "+key);
}
}
}
};
dojo.provide("dojo.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_c98,wrap,_c9a){
dojo.lang.reprRegistry.register(name,_c98,wrap,_c9a);
};
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 obj.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){
}
};
(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.kwCompoundRequire({common:["dojo.lang.common","dojo.lang.assert","dojo.lang.array","dojo.lang.type","dojo.lang.func","dojo.lang.extras","dojo.lang.repr","dojo.lang.declare"]});
dojo.provide("dojo.lang.*");
dojo.provide("dojo.xml.Parse");
dojo.xml.Parse=function(){
var isIE=((dojo.render.html.capable)&&(dojo.render.html.ie));
function getTagName(node){
try{
return node.tagName.toLowerCase();
}
catch(e){
return "";
}
}
function getDojoTagName(node){
var _ca3=getTagName(node);
if(!_ca3){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_ca3])){
return _ca3;
}
var p=_ca3.indexOf(":");
if(p>=0){
return _ca3;
}
if(_ca3.substr(0,5)=="dojo:"){
return _ca3;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_ca3;
}
if(_ca3.substr(0,4)=="dojo"){
return "dojo:"+_ca3.substring(4);
}
var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype");
if(djt){
if(djt.indexOf(":")<0){
djt="dojo:"+djt;
}
return djt.toLowerCase();
}
djt=node.getAttributeNS&&node.getAttributeNS(dojo.dom.dojoml,"type");
if(djt){
return "dojo:"+djt.toLowerCase();
}
try{
djt=node.getAttribute("dojo:type");
}
catch(e){
}
if(djt){
return "dojo:"+djt.toLowerCase();
}
if((dj_global["djConfig"])&&(!djConfig["ignoreClassNames"])){
var _ca6=node.className||node.getAttribute("class");
if((_ca6)&&(_ca6.indexOf)&&(_ca6.indexOf("dojo-")!=-1)){
var _ca7=_ca6.split(" ");
for(var x=0,c=_ca7.length;x<c;x++){
if(_ca7[x].slice(0,5)=="dojo-"){
return "dojo:"+_ca7[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_cab,_cac,_cad){
var _cae=getTagName(node);
if(isIE&&_cae.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _cb0=true;
if(_cac){
var _cb1=getDojoTagName(node);
_cae=_cb1||_cae;
_cb0=Boolean(_cb1);
}
var _cb2={};
_cb2[_cae]=[];
var pos=_cae.indexOf(":");
if(pos>0){
var ns=_cae.substring(0,pos);
_cb2["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_cb0=false;
}
}
if(_cb0){
var _cb5=this.parseAttributes(node);
for(var attr in _cb5){
if((!_cb2[_cae][attr])||(typeof _cb2[_cae][attr]!="array")){
_cb2[_cae][attr]=[];
}
_cb2[_cae][attr].push(_cb5[attr]);
}
_cb2[_cae].nodeRef=node;
_cb2.tagName=_cae;
_cb2.index=_cad||0;
}
var _cb6=0;
for(var i=0;i<node.childNodes.length;i++){
var tcn=node.childNodes.item(i);
switch(tcn.nodeType){
case dojo.dom.ELEMENT_NODE:
var ctn=getDojoTagName(tcn)||getTagName(tcn);
if(!_cb2[ctn]){
_cb2[ctn]=[];
}
_cb2[ctn].push(this.parseElement(tcn,true,_cac,_cb6));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_cb2[ctn][_cb2[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_cb6++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_cb2[_cae].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _cb2;
};
this.parseAttributes=function(node){
var _cbb={};
var atts=node.attributes;
var _cbd,i=0;
while((_cbd=atts[i++])){
if(isIE){
if(!_cbd){
continue;
}
if((typeof _cbd=="object")&&(typeof _cbd.nodeValue=="undefined")||(_cbd.nodeValue==null)||(_cbd.nodeValue=="")){
continue;
}
}
var nn=_cbd.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_cbd.nodeName;
_cbb[nn]={value:_cbd.nodeValue};
}
return _cbb;
};
};
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_cc1,_cc2,_cc3){
if(!_cc3||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_cc1,_cc2);
}
},allow:function(name){
if(this.failed[name]){
return false;
}
if((djConfig.excludeNamespace)&&(dojo.lang.inArray(djConfig.excludeNamespace,name))){
return false;
}
return ((name==this.dojo)||(!djConfig.includeNamespace)||(dojo.lang.inArray(djConfig.includeNamespace,name)));
},get:function(name){
return this.namespaces[name];
},require:function(name){
var ns=this.namespaces[name];
if((ns)&&(this.loaded[name])){
return ns;
}
if(!this.allow(name)){
return false;
}
if(this.loading[name]){
dojo.debug("dojo.namespace.require: re-entrant request to load namespace \""+name+"\" must fail.");
return false;
}
var req=dojo.require;
this.loading[name]=true;
try{
if(name=="dojo"){
req("dojo.namespaces.dojo");
}else{
if(!dojo.hostenv.moduleHasPrefix(name)){
dojo.registerModulePath(name,"../"+name);
}
req([name,"manifest"].join("."),false,true);
}
if(!this.namespaces[name]){
this.failed[name]=true;
}
}
finally{
this.loading[name]=false;
}
return this.namespaces[name];
}};
dojo.ns.Ns=function(name,_cca,_ccb){
this.name=name;
this.module=_cca;
this.resolver=_ccb;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_ccd,_cce){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _ccf=this.resolver(name,_ccd);
if((_ccf)&&(!this._loaded[_ccf])&&(!this._failed[_ccf])){
var req=dojo.require;
req(_ccf,false,true);
if(dojo.hostenv.findModule(_ccf,false)){
this._loaded[_ccf]=true;
}else{
if(!_cce){
dojo.raise("dojo.ns.Ns.resolve: module '"+_ccf+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_ccf]=true;
}
}
return Boolean(this._loaded[_ccf]);
};
dojo.registerNamespace=function(name,_cd2,_cd3){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_cd5){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_cd5;
}
};
dojo.registerNamespaceManifest=function(_cd7,path,name,_cda,_cdb){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_cda,_cdb);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _cdc={};
var _cdd=[];
this.getUniqueId=function(_cde){
var _cdf;
do{
_cdf=_cde+"_"+(_cdc[_cde]!=undefined?++_cdc[_cde]:_cdc[_cde]=0);
}while(this.getWidgetById(_cdf));
return _cdf;
};
this.add=function(_ce0){
this.widgets.push(_ce0);
if(!_ce0.extraArgs["id"]){
_ce0.extraArgs["id"]=_ce0.extraArgs["ID"];
}
if(_ce0.widgetId==""){
if(_ce0["id"]){
_ce0.widgetId=_ce0["id"];
}else{
if(_ce0.extraArgs["id"]){
_ce0.widgetId=_ce0.extraArgs["id"];
}else{
_ce0.widgetId=this.getUniqueId(_ce0.ns+"_"+_ce0.widgetType);
}
}
}
if(this.widgetIds[_ce0.widgetId]){
dojo.debug("widget ID collision on ID: "+_ce0.widgetId);
}
this.widgetIds[_ce0.widgetId]=_ce0;
};
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(_ce2){
if(dojo.lang.isNumber(_ce2)){
var tw=this.widgets[_ce2].widgetId;
delete this.topWidgets[tw];
delete this.widgetIds[tw];
this.widgets.splice(_ce2,1);
}else{
this.removeById(_ce2);
}
};
this.removeById=function(id){
if(!dojo.lang.isString(id)){
id=id["widgetId"];
if(!id){
dojo.debug("invalid widget or id passed to removeById");
return;
}
}
for(var i=0;i<this.widgets.length;i++){
if(this.widgets[i].widgetId==id){
this.remove(i);
break;
}
}
};
this.getWidgetById=function(id){
if(dojo.lang.isString(id)){
return this.widgetIds[id];
}
return id;
};
this.getWidgetsByType=function(type){
var lt=type.toLowerCase();
var _ce9=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_ce9(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_cee,_cef){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_cee(x)){
ret.push(x);
if(_cef){
return false;
}
}
return true;
});
return (_cef?ret[0]:ret);
};
this.getAllWidgets=function(){
return this.widgets.concat();
};
this.getWidgetByNode=function(node){
var w=this.getAllWidgets();
node=dojo.byId(node);
for(var i=0;i<w.length;i++){
if(w[i].domNode==node){
return w[i];
}
}
return null;
};
this.byId=this.getWidgetById;
this.byType=this.getWidgetsByType;
this.byFilter=this.getWidgetsByFilter;
this.byNode=this.getWidgetByNode;
var _cf5={};
var _cf6=["dojo.widget"];
for(var i=0;i<_cf6.length;i++){
_cf6[_cf6[i]]=true;
}
this.registerWidgetPackage=function(_cf8){
if(!_cf6[_cf8]){
_cf6[_cf8]=true;
_cf6.push(_cf8);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_cf6,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_cfa,_cfb,_cfc,ns){
var impl=this.getImplementationName(_cfa,ns);
if(impl){
var ret=_cfb?new impl(_cfb):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _d00 in dojo.render){
if(dojo.render[_d00]["capable"]===true){
var _d01=dojo.render[_d00].prefixes;
for(var i=0;i<_d01.length;i++){
_cdd.push(_d01[i].toLowerCase());
}
}
}
}
var _d03=function(_d04,_d05){
if(!_d05){
return null;
}
for(var i=0,l=_cdd.length,_d08;i<=l;i++){
_d08=(i<l?_d05[_cdd[i]]:_d05);
if(!_d08){
continue;
}
for(var name in _d08){
if(name.toLowerCase()==_d04){
return _d08[name];
}
}
}
return null;
};
var _d0a=function(_d0b,_d0c){
var _d0d=dojo.evalObjPath(_d0c,false);
return (_d0d?_d03(_d0b,_d0d):null);
};
this.getImplementationName=function(_d0e,ns){
var _d10=_d0e.toLowerCase();
ns=ns||"dojo";
var imps=_cf5[ns]||(_cf5[ns]={});
var impl=imps[_d10];
if(impl){
return impl;
}
if(!_cdd.length){
buildPrefixCache();
}
var _d13=dojo.ns.get(ns);
if(!_d13){
dojo.ns.register(ns,ns+".widget");
_d13=dojo.ns.get(ns);
}
if(_d13){
_d13.resolve(_d0e);
}
impl=_d0a(_d10,_d13.module);
if(impl){
return (imps[_d10]=impl);
}
_d13=dojo.ns.require(ns);
if((_d13)&&(_d13.resolver)){
_d13.resolve(_d0e);
impl=_d0a(_d10,_d13.module);
if(impl){
return (imps[_d10]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_d0e+"\" in \""+_d13.module+"\" registered to namespace \""+_d13.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_cf6.length;i++){
impl=_d0a(_d10,_cf6[i]);
if(impl){
return (imps[_d10]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_d0e+"\" in \""+_d13.module+"\" registered to namespace \""+_d13.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _d16=this.topWidgets[id];
if(_d16.checkSize){
_d16.checkSize();
}
}
}
catch(e){
}
finally{
this.resizing=false;
}
};
if(typeof window!="undefined"){
dojo.addOnLoad(this,"onWindowResized");
dojo.event.connect(window,"onresize",this,"onWindowResized");
}
};
(function(){
var dw=dojo.widget;
var dwm=dw.manager;
var h=dojo.lang.curry(dojo.lang,"hitch",dwm);
var g=function(_d1b,_d1c){
dw[(_d1c||_d1b)]=h(_d1b);
};
g("add","addWidget");
g("destroyAll","destroyAllWidgets");
g("remove","removeWidget");
g("removeById","removeWidgetById");
g("getWidgetById");
g("getWidgetById","byId");
g("getWidgetsByType");
g("getWidgetsByFilter");
g("getWidgetsByType","byType");
g("getWidgetsByFilter","byFilter");
g("getWidgetByNode","byNode");
dw.all=function(n){
var _d1e=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _d1e[n];
}
return _d1e;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojoImagesUri,doAccessibleCheck:true,accessible:null,checkAccessible:function(){
if(this.accessible===null){
this.accessible=false;
if(this.doAccessibleCheck==true){
this.accessible=this.testAccessible();
}
}
return this.accessible;
},testAccessible:function(){
this.accessible=false;
if(dojo.render.html.ie||dojo.render.html.mozilla){
var div=document.createElement("div");
div.style.backgroundImage="url(\""+this.imgPath+"/tab_close.gif\")";
dojo.body().appendChild(div);
var _d20=null;
if(window.getComputedStyle){
var _d21=getComputedStyle(div,"");
_d20=_d21.getPropertyValue("background-image");
}else{
_d20=div.currentStyle.backgroundImage;
}
var _d22=false;
if(_d20!=null&&(_d20=="none"||_d20=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_d23){
this.doAccessibleCheck=_d23;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _d25=this.children[i];
if(_d25.onResized){
_d25.onResized();
}
}
},create:function(args,_d27,_d28,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_d27,_d28);
this.mixInProperties(args,_d27,_d28);
this.postMixInProperties(args,_d27,_d28);
dojo.widget.manager.add(this);
this.buildRendering(args,_d27,_d28);
this.initialize(args,_d27,_d28);
this.postInitialize(args,_d27,_d28);
this.postCreate(args,_d27,_d28);
return this;
},destroy:function(_d2a){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_d2a);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _d2b;
var i=0;
while(this.children.length>i){
_d2b=this.children[i];
if(_d2b instanceof dojo.widget.Widget){
this.removeChild(_d2b);
_d2b.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_d2e){
var ret=[];
var _d30=dojo.lang.isFunction(type);
if(!_d30){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_d30){
if(this.children[x] instanceof type){
ret.push(this.children[x]);
}
}else{
if(this.children[x].widgetType.toLowerCase()==type){
ret.push(this.children[x]);
}
}
if(_d2e){
ret=ret.concat(this.children[x].getChildrenOfType(type,_d2e));
}
}
return ret;
},getDescendants:function(){
var _d32=[];
var _d33=[this];
var elem;
while((elem=_d33.pop())){
_d32.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_d33.push(elem);
});
}
}
return _d32;
},isFirstChild:function(){
return this===this.parent.children[0];
},isLastChild:function(){
return this===this.parent.children[this.parent.children.length-1];
},satisfyPropertySets:function(args){
return args;
},mixInProperties:function(args,frag){
if((args["fastMixIn"])||(frag["fastMixIn"])){
for(var x in args){
this[x]=args[x];
}
return;
}
var _d3a;
var _d3b=dojo.widget.lcArgsCache[this.widgetType];
if(_d3b==null){
_d3b={};
for(var y in this){
_d3b[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_d3b;
}
var _d3d={};
for(var x in args){
if(!this[x]){
var y=_d3b[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_d3d[x]){
continue;
}
_d3d[x]=true;
if((typeof this[x])!=(typeof _d3a)){
if(typeof args[x]!="string"){
this[x]=args[x];
}else{
if(dojo.lang.isString(this[x])){
this[x]=args[x];
}else{
if(dojo.lang.isNumber(this[x])){
this[x]=new Number(args[x]);
}else{
if(dojo.lang.isBoolean(this[x])){
this[x]=(args[x].toLowerCase()=="false")?false:true;
}else{
if(dojo.lang.isFunction(this[x])){
if(args[x].search(/[^\w\.]+/i)==-1){
this[x]=dojo.evalObjPath(args[x],false);
}else{
var tn=dojo.lang.nameAnonFunc(new Function(args[x]),this);
dojo.event.kwConnect({srcObj:this,srcFunc:x,adviceObj:this,adviceFunc:tn});
}
}else{
if(dojo.lang.isArray(this[x])){
this[x]=args[x].split(";");
}else{
if(this[x] instanceof Date){
this[x]=new Date(Number(args[x]));
}else{
if(typeof this[x]=="object"){
if(this[x] instanceof dojo.uri.Uri){
this[x]=dojo.uri.dojoUri(args[x]);
}else{
var _d3f=args[x].split(";");
for(var y=0;y<_d3f.length;y++){
var si=_d3f[y].indexOf(":");
if((si!=-1)&&(_d3f[y].length>si)){
this[x][_d3f[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_d3f[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_d43){
},initialize:function(args,frag,_d46){
return false;
},postInitialize:function(args,frag,_d49){
return false;
},postCreate:function(args,frag,_d4c){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_d4f){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_d50){
},addChild:function(_d51){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_d52){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_d52){
this.children.splice(x,1);
_d52.parent=null;
break;
}
}
return _d52;
},getPreviousSibling:function(){
var idx=this.getParentIndex();
if(idx<=0){
return null;
}
return this.parent.children[idx-1];
},getSiblings:function(){
return this.parent.children;
},getParentIndex:function(){
return dojo.lang.indexOf(this.parent.children,this,true);
},getNextSibling:function(){
var idx=this.getParentIndex();
if(idx==this.parent.children.length-1){
return null;
}
if(idx<0){
return null;
}
return this.parent.children[idx+1];
}});
dojo.widget.lcArgsCache={};
dojo.widget.tags={};
dojo.widget.tags.addParseTreeHandler=function(type){
dojo.deprecated("addParseTreeHandler",". ParseTreeHandlers are now reserved for components. Any unfiltered DojoML tag without a ParseTreeHandler is assumed to be a widget","0.5");
};
dojo.widget.tags["dojo:propertyset"]=function(_d57,_d58,_d59){
var _d5a=_d58.parseProperties(_d57["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_d5b,_d5c,_d5d){
var _d5e=_d5c.parseProperties(_d5b["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_d61,_d62,_d63,_d64){
dojo.a11y.setAccessibleMode();
var _d65=type.split(":");
_d65=(_d65.length==2)?_d65[1]:type;
var _d66=_d64||_d61.parseProperties(frag[frag["ns"]+":"+_d65]);
var _d67=dojo.widget.manager.getImplementation(_d65,null,null,frag["ns"]);
if(!_d67){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_d67.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_d66["dojoinsertionindex"]=_d63;
var ret=_d67.create(_d66,frag,_d62,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_d69,_d6a,_d6b,init,_d6d){
if(dojo.lang.isString(arguments[3])){
dojo.widget._defineWidget(arguments[0],arguments[3],arguments[1],arguments[4],arguments[2]);
}else{
var args=[arguments[0]],p=3;
if(dojo.lang.isString(arguments[1])){
args.push(arguments[1],arguments[2]);
}else{
args.push("",arguments[1]);
p=2;
}
if(dojo.lang.isFunction(arguments[p])){
args.push(arguments[p],arguments[p+1]);
}else{
args.push(null,arguments[p]);
}
dojo.widget._defineWidget.apply(this,args);
}
};
dojo.widget.defineWidget.renderers="html|svg|vml";
dojo.widget._defineWidget=function(_d70,_d71,_d72,init,_d74){
var _d75=_d70.split(".");
var type=_d75.pop();
var regx="\\.("+(_d71?_d71+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_d70.search(new RegExp(regx));
_d75=(r<0?_d75.join("."):_d70.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_d75);
var pos=_d75.indexOf(".");
var _d7a=(pos>-1)?_d75.substring(0,pos):_d75;
_d74=(_d74)||{};
_d74.widgetType=type;
if((!init)&&(_d74["classConstructor"])){
init=_d74.classConstructor;
delete _d74.classConstructor;
}
dojo.declare(_d70,_d72,init,_d74);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_d7b){
this.propertySetsList=[];
this.fragment=_d7b;
this.createComponents=function(frag,_d7d){
var _d7e=[];
var _d7f=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _d80=dojo.widget.tags;
var tna=String(frag.tagName).split(";");
for(var x=0;x<tna.length;x++){
var ltn=tna[x].replace(/^\s+|\s+$/g,"").toLowerCase();
frag.tagName=ltn;
var ret;
if(_d80[ltn]){
_d7f=true;
ret=_d80[ltn](frag,this,_d7d,frag.index);
_d7e.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_d7d,frag.index);
if(ret){
_d7f=true;
_d7e.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_d7f){
_d7e=_d7e.concat(this.createSubComponents(frag,_d7d));
}
return _d7e;
};
this.createSubComponents=function(_d85,_d86){
var frag,_d88=[];
for(var item in _d85){
frag=_d85[item];
if(frag&&typeof frag=="object"&&(frag!=_d85.nodeRef)&&(frag!=_d85.tagName)&&(!dojo.dom.isNode(frag))){
_d88=_d88.concat(this.createComponents(frag,_d86));
}
}
return _d88;
};
this.parsePropertySets=function(_d8a){
return [];
};
this.parseProperties=function(_d8b){
var _d8c={};
for(var item in _d8b){
if((_d8b[item]==_d8b.tagName)||(_d8b[item]==_d8b.nodeRef)){
}else{
var frag=_d8b[item];
if(frag.tagName&&dojo.widget.tags[frag.tagName.toLowerCase()]){
}else{
if(frag[0]&&frag[0].value!=""&&frag[0].value!=null){
try{
if(item.toLowerCase()=="dataprovider"){
var _d8f=this;
this.getDataProvider(_d8f,frag[0].value);
_d8c.dataProvider=this.dataProvider;
}
_d8c[item]=frag[0].value;
var _d90=this.parseProperties(frag);
for(var _d91 in _d90){
_d8c[_d91]=_d90[_d91];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _d8c[item]!="boolean"){
_d8c[item]=true;
}
break;
}
}
}
return _d8c;
};
this.getDataProvider=function(_d92,_d93){
dojo.io.bind({url:_d93,load:function(type,_d95){
if(type=="load"){
_d92.dataProvider=_d95;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_d96){
for(var x=0;x<this.propertySetsList.length;x++){
if(_d96==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_d98){
var _d99=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _d9d=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_d9d==cpcc[0].value)){
_d99.push(cpl);
}
}
return _d99;
};
this.getPropertySets=function(_d9e){
var ppl="dojo:propertyproviderlist";
var _da0=[];
var _da1=_d9e.tagName;
if(_d9e[ppl]){
var _da2=_d9e[ppl].value.split(" ");
for(var _da3 in _da2){
if((_da3.indexOf("..")==-1)&&(_da3.indexOf("://")==-1)){
var _da4=this.getPropertySetById(_da3);
if(_da4!=""){
_da0.push(_da4);
}
}else{
}
}
}
return this.getPropertySetsByType(_da1).concat(_da0);
};
this.createComponentFromScript=function(_da5,_da6,_da7,ns){
_da7.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_da6.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_da7,this,null,null,_da7)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_da7,this,null,null,_da7)];
};
};
dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()};
dojo.widget.getParser=function(name){
if(!name){
name="dojo";
}
if(!this._parser_collection[name]){
this._parser_collection[name]=new dojo.widget.Parse();
}
return this._parser_collection[name];
};
dojo.widget.createWidget=function(name,_dac,_dad,_dae){
var _daf=false;
var _db0=(typeof name=="string");
if(_db0){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _db3=name.toLowerCase();
var _db4=ns+":"+_db3;
_daf=(dojo.byId(name)&&!dojo.widget.tags[_db4]);
}
if((arguments.length==1)&&(_daf||!_db0)){
var xp=new dojo.xml.Parse();
var tn=_daf?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_db7,name,_db9,ns){
_db9[_db4]={dojotype:[{value:_db3}],nodeRef:_db7,fastMixIn:true};
_db9.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_db7,name,_db9,ns);
}
_dac=_dac||{};
var _dbb=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_dad){
_dbb=true;
_dad=tn;
if(h){
dojo.body().appendChild(_dad);
}
}else{
if(_dae){
dojo.dom.insertAtPosition(tn,_dad,_dae);
}else{
tn=_dad;
}
}
var _dbd=fromScript(tn,name.toLowerCase(),_dac,ns);
if((!_dbd)||(!_dbd[0])||(typeof _dbd[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_dbb&&_dbd[0].domNode.parentNode){
_dbd[0].domNode.parentNode.removeChild(_dbd[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _dbd[0];
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),dojoWidgetModuleUri:dojo.uri.moduleUri("dojo.widget"),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_dbf,_dc0,_dc1){
var _dc2=_dbf||obj.templatePath;
var _dc3=dojo.widget._templateCache;
if(!_dc2&&!obj["widgetType"]){
do{
var _dc4="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_dc3[_dc4]);
obj.widgetType=_dc4;
}
var wt=_dc2?_dc2.toString():obj.widgetType;
var ts=_dc3[wt];
if(!ts){
_dc3[wt]={"string":null,"node":null};
if(_dc1){
ts={};
}else{
ts=_dc3[wt];
}
}
if((!obj.templateString)&&(!_dc1)){
obj.templateString=_dc0||ts["string"];
}
if(obj.templateString){
obj.templateString=this._sanitizeTemplateString(obj.templateString);
}
if((!obj.templateNode)&&(!_dc1)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_dc2)){
var _dc7=this._sanitizeTemplateString(dojo.hostenv.getText(_dc2));
obj.templateString=_dc7;
if(!_dc1){
_dc3[wt]["string"]=_dc7;
}
}
if((!ts["string"])&&(!_dc1)){
ts.string=obj.templateString;
}
};
dojo.widget._sanitizeTemplateString=function(_dc8){
if(_dc8){
_dc8=_dc8.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _dc9=_dc8.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_dc9){
_dc8=_dc9[1];
}
}else{
_dc8="";
}
return _dc8;
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_dcd){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_dcd);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_dcd);
}
},getAttr:function(node,ns,attr){
if(dojo.render.html.ie){
return node.getAttribute(this[ns].alias+":"+attr);
}else{
return node.getAttributeNS(this[ns]["namespace"],attr);
}
},removeAttr:function(node,ns,attr){
var _dd4=true;
if(dojo.render.html.ie){
_dd4=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _dd4;
}};
dojo.widget.attachTemplateNodes=function(_dd5,_dd6,_dd7){
var _dd8=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_dd5){
_dd5=_dd6.domNode;
}
if(_dd5.nodeType!=_dd8){
return;
}
var _dda=_dd5.all||_dd5.getElementsByTagName("*");
var _ddb=_dd6;
for(var x=-1;x<_dda.length;x++){
var _ddd=(x==-1)?_dd5:_dda[x];
var _dde=[];
if(!_dd6.widgetsInTemplate||!_ddd.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _de0=_ddd.getAttribute(this.attachProperties[y]);
if(_de0){
_dde=_de0.split(";");
for(var z=0;z<_dde.length;z++){
if(dojo.lang.isArray(_dd6[_dde[z]])){
_dd6[_dde[z]].push(_ddd);
}else{
_dd6[_dde[z]]=_ddd;
}
}
break;
}
}
var _de2=_ddd.getAttribute(this.eventAttachProperty);
if(_de2){
var evts=_de2.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _de4=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _de6=tevt.split(":");
tevt=trim(_de6[0]);
_de4=trim(_de6[1]);
}
if(!_de4){
_de4=tevt;
}
var tf=function(){
var ntf=new String(_de4);
return function(evt){
if(_ddb[ntf]){
_ddb[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_ddd,tevt,tf,false,true);
}
}
for(var y=0;y<_dd7.length;y++){
var _dea=_ddd.getAttribute(_dd7[y]);
if((_dea)&&(_dea.length)){
var _de4=null;
var _deb=_dd7[y].substr(4);
_de4=trim(_dea);
var _dec=[_de4];
if(_de4.indexOf(";")>=0){
_dec=dojo.lang.map(_de4.split(";"),trim);
}
for(var z=0;z<_dec.length;z++){
if(!_dec[z].length){
continue;
}
var tf=function(){
var ntf=new String(_dec[z]);
return function(evt){
if(_ddb[ntf]){
_ddb[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_ddd,_deb,tf,false,true);
}
}
}
}
var _def=_ddd.getAttribute(this.templateProperty);
if(_def){
_dd6[_def]=_ddd;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_ddd.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_ddd,wai.name,"role",val);
}else{
var _df3=val.split("-");
dojo.widget.wai.setAttr(_ddd,wai.name,_df3[0],_df3[1]);
}
}
},this);
var _df4=_ddd.getAttribute(this.onBuildProperty);
if(_df4){
eval("var node = baseNode; var widget = targetObj; "+_df4);
}
}
};
dojo.widget.getDojoEventsFromStr=function(str){
var re=/(dojoOn([a-z]+)(\s?))=/gi;
var evts=str?str.match(re)||[]:[];
var ret=[];
var lem={};
for(var x=0;x<evts.length;x++){
if(evts[x].length<1){
continue;
}
var cm=evts[x].replace(/\s/,"");
cm=(cm.slice(0,cm.length-1));
if(!lem[cm]){
lem[cm]=true;
ret.push(cm);
}
}
return ret;
};
dojo.declare("dojo.widget.DomWidget",dojo.widget.Widget,function(){
if((arguments.length>0)&&(typeof arguments[0]=="object")){
this.create(arguments[0]);
}
},{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_dfc,_dfd,pos,ref,_e00){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_e00==undefined){
_e00=this.children.length;
}
this.addWidgetAsDirectChild(_dfc,_dfd,pos,ref,_e00);
this.registerChild(_dfc,_e00);
}
return _dfc;
},addWidgetAsDirectChild:function(_e01,_e02,pos,ref,_e05){
if((!this.containerNode)&&(!_e02)){
this.containerNode=this.domNode;
}
var cn=(_e02)?_e02:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_e05){
_e05=0;
}
_e01.domNode.setAttribute("dojoinsertionindex",_e05);
if(!ref){
cn.appendChild(_e01.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_e01.domNode,ref.parentNode,_e05);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_e01.domNode);
}else{
dojo.dom.insertAtPosition(_e01.domNode,cn,pos);
}
}
}
},registerChild:function(_e07,_e08){
_e07.dojoInsertionIndex=_e08;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_e08){
idx=i;
}
}
this.children.splice(idx+1,0,_e07);
_e07.parent=this;
_e07.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_e07.widgetId];
},removeChild:function(_e0b){
dojo.dom.removeNode(_e0b.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_e0b);
},getFragNodeRef:function(frag){
if(!frag){
return null;
}
if(!frag[this.getNamespacedType()]){
dojo.raise("Error: no frag for widget type "+this.getNamespacedType()+", id "+this.widgetId+" (maybe a widget has set it's type incorrectly)");
}
return frag[this.getNamespacedType()]["nodeRef"];
},postInitialize:function(args,frag,_e0f){
var _e10=this.getFragNodeRef(frag);
if(_e0f&&(_e0f.snarfChildDomOutput||!_e10)){
_e0f.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_e10);
}else{
if(_e10){
if(this.domNode&&(this.domNode!==_e10)){
this._sourceNodeRef=dojo.dom.replaceNode(_e10,this.domNode);
}
}
}
if(_e0f){
_e0f.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _e11=new dojo.xml.Parse();
var _e12;
var _e13=this.domNode.getElementsByTagName("*");
for(var i=0;i<_e13.length;i++){
if(_e13[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_e12=_e13[i];
}
if(_e13[i].getAttribute("dojoType")){
_e13[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_e12){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_e12);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _e16=_e11.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_e16,this);
var _e17=[];
var _e18=[this];
var w;
while((w=_e18.pop())){
for(var i=0;i<w.children.length;i++){
var _e1a=w.children[i];
if(_e1a._processedSubWidgets||!_e1a.extraArgs["issubwidget"]){
continue;
}
_e17.push(_e1a);
if(_e1a.isContainer){
_e18.push(_e1a);
}
}
}
for(var i=0;i<_e17.length;i++){
var _e1b=_e17[i];
if(_e1b._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_e1b._processedSubWidgets=true;
if(_e1b.extraArgs["dojoattachevent"]){
var evts=_e1b.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _e1e=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _e20=tevt.split(":");
tevt=dojo.string.trim(_e20[0]);
_e1e=dojo.string.trim(_e20[1]);
}
if(!_e1e){
_e1e=tevt;
}
if(dojo.lang.isFunction(_e1b[tevt])){
dojo.event.kwConnect({srcObj:_e1b,srcFunc:tevt,targetObj:this,targetFunc:_e1e});
}else{
alert(tevt+" is not a function in widget "+_e1b);
}
}
}
if(_e1b.extraArgs["dojoattachpoint"]){
this[_e1b.extraArgs["dojoattachpoint"]]=_e1b;
}
}
}
if(this.isContainer&&!frag["dojoDontFollow"]){
dojo.widget.getParser().createSubComponents(frag,this);
}
},buildRendering:function(args,frag){
var ts=dojo.widget._templateCache[this.widgetType];
if(args["templatecsspath"]){
args["templateCssPath"]=args["templatecsspath"];
}
var _e24=args["templateCssPath"]||this.templateCssPath;
if(_e24&&!dojo.widget._cssFiles[_e24.toString()]){
if((!this.templateCssString)&&(_e24)){
this.templateCssString=dojo.hostenv.getText(_e24);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_e24.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_e24);
dojo.widget._cssStrings[this.templateCssString]=true;
}
if((!this.preventClobber)&&((this.templatePath)||(this.templateNode)||((this["templateString"])&&(this.templateString.length))||((typeof ts!="undefined")&&((ts["string"])||(ts["node"]))))){
this.buildFromTemplate(args,frag);
}else{
this.domNode=this.getFragNodeRef(frag);
}
this.fillInTemplate(args,frag);
},buildFromTemplate:function(args,frag){
var _e27=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_e27);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_e27)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _e29=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_e29=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_e29){
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<_e29.length;i++){
var key=_e29[i];
key=key.substring(2,key.length-1);
var kval=(key.substring(0,5)=="this.")?dojo.lang.getObjPathValue(key.substring(5),this):hash[key];
var _e30;
if((kval)||(dojo.lang.isString(kval))){
_e30=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_e30.indexOf("\"")>-1){
_e30=_e30.replace("\"","&quot;");
}
tstr=tstr.replace(_e29[i],_e30);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_e27){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_e29)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_e29){
node=this.templateNode.cloneNode(true);
if(!node){
return false;
}
}else{
node=this.createNodesFromText(tstr,true)[0];
}
}
this.domNode=node;
this.attachTemplateNodes();
if(this.isContainer&&this.containerNode){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,this.containerNode);
}
}
},attachTemplateNodes:function(_e32,_e33){
if(!_e32){
_e32=this.domNode;
}
if(!_e33){
_e33=this;
}
return dojo.widget.attachTemplateNodes(_e32,_e33,dojo.widget.getDojoEventsFromStr(this.templateString));
},fillInTemplate:function(){
},destroyRendering:function(){
try{
dojo.dom.destroyNode(this.domNode);
delete this.domNode;
}
catch(e){
}
if(this._sourceNodeRef){
try{
dojo.dom.destroyNode(this._sourceNodeRef);
}
catch(e){
}
}
},createNodesFromText:function(){
dojo.unimplemented("dojo.widget.DomWidget.createNodesFromText");
}});
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_e35,_e36,_e37){
dojo.html.show(node);
if(dojo.lang.isFunction(_e37)){
_e37();
}
},hide:function(node,_e39,_e3a,_e3b){
dojo.html.hide(node);
if(dojo.lang.isFunction(_e3b)){
_e3b();
}
}};
dojo.lfx.toggle.fade={show:function(node,_e3d,_e3e,_e3f){
dojo.lfx.fadeShow(node,_e3d,_e3e,_e3f).play();
},hide:function(node,_e41,_e42,_e43){
dojo.lfx.fadeHide(node,_e41,_e42,_e43).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_e45,_e46,_e47){
dojo.lfx.wipeIn(node,_e45,_e46,_e47).play();
},hide:function(node,_e49,_e4a,_e4b){
dojo.lfx.wipeOut(node,_e49,_e4a,_e4b).play();
}};
dojo.lfx.toggle.explode={show:function(node,_e4d,_e4e,_e4f,_e50){
dojo.lfx.explode(_e50||{x:0,y:0,width:0,height:0},node,_e4d,_e4e,_e4f).play();
},hide:function(node,_e52,_e53,_e54,_e55){
dojo.lfx.implode(node,_e55||{x:0,y:0,width:0,height:0},_e52,_e53,_e54).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_e5c){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_e5c&&this.domNode){
dojo.event.browser.clean(this.domNode);
}
dojo.widget.HtmlWidget.superclass.destroyRendering.call(this);
}
catch(e){
}
},isShowing:function(){
return dojo.html.isShowing(this.domNode);
},toggleShowing:function(){
if(this.isShowing()){
this.hide();
}else{
this.show();
}
},show:function(){
if(this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.show(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onShow),this.explodeSrc);
},onShow:function(){
this.animationInProgress=false;
this.checkSize();
},hide:function(){
if(!this.isShowing()){
return;
}
this.animationInProgress=true;
this.toggleObj.hide(this.domNode,this.toggleDuration,null,dojo.lang.hitch(this,this.onHide),this.explodeSrc);
},onHide:function(){
this.animationInProgress=false;
},_isResized:function(w,h){
if(!this.isShowing()){
return false;
}
var wh=dojo.html.getMarginBox(this.domNode);
var _e60=w||wh.width;
var _e61=h||wh.height;
if(this.width==_e60&&this.height==_e61){
return false;
}
this.width=_e60;
this.height=_e61;
return true;
},checkSize:function(){
if(!this._isResized()){
return;
}
this.onResized();
},resizeTo:function(w,h){
dojo.html.setMarginBox(this.domNode,{width:w,height:h});
if(this.isShowing()){
this.onResized();
}
},resizeSoon:function(){
if(this.isShowing()){
dojo.lang.setTimeout(this,this.onResized,0);
}
},onResized:function(){
dojo.lang.forEach(this.children,function(_e64){
if(_e64.checkSize){
_e64.checkSize();
}
});
}});
dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]});
dojo.provide("dojo.widget.*");
dojo.provide("dojo.namespaces.dojo");
(function(){
var map={html:{"accordioncontainer":"dojo.widget.AccordionContainer","animatedpng":"dojo.widget.AnimatedPng","button":"dojo.widget.Button","chart":"dojo.widget.Chart","checkbox":"dojo.widget.Checkbox","clock":"dojo.widget.Clock","colorpalette":"dojo.widget.ColorPalette","combobox":"dojo.widget.ComboBox","combobutton":"dojo.widget.Button","contentpane":"dojo.widget.ContentPane","currencytextbox":"dojo.widget.CurrencyTextbox","datepicker":"dojo.widget.DatePicker","datetextbox":"dojo.widget.DateTextbox","debugconsole":"dojo.widget.DebugConsole","dialog":"dojo.widget.Dialog","dropdownbutton":"dojo.widget.Button","dropdowndatepicker":"dojo.widget.DropdownDatePicker","dropdowntimepicker":"dojo.widget.DropdownTimePicker","emaillisttextbox":"dojo.widget.InternetTextbox","emailtextbox":"dojo.widget.InternetTextbox","editor":"dojo.widget.Editor","editor2":"dojo.widget.Editor2","filteringtable":"dojo.widget.FilteringTable","fisheyelist":"dojo.widget.FisheyeList","fisheyelistitem":"dojo.widget.FisheyeList","floatingpane":"dojo.widget.FloatingPane","modalfloatingpane":"dojo.widget.FloatingPane","form":"dojo.widget.Form","googlemap":"dojo.widget.GoogleMap","inlineeditbox":"dojo.widget.InlineEditBox","integerspinner":"dojo.widget.Spinner","integertextbox":"dojo.widget.IntegerTextbox","ipaddresstextbox":"dojo.widget.InternetTextbox","layoutcontainer":"dojo.widget.LayoutContainer","linkpane":"dojo.widget.LinkPane","popupmenu2":"dojo.widget.Menu2","menuitem2":"dojo.widget.Menu2","menuseparator2":"dojo.widget.Menu2","menubar2":"dojo.widget.Menu2","menubaritem2":"dojo.widget.Menu2","pagecontainer":"dojo.widget.PageContainer","pagecontroller":"dojo.widget.PageContainer","popupcontainer":"dojo.widget.PopupContainer","progressbar":"dojo.widget.ProgressBar","radiogroup":"dojo.widget.RadioGroup","realnumbertextbox":"dojo.widget.RealNumberTextbox","regexptextbox":"dojo.widget.RegexpTextbox","repeater":"dojo.widget.Repeater","resizabletextarea":"dojo.widget.ResizableTextarea","richtext":"dojo.widget.RichText","select":"dojo.widget.Select","show":"dojo.widget.Show","showaction":"dojo.widget.ShowAction","showslide":"dojo.widget.ShowSlide","slidervertical":"dojo.widget.Slider","sliderhorizontal":"dojo.widget.Slider","slider":"dojo.widget.Slider","slideshow":"dojo.widget.SlideShow","sortabletable":"dojo.widget.SortableTable","splitcontainer":"dojo.widget.SplitContainer","tabcontainer":"dojo.widget.TabContainer","tabcontroller":"dojo.widget.TabContainer","taskbar":"dojo.widget.TaskBar","textbox":"dojo.widget.Textbox","timepicker":"dojo.widget.TimePicker","timetextbox":"dojo.widget.DateTextbox","titlepane":"dojo.widget.TitlePane","toaster":"dojo.widget.Toaster","toggler":"dojo.widget.Toggler","toolbar":"dojo.widget.Toolbar","toolbarcontainer":"dojo.widget.Toolbar","toolbaritem":"dojo.widget.Toolbar","toolbarbuttongroup":"dojo.widget.Toolbar","toolbarbutton":"dojo.widget.Toolbar","toolbardialog":"dojo.widget.Toolbar","toolbarmenu":"dojo.widget.Toolbar","toolbarseparator":"dojo.widget.Toolbar","toolbarspace":"dojo.widget.Toolbar","toolbarselect":"dojo.widget.Toolbar","toolbarcolordialog":"dojo.widget.Toolbar","tooltip":"dojo.widget.Tooltip","tree":"dojo.widget.Tree","treebasiccontroller":"dojo.widget.TreeBasicController","treecontextmenu":"dojo.widget.TreeContextMenu","treedisablewrapextension":"dojo.widget.TreeDisableWrapExtension","treedociconextension":"dojo.widget.TreeDocIconExtension","treeeditor":"dojo.widget.TreeEditor","treeemphasizeonselect":"dojo.widget.TreeEmphasizeOnSelect","treeexpandtonodeonselect":"dojo.widget.TreeExpandToNodeOnSelect","treelinkextension":"dojo.widget.TreeLinkExtension","treeloadingcontroller":"dojo.widget.TreeLoadingController","treemenuitem":"dojo.widget.TreeContextMenu","treenode":"dojo.widget.TreeNode","treerpccontroller":"dojo.widget.TreeRPCController","treeselector":"dojo.widget.TreeSelector","treetoggleonselect":"dojo.widget.TreeToggleOnSelect","treev3":"dojo.widget.TreeV3","treebasiccontrollerv3":"dojo.widget.TreeBasicControllerV3","treecontextmenuv3":"dojo.widget.TreeContextMenuV3","treedndcontrollerv3":"dojo.widget.TreeDndControllerV3","treeloadingcontrollerv3":"dojo.widget.TreeLoadingControllerV3","treemenuitemv3":"dojo.widget.TreeContextMenuV3","treerpccontrollerv3":"dojo.widget.TreeRpcControllerV3","treeselectorv3":"dojo.widget.TreeSelectorV3","urltextbox":"dojo.widget.InternetTextbox","usphonenumbertextbox":"dojo.widget.UsTextbox","ussocialsecuritynumbertextbox":"dojo.widget.UsTextbox","usstatetextbox":"dojo.widget.UsTextbox","usziptextbox":"dojo.widget.UsTextbox","validationtextbox":"dojo.widget.ValidationTextbox","treeloadingcontroller":"dojo.widget.TreeLoadingController","wizardcontainer":"dojo.widget.Wizard","wizardpane":"dojo.widget.Wizard","yahoomap":"dojo.widget.YahooMap"},svg:{"chart":"dojo.widget.svg.Chart"},vml:{"chart":"dojo.widget.vml.Chart"}};
dojo.addDojoNamespaceMapping=function(_e66,_e67){
map[_e66]=_e67;
};
function dojoNamespaceResolver(name,_e69){
if(!_e69){
_e69="html";
}
if(!map[_e69]){
return null;
}
return map[_e69][name];
}
dojo.registerNamespaceResolver("dojo",dojoNamespaceResolver);
})();
dojo.provide("dojo.widget.html.layout");
dojo.widget.html.layout=function(_e6a,_e6b,_e6c){
dojo.html.addClass(_e6a,"dojoLayoutContainer");
_e6b=dojo.lang.filter(_e6b,function(_e6d,idx){
_e6d.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_e6d.layoutAlign);
});
if(_e6c&&_e6c!="none"){
var rank=function(_e70){
switch(_e70.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_e6c=="left-right")?2:3;
case "top":
case "bottom":
return (_e6c=="left-right")?3:2;
default:
return 4;
}
};
_e6b.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_e6a,"padding-top",true),left:dojo.html.getPixelValue(_e6a,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_e6a));
dojo.lang.forEach(_e6b,function(_e74){
var elm=_e74.domNode;
var pos=_e74.layoutAlign;
with(elm.style){
left=f.left+"px";
top=f.top+"px";
bottom="auto";
right="auto";
}
dojo.html.addClass(elm,"dojoAlign"+dojo.string.capitalize(pos));
if((pos=="top")||(pos=="bottom")){
dojo.html.setMarginBox(elm,{width:f.width});
var h=dojo.html.getMarginBox(elm).height;
f.height-=h;
if(pos=="top"){
f.top+=h;
}else{
elm.style.top=f.top+f.height+"px";
}
if(_e74.onResized){
_e74.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_e74.resizeTo){
_e74.resizeTo(w,f.height);
}else{
dojo.html.setMarginBox(elm,{width:w,height:f.height});
}
f.width-=w;
if(pos=="left"){
f.left+=w;
}else{
elm.style.left=f.left+f.width+"px";
}
}else{
if(pos=="flood"||pos=="client"){
if(_e74.resizeTo){
_e74.resizeTo(f.width,f.height);
}else{
dojo.html.setMarginBox(elm,{width:f.width,height:f.height});
}
}
}
}
});
};
dojo.html.insertCssText(".dojoLayoutContainer{ position: relative; display: block; overflow: hidden; }\n"+"body .dojoAlignTop, body .dojoAlignBottom, body .dojoAlignLeft, body .dojoAlignRight { position: absolute; overflow: hidden; }\n"+"body .dojoAlignClient { position: absolute }\n"+".dojoAlignClient { overflow: auto; }\n");
dojo.provide("dojo.widget.PageContainer");
dojo.widget.defineWidget("dojo.widget.PageContainer",dojo.widget.HtmlWidget,{isContainer:true,doLayout:true,templateString:"<div dojoAttachPoint='containerNode'></div>",selectedChild:"",fillInTemplate:function(args,frag){
var _e7b=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_e7b);
dojo.widget.PageContainer.superclass.fillInTemplate.apply(this,arguments);
},postCreate:function(args,frag){
if(this.children.length){
dojo.lang.forEach(this.children,this._setupChild,this);
var _e7e;
if(this.selectedChild){
this.selectChild(this.selectedChild);
}else{
for(var i=0;i<this.children.length;i++){
if(this.children[i].selected){
this.selectChild(this.children[i]);
break;
}
}
if(!this.selectedChildWidget){
this.selectChild(this.children[0]);
}
}
}
},addChild:function(_e80){
dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);
this._setupChild(_e80);
this.onResized();
if(!this.selectedChildWidget){
this.selectChild(_e80);
}
},_setupChild:function(page){
page.hide();
page.domNode.style.position="relative";
dojo.event.topic.publish(this.widgetId+"-addChild",page);
},removeChild:function(page){
dojo.widget.PageContainer.superclass.removeChild.apply(this,arguments);
if(this._beingDestroyed){
return;
}
dojo.event.topic.publish(this.widgetId+"-removeChild",page);
this.onResized();
if(this.selectedChildWidget===page){
this.selectedChildWidget=undefined;
if(this.children.length>0){
this.selectChild(this.children[0],true);
}
}
},selectChild:function(page,_e84){
page=dojo.widget.byId(page);
this.correspondingPageButton=_e84;
if(this.selectedChildWidget){
this._hideChild(this.selectedChildWidget);
}
this.selectedChildWidget=page;
this.selectedChild=page.widgetId;
this._showChild(page);
page.isFirstChild=(page==this.children[0]);
page.isLastChild=(page==this.children[this.children.length-1]);
dojo.event.topic.publish(this.widgetId+"-selectChild",page);
},forward:function(){
var _e85=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_e85+1]);
},back:function(){
var _e86=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_e86-1]);
},onResized:function(){
if(this.doLayout&&this.selectedChildWidget){
with(this.selectedChildWidget.domNode.style){
top=dojo.html.getPixelValue(this.containerNode,"padding-top",true);
left=dojo.html.getPixelValue(this.containerNode,"padding-left",true);
}
var _e87=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_e87.width,_e87.height);
}
},_showChild:function(page){
if(this.doLayout){
var _e89=dojo.html.getContentBox(this.containerNode);
page.resizeTo(_e89.width,_e89.height);
}
page.selected=true;
page.show();
},_hideChild:function(page){
page.selected=false;
page.hide();
},closeChild:function(page){
var _e8c=page.onClose(this,page);
if(_e8c){
this.removeChild(page);
page.destroy();
}
},destroy:function(){
this._beingDestroyed=true;
dojo.event.topic.destroy(this.widgetId+"-addChild");
dojo.event.topic.destroy(this.widgetId+"-removeChild");
dojo.event.topic.destroy(this.widgetId+"-selectChild");
dojo.widget.PageContainer.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.PageController",dojo.widget.HtmlWidget,{templateString:"<span wairole='tablist' dojoAttachEvent='onKey'></span>",isContainer:true,containerId:"",buttonWidget:"PageButton","class":"dojoPageController",fillInTemplate:function(){
dojo.html.addClass(this.domNode,this["class"]);
dojo.widget.wai.setAttr(this.domNode,"waiRole","role","tablist");
},postCreate:function(){
this.pane2button={};
var _e8d=dojo.widget.byId(this.containerId);
if(_e8d){
dojo.lang.forEach(_e8d.children,this.onAddChild,this);
}
dojo.event.topic.subscribe(this.containerId+"-addChild",this,"onAddChild");
dojo.event.topic.subscribe(this.containerId+"-removeChild",this,"onRemoveChild");
dojo.event.topic.subscribe(this.containerId+"-selectChild",this,"onSelectChild");
},destroy:function(){
dojo.event.topic.unsubscribe(this.containerId+"-addChild",this,"onAddChild");
dojo.event.topic.unsubscribe(this.containerId+"-removeChild",this,"onRemoveChild");
dojo.event.topic.unsubscribe(this.containerId+"-selectChild",this,"onSelectChild");
dojo.widget.PageController.superclass.destroy.apply(this,arguments);
},onAddChild:function(page){
var _e8f=dojo.widget.createWidget(this.buttonWidget,{label:page.label,closeButton:page.closable});
this.addChild(_e8f);
this.domNode.appendChild(_e8f.domNode);
this.pane2button[page]=_e8f;
page.controlButton=_e8f;
var _e90=this;
dojo.event.connect(_e8f,"onClick",function(){
_e90.onButtonClick(page);
});
dojo.event.connect(_e8f,"onCloseButtonClick",function(){
_e90.onCloseButtonClick(page);
});
},onRemoveChild:function(page){
if(this._currentChild==page){
this._currentChild=null;
}
var _e92=this.pane2button[page];
if(_e92){
_e92.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(this._currentChild){
var _e94=this.pane2button[this._currentChild];
_e94.clearSelected();
}
var _e95=this.pane2button[page];
_e95.setSelected();
this._currentChild=page;
},onButtonClick:function(page){
var _e97=dojo.widget.byId(this.containerId);
_e97.selectChild(page,false,this);
},onCloseButtonClick:function(page){
var _e99=dojo.widget.byId(this.containerId);
_e99.closeChild(page);
},onKey:function(evt){
if((evt.keyCode==evt.KEY_RIGHT_ARROW)||(evt.keyCode==evt.KEY_LEFT_ARROW)){
var _e9b=0;
var next=null;
var _e9b=dojo.lang.find(this.children,this.pane2button[this._currentChild]);
if(evt.keyCode==evt.KEY_RIGHT_ARROW){
next=this.children[(_e9b+1)%this.children.length];
}else{
next=this.children[(_e9b+(this.children.length-1))%this.children.length];
}
dojo.event.browser.stopEvent(evt);
next.onClick();
}
}});
dojo.widget.defineWidget("dojo.widget.PageButton",dojo.widget.HtmlWidget,{templateString:"<span class='item'>"+"<span dojoAttachEvent='onClick' dojoAttachPoint='titleNode' class='selectButton'>${this.label}</span>"+"<span dojoAttachEvent='onClick:onCloseButtonClick' class='closeButton'>[X]</span>"+"</span>",label:"foo",closeButton:false,onClick:function(){
this.focus();
},onCloseButtonMouseOver:function(){
dojo.html.addClass(this.closeButtonNode,"closeHover");
},onCloseButtonMouseOut:function(){
dojo.html.removeClass(this.closeButtonNode,"closeHover");
},onCloseButtonClick:function(evt){
},setSelected:function(){
dojo.html.addClass(this.domNode,"current");
this.titleNode.setAttribute("tabIndex","0");
},clearSelected:function(){
dojo.html.removeClass(this.domNode,"current");
this.titleNode.setAttribute("tabIndex","-1");
},focus:function(){
if(this.titleNode.focus){
this.titleNode.focus();
}
}});
dojo.lang.extend(dojo.widget.Widget,{label:"",selected:false,closable:false,onClose:function(){
return true;
}});
dojo.provide("dojo.widget.AccordionContainer");
dojo.widget.defineWidget("dojo.widget.AccordionContainer",dojo.widget.HtmlWidget,{isContainer:true,labelNodeClass:"label",containerNodeClass:"accBody",duration:250,fillInTemplate:function(){
with(this.domNode.style){
if(position!="absolute"){
position="relative";
}
overflow="hidden";
}
},addChild:function(_e9e){
var _e9f=this._addChild(_e9e);
this._setSizes();
return _e9f;
},_addChild:function(_ea0){
if(_ea0.open){
dojo.deprecated("open parameter deprecated, use 'selected=true' instead will be removed in ","0.5");
dojo.debug(_ea0.widgetId+": open == "+_ea0.open);
_ea0.selected=true;
}
if(_ea0.widgetType!="AccordionPane"){
var _ea1=dojo.widget.createWidget("AccordionPane",{label:_ea0.label,selected:_ea0.selected,labelNodeClass:this.labelNodeClass,containerNodeClass:this.containerNodeClass,allowCollapse:this.allowCollapse});
_ea1.addChild(_ea0);
this.addWidgetAsDirectChild(_ea1);
this.registerChild(_ea1,this.children.length);
return _ea1;
}else{
dojo.html.addClass(_ea0.containerNode,this.containerNodeClass);
dojo.html.addClass(_ea0.labelNode,this.labelNodeClass);
this.addWidgetAsDirectChild(_ea0);
this.registerChild(_ea0,this.children.length);
return _ea0;
}
},postCreate:function(){
var _ea2=this.children;
this.children=[];
dojo.html.removeChildren(this.domNode);
dojo.lang.forEach(_ea2,dojo.lang.hitch(this,"_addChild"));
this._setSizes();
},removeChild:function(_ea3){
dojo.widget.AccordionContainer.superclass.removeChild.call(this,_ea3);
this._setSizes();
},onResized:function(){
this._setSizes();
},_setSizes:function(){
var _ea4=0;
var _ea5=0;
dojo.lang.forEach(this.children,function(_ea6,idx){
_ea4+=_ea6.getLabelHeight();
if(_ea6.selected){
_ea5=idx;
}
});
var _ea8=dojo.html.getContentBox(this.domNode);
var y=0;
dojo.lang.forEach(this.children,function(_eaa,idx){
var _eac=_eaa.getLabelHeight();
_eaa.resizeTo(_ea8.width,_ea8.height-_ea4+_eac);
_eaa.domNode.style.zIndex=idx+1;
_eaa.domNode.style.position="absolute";
_eaa.domNode.style.top=y+"px";
y+=(idx==_ea5)?dojo.html.getBorderBox(_eaa.domNode).height:_eac;
});
},selectChild:function(page){
dojo.lang.forEach(this.children,function(_eae){
_eae.setSelected(_eae==page);
});
var y=0;
var _eb0=[];
dojo.lang.forEach(this.children,function(_eb1,idx){
if(_eb1.domNode.style.top!=(y+"px")){
_eb0.push(dojo.lfx.html.slideTo(_eb1.domNode,{top:y,left:0},this.duration));
}
y+=_eb1.selected?dojo.html.getBorderBox(_eb1.domNode).height:_eb1.getLabelHeight();
},this);
dojo.lfx.combine(_eb0).play();
}});
dojo.widget.defineWidget("dojo.widget.AccordionPane",dojo.widget.HtmlWidget,{label:"","class":"dojoAccordionPane",labelNodeClass:"label",containerNodeClass:"accBody",selected:false,templateString:"<div dojoAttachPoint=\"domNode\">\r\n<div dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick: onLabelClick\" class=\"${this.labelNodeClass}\">${this.label}</div>\r\n<div dojoAttachPoint=\"containerNode\" style=\"overflow: hidden;\" class=\"${this.containerNodeClass}\"></div>\r\n</div>\r\n",isContainer:true,fillInTemplate:function(){
dojo.html.addClass(this.domNode,this["class"]);
dojo.widget.AccordionPane.superclass.fillInTemplate.call(this);
dojo.html.disableSelection(this.labelNode);
this.setSelected(this.selected);
},setLabel:function(_eb3){
this.labelNode.innerHTML=_eb3;
},resizeTo:function(_eb4,_eb5){
dojo.html.setMarginBox(this.domNode,{width:_eb4,height:_eb5});
var _eb6=[{domNode:this.labelNode,layoutAlign:"top"},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_eb6);
var _eb7=dojo.html.getContentBox(this.containerNode);
this.children[0].resizeTo(_eb7.width,_eb7.height);
},getLabelHeight:function(){
return dojo.html.getMarginBox(this.labelNode).height;
},onLabelClick:function(){
this.parent.selectChild(this);
},setSelected:function(_eb8){
this.selected=_eb8;
(_eb8?dojo.html.addClass:dojo.html.removeClass)(this.domNode,this["class"]+"-selected");
var _eb9=this.children[0];
if(_eb9){
if(_eb8){
if(!_eb9.isShowing()){
_eb9.show();
}else{
_eb9.onShow();
}
}else{
_eb9.onHide();
}
}
}});
dojo.lang.extend(dojo.widget.Widget,{open:false});
dojo.provide("dojo.widget.Chart");
dojo.declare("dojo.widget.Chart",null,function(){
this.series=[];
},{isContainer:false,assignColors:function(){
var hue=30;
var sat=120;
var lum=120;
var _ebd=Math.round(330/this.series.length);
for(var i=0;i<this.series.length;i++){
var c=dojo.gfx.color.hsl2rgb(hue,sat,lum);
if(!this.series[i].color){
this.series[i].color=dojo.gfx.color.rgb2hex(c[0],c[1],c[2]);
}
hue+=_ebd;
}
},parseData:function(_ec0){
var _ec1=_ec0.getElementsByTagName("thead")[0];
var _ec2=_ec0.getElementsByTagName("tbody")[0];
if(!(_ec1&&_ec2)){
dojo.raise("dojo.widget.Chart: supplied table must define a head and a body.");
}
var _ec3=_ec1.getElementsByTagName("tr")[0].getElementsByTagName("th");
for(var i=1;i<_ec3.length;i++){
var key="column"+i;
var _ec6=_ec3[i].innerHTML;
var _ec7=_ec3[i].getAttribute("plotType")||"line";
var _ec8=_ec3[i].getAttribute("color");
var ds=new dojo.widget.Chart.DataSeries(key,_ec6,_ec7,_ec8);
this.series.push(ds);
}
var rows=_ec2.rows;
var xMin=Number.MAX_VALUE,xMax=Number.MIN_VALUE;
var yMin=Number.MAX_VALUE,yMax=Number.MIN_VALUE;
var _ecf=["accesskey","align","bgcolor","class","colspan","height","id","nowrap","rowspan","style","tabindex","title","valign","width"];
for(var i=0;i<rows.length;i++){
var row=rows[i];
var _ed1=row.cells;
var x=Number.MIN_VALUE;
for(var j=0;j<_ed1.length;j++){
if(j==0){
x=parseFloat(_ed1[j].innerHTML);
xMin=Math.min(xMin,x);
xMax=Math.max(xMax,x);
}else{
var ds=this.series[j-1];
var y=parseFloat(_ed1[j].innerHTML);
yMin=Math.min(yMin,y);
yMax=Math.max(yMax,y);
var o={x:x,value:y};
var _ed6=_ed1[j].attributes;
for(var k=0;k<_ed6.length;k++){
var attr=_ed6.item(k);
var _ed9=false;
for(var l=0;l<_ecf.length;l++){
if(attr.nodeName.toLowerCase()==_ecf[l]){
_ed9=true;
break;
}
}
if(!_ed9){
o[attr.nodeName]=attr.nodeValue;
}
}
ds.add(o);
}
}
}
return {x:{min:xMin,max:xMax},y:{min:yMin,max:yMax}};
}});
dojo.declare("dojo.widget.Chart.DataSeries",null,function(key,_edc,_edd,_ede){
this.id="DataSeries"+dojo.widget.Chart.DataSeries.count++;
this.key=key;
this.label=_edc||this.id;
this.plotType=_edd||"line";
this.color=_ede;
this.values=[];
},{add:function(v){
if(v.x==null||v.value==null){
dojo.raise("dojo.widget.Chart.DataSeries.add: v must have both an 'x' and 'value' property.");
}
this.values.push(v);
},clear:function(){
this.values=[];
},createRange:function(len){
var idx=this.values.length-1;
var _ee2=(len||this.values.length);
return {"index":idx,"length":_ee2,"start":Math.max(idx-_ee2,0)};
},getMean:function(len){
var _ee4=this.createRange(len);
if(_ee4.index<0){
return 0;
}
var t=0;
var c=0;
for(var i=_ee4.index;i>=_ee4.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
t+=n;
c++;
}
}
t/=Math.max(c,1);
return t;
},getMovingAverage:function(len){
var _eea=this.createRange(len);
if(_eea.index<0){
return 0;
}
var t=0;
var c=0;
for(var i=_eea.index;i>=_eea.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
t+=n;
c++;
}
}
t/=Math.max(c,1);
return t;
},getVariance:function(len){
var _ef0=this.createRange(len);
if(_ef0.index<0){
return 0;
}
var t=0;
var s=0;
var c=0;
for(var i=_ef0.index;i>=_ef0.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
t+=n;
s+=Math.pow(n,2);
c++;
}
}
return (s/c)-Math.pow(t/c,2);
},getStandardDeviation:function(len){
return Math.sqrt(this.getVariance(len));
},getMax:function(len){
var _ef8=this.createRange(len);
if(_ef8.index<0){
return 0;
}
var t=0;
for(var i=_ef8.index;i>=_ef8.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
t=Math.max(n,t);
}
}
return t;
},getMin:function(len){
var _efd=this.createRange(len);
if(_efd.index<0){
return 0;
}
var t=0;
for(var i=_efd.index;i>=_efd.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
t=Math.min(n,t);
}
}
return t;
},getMedian:function(len){
var _f02=this.createRange(len);
if(_f02.index<0){
return 0;
}
var a=[];
for(var i=_f02.index;i>=_f02.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
var b=false;
for(var j=0;j<a.length&&!b;j++){
if(n==a[j]){
b=true;
}
}
if(!b){
a.push(n);
}
}
}
a.sort();
if(a.length>0){
return a[Math.ceil(a.length/2)];
}
return 0;
},getMode:function(len){
var _f09=this.createRange(len);
if(_f09.index<0){
return 0;
}
var o={};
var ret=0;
var m=0;
for(var i=_f09.index;i>=_f09.start;i--){
var n=parseFloat(this.values[i].value);
if(!isNaN(n)){
if(!o[this.values[i].value]){
o[this.values[i].value]=1;
}else{
o[this.values[i].value]++;
}
}
}
for(var p in o){
if(m<o[p]){
m=o[p];
ret=p;
}
}
return parseFloat(ret);
}});
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 _f13=1;
for(var i=1;i<=n;i++){
_f13*=i;
}
return _f13;
};
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 _f1f=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_f1f.length;i++){
mean+=_f1f[i];
}
return mean/_f1f.length;
};
dojo.math.round=function(_f22,_f23){
if(!_f23){
var _f24=1;
}else{
var _f24=Math.pow(10,_f23);
}
return Math.round(_f22*_f24)/_f24;
};
dojo.math.sd=dojo.math.standardDeviation=function(){
var _f25=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_f25));
};
dojo.math.variance=function(){
var _f26=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,_f28=0;
for(var i=0;i<_f26.length;i++){
mean+=_f26[i];
_f28+=Math.pow(_f26[i],2);
}
return (_f28/_f26.length)-Math.pow(mean/_f26.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _f2d=[];
if(step>0){
for(var i=a;i<b;i+=step){
_f2d.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_f2d.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _f2d;
};
dojo.provide("dojo.widget.svg.Chart");
dojo.widget.defineWidget("dojo.widget.svg.Chart",[dojo.widget.HtmlWidget,dojo.widget.Chart],function(){
this.templatePath=null;
this.templateCssPath=null;
this._isInitialize=false;
this.hasData=false;
this.vectorNode=null;
this.plotArea=null;
this.dataGroup=null;
this.axisGroup=null;
this.properties={height:0,width:0,defaultWidth:600,defaultHeight:400,plotType:null,padding:{top:10,bottom:2,left:60,right:30},axes:{x:{plotAt:0,label:"",unitLabel:"",unitType:Number,nUnitsToShow:10,range:{min:0,max:200}},y:{plotAt:0,label:"",unitLabel:"",unitType:Number,nUnitsToShow:10,range:{min:0,max:200}}}};
},{parseProperties:function(node){
var _f30=false;
var _f31=false;
if(node.getAttribute("width")){
this.properties.width=node.getAttribute("width");
}
if(node.getAttribute("height")){
this.properties.height=node.getAttribute("height");
}
if(node.getAttribute("plotType")){
this.properties.plotType=node.getAttribute("plotType");
}
if(node.getAttribute("padding")){
if(node.getAttribute("padding").indexOf(",")>-1){
var p=node.getAttribute("padding").split(",");
}else{
var p=node.getAttribute("padding").split(" ");
}
if(p.length==1){
var pad=parseFloat(p[0]);
this.properties.padding.top=pad;
this.properties.padding.right=pad;
this.properties.padding.bottom=pad;
this.properties.padding.left=pad;
}else{
if(p.length==2){
var padV=parseFloat(p[0]);
var padH=parseFloat(p[1]);
this.properties.padding.top=padV;
this.properties.padding.right=padH;
this.properties.padding.bottom=padV;
this.properties.padding.left=padH;
}else{
if(p.length==4){
this.properties.padding.top=parseFloat(p[0]);
this.properties.padding.right=parseFloat(p[1]);
this.properties.padding.bottom=parseFloat(p[2]);
this.properties.padding.left=parseFloat(p[3]);
}
}
}
}
if(node.getAttribute("rangeX")){
var p=node.getAttribute("rangeX");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
this.properties.axes.x.range.min=parseFloat(p[0]);
this.properties.axes.x.range.max=parseFloat(p[1]);
_f30=true;
}
if(node.getAttribute("rangeY")){
var p=node.getAttribute("rangeY");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
this.properties.axes.y.range.min=parseFloat(p[0]);
this.properties.axes.y.range.max=parseFloat(p[1]);
_f31=true;
}
return {rangeX:_f30,rangeY:_f31};
},setAxesPlot:function(_f36){
if(_f36.getAttribute("axisAt")){
var p=_f36.getAttribute("axisAt");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
if(!isNaN(parseFloat(p[0]))){
this.properties.axes.x.plotAt=parseFloat(p[0]);
}else{
if(p[0].toLowerCase()=="ymin"){
this.properties.axes.x.plotAt=this.properties.axes.y.range.min;
}else{
if(p[0].toLowerCase()=="ymax"){
this.properties.axes.x.plotAt=this.properties.axes.y.range.max;
}
}
}
if(!isNaN(parseFloat(p[1]))){
this.properties.axes.y.plotAt=parseFloat(p[1]);
}else{
if(p[1].toLowerCase()=="xmin"){
this.properties.axes.y.plotAt=this.properties.axes.x.range.min;
}else{
if(p[1].toLowerCase()=="xmax"){
this.properties.axes.y.plotAt=this.properties.axes.x.range.max;
}
}
}
}else{
this.properties.axes.x.plotAt=this.properties.axes.y.range.min;
this.properties.axes.y.plotAt=this.properties.axes.x.range.min;
}
},drawVectorNode:function(){
dojo.svg.g.suspend();
if(this.vectorNode){
this.destroy();
}
this.vectorNode=document.createElementNS(dojo.svg.xmlns.svg,"svg");
this.vectorNode.setAttribute("width",this.properties.width);
this.vectorNode.setAttribute("height",this.properties.height);
dojo.svg.g.resume();
},drawPlotArea:function(){
dojo.svg.g.suspend();
if(this.plotArea){
this.plotArea.parentNode.removeChild(this.plotArea);
this.plotArea=null;
}
var defs=document.createElementNS(dojo.svg.xmlns.svg,"defs");
var clip=document.createElementNS(dojo.svg.xmlns.svg,"clipPath");
clip.setAttribute("id","plotClip"+this.widgetId);
var rect=document.createElementNS(dojo.svg.xmlns.svg,"rect");
rect.setAttribute("x",this.properties.padding.left);
rect.setAttribute("y",this.properties.padding.top);
rect.setAttribute("width",this.properties.width-this.properties.padding.left-this.properties.padding.right);
rect.setAttribute("height",this.properties.height-this.properties.padding.top-this.properties.padding.bottom);
clip.appendChild(rect);
defs.appendChild(clip);
this.vectorNode.appendChild(defs);
this.plotArea=document.createElementNS(dojo.svg.xmlns.svg,"g");
this.vectorNode.appendChild(this.plotArea);
var rect=document.createElementNS(dojo.svg.xmlns.svg,"rect");
rect.setAttribute("x",this.properties.padding.left);
rect.setAttribute("y",this.properties.padding.top);
rect.setAttribute("width",this.properties.width-this.properties.padding.left-this.properties.padding.right);
rect.setAttribute("height",this.properties.height-this.properties.padding.top-this.properties.padding.bottom);
rect.setAttribute("fill","#fff");
this.plotArea.appendChild(rect);
dojo.svg.g.resume();
},drawDataGroup:function(){
dojo.svg.g.suspend();
if(this.dataGroup){
this.dataGroup.parentNode.removeChild(this.dataGroup);
this.dataGroup=null;
}
this.dataGroup=document.createElementNS(dojo.svg.xmlns.svg,"g");
this.dataGroup.setAttribute("style","clip-path:url(#plotClip"+this.widgetId+");");
this.plotArea.appendChild(this.dataGroup);
dojo.svg.g.resume();
},drawAxes:function(){
dojo.svg.g.suspend();
if(this.axisGroup){
this.axisGroup.parentNode.removeChild(this.axisGroup);
this.axisGroup=null;
}
this.axisGroup=document.createElementNS(dojo.svg.xmlns.svg,"g");
this.plotArea.appendChild(this.axisGroup);
var _f3b=1;
var line=document.createElementNS(dojo.svg.xmlns.svg,"line");
var y=dojo.widget.svg.Chart.Plotter.getY(this.properties.axes.x.plotAt,this);
line.setAttribute("y1",y);
line.setAttribute("y2",y);
line.setAttribute("x1",this.properties.padding.left-_f3b);
line.setAttribute("x2",this.properties.width-this.properties.padding.right);
line.setAttribute("style","stroke:#000;stroke-width:"+_f3b+";");
this.axisGroup.appendChild(line);
var _f3e=10;
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",this.properties.padding.left);
text.setAttribute("y",this.properties.height-this.properties.padding.bottom+_f3e+2);
text.setAttribute("style","text-anchor:middle;font-size:"+_f3e+"px;fill:#000;");
text.appendChild(document.createTextNode(dojo.math.round(parseFloat(this.properties.axes.x.range.min),2)));
this.axisGroup.appendChild(text);
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",this.properties.width-this.properties.padding.right-(_f3e/2));
text.setAttribute("y",this.properties.height-this.properties.padding.bottom+_f3e+2);
text.setAttribute("style","text-anchor:middle;font-size:"+_f3e+"px;fill:#000;");
text.appendChild(document.createTextNode(dojo.math.round(parseFloat(this.properties.axes.x.range.max),2)));
this.axisGroup.appendChild(text);
var line=document.createElementNS(dojo.svg.xmlns.svg,"line");
var x=dojo.widget.svg.Chart.Plotter.getX(this.properties.axes.y.plotAt,this);
line.setAttribute("x1",x);
line.setAttribute("x2",x);
line.setAttribute("y1",this.properties.padding.top);
line.setAttribute("y2",this.properties.height-this.properties.padding.bottom);
line.setAttribute("style","stroke:#000;stroke-width:"+_f3b+";");
this.axisGroup.appendChild(line);
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",this.properties.padding.left-4);
text.setAttribute("y",this.properties.height-this.properties.padding.bottom);
text.setAttribute("style","text-anchor:end;font-size:"+_f3e+"px;fill:#000;");
text.appendChild(document.createTextNode(dojo.math.round(parseFloat(this.properties.axes.y.range.min),2)));
this.axisGroup.appendChild(text);
var text=document.createElementNS(dojo.svg.xmlns.svg,"text");
text.setAttribute("x",this.properties.padding.left-4);
text.setAttribute("y",this.properties.padding.top+(_f3e/2));
text.setAttribute("style","text-anchor:end;font-size:"+_f3e+"px;fill:#000;");
text.appendChild(document.createTextNode(dojo.math.round(parseFloat(this.properties.axes.y.range.max),2)));
this.axisGroup.appendChild(text);
dojo.svg.g.resume();
},init:function(){
if(!this.properties.width||!this.properties.height){
var box=dojo.html.getContentBox(this.domNode);
if(!this.properties.width){
this.properties.width=(box.width<32)?this.properties.defaultWidth:box.width;
}
if(!this.properties.height){
this.properties.height=(box.height<32)?this.properties.defaultHeight:box.height;
}
}
this.drawVectorNode();
this.drawPlotArea();
this.drawDataGroup();
this.drawAxes();
this.domNode.appendChild(this.vectorNode);
this.assignColors();
this._isInitialized=true;
},destroy:function(){
while(this.domNode.childNodes.length>0){
this.domNode.removeChild(this.domNode.childNodes.item(0));
}
this.vectorNode=this.plotArea=this.dataGroup=this.axisGroup=null;
},render:function(){
dojo.svg.g.suspend();
if(this.dataGroup){
while(this.dataGroup.childNodes.length>0){
this.dataGroup.removeChild(this.dataGroup.childNodes.item(0));
}
}else{
this.init();
}
for(var i=0;i<this.series.length;i++){
dojo.widget.svg.Chart.Plotter.plot(this.series[i],this);
}
dojo.svg.g.resume();
},postCreate:function(){
var _f43=this.domNode.getElementsByTagName("table")[0];
if(_f43){
var _f44=this.parseProperties(_f43);
var _f45=false;
var _f46=false;
var _f47=this.parseData(_f43);
if(!_f45){
this.properties.axes.x.range={min:_f47.x.min,max:_f47.x.max};
}
if(!_f46){
this.properties.axes.y.range={min:_f47.y.min,max:_f47.y.max};
}
this.setAxesPlot(_f43);
this.domNode.removeChild(_f43);
}
if(this.series.length>0){
this.render();
}
}});
dojo.widget.svg.Chart.Plotter=new function(){
var self=this;
var _f49={};
var _f4a=dojo.widget.Chart.PlotTypes;
this.getX=function(_f4b,_f4c){
var v=parseFloat(_f4b);
var min=_f4c.properties.axes.x.range.min;
var max=_f4c.properties.axes.x.range.max;
var ofst=0-min;
min+=ofst;
max+=ofst;
v+=ofst;
var xmin=_f4c.properties.padding.left;
var xmax=_f4c.properties.width-_f4c.properties.padding.right;
var x=(v*((xmax-xmin)/max))+xmin;
return x;
};
this.getY=function(_f54,_f55){
var v=parseFloat(_f54);
var max=_f55.properties.axes.y.range.max;
var min=_f55.properties.axes.y.range.min;
var ofst=0;
if(min<0){
ofst+=Math.abs(min);
}
min+=ofst;
max+=ofst;
v+=ofst;
var ymin=_f55.properties.height-_f55.properties.padding.bottom;
var ymax=_f55.properties.padding.top;
var y=(((ymin-ymax)/(max-min))*(max-v))+ymax;
return y;
};
this.addPlotter=function(name,func){
_f49[name]=func;
};
this.plot=function(_f5f,_f60){
if(_f5f.values.length==0){
return;
}
if(_f5f.plotType&&_f49[_f5f.plotType]){
return _f49[_f5f.plotType](_f5f,_f60);
}else{
if(_f60.plotType&&_f49[_f60.plotType]){
return _f49[_f60.plotType](_f5f,_f60);
}
}
};
_f49["bar"]=function(_f61,_f62){
var _f63=1;
var _f64=0;
for(var i=0;i<_f61.values.length;i++){
var x=self.getX(_f61.values[i].x,_f62);
var w;
if(i==_f61.values.length-1){
w=_f64;
}else{
w=self.getX(_f61.values[i+1].x,_f62)-x-_f63;
_f64=w;
}
x-=(w/2);
var yA=self.getY(_f62.properties.axes.x.plotAt,_f62);
var y=self.getY(_f61.values[i].value,_f62);
var h=Math.abs(yA-y);
if(parseFloat(_f61.values[i].value)<_f62.properties.axes.x.plotAt){
var oy=yA;
yA=y;
y=oy;
}
var bar=document.createElementNS(dojo.svg.xmlns.svg,"rect");
bar.setAttribute("fill",_f61.color);
bar.setAttribute("title",_f61.label+": "+_f61.values[i].value);
bar.setAttribute("stroke-width","0");
bar.setAttribute("x",x);
bar.setAttribute("y",y);
bar.setAttribute("width",w);
bar.setAttribute("height",h);
bar.setAttribute("fill-opacity","0.9");
_f62.dataGroup.appendChild(bar);
}
};
_f49["line"]=function(_f6d,_f6e){
var _f6f=1.5;
var line=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.setAttribute("fill","none");
line.setAttribute("stroke",_f6d.color);
line.setAttribute("stroke-width","2");
line.setAttribute("stroke-opacity","0.85");
line.setAttribute("title",_f6d.label);
_f6e.dataGroup.appendChild(line);
var path=[];
for(var i=0;i<_f6d.values.length;i++){
var x=self.getX(_f6d.values[i].x,_f6e);
var y=self.getY(_f6d.values[i].value,_f6e);
var dx=_f6e.properties.padding.left+1;
var dy=_f6e.properties.height-_f6e.properties.padding.bottom;
if(i>0){
dx=x-self.getX(_f6d.values[i-1].x,_f6e);
dy=self.getY(_f6d.values[i-1].value,_f6e);
}
if(i==0){
path.push("M");
}else{
path.push("C");
var cx=x-(_f6f-1)*(dx/_f6f);
path.push(cx+","+dy);
cx=x-(dx/_f6f);
path.push(cx+","+y);
}
path.push(x+","+y);
}
line.setAttribute("d",path.join(" "));
};
_f49["area"]=function(_f78,_f79){
var _f7a=1.5;
var line=document.createElementNS(dojo.svg.xmlns.svg,"path");
line.setAttribute("fill",_f78.color);
line.setAttribute("fill-opacity","0.4");
line.setAttribute("stroke",_f78.color);
line.setAttribute("stroke-width","1");
line.setAttribute("stroke-opacity","0.8");
line.setAttribute("title",_f78.label);
_f79.dataGroup.appendChild(line);
var path=[];
for(var i=0;i<_f78.values.length;i++){
var x=self.getX(_f78.values[i].x,_f79);
var y=self.getY(_f78.values[i].value,_f79);
var dx=_f79.properties.padding.left+1;
var dy=_f79.properties.height-_f79.properties.padding.bottom;
if(i>0){
dx=x-self.getX(_f78.values[i-1].x,_f79);
dy=self.getY(_f78.values[i-1].value,_f79);
}
if(i==0){
path.push("M");
}else{
path.push("C");
var cx=x-(_f7a-1)*(dx/_f7a);
path.push(cx+","+dy);
cx=x-(dx/_f7a);
path.push(cx+","+y);
}
path.push(x+","+y);
}
path.push("L");
path.push(x+","+self.getY(0,_f79));
path.push("L");
path.push(self.getX(0,_f79)+","+self.getY(0,_f79));
path.push("Z");
line.setAttribute("d",path.join(" "));
},_f49["scatter"]=function(_f83,_f84){
var r=7;
for(var i=0;i<_f83.values.length;i++){
var x=self.getX(_f83.values[i].x,_f84);
var y=self.getY(_f83.values[i].value,_f84);
var _f89=document.createElementNS(dojo.svg.xmlns.svg,"path");
_f89.setAttribute("fill",_f83.color);
_f89.setAttribute("stroke-width","0");
_f89.setAttribute("title",_f83.label+": "+_f83.values[i].value);
_f89.setAttribute("d","M "+x+","+(y-r)+" "+"Q "+x+","+y+" "+(x+r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y+r)+" "+"Q "+x+","+y+" "+(x-r)+","+y+" "+"Q "+x+","+y+" "+x+","+(y-r)+" "+"Z");
_f84.dataGroup.appendChild(_f89);
}
};
_f49["bubble"]=function(_f8a,_f8b){
var minR=1;
var min=_f8b.properties.axes.x.range.min;
var max=_f8b.properties.axes.x.range.max;
var ofst=0-min;
min+=ofst;
max+=ofst;
var xmin=_f8b.properties.padding.left;
var xmax=_f8b.properties.width-_f8b.properties.padding.right;
var _f92=(max-min)/(xmax-xmin)*25;
for(var i=0;i<_f8a.values.length;i++){
var size=_f8a.values[i].size;
if(isNaN(parseFloat(size))){
size=minR;
}
var _f95=document.createElementNS(dojo.svg.xmlns.svg,"circle");
_f95.setAttribute("stroke-width",0);
_f95.setAttribute("fill",_f8a.color);
_f95.setAttribute("fill-opacity","0.8");
_f95.setAttribute("r",(parseFloat(size)*_f92)/2);
_f95.setAttribute("cx",self.getX(_f8a.values[i].x,_f8b));
_f95.setAttribute("cy",self.getY(_f8a.values[i].value,_f8b));
_f95.setAttribute("title",_f8a.label+": "+_f8a.values[i].value+" ("+size+")");
_f8b.dataGroup.appendChild(_f95);
}
};
}();
dojo.provide("dojo.widget.vml.Chart");
dojo.widget.defineWidget("dojo.widget.vml.Chart",[dojo.widget.HtmlWidget,dojo.widget.Chart],function(){
this.templatePath=null;
this.templateCssPath=null;
this._isInitialize=false;
this.hasData=false;
this.vectorNode=null;
this.plotArea=null;
this.dataGroup=null;
this.axisGroup=null;
this.properties={height:0,width:0,defaultWidth:600,defaultHeight:400,plotType:null,padding:{top:10,bottom:2,left:60,right:30},axes:{x:{plotAt:0,label:"",unitLabel:"",unitType:Number,nUnitsToShow:10,range:{min:0,max:200}},y:{plotAt:0,label:"",unitLabel:"",unitType:Number,nUnitsToShow:10,range:{min:0,max:200}}}};
},{parseProperties:function(node){
var _f97=false;
var _f98=false;
if(node.getAttribute("width")){
this.properties.width=node.getAttribute("width");
}
if(node.getAttribute("height")){
this.properties.height=node.getAttribute("height");
}
if(node.getAttribute("plotType")){
this.properties.plotType=node.getAttribute("plotType");
}
if(node.getAttribute("padding")){
if(node.getAttribute("padding").indexOf(",")>-1){
var p=node.getAttribute("padding").split(",");
}else{
var p=node.getAttribute("padding").split(" ");
}
if(p.length==1){
var pad=parseFloat(p[0]);
this.properties.padding.top=pad;
this.properties.padding.right=pad;
this.properties.padding.bottom=pad;
this.properties.padding.left=pad;
}else{
if(p.length==2){
var padV=parseFloat(p[0]);
var padH=parseFloat(p[1]);
this.properties.padding.top=padV;
this.properties.padding.right=padH;
this.properties.padding.bottom=padV;
this.properties.padding.left=padH;
}else{
if(p.length==4){
this.properties.padding.top=parseFloat(p[0]);
this.properties.padding.right=parseFloat(p[1]);
this.properties.padding.bottom=parseFloat(p[2]);
this.properties.padding.left=parseFloat(p[3]);
}
}
}
}
if(node.getAttribute("rangeX")){
var p=node.getAttribute("rangeX");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
this.properties.axes.x.range.min=parseFloat(p[0]);
this.properties.axes.x.range.max=parseFloat(p[1]);
_f97=true;
}
if(node.getAttribute("rangeY")){
var p=node.getAttribute("rangeY");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
this.properties.axes.y.range.min=parseFloat(p[0]);
this.properties.axes.y.range.max=parseFloat(p[1]);
_f98=true;
}
return {rangeX:_f97,rangeY:_f98};
},setAxesPlot:function(_f9d){
if(_f9d.getAttribute("axisAt")){
var p=_f9d.getAttribute("axisAt");
if(p.indexOf(",")>-1){
p=p.split(",");
}else{
p=p.split(" ");
}
if(!isNaN(parseFloat(p[0]))){
this.properties.axes.x.plotAt=parseFloat(p[0]);
}else{
if(p[0].toLowerCase()=="ymin"){
this.properties.axes.x.plotAt=this.properties.axes.y.range.min;
}else{
if(p[0].toLowerCase()=="ymax"){
this.properties.axes.x.plotAt=this.properties.axes.y.range.max;
}
}
}
if(!isNaN(parseFloat(p[1]))){
this.properties.axes.y.plotAt=parseFloat(p[1]);
}else{
if(p[1].toLowerCase()=="xmin"){
this.properties.axes.y.plotAt=this.properties.axes.x.range.min;
}else{
if(p[1].toLowerCase()=="xmax"){
this.properties.axes.y.plotAt=this.properties.axes.x.range.max;
}
}
}
}else{
this.properties.axes.x.plotAt=this.properties.axes.y.range.min;
this.properties.axes.y.plotAt=this.properties.axes.x.range.min;
}
},drawVectorNode:function(){
if(this.vectorNode){
this.destroy();
}
this.vectorNode=document.createElement("div");
this.vectorNode.style.width=this.properties.width+"px";
this.vectorNode.style.height=this.properties.height+"px";
this.vectorNode.style.position="relative";
this.domNode.appendChild(this.vectorNode);
},drawPlotArea:function(){
var _f9f=this.properties.width-this.properties.padding.left-this.properties.padding.right;
var _fa0=this.properties.height-this.properties.padding.top-this.properties.padding.bottom;
if(this.plotArea){
this.plotArea.parentNode.removeChild(this.plotArea);
this.plotArea=null;
}
this.plotArea=document.createElement("div");
this.plotArea.style.position="absolute";
this.plotArea.style.backgroundColor="#fff";
this.plotArea.style.top=(this.properties.padding.top)-2+"px";
this.plotArea.style.left=(this.properties.padding.left-1)+"px";
this.plotArea.style.width=_f9f+"px";
this.plotArea.style.height=_fa0+"px";
this.plotArea.style.clip="rect(0 "+_f9f+" "+_fa0+" 0)";
this.vectorNode.appendChild(this.plotArea);
},drawDataGroup:function(){
var _fa1=this.properties.width-this.properties.padding.left-this.properties.padding.right;
var _fa2=this.properties.height-this.properties.padding.top-this.properties.padding.bottom;
if(this.dataGroup){
this.dataGroup.parentNode.removeChild(this.dataGroup);
this.dataGroup=null;
}
this.dataGroup=document.createElement("div");
this.dataGroup.style.position="absolute";
this.dataGroup.setAttribute("title","Data Group");
this.dataGroup.style.top="0px";
this.dataGroup.style.left="0px";
this.dataGroup.style.width=_fa1+"px";
this.dataGroup.style.height=_fa2+"px";
this.plotArea.appendChild(this.dataGroup);
},drawAxes:function(){
var _fa3=this.properties.width-this.properties.padding.left-this.properties.padding.right;
var _fa4=this.properties.height-this.properties.padding.top-this.properties.padding.bottom;
if(this.axisGroup){
this.axisGroup.parentNode.removeChild(this.axisGroup);
this.axisGroup=null;
}
this.axisGroup=document.createElement("div");
this.axisGroup.style.position="absolute";
this.axisGroup.setAttribute("title","Axis Group");
this.axisGroup.style.top="0px";
this.axisGroup.style.left="0px";
this.axisGroup.style.width=_fa3+"px";
this.axisGroup.style.height=_fa4+"px";
this.plotArea.appendChild(this.axisGroup);
var _fa5=1;
var line=document.createElement("v:line");
var y=dojo.widget.vml.Chart.Plotter.getY(this.properties.axes.x.plotAt,this);
line.setAttribute("from","0px,"+y+"px");
line.setAttribute("to",_fa3+"px,"+y+"px");
line.style.position="absolute";
line.style.top="0px";
line.style.left="0px";
line.style.antialias="false";
line.setAttribute("strokecolor","#666");
line.setAttribute("strokeweight",_fa5*2+"px");
this.axisGroup.appendChild(line);
var line=document.createElement("v:line");
var x=dojo.widget.vml.Chart.Plotter.getX(this.properties.axes.y.plotAt,this);
line.setAttribute("from",x+"px,0px");
line.setAttribute("to",x+"px,"+_fa4+"px");
line.style.position="absolute";
line.style.top="0px";
line.style.left="0px";
line.style.antialias="false";
line.setAttribute("strokecolor","#666");
line.setAttribute("strokeweight",_fa5*2+"px");
this.axisGroup.appendChild(line);
var size=10;
var t=document.createElement("div");
t.style.position="absolute";
t.style.top=(this.properties.height-this.properties.padding.bottom)+"px";
t.style.left=this.properties.padding.left+"px";
t.style.fontFamily="sans-serif";
t.style.fontSize=size+"px";
t.innerHTML=dojo.math.round(parseFloat(this.properties.axes.x.range.min),2);
this.vectorNode.appendChild(t);
t=document.createElement("div");
t.style.position="absolute";
t.style.top=(this.properties.height-this.properties.padding.bottom)+"px";
t.style.left=(this.properties.width-this.properties.padding.right-size)+"px";
t.style.fontFamily="sans-serif";
t.style.fontSize=size+"px";
t.innerHTML=dojo.math.round(parseFloat(this.properties.axes.x.range.max),2);
this.vectorNode.appendChild(t);
t=document.createElement("div");
t.style.position="absolute";
t.style.top=(size/2)+"px";
t.style.left="0px";
t.style.width=this.properties.padding.left+"px";
t.style.textAlign="right";
t.style.paddingRight="4px";
t.style.fontFamily="sans-serif";
t.style.fontSize=size+"px";
t.innerHTML=dojo.math.round(parseFloat(this.properties.axes.y.range.max),2);
this.vectorNode.appendChild(t);
t=document.createElement("div");
t.style.position="absolute";
t.style.top=(this.properties.height-this.properties.padding.bottom-size)+"px";
t.style.left="0px";
t.style.width=this.properties.padding.left+"px";
t.style.textAlign="right";
t.style.paddingRight="4px";
t.style.fontFamily="sans-serif";
t.style.fontSize=size+"px";
t.innerHTML=dojo.math.round(parseFloat(this.properties.axes.y.range.min),2);
this.vectorNode.appendChild(t);
},init:function(){
if(!this.properties.width||!this.properties.height){
var box=dojo.html.getContentBox(this.domNode);
if(!this.properties.width){
this.properties.width=(box.width<32)?this.properties.defaultWidth:box.width;
}
if(!this.properties.height){
this.properties.height=(box.height<32)?this.properties.defaultHeight:box.height;
}
}
this.drawVectorNode();
this.drawPlotArea();
this.drawDataGroup();
this.drawAxes();
this.assignColors();
this._isInitialized=true;
},destroy:function(){
while(this.domNode.childNodes.length>0){
this.domNode.removeChild(this.domNode.childNodes[0]);
}
this.vectorNode=this.plotArea=this.dataGroup=this.axisGroup=null;
},render:function(){
if(this.dataGroup){
while(this.dataGroup.childNodes.length>0){
this.dataGroup.removeChild(this.dataGroup.childNodes[0]);
}
}else{
this.init();
}
for(var i=0;i<this.series.length;i++){
dojo.widget.vml.Chart.Plotter.plot(this.series[i],this);
}
},postCreate:function(){
var _fad=this.domNode.getElementsByTagName("table")[0];
if(_fad){
var _fae=this.parseProperties(_fad);
var _faf=false;
var _fb0=false;
var _fb1=this.parseData(_fad);
if(!_faf){
this.properties.axes.x.range={min:_fb1.x.min,max:_fb1.x.max};
}
if(!_fb0){
this.properties.axes.y.range={min:_fb1.y.min,max:_fb1.y.max};
}
this.setAxesPlot(_fad);
this.domNode.removeChild(_fad);
}
if(this.series.length>0){
this.render();
}
}});
dojo.widget.vml.Chart.Plotter=new function(){
var self=this;
var _fb3={};
var _fb4=dojo.widget.Chart.PlotTypes;
this.getX=function(_fb5,_fb6){
var v=parseFloat(_fb5);
var min=_fb6.properties.axes.x.range.min;
var max=_fb6.properties.axes.x.range.max;
var ofst=0-min;
min+=ofst;
max+=ofst;
v+=ofst;
var xmin=0;
var xmax=_fb6.properties.width-_fb6.properties.padding.left-_fb6.properties.padding.right;
var x=(v*((xmax-xmin)/max))+xmin;
return x;
};
this.getY=function(_fbe,_fbf){
var v=parseFloat(_fbe);
var max=_fbf.properties.axes.y.range.max;
var min=_fbf.properties.axes.y.range.min;
var ofst=0;
if(min<0){
ofst+=Math.abs(min);
}
min+=ofst;
max+=ofst;
v+=ofst;
var ymin=_fbf.properties.height-_fbf.properties.padding.top-_fbf.properties.padding.bottom;
var ymax=0;
var y=(((ymin-ymax)/(max-min))*(max-v))+ymax;
return y;
};
this.addPlotter=function(name,func){
_fb3[name]=func;
};
this.plot=function(_fc9,_fca){
if(_fc9.values.length==0){
return;
}
if(_fc9.plotType&&_fb3[_fc9.plotType]){
return _fb3[_fc9.plotType](_fc9,_fca);
}else{
if(_fca.plotType&&_fb3[_fca.plotType]){
return _fb3[_fca.plotType](_fc9,_fca);
}
}
};
_fb3["bar"]=function(_fcb,_fcc){
var _fcd=1;
var _fce=0;
var ys=[];
var _fd0=self.getY(_fcc.properties.axes.x.plotAt,_fcc);
var yA=_fd0;
for(var i=0;i<_fcb.values.length;i++){
var x=self.getX(_fcb.values[i].x,_fcc);
var w;
if(i==_fcb.values.length-1){
w=_fce;
}else{
w=self.getX(_fcb.values[i+1].x,_fcc)-x-_fcd;
_fce=w;
}
x-=(w/2);
var y=self.getY(_fcb.values[i].value,_fcc);
var h=Math.abs(yA-y);
if(parseFloat(_fcb.values[i].value)<_fcc.properties.axes.x.plotAt){
y=yA;
}
var bar=document.createElement("v:rect");
bar.style.position="absolute";
bar.style.top=y+"px";
bar.style.left=x+"px";
bar.style.width=w+"px";
bar.style.height=h+"px";
bar.setAttribute("fillColor",_fcb.color);
bar.setAttribute("stroked","false");
bar.style.antialias="false";
bar.setAttribute("title",_fcb.label+" ("+i+"): "+_fcb.values[i].value);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.9");
bar.appendChild(fill);
_fcc.dataGroup.appendChild(bar);
}
};
_fb3["line"]=function(_fd9,_fda){
var _fdb=1.5;
var line=document.createElement("v:shape");
line.setAttribute("strokeweight","2px");
line.setAttribute("strokecolor",_fd9.color);
line.setAttribute("fillcolor","none");
line.setAttribute("filled","false");
line.setAttribute("title",_fd9.label);
line.setAttribute("coordsize",_fda.properties.width+","+_fda.properties.height);
line.style.position="absolute";
line.style.top="0px";
line.style.left="0px";
line.style.width=_fda.properties.width+"px";
line.style.height=_fda.properties.height+"px";
var _fdd=document.createElement("v:stroke");
_fdd.setAttribute("opacity","0.85");
line.appendChild(_fdd);
var path=[];
for(var i=0;i<_fd9.values.length;i++){
var x=Math.round(self.getX(_fd9.values[i].x,_fda));
var y=Math.round(self.getY(_fd9.values[i].value,_fda));
if(i==0){
path.push("m");
path.push(x+","+y);
}else{
var _fe2=Math.round(self.getX(_fd9.values[i-1].x,_fda));
var _fe3=Math.round(self.getY(_fd9.values[i-1].value,_fda));
var dx=x-_fe2;
var dy=y-_fe3;
path.push("c");
var cx=Math.round((x-(_fdb-1)*(dx/_fdb)));
path.push(cx+","+_fe3);
cx=Math.round((x-(dx/_fdb)));
path.push(cx+","+y);
path.push(x+","+y);
}
}
line.setAttribute("path",path.join(" ")+" e");
_fda.dataGroup.appendChild(line);
};
_fb3["area"]=function(_fe7,_fe8){
var _fe9=1.5;
var line=document.createElement("v:shape");
line.setAttribute("strokeweight","1px");
line.setAttribute("strokecolor",_fe7.color);
line.setAttribute("fillcolor",_fe7.color);
line.setAttribute("title",_fe7.label);
line.setAttribute("coordsize",_fe8.properties.width+","+_fe8.properties.height);
line.style.position="absolute";
line.style.top="0px";
line.style.left="0px";
line.style.width=_fe8.properties.width+"px";
line.style.height=_fe8.properties.height+"px";
var _feb=document.createElement("v:stroke");
_feb.setAttribute("opacity","0.8");
line.appendChild(_feb);
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.4");
line.appendChild(fill);
var path=[];
for(var i=0;i<_fe7.values.length;i++){
var x=Math.round(self.getX(_fe7.values[i].x,_fe8));
var y=Math.round(self.getY(_fe7.values[i].value,_fe8));
if(i==0){
path.push("m");
path.push(x+","+y);
}else{
var _ff1=Math.round(self.getX(_fe7.values[i-1].x,_fe8));
var _ff2=Math.round(self.getY(_fe7.values[i-1].value,_fe8));
var dx=x-_ff1;
var dy=y-_ff2;
path.push("c");
var cx=Math.round((x-(_fe9-1)*(dx/_fe9)));
path.push(cx+","+_ff2);
cx=Math.round((x-(dx/_fe9)));
path.push(cx+","+y);
path.push(x+","+y);
}
}
path.push("l");
path.push(x+","+self.getY(0,_fe8));
path.push("l");
path.push(self.getX(0,_fe8)+","+self.getY(0,_fe8));
line.setAttribute("path",path.join(" ")+" x e");
_fe8.dataGroup.appendChild(line);
};
_fb3["scatter"]=function(_ff6,_ff7){
var r=6;
for(var i=0;i<_ff6.values.length;i++){
var x=self.getX(_ff6.values[i].x,_ff7);
var y=self.getY(_ff6.values[i].value,_ff7);
var mod=r/2;
var _ffd=document.createElement("v:rect");
_ffd.setAttribute("fillcolor",_ff6.color);
_ffd.setAttribute("strokecolor",_ff6.color);
_ffd.setAttribute("title",_ff6.label+": "+_ff6.values[i].value);
_ffd.style.position="absolute";
_ffd.style.rotation="45";
_ffd.style.top=(y-mod)+"px";
_ffd.style.left=(x-mod)+"px";
_ffd.style.width=r+"px";
_ffd.style.height=r+"px";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.6");
_ffd.appendChild(fill);
_ff7.dataGroup.appendChild(_ffd);
}
};
_fb3["bubble"]=function(_fff,chart){
var minR=1;
var min=chart.properties.axes.x.range.min;
var max=chart.properties.axes.x.range.max;
var ofst=0-min;
min+=ofst;
max+=ofst;
var xmin=chart.properties.padding.left;
var xmax=chart.properties.width-chart.properties.padding.right;
var _1007=(max-min)/(xmax-xmin)*25;
for(var i=0;i<_fff.values.length;i++){
var size=_fff.values[i].size;
if(isNaN(parseFloat(size))){
size=minR;
}
var _100a=(parseFloat(size)*_1007)/2;
var _100b=_100a*2;
var cx=self.getX(_fff.values[i].x,chart);
var cy=self.getY(_fff.values[i].value,chart);
var top=cy-_100a;
var left=cx-_100a;
var point=document.createElement("v:oval");
point.setAttribute("fillcolor",_fff.color);
point.setAttribute("title",_fff.label+": "+_fff.values[i].value+" ("+size+")");
point.setAttribute("stroked","false");
point.style.position="absolute";
point.style.top=top+"px";
point.style.left=left+"px";
point.style.width=_100b+"px";
point.style.height=_100b+"px";
var fill=document.createElement("v:fill");
fill.setAttribute("opacity","0.8");
point.appendChild(fill);
chart.dataGroup.appendChild(point);
}
};
}();
dojo.provide("dojo.widget.ContentPane");
dojo.widget.defineWidget("dojo.widget.ContentPane",dojo.widget.HtmlWidget,function(){
this._styleNodes=[];
this._onLoadStack=[];
this._onUnloadStack=[];
this._callOnUnload=false;
this._ioBindObj;
this.scriptScope;
this.bindArgs={};
},{isContainer:true,adjustPaths:true,href:"",extractContent:true,parseContent:true,cacheContent:true,preload:false,refreshOnShow:false,handler:"",executeScripts:false,scriptSeparation:true,loadingMessage:"<img border='0' class='imgAjaxLoader' src='images/common/ajax-loader.gif'>",isLoaded:false,postCreate:function(args,frag,_1014){
if(this.handler!==""){
this.setHandler(this.handler);
}
if(this.isShowing()||this.preload){
this.loadContents();
}
},show:function(){
if(this.refreshOnShow){
this.refresh();
}else{
this.loadContents();
}
dojo.widget.ContentPane.superclass.show.call(this);
},refresh:function(){
this.isLoaded=false;
this.loadContents();
},loadContents:function(){
if(this.isLoaded){
return;
}
if(dojo.lang.isFunction(this.handler)){
this._runHandler();
}else{
if(this.href!=""){
this._downloadExternalContent(this.href,this.cacheContent&&!this.refreshOnShow);
}
}
},setUrl:function(url){
this.href=url;
this.isLoaded=false;
if(this.preload||this.isShowing()){
this.loadContents();
}
},abort:function(){
var bind=this._ioBindObj;
if(!bind||!bind.abort){
return;
}
bind.abort();
delete this._ioBindObj;
},_downloadExternalContent:function(url,_1018){
this.abort();
this._handleDefaults(this.loadingMessage,"onDownloadStart");
var self=this;
this._ioBindObj=dojo.io.bind(this._cacheSetting({url:url,mimetype:"text/html",handler:function(type,data,xhr){
delete self._ioBindObj;
if(type=="load"){
self.onDownloadEnd.call(self,url,data);
}else{
var e={responseText:xhr.responseText,status:xhr.status,statusText:xhr.statusText,responseHeaders:xhr.getAllResponseHeaders(),text:"Error loading '"+url+"' ("+xhr.status+" "+xhr.statusText+")"};
self._handleDefaults.call(self,e,"onDownloadError");
self.onLoad();
}
}},_1018));
},_cacheSetting:function(_101e,_101f){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_101e[x])){
_101e[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_101e.useCache)){
_101e.useCache=_101f;
}
if(dojo.lang.isUndefined(_101e.preventCache)){
_101e.preventCache=!_101f;
}
if(dojo.lang.isUndefined(_101e.mimetype)){
_101e.mimetype="text/html";
}
return _101e;
},onLoad:function(e){
this._runStack("_onLoadStack");
this.isLoaded=true;
},onUnLoad:function(e){
dojo.deprecated(this.widgetType+".onUnLoad, use .onUnload (lowercased load)",0.5);
},onUnload:function(e){
this._runStack("_onUnloadStack");
delete this.scriptScope;
if(this.onUnLoad!==dojo.widget.ContentPane.prototype.onUnLoad){
this.onUnLoad.apply(this,arguments);
}
},_runStack:function(_1024){
var st=this[_1024];
var err="";
var scope=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(scope);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_1024]=[];
if(err.length){
var name=(_1024=="_onLoadStack")?"addOnLoad":"addOnUnLoad";
this._handleDefaults(name+" failure\n "+err,"onExecError","debug");
}
},addOnLoad:function(obj,func){
this._pushOnStack(this._onLoadStack,obj,func);
},addOnUnload:function(obj,func){
this._pushOnStack(this._onUnloadStack,obj,func);
},addOnUnLoad:function(){
dojo.deprecated(this.widgetType+".addOnUnLoad, use addOnUnload instead. (lowercased Load)",0.5);
this.addOnUnload.apply(this,arguments);
},_pushOnStack:function(stack,obj,func){
if(typeof func=="undefined"){
stack.push(obj);
}else{
stack.push(function(){
obj[func]();
});
}
},destroy:function(){
this.onUnload();
dojo.widget.ContentPane.superclass.destroy.call(this);
},onExecError:function(e){
},onContentError:function(e){
},onDownloadError:function(e){
},onDownloadStart:function(e){
},onDownloadEnd:function(url,data){
data=this.splitAndFixPaths(data,url);
this.setContent(data);
},_handleDefaults:function(e,_1038,_1039){
if(!_1038){
_1038="onContentError";
}
if(dojo.lang.isString(e)){
e={text:e};
}
if(!e.text){
e.text=e.toString();
}
e.toString=function(){
return this.text;
};
if(typeof e.returnValue!="boolean"){
e.returnValue=true;
}
if(typeof e.preventDefault!="function"){
e.preventDefault=function(){
this.returnValue=false;
};
}
this[_1038](e);
if(e.returnValue){
switch(_1039){
case true:
case "alert":
alert(e.toString());
break;
case "debug":
dojo.debug(e.toString());
break;
default:
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=false;
if(arguments.callee._loopStop){
dojo.debug(e.toString());
}else{
arguments.callee._loopStop=true;
this._setContent(e.toString());
}
}
}
arguments.callee._loopStop=false;
},splitAndFixPaths:function(s,url){
var _103c=[],_103d=[],tmp=[];
var match=[],_1040=[],attr=[],_1042=[];
var str="",path="",fix="",_1046="",tag="",_1048="";
if(!url){
url="./";
}
if(s){
var regex=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(match=regex.exec(s)){
_103c.push(match[1]);
s=s.substring(0,match.index)+s.substr(match.index+match[0].length);
}
if(this.adjustPaths){
var _104a=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _104b=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _104c=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_104a.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_1046="";
while(attr=_104b.exec(tag)){
path="";
_1048=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_104c.exec(_1048)){
path=_1048;
}else{
path=(new dojo.uri.Uri(url,_1048).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_1048,url);
break;
default:
path=_1048;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_1046+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_1046+tag;
}
s=str+s;
}
regex=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(match=regex.exec(s)){
if(match[1]&&match[1].toLowerCase()=="style"){
_1042.push(dojo.html.fixPathsInCssText(match[2],url));
}else{
if(attr=match[3].match(/href=(['"]?)([^'">]*)\1/i)){
_1042.push({path:attr[2]});
}
}
s=s.substring(0,match.index)+s.substr(match.index+match[0].length);
}
var regex=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _104d=/src=(['"]?)([^"']*)\1/i;
var _104e=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _104f=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _1050=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(match=regex.exec(s)){
if(this.executeScripts&&match[1]){
if(attr=_104d.exec(match[1])){
if(_104e.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_103d.push({path:attr[2]});
}
}
}
if(match[2]){
var sc=match[2].replace(_104f,"");
if(!sc){
continue;
}
while(tmp=_1050.exec(sc)){
_1040.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_103d.push(sc);
}
}
s=s.substr(0,match.index)+s.substr(match.index+match[0].length);
}
if(this.extractContent){
match=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(match){
s=match[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var regex=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _1052=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=regex.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_1052.exec(tag[2])){
tag[2]=tag[2].substring(0,attr.index)+attr[1]+"dojo.widget.byId("+tmp+this.widgetId+tmp+").scriptScope"+attr[2];
}
str+=tag[2];
s=s.substr(tag.index+tag[0].length);
}
s=str+s;
}
}
return {"xml":s,"styles":_1042,"titles":_103c,"requires":_1040,"scripts":_103d,"url":url};
},_setContent:function(cont){
this.destroyChildren();
for(var i=0;i<this._styleNodes.length;i++){
if(this._styleNodes[i]&&this._styleNodes[i].parentNode){
this._styleNodes[i].parentNode.removeChild(this._styleNodes[i]);
}
}
this._styleNodes=[];
try{
var node=this.containerNode||this.domNode;
while(node.firstChild){
dojo.html.destroyNode(node.firstChild);
}
if(typeof cont!="string"){
node.appendChild(cont);
}else{
node.innerHTML=cont;
}
}
catch(e){
e.text="Couldn't load content:"+e.description;
this._handleDefaults(e,"onContentError");
}
},setContent:function(data){
this.abort();
if(this._callOnUnload){
this.onUnload();
}
this._callOnUnload=true;
if(!data||dojo.html.isNode(data)){
this._setContent(data);
this.onResized();
this.onLoad();
}else{
if(typeof data.xml!="string"){
this.href="";
data=this.splitAndFixPaths(data);
}
this._setContent(data.xml);
for(var i=0;i<data.styles.length;i++){
if(data.styles[i].path){
this._styleNodes.push(dojo.html.insertCssFile(data.styles[i].path,dojo.doc(),false,true));
}else{
this._styleNodes.push(dojo.html.insertCssText(data.styles[i]));
}
}
if(this.parseContent){
for(var i=0;i<data.requires.length;i++){
try{
eval(data.requires[i]);
}
catch(e){
e.text="ContentPane: error in package loading calls, "+(e.description||e);
this._handleDefaults(e,"onContentError","debug");
}
}
}
var _self=this;
function asyncParse(){
if(_self.executeScripts){
_self._executeScripts(data.scripts);
}
if(_self.parseContent){
var node=_self.containerNode||_self.domNode;
var _105a=new dojo.xml.Parse();
var frag=_105a.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_self);
}
_self.onResized();
_self.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_105c){
var fcn=dojo.lang.isFunction(_105c)?_105c:window[_105c];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_105c+"' not a function.","onExecError",true);
return;
}
this.handler=function(){
return fcn.apply(this,arguments);
};
},_runHandler:function(){
var ret=true;
if(dojo.lang.isFunction(this.handler)){
this.handler(this,this.domNode);
ret=false;
}
this.onLoad();
return ret;
},_executeScripts:function(_105f){
var self=this;
var tmp="",code="";
for(var i=0;i<_105f.length;i++){
if(_105f[i].path){
dojo.io.bind(this._cacheSetting({"url":_105f[i].path,"load":function(type,_1065){
dojo.lang.hitch(self,tmp=";"+_1065);
},"error":function(type,error){
error.text=type+" downloading remote script";
self._handleDefaults.call(self,error,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_105f[i];
}
}
try{
if(this.scriptSeparation){
delete this.scriptScope;
this.scriptScope=new (new Function("_container_",code+"; return this;"))(self);
}else{
var djg=dojo.global();
if(djg.execScript){
djg.execScript(code);
}else{
var djd=dojo.doc();
var sc=djd.createElement("script");
sc.appendChild(djd.createTextNode(code));
(this.containerNode||this.domNode).appendChild(sc);
}
}
}
catch(e){
e.text="Error running scripts from content:\n"+e.description;
this._handleDefaults(e,"onExecError","debug");
}
}});
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_106b){
var _106c={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,gb:0,sy:4};
_106b=dojo.hostenv.normalizeLocale(_106b);
var _106d=_106b.split("-")[1];
var dow=_106c[_106d];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_106f){
var _1070={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _1071={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
_106f=dojo.hostenv.normalizeLocale(_106f);
var _1072=_106f.split("-")[1];
var start=_1070[_1072];
var end=_1071[_1072];
if(typeof start=="undefined"){
start=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:start,end:end};
};
dojo.date.isWeekend=function(_1075,_1076){
var _1077=dojo.date.getWeekend(_1076);
var day=(_1075||new Date()).getDay();
if(_1077.end<_1077.start){
_1077.end+=7;
if(day<_1077.start){
day+=7;
}
}
return day>=_1077.start&&day<=_1077.end;
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_1079,_107a,_107b){
dojo.hostenv.preloadLocalizations();
_107b=dojo.hostenv.normalizeLocale(_107b);
var _107c=_107b.split("-");
var _107d=[_1079,"nls",_107a].join(".");
var _107e=dojo.hostenv.findModule(_107d,true);
var _107f;
for(var i=_107c.length;i>0;i--){
var loc=_107c.slice(0,i).join("_");
if(_107e[loc]){
_107f=_107e[loc];
break;
}
}
if(!_107f){
_107f=_107e.ROOT;
}
if(_107f){
var clazz=function(){
};
clazz.prototype=_107f;
return new clazz();
}
dojo.raise("Bundle not found: "+_107a+" in "+_1079+" , locale="+_107b);
};
dojo.i18n.isLTR=function(_1083){
var lang=dojo.hostenv.normalizeLocale(_1083).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_1086,_1087){
if(typeof _1087=="string"){
dojo.deprecated("dojo.date.format","To format dates with POSIX-style strings, please use dojo.date.strftime instead","0.5");
return dojo.date.strftime(_1086,_1087);
}
function formatPattern(_1088,_1089){
return _1089.replace(/([a-z])\1*/ig,function(match){
var s;
var c=match.charAt(0);
var l=match.length;
var pad;
var _108f=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_1088.getFullYear()<0?1:0];
break;
case "y":
s=_1088.getFullYear();
switch(l){
case 1:
break;
case 2:
s=String(s).substr(-2);
break;
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_1088.getMonth()+1)/3);
switch(l){
case 1:
case 2:
pad=true;
break;
case 3:
case 4:
dojo.unimplemented("Quarter format not implemented");
}
break;
case "M":
case "L":
var m=_1088.getMonth();
var width;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
width=_108f[l-3];
break;
}
if(width){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,width].join("-");
s=info[prop][m];
}
break;
case "w":
var _1095=0;
s=dojo.date.getWeekOfYear(_1088,_1095);
pad=true;
break;
case "d":
s=_1088.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_1088);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_1088.getDay();
var width;
switch(l){
case 1:
case 2:
if(c=="e"){
var first=dojo.date.getFirstDayOfWeek(_1087.locale);
d=(d-first+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
width=_108f[l-3];
break;
}
if(width){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,width].join("-");
s=info[prop][d];
}
break;
case "a":
var _1098=(_1088.getHours()<12)?"am":"pm";
s=info[_1098];
break;
case "h":
case "H":
case "K":
case "k":
var h=_1088.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
pad=true;
break;
case "m":
s=_1088.getMinutes();
pad=true;
break;
case "s":
s=_1088.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_1088.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_1088);
if(s){
break;
}
l=4;
case "Z":
var _109a=_1088.getTimezoneOffset();
var tz=[(_109a<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_109a)/60),2),dojo.string.pad(Math.abs(_109a)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
case "Y":
case "u":
case "W":
case "F":
case "g":
case "A":
dojo.debug(match+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_1089);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_1087=_1087||{};
var _109c=dojo.hostenv.normalizeLocale(_1087.locale);
var _109d=_1087.formatLength||"full";
var info=dojo.date._getGregorianBundle(_109c);
var str=[];
var sauce=dojo.lang.curry(this,formatPattern,_1086);
if(_1087.selector!="timeOnly"){
var _10a0=_1087.datePattern||info["dateFormat-"+_109d];
if(_10a0){
str.push(_processPattern(_10a0,sauce));
}
}
if(_1087.selector!="dateOnly"){
var _10a1=_1087.timePattern||info["timeFormat-"+_109d];
if(_10a1){
str.push(_processPattern(_10a1,sauce));
}
}
var _10a2=str.join(" ");
return _10a2;
};
dojo.date.parse=function(value,_10a4){
_10a4=_10a4||{};
var _10a5=dojo.hostenv.normalizeLocale(_10a4.locale);
var info=dojo.date._getGregorianBundle(_10a5);
var _10a7=_10a4.formatLength||"full";
if(!_10a4.selector){
_10a4.selector="dateOnly";
}
var _10a8=_10a4.datePattern||info["dateFormat-"+_10a7];
var _10a9=_10a4.timePattern||info["timeFormat-"+_10a7];
var _10aa;
if(_10a4.selector=="dateOnly"){
_10aa=_10a8;
}else{
if(_10a4.selector=="timeOnly"){
_10aa=_10a9;
}else{
if(_10a4.selector=="dateTime"){
_10aa=_10a8+" "+_10a9;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_10a4.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_10aa=_10a8;
}
}
}
var _10ac=[];
var _10ad=_processPattern(_10aa,dojo.lang.curry(this,_buildDateTimeRE,_10ac,info,_10a4));
var _10ae=new RegExp("^"+_10ad+"$");
var match=_10ae.exec(value);
if(!match){
return null;
}
var _10b0=["abbr","wide","narrow"];
var _10b1=new Date(1972,0);
var _10b2={};
for(var i=1;i<match.length;i++){
var grp=_10ac[i-1];
var l=grp.length;
var v=match[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_10b1.setFullYear(v);
_10b2.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _10b8=year.substring(0,2)*100;
var _10b9=Number(year.substring(2,4));
var _10ba=Math.min(_10b9+20,99);
var num=(v<_10ba)?_10b8+v:_10b8-100+v;
_10b1.setFullYear(num);
_10b2.year=num;
}else{
if(_10a4.strict){
return null;
}
_10b1.setFullYear(v);
_10b2.year=v;
}
}
break;
case "M":
if(l>2){
if(!_10a4.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _10bc=info["months-format-"+_10b0[l-3]].concat();
for(var j=0;j<_10bc.length;j++){
if(!_10a4.strict){
_10bc[j]=_10bc[j].toLowerCase();
}
if(v==_10bc[j]){
_10b1.setMonth(j);
_10b2.month=j;
break;
}
}
if(j==_10bc.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_10b1.setMonth(v-1);
_10b2.month=v-1;
}
break;
case "E":
case "e":
if(!_10a4.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_10b0[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_10a4.strict){
days[j]=days[j].toLowerCase();
}
if(v==days[j]){
break;
}
}
if(j==days.length){
dojo.debug("dojo.date.parse: Could not parse weekday name: '"+v+"'.");
return null;
}
break;
case "d":
_10b1.setDate(v);
_10b2.date=v;
break;
case "a":
var am=_10a4.am||info.am;
var pm=_10a4.pm||info.pm;
if(!_10a4.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_10a4.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var hours=_10b1.getHours();
if(v==pm&&hours<12){
_10b1.setHours(hours+12);
}else{
if(v==am&&hours==12){
_10b1.setHours(0);
}
}
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
dojo.debug("dojo.date.parse: Illegal hours value");
return null;
}
_10b1.setHours(v);
break;
case "m":
_10b1.setMinutes(v);
break;
case "s":
_10b1.setSeconds(v);
break;
case "S":
_10b1.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_10b2.year&&_10b1.getFullYear()!=_10b2.year){
dojo.debug("Parsed year: '"+_10b1.getFullYear()+"' did not match input year: '"+_10b2.year+"'.");
return null;
}
if(_10b2.month&&_10b1.getMonth()!=_10b2.month){
dojo.debug("Parsed month: '"+_10b1.getMonth()+"' did not match input month: '"+_10b2.month+"'.");
return null;
}
if(_10b2.date&&_10b1.getDate()!=_10b2.date){
dojo.debug("Parsed day of month: '"+_10b1.getDate()+"' did not match input day of month: '"+_10b2.date+"'.");
return null;
}
return _10b1;
};
function _processPattern(_10c2,_10c3,_10c4,_10c5){
var _10c6=function(x){
return x;
};
_10c3=_10c3||_10c6;
_10c4=_10c4||_10c6;
_10c5=_10c5||_10c6;
var _10c8=_10c2.match(/(''|[^'])+/g);
var _10c9=false;
for(var i=0;i<_10c8.length;i++){
if(!_10c8[i]){
_10c8[i]="";
}else{
_10c8[i]=(_10c9?_10c4:_10c3)(_10c8[i]);
_10c9=!_10c9;
}
}
return _10c5(_10c8.join(""));
}
function _buildDateTimeRE(_10cb,info,_10cd,_10ce){
return _10ce.replace(/([a-z])\1*/ig,function(match){
var s;
var c=match.charAt(0);
var l=match.length;
switch(c){
case "y":
s="\\d"+((l==2)?"{2,4}":"+");
break;
case "M":
s=(l>2)?"\\S+":"\\d{1,2}";
break;
case "d":
s="\\d{1,2}";
break;
case "E":
s="\\S+";
break;
case "h":
case "H":
case "K":
case "k":
s="\\d{1,2}";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{1,3}";
break;
case "a":
var am=_10cd.am||info.am||"AM";
var pm=_10cd.pm||info.pm||"PM";
if(_10cd.strict){
s=am+"|"+pm;
}else{
s=am;
s+=(am!=am.toLowerCase())?"|"+am.toLowerCase():"";
s+="|";
s+=(pm!=pm.toLowerCase())?pm+"|"+pm.toLowerCase():pm;
}
break;
default:
dojo.unimplemented("parse of date format, pattern="+_10ce);
}
if(_10cb){
_10cb.push(match);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_10d5,_10d6,_10d7){
var _10d8=null;
function _(s,n){
return dojo.string.pad(s,n||2,_10d8||"0");
}
var info=dojo.date._getGregorianBundle(_10d7);
function $(_10dc){
switch(_10dc){
case "a":
return dojo.date.getDayShortName(_10d5,_10d7);
case "A":
return dojo.date.getDayName(_10d5,_10d7);
case "b":
case "h":
return dojo.date.getMonthShortName(_10d5,_10d7);
case "B":
return dojo.date.getMonthName(_10d5,_10d7);
case "c":
return dojo.date.format(_10d5,{locale:_10d7});
case "C":
return _(Math.floor(_10d5.getFullYear()/100));
case "d":
return _(_10d5.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_10d8==null){
_10d8=" ";
}
return _(_10d5.getDate());
case "f":
if(_10d8==null){
_10d8=" ";
}
return _(_10d5.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_10d5.getHours());
case "I":
return _(_10d5.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_10d5),3);
case "k":
if(_10d8==null){
_10d8=" ";
}
return _(_10d5.getHours());
case "l":
if(_10d8==null){
_10d8=" ";
}
return _(_10d5.getHours()%12||12);
case "m":
return _(_10d5.getMonth()+1);
case "M":
return _(_10d5.getMinutes());
case "n":
return "\n";
case "p":
return info[_10d5.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_10d5.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_10d5.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_10d5));
case "V":
return _(dojo.date.getIsoWeekOfYear(_10d5));
case "W":
return _(dojo.date.getWeekOfYear(_10d5,1));
case "w":
return String(_10d5.getDay());
case "x":
return dojo.date.format(_10d5,{selector:"dateOnly",locale:_10d7});
case "X":
return dojo.date.format(_10d5,{selector:"timeOnly",locale:_10d7});
case "y":
return _(_10d5.getFullYear()%100);
case "Y":
return String(_10d5.getFullYear());
case "z":
var _10dd=_10d5.getTimezoneOffset();
return (_10dd>0?"-":"+")+_(Math.floor(Math.abs(_10dd)/60))+":"+_(Math.abs(_10dd)%60);
case "Z":
return dojo.date.getTimezoneName(_10d5);
case "%":
return "%";
}
}
var _10de="";
var i=0;
var index=0;
var _10e1=null;
while((index=_10d6.indexOf("%",i))!=-1){
_10de+=_10d6.substring(i,index++);
switch(_10d6.charAt(index++)){
case "_":
_10d8=" ";
break;
case "-":
_10d8="";
break;
case "0":
_10d8="0";
break;
case "^":
_10e1="upper";
break;
case "*":
_10e1="lower";
break;
case "#":
_10e1="swap";
break;
default:
_10d8=null;
index--;
break;
}
var _10e2=$(_10d6.charAt(index++));
switch(_10e1){
case "upper":
_10e2=_10e2.toUpperCase();
break;
case "lower":
_10e2=_10e2.toLowerCase();
break;
case "swap":
var _10e3=_10e2.toLowerCase();
var _10e4="";
var j=0;
var ch="";
while(j<_10e2.length){
ch=_10e2.charAt(j);
_10e4+=(ch==_10e3.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_10e2=_10e4;
break;
default:
break;
}
_10e1=null;
_10de+=_10e2;
i=index;
}
_10de+=_10d6.substring(i);
return _10de;
};
(function(){
var _10e7=[];
dojo.date.addCustomFormats=function(_10e8,_10e9){
_10e7.push({pkg:_10e8,name:_10e9});
};
dojo.date._getGregorianBundle=function(_10ea){
var _10eb={};
dojo.lang.forEach(_10e7,function(desc){
var _10ed=dojo.i18n.getLocalization(desc.pkg,desc.name,_10ea);
_10eb=dojo.lang.mixin(_10eb,_10ed);
},this);
return _10eb;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_10f1){
var label;
var _10f3=dojo.date._getGregorianBundle(_10f1);
var props=[item,use,type];
if(use=="standAlone"){
label=_10f3[props.join("-")];
}
props[1]="format";
return (label||_10f3[props.join("-")]).concat();
};
dojo.date.getDayName=function(_10f5,_10f6){
return dojo.date.getNames("days","wide","format",_10f6)[_10f5.getDay()];
};
dojo.date.getDayShortName=function(_10f7,_10f8){
return dojo.date.getNames("days","abbr","format",_10f8)[_10f7.getDay()];
};
dojo.date.getMonthName=function(_10f9,_10fa){
return dojo.date.getNames("months","wide","format",_10fa)[_10f9.getMonth()];
};
dojo.date.getMonthShortName=function(_10fb,_10fc){
return dojo.date.getNames("months","abbr","format",_10fc)[_10fb.getMonth()];
};
dojo.date.toRelativeString=function(_10fd){
var now=new Date();
var diff=(now-_10fd)/1000;
var end=" ago";
var _1101=false;
if(diff<0){
_1101=true;
end=" from now";
diff=-diff;
}
if(diff<60){
diff=Math.round(diff);
return diff+" second"+(diff==1?"":"s")+end;
}
if(diff<60*60){
diff=Math.round(diff/60);
return diff+" minute"+(diff==1?"":"s")+end;
}
if(diff<60*60*24){
diff=Math.round(diff/3600);
return diff+" hour"+(diff==1?"":"s")+end;
}
if(diff<60*60*24*7){
diff=Math.round(diff/(3600*24));
if(diff==1){
return _1101?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_10fd);
};
dojo.date.toSql=function(_1102,_1103){
return dojo.date.strftime(_1102,"%F"+!_1103?" %T":"");
};
dojo.date.fromSql=function(_1104){
var parts=_1104.split(/[\- :]/g);
while(parts.length<6){
parts.push(0);
}
return new Date(parts[0],(parseInt(parts[1],10)-1),parts[2],parts[3],parts[4],parts[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_1106,_1107){
var comps=(_1107.indexOf("T")==-1)?_1107.split(" "):_1107.split("T");
_1106=dojo.date.setIso8601Date(_1106,comps[0]);
if(comps.length==2){
_1106=dojo.date.setIso8601Time(_1106,comps[1]);
}
return _1106;
};
dojo.date.fromIso8601=function(_1109){
return dojo.date.setIso8601(new Date(0,0),_1109);
};
dojo.date.setIso8601Date=function(_110a,_110b){
var _110c="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_110b.match(new RegExp(_110c));
if(!d){
dojo.debug("invalid date string: "+_110b);
return null;
}
var year=d[1];
var month=d[4];
var date=d[6];
var _1111=d[8];
var week=d[10];
var _1113=d[12]?d[12]:1;
_110a.setFullYear(year);
if(_1111){
_110a.setMonth(0);
_110a.setDate(Number(_1111));
}else{
if(week){
_110a.setMonth(0);
_110a.setDate(1);
var gd=_110a.getDay();
var day=gd?gd:7;
var _1116=Number(_1113)+(7*Number(week));
if(day<=4){
_110a.setDate(_1116+1-day);
}else{
_110a.setDate(_1116+8-day);
}
}else{
if(month){
_110a.setDate(1);
_110a.setMonth(month-1);
}
if(date){
_110a.setDate(date);
}
}
}
return _110a;
};
dojo.date.fromIso8601Date=function(_1117){
return dojo.date.setIso8601Date(new Date(0,0),_1117);
};
dojo.date.setIso8601Time=function(_1118,_1119){
var _111a="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_1119.match(new RegExp(_111a));
var _111c=0;
if(d){
if(d[0]!="Z"){
_111c=(Number(d[3])*60)+Number(d[5]);
_111c*=((d[2]=="-")?1:-1);
}
_111c-=_1118.getTimezoneOffset();
_1119=_1119.substr(0,_1119.length-d[0].length);
}
var _111d="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_1119.match(new RegExp(_111d));
if(!d){
dojo.debug("invalid time string: "+_1119);
return null;
}
var hours=d[1];
var mins=Number((d[3])?d[3]:0);
var secs=(d[5])?d[5]:0;
var ms=d[7]?(Number("0."+d[7])*1000):0;
_1118.setHours(hours);
_1118.setMinutes(mins);
_1118.setSeconds(secs);
_1118.setMilliseconds(ms);
if(_111c!==0){
_1118.setTime(_1118.getTime()+_111c*60000);
}
return _1118;
};
dojo.date.fromIso8601Time=function(_1122){
return dojo.date.setIso8601Time(new Date(0,0),_1122);
};
dojo.date.toRfc3339=function(_1123,_1124){
if(!_1123){
_1123=new Date();
}
var _=dojo.string.pad;
var _1126=[];
if(_1124!="timeOnly"){
var date=[_(_1123.getFullYear(),4),_(_1123.getMonth()+1,2),_(_1123.getDate(),2)].join("-");
_1126.push(date);
}
if(_1124!="dateOnly"){
var time=[_(_1123.getHours(),2),_(_1123.getMinutes(),2),_(_1123.getSeconds(),2)].join(":");
var _1129=_1123.getTimezoneOffset();
time+=(_1129>0?"-":"+")+_(Math.floor(Math.abs(_1129)/60),2)+":"+_(Math.abs(_1129)%60,2);
_1126.push(time);
}
return _1126.join("T");
};
dojo.date.fromRfc3339=function(_112a){
if(_112a.indexOf("Tany")!=-1){
_112a=_112a.replace("Tany","");
}
var _112b=new Date();
return dojo.date.setIso8601(_112b,_112a);
};
dojo.provide("dojo.widget.DatePicker");
dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedDate"},templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\r\n\t<table cellspacing=\"0\" cellpadding=\"0\" class=\"calendarContainer\">\r\n\t\t<thead>\r\n\t\t\t<tr>\r\n\t\t\t\t<td class=\"monthWrapper\" valign=\"top\">\r\n\t\t\t\t\t<table class=\"monthContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class=\"monthCurve monthCurveTL\" valign=\"top\"></td>\r\n\t\t\t\t\t\t\t<td class=\"monthLabelContainer\" valign=\"top\">\r\n\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"increaseWeekNode\" \r\n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementWeek;\" \r\n\t\t\t\t\t\t\t\t\tclass=\"incrementControl increase\">\r\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/incrementMonth.png\" \r\n\t\t\t\t\t\t\t\t\talt=\"&darr;\" style=\"width:7px;height:5px;\" />\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<span \r\n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"increaseMonthNode\" \r\n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl increase\">\r\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/incrementMonth.png\" \r\n\t\t\t\t\t\t\t\t\t\talt=\"&darr;\"  dojoAttachPoint=\"incrementMonthImageNode\">\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<span \r\n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"decreaseWeekNode\" \r\n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementWeek;\" \r\n\t\t\t\t\t\t\t\t\tclass=\"incrementControl decrease\">\r\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/decrementMonth.png\" alt=\"&uarr;\" style=\"width:7px;height:5px;\" />\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<span \r\n\t\t\t\t\t\t\t\t\tdojoAttachPoint=\"decreaseMonthNode\" \r\n\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl decrease\">\r\n\t\t\t\t\t\t\t\t\t<img src=\"${dojoWidgetModuleUri}templates/images/decrementMonth.png\" \r\n\t\t\t\t\t\t\t\t\t\talt=\"&uarr;\" dojoAttachPoint=\"decrementMonthImageNode\">\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"monthLabelNode\" class=\"month\"></span>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"monthCurve monthCurveTR\" valign=\"top\"></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t</thead>\r\n\t\t<tbody>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"3\">\r\n\t\t\t\t\t<table class=\"calendarBodyContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\r\n\t\t\t\t\t\t<thead>\r\n\t\t\t\t\t\t\t<tr dojoAttachPoint=\"dayLabelsRow\">\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody dojoAttachPoint=\"calendarDatesContainerNode\" \r\n\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: _handleUiClick;\">\r\n\t\t\t\t\t\t\t<tr dojoAttachPoint=\"calendarWeekTemplate\">\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t\t<td></td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t</tbody>\r\n\t\t<tfoot>\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"3\" class=\"yearWrapper\">\r\n\t\t\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"yearContainer\">\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class=\"curveBL\" valign=\"top\"></td>\r\n\t\t\t\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t\t\t\t\t<h3 class=\"yearLabel\">\r\n\t\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\"\r\n\t\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementYear;\" class=\"previousYear\"></span>\r\n\t\t\t\t\t\t\t\t\t<span class=\"selectedYear\" dojoAttachPoint=\"currentYearLabelNode\"></span>\r\n\t\t\t\t\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" \r\n\t\t\t\t\t\t\t\t\t\tdojoAttachEvent=\"onClick: onIncrementYear;\" class=\"nextYear\"></span>\r\n\t\t\t\t\t\t\t\t</h3>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"curveBR\" valign=\"top\"></td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t</tfoot>\r\n\t</table>\r\n</div>\r\n",postMixInProperties:function(){
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);
if(!this.weekStartsOn){
this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang);
}
this.today=new Date();
this.today.setHours(0,0,0,0);
if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
this.value=new Date();
}else{
if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){
this.value=dojo.date.fromRfc3339(this.value);
this.value.setHours(0,0,0,0);
}
}
},fillInTemplate:function(args,frag){
dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments);
var _112e=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_112e);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value?this.value:this.today,false,true);
var _112f=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_112f.push(_112f.shift());
}
}
var _1131=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_1131.item(i).innerHTML=_112f[i];
}
if(this.value){
this.setValue(this.value);
}
},getValue:function(){
return dojo.date.toRfc3339(new Date(this.value),"dateOnly");
},getDate:function(){
return this.value;
},setValue:function(_1132){
this.setDate(_1132);
},setDate:function(_1133){
if(_1133==""){
this.value="";
this._preInitUI(this.curMonth,false,true);
}else{
if(typeof _1133=="string"){
this.value=dojo.date.fromRfc3339(_1133);
this.value.setHours(0,0,0,0);
}else{
this.value=new Date(_1133);
this.value.setHours(0,0,0,0);
}
}
if(this.selectedNode!=null){
dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate);
}
if(this.clickedNode!=null){
dojo.debug("adding selectedDate");
dojo.html.addClass(this.clickedNode,this.classNames.selectedDate);
this.selectedNode=this.clickedNode;
}else{
this._preInitUI(this.value,false,true);
}
this.clickedNode=null;
this.onValueChanged(this.value);
},_preInitUI:function(_1134,_1135,_1136){
if(typeof (this.startDate)=="string"){
this.startDate=dojo.date.fromRfc3339(this.startDate);
}
if(typeof (this.endDate)=="string"){
this.endDate=dojo.date.fromRfc3339(this.endDate);
}
this.startDate.setHours(0,0,0,0);
this.endDate.setHours(24,0,0,-1);
if(_1134<this.startDate||_1134>this.endDate){
_1134=new Date((_1134<this.startDate)?this.startDate:this.endDate);
}
this.firstDay=this._initFirstDay(_1134,_1135);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _1137=new Date(this.firstDay);
var _1138=_1137.getMonth();
this.curMonth=new Date(_1137);
this.curMonth.setDate(_1137.getDate()+6);
this.curMonth.setDate(1);
if(this.displayWeeks==""||this.adjustWeeks){
this.adjustWeeks=true;
this.displayWeeks=Math.ceil((dojo.date.getDaysInMonth(this.curMonth)+this._getAdjustedDay(this.curMonth))/7);
}
var days=this.displayWeeks*7;
if(dojo.date.diff(this.startDate,this.endDate,dojo.date.dateParts.DAY)<days){
this.staticDisplay=true;
if(dojo.date.diff(_1137,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_1137=new Date(this.firstDay);
}
this.curMonth=new Date(_1137);
this.curMonth.setDate(_1137.getDate()+6);
this.curMonth.setDate(1);
var _113a=(_1137.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_1136){
this._initUI(days);
}
},_initUI:function(days){
dojo.dom.removeChildren(this.calendarDatesContainerNode);
for(var i=0;i<this.displayWeeks;i++){
this.calendarDatesContainerNode.appendChild(this.weekTemplate.cloneNode(true));
}
var _113d=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _113e=this.calendarDatesContainerNode.getElementsByTagName("td");
var _113f=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _1140;
for(i=0;i<days;i++){
_1140=_113e.item(i);
_1140.innerHTML=_113d.getDate();
_1140.setAttribute("djDateValue",_113d.valueOf());
var _1141=(_113d.getMonth()!=this.curMonth.getMonth()&&Number(_113d)<Number(this.curMonth))?"previous":(_113d.getMonth()==this.curMonth.getMonth())?"current":"next";
var _1142=_1141;
if(this._isDisabledDate(_113d)){
var _1143={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_1142=_1143[_1141];
}
dojo.html.setClass(_1140,this._getDateClassName(_113d,_1142));
if(dojo.html.hasClass(_1140,this.classNames.selectedDate)){
this.selectedNode=_1140;
}
_113d=dojo.date.add(_113d,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_113d,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _1146,_1147,_1148,_1149,_114a,_114b;
_1146=_1147=_1148=_1149=_114a=_114b=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_1146&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_1146=_1148=_114a=false;
}
if(_1147&&d2>this.endDate){
_1147=_1149=_114b=false;
}
if(_1148&&add(d,DAY,-1)<this.startDate){
_1148=_114a=false;
}
if(_1149&&add(d2,DAY,1)>this.endDate){
_1149=_114b=false;
}
if(_114a&&add(d2,YEAR,-1)<this.startDate){
_114a=false;
}
if(_114b&&add(d,YEAR,1)>this.endDate){
_114b=false;
}
}
function enableControl(node,_114e){
dojo.html.setVisibility(node,_114e?"":"hidden");
}
enableControl(this.decreaseWeekNode,_1146);
enableControl(this.increaseWeekNode,_1147);
enableControl(this.decreaseMonthNode,_1148);
enableControl(this.increaseMonthNode,_1149);
enableControl(this.previousYearLabelNode,_114a);
enableControl(this.nextYearLabelNode,_114b);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _1151=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_1151<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
}
break;
case this.decreaseWeekNode.getElementsByTagName("img").item(0):
case this.decreaseWeekNode:
if(d>=this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.WEEK,-1);
}
break;
}
this._preInitUI(d,true,true);
},_incrementMonth:function(evt){
var d=new Date(this.curMonth);
var _1154=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_1154=dojo.date.add(_1154,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_1154<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _1155=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_1154>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _1156=true;
}
break;
}
if(_1156){
d=new Date(this.startDate);
}else{
if(_1155){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _1159=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_1159=dojo.date.add(_1159,dojo.date.dateParts.YEAR,1);
if(_1159<this.endDate){
year++;
}else{
var _115a=true;
}
break;
case this.previousYearLabelNode:
_1159=dojo.date.add(_1159,dojo.date.dateParts.YEAR,-1);
if(_1159>this.startDate){
year--;
}else{
var _115b=true;
}
break;
}
var d;
if(_115b){
d=new Date(this.startDate);
}else{
if(_115a){
d=new Date(this.endDate);
}else{
d=new Date(year,this.curMonth.getMonth(),1);
}
}
this._preInitUI(d,false,true);
},onIncrementWeek:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementWeek(evt);
}
},onIncrementMonth:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementMonth(evt);
}
},onIncrementYear:function(evt){
evt.stopPropagation();
if(!this.staticDisplay){
this._incrementYear(evt);
}
},_setMonthLabel:function(_1160){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_1160];
},_setYearLabels:function(year){
var y=year-1;
var that=this;
function f(n){
that[n+"YearLabelNode"].innerHTML=dojo.date.format(new Date(y++,0),{formatLength:"yearOnly",locale:that.lang});
}
f("previous");
f("current");
f("next");
},_getDateClassName:function(date,_1166){
var _1167=this.classNames[_1166];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_1167=this.classNames.selectedDate+" "+_1167;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_1167=_1167+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _1167;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _116a=evt.target;
if(_116a.nodeType!=dojo.dom.ELEMENT_NODE){
_116a=_116a.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
if(dojo.html.hasClass(_116a,this.classNames["disabledPrevious"])||dojo.html.hasClass(_116a,this.classNames["disabledCurrent"])||dojo.html.hasClass(_116a,this.classNames["disabledNext"])){
return;
}
this.clickedNode=_116a;
this.setDate(new Date(Number(dojo.html.getAttribute(_116a,"djDateValue"))));
},onValueChanged:function(date){
},_isDisabledDate:function(_116c){
if(_116c<this.startDate||_116c>this.endDate){
return true;
}
return this.isDisabledDate(_116c,this.lang);
},isDisabledDate:function(_116d,_116e){
return false;
},_initFirstDay:function(_116f,adj){
var d=new Date(_116f);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_1172){
var days=[0,1,2,3,4,5,6];
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
days.unshift(days.pop());
}
}
return days[_1172.getDay()];
},destroy:function(){
dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);
dojo.html.destroyNode(this.weekTemplate);
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){
return false;
},applyPopupBasicStyle:function(){
with(this.domNode.style){
display="none";
position="absolute";
}
},aboutToShow:function(){
},open:function(x,y,_1178,_1179,_117a,_117b){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _117c=false,node,_117e;
if(typeof x=="object"){
node=x;
_117e=_1179;
_1179=_1178;
_1178=y;
_117c=true;
}
this.parent=_1178;
dojo.body().appendChild(this.domNode);
_1179=_1179||_1178["domNode"]||[];
var _117f=null;
this.isTopLevel=true;
while(_1178){
if(_1178!==this&&(_1178.setOpenedSubpopup!=undefined&&_1178.applyPopupBasicStyle!=undefined)){
_117f=_1178;
this.isTopLevel=false;
_117f.setOpenedSubpopup(this);
break;
}
_1178=_1178.parent;
}
this.parentPopup=_117f;
this.popupIndex=_117f?_117f.popupIndex+1:1;
if(this.isTopLevel){
var _1180=dojo.html.isNode(_1179)?_1179:null;
dojo.widget.PopupManager.opened(this,_1180);
}
if(this.isTopLevel&&!dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
this._bookmark=dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.getBookmark);
}else{
this._bookmark=null;
}
if(_1179 instanceof Array){
_1179={left:_1179[0],top:_1179[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_117c){
this.move(node,_117b,_117e);
}else{
this.move(x,y,_117b,_117a);
}
this.domNode.style.display="none";
this.explodeSrc=_1179;
this.show();
this.isShowingNow=true;
},move:function(x,y,_1183,_1184){
var _1185=(typeof x=="object");
if(_1185){
var _1186=_1183;
var node=x;
_1183=y;
if(!_1186){
_1186={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_1183,this.aroundBox,_1186);
}else{
if(!_1184){
_1184="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_1183,true,_1184);
}
},close:function(force){
if(force){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(force);
this.hide();
if(this.bgIframe){
this.bgIframe.hide();
this.bgIframe.size({left:0,top:0,width:0,height:0});
}
if(this.isTopLevel){
dojo.widget.PopupManager.closed(this);
}
this.isShowingNow=false;
if(this.parent){
setTimeout(dojo.lang.hitch(this,function(){
try{
if(this.parent["focus"]){
this.parent.focus();
}else{
this.parent.domNode.focus();
}
}
catch(e){
dojo.debug("No idea how to focus to parent",e);
}
}),10);
}
if(this._bookmark&&dojo.withGlobal(this.openedForWindow||dojo.global(),dojo.html.selection.isCollapsed)){
if(this.openedForWindow){
this.openedForWindow.focus();
}
try{
dojo.withGlobal(this.openedForWindow||dojo.global(),"moveToBookmark",dojo.html.selection,[this._bookmark]);
}
catch(e){
}
}
this._bookmark=null;
},closeAll:function(force){
if(this.parentPopup){
this.parentPopup.closeAll(force);
}else{
this.close(force);
}
},setOpenedSubpopup:function(popup){
this.currentSubpopup=popup;
},closeSubpopup:function(force){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(force);
this.currentSubpopup=null;
},onShow:function(){
dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments);
this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height};
if(dojo.render.html.ie){
if(!this.bgIframe){
this.bgIframe=new dojo.html.BackgroundIframe();
this.bgIframe.setZIndex(this.domNode);
}
this.bgIframe.size(this.domNode);
this.bgIframe.show();
}
this.processQueue();
},processQueue:function(){
if(!this.queueOnAnimationFinish.length){
return;
}
var func=this.queueOnAnimationFinish.shift();
var args=this.queueOnAnimationFinish.shift();
func.apply(this,args);
},onHide:function(){
dojo.widget.HtmlWidget.prototype.onHide.call(this);
if(this.openedSize){
with(this.domNode.style){
width=this.openedSize.w;
height=this.openedSize.h;
}
}
this.processQueue();
}});
dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{isContainer:true,fillInTemplate:function(){
this.applyPopupBasicStyle();
dojo.widget.PopupContainer.superclass.fillInTemplate.apply(this,arguments);
}});
dojo.widget.PopupManager=new function(){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
this.focusNode=null;
this.registeredWindows=[];
this.registerWin=function(win){
if(!win.__PopupManagerRegistered){
dojo.event.connect(win.document,"onmousedown",this,"onClick");
dojo.event.connect(win,"onscroll",this,"onClick");
dojo.event.connect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=true;
this.registeredWindows.push(win);
}
};
this.registerAllWindows=function(_118f){
if(!_118f){
_118f=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_118f);
for(var i=0;i<_118f.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_118f.frames[i].document);
if(win){
this.registerAllWindows(win);
}
}
catch(e){
}
}
};
this.unRegisterWin=function(win){
if(win.__PopupManagerRegistered){
dojo.event.disconnect(win.document,"onmousedown",this,"onClick");
dojo.event.disconnect(win,"onscroll",this,"onClick");
dojo.event.disconnect(win.document,"onkey",this,"onKey");
win.__PopupManagerRegistered=false;
}
};
this.unRegisterAllWindows=function(){
for(var i=0;i<this.registeredWindows.length;++i){
this.unRegisterWin(this.registeredWindows[i]);
}
this.registeredWindows=[];
};
dojo.addOnLoad(this,"registerAllWindows");
dojo.addOnUnload(this,"unRegisterAllWindows");
this.closed=function(menu){
if(this.currentMenu==menu){
this.currentMenu=null;
this.currentButton=null;
this.currentFocusMenu=null;
}
};
this.opened=function(menu,_1196){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_1196;
};
this.setFocusedMenu=function(menu){
this.currentFocusMenu=menu;
};
this.onKey=function(e){
if(!e.key){
return;
}
if(!this.currentMenu||!this.currentMenu.isShowingNow){
return;
}
var m=this.currentFocusMenu;
while(m){
if(m.processKey(e)){
e.preventDefault();
e.stopPropagation();
break;
}
m=m.parentPopup||m.parentMenu;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _119b=dojo.html.getScroll().offset;
var m=this.currentMenu;
while(m){
if(dojo.html.overElement(m.domNode,e)||dojo.html.isDescendantOf(e.target,m.domNode)){
return;
}
m=m.currentSubpopup;
}
if(this.currentButton&&dojo.html.overElement(this.currentButton,e)){
return;
}
this.currentMenu.closeAll(true);
};
};
dojo.provide("dojo.widget.DropdownContainer");
dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.moduleUri("dojo.widget","templates/images/combo_box_arrow.png"),copyClasses:false,iconAlt:"",containerToggle:"plain",containerToggleDuration:150,templateString:"<span style=\"white-space:nowrap\"><input type=\"hidden\" name=\"\" value=\"\" dojoAttachPoint=\"valueNode\" /><input name=\"\" type=\"text\" value=\"\" style=\"vertical-align:middle;\" dojoAttachPoint=\"inputNode\" autocomplete=\"off\" /> <img src=\"${this.iconURL}\" alt=\"${this.iconAlt}\" dojoAttachEvent=\"onclick:onIconClick\" dojoAttachPoint=\"buttonNode\" style=\"vertical-align:middle; cursor:pointer; cursor:hand\" /></span>",templateCssPath:"",isContainer:true,attachTemplateNodes:function(){
dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments);
this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});
this.containerNode=this.popup.domNode;
},fillInTemplate:function(args,frag){
this.domNode.appendChild(this.popup.domNode);
if(this.id){
this.domNode.id=this.id;
}
if(this.inputId){
this.inputNode.id=this.inputId;
}
if(this.inputName){
this.inputNode.name=this.inputName;
}
this.inputNode.style.width=this.inputWidth;
this.inputNode.disabled=this.disabled;
if(this.copyClasses){
this.inputNode.style="";
this.inputNode.className=this.getFragNodeRef(frag).className;
}
dojo.event.connect(this.inputNode,"onchange",this,"onInputChange");
},onIconClick:function(evt){
if(this.disabled){
return;
}
if(!this.popup.isShowingNow){
this.popup.open(this.inputNode,this,this.buttonNode);
}else{
this.popup.close();
}
},hideContainer:function(){
if(this.popup.isShowingNow){
this.popup.close();
}
},onInputChange:function(){
},enable:function(){
this.inputNode.disabled=false;
dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments);
},disable:function(){
this.inputNode.disabled=true;
dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments);
}});
dojo.provide("dojo.widget.DropdownDatePicker");
dojo.widget.defineWidget("dojo.widget.DropdownDatePicker",dojo.widget.DropdownContainer,{iconURL:dojo.uri.moduleUri("dojo.widget","templates/images/dateIcon.gif"),formatLength:"short",displayFormat:"",saveFormat:"",value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,postMixInProperties:function(_11a0,frag){
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
var _11a2=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
this.iconAlt=_11a2.selectDate;
if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){
this.value=new Date();
}
if(this.value&&isNaN(this.value)){
var orig=this.value;
this.value=dojo.date.fromRfc3339(this.value);
if(!this.value){
this.value=new Date(orig);
dojo.deprecated("dojo.widget.DropdownDatePicker","date attributes must be passed in Rfc3339 format","0.5");
}
}
if(this.value&&!isNaN(this.value)){
this.value=new Date(this.value);
}
},fillInTemplate:function(args,frag){
dojo.widget.DropdownDatePicker.superclass.fillInTemplate.call(this,args,frag);
var _11a6={widgetContainerId:this.widgetId,lang:this.lang,value:this.value,startDate:this.startDate,endDate:this.endDate,displayWeeks:this.displayWeeks,weekStartsOn:this.weekStartsOn,adjustWeeks:this.adjustWeeks,staticDisplay:this.staticDisplay};
this.datePicker=dojo.widget.createWidget("DatePicker",_11a6,this.containerNode,"child");
dojo.event.connect(this.datePicker,"onValueChanged",this,"_updateText");
dojo.event.connect(this.inputNode,"onChange",this,"_updateText");
if(this.value){
this._updateText();
}
this.containerNode.explodeClassName="calendarBodyContainer";
this.valueNode.name=this.name;
},getValue:function(){
return this.valueNode.value;
},getDate:function(){
return this.datePicker.value;
},setValue:function(_11a7){
this.setDate(_11a7);
},setDate:function(_11a8){
this.datePicker.setDate(_11a8);
this._syncValueNode();
},_updateText:function(){
this.inputNode.value=this.datePicker.value?dojo.date.format(this.datePicker.value,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang}):"";
if(this.value<this.datePicker.startDate||this.value>this.datePicker.endDate){
this.inputNode.value="";
}
this._syncValueNode();
this.onValueChanged(this.getDate());
this.hideContainer();
},onValueChanged:function(_11a9){
},onInputChange:function(){
var input=dojo.string.trim(this.inputNode.value);
if(input){
var _11ab=dojo.date.parse(input,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
if(!this.datePicker._isDisabledDate(_11ab)){
this.setDate(_11ab);
}
}else{
if(input==""){
this.datePicker.setDate("");
}
this.valueNode.value=input;
}
if(input){
this._updateText();
}
},_syncValueNode:function(){
var date=this.datePicker.value;
var value="";
switch(this.saveFormat.toLowerCase()){
case "rfc":
case "iso":
case "":
value=dojo.date.toRfc3339(date,"dateOnly");
break;
case "posix":
case "unix":
value=Number(date);
break;
default:
if(date){
value=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
}
}
this.valueNode.value=value;
},destroy:function(_11ae){
this.datePicker.destroy(_11ae);
dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments);
}});
dojo.provide("dojo.widget.Dialog");
dojo.declare("dojo.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,trapTabs:function(e){
if(e.target==this.tabStartOuter){
if(this._fromTrap){
this.tabStart.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabStart){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabEnd.focus();
}
}else{
if(e.target==this.tabEndOuter){
if(this._fromTrap){
this.tabEnd.focus();
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}else{
if(e.target==this.tabEnd){
if(this._fromTrap){
this._fromTrap=false;
}else{
this._fromTrap=true;
this.tabStart.focus();
}
}
}
}
}
},clearTrap:function(e){
var _this=this;
setTimeout(function(){
_this._fromTrap=false;
},100);
},postCreate:function(){
with(this.domNode.style){
position="absolute";
zIndex=999;
display="none";
overflow="visible";
}
var b=dojo.body();
b.appendChild(this.domNode);
this.bg=document.createElement("div");
this.bg.className="dialogUnderlay";
with(this.bg.style){
position="absolute";
left=top="0px";
zIndex=998;
display="none";
}
b.appendChild(this.bg);
this.setBackgroundColor(this.bgColor);
this.bgIframe=new dojo.html.BackgroundIframe();
if(this.bgIframe.iframe){
with(this.bgIframe.iframe.style){
position="absolute";
left=top="0px";
zIndex=90;
display="none";
}
}
if(this.closeOnBackgroundClick){
dojo.event.kwConnect({srcObj:this.bg,srcFunc:"onclick",adviceObj:this,adviceFunc:"onBackgroundClick",once:true});
}
},uninitialize:function(){
this.bgIframe.remove();
dojo.html.removeNode(this.bg,true);
},setBackgroundColor:function(color){
if(arguments.length>=3){
color=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
color=new dojo.gfx.color.Color(color);
}
this.bg.style.backgroundColor=color.toString();
return this.bgColor=color;
},setBackgroundOpacity:function(op){
if(arguments.length==0){
op=this.bgOpacity;
}
dojo.html.setOpacity(this.bg,op);
try{
this.bgOpacity=dojo.html.getOpacity(this.bg);
}
catch(e){
this.bgOpacity=op;
}
return this.bgOpacity;
},_sizeBackground:function(){
if(this.bgOpacity>0){
var _11b5=dojo.html.getViewport();
var h=_11b5.height;
var w=_11b5.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _11b8=dojo.html.getScroll().offset;
this.bg.style.top=_11b8.y+"px";
this.bg.style.left=_11b8.x+"px";
var _11b5=dojo.html.getViewport();
if(_11b5.width!=w){
this.bg.style.width=_11b5.width+"px";
}
if(_11b5.height!=h){
this.bg.style.height=_11b5.height+"px";
}
}
this.bgIframe.size(this.bg);
},_showBackground:function(){
if(this.bgOpacity>0){
this.bg.style.display="block";
}
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},placeModalDialog:function(){
var _11b9=dojo.html.getScroll().offset;
var _11ba=dojo.html.getViewport();
var mb;
if(this.isShowing()){
mb=dojo.html.getMarginBox(this.domNode);
}else{
dojo.html.setVisibility(this.domNode,false);
dojo.html.show(this.domNode);
mb=dojo.html.getMarginBox(this.domNode);
dojo.html.hide(this.domNode);
dojo.html.setVisibility(this.domNode,true);
}
var x=_11b9.x+(_11ba.width-mb.width)/2;
var y=_11b9.y+(_11ba.height-mb.height)/2;
with(this.domNode.style){
left=x+"px";
top=y+"px";
}
},_onKey:function(evt){
if(evt.key){
var node=evt.target;
while(node!=null){
if(node==this.domNode){
return;
}
node=node.parentNode;
}
if(evt.key!=evt.KEY_TAB){
dojo.event.browser.stopEvent(evt);
}else{
if(!dojo.render.html.opera){
try{
this.tabStart.focus();
}
catch(e){
}
}
}
}
},showModalDialog:function(){
if(this.followScroll&&!this._scrollConnected){
this._scrollConnected=true;
dojo.event.connect(window,"onscroll",this,"_onScroll");
}
dojo.event.connect(document.documentElement,"onkey",this,"_onKey");
this.placeModalDialog();
this.setBackgroundOpacity();
this._sizeBackground();
this._showBackground();
this._fromTrap=true;
setTimeout(dojo.lang.hitch(this,function(){
try{
this.tabStart.focus();
}
catch(e){
}
}),50);
},hideModalDialog:function(){
if(this.focusElement){
dojo.byId(this.focusElement).focus();
dojo.byId(this.focusElement).blur();
}
this.bg.style.display="none";
this.bg.style.width=this.bg.style.height="1px";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
dojo.event.disconnect(document.documentElement,"onkey",this,"_onKey");
if(this._scrollConnected){
this._scrollConnected=false;
dojo.event.disconnect(window,"onscroll",this,"_onScroll");
}
},_onScroll:function(){
var _11c0=dojo.html.getScroll().offset;
this.bg.style.top=_11c0.y+"px";
this.bg.style.left=_11c0.x+"px";
this.placeModalDialog();
},checkSize:function(){
if(this.isShowing()){
this._sizeBackground();
this.placeModalDialog();
this.onResized();
}
},onBackgroundClick:function(){
if(this.lifetime-this.timeRemaining>=this.blockDuration){
return;
}
this.hide();
}});
dojo.widget.defineWidget("dojo.widget.Dialog",[dojo.widget.ContentPane,dojo.widget.ModalDialogBase],{templateString:"<div id=\"${this.widgetId}\" class=\"dojoDialog\" dojoattachpoint=\"wrapper\">\r\n\t<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"\ttabindex=\"0\"></span>\r\n\t<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\r\n\t<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\r\n\t<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\r\n\t<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\r\n</div>\r\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){
dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments);
if(this.closeNode){
this.setCloseControl(this.closeNode);
}
},postCreate:function(){
dojo.widget.Dialog.superclass.postCreate.apply(this,arguments);
dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);
},show:function(){
if(this.lifetime){
this.timeRemaining=this.lifetime;
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
if(this.blockDuration&&this.closeNode){
if(this.lifetime>this.blockDuration){
this.closeNode.style.visibility="hidden";
}else{
this.closeNode.style.display="none";
}
}
if(this.timer){
clearInterval(this.timer);
}
this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100);
}
this.showModalDialog();
dojo.widget.Dialog.superclass.show.call(this);
},onLoad:function(){
this.placeModalDialog();
dojo.widget.Dialog.superclass.onLoad.call(this);
},fillInTemplate:function(){
},hide:function(){
this.hideModalDialog();
dojo.widget.Dialog.superclass.hide.call(this);
if(this.timer){
clearInterval(this.timer);
}
},setTimerNode:function(node){
this.timerNode=node;
},setCloseControl:function(node){
this.closeNode=dojo.byId(node);
dojo.event.connect(this.closeNode,"onclick",this,"hide");
},setShowControl:function(node){
node=dojo.byId(node);
dojo.event.connect(node,"onclick",this,"show");
},_onTick:function(){
if(this.timer){
this.timeRemaining-=100;
if(this.lifetime-this.timeRemaining>=this.blockDuration){
if(this.closeNode){
this.closeNode.style.visibility="visible";
}
}
if(!this.timeRemaining){
clearInterval(this.timer);
this.hide();
}else{
if(this.timerNode){
this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);
}
}
}
}});
dojo.provide("dojo.Deferred");
dojo.Deferred=function(_11c4){
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_11c4;
this.silentlyCancelled=false;
};
dojo.lang.extend(dojo.Deferred,{getFunctionFromArgs:function(){
var a=arguments;
if((a[0])&&(!a[1])){
if(dojo.lang.isFunction(a[0])){
return a[0];
}else{
if(dojo.lang.isString(a[0])){
return dj_global[a[0]];
}
}
}else{
if((a[0])&&(a[1])){
return dojo.lang.hitch(a[0],a[1]);
}
}
return null;
},makeCalled:function(){
var _11c6=new dojo.Deferred();
_11c6.callback();
return _11c6;
},repr:function(){
var state;
if(this.fired==-1){
state="unfired";
}else{
if(this.fired==0){
state="success";
}else{
state="error";
}
}
return "Deferred("+this.id+", "+state+")";
},toString:dojo.lang.forward("repr"),_nextId:(function(){
var n=1;
return function(){
return n++;
};
})(),cancel:function(){
if(this.fired==-1){
if(this.canceller){
this.canceller(this);
}else{
this.silentlyCancelled=true;
}
if(this.fired==-1){
this.errback(new Error(this.repr()));
}
}else{
if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){
this.results[0].cancel();
}
}
},_pause:function(){
this.paused++;
},_unpause:function(){
this.paused--;
if((this.paused==0)&&(this.fired>=0)){
this._fire();
}
},_continue:function(res){
this._resback(res);
this._unpause();
},_resback:function(res){
this.fired=((res instanceof Error)?1:0);
this.results[this.fired]=res;
this._fire();
},_check:function(){
if(this.fired!=-1){
if(!this.silentlyCancelled){
dojo.raise("already called!");
}
this.silentlyCancelled=false;
return;
}
},callback:function(res){
this._check();
this._resback(res);
},errback:function(res){
this._check();
if(!(res instanceof Error)){
res=new Error(res);
}
this._resback(res);
},addBoth:function(cb,cbfn){
var _11cf=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_11cf=dojo.lang.curryArguments(null,_11cf,arguments,2);
}
return this.addCallbacks(_11cf,_11cf);
},addCallback:function(cb,cbfn){
var _11d2=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_11d2=dojo.lang.curryArguments(null,_11d2,arguments,2);
}
return this.addCallbacks(_11d2,null);
},addErrback:function(cb,cbfn){
var _11d5=this.getFunctionFromArgs(cb,cbfn);
if(arguments.length>2){
_11d5=dojo.lang.curryArguments(null,_11d5,arguments,2);
}
return this.addCallbacks(null,_11d5);
return this.addCallbacks(null,cbfn);
},addCallbacks:function(cb,eb){
this.chain.push([cb,eb]);
if(this.fired>=0){
this._fire();
}
return this;
},_fire:function(){
var chain=this.chain;
var fired=this.fired;
var res=this.results[fired];
var self=this;
var cb=null;
while(chain.length>0&&this.paused==0){
var pair=chain.shift();
var f=pair[fired];
if(f==null){
continue;
}
try{
res=f(res);
fired=((res instanceof Error)?1:0);
if(res instanceof dojo.Deferred){
cb=function(res){
self._continue(res);
};
this._pause();
}
}
catch(err){
fired=1;
res=err;
}
}
this.fired=fired;
this.results[fired]=res;
if((cb)&&(this.paused)){
res.addBoth(cb);
}
}});
dojo.provide("dojo.widget.RichText");
if(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"]){
if(dojo.hostenv.post_load_){
(function(){
var _11e0=dojo.doc().createElement("textarea");
_11e0.id="dojo.widget.RichText.savedContent";
_11e0.style="display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;";
dojo.body().appendChild(_11e0);
})();
}else{
try{
dojo.doc().write("<textarea id=\"dojo.widget.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");
}
catch(e){
}
}
}
dojo.widget.defineWidget("dojo.widget.RichText",dojo.widget.HtmlWidget,function(){
this.contentPreFilters=[];
this.contentPostFilters=[];
this.contentDomPreFilters=[];
this.contentDomPostFilters=[];
this.editingAreaStyleSheets=[];
if(dojo.render.html.moz){
this.contentPreFilters.push(this._fixContentForMoz);
}
this._keyHandlers={};
if(dojo.Deferred){
this.onLoadDeferred=new dojo.Deferred();
}
},{inheritWidth:false,focusOnLoad:false,saveName:"",styleSheets:"",_content:"",height:"",minHeight:"1em",isClosed:true,isLoaded:false,useActiveX:false,relativeImageUrls:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,fillInTemplate:function(){
dojo.event.topic.publish("dojo.widget.RichText::init",this);
this.open();
dojo.event.connect(this,"onKeyPressed",this,"afterKeyPress");
dojo.event.connect(this,"onKeyPress",this,"keyPress");
dojo.event.connect(this,"onKeyDown",this,"keyDown");
dojo.event.connect(this,"onKeyUp",this,"keyUp");
this.setupDefaultShortcuts();
},setupDefaultShortcuts:function(){
var ctrl=this.KEY_CTRL;
var exec=function(cmd,arg){
return arguments.length==1?function(){
this.execCommand(cmd);
}:function(){
this.execCommand(cmd,arg);
};
};
this.addKeyHandler("b",ctrl,exec("bold"));
this.addKeyHandler("i",ctrl,exec("italic"));
this.addKeyHandler("u",ctrl,exec("underline"));
this.addKeyHandler("a",ctrl,exec("selectall"));
this.addKeyHandler("s",ctrl,function(){
this.save(true);
});
this.addKeyHandler("1",ctrl,exec("formatblock","h1"));
this.addKeyHandler("2",ctrl,exec("formatblock","h2"));
this.addKeyHandler("3",ctrl,exec("formatblock","h3"));
this.addKeyHandler("4",ctrl,exec("formatblock","h4"));
this.addKeyHandler("\\",ctrl,exec("insertunorderedlist"));
if(!dojo.render.html.ie){
this.addKeyHandler("Z",ctrl,exec("redo"));
}
},events:["onBlur","onFocus","onKeyPress","onKeyDown","onKeyUp","onClick"],open:function(_11e5){
if(this.onLoadDeferred.fired>=0){
this.onLoadDeferred=new dojo.Deferred();
}
var h=dojo.render.html;
if(!this.isClosed){
this.close();
}
dojo.event.topic.publish("dojo.widget.RichText::open",this);
this._content="";
if((arguments.length==1)&&(_11e5["nodeName"])){
this.domNode=_11e5;
}
if((this.domNode["nodeName"])&&(this.domNode.nodeName.toLowerCase()=="textarea")){
this.textarea=this.domNode;
var html=this._preFilterContent(this.textarea.value);
this.domNode=dojo.doc().createElement("div");
dojo.html.copyStyle(this.domNode,this.textarea);
var _11e8=dojo.lang.hitch(this,function(){
with(this.textarea.style){
display="block";
position="absolute";
left=top="-1000px";
if(h.ie){
this.__overflow=overflow;
overflow="hidden";
}
}
});
if(h.ie){
setTimeout(_11e8,10);
}else{
_11e8();
}
if(!h.safari){
dojo.html.insertBefore(this.domNode,this.textarea);
}
if(this.textarea.form){
dojo.event.connect("before",this.textarea.form,"onsubmit",dojo.lang.hitch(this,function(){
this.textarea.value=this.getEditorContent();
}));
}
var _11e9=this;
dojo.event.connect(this,"postCreate",function(){
dojo.html.insertAfter(_11e9.textarea,_11e9.domNode);
});
}else{
var html=this._preFilterContent(dojo.string.trim(this.domNode.innerHTML));
}
if(html==""){
html="&nbsp;";
}
var _11ea=dojo.html.getContentBox(this.domNode);
this._oldHeight=_11ea.height;
this._oldWidth=_11ea.width;
this._firstChildContributingMargin=this._getContributingMargin(this.domNode,"top");
this._lastChildContributingMargin=this._getContributingMargin(this.domNode,"bottom");
this.savedContent=html;
this.domNode.innerHTML="";
this.editingArea=dojo.doc().createElement("div");
this.domNode.appendChild(this.editingArea);
if((this.domNode["nodeName"])&&(this.domNode.nodeName=="LI")){
this.domNode.innerHTML=" <br>";
}
if(this.saveName!=""&&(!djConfig["useXDomain"]||djConfig["allowXdRichTextSave"])){
var _11eb=dojo.doc().getElementById("dojo.widget.RichText.savedContent");
if(_11eb.value!=""){
var datas=_11eb.value.split(this._SEPARATOR);
for(var i=0;i<datas.length;i++){
var data=datas[i].split(":");
if(data[0]==this.saveName){
html=data[1];
datas.splice(i,1);
break;
}
}
}
dojo.event.connect("before",window,"onunload",this,"_saveContent");
}
if(h.ie70&&this.useActiveX){
dojo.debug("activeX in ie70 is not currently supported, useActiveX is ignored for now.");
this.useActiveX=false;
}
if(this.useActiveX&&h.ie){
var self=this;
setTimeout(function(){
self._drawObject(html);
},0);
}else{
if(h.ie||this._safariIsLeopard()||h.opera){
this.iframe=dojo.doc().createElement("iframe");
this.iframe.src="javascript:void(0)";
this.editorObject=this.iframe;
with(this.iframe.style){
border="0";
width="100%";
}
this.iframe.frameBorder=0;
this.editingArea.appendChild(this.iframe);
this.window=this.iframe.contentWindow;
this.document=this.window.document;
this.document.open();
this.document.write("<html><head><style>body{margin:0;padding:0;border:0;overflow:hidden;}</style></head><body><div></div></body></html>");
this.document.close();
this.editNode=this.document.body.firstChild;
this.editNode.contentEditable=true;
with(this.iframe.style){
if(h.ie70){
if(this.height){
height=this.height;
}
if(this.minHeight){
minHeight=this.minHeight;
}
}else{
height=this.height?this.height:this.minHeight;
}
}
var _11f0=["p","pre","address","h1","h2","h3","h4","h5","h6","ol","div","ul"];
var _11f1="";
for(var i in _11f0){
if(_11f0[i].charAt(1)!="l"){
_11f1+="<"+_11f0[i]+"><span>content</span></"+_11f0[i]+">";
}else{
_11f1+="<"+_11f0[i]+"><li>content</li></"+_11f0[i]+">";
}
}
with(this.editNode.style){
position="absolute";
left="-2000px";
top="-2000px";
}
this.editNode.innerHTML=_11f1;
var node=this.editNode.firstChild;
while(node){
dojo.withGlobal(this.window,"selectElement",dojo.html.selection,[node.firstChild]);
var _11f3=node.tagName.toLowerCase();
this._local2NativeFormatNames[_11f3]=this.queryCommandValue("formatblock");
this._native2LocalFormatNames[this._local2NativeFormatNames[_11f3]]=_11f3;
node=node.nextSibling;
}
with(this.editNode.style){
position="";
left="";
top="";
}
this.editNode.innerHTML=html;
if(this.height){
this.document.body.style.overflowY="scroll";
}
dojo.lang.forEach(this.events,function(e){
dojo.event.connect(this.editNode,e.toLowerCase(),this,e);
},this);
this.onLoad();
}else{
this._drawIframe(html);
this.editorObject=this.iframe;
}
}
if(this.domNode.nodeName=="LI"){
this.domNode.lastChild.style.marginTop="-1.2em";
}
dojo.html.addClass(this.domNode,"RichTextEditable");
this.isClosed=false;
},_hasCollapseableMargin:function(_11f5,side){
if(dojo.html.getPixelValue(_11f5,"border-"+side+"-width",false)){
return false;
}else{
if(dojo.html.getPixelValue(_11f5,"padding-"+side,false)){
return false;
}else{
return true;
}
}
},_getContributingMargin:function(_11f7,_11f8){
if(_11f8=="top"){
var _11f9="previousSibling";
var _11fa="nextSibling";
var _11fb="firstChild";
var _11fc="margin-top";
var _11fd="margin-bottom";
}else{
var _11f9="nextSibling";
var _11fa="previousSibling";
var _11fb="lastChild";
var _11fc="margin-bottom";
var _11fd="margin-top";
}
var _11fe=dojo.html.getPixelValue(_11f7,_11fc,false);
function isSignificantNode(_11ff){
return !(_11ff.nodeType==3&&dojo.string.isBlank(_11ff.data))&&dojo.html.getStyle(_11ff,"display")!="none"&&!dojo.html.isPositionAbsolute(_11ff);
}
var _1200=0;
var child=_11f7[_11fb];
while(child){
while((!isSignificantNode(child))&&child[_11fa]){
child=child[_11fa];
}
_1200=Math.max(_1200,dojo.html.getPixelValue(child,_11fc,false));
if(!this._hasCollapseableMargin(child,_11f8)){
break;
}
child=child[_11fb];
}
if(!this._hasCollapseableMargin(_11f7,_11f8)){
return parseInt(_1200);
}
var _1202=0;
var _1203=_11f7[_11f9];
while(_1203){
if(isSignificantNode(_1203)){
_1202=dojo.html.getPixelValue(_1203,_11fd,false);
break;
}
_1203=_1203[_11f9];
}
if(!_1203){
_1202=dojo.html.getPixelValue(_11f7.parentNode,_11fc,false);
}
if(_1200>_11fe){
return parseInt(Math.max((_1200-_11fe)-_1202,0));
}else{
return 0;
}
},_drawIframe:function(html){
var _1205=Boolean(dojo.render.html.moz&&(typeof window.XML=="undefined"));
if(!this.iframe){
var _1206=(new dojo.uri.Uri(dojo.doc().location)).host;
this.iframe=dojo.doc().createElement("iframe");
with(this.iframe){
style.border="none";
style.lineHeight="0";
style.verticalAlign="bottom";
scrolling=this.height?"auto":"no";
}
}
if(djConfig["useXDomain"]&&!djConfig["dojoRichTextFrameUrl"]){
dojo.debug("dojo.widget.RichText: When using cross-domain Dojo builds,"+" please save src/widget/templates/richtextframe.html to your domain and set djConfig.dojoRichTextFrameUrl"+" to the path on your domain to richtextframe.html");
}
this.iframe.src=(djConfig["dojoRichTextFrameUrl"]||dojo.uri.moduleUri("dojo.widget","templates/richtextframe.html"))+((dojo.doc().domain!=_1206)?("#"+dojo.doc().domain):"");
this.iframe.width=this.inheritWidth?this._oldWidth:"100%";
if(this.height){
this.iframe.style.height=this.height;
}else{
var _1207=this._oldHeight;
if(this._hasCollapseableMargin(this.domNode,"top")){
_1207+=this._firstChildContributingMargin;
}
if(this._hasCollapseableMargin(this.domNode,"bottom")){
_1207+=this._lastChildContributingMargin;
}
this.iframe.height=_1207;
}
var _1208=dojo.doc().createElement("div");
_1208.innerHTML=html;
this.editingArea.appendChild(_1208);
if(this.relativeImageUrls){
var imgs=_1208.getElementsByTagName("img");
for(var i=0;i<imgs.length;i++){
imgs[i].src=(new dojo.uri.Uri(dojo.global().location,imgs[i].src)).toString();
}
html=_1208.innerHTML;
}
var _120b=dojo.html.firstElement(_1208);
var _120c=dojo.html.lastElement(_1208);
if(_120b){
_120b.style.marginTop=this._firstChildContributingMargin+"px";
}
if(_120c){
_120c.style.marginBottom=this._lastChildContributingMargin+"px";
}
this.editingArea.appendChild(this.iframe);
if(dojo.render.html.safari){
this.iframe.src=this.iframe.src;
}
var _120d=false;
var _120e=dojo.lang.hitch(this,function(){
if(!_120d){
_120d=true;
}else{
return;
}
if(!this.editNode){
if(this.iframe.contentWindow){
this.window=this.iframe.contentWindow;
this.document=this.iframe.contentWindow.document;
}else{
if(this.iframe.contentDocument){
this.window=this.iframe.contentDocument.window;
this.document=this.iframe.contentDocument;
}
}
var _120f=(function(_1210){
return function(style){
return dojo.html.getStyle(_1210,style);
};
})(this.domNode);
var font=_120f("font-weight")+" "+_120f("font-size")+" "+_120f("font-family");
var _1213="1.0";
var _1214=dojo.html.getUnitValue(this.domNode,"line-height");
if(_1214.value&&_1214.units==""){
_1213=_1214.value;
}
dojo.html.insertCssText("body,html{background:transparent;padding:0;margin:0;}"+"body{top:0;left:0;right:0;"+(((this.height)||(dojo.render.html.opera))?"":"position:fixed;")+"font:"+font+";"+"min-height:"+this.minHeight+";"+"line-height:"+_1213+"}"+"p{margin: 1em 0 !important;}"+"body > *:first-child{padding-top:0 !important;margin-top:"+this._firstChildContributingMargin+"px !important;}"+"body > *:last-child{padding-bottom:0 !important;margin-bottom:"+this._lastChildContributingMargin+"px !important;}"+"li > ul:-moz-first-node, li > ol:-moz-first-node{padding-top:1.2em;}\n"+"li{min-height:1.2em;}"+"",this.document);
dojo.html.removeNode(_1208);
this.document.body.innerHTML=html;
if(_1205||dojo.render.html.safari){
this.document.designMode="on";
}
this.onLoad();
}else{
dojo.html.removeNode(_1208);
this.editNode.innerHTML=html;
this.onDisplayChanged();
}
});
if(this.editNode){
_120e();
}else{
if(dojo.render.html.moz){
this.iframe.onload=function(){
setTimeout(_120e,250);
};
}else{
this.iframe.onload=_120e;
}
}
},_applyEditingAreaStyleSheets:function(){
var files=[];
if(this.styleSheets){
files=this.styleSheets.split(";");
this.styleSheets="";
}
files=files.concat(this.editingAreaStyleSheets);
this.editingAreaStyleSheets=[];
if(files.length>0){
for(var i=0;i<files.length;i++){
var url=files[i];
if(url){
this.addStyleSheet(dojo.uri.dojoUri(url));
}
}
}
},addStyleSheet:function(uri){
var url=uri.toString();
if(dojo.lang.find(this.editingAreaStyleSheets,url)>-1){
dojo.debug("dojo.widget.RichText.addStyleSheet: Style sheet "+url+" is already applied to the editing area!");
return;
}
if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
url=(new dojo.uri.Uri(dojo.global().location,url)).toString();
}
this.editingAreaStyleSheets.push(url);
if(this.document.createStyleSheet){
this.document.createStyleSheet(url);
}else{
var head=this.document.getElementsByTagName("head")[0];
var _121b=this.document.createElement("link");
with(_121b){
rel="stylesheet";
type="text/css";
href=url;
}
head.appendChild(_121b);
}
},removeStyleSheet:function(uri){
var url=uri.toString();
if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){
url=(new dojo.uri.Uri(dojo.global().location,url)).toString();
}
var index=dojo.lang.find(this.editingAreaStyleSheets,url);
if(index==-1){
dojo.debug("dojo.widget.RichText.removeStyleSheet: Style sheet "+url+" is not applied to the editing area so it can not be removed!");
return;
}
delete this.editingAreaStyleSheets[index];
var links=this.document.getElementsByTagName("link");
for(var i=0;i<links.length;i++){
if(links[i].href==url){
if(dojo.render.html.ie){
links[i].href="";
}
dojo.html.removeNode(links[i]);
break;
}
}
},_drawObject:function(html){
this.object=dojo.html.createExternalElement(dojo.doc(),"object");
with(this.object){
classid="clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A";
width=this.inheritWidth?this._oldWidth:"100%";
style.height=this.height?this.height:(this._oldHeight+"px");
Scrollbars=this.height?true:false;
Appearance=this._activeX.appearance.flat;
}
this.editorObject=this.object;
this.editingArea.appendChild(this.object);
this.object.attachEvent("DocumentComplete",dojo.lang.hitch(this,"onLoad"));
dojo.lang.forEach(this.events,function(e){
this.object.attachEvent(e.toLowerCase(),dojo.lang.hitch(this,e));
},this);
this.object.DocumentHTML="<!doctype HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">"+"<html><title></title>"+"<style type=\"text/css\">"+"    body,html { padding: 0; margin: 0; }"+(this.height?"":"    body,  { overflow: hidden; }")+"</style>"+"<body><div>"+html+"<div></body></html>";
this._cacheLocalBlockFormatNames();
},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_cacheLocalBlockFormatNames:function(){
if(!this._native2LocalFormatNames["p"]){
var obj=this.object;
var error=false;
if(!obj){
try{
obj=dojo.html.createExternalElement(dojo.doc(),"object");
obj.classid="clsid:2D360201-FFF5-11D1-8D03-00A0C959BC0A";
dojo.body().appendChild(obj);
obj.DocumentHTML="<html><head></head><body></body></html>";
}
catch(e){
error=true;
}
}
try{
var _1225=new ActiveXObject("DEGetBlockFmtNamesParam.DEGetBlockFmtNamesParam");
obj.ExecCommand(this._activeX.command["getblockformatnames"],0,_1225);
var _1226=new VBArray(_1225.Names);
var _1227=_1226.toArray();
var _1228=["p","pre","address","h1","h2","h3","h4","h5","h6","ol","ul","","","","","div"];
for(var i=0;i<_1228.length;++i){
if(_1228[i].length>0){
this._local2NativeFormatNames[_1227[i]]=_1228[i];
this._native2LocalFormatNames[_1228[i]]=_1227[i];
}
}
}
catch(e){
error=true;
}
if(obj&&!this.object){
dojo.body().removeChild(obj);
}
}
return !error;
},_isResized:function(){
return false;
},onLoad:function(e){
this.isLoaded=true;
if(this.object){
this.document=this.object.DOM;
this.window=this.document.parentWindow;
this.editNode=this.document.body.firstChild;
this.editingArea.style.height=this.height?this.height:this.minHeight;
if(!this.height){
this.connect(this,"onDisplayChanged","_updateHeight");
}
this.window._frameElement=this.object;
}else{
if(this.iframe&&!dojo.render.html.ie){
this.editNode=this.document.body;
if(!this.height){
this.connect(this,"onDisplayChanged","_updateHeight");
}
try{
this.document.execCommand("useCSS",false,true);
this.document.execCommand("styleWithCSS",false,false);
}
catch(e2){
}
if(dojo.render.html.safari){
this.connect(this.editNode,"onblur","onBlur");
this.connect(this.editNode,"onfocus","onFocus");
this.connect(this.editNode,"onclick","onFocus");
this.interval=setInterval(dojo.lang.hitch(this,"onDisplayChanged"),750);
}else{
if(dojo.render.html.mozilla||dojo.render.html.opera){
var doc=this.document;
var _122c=dojo.event.browser.addListener;
var self=this;
dojo.lang.forEach(this.events,function(e){
var l=_122c(self.document,e.substr(2).toLowerCase(),dojo.lang.hitch(self,e));
if(e=="onBlur"){
var _1230={unBlur:function(e){
dojo.event.browser.removeListener(doc,"blur",l);
}};
dojo.event.connect("before",self,"close",_1230,"unBlur");
}
});
}
}
}else{
if(dojo.render.html.ie){
if(!this.height){
this.connect(this,"onDisplayChanged","_updateHeight");
}
this.editNode.style.zoom=1;
}
}
}
this._applyEditingAreaStyleSheets();
if(this.focusOnLoad){
this.focus();
}
this.onDisplayChanged(e);
if(this.onLoadDeferred){
this.onLoadDeferred.callback(true);
}
},onKeyDown:function(e){
if((!e)&&(this.object)){
e=dojo.event.browser.fixEvent(this.window.event);
}
if((dojo.render.html.ie)&&(e.keyCode==e.KEY_TAB)){
e.preventDefault();
e.stopPropagation();
this.execCommand((e.shiftKey?"outdent":"indent"));
}else{
if(dojo.render.html.ie){
if((65<=e.keyCode)&&(e.keyCode<=90)){
e.charCode=e.keyCode;
this.onKeyPress(e);
}
}
}
},onKeyUp:function(e){
return;
},KEY_CTRL:1,onKeyPress:function(e){
if((!e)&&(this.object)){
e=dojo.event.browser.fixEvent(this.window.event);
}
var _1235=e.ctrlKey?this.KEY_CTRL:0;
if(this._keyHandlers[e.key]){
var _1236=this._keyHandlers[e.key],i=0,_1238;
while(_1238=_1236[i++]){
if(_1235==_1238.modifiers){
e.preventDefault();
_1238.handler.call(this);
break;
}
}
}
dojo.lang.setTimeout(this,this.onKeyPressed,1,e);
},addKeyHandler:function(key,_123a,_123b){
if(!(this._keyHandlers[key] instanceof Array)){
this._keyHandlers[key]=[];
}
this._keyHandlers[key].push({modifiers:_123a||0,handler:_123b});
},onKeyPressed:function(e){
this.onDisplayChanged();
},onClick:function(e){
this.onDisplayChanged(e);
},onBlur:function(e){
},_initialFocus:true,onFocus:function(e){
if((dojo.render.html.mozilla)&&(this._initialFocus)){
this._initialFocus=false;
if(dojo.string.trim(this.editNode.innerHTML)=="&nbsp;"){
this.placeCursorAtStart();
}
}
},blur:function(){
if(this.iframe){
this.window.blur();
}else{
if(this.object){
this.document.body.blur();
}else{
if(this.editNode){
this.editNode.blur();
}
}
}
},focus:function(){
if(this.iframe&&!dojo.render.html.ie){
this.window.focus();
}else{
if(this.object){
this.document.focus();
}else{
if(this.editNode&&this.editNode.focus){
this.editNode.focus();
}else{
dojo.debug("Have no idea how to focus into the editor!");
}
}
}
},onDisplayChanged:function(e){
},_activeX:{command:{bold:5000,italic:5023,underline:5048,justifycenter:5024,justifyleft:5025,justifyright:5026,cut:5003,copy:5002,paste:5032,"delete":5004,undo:5049,redo:5033,removeformat:5034,selectall:5035,unlink:5050,indent:5018,outdent:5031,insertorderedlist:5030,insertunorderedlist:5051,inserttable:5022,insertcell:5019,insertcol:5020,insertrow:5021,deletecells:5005,deletecols:5006,deleterows:5007,mergecells:5029,splitcell:5047,setblockformat:5043,getblockformat:5011,getblockformatnames:5012,setfontname:5044,getfontname:5013,setfontsize:5045,getfontsize:5014,setbackcolor:5042,getbackcolor:5010,setforecolor:5046,getforecolor:5015,findtext:5008,font:5009,hyperlink:5016,image:5017,lockelement:5027,makeabsolute:5028,sendbackward:5036,bringforward:5037,sendbelowtext:5038,bringabovetext:5039,sendtoback:5040,bringtofront:5041,properties:5052},ui:{"default":0,prompt:1,noprompt:2},status:{notsupported:0,disabled:1,enabled:3,latched:7,ninched:11},appearance:{flat:0,inset:1},state:{unchecked:0,checked:1,gray:2}},_normalizeCommand:function(cmd){
var drh=dojo.render.html;
var _1243=cmd.toLowerCase();
if(_1243=="formatblock"){
if(drh.safari){
_1243="heading";
}
}else{
if(this.object){
switch(_1243){
case "createlink":
_1243="hyperlink";
break;
case "insertimage":
_1243="image";
break;
}
}else{
if(_1243=="hilitecolor"&&!drh.mozilla){
_1243="backcolor";
}
}
}
return _1243;
},_safariIsLeopard:function(){
var gt420=false;
if(dojo.render.html.safari){
var tmp=dojo.render.html.UA.split("AppleWebKit/")[1];
var ver=parseFloat(tmp.split(" ")[0]);
if(ver>=420){
gt420=true;
}
}
return gt420;
},queryCommandAvailable:function(_1247){
var ie=1;
var _1249=1<<1;
var _124a=1<<2;
var opera=1<<3;
var _124c=1<<4;
var gt420=this._safariIsLeopard();
function isSupportedBy(_124e){
return {ie:Boolean(_124e&ie),mozilla:Boolean(_124e&_1249),safari:Boolean(_124e&_124a),safari420:Boolean(_124e&_124c),opera:Boolean(_124e&opera)};
}
var _124f=null;
switch(_1247.toLowerCase()){
case "bold":
case "italic":
case "underline":
case "subscript":
case "superscript":
case "fontname":
case "fontsize":
case "forecolor":
case "hilitecolor":
case "justifycenter":
case "justifyfull":
case "justifyleft":
case "justifyright":
case "delete":
case "selectall":
_124f=isSupportedBy(_1249|ie|_124a|opera);
break;
case "createlink":
case "unlink":
case "removeformat":
case "inserthorizontalrule":
case "insertimage":
case "insertorderedlist":
case "insertunorderedlist":
case "indent":
case "outdent":
case "formatblock":
case "inserthtml":
case "undo":
case "redo":
case "strikethrough":
_124f=isSupportedBy(_1249|ie|opera|_124c);
break;
case "blockdirltr":
case "blockdirrtl":
case "dirltr":
case "dirrtl":
case "inlinedirltr":
case "inlinedirrtl":
_124f=isSupportedBy(ie);
break;
case "cut":
case "copy":
case "paste":
_124f=isSupportedBy(ie|_1249|_124c);
break;
case "inserttable":
_124f=isSupportedBy(_1249|(this.object?ie:0));
break;
case "insertcell":
case "insertcol":
case "insertrow":
case "deletecells":
case "deletecols":
case "deleterows":
case "mergecells":
case "splitcell":
_124f=isSupportedBy(this.object?ie:0);
break;
default:
return false;
}
return (dojo.render.html.ie&&_124f.ie)||(dojo.render.html.mozilla&&_124f.mozilla)||(dojo.render.html.safari&&_124f.safari)||(gt420&&_124f.safari420)||(dojo.render.html.opera&&_124f.opera);
},execCommand:function(_1250,_1251){
var _1252;
this.focus();
_1250=this._normalizeCommand(_1250);
if(_1251!=undefined){
if(_1250=="heading"){
throw new Error("unimplemented");
}else{
if(_1250=="formatblock"){
if(this.object){
_1251=this._native2LocalFormatNames[_1251];
}else{
if(dojo.render.html.ie){
_1251="<"+_1251+">";
}
}
}
}
}
if(this.object){
switch(_1250){
case "hilitecolor":
_1250="setbackcolor";
break;
case "forecolor":
case "backcolor":
case "fontsize":
case "fontname":
_1250="set"+_1250;
break;
case "formatblock":
_1250="setblockformat";
}
if(_1250=="strikethrough"){
_1250="inserthtml";
var range=this.document.selection.createRange();
if(!range.htmlText){
return;
}
_1251=range.htmlText.strike();
}else{
if(_1250=="inserthorizontalrule"){
_1250="inserthtml";
_1251="<hr>";
}
}
if(_1250=="inserthtml"){
var range=this.document.selection.createRange();
if(this.document.selection.type.toUpperCase()=="CONTROL"){
for(var i=0;i<range.length;i++){
range.item(i).outerHTML=_1251;
}
}else{
range.pasteHTML(_1251);
range.select();
}
_1252=true;
}else{
if(arguments.length==1){
_1252=this.object.ExecCommand(this._activeX.command[_1250],this._activeX.ui.noprompt);
}else{
_1252=this.object.ExecCommand(this._activeX.command[_1250],this._activeX.ui.noprompt,_1251);
}
}
}else{
if(_1250=="inserthtml"){
if(dojo.render.html.ie){
var _1255=this.document.selection.createRange();
_1255.pasteHTML(_1251);
_1255.select();
return true;
}else{
return this.document.execCommand(_1250,false,_1251);
}
}else{
if((_1250=="unlink")&&(this.queryCommandEnabled("unlink"))&&(dojo.render.html.mozilla)){
var _1256=this.window.getSelection();
var _1257=_1256.getRangeAt(0);
var _1258=_1257.startContainer;
var _1259=_1257.startOffset;
var _125a=_1257.endContainer;
var _125b=_1257.endOffset;
var a=dojo.withGlobal(this.window,"getAncestorElement",dojo.html.selection,["a"]);
dojo.withGlobal(this.window,"selectElement",dojo.html.selection,[a]);
_1252=this.document.execCommand("unlink",false,null);
var _1257=this.document.createRange();
_1257.setStart(_1258,_1259);
_1257.setEnd(_125a,_125b);
_1256.removeAllRanges();
_1256.addRange(_1257);
return _1252;
}else{
if((_1250=="hilitecolor")&&(dojo.render.html.mozilla)){
this.document.execCommand("useCSS",false,false);
_1252=this.document.execCommand(_1250,false,_1251);
this.document.execCommand("useCSS",false,true);
}else{
if((dojo.render.html.ie)&&((_1250=="backcolor")||(_1250=="forecolor"))){
_1251=arguments.length>1?_1251:null;
_1252=this.document.execCommand(_1250,false,_1251);
}else{
_1251=arguments.length>1?_1251:null;
if(_1251||_1250!="createlink"){
_1252=this.document.execCommand(_1250,false,_1251);
}
}
}
}
}
}
this.onDisplayChanged();
return _1252;
},queryCommandEnabled:function(_125d){
_125d=this._normalizeCommand(_125d);
if(this.object){
switch(_125d){
case "hilitecolor":
_125d="setbackcolor";
break;
case "forecolor":
case "backcolor":
case "fontsize":
case "fontname":
_125d="set"+_125d;
break;
case "formatblock":
_125d="setblockformat";
break;
case "strikethrough":
_125d="bold";
break;
case "inserthorizontalrule":
return true;
}
if(typeof this._activeX.command[_125d]=="undefined"){
return false;
}
var _125e=this.object.QueryStatus(this._activeX.command[_125d]);
return ((_125e!=this._activeX.status.notsupported)&&(_125e!=this._activeX.status.disabled));
}else{
if(dojo.render.html.mozilla){
if(_125d=="unlink"){
return dojo.withGlobal(this.window,"hasAncestorElement",dojo.html.selection,["a"]);
}else{
if(_125d=="inserttable"){
return true;
}
}
}
var elem=(dojo.render.html.ie)?this.document.selection.createRange():this.document;
return elem.queryCommandEnabled(_125d);
}
},queryCommandState:function(_1260){
_1260=this._normalizeCommand(_1260);
if(this.object){
if(_1260=="forecolor"){
_1260="setforecolor";
}else{
if(_1260=="backcolor"){
_1260="setbackcolor";
}else{
if(_1260=="strikethrough"){
return dojo.withGlobal(this.window,"hasAncestorElement",dojo.html.selection,["strike"]);
}else{
if(_1260=="inserthorizontalrule"){
return false;
}
}
}
}
if(typeof this._activeX.command[_1260]=="undefined"){
return null;
}
var _1261=this.object.QueryStatus(this._activeX.command[_1260]);
return ((_1261==this._activeX.status.latched)||(_1261==this._activeX.status.ninched));
}else{
return this.document.queryCommandState(_1260);
}
},queryCommandValue:function(_1262){
_1262=this._normalizeCommand(_1262);
if(this.object){
switch(_1262){
case "forecolor":
case "backcolor":
case "fontsize":
case "fontname":
_1262="get"+_1262;
return this.object.execCommand(this._activeX.command[_1262],this._activeX.ui.noprompt);
case "formatblock":
var _1263=this.object.execCommand(this._activeX.command["getblockformat"],this._activeX.ui.noprompt);
if(_1263){
return this._local2NativeFormatNames[_1263];
}
}
}else{
if(dojo.render.html.ie&&_1262=="formatblock"){
return this._local2NativeFormatNames[this.document.queryCommandValue(_1262)]||this.document.queryCommandValue(_1262);
}
return this.document.queryCommandValue(_1262);
}
},placeCursorAtStart:function(){
this.focus();
if(dojo.render.html.moz&&this.editNode.firstChild&&this.editNode.firstChild.nodeType!=dojo.dom.TEXT_NODE){
dojo.withGlobal(this.window,"selectElementChildren",dojo.html.selection,[this.editNode.firstChild]);
}else{
dojo.withGlobal(this.window,"selectElementChildren",dojo.html.selection,[this.editNode]);
}
dojo.withGlobal(this.window,"collapse",dojo.html.selection,[true]);
},placeCursorAtEnd:function(){
this.focus();
if(dojo.render.html.moz&&this.editNode.lastChild&&this.editNode.lastChild.nodeType!=dojo.dom.TEXT_NODE){
dojo.withGlobal(this.window,"selectElementChildren",dojo.html.selection,[this.editNode.lastChild]);
}else{
dojo.withGlobal(this.window,"selectElementChildren",dojo.html.selection,[this.editNode]);
}
dojo.withGlobal(this.window,"collapse",dojo.html.selection,[false]);
},replaceEditorContent:function(html){
html=this._preFilterContent(html);
if(this.isClosed){
this.domNode.innerHTML=html;
}else{
if(this.window&&this.window.getSelection&&!dojo.render.html.moz){
this.editNode.innerHTML=html;
}else{
if((this.window&&this.window.getSelection)||(this.document&&this.document.selection)){
this.execCommand("selectall");
if(dojo.render.html.moz&&!html){
html="&nbsp;";
}
this.execCommand("inserthtml",html);
}
}
}
},_preFilterContent:function(html){
var ec=html;
dojo.lang.forEach(this.contentPreFilters,function(ef){
ec=ef(ec);
});
if(this.contentDomPreFilters.length>0){
var dom=dojo.doc().createElement("div");
dom.style.display="none";
dojo.body().appendChild(dom);
dom.innerHTML=ec;
dojo.lang.forEach(this.contentDomPreFilters,function(ef){
dom=ef(dom);
});
ec=dom.innerHTML;
dojo.body().removeChild(dom);
}
return ec;
},_postFilterContent:function(html){
var ec=html;
if(this.contentDomPostFilters.length>0){
var dom=this.document.createElement("div");
dom.innerHTML=ec;
dojo.lang.forEach(this.contentDomPostFilters,function(ef){
dom=ef(dom);
});
ec=dom.innerHTML;
}
dojo.lang.forEach(this.contentPostFilters,function(ef){
ec=ef(ec);
});
return ec;
},_lastHeight:0,_updateHeight:function(){
if(!this.isLoaded){
return;
}
if(this.height){
return;
}
var _126f=dojo.html.getBorderBox(this.editNode).height;
if(!_126f){
_126f=dojo.html.getBorderBox(this.document.body).height;
}
if(_126f==0){
dojo.debug("Can not figure out the height of the editing area!");
return;
}
this._lastHeight=_126f;
this.editorObject.style.height=this._lastHeight+"px";
this.window.scrollTo(0,0);
},_saveContent:function(e){
var _1271=dojo.doc().getElementById("dojo.widget.RichText.savedContent");
_1271.value+=this._SEPARATOR+this.saveName+":"+this.getEditorContent();
},getEditorContent:function(){
var ec="";
try{
ec=(this._content.length>0)?this._content:this.editNode.innerHTML;
if(dojo.string.trim(ec)=="&nbsp;"){
ec="";
}
}
catch(e){
}
if(dojo.render.html.ie&&!this.object){
var re=new RegExp("(?:<p>&nbsp;</p>[\n\r]*)+$","i");
ec=ec.replace(re,"");
}
ec=this._postFilterContent(ec);
if(this.relativeImageUrls){
var _1274=dojo.global().location.protocol+"//"+dojo.global().location.host;
var _1275=dojo.global().location.pathname;
if(_1275.match(/\/$/)){
}else{
var _1276=_1275.split("/");
if(_1276.length){
_1276.pop();
}
_1275=_1276.join("/")+"/";
}
var _1277=new RegExp("(<img[^>]* src=[\"'])("+_1274+"("+_1275+")?)","ig");
ec=ec.replace(_1277,"$1");
}
return ec;
},close:function(save,force){
if(this.isClosed){
return false;
}
if(arguments.length==0){
save=true;
}
this._content=this._postFilterContent(this.editNode.innerHTML);
var _127a=(this.savedContent!=this._content);
if(this.interval){
clearInterval(this.interval);
}
if(dojo.render.html.ie&&!this.object){
dojo.event.browser.clean(this.editNode);
}
if(this.iframe){
delete this.iframe;
}
if(this.textarea){
with(this.textarea.style){
position="";
left=top="";
if(dojo.render.html.ie){
overflow=this.__overflow;
this.__overflow=null;
}
}
if(save){
this.textarea.value=this._content;
}else{
this.textarea.value=this.savedContent;
}
dojo.html.removeNode(this.domNode);
this.domNode=this.textarea;
}else{
if(save){
if(dojo.render.html.moz){
var nc=dojo.doc().createElement("span");
this.domNode.appendChild(nc);
nc.innerHTML=this.editNode.innerHTML;
}else{
this.domNode.innerHTML=this._content;
}
}else{
this.domNode.innerHTML=this.savedContent;
}
}
dojo.html.removeClass(this.domNode,"RichTextEditable");
this.isClosed=true;
this.isLoaded=false;
delete this.editNode;
if(this.window._frameElement){
this.window._frameElement=null;
}
this.window=null;
this.document=null;
this.object=null;
this.editingArea=null;
this.editorObject=null;
return _127a;
},destroyRendering:function(){
},destroy:function(){
this.destroyRendering();
if(!this.isClosed){
this.close(false);
}
dojo.widget.RichText.superclass.destroy.call(this);
},connect:function(_127c,_127d,_127e){
dojo.event.connect(_127c,_127d,this,_127e);
},disconnect:function(_127f,_1280,_1281){
dojo.event.disconnect(_127f,_1280,this,_1281);
},disconnectAllWithRoot:function(_1282){
dojo.deprecated("disconnectAllWithRoot","is deprecated. No need to disconnect manually","0.5");
},_fixContentForMoz:function(html){
html=html.replace(/<strong([ \>])/gi,"<b$1");
html=html.replace(/<\/strong>/gi,"</b>");
html=html.replace(/<em([ \>])/gi,"<i$1");
html=html.replace(/<\/em>/gi,"</i>");
return html;
}});
dojo.provide("dojo.widget.ColorPalette");
dojo.widget.defineWidget("dojo.widget.ColorPalette",dojo.widget.HtmlWidget,{palette:"7x10",_palettes:{"7x10":[["fff","fcc","fc9","ff9","ffc","9f9","9ff","cff","ccf","fcf"],["ccc","f66","f96","ff6","ff3","6f9","3ff","6ff","99f","f9f"],["c0c0c0","f00","f90","fc6","ff0","3f3","6cc","3cf","66c","c6c"],["999","c00","f60","fc3","fc0","3c0","0cc","36f","63f","c3c"],["666","900","c60","c93","990","090","399","33f","60c","939"],["333","600","930","963","660","060","366","009","339","636"],["000","300","630","633","330","030","033","006","309","303"]],"3x4":[["ffffff","00ff00","008000","0000ff"],["c0c0c0","ffff00","ff00ff","000080"],["808080","ff0000","800080","000000"]]},buildRendering:function(){
this.domNode=document.createElement("table");
dojo.html.disableSelection(this.domNode);
dojo.event.connect(this.domNode,"onmousedown",function(e){
e.preventDefault();
});
with(this.domNode){
cellPadding="0";
cellSpacing="1";
border="1";
style.backgroundColor="white";
}
var _1285=this._palettes[this.palette];
for(var i=0;i<_1285.length;i++){
var tr=this.domNode.insertRow(-1);
for(var j=0;j<_1285[i].length;j++){
if(_1285[i][j].length==3){
_1285[i][j]=_1285[i][j].replace(/(.)(.)(.)/,"$1$1$2$2$3$3");
}
var td=tr.insertCell(-1);
with(td.style){
backgroundColor="#"+_1285[i][j];
border="1px solid gray";
width=height="15px";
fontSize="1px";
}
td.color="#"+_1285[i][j];
td.onmouseover=function(e){
this.style.borderColor="white";
};
td.onmouseout=function(e){
this.style.borderColor="gray";
};
dojo.event.connect(td,"onmousedown",this,"onClick");
td.innerHTML="&nbsp;";
}
}
},onClick:function(e){
this.onColorSelect(e.currentTarget.color);
e.currentTarget.style.borderColor="gray";
},onColorSelect:function(color){
}});
dojo.provide("dojo.widget.Editor2Toolbar");
dojo.lang.declare("dojo.widget.HandlerManager",null,function(){
this._registeredHandlers=[];
},{registerHandler:function(obj,func){
if(arguments.length==2){
this._registeredHandlers.push(function(){
return obj[func].apply(obj,arguments);
});
}else{
this._registeredHandlers.push(obj);
}
},removeHandler:function(func){
for(var i=0;i<this._registeredHandlers.length;i++){
if(func===this._registeredHandlers[i]){
delete this._registeredHandlers[i];
return;
}
}
dojo.debug("HandlerManager handler "+func+" is not registered, can not remove.");
},destroy:function(){
for(var i=0;i<this._registeredHandlers.length;i++){
delete this._registeredHandlers[i];
}
}});
dojo.widget.Editor2ToolbarItemManager=new dojo.widget.HandlerManager;
dojo.lang.mixin(dojo.widget.Editor2ToolbarItemManager,{getToolbarItem:function(name){
var item;
name=name.toLowerCase();
for(var i=0;i<this._registeredHandlers.length;i++){
item=this._registeredHandlers[i](name);
if(item){
return item;
}
}
switch(name){
case "bold":
case "copy":
case "cut":
case "delete":
case "indent":
case "inserthorizontalrule":
case "insertorderedlist":
case "insertunorderedlist":
case "italic":
case "justifycenter":
case "justifyfull":
case "justifyleft":
case "justifyright":
case "outdent":
case "paste":
case "redo":
case "removeformat":
case "selectall":
case "strikethrough":
case "subscript":
case "superscript":
case "underline":
case "undo":
case "unlink":
case "createlink":
case "insertimage":
case "htmltoggle":
item=new dojo.widget.Editor2ToolbarButton(name);
break;
case "forecolor":
case "hilitecolor":
item=new dojo.widget.Editor2ToolbarColorPaletteButton(name);
break;
case "plainformatblock":
item=new dojo.widget.Editor2ToolbarFormatBlockPlainSelect("formatblock");
break;
case "formatblock":
item=new dojo.widget.Editor2ToolbarFormatBlockSelect("formatblock");
break;
case "fontsize":
item=new dojo.widget.Editor2ToolbarFontSizeSelect("fontsize");
break;
case "fontname":
item=new dojo.widget.Editor2ToolbarFontNameSelect("fontname");
break;
case "inserttable":
case "insertcell":
case "insertcol":
case "insertrow":
case "deletecells":
case "deletecols":
case "deleterows":
case "mergecells":
case "splitcell":
dojo.debug(name+" is implemented in dojo.widget.Editor2Plugin.TableOperation, please require it first.");
break;
case "inserthtml":
case "blockdirltr":
case "blockdirrtl":
case "dirltr":
case "dirrtl":
case "inlinedirltr":
case "inlinedirrtl":
dojo.debug("Not yet implemented toolbar item: "+name);
break;
default:
dojo.debug("dojo.widget.Editor2ToolbarItemManager.getToolbarItem: Unknown toolbar item: "+name);
}
return item;
}});
dojo.addOnUnload(dojo.widget.Editor2ToolbarItemManager,"destroy");
dojo.declare("dojo.widget.Editor2ToolbarButton",null,function(name){
this._name=name;
},{create:function(node,_1298,_1299){
this._domNode=node;
var cmd=_1298.parent.getCommand(this._name);
if(cmd){
this._domNode.title=cmd.getText();
}
this.disableSelection(this._domNode);
this._parentToolbar=_1298;
dojo.event.connect(this._domNode,"onclick",this,"onClick");
if(!_1299){
dojo.event.connect(this._domNode,"onmouseover",this,"onMouseOver");
dojo.event.connect(this._domNode,"onmouseout",this,"onMouseOut");
}
},disableSelection:function(_129b){
dojo.html.disableSelection(_129b);
var nodes=_129b.all||_129b.getElementsByTagName("*");
for(var x=0;x<nodes.length;x++){
dojo.html.disableSelection(nodes[x]);
}
},onMouseOver:function(){
var _129e=dojo.widget.Editor2Manager.getCurrentInstance();
if(_129e){
var _129f=_129e.getCommand(this._name);
if(_129f&&_129f.getState()!=dojo.widget.Editor2Manager.commandState.Disabled){
this.highlightToolbarItem();
}
}
},onMouseOut:function(){
this.unhighlightToolbarItem();
},destroy:function(){
this._domNode=null;
this._parentToolbar=null;
},onClick:function(e){
if(this._domNode&&!this._domNode.disabled&&this._parentToolbar.checkAvailability()){
e.preventDefault();
e.stopPropagation();
var _12a1=dojo.widget.Editor2Manager.getCurrentInstance();
if(_12a1){
var _12a2=_12a1.getCommand(this._name);
if(_12a2){
_12a2.execute();
}
}
}
},refreshState:function(){
var _12a3=dojo.widget.Editor2Manager.getCurrentInstance();
var em=dojo.widget.Editor2Manager;
if(_12a3){
var _12a5=_12a3.getCommand(this._name);
if(_12a5){
var state=_12a5.getState();
if(state!=this._lastState){
switch(state){
case em.commandState.Latched:
this.latchToolbarItem();
break;
case em.commandState.Enabled:
this.enableToolbarItem();
break;
case em.commandState.Disabled:
default:
this.disableToolbarItem();
}
this._lastState=state;
}
}
}
return em.commandState.Enabled;
},latchToolbarItem:function(){
this._domNode.disabled=false;
this.removeToolbarItemStyle(this._domNode);
dojo.html.addClass(this._domNode,this._parentToolbar.ToolbarLatchedItemStyle);
},enableToolbarItem:function(){
this._domNode.disabled=false;
this.removeToolbarItemStyle(this._domNode);
dojo.html.addClass(this._domNode,this._parentToolbar.ToolbarEnabledItemStyle);
},disableToolbarItem:function(){
this._domNode.disabled=true;
this.removeToolbarItemStyle(this._domNode);
dojo.html.addClass(this._domNode,this._parentToolbar.ToolbarDisabledItemStyle);
},highlightToolbarItem:function(){
dojo.html.addClass(this._domNode,this._parentToolbar.ToolbarHighlightedItemStyle);
},unhighlightToolbarItem:function(){
dojo.html.removeClass(this._domNode,this._parentToolbar.ToolbarHighlightedItemStyle);
},removeToolbarItemStyle:function(){
dojo.html.removeClass(this._domNode,this._parentToolbar.ToolbarEnabledItemStyle);
dojo.html.removeClass(this._domNode,this._parentToolbar.ToolbarLatchedItemStyle);
dojo.html.removeClass(this._domNode,this._parentToolbar.ToolbarDisabledItemStyle);
this.unhighlightToolbarItem();
}});
dojo.declare("dojo.widget.Editor2ToolbarDropDownButton",dojo.widget.Editor2ToolbarButton,{onClick:function(){
if(this._domNode&&!this._domNode.disabled&&this._parentToolbar.checkAvailability()){
if(!this._dropdown){
this._dropdown=dojo.widget.createWidget("PopupContainer",{});
this._domNode.appendChild(this._dropdown.domNode);
}
if(this._dropdown.isShowingNow){
this._dropdown.close();
}else{
this.onDropDownShown();
this._dropdown.open(this._domNode,null,this._domNode);
}
}
},destroy:function(){
this.onDropDownDestroy();
if(this._dropdown){
this._dropdown.destroy();
}
dojo.widget.Editor2ToolbarDropDownButton.superclass.destroy.call(this);
},onDropDownShown:function(){
},onDropDownDestroy:function(){
}});
dojo.declare("dojo.widget.Editor2ToolbarColorPaletteButton",dojo.widget.Editor2ToolbarDropDownButton,{onDropDownShown:function(){
if
