/*
	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["isDebug"]||djConfig["debugAtAllCosts"]),"dojo.debug");
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.uri.Uri");
dojo.uri=new function(){
this.dojoUri=function(uri){
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri);
};
this.moduleUri=function(_ef,uri){
var loc=dojo.hostenv.getModuleSymbols(_ef).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
var _f2=loc.indexOf(":");
var _f3=loc.indexOf("/");
if(loc.charAt(0)!="/"&&(_f2==-1||_f2>_f3)){
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 _f6=new dojo.uri.Uri(arguments[i].toString());
var _f7=new dojo.uri.Uri(uri.toString());
if((_f6.path=="")&&(_f6.scheme==null)&&(_f6.authority==null)&&(_f6.query==null)){
if(_f6.fragment!=null){
_f7.fragment=_f6.fragment;
}
_f6=_f7;
}else{
if(_f6.scheme==null){
_f6.scheme=_f7.scheme;
if(_f6.authority==null){
_f6.authority=_f7.authority;
if(_f6.path.charAt(0)!="/"){
var _f8=_f7.path.substring(0,_f7.path.lastIndexOf("/")+1)+_f6.path;
var _f9=_f8.split("/");
for(var j=0;j<_f9.length;j++){
if(_f9[j]=="."){
if(j==_f9.length-1){
_f9[j]="";
}else{
_f9.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&_f9[0]=="")&&_f9[j]==".."&&_f9[j-1]!=".."){
if(j==_f9.length-1){
_f9.splice(j,1);
_f9[j-1]="";
}else{
_f9.splice(j-1,2);
j-=2;
}
}
}
}
_f6.path=_f9.join("/");
}
}
}
}
uri="";
if(_f6.scheme!=null){
uri+=_f6.scheme+":";
}
if(_f6.authority!=null){
uri+="//"+_f6.authority;
}
uri+=_f6.path;
if(_f6.query!=null){
uri+="?"+_f6.query;
}
if(_f6.fragment!=null){
uri+="#"+_f6.fragment;
}
}
this.uri=uri.toString();
var _fb="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_fb));
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){
_fb="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_fb));
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.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]});
dojo.provide("dojo.uri.*");
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_fd,_fe){
if(!dojo.lang.isFunction(_fe)){
dojo.raise("dojo.inherits: superclass argument ["+_fe+"] must be a function (subclass: ["+_fd+"']");
}
_fd.prototype=new _fe();
_fd.prototype.constructor=_fd;
_fd.superclass=_fe.prototype;
_fd["super"]=_fe.prototype;
};
dojo.lang._mixin=function(obj,_100){
var tobj={};
for(var x in _100){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_100[x])){
obj[x]=_100[x];
}
}
if(dojo.render.html.ie&&(typeof (_100["toString"])=="function")&&(_100["toString"]!=obj["toString"])&&(_100["toString"]!=tobj["toString"])){
obj.toString=_100.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_104){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_107,_108){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_107.prototype,arguments[i]);
}
return _107;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_10b,_10c,_10d,_10e){
if(!dojo.lang.isArrayLike(_10b)&&dojo.lang.isArrayLike(_10c)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_10b;
_10b=_10c;
_10c=temp;
}
var _110=dojo.lang.isString(_10b);
if(_110){
_10b=_10b.split("");
}
if(_10e){
var step=-1;
var i=_10b.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_10b.length;
}
if(_10d){
while(i!=end){
if(_10b[i]===_10c){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_10b[i]==_10c){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_114,_115,_116){
return dojo.lang.find(_114,_115,_116,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_117,_118){
return dojo.lang.find(_117,_118)>-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.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 _124=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_124.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_126,_127){
var node=_126.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_127&&node&&node.tagName&&node.tagName.toLowerCase()!=_127.toLowerCase()){
node=dojo.dom.nextElement(node,_127);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_129,_12a){
var node=_129.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_12a&&node&&node.tagName&&node.tagName.toLowerCase()!=_12a.toLowerCase()){
node=dojo.dom.prevElement(node,_12a);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_12d){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_12d&&_12d.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_12d);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_12f){
if(!node){
return null;
}
if(_12f){
_12f=_12f.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_12f&&_12f.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_12f);
}
return node;
};
dojo.dom.moveChildren=function(_130,_131,trim){
var _133=0;
if(trim){
while(_130.hasChildNodes()&&_130.firstChild.nodeType==dojo.dom.TEXT_NODE){
_130.removeChild(_130.firstChild);
}
while(_130.hasChildNodes()&&_130.lastChild.nodeType==dojo.dom.TEXT_NODE){
_130.removeChild(_130.lastChild);
}
}
while(_130.hasChildNodes()){
_131.appendChild(_130.firstChild);
_133++;
}
return _133;
};
dojo.dom.copyChildren=function(_134,_135,trim){
var _137=_134.cloneNode(true);
return this.moveChildren(_137,_135,trim);
};
dojo.dom.replaceChildren=function(node,_139){
var _13a=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_13a.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_139);
for(var i=0;i<_13a.length;i++){
dojo.dom.destroyNode(_13a[i]);
}
};
dojo.dom.removeChildren=function(node){
var _13d=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _13d;
};
dojo.dom.replaceNode=function(node,_13f){
return node.parentNode.replaceChild(_13f,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,_143,_144){
var _145=[];
var _146=(_143&&(_143 instanceof Function||typeof _143=="function"));
while(node){
if(!_146||_143(node)){
_145.push(node);
}
if(_144&&_145.length>0){
return _145[0];
}
node=node.parentNode;
}
if(_144){
return null;
}
return _145;
};
dojo.dom.getAncestorsByTag=function(node,tag,_149){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_149);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_14e,_14f){
if(_14f&&node){
node=node.parentNode;
}
while(node){
if(node==_14e){
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 _152=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _153=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_153.length;i++){
try{
doc=new ActiveXObject(_153[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_152.implementation)&&(_152.implementation.createDocument)){
doc=_152.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_156){
if(!_156){
_156="text/xml";
}
if(!dj_undef("DOMParser")){
var _157=new DOMParser();
return _157.parseFromString(str,_156);
}else{
if(!dj_undef("ActiveXObject")){
var _158=dojo.dom.createDocument();
if(_158){
_158.async=false;
_158.loadXML(str);
return _158;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _159=dojo.doc();
if(_159.createElement){
var tmp=_159.createElement("xml");
tmp.innerHTML=str;
if(_159.implementation&&_159.implementation.createDocument){
var _15b=_159.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_15b.importNode(tmp.childNodes.item(i),true);
}
return _15b;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_15e){
if(_15e.firstChild){
_15e.insertBefore(node,_15e.firstChild);
}else{
_15e.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_161){
if((_161!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _162=ref.parentNode;
_162.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_165){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_165!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_165);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_169){
if((!node)||(!ref)||(!_169)){
return false;
}
switch(_169.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,_16b,_16c){
var _16d=_16b.childNodes;
if(!_16d.length||_16d.length==_16c){
_16b.appendChild(node);
return true;
}
if(_16c==0){
return dojo.dom.prependChild(node,_16b);
}
return dojo.dom.insertAfter(node,_16d[_16c-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _170=dojo.doc();
dojo.dom.replaceChildren(node,_170.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _171="";
if(node==null){
return _171;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_171+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_171+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _171;
}
};
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,_177,_178,_179){
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(_177,_178,_179);
}else{
var _17a=elem.ownerDocument;
var _17b=_17a.createNode(2,_178,_177);
_17b.nodeValue=_179;
elem.setAttributeNode(_17b);
}
};
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 _17e=dojo.global();
var _17f=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_17f.documentElement.clientWidth;
h=_17e.innerHeight;
}else{
if(!dojo.render.html.opera&&_17e.innerWidth){
w=_17e.innerWidth;
h=_17e.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_17f,"documentElement.clientWidth")){
var w2=_17f.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_17f.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 _183=dojo.global();
var _184=dojo.doc();
var top=_183.pageYOffset||_184.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_183.pageXOffset||_184.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _189=dojo.doc();
var _18a=dojo.byId(node);
type=type.toLowerCase();
while((_18a)&&(_18a.nodeName.toLowerCase()!=type)){
if(_18a==(_189["body"]||_189["documentElement"])){
return null;
}
_18a=_18a.parentNode;
}
return _18a;
};
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 _192={x:0,y:0};
if(e.pageX||e.pageY){
_192.x=e.pageX;
_192.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_192.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_192.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _192;
};
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 _197=dojo.doc().createElement("script");
_197.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_197);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_19a,_19b,args,_19d,_19e){
dojo.deprecated("dojo.html."+_19a,"replaced by dojo.html."+_19b+"("+(_19d?"node, {"+_19d+": "+_19d+"}":"")+")"+(_19e?"."+_19e:""),"0.5");
var _19f=[];
if(_19d){
var _1a0={};
_1a0[_19d]=args[1];
_19f.push(args[0]);
_19f.push(_1a0);
}else{
_19f=args;
}
var ret=dojo.html[_19b].apply(dojo.html,args);
if(_19e){
return ret[_19e];
}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.a11y");
dojo.a11y={imgPath:dojo.uri.moduleUri("dojo.widget","templates/images"),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 _1a3=null;
if(window.getComputedStyle){
var _1a4=getComputedStyle(div,"");
_1a3=_1a4.getPropertyValue("background-image");
}else{
_1a3=div.currentStyle.backgroundImage;
}
var _1a5=false;
if(_1a3!=null&&(_1a3=="none"||_1a3=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_1a6){
this.doAccessibleCheck=_1a6;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.animation.AnimationEvent");
dojo.deprecated("dojo.animation.AnimationEvent is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.AnimationEvent=function(_1a7,type,_1a9,_1aa,_1ab,_1ac,_1ad,_1ae,fps){
this.type=type;
this.animation=_1a7;
this.coords=_1a9;
this.x=_1a9[0];
this.y=_1a9[1];
this.z=_1a9[2];
this.startTime=_1aa;
this.currentTime=_1ab;
this.endTime=_1ac;
this.duration=_1ad;
this.percent=_1ae;
this.fps=fps;
};
dojo.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){
var _1b0=new Array(this.coords.length);
for(var i=0;i<this.coords.length;i++){
_1b0[i]=Math.round(this.coords[i]);
}
return _1b0;
}});
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_1b2,_1b3){
var args=[];
for(var x=2;x<arguments.length;x++){
args.push(arguments[x]);
}
var fcn=(dojo.lang.isString(_1b3)?_1b2[_1b3]:_1b3)||function(){
};
return function(){
var ta=args.concat([]);
for(var x=0;x<arguments.length;x++){
ta.push(arguments[x]);
}
return fcn.apply(_1b2,ta);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1b9,_1ba,_1bb){
var nso=(_1ba||dojo.lang.anon);
if((_1bb)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_1b9){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1b9;
return ret;
};
dojo.lang.forward=function(_1bf){
return function(){
return this[_1bf].apply(this,arguments);
};
};
dojo.lang.curry=function(_1c0,func){
var _1c2=[];
_1c0=_1c0||dj_global;
if(dojo.lang.isString(func)){
func=_1c0[func];
}
for(var x=2;x<arguments.length;x++){
_1c2.push(arguments[x]);
}
var _1c4=(func["__preJoinArity"]||func.length)-_1c2.length;
function gather(_1c5,_1c6,_1c7){
var _1c8=_1c7;
var _1c9=_1c6.slice(0);
for(var x=0;x<_1c5.length;x++){
_1c9.push(_1c5[x]);
}
_1c7=_1c7-_1c5.length;
if(_1c7<=0){
var res=func.apply(_1c0,_1c9);
_1c7=_1c8;
return res;
}else{
return function(){
return gather(arguments,_1c9,_1c7);
};
}
}
return gather([],_1c2,_1c4);
};
dojo.lang.curryArguments=function(_1cc,func,args,_1cf){
var _1d0=[];
var x=_1cf||0;
for(x=_1cf;x<args.length;x++){
_1d0.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_1cc,func].concat(_1d0));
};
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,_1d6,_1d7){
if(!farr.length){
if(typeof _1d7=="function"){
_1d7();
}
return;
}
if((typeof _1d6=="undefined")&&(typeof cb=="number")){
_1d6=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1d6){
_1d6=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1d6,_1d7);
},_1d6);
};
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 _1db=1;
for(var i=1;i<=n;i++){
_1db*=i;
}
return _1db;
};
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 _1e7=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0;
for(var i=0;i<_1e7.length;i++){
mean+=_1e7[i];
}
return mean/_1e7.length;
};
dojo.math.round=function(_1ea,_1eb){
if(!_1eb){
var _1ec=1;
}else{
var _1ec=Math.pow(10,_1eb);
}
return Math.round(_1ea*_1ec)/_1ec;
};
dojo.math.sd=dojo.math.standardDeviation=function(){
var _1ed=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
return Math.sqrt(dojo.math.variance(_1ed));
};
dojo.math.variance=function(){
var _1ee=dojo.lang.isArray(arguments[0])?arguments[0]:arguments;
var mean=0,_1f0=0;
for(var i=0;i<_1ee.length;i++){
mean+=_1ee[i];
_1f0+=Math.pow(_1ee[i],2);
}
return (_1f0/_1ee.length)-Math.pow(mean/_1ee.length,2);
};
dojo.math.range=function(a,b,step){
if(arguments.length<2){
b=a;
a=0;
}
if(arguments.length<3){
step=1;
}
var _1f5=[];
if(step>0){
for(var i=a;i<b;i+=step){
_1f5.push(i);
}
}else{
if(step<0){
for(var i=a;i>b;i+=step){
_1f5.push(i);
}
}else{
throw new Error("dojo.math.range: step must be non-zero");
}
}
return _1f5;
};
dojo.provide("dojo.math.curves");
dojo.math.curves={Line:function(_1f7,end){
this.start=_1f7;
this.end=end;
this.dimensions=_1f7.length;
for(var i=0;i<_1f7.length;i++){
_1f7[i]=Number(_1f7[i]);
}
for(var i=0;i<end.length;i++){
end[i]=Number(end[i]);
}
this.getValue=function(n){
var _1fb=new Array(this.dimensions);
for(var i=0;i<this.dimensions;i++){
_1fb[i]=((this.end[i]-this.start[i])*n)+this.start[i];
}
return _1fb;
};
return this;
},Bezier:function(pnts){
this.getValue=function(step){
if(step>=1){
return this.p[this.p.length-1];
}
if(step<=0){
return this.p[0];
}
var _1ff=new Array(this.p[0].length);
for(var k=0;j<this.p[0].length;k++){
_1ff[k]=0;
}
for(var j=0;j<this.p[0].length;j++){
var C=0;
var D=0;
for(var i=0;i<this.p.length;i++){
C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i);
}
for(var l=0;l<this.p.length;l++){
D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l);
}
_1ff[j]=C/D;
}
return _1ff;
};
this.p=pnts;
return this;
},CatmullRom:function(pnts,c){
this.getValue=function(step){
var _209=step*(this.p.length-1);
var node=Math.floor(_209);
var _20b=_209-node;
var i0=node-1;
if(i0<0){
i0=0;
}
var i=node;
var i1=node+1;
if(i1>=this.p.length){
i1=this.p.length-1;
}
var i2=node+2;
if(i2>=this.p.length){
i2=this.p.length-1;
}
var u=_20b;
var u2=_20b*_20b;
var u3=_20b*_20b*_20b;
var _213=new Array(this.p[0].length);
for(var k=0;k<this.p[0].length;k++){
var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]);
var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]);
var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]);
var x4=this.p[i][k];
_213[k]=x1*u3+x2*u2+x3*u+x4;
}
return _213;
};
if(!c){
this.c=0.7;
}else{
this.c=c;
}
this.p=pnts;
return this;
},Arc:function(_219,end,ccw){
var _21c=dojo.math.points.midpoint(_219,end);
var _21d=dojo.math.points.translate(dojo.math.points.invert(_21c),_219);
var rad=Math.sqrt(Math.pow(_21d[0],2)+Math.pow(_21d[1],2));
var _21f=dojo.math.radToDeg(Math.atan(_21d[1]/_21d[0]));
if(_21d[0]<0){
_21f-=90;
}else{
_21f+=90;
}
dojo.math.curves.CenteredArc.call(this,_21c,rad,_21f,_21f+(ccw?-180:180));
},CenteredArc:function(_220,_221,_222,end){
this.center=_220;
this.radius=_221;
this.start=_222||0;
this.end=end;
this.getValue=function(n){
var _225=new Array(2);
var _226=dojo.math.degToRad(this.start+((this.end-this.start)*n));
_225[0]=this.center[0]+this.radius*Math.sin(_226);
_225[1]=this.center[1]-this.radius*Math.cos(_226);
return _225;
};
return this;
},Circle:function(_227,_228){
dojo.math.curves.CenteredArc.call(this,_227,_228,0,360);
return this;
},Path:function(){
var _229=[];
var _22a=[];
var _22b=[];
var _22c=0;
this.add=function(_22d,_22e){
if(_22e<0){
dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0");
}
_229.push(_22d);
_22a.push(_22e);
_22c+=_22e;
computeRanges();
};
this.remove=function(_22f){
for(var i=0;i<_229.length;i++){
if(_229[i]==_22f){
_229.splice(i,1);
_22c-=_22a.splice(i,1)[0];
break;
}
}
computeRanges();
};
this.removeAll=function(){
_229=[];
_22a=[];
_22c=0;
};
this.getValue=function(n){
var _232=false,_233=0;
for(var i=0;i<_22b.length;i++){
var r=_22b[i];
if(n>=r[0]&&n<r[1]){
var subN=(n-r[0])/r[2];
_233=_229[i].getValue(subN);
_232=true;
break;
}
}
if(!_232){
_233=_229[_229.length-1].getValue(1);
}
for(var j=0;j<i;j++){
_233=dojo.math.points.translate(_233,_229[j].getValue(1));
}
return _233;
};
function computeRanges(){
var _238=0;
for(var i=0;i<_22a.length;i++){
var end=_238+_22a[i]/_22c;
var len=end-_238;
_22b[i]=[_238,end,len];
_238=end;
}
}
return this;
}};
dojo.provide("dojo.animation.Animation");
dojo.deprecated("dojo.animation.Animation is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.Animation=function(_23c,_23d,_23e,_23f,rate){
if(dojo.lang.isArray(_23c)){
_23c=new dojo.math.curves.Line(_23c[0],_23c[1]);
}
this.curve=_23c;
this.duration=_23d;
this.repeatCount=_23f||0;
this.rate=rate||25;
if(_23e){
if(dojo.lang.isFunction(_23e.getValue)){
this.accel=_23e;
}else{
var i=0.35*_23e+0.5;
this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45);
}
}
};
dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_242){
if(_242){
clearTimeout(this._timer);
this._active=false;
this._paused=false;
this._percent=0;
}else{
if(this._active&&!this._paused){
return;
}
}
this._startTime=new Date().valueOf();
if(this._paused){
this._startTime-=(this.duration*this._percent/100);
}
this._endTime=this._startTime+this.duration;
this._lastFrame=this._startTime;
var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0);
this._active=true;
this._paused=false;
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
e.type="begin";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
e.type="play";
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPlay=="function"){
this.onPlay(e);
}
if(this._animSequence){
this._animSequence._setCurrent(this);
}
this._cycle();
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return;
}
this._paused=true;
var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onPause=="function"){
this.onPause(e);
}
},playPause:function(){
if(!this._active||this._paused){
this.play();
}else{
this.pause();
}
},gotoPercent:function(pct,_246){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_246){
this.play();
}
},stop:function(_247){
clearTimeout(this._timer);
var step=this._percent/100;
if(_247){
step=1;
}
var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent);
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onStop=="function"){
this.onStop(e);
}
this._active=false;
this._paused=false;
},status:function(){
if(this._active){
return this._paused?"paused":"playing";
}else{
return "stopped";
}
},_cycle:function(){
clearTimeout(this._timer);
if(this._active){
var curr=new Date().valueOf();
var step=(curr-this._startTime)/(this._endTime-this._startTime);
var fps=1000/(curr-this._lastFrame);
this._lastFrame=curr;
if(step>=1){
step=1;
this._percent=100;
}else{
this._percent=step*100;
}
if(this.accel&&this.accel.getValue){
step=this.accel.getValue(step);
}
var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps));
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onAnimate=="function"){
this.onAnimate(e);
}
if(step<1){
this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate);
}else{
e.type="end";
this._active=false;
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this.repeatCount--;
this.play(true);
}else{
if(this.repeatCount==-1){
this.play(true);
}else{
if(this._startRepeatCount){
this.repeatCount=this._startRepeatCount;
this._startRepeatCount=0;
}
if(this._animSequence){
this._animSequence._playNext();
}
}
}
}
}
}});
dojo.provide("dojo.animation.AnimationSequence");
dojo.deprecated("dojo.animation.AnimationSequence is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
dojo.animation.AnimationSequence=function(_24e){
this._anims=[];
this.repeatCount=_24e||0;
};
dojo.lang.extend(dojo.animation.AnimationSequence,{repeatCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){
for(var i=0;i<arguments.length;i++){
this._anims.push(arguments[i]);
arguments[i]._animSequence=this;
}
},remove:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._anims[i]._animSequence=null;
this._anims.splice(i,1);
break;
}
}
},removeAll:function(){
for(var i=0;i<this._anims.length;i++){
this._anims[i]._animSequence=null;
}
this._anims=[];
this._currAnim=-1;
},clear:function(){
this.removeAll();
},play:function(_253){
if(this._anims.length==0){
return;
}
if(_253||!this._anims[this._currAnim]){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
if(this._currAnim==0){
var e={type:"begin",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onBegin=="function"){
this.onBegin(e);
}
}
this._anims[this._currAnim].play(_253);
}
},pause:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].pause();
}
},playPause:function(){
if(this._anims.length==0){
return;
}
if(this._currAnim==-1){
this._currAnim=0;
}
if(this._anims[this._currAnim]){
this._anims[this._currAnim].playPause();
}
},stop:function(){
if(this._anims[this._currAnim]){
this._anims[this._currAnim].stop();
}
},status:function(){
if(this._anims[this._currAnim]){
return this._anims[this._currAnim].status();
}else{
return "stopped";
}
},_setCurrent:function(anim){
for(var i=0;i<this._anims.length;i++){
if(this._anims[i]==anim){
this._currAnim=i;
break;
}
}
},_playNext:function(){
if(this._currAnim==-1||this._anims.length==0){
return;
}
this._currAnim++;
if(this._anims[this._currAnim]){
var e={type:"next",animation:this._anims[this._currAnim]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onNext=="function"){
this.onNext(e);
}
this._anims[this._currAnim].play(true);
}else{
var e={type:"end",animation:this._anims[this._anims.length-1]};
if(typeof this.handler=="function"){
this.handler(e);
}
if(typeof this.onEnd=="function"){
this.onEnd(e);
}
if(this.repeatCount>0){
this._currAnim=0;
this.repeatCount--;
this._anims[this._currAnim].play(true);
}else{
if(this.repeatCount==-1){
this._currAnim=0;
this._anims[this._currAnim].play(true);
}else{
this._currAnim=-1;
}
}
}
}});
dojo.kwCompoundRequire({common:["dojo.animation.AnimationEvent","dojo.animation.Animation","dojo.animation.AnimationSequence"]});
dojo.provide("dojo.animation.*");
dojo.deprecated("dojo.Animation.* is slated for removal in 0.5; use dojo.lfx.* instead.","0.5");
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 _25c=0;
this.element=a[_25c]||null;
this.atEnd=function(){
return (_25c>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_25c++];
return this.element;
};
this.map=function(fn,_25e){
var s=_25e||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(){
_25c=0;
this.element=a[_25c];
};
};
dojo.collections.DictionaryIterator=function(obj){
var a=[];
var _264={};
for(var p in obj){
if(!_264[p]){
a.push(obj[p]);
}
}
var _266=0;
this.element=a[_266]||null;
this.atEnd=function(){
return (_266>=a.length);
};
this.get=function(){
if(this.atEnd()){
return null;
}
this.element=a[_266++];
return this.element;
};
this.map=function(fn,_268){
var s=_268||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(){
_266=0;
this.element=a[_266];
};
};
dojo.provide("dojo.collections.ArrayList");
dojo.collections.ArrayList=function(arr){
var _26d=[];
if(arr){
_26d=_26d.concat(arr);
}
this.count=_26d.length;
this.add=function(obj){
_26d.push(obj);
this.count=_26d.length;
};
this.addRange=function(a){
if(a.getIterator){
var e=a.getIterator();
while(!e.atEnd()){
this.add(e.get());
}
this.count=_26d.length;
}else{
for(var i=0;i<a.length;i++){
_26d.push(a[i]);
}
this.count=_26d.length;
}
};
this.clear=function(){
_26d.splice(0,_26d.length);
this.count=0;
};
this.clone=function(){
return new dojo.collections.ArrayList(_26d);
};
this.contains=function(obj){
for(var i=0;i<_26d.length;i++){
if(_26d[i]==obj){
return true;
}
}
return false;
};
this.forEach=function(fn,_275){
var s=_275||dj_global;
if(Array.forEach){
Array.forEach(_26d,fn,s);
}else{
for(var i=0;i<_26d.length;i++){
fn.call(s,_26d[i],i,_26d);
}
}
};
this.getIterator=function(){
return new dojo.collections.Iterator(_26d);
};
this.indexOf=function(obj){
for(var i=0;i<_26d.length;i++){
if(_26d[i]==obj){
return i;
}
}
return -1;
};
this.insert=function(i,obj){
_26d.splice(i,0,obj);
this.count=_26d.length;
};
this.item=function(i){
return _26d[i];
};
this.remove=function(obj){
var i=this.indexOf(obj);
if(i>=0){
_26d.splice(i,1);
}
this.count=_26d.length;
};
this.removeAt=function(i){
_26d.splice(i,1);
this.count=_26d.length;
};
this.reverse=function(){
_26d.reverse();
};
this.sort=function(fn){
if(fn){
_26d.sort(fn);
}else{
_26d.sort();
}
};
this.setByIndex=function(i,obj){
_26d[i]=obj;
this.count=_26d.length;
};
this.toArray=function(){
return [].concat(_26d);
};
this.toString=function(_283){
return _26d.join((_283||","));
};
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_285){
var _286=window,_287=2;
if(!dojo.lang.isFunction(func)){
_286=func;
func=_285;
_285=arguments[2];
_287++;
}
if(dojo.lang.isString(func)){
func=_286[func];
}
var args=[];
for(var i=_287;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_286,args);
},_285);
};
dojo.lang.clearTimeout=function(_28a){
dojo.global().clearTimeout(_28a);
};
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(_293,_294,_295){
with(dojo.parseObjPath(_293,_294,_295)){
return dojo.evalProp(prop,obj,_295);
}
};
dojo.lang.setObjPathValue=function(_296,_297,_298,_299){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_299=true;
}
with(dojo.parseObjPath(_296,_298,_299)){
if(obj&&(_299||(prop in obj))){
obj[prop]=_297;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_29a,_29b,init,_29d){
if((dojo.lang.isFunction(_29d))||((!_29d)&&(!dojo.lang.isFunction(init)))){
var temp=_29d;
_29d=init;
init=temp;
}
var _29f=[];
if(dojo.lang.isArray(_29b)){
_29f=_29b;
_29b=_29f.shift();
}
if(!init){
init=dojo.evalObjPath(_29a,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_29b?_29b.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _29b();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_29f;
for(var i=0,l=_29f.length;i<l;i++){
dojo.lang.extend(ctor,_29f[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_29a;
if(dojo.lang.isArray(_29d)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_29d));
}else{
dojo.lang.extend(ctor,(_29d)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _2a4=dojo.parseObjPath(_29a,null,true);
_2a4.obj[_2a4.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(_2aa,_2ab,args){
var _2ad,_2ae=this.___proto;
this.___proto=_2aa;
try{
_2ad=_2aa[_2ab].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_2ae;
}
return _2ad;
},_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(_2be){
if(!dojo.lang.inArray(this.acceptedTypes,"*")){
for(var i=0;i<_2be.length;i++){
if(!dojo.lang.inArray(this.acceptedTypes,_2be[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(_2c5){
},dropTargets:[],registerDropTarget:function(_2c6){
},lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){
},onMouseOut:function(){
},onMouseMove:function(){
},onMouseUp:function(){
}});
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 _2cb=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_2cb++;
break;
}
}
return _2cb==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_2cf){
var _2d0=dojo.lang.isString(arr);
if(_2d0){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_2cf)){
_2cf=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_2cf){
var _2d1=obj;
obj=_2cf;
_2cf=_2d1;
}
}
if(Array.map){
var _2d2=Array.map(arr,_2cf,obj);
}else{
var _2d2=[];
for(var i=0;i<arr.length;++i){
_2d2.push(_2cf.call(obj,arr[i]));
}
}
if(_2d0){
return _2d2.join("");
}else{
return _2d2;
}
},reduce:function(arr,_2d5,obj,_2d7){
var _2d8=_2d5;
if(arguments.length==2){
_2d7=_2d5;
_2d8=arr[0];
arr=arr.slice(1);
}else{
if(arguments.length==3){
if(dojo.lang.isFunction(obj)){
_2d7=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_2d7;
_2d7=obj;
obj=tmp;
}
}
}
var ob=obj||dj_global;
dojo.lang.map(arr,function(val){
_2d8=_2d7.call(ob,_2d8,val);
});
return _2d8;
},forEach:function(_2dc,_2dd,_2de){
if(dojo.lang.isString(_2dc)){
_2dc=_2dc.split("");
}
if(Array.forEach){
Array.forEach(_2dc,_2dd,_2de);
}else{
if(!_2de){
_2de=dj_global;
}
for(var i=0,l=_2dc.length;i<l;i++){
_2dd.call(_2de,_2dc[i],i,_2dc);
}
}
},_everyOrSome:function(_2e1,arr,_2e3,_2e4){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_2e1?"every":"some"](arr,_2e3,_2e4);
}else{
if(!_2e4){
_2e4=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _2e7=_2e3.call(_2e4,arr[i],i,arr);
if(_2e1&&!_2e7){
return false;
}else{
if((!_2e1)&&(_2e7)){
return true;
}
}
}
return Boolean(_2e1);
}
},every:function(arr,_2e9,_2ea){
return this._everyOrSome(true,arr,_2e9,_2ea);
},some:function(arr,_2ec,_2ed){
return this._everyOrSome(false,arr,_2ec,_2ed);
},filter:function(arr,_2ef,_2f0){
var _2f1=dojo.lang.isString(arr);
if(_2f1){
arr=arr.split("");
}
var _2f2;
if(Array.filter){
_2f2=Array.filter(arr,_2ef,_2f0);
}else{
if(!_2f0){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_2f0=dj_global;
}
_2f2=[];
for(var i=0;i<arr.length;i++){
if(_2ef.call(_2f0,arr[i],i,arr)){
_2f2.push(arr[i]);
}
}
}
if(_2f1){
return _2f2.join("");
}else{
return _2f2;
}
},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(_2f7,_2f8){
var _2f9=[];
for(var i=_2f8||0;i<_2f7.length;i++){
_2f9.push(_2f7[i]);
}
return _2f9;
}});
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,_2fc){
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 _2ff=dl.nameAnonFunc(args[2],ao.adviceObj,_2fc);
ao.adviceFunc=_2ff;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _2ff=dl.nameAnonFunc(args[0],ao.srcObj,_2fc);
ao.srcFunc=_2ff;
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 _2ff=dl.nameAnonFunc(args[1],dj_global,_2fc);
ao.srcFunc=_2ff;
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 _2ff=dl.nameAnonFunc(args[3],dj_global,_2fc);
ao.adviceObj=dj_global;
ao.adviceFunc=_2ff;
}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 _2ff=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2fc);
ao.aroundFunc=_2ff;
}
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 _301={};
for(var x in ao){
_301[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);
}
_301.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_301));
});
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 _309;
if((arguments.length==1)&&(typeof a1=="object")){
_309=a1;
}else{
_309={srcObj:a1,srcFunc:a2};
}
_309.adviceFunc=function(){
var _30a=[];
for(var x=0;x<arguments.length;x++){
_30a.push(arguments[x]);
}
dojo.debug("("+_309.srcObj+")."+_309.srcFunc,":",_30a.join(", "));
};
this.kwConnect(_309);
};
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(_312,_313){
var fn=(_313)?"disconnect":"connect";
if(typeof _312["srcFunc"]=="function"){
_312.srcObj=_312["srcObj"]||dj_global;
var _315=dojo.lang.nameAnonFunc(_312.srcFunc,_312.srcObj,true);
_312.srcFunc=_315;
}
if(typeof _312["adviceFunc"]=="function"){
_312.adviceObj=_312["adviceObj"]||dj_global;
var _315=dojo.lang.nameAnonFunc(_312.adviceFunc,_312.adviceObj,true);
_312.adviceFunc=_315;
}
_312.srcObj=_312["srcObj"]||dj_global;
_312.adviceObj=_312["adviceObj"]||_312["targetObj"]||dj_global;
_312.adviceFunc=_312["adviceFunc"]||_312["targetFunc"];
return dojo.event[fn](_312);
};
this.kwConnect=function(_316){
return this._kwConnectImpl(_316,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(_319){
return this._kwConnectImpl(_319,true);
};
};
dojo.event.MethodInvocation=function(_31a,obj,args){
this.jp_=_31a;
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,_322){
this.object=obj||dj_global;
this.methodname=_322;
this.methodfunc=this.object[_322];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_324){
if(!obj){
obj=dj_global;
}
var ofn=obj[_324];
if(!ofn){
ofn=obj[_324]=function(){
};
if(!obj[_324]){
dojo.raise("Cannot set do-nothing method on that object "+_324);
}
}else{
if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){
return null;
}
}
var _326=_324+"$joinpoint";
var _327=_324+"$joinpoint$method";
var _328=obj[_326];
if(!_328){
var _329=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_329=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_326,_327,_324]);
}
}
var _32a=ofn.length;
obj[_327]=ofn;
_328=obj[_326]=new dojo.event.MethodJoinPoint(obj,_327);
if(!_329){
obj[_324]=function(){
return _328.run.apply(_328,arguments);
};
}else{
obj[_324]=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 _328.run.apply(_328,args);
};
}
obj[_324].__preJoinArity=_32a;
}
return _328;
};
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 _330=[];
for(var x=0;x<args.length;x++){
_330[x]=args[x];
}
var _332=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _334=marr[0]||dj_global;
var _335=marr[1];
if(!_334[_335]){
dojo.raise("function \""+_335+"\" does not exist on \""+_334+"\"");
}
var _336=marr[2]||dj_global;
var _337=marr[3];
var msg=marr[6];
var _339=marr[7];
if(_339>-1){
if(_339==0){
return;
}
marr[7]--;
}
var _33a;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _334[_335].apply(_334,to.args);
}};
to.args=_330;
var _33c=parseInt(marr[4]);
var _33d=((!isNaN(_33c))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _340=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;
_332(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_337){
_336[_337].call(_336,to);
}else{
if((_33d)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_334[_335].call(_334,to);
}else{
_334[_335].apply(_334,args);
}
},_33c);
}else{
if(msg){
_334[_335].call(_334,to);
}else{
_334[_335].apply(_334,args);
}
}
}
};
var _343=function(){
if(this.squelch){
try{
return _332.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _332.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_343);
}
var _344;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_344=mi.proceed();
}else{
if(this.methodfunc){
_344=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()),_343);
}
return (this.methodfunc)?_344: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(_349,_34a,_34b,_34c,_34d,_34e,once,_350,rate,_352,_353){
var arr=this.getArr(_34d);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_349,_34a,_34b,_34c,_350,rate,_352,_353];
if(once){
if(this.hasAdvice(_349,_34a,_34d,arr)>=0){
return;
}
}
if(_34e=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_356,_357,_358,arr){
if(!arr){
arr=this.getArr(_358);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _357=="object")?(new String(_357)).toString():_357;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_356)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_35e,_35f,_360,once){
var arr=this.getArr(_360);
var ind=this.hasAdvice(_35e,_35f,_360,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_35e,_35f,_360,arr);
}
return true;
}});
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_364){
if(!this.topics[_364]){
this.topics[_364]=new this.TopicImpl(_364);
}
return this.topics[_364];
};
this.registerPublisher=function(_365,obj,_367){
var _365=this.getTopic(_365);
_365.registerPublisher(obj,_367);
};
this.subscribe=function(_368,obj,_36a){
var _368=this.getTopic(_368);
_368.subscribe(obj,_36a);
};
this.unsubscribe=function(_36b,obj,_36d){
var _36b=this.getTopic(_36b);
_36b.unsubscribe(obj,_36d);
};
this.destroy=function(_36e){
this.getTopic(_36e).destroy();
delete this.topics[_36e];
};
this.publishApply=function(_36f,args){
var _36f=this.getTopic(_36f);
_36f.sendMessage.apply(_36f,args);
};
this.publish=function(_371,_372){
var _371=this.getTopic(_371);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_371.sendMessage.apply(_371,args);
};
};
dojo.event.topic.TopicImpl=function(_375){
this.topicName=_375;
this.subscribe=function(_376,_377){
var tf=_377||_376;
var to=(!_377)?dj_global:_376;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_37a,_37b){
var tf=(!_37b)?_37a:_37b;
var to=(!_37b)?null:_37a;
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(_37e){
this._getJoinPoint().squelch=_37e;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_37f,_380){
dojo.event.connect(_37f,_380,this,"sendMessage");
};
this.sendMessage=function(_381){
};
};
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(_384){
var na;
var tna;
if(_384){
tna=_384.all||_384.getElementsByTagName("*");
na=[_384];
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 _388={};
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 _38d=0;
this.normalizedEventName=function(_38e){
switch(_38e){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _38e;
break;
default:
var lcn=_38e.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,_393){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_393.length;x++){
node.__clobberAttrs__.push(_393[x]);
}
};
this.removeListener=function(node,_396,fp,_398){
if(!_398){
var _398=false;
}
_396=dojo.event.browser.normalizedEventName(_396);
if(_396=="key"){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_398);
}
_396="keypress";
}
if(node.removeEventListener){
node.removeEventListener(_396,fp,_398);
}
};
this.addListener=function(node,_39a,fp,_39c,_39d){
if(!node){
return;
}
if(!_39c){
var _39c=false;
}
_39a=dojo.event.browser.normalizedEventName(_39a);
if(_39a=="key"){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_39c,_39d);
}
_39a="keypress";
}
if(!_39d){
var _39e=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_39c){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_39e=fp;
}
if(node.addEventListener){
node.addEventListener(_39a,_39e,_39c);
return _39e;
}else{
_39a="on"+_39a;
if(typeof node[_39a]=="function"){
var _3a1=node[_39a];
node[_39a]=function(e){
_3a1(e);
return _39e(e);
};
}else{
node[_39a]=_39e;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_39a]);
}
return _39e;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_3a4,_3a5){
if(typeof _3a4!="function"){
dojo.raise("listener not a function: "+_3a4);
}
dojo.event.browser.currentEvent.currentTarget=_3a5;
return _3a4.call(_3a5,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,_3a8){
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 _3aa=evt.keyCode;
if(_3aa>=65&&_3aa<=90&&evt.shiftKey==false){
_3aa+=32;
}
if(_3aa>=1&&_3aa<=26&&evt.ctrlKey){
_3aa+=96;
}
evt.key=String.fromCharCode(_3aa);
}
}
}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 _3aa=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_3aa+=32;
}
evt.key=String.fromCharCode(_3aa);
}
}
}
}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=(_3a8?_3a8: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 _3ac=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_3ac.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_3ac.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.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,_3b3){
return (new RegExp("(^|\\s+)"+_3b3+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_3b5){
_3b5+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_3b5);
};
dojo.html.addClass=function(node,_3b7){
if(dojo.html.hasClass(node,_3b7)){
return false;
}
_3b7=(dojo.html.getClass(node)+" "+_3b7).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_3b7);
};
dojo.html.setClass=function(node,_3b9){
node=dojo.byId(node);
var cs=new String(_3b9);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_3b9);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_3bc,_3bd){
try{
if(!_3bd){
var _3be=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_3bc+"(\\s+|$)"),"$1$2");
}else{
var _3be=dojo.html.getClass(node).replace(_3bc,"");
}
dojo.html.setClass(node,_3be);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_3c0,_3c1){
dojo.html.removeClass(node,_3c1);
dojo.html.addClass(node,_3c0);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_3c2,_3c3,_3c4,_3c5,_3c6){
_3c6=false;
var _3c7=dojo.doc();
_3c3=dojo.byId(_3c3)||_3c7;
var _3c8=_3c2.split(/\s+/g);
var _3c9=[];
if(_3c5!=1&&_3c5!=2){
_3c5=0;
}
var _3ca=new RegExp("(\\s|^)(("+_3c8.join(")|(")+"))(\\s|$)");
var _3cb=_3c8.join(" ").length;
var _3cc=[];
if(!_3c6&&_3c7.evaluate){
var _3cd=".//"+(_3c4||"*")+"[contains(";
if(_3c5!=dojo.html.classMatchType.ContainsAny){
_3cd+="concat(' ',@class,' '), ' "+_3c8.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_3c5==2){
_3cd+=" and string-length(@class)="+_3cb+"]";
}else{
_3cd+="]";
}
}else{
_3cd+="concat(' ',@class,' '), ' "+_3c8.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _3ce=_3c7.evaluate(_3cd,_3c3,null,XPathResult.ANY_TYPE,null);
var _3cf=_3ce.iterateNext();
while(_3cf){
try{
_3cc.push(_3cf);
_3cf=_3ce.iterateNext();
}
catch(e){
break;
}
}
return _3cc;
}else{
if(!_3c4){
_3c4="*";
}
_3cc=_3c3.getElementsByTagName(_3c4);
var node,i=0;
outer:
while(node=_3cc[i++]){
var _3d2=dojo.html.getClasses(node);
if(_3d2.length==0){
continue outer;
}
var _3d3=0;
for(var j=0;j<_3d2.length;j++){
if(_3ca.test(_3d2[j])){
if(_3c5==dojo.html.classMatchType.ContainsAny){
_3c9.push(node);
continue outer;
}else{
_3d3++;
}
}else{
if(_3c5==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_3d3==_3c8.length){
if((_3c5==dojo.html.classMatchType.IsOnly)&&(_3d3==_3d2.length)){
_3c9.push(node);
}else{
if(_3c5==dojo.html.classMatchType.ContainsAll){
_3c9.push(node);
}
}
}
}
return _3c9;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_3d5){
var arr=_3d5.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(_3d9){
return _3d9.replace(/([A-Z])/g,"-$1").toLowerCase();
};
if(dojo.render.html.ie){
dojo.html.getComputedStyle=function(node,_3db,_3dc){
node=dojo.byId(node);
if(!node||!node.currentStyle){
return _3dc;
}
return node.currentStyle[dojo.html.toCamelCase(_3db)];
};
dojo.html.getComputedStyles=function(node){
return node.currentStyle;
};
}else{
dojo.html.getComputedStyle=function(node,_3df,_3e0){
node=dojo.byId(node);
if(!node||!node.style){
return _3e0;
}
var s=document.defaultView.getComputedStyle(node,null);
return (s&&s[dojo.html.toCamelCase(_3df)])||"";
};
dojo.html.getComputedStyles=function(node){
return document.defaultView.getComputedStyle(node,null);
};
}
dojo.html.getStyleProperty=function(node,_3e4){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_3e4)]:undefined);
};
dojo.html.getStyle=function(node,_3e6){
var _3e7=dojo.html.getStyleProperty(node,_3e6);
return (_3e7?_3e7:dojo.html.getComputedStyle(node,_3e6));
};
dojo.html.setStyle=function(node,_3e9,_3ea){
node=dojo.byId(node);
if(node&&node.style){
var _3eb=dojo.html.toCamelCase(_3e9);
node.style[_3eb]=_3ea;
}
};
dojo.html.setStyleText=function(_3ec,text){
try{
_3ec.style.cssText=text;
}
catch(e){
_3ec.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_3ee,_3ef){
if(!_3ef.style.cssText){
_3ee.setAttribute("style",_3ef.getAttribute("style"));
}else{
_3ee.style.cssText=_3ef.style.cssText;
}
dojo.html.addClass(_3ee,dojo.html.getClass(_3ef));
};
dojo.html.getUnitValue=function(node,_3f1,_3f2){
var s=dojo.html.getComputedStyle(node,_3f1);
if((!s)||((s=="auto")&&(_3f2))){
return {value:0,units:"px"};
}
var _3f4=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_3f4){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_3f4[1]),units:_3f4[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
if(dojo.render.html.ie){
dojo.html.toPixelValue=function(_3f5,_3f6){
if(!_3f6){
return 0;
}
if(_3f6.slice(-2)=="px"){
return parseFloat(_3f6);
}
var _3f7=0;
with(_3f5){
var _3f8=style.left;
var _3f9=runtimeStyle.left;
runtimeStyle.left=currentStyle.left;
try{
style.left=_3f6||0;
_3f7=style.pixelLeft;
style.left=_3f8;
runtimeStyle.left=_3f9;
}
catch(e){
}
}
return _3f7;
};
}else{
dojo.html.toPixelValue=function(_3fa,_3fb){
return (_3fb&&(_3fb.slice(-2)=="px")?parseFloat(_3fb):0);
};
}
dojo.html.getPixelValue=function(node,_3fd,_3fe){
return dojo.html.toPixelValue(node,dojo.html.getComputedStyle(node,_3fd));
};
dojo.html.setPositivePixelValue=function(node,_400,_401){
if(isNaN(_401)){
return false;
}
node.style[_400]=Math.max(0,_401)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_402,_403,_404){
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){
_404=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_404=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_402+" { "+_403+" }";
return dojo.html.styleSheet.insertRule(rule,_404);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_402,_403,_404);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_406){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_406){
_406=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_406);
}
}else{
if(document.styleSheets[0]){
if(!_406){
_406=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_406);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_409,_40a){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _40b=dojo.hostenv.getText(URI,false,_40a);
if(_40b===null){
return;
}
_40b=dojo.html.fixPathsInCssText(_40b,URI);
if(_409){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_40b)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _410=doc.getElementsByTagName("style");
for(var i=0;i<_410.length;i++){
if(_410[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _411=dojo.html.insertCssText(_40b,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_40b,"nodeRef":_411});
if(_411&&djConfig.isDebug){
_411.setAttribute("dbgHref",URI);
}
return _411;
};
dojo.html.insertCssText=function(_412,doc,URI){
if(!_412){
return;
}
if(!doc){
doc=document;
}
if(URI){
_412=dojo.html.fixPathsInCssText(_412,URI);
}
var _415=doc.createElement("style");
_415.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(_415);
}
if(_415.styleSheet){
var _417=function(){
try{
_415.styleSheet.cssText=_412;
}
catch(e){
dojo.debug(e);
}
};
if(_415.styleSheet.disabled){
setTimeout(_417,10);
}else{
_417();
}
}else{
var _418=doc.createTextNode(_412);
_415.appendChild(_418);
}
return _415;
};
dojo.html.fixPathsInCssText=function(_419,URI){
if(!_419||!URI){
return;
}
var _41b,str="",url="",_41e="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _41f=new RegExp("url\\(\\s*("+_41e+")\\s*\\)");
var _420=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_41e+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _421=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_41e+")['\"]");
while(_41b=_421.exec(_419)){
url=_41b[2].replace(regexTrim,"$2");
if(!_420.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_419.substring(0,_41b.index)+"AlphaImageLoader("+_41b[1]+"src='"+url+"'";
_419=_419.substr(_41b.index+_41b[0].length);
}
_419=str+_419;
str="";
}
while(_41b=_41f.exec(_419)){
url=_41b[1].replace(regexTrim,"$2");
if(!_420.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_419.substring(0,_41b.index)+"url("+url+")";
_419=_419.substr(_41b.index+_41b[0].length);
}
return str+_419;
};
dojo.html.setActiveStyleSheet=function(_422){
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")==_422){
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 _42e={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 _42e){
if(_42e[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.display");
dojo.html._toggle=function(node,_431,_432){
node=dojo.byId(node);
_432(node,!_431(node));
return _431(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,_437){
dojo.html[(_437?"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,_43d){
dojo.html.setStyle(node,"display",((_43d instanceof String||typeof _43d=="string")?_43d:(_43d?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,_441){
dojo.html.setStyle(node,"visibility",((_441 instanceof String||typeof _441=="string")?_441:(_441?"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,_445,_446){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_446){
if(_445>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_445=0.999999;
}
}else{
if(_445<0){
_445=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="+_445*100+")";
}
}
node.style.filter="Alpha(Opacity="+_445*100+")";
}else{
if(h.moz){
node.style.opacity=_445;
node.style.MozOpacity=_445;
}else{
if(h.safari){
node.style.opacity=_445;
node.style.KhtmlOpacity=_445;
}else{
node.style.opacity=_445;
}
}
}
};
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 _452=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_452+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _452;
};
dojo.html.setStyleAttributes=function(node,_455){
node=dojo.byId(node);
var _456=_455.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_456.length;i++){
var _458=_456[i].split(":");
var name=_458[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _45a=_458[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_45a);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_45a});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_45a});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_45a});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_45a});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_45a;
}
}
};
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,_45c,_45d){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_45d){
_45d=bs.CONTENT_BOX;
}
var _460=2;
var _461;
switch(_45d){
case bs.MARGIN_BOX:
_461=3;
break;
case bs.BORDER_BOX:
_461=2;
break;
case bs.PADDING_BOX:
default:
_461=1;
break;
case bs.CONTENT_BOX:
_461=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){
_460=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 _465;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_465=db;
}else{
_465=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 _467=node;
do{
var n=_467["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_467["offsetTop"];
ret.y+=isNaN(m)?0:m;
_467=_467.offsetParent;
}while((_467!=_465)&&(_467!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_45c){
var _46a=dojo.html.getScroll();
ret.y+=_46a.top;
ret.x+=_46a.left;
}
var _46b=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_460>_461){
for(var i=_461;i<_460;++i){
ret.y+=_46b[i](node,"top");
ret.x+=_46b[i](node,"left");
}
}else{
if(_460<_461){
for(var i=_461;i>_460;--i){
ret.y-=_46b[i-1](node,"top");
ret.x-=_46b[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,_46f,_470){
var _471=0;
for(var x=0;x<_46f.length;x++){
_471+=dojo.html.getPixelValue(node,_46f[x],_470);
}
return _471;
};
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 _47e=dojo.html.getBorder(node);
return {width:pad.width+_47e.width,height:pad.height+_47e.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 _483;
if(!h.ie){
_483=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_483){
_483=dojo.html.getStyle(node,"box-sizing");
}
}
return (_483?_483: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 _488=dojo.html.getBorder(node);
return {width:box.width-_488.width,height:box.height-_488.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _48a=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_48a.width,height:node.offsetHeight-_48a.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _48d=0;
var _48e=0;
var isbb=dojo.html.isBorderBox(node);
var _490=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_48d=args.width+_490.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_48d);
}
if(typeof args.height!="undefined"){
_48e=args.height+_490.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_48e);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _493=dojo.html.getBorderBox(node);
var _494=dojo.html.getMargin(node);
return {width:_493.width+_494.width,height:_493.height+_494.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _497=0;
var _498=0;
var isbb=dojo.html.isBorderBox(node);
var _49a=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _49b=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_497=args.width-_49a.width;
_497-=_49b.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_497);
}
if(typeof args.height!="undefined"){
_498=args.height-_49a.height;
_498-=_49b.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_498);
}
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(_4a0,_4a1,_4a2){
if(_4a0 instanceof Array||typeof _4a0=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_4a0.length<4){
_4a0.push(0);
}
while(_4a0.length>4){
_4a0.pop();
}
var ret={left:_4a0[0],top:_4a0[1],width:_4a0[2],height:_4a0[3]};
}else{
if(!_4a0.nodeType&&!(_4a0 instanceof String||typeof _4a0=="string")&&("width" in _4a0||"height" in _4a0||"left" in _4a0||"x" in _4a0||"top" in _4a0||"y" in _4a0)){
var ret={left:_4a0.left||_4a0.x||0,top:_4a0.top||_4a0.y||0,width:_4a0.width||0,height:_4a0.height||0};
}else{
var node=dojo.byId(_4a0);
var pos=dojo.html.abs(node,_4a1,_4a2);
var _4a6=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_4a6.width,height:_4a6.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_4a8){
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,_4ab){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_4ad){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_4af){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_4b1){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_4b3){
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,_4bd){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_4bf){
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 _4c3=dp+"Idx_"+(this.dsCounter++);
ds.dragSourceId=_4c3;
this.dragSources[_4c3]=ds;
ds.domNode.setAttribute(dp,_4c3);
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 _4c6=ds.dragSourceId;
delete ds.dragSourceId;
delete this.dragSources[_4c6];
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 _4c9=dojo.lang.find(this.dropTargets,dt,true);
if(_4c9>=0){
this.dropTargets.splice(_4c9,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 _4cf=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target;
if(dojo.html.isTag(_4cf,"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,_4d2){
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(_4d3){
var ret=null;
if(!_4d3){
return;
}
if(this.currentDropTarget){
e.dragObject=_4d3;
var ce=this.currentDropTarget.domNode.childNodes;
if(ce.length>0){
e.dropTarget=ce[0];
while(e.dropTarget==_4d3.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{
_4d3.dragSource.onDragEnd(e);
}
catch(err){
var _4d6={};
for(var i in e){
if(i=="type"){
_4d6.type="mouseup";
continue;
}
_4d6[i]=e[i];
}
_4d3.dragSource.onDragEnd(_4d6);
}
},function(){
_4d3.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(_4df){
var tn=_4df.domNode;
if(!tn||!_4df.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],_4df]);
},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(_4e6){
if(!_4e6){
return;
}
var tdo=_4e6.onDragStart(e);
if(tdo){
tdo.onDragStart(e);
tdo.dragOffset.y+=dy;
tdo.dragOffset.x+=dx;
tdo.dragSource=_4e6;
this.dragObjects.push(tdo);
}
},this);
this.previousDropTarget=null;
this.cacheTargetLocations();
}
dojo.lang.forEach(this.dragObjects,function(_4e8){
if(_4e8){
_4e8.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 _4eb=this.findBestTarget(e);
if(_4eb.target===null){
if(this.currentDropTarget){
this.currentDropTarget.onDragOut(e);
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget=null;
}
this.dropAcceptable=false;
return;
}
if(this.currentDropTarget!==_4eb.target){
if(this.currentDropTarget){
this.previousDropTarget=this.currentDropTarget;
this.currentDropTarget.onDragOut(e);
}
this.currentDropTarget=_4eb.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 _4ed=this;
var _4ee=new Object();
_4ee.target=null;
_4ee.points=null;
dojo.lang.every(this.dropTargetDimensions,function(_4ef){
if(!_4ed.isInsideBox(e,_4ef)){
return true;
}
_4ee.target=_4ef[2];
_4ee.points=_4ef;
return Boolean(_4ed.nestedTargets);
});
return _4ee;
},isInsideBox:function(e,_4f1){
if((e.pageX>_4f1[0][0])&&(e.pageX<_4f1[1][0])&&(e.pageY>_4f1[0][1])&&(e.pageY<_4f1[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(_4f6){
return dojo.html.getDocumentWindow(_4f6.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 _4fe=dojo.html.getCursorPosition(e);
with(dojo.html){
var _4ff=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _501=_4ff.x+(bb.width/2);
var _502=_4ff.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_4fe.x<_501?WEST:EAST)|(_4fe.y<_502?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(_503,e){
_503=dojo.byId(_503);
var _505=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_503);
var _507=dojo.html.getAbsolutePosition(_503,true,dojo.html.boxSizing.BORDER_BOX);
var top=_507.y;
var _509=top+bb.height;
var left=_507.x;
var _50b=left+bb.width;
return (_505.x>=left&&_505.x<=_50b&&_505.y>=top&&_505.y<=_509);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _50d="";
if(node==null){
return _50d;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _50f="unknown";
try{
_50f=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_50f){
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":
_50d+="\n";
_50d+=dojo.html.renderedTextContent(node.childNodes[i]);
_50d+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_50d+="\n";
}else{
_50d+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _511="unknown";
try{
_511=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_511){
case "capitalize":
var _512=text.split(" ");
for(var i=0;i<_512.length;i++){
_512[i]=_512[i].charAt(0).toUpperCase()+_512[i].substring(1);
}
text=_512.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_511){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_50d)){
text.replace(/^\s/,"");
}
break;
}
_50d+=text;
break;
default:
break;
}
}
return _50d;
};
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 _516="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_516="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_516="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_516="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _517=null;
switch(_516){
case "cell":
_517=tn.getElementsByTagName("tr")[0];
break;
case "row":
_517=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_517=tn.getElementsByTagName("table")[0];
break;
default:
_517=tn;
break;
}
var _518=[];
for(var x=0;x<_517.childNodes.length;x++){
_518.push(_517.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _518;
};
dojo.html.placeOnScreen=function(node,_51b,_51c,_51d,_51e,_51f,_520){
if(_51b instanceof Array||typeof _51b=="array"){
_520=_51f;
_51f=_51e;
_51e=_51d;
_51d=_51c;
_51c=_51b[1];
_51b=_51b[0];
}
if(_51f instanceof String||typeof _51f=="string"){
_51f=_51f.split(",");
}
if(!isNaN(_51d)){
_51d=[Number(_51d),Number(_51d)];
}else{
if(!(_51d instanceof Array||typeof _51d=="array")){
_51d=[0,0];
}
}
var _521=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _523=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_523;
if(!(_51f instanceof Array||typeof _51f=="array")){
_51f=["TL"];
}
var _527,_528,_529=Infinity,_52a;
for(var _52b=0;_52b<_51f.length;++_52b){
var _52c=_51f[_52b];
var _52d=true;
var tryX=_51b-(_52c.charAt(1)=="L"?0:w)+_51d[0]*(_52c.charAt(1)=="L"?1:-1);
var tryY=_51c-(_52c.charAt(0)=="T"?0:h)+_51d[1]*(_52c.charAt(0)=="T"?1:-1);
if(_51e){
tryX-=_521.x;
tryY-=_521.y;
}
if(tryX<0){
tryX=0;
_52d=false;
}
if(tryY<0){
tryY=0;
_52d=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_52d=false;
}else{
x=tryX;
}
x=Math.max(_51d[0],x)+_521.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_52d=false;
}else{
y=tryY;
}
y=Math.max(_51d[1],y)+_521.y;
if(_52d){
_527=x;
_528=y;
_529=0;
_52a=_52c;
break;
}else{
var dist=Math.pow(x-tryX-_521.x,2)+Math.pow(y-tryY-_521.y,2);
if(_529>dist){
_529=dist;
_527=x;
_528=y;
_52a=_52c;
}
}
}
if(!_520){
node.style.left=_527+"px";
node.style.top=_528+"px";
}
return {left:_527,top:_528,x:_527,y:_528,dist:_529,corner:_52a};
};
dojo.html.placeOnScreenPoint=function(node,_534,_535,_536,_537){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_534,_535,_536,_537,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_539,_53a,_53b,_53c,_53d){
var best,_53f=Infinity;
_539=dojo.byId(_539);
var _540=_539.style.display;
_539.style.display="";
var mb=dojo.html.getElementBox(_539,_53b);
var _542=mb.width;
var _543=mb.height;
var _544=dojo.html.getAbsolutePosition(_539,true,_53b);
_539.style.display=_540;
for(var _545 in _53c){
var pos,_547,_548;
var _549=_53c[_545];
_547=_544.x+(_545.charAt(1)=="L"?0:_542);
_548=_544.y+(_545.charAt(0)=="T"?0:_543);
pos=dojo.html.placeOnScreen(node,_547,_548,_53a,true,_549,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_53f>pos.dist){
_53f=pos.dist;
best=pos;
}
}
}
if(!_53d){
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 _54b=node.parentNode;
var _54c=_54b.scrollTop+dojo.html.getBorderBox(_54b).height;
var _54d=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_54c<_54d){
_54b.scrollTop+=(_54d-_54c);
}else{
if(_54b.scrollTop>node.offsetTop){
_54b.scrollTop-=(_54b.scrollTop-node.offsetTop);
}
}
}
}
};
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _54e=dojo.global();
var _54f=dojo.doc();
try{
if(_54e["getSelection"]){
if(dojo.render.html.safari){
_54e.getSelection().collapse();
}else{
_54e.getSelection().removeAllRanges();
}
}else{
if(_54f.selection){
if(_54f.selection.empty){
_54f.selection.empty();
}else{
if(_54f.selection.clear){
_54f.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_550){
_550=dojo.byId(_550)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_550.style.MozUserSelect="none";
}else{
if(h.safari){
_550.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_550.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_552){
_552=dojo.byId(_552)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_552.style.MozUserSelect="";
}else{
if(h.safari){
_552.style.KhtmlUserSelect="";
}else{
if(h.ie){
_552.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_554){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_555){
var _556=dojo.global();
var _557=dojo.doc();
_555=dojo.byId(_555);
if(_557["selection"]&&dojo.body()["createTextRange"]){
var _558=_555.createTextRange();
_558.moveStart("character",0);
_558.moveEnd("character",_555.value.length);
_558.select();
}else{
if(_556["getSelection"]){
var _559=_556.getSelection();
_555.setSelectionRange(0,_555.value.length);
}
}
_555.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 _55a=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _55c=oSel.getRangeAt(0);
if(_55c.startContainer==_55c.endContainer&&(_55c.endOffset-_55c.startOffset)==1&&_55c.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_55a=dojo.html.selectionType.CONTROL;
}
}
return _55a;
}
},isCollapsed:function(){
var _55d=dojo.global();
var _55e=dojo.doc();
if(_55e["selection"]){
return _55e.selection.createRange().text=="";
}else{
if(_55d["getSelection"]){
var _55f=_55d.getSelection();
if(dojo.lang.isString(_55f)){
return _55f=="";
}else{
return _55f.isCollapsed||_55f.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _560=dojo.doc().selection.createRange();
if(_560&&_560.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _561=dojo.global().getSelection();
return _561.anchorNode.childNodes[_561.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 _563=dojo.global().getSelection();
if(_563){
var node=_563.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 _565=dojo.global().getSelection();
if(_565){
return _565.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 _566=dojo.global().getSelection();
if(_566&&_566.rangeCount){
var frag=_566.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_569){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_56a){
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(_56f){
var _570=dojo.global();
var _571=dojo.doc();
_56f=dojo.byId(_56f);
if(_571.selection&&dojo.body().createTextRange){
try{
var _572=dojo.body().createControlRange();
_572.addElement(_56f);
_572.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_56f);
}
}else{
if(_570["getSelection"]){
var _573=_570.getSelection();
if(_573["removeAllRanges"]){
var _572=_571.createRange();
_572.selectNode(_56f);
_573.removeAllRanges();
_573.addRange(_572);
}
}
}
},selectElementChildren:function(_574){
var _575=dojo.global();
var _576=dojo.doc();
_574=dojo.byId(_574);
if(_576.selection&&dojo.body().createTextRange){
var _577=dojo.body().createTextRange();
_577.moveToElementText(_574);
_577.select();
}else{
if(_575["getSelection"]){
var _578=_575.getSelection();
if(_578["setBaseAndExtent"]){
_578.setBaseAndExtent(_574,0,_574,_574.innerText.length-1);
}else{
if(_578["selectAllChildren"]){
_578.selectAllChildren(_574);
}
}
}
}
},getBookmark:function(){
var _579;
var _57a=dojo.doc();
if(_57a["selection"]){
var _57b=_57a.selection.createRange();
_579=_57b.getBookmark();
}else{
var _57c;
try{
_57c=dojo.global().getSelection();
}
catch(e){
}
if(_57c){
var _57b=_57c.getRangeAt(0);
_579=_57b.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _579;
},moveToBookmark:function(_57d){
var _57e=dojo.doc();
if(_57e["selection"]){
var _57f=_57e.selection.createRange();
_57f.moveToBookmark(_57d);
_57f.select();
}else{
var _580;
try{
_580=dojo.global().getSelection();
}
catch(e){
}
if(_580&&_580["removeAllRanges"]){
_580.removeAllRanges();
_580.addRange(_57d);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_581){
if(dojo.global()["getSelection"]){
var _582=dojo.global().getSelection();
if(_582.removeAllRanges){
if(_581){
_582.collapseToStart();
}else{
_582.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_581);
}
}else{
if(dojo.doc().selection){
var _583=dojo.doc().selection.createRange();
_583.collapse(_581);
_583.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _584=dojo.doc().selection;
if(_584.type.toUpperCase()!="NONE"){
_584.clear();
}
return _584;
}else{
var _584=dojo.global().getSelection();
for(var i=0;i<_584.rangeCount;i++){
_584.getRangeAt(i).deleteContents();
}
return _584;
}
}});
dojo.provide("dojo.html.iframe");
dojo.html.iframeContentWindow=function(_586){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_586))||dojo.html.iframeContentDocument(_586).__parent__||(_586.name&&document.frames[_586.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_588){
var doc=_588.contentDocument||((_588.contentWindow)&&(_588.contentWindow.document))||((_588.name)&&(document.frames[_588.name])&&(document.frames[_588.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 _58c=dojo.html.getMarginBox(this.domNode);
if(_58c.width==0||_58c.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_58c.width+"px";
this.iframe.style.height=_58c.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _58e=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_58e.width+"px";
height=_58e.height+"px";
left=_58e.left+"px";
top=_58e.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.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(_596){
if(_596){
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(_597,_598){
var rgb=null;
if(dojo.lang.isArray(_597)){
rgb=_597;
}else{
if(_597 instanceof dojo.gfx.color.Color){
rgb=_597.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_597).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_598);
}});
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,_59c){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_59c);
}
if(!_59c){
_59c=0;
}
_59c=Math.min(Math.max(-1,_59c),1);
_59c=((_59c+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_59c));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_5a1){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_5a1));
};
dojo.gfx.color.extractRGB=function(_5a2){
var hex="0123456789abcdef";
_5a2=_5a2.toLowerCase();
if(_5a2.indexOf("rgb")==0){
var _5a4=_5a2.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_5a4.splice(1,3);
return ret;
}else{
var _5a6=dojo.gfx.color.hex2rgb(_5a2);
if(_5a6){
return _5a6;
}else{
return dojo.gfx.color.named[_5a2]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _5a8="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_5a8+"]","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]=_5a8.indexOf(rgb[i].charAt(0))*16+_5a8.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.lfx.Animation");
dojo.lfx.Line=function(_5b1,end){
this.start=_5b1;
this.end=end;
if(dojo.lang.isArray(_5b1)){
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-_5b1;
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,_5c1,_5c2){
if(!_5c2){
_5c2=_5c1;
_5c1=this;
}
_5c2=dojo.lang.hitch(_5c1,_5c2);
var _5c3=this[evt]||function(){
};
this[evt]=function(){
var ret=_5c3.apply(this,arguments);
_5c2.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_5c7){
this.repeatCount=_5c7;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_5c8,_5c9,_5ca,_5cb,_5cc,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_5c8)||(!_5c8&&_5c9.getValue)){
rate=_5cc;
_5cc=_5cb;
_5cb=_5ca;
_5ca=_5c9;
_5c9=_5c8;
_5c8=null;
}else{
if(_5c8.getValue||dojo.lang.isArray(_5c8)){
rate=_5cb;
_5cc=_5ca;
_5cb=_5c9;
_5ca=_5c8;
_5c9=null;
_5c8=null;
}
}
if(dojo.lang.isArray(_5ca)){
this.curve=new dojo.lfx.Line(_5ca[0],_5ca[1]);
}else{
this.curve=_5ca;
}
if(_5c9!=null&&_5c9>0){
this.duration=_5c9;
}
if(_5cc){
this.repeatCount=_5cc;
}
if(rate){
this.rate=rate;
}
if(_5c8){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_5c8[item]){
this.connect(item,_5c8[item]);
}
},this);
}
if(_5cb&&dojo.lang.isFunction(_5cb)){
this.easing=_5cb;
}
};
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(_5cf,_5d0){
if(_5d0){
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(_5cf>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5d0);
}),_5cf);
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 _5d2=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_5d2]);
this.fire("onBegin",[_5d2]);
}
this.fire("handler",["play",_5d2]);
this.fire("onPlay",[_5d2]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _5d3=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_5d3]);
this.fire("onPause",[_5d3]);
return this;
},gotoPercent:function(pct,_5d5){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_5d5){
this.play();
}
return this;
},stop:function(_5d6){
clearTimeout(this._timer);
var step=this._percent/100;
if(_5d6){
step=1;
}
var _5d8=this.curve.getValue(step);
this.fire("handler",["stop",_5d8]);
this.fire("onStop",[_5d8]);
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 _5db=this.curve.getValue(step);
this.fire("handler",["animate",_5db]);
this.fire("onAnimate",[_5db]);
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(_5dc){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _5dd=arguments;
if(_5dd.length==1&&(dojo.lang.isArray(_5dd[0])||dojo.lang.isArrayLike(_5dd[0]))){
_5dd=_5dd[0];
}
dojo.lang.forEach(_5dd,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(_5df,_5e0){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_5df>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5e0);
}),_5df);
return this;
}
if(_5e0||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_5e0);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_5e1){
this.fire("onStop");
this._animsCall("stop",_5e1);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_5e2){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _5e5=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_5e2](args);
},_5e5);
return this;
}});
dojo.lfx.Chain=function(_5e7){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _5e8=arguments;
if(_5e8.length==1&&(dojo.lang.isArray(_5e8[0])||dojo.lang.isArrayLike(_5e8[0]))){
_5e8=_5e8[0];
}
var _5e9=this;
dojo.lang.forEach(_5e8,function(anim,i,_5ec){
this._anims.push(anim);
if(i<_5ec.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(_5ed,_5ee){
if(!this._anims.length){
return this;
}
if(_5ee||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _5ef=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_5ed>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_5ee);
}),_5ed);
return this;
}
if(_5ef){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_5ef.play(null,_5ee);
}
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 _5f0=this._anims[this._currAnim];
if(_5f0){
if(!_5f0._active||_5f0._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _5f1=this._anims[this._currAnim];
if(_5f1){
_5f1.stop();
this.fire("onStop",[this._currAnim]);
}
return _5f1;
},_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(_5f2){
var _5f3=arguments;
if(dojo.lang.isArray(arguments[0])){
_5f3=arguments[0];
}
if(_5f3.length==1){
return _5f3[0];
}
return new dojo.lfx.Combine(_5f3);
};
dojo.lfx.chain=function(_5f4){
var _5f5=arguments;
if(dojo.lang.isArray(arguments[0])){
_5f5=arguments[0];
}
if(_5f5.length==1){
return _5f5[0];
}
return new dojo.lfx.Chain(_5f5);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _5f7;
do{
_5f7=dojo.html.getStyle(node,"background-color");
if(_5f7.toLowerCase()=="rgba(0, 0, 0, 0)"){
_5f7="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_5f7));
if(_5f7=="transparent"){
_5f7=[255,255,255,0];
}else{
_5f7=dojo.gfx.color.extractRGB(_5f7);
}
return _5f7;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_5f8){
if(!_5f8){
return [];
}
if(dojo.lang.isArrayLike(_5f8)){
if(!_5f8.alreadyChecked){
var n=[];
dojo.lang.forEach(_5f8,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _5f8;
}
}else{
var n=[];
n.push(dojo.byId(_5f8));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_5fb,_5fc,_5fd,_5fe,_5ff){
_5fb=dojo.lfx.html._byId(_5fb);
var _600={"propertyMap":_5fc,"nodes":_5fb,"duration":_5fd,"easing":_5fe||dojo.lfx.easeDefault};
var _601=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _605 in pm){
pm[_605].property=_605;
parr.push(pm[_605]);
}
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 _607=function(_608){
var _609=[];
dojo.lang.forEach(_608,function(c){
_609.push(Math.round(c));
});
return _609;
};
var _60b=function(n,_60d){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _60d){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_60d[s]);
}else{
n.style[s]=_60d[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _60f=function(_610){
this._properties=_610;
this.diffs=new Array(_610.length);
dojo.lang.forEach(_610,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 _617=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_617=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_617+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_617+=")";
}else{
_617=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_617;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_601(_600);
anim.curve=new _60f(_600.propertyMap);
},onAnimate:function(_61a){
dojo.lang.forEach(_600.nodes,function(node){
_60b(node,_61a);
});
}},_600.duration,null,_600.easing);
if(_5ff){
for(var x in _5ff){
if(dojo.lang.isFunction(_5ff[x])){
anim.connect(x,anim,_5ff[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_61d){
var _61e=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(_61d)){
dojo.lang.forEach(_61d,_61e);
}else{
_61e(_61d);
}
};
dojo.lfx.html.fade=function(_620,_621,_622,_623,_624){
_620=dojo.lfx.html._byId(_620);
var _625={property:"opacity"};
if(!dj_undef("start",_621)){
_625.start=_621.start;
}else{
_625.start=function(){
return dojo.html.getOpacity(_620[0]);
};
}
if(!dj_undef("end",_621)){
_625.end=_621.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_620,[_625],_622,_623);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_620);
});
if(_624){
anim.connect("onEnd",function(){
_624(_620,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_627,_628,_629,_62a){
return dojo.lfx.html.fade(_627,{end:1},_628,_629,_62a);
};
dojo.lfx.html.fadeOut=function(_62b,_62c,_62d,_62e){
return dojo.lfx.html.fade(_62b,{end:0},_62c,_62d,_62e);
};
dojo.lfx.html.fadeShow=function(_62f,_630,_631,_632){
_62f=dojo.lfx.html._byId(_62f);
dojo.lang.forEach(_62f,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_62f,_630,_631,_632);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_62f)){
dojo.lang.forEach(_62f,dojo.html.show);
}else{
dojo.html.show(_62f);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_635,_636,_637,_638){
var anim=dojo.lfx.html.fadeOut(_635,_636,_637,function(){
if(dojo.lang.isArrayLike(_635)){
dojo.lang.forEach(_635,dojo.html.hide);
}else{
dojo.html.hide(_635);
}
if(_638){
_638(_635,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_63a,_63b,_63c,_63d){
_63a=dojo.lfx.html._byId(_63a);
var _63e=[];
dojo.lang.forEach(_63a,function(node){
var _640={};
var _641,_642,_643;
with(node.style){
_641=top;
_642=left;
_643=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _644=dojo.html.getBorderBox(node).height;
with(node.style){
top=_641;
left=_642;
position=_643;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _644;
}}},_63b,_63c);
anim.connect("beforeBegin",function(){
_640.overflow=node.style.overflow;
_640.height=node.style.height;
with(node.style){
overflow="hidden";
height="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_640.overflow;
height=_640.height;
}
if(_63d){
_63d(node,anim);
}
});
_63e.push(anim);
});
return dojo.lfx.combine(_63e);
};
dojo.lfx.html.wipeOut=function(_646,_647,_648,_649){
_646=dojo.lfx.html._byId(_646);
var _64a=[];
dojo.lang.forEach(_646,function(node){
var _64c={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_647,_648,{"beforeBegin":function(){
_64c.overflow=node.style.overflow;
_64c.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_64c.overflow;
height=_64c.height;
}
if(_649){
_649(node,anim);
}
}});
_64a.push(anim);
});
return dojo.lfx.combine(_64a);
};
dojo.lfx.html.slideTo=function(_64e,_64f,_650,_651,_652){
_64e=dojo.lfx.html._byId(_64e);
var _653=[];
var _654=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_64f)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_64f={top:_64f[0],left:_64f[1]};
}
dojo.lang.forEach(_64e,function(node){
var top=null;
var left=null;
var init=(function(){
var _659=node;
return function(){
var pos=_654(_659,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_654(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_654(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_659,true);
dojo.html.setStyleAttributes(_659,"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:(_64f.top||0)},"left":{start:left,end:(_64f.left||0)}},_650,_651,{"beforeBegin":init});
if(_652){
anim.connect("onEnd",function(){
_652(_64e,anim);
});
}
_653.push(anim);
});
return dojo.lfx.combine(_653);
};
dojo.lfx.html.slideBy=function(_65d,_65e,_65f,_660,_661){
_65d=dojo.lfx.html._byId(_65d);
var _662=[];
var _663=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_65e)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_65e={top:_65e[0],left:_65e[1]};
}
dojo.lang.forEach(_65d,function(node){
var top=null;
var left=null;
var init=(function(){
var _668=node;
return function(){
var pos=_663(_668,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_663(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_663(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_668,true);
dojo.html.setStyleAttributes(_668,"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+(_65e.top||0)},"left":{start:left,end:left+(_65e.left||0)}},_65f,_660).connect("beforeBegin",init);
if(_661){
anim.connect("onEnd",function(){
_661(_65d,anim);
});
}
_662.push(anim);
});
return dojo.lfx.combine(_662);
};
dojo.lfx.html.explode=function(_66c,_66d,_66e,_66f,_670){
var h=dojo.html;
_66c=dojo.byId(_66c);
_66d=dojo.byId(_66d);
var _672=h.toCoordinateObject(_66c,true);
var _673=document.createElement("div");
h.copyStyle(_673,_66d);
if(_66d.explodeClassName){
_673.className=_66d.explodeClassName;
}
with(_673.style){
position="absolute";
display="none";
var _674=h.getStyle(_66c,"background-color");
backgroundColor=_674?_674.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_673);
with(_66d.style){
visibility="hidden";
display="block";
}
var _675=h.toCoordinateObject(_66d,true);
with(_66d.style){
display="none";
visibility="visible";
}
var _676={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_676[type]={start:_672[type],end:_675[type]};
});
var anim=new dojo.lfx.propertyAnimation(_673,_676,_66e,_66f,{"beforeBegin":function(){
h.setDisplay(_673,"block");
},"onEnd":function(){
h.setDisplay(_66d,"block");
_673.parentNode.removeChild(_673);
}});
if(_670){
anim.connect("onEnd",function(){
_670(_66d,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_679,end,_67b,_67c,_67d){
var h=dojo.html;
_679=dojo.byId(_679);
end=dojo.byId(end);
var _67f=dojo.html.toCoordinateObject(_679,true);
var _680=dojo.html.toCoordinateObject(end,true);
var _681=document.createElement("div");
dojo.html.copyStyle(_681,_679);
if(_679.explodeClassName){
_681.className=_679.explodeClassName;
}
dojo.html.setOpacity(_681,0.3);
with(_681.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_679,"background-color").toLowerCase();
}
dojo.body().appendChild(_681);
var _682={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_682[type]={start:_67f[type],end:_680[type]};
});
var anim=new dojo.lfx.propertyAnimation(_681,_682,_67b,_67c,{"beforeBegin":function(){
dojo.html.hide(_679);
dojo.html.show(_681);
},"onEnd":function(){
_681.parentNode.removeChild(_681);
}});
if(_67d){
anim.connect("onEnd",function(){
_67d(_679,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_685,_686,_687,_688,_689){
_685=dojo.lfx.html._byId(_685);
var _68a=[];
dojo.lang.forEach(_685,function(node){
var _68c=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _68e=dojo.html.getStyle(node,"background-image");
var _68f=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_68c.length>3){
_68c.pop();
}
var rgb=new dojo.gfx.color.Color(_686);
var _691=new dojo.gfx.color.Color(_68c);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_691}},_687,_688,{"beforeBegin":function(){
if(_68e){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_68e){
node.style.backgroundImage=_68e;
}
if(_68f){
node.style.backgroundColor="transparent";
}
if(_689){
_689(node,anim);
}
}});
_68a.push(anim);
});
return dojo.lfx.combine(_68a);
};
dojo.lfx.html.unhighlight=function(_693,_694,_695,_696,_697){
_693=dojo.lfx.html._byId(_693);
var _698=[];
dojo.lang.forEach(_693,function(node){
var _69a=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_694);
var _69c=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_69a,end:rgb}},_695,_696,{"beforeBegin":function(){
if(_69c){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_69a.toRgb().join(",")+")";
},"onEnd":function(){
if(_697){
_697(node,anim);
}
}});
_698.push(anim);
});
return dojo.lfx.combine(_698);
};
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 _69e=new dojo.dnd.HtmlDragObject(this.dragObject,this.type);
if(this.dragClass){
_69e.dragClass=this.dragClass;
}
if(this.constrainToContainer){
_69e.constrainTo(this.constrainingContainer||this.domNode.parentNode);
}
return _69e;
},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(_6a1){
this.constrainToContainer=true;
if(_6a1){
this.constrainingContainer=_6a1;
}
},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 _6ab=doc.createElement("table");
if(isTr){
var _6ac=doc.createElement("tbody");
_6ab.appendChild(_6ac);
_6ac.appendChild(node);
}else{
_6ab.appendChild(node);
}
var _6ad=((isTr)?this.domNode:this.domNode.firstChild);
var _6ae=((isTr)?node:node.firstChild);
var _6af=_6ad.childNodes;
var _6b0=_6ae.childNodes;
for(var i=0;i<_6af.length;i++){
if((_6b0[i])&&(_6b0[i].style)){
_6b0[i].style.width=dojo.html.getContentBox(_6af[i]).width+"px";
}
}
node=_6ab;
}
if((dojo.render.html.ie55||dojo.render.html.ie60)&&this.createIframe){
with(node.style){
top="0px";
left="0px";
}
var _6b2=document.createElement("div");
_6b2.appendChild(node);
this.bgIframe=new dojo.html.BackgroundIframe(_6b2);
_6b2.appendChild(this.bgIframe.iframe);
node=_6b2;
}
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 _6b4=dojo.html.getViewport();
var _6b5=_6b4.width;
var _6b6=_6b4.height;
var _6b7=dojo.html.getScroll().offset;
var x=_6b7.x;
var y=_6b7.y;
}else{
var _6ba=dojo.html.getContentBox(this.constrainingContainer);
_6b5=_6ba.width;
_6b6=_6ba.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+_6b5-mb.width,maxY:y+_6b6-mb.height};
},updateDragOffset:function(){
var _6bc=dojo.html.getScroll().offset;
if(_6bc.y!=this.scrollOffset.y){
var diff=_6bc.y-this.scrollOffset.y;
this.dragOffset.y+=diff;
this.scrollOffset.y=_6bc.y;
}
if(_6bc.x!=this.scrollOffset.x){
var diff=_6bc.x-this.scrollOffset.x;
this.dragOffset.x+=diff;
this.scrollOffset.x=_6bc.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 _6c4=dojo.html.getAbsolutePosition(this.dragClone,true);
var _6c5={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1};
var anim=dojo.lfx.slideTo(this.dragClone,_6c5,300);
var _6c7=this;
dojo.event.connect(anim,"onEnd",function(e){
dojo.html.removeNode(_6c7.dragClone);
_6c7.dragClone=null;
});
anim.play();
break;
}
dojo.event.topic.publish("dragEnd",{source:this});
},constrainTo:function(_6c9){
this.constrainToContainer=true;
if(_6c9){
this.constrainingContainer=_6c9;
}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,_6ce;i<this.domNode.childNodes.length;i++){
_6ce=this.domNode.childNodes[i];
if(_6ce.nodeType!=dojo.html.ELEMENT_NODE){
continue;
}
var pos=dojo.html.getAbsolutePosition(_6ce,true);
var _6d0=dojo.html.getBorderBox(_6ce);
this.childBoxes.push({top:pos.y,bottom:pos.y+_6d0.height,left:pos.x,right:pos.x+_6d0.width,height:_6d0.height,width:_6d0.width,node:_6ce});
}
return true;
},_getNodeUnderMouse:function(e){
for(var i=0,_6d3;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,_6d5){
var i=this._getNodeUnderMouse(e);
if(!this.dropIndicator){
this.createDropIndicator();
}
var _6d7=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH;
var hide=false;
if(i<0){
if(this.childBoxes.length){
var _6d9=(dojo.html.gravity(this.childBoxes[0].node,e)&_6d7);
if(_6d9){
hide=true;
}
}else{
var _6d9=true;
}
}else{
var _6da=this.childBoxes[i];
var _6d9=(dojo.html.gravity(_6da.node,e)&_6d7);
if(_6da.node===_6d5[0].dragSource.domNode){
hide=true;
}else{
var _6db=_6d9?(i>0?this.childBoxes[i-1]:_6da):(i<this.childBoxes.length-1?this.childBoxes[i+1]:_6da);
if(_6db.node===_6d5[0].dragSource.domNode){
hide=true;
}
}
}
if(hide){
this.dropIndicator.style.display="none";
return;
}else{
this.dropIndicator.style.display="";
}
this.placeIndicator(e,_6d5,i,_6d9);
if(!dojo.html.hasParent(this.dropIndicator)){
dojo.body().appendChild(this.dropIndicator);
}
},placeIndicator:function(e,_6dd,_6de,_6df){
var _6e0=this.vertical?"left":"top";
var _6e1;
if(_6de<0){
if(this.childBoxes.length){
_6e1=_6df?this.childBoxes[0]:this.childBoxes[this.childBoxes.length-1];
}else{
this.dropIndicator.style[_6e0]=dojo.html.getAbsolutePosition(this.domNode,true)[this.vertical?"x":"y"]+"px";
}
}else{
_6e1=this.childBoxes[_6de];
}
if(_6e1){
this.dropIndicator.style[_6e0]=(_6df?_6e1[_6e0]:_6e1[this.vertical?"right":"bottom"])+"px";
if(this.vertical){
this.dropIndicator.style.height=_6e1.height+"px";
this.dropIndicator.style.top=_6e1.top+"px";
}else{
this.dropIndicator.style.width=_6e1.width+"px";
this.dropIndicator.style.left=_6e1.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 _6e5=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)&_6e5){
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 _6e6=this.childBoxes[i];
if(dojo.html.gravity(_6e6.node,e)&_6e5){
return this.insert(e,_6e6.node,"before");
}else{
return this.insert(e,_6e6.node,"after");
}
},insert:function(e,_6e8,_6e9){
var node=e.dragObject.domNode;
if(_6e9=="before"){
return dojo.html.insertBefore(node,_6e8);
}else{
if(_6e9=="after"){
return dojo.html.insertAfter(node,_6e8);
}else{
if(_6e9=="append"){
_6e8.appendChild(node);
return true;
}
}
}
return false;
}},function(node,_6ec){
if(arguments.length==0){
return;
}
this.domNode=dojo.byId(node);
dojo.dnd.DropTarget.call(this);
if(_6ec&&dojo.lang.isString(_6ec)){
_6ec=[_6ec];
}
this.acceptedTypes=_6ec||[];
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.dnd.HtmlDragMove");
dojo.declare("dojo.dnd.HtmlDragMoveSource",dojo.dnd.HtmlDragSource,{onDragStart:function(){
var _6ed=new dojo.dnd.HtmlDragMoveObject(this.dragObject,this.type);
if(this.constrainToContainer){
_6ed.constrainTo(this.constrainingContainer);
}
return _6ed;
},onSelected:function(){
for(var i=0;i<this.dragObjects.length;i++){
dojo.dnd.dragManager.selectedSources.push(new dojo.dnd.HtmlDragMoveSource(this.dragObjects[i]));
}
}});
dojo.declare("dojo.dnd.HtmlDragMoveObject",dojo.dnd.HtmlDragObject,{onDragStart:function(e){
dojo.html.clearSelection();
this.dragClone=this.domNode;
if(dojo.html.getComputedStyle(this.domNode,"position")!="absolute"){
this.domNode.style.position="relative";
}
var left=parseInt(dojo.html.getComputedStyle(this.domNode,"left"));
var top=parseInt(dojo.html.getComputedStyle(this.domNode,"top"));
this.dragStartPosition={x:isNaN(left)?0:left,y:isNaN(top)?0:top};
this.scrollOffset=dojo.html.getScroll().offset;
this.dragOffset={y:this.dragStartPosition.y-e.pageY,x:this.dragStartPosition.x-e.pageX};
this.containingBlockPosition={x:0,y:0};
if(this.constrainToContainer){
this.constraints=this.getConstraints();
}
dojo.event.connect(this.domNode,"onclick",this,"_squelchOnClick");
},onDragEnd:function(e){
},setAbsolutePosition:function(x,y){
if(!this.disableY){
this.domNode.style.top=y+"px";
}
if(!this.disableX){
this.domNode.style.left=x+"px";
}
},_squelchOnClick:function(e){
dojo.event.browser.stopEvent(e);
dojo.event.disconnect(this.domNode,"onclick",this,"_squelchOnClick");
}});
if(!this["dojo"]){
alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly");
}
dojo.provide("dojo.experimental");
dojo.experimental=function(_6f6,_6f7){
var _6f8="EXPERIMENTAL: "+_6f6;
_6f8+=" -- Not yet ready for use.  APIs subject to change without notice.";
if(_6f7){
_6f8+=" "+_6f7;
}
dojo.debug(_6f8);
};
dojo.provide("dojo.i18n.common");
dojo.i18n.getLocalization=function(_6f9,_6fa,_6fb){
dojo.hostenv.preloadLocalizations();
_6fb=dojo.hostenv.normalizeLocale(_6fb);
var _6fc=_6fb.split("-");
var _6fd=[_6f9,"nls",_6fa].join(".");
var _6fe=dojo.hostenv.findModule(_6fd,true);
var _6ff;
for(var i=_6fc.length;i>0;i--){
var loc=_6fc.slice(0,i).join("_");
if(_6fe[loc]){
_6ff=_6fe[loc];
break;
}
}
if(!_6ff){
_6ff=_6fe.ROOT;
}
if(_6ff){
var _702=function(){
};
_702.prototype=_6ff;
return new _702();
}
dojo.raise("Bundle not found: "+_6fa+" in "+_6f9+" , locale="+_6fb);
};
dojo.i18n.isLTR=function(_703){
var lang=dojo.hostenv.normalizeLocale(_703).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.regexp");
dojo.evalObjPath("dojo.regexp.us",true);
dojo.regexp.tld=function(_706){
_706=(typeof _706=="object")?_706:{};
if(typeof _706.allowCC!="boolean"){
_706.allowCC=true;
}
if(typeof _706.allowInfra!="boolean"){
_706.allowInfra=true;
}
if(typeof _706.allowGeneric!="boolean"){
_706.allowGeneric=true;
}
var _707="arpa";
var _708="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";
var ccRE="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|"+"bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|"+"ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|"+"gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|"+"la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|"+"my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|"+"re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|"+"tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";
var a=[];
if(_706.allowInfra){
a.push(_707);
}
if(_706.allowGeneric){
a.push(_708);
}
if(_706.allowCC){
a.push(ccRE);
}
var _70b="";
if(a.length>0){
_70b="("+a.join("|")+")";
}
return _70b;
};
dojo.regexp.ipAddress=function(_70c){
_70c=(typeof _70c=="object")?_70c:{};
if(typeof _70c.allowDottedDecimal!="boolean"){
_70c.allowDottedDecimal=true;
}
if(typeof _70c.allowDottedHex!="boolean"){
_70c.allowDottedHex=true;
}
if(typeof _70c.allowDottedOctal!="boolean"){
_70c.allowDottedOctal=true;
}
if(typeof _70c.allowDecimal!="boolean"){
_70c.allowDecimal=true;
}
if(typeof _70c.allowHex!="boolean"){
_70c.allowHex=true;
}
if(typeof _70c.allowIPv6!="boolean"){
_70c.allowIPv6=true;
}
if(typeof _70c.allowHybrid!="boolean"){
_70c.allowHybrid=true;
}
var _70d="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var _70e="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _70f="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _710="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|"+"4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";
var _711="0[xX]0*[\\da-fA-F]{1,8}";
var _712="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _713="([\\da-fA-F]{1,4}\\:){6}"+"((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
var a=[];
if(_70c.allowDottedDecimal){
a.push(_70d);
}
if(_70c.allowDottedHex){
a.push(_70e);
}
if(_70c.allowDottedOctal){
a.push(_70f);
}
if(_70c.allowDecimal){
a.push(_710);
}
if(_70c.allowHex){
a.push(_711);
}
if(_70c.allowIPv6){
a.push(_712);
}
if(_70c.allowHybrid){
a.push(_713);
}
var _715="";
if(a.length>0){
_715="("+a.join("|")+")";
}
return _715;
};
dojo.regexp.host=function(_716){
_716=(typeof _716=="object")?_716:{};
if(typeof _716.allowIP!="boolean"){
_716.allowIP=true;
}
if(typeof _716.allowLocal!="boolean"){
_716.allowLocal=false;
}
if(typeof _716.allowPort!="boolean"){
_716.allowPort=true;
}
var _717="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojo.regexp.tld(_716);
var _718=(_716.allowPort)?"(\\:"+dojo.regexp.integer({signed:false})+")?":"";
var _719=_717;
if(_716.allowIP){
_719+="|"+dojo.regexp.ipAddress(_716);
}
if(_716.allowLocal){
_719+="|localhost";
}
return "("+_719+")"+_718;
};
dojo.regexp.url=function(_71a){
_71a=(typeof _71a=="object")?_71a:{};
if(typeof _71a.scheme=="undefined"){
_71a.scheme=[true,false];
}
var _71b=dojo.regexp.buildGroupRE(_71a.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _71d="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";
return _71b+dojo.regexp.host(_71a)+_71d;
};
dojo.regexp.emailAddress=function(_71e){
_71e=(typeof _71e=="object")?_71e:{};
if(typeof _71e.allowCruft!="boolean"){
_71e.allowCruft=false;
}
_71e.allowPort=false;
var _71f="([\\da-z]+[-._+&'])*[\\da-z]+";
var _720=_71f+"@"+dojo.regexp.host(_71e);
if(_71e.allowCruft){
_720="<?(mailto\\:)?"+_720+">?";
}
return _720;
};
dojo.regexp.emailAddressList=function(_721){
_721=(typeof _721=="object")?_721:{};
if(typeof _721.listSeparator!="string"){
_721.listSeparator="\\s;,";
}
var _722=dojo.regexp.emailAddress(_721);
var _723="("+_722+"\\s*["+_721.listSeparator+"]\\s*)*"+_722+"\\s*["+_721.listSeparator+"]?\\s*";
return _723;
};
dojo.regexp.integer=function(_724){
_724=(typeof _724=="object")?_724:{};
if(typeof _724.signed=="undefined"){
_724.signed=[true,false];
}
if(typeof _724.separator=="undefined"){
_724.separator="";
}else{
if(typeof _724.groupSize=="undefined"){
_724.groupSize=3;
}
}
var _725=dojo.regexp.buildGroupRE(_724.signed,function(q){
return q?"[-+]":"";
});
var _727=dojo.regexp.buildGroupRE(_724.separator,function(sep){
if(sep==""){
return "(0|[1-9]\\d*)";
}
var grp=_724.groupSize,grp2=_724.groupSize2;
if(typeof grp2!="undefined"){
var _72b="(0|[1-9]\\d{0,"+(grp2-1)+"}(["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"("+_72b+"|(0|[1-9]\\d{0,"+(grp-1)+"}))":_72b;
}
return "(0|[1-9]\\d{0,"+(grp-1)+"}(["+sep+"]\\d{"+grp+"})*)";
});
return _725+_727;
};
dojo.regexp.realNumber=function(_72c){
_72c=(typeof _72c=="object")?_72c:{};
if(typeof _72c.places!="number"){
_72c.places=Infinity;
}
if(typeof _72c.decimal!="string"){
_72c.decimal=".";
}
if(typeof _72c.fractional=="undefined"){
_72c.fractional=[true,false];
}
if(typeof _72c.exponent=="undefined"){
_72c.exponent=[true,false];
}
if(typeof _72c.eSigned=="undefined"){
_72c.eSigned=[true,false];
}
var _72d=dojo.regexp.integer(_72c);
var _72e=dojo.regexp.buildGroupRE(_72c.fractional,function(q){
var re="";
if(q&&(_72c.places>0)){
re="\\"+_72c.decimal;
if(_72c.places==Infinity){
re="("+re+"\\d+)?";
}else{
re=re+"\\d{"+_72c.places+"}";
}
}
return re;
});
var _731=dojo.regexp.buildGroupRE(_72c.exponent,function(q){
if(q){
return "([eE]"+dojo.regexp.integer({signed:_72c.eSigned})+")";
}
return "";
});
return _72d+_72e+_731;
};
dojo.regexp.currency=function(_733){
_733=(typeof _733=="object")?_733:{};
if(typeof _733.signed=="undefined"){
_733.signed=[true,false];
}
if(typeof _733.symbol=="undefined"){
_733.symbol="$";
}
if(typeof _733.placement!="string"){
_733.placement="before";
}
if(typeof _733.signPlacement!="string"){
_733.signPlacement="before";
}
if(typeof _733.separator=="undefined"){
_733.separator=",";
}
if(typeof _733.fractional=="undefined"&&typeof _733.cents!="undefined"){
dojo.deprecated("dojo.regexp.currency: flags.cents","use flags.fractional instead","0.5");
_733.fractional=_733.cents;
}
if(typeof _733.decimal!="string"){
_733.decimal=".";
}
var _734=dojo.regexp.buildGroupRE(_733.signed,function(q){
if(q){
return "[-+]";
}
return "";
});
var _736=dojo.regexp.buildGroupRE(_733.symbol,function(_737){
return "\\s?"+_737.replace(/([.$?*!=:|\\\/^])/g,"\\$1")+"\\s?";
});
switch(_733.signPlacement){
case "before":
_736=_734+_736;
break;
case "after":
_736=_736+_734;
break;
}
var _738=_733;
_738.signed=false;
_738.exponent=false;
var _739=dojo.regexp.realNumber(_738);
var _73a;
switch(_733.placement){
case "before":
_73a=_736+_739;
break;
case "after":
_73a=_739+_736;
break;
}
switch(_733.signPlacement){
case "around":
_73a="("+_73a+"|"+"\\("+_73a+"\\)"+")";
break;
case "begin":
_73a=_734+_73a;
break;
case "end":
_73a=_73a+_734;
break;
}
return _73a;
};
dojo.regexp.us.state=function(_73b){
_73b=(typeof _73b=="object")?_73b:{};
if(typeof _73b.allowTerritories!="boolean"){
_73b.allowTerritories=true;
}
if(typeof _73b.allowMilitary!="boolean"){
_73b.allowMilitary=true;
}
var _73c="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _73d="AS|FM|GU|MH|MP|PW|PR|VI";
var _73e="AA|AE|AP";
if(_73b.allowTerritories){
_73c+="|"+_73d;
}
if(_73b.allowMilitary){
_73c+="|"+_73e;
}
return "("+_73c+")";
};
dojo.regexp.time=function(_73f){
dojo.deprecated("dojo.regexp.time","Use dojo.date.parse instead","0.5");
_73f=(typeof _73f=="object")?_73f:{};
if(typeof _73f.format=="undefined"){
_73f.format="h:mm:ss t";
}
if(typeof _73f.amSymbol!="string"){
_73f.amSymbol="AM";
}
if(typeof _73f.pmSymbol!="string"){
_73f.pmSymbol="PM";
}
var _740=function(_741){
_741=_741.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var amRE=_73f.amSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
var pmRE=_73f.pmSymbol.replace(/([.$?*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_741=_741.replace("hh","(0[1-9]|1[0-2])");
_741=_741.replace("h","([1-9]|1[0-2])");
_741=_741.replace("HH","([01][0-9]|2[0-3])");
_741=_741.replace("H","([0-9]|1[0-9]|2[0-3])");
_741=_741.replace("mm","([0-5][0-9])");
_741=_741.replace("m","([1-5][0-9]|[0-9])");
_741=_741.replace("ss","([0-5][0-9])");
_741=_741.replace("s","([1-5][0-9]|[0-9])");
_741=_741.replace("t","\\s?("+amRE+"|"+pmRE+")\\s?");
return _741;
};
return dojo.regexp.buildGroupRE(_73f.format,_740);
};
dojo.regexp.numberFormat=function(_744){
_744=(typeof _744=="object")?_744:{};
if(typeof _744.format=="undefined"){
_744.format="###-###-####";
}
var _745=function(_746){
_746=_746.replace(/([.$*!=:|{}\(\)\[\]\\\/^])/g,"\\$1");
_746=_746.replace(/\?/g,"\\d?");
_746=_746.replace(/#/g,"\\d");
return _746;
};
return dojo.regexp.buildGroupRE(_744.format,_745);
};
dojo.regexp.buildGroupRE=function(a,re){
if(!(a instanceof Array)){
return re(a);
}
var b=[];
for(var i=0;i<a.length;i++){
b.push(re(a[i]));
}
return "("+b.join("|")+")";
};
dojo.provide("dojo.i18n.number");
dojo.experimental("dojo.i18n.number");
dojo.i18n.number.format=function(_74b,_74c,_74d){
_74c=(typeof _74c=="object")?_74c:{};
var _74e=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_74d);
if(typeof _74c.separator=="undefined"){
_74c.separator=_74e[1];
}
if(typeof _74c.decimal=="undefined"){
_74c.decimal=_74e[2];
}
if(typeof _74c.groupSize=="undefined"){
_74c.groupSize=_74e[3];
}
if(typeof _74c.groupSize2=="undefined"){
_74c.groupSize2=_74e[4];
}
if(typeof _74c.round=="undefined"){
_74c.round=true;
}
if(typeof _74c.signed=="undefined"){
_74c.signed=true;
}
var _74f=(_74c.signed&&(_74b<0))?"-":"";
_74b=Math.abs(_74b);
var _750=String((((_74c.places>0)||!_74c.round)?Math.floor:Math.round)(_74b));
function splitSubstrings(str,_752){
for(var subs=[];str.length>=_752;str=str.substr(0,str.length-_752)){
subs.push(str.substr(-_752));
}
if(str.length>0){
subs.push(str);
}
return subs.reverse();
}
if(_74c.groupSize2&&(_750.length>_74c.groupSize)){
var _754=splitSubstrings(_750.substr(0,_750.length-_74c.groupSize),_74c.groupSize2);
_754.push(_750.substr(-_74c.groupSize));
_74f=_74f+_754.join(_74c.separator);
}else{
if(_74c.groupSize){
_74f=_74f+splitSubstrings(_750,_74c.groupSize).join(_74c.separator);
}else{
_74f=_74f+_750;
}
}
if(_74c.places>0){
var _755=_74b-Math.floor(_74b);
_755=(_74c.round?Math.round:Math.floor)(_755*Math.pow(10,_74c.places));
_74f=_74f+_74c.decimal+_755;
}
return _74f;
};
dojo.i18n.number.parse=function(_756,_757,_758){
_758=(typeof _758=="object")?_758:{};
var _759=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_757);
if(typeof _758.separator=="undefined"){
_758.separator=_759[1];
}
if(typeof _758.decimal=="undefined"){
_758.decimal=_759[2];
}
if(typeof _758.groupSize=="undefined"){
_758.groupSize=_759[3];
}
if(typeof _758.groupSize2=="undefined"){
_758.groupSize2=_759[4];
}
if(typeof _758.validate=="undefined"){
_758.validate=true;
}
if(_758.validate&&!dojo.i18n.number.isReal(_756,_757,_758)){
return Number.NaN;
}
var _75a=_756.split(_758.decimal);
if(_75a.length>2){
return Number.NaN;
}
var _75b=Number(_75a[0].replace(new RegExp("\\"+_758.separator,"g"),""));
var _75c=(_75a.length==1)?0:Number(_75a[1])/Math.pow(10,String(_75a[1]).length);
return _75b+_75c;
};
dojo.i18n.number.isInteger=function(_75d,_75e,_75f){
_75f=(typeof _75f=="object")?_75f:{};
var _760=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_75e);
if(typeof _75f.separator=="undefined"){
_75f.separator=_760[1];
}else{
if(dojo.lang.isArray(_75f.separator)&&_75f.separator.length===0){
_75f.separator=[_760[1],""];
}
}
if(typeof _75f.groupSize=="undefined"){
_75f.groupSize=_760[3];
}
if(typeof _75f.groupSize2=="undefined"){
_75f.groupSize2=_760[4];
}
var re=new RegExp("^"+dojo.regexp.integer(_75f)+"$");
return re.test(_75d);
};
dojo.i18n.number.isReal=function(_762,_763,_764){
_764=(typeof _764=="object")?_764:{};
var _765=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_763);
if(typeof _764.separator=="undefined"){
_764.separator=_765[1];
}else{
if(dojo.lang.isArray(_764.separator)&&_764.separator.length===0){
_764.separator=[_765[1],""];
}
}
if(typeof _764.decimal=="undefined"){
_764.decimal=_765[2];
}
if(typeof _764.groupSize=="undefined"){
_764.groupSize=_765[3];
}
if(typeof _764.groupSize2=="undefined"){
_764.groupSize2=_765[4];
}
var re=new RegExp("^"+dojo.regexp.realNumber(_764)+"$");
return re.test(_762);
};
(function(){
dojo.i18n.number.FORMAT_TABLE={"ar-ae":["","",",",1],"ar-bh":["","",",",1],"ar-dz":["","",",",1],"ar-eg":["","",",",1],"ar-jo":["","",",",1],"ar-kw":["","",",",1],"ar-lb":["","",",",1],"ar-ma":["","",",",1],"ar-om":["","",",",1],"ar-qa":["","",",",1],"ar-sa":["","",",",1],"ar-sy":["","",",",1],"ar-tn":["","",",",1],"ar-ye":["","",",",1],"cs-cz":[".",".",",",3],"da-dk":[".",".",",",3],"de-at":[".",".",",",3],"de-de":[".",".",",",3],"de-lu":[".",".",",",3],"de-ch":["'","'",".",3],"el-gr":[".",".",",",3],"en-au":[",",",",".",3],"en-ca":[",",",",".",3],"en-gb":[",",",",".",3],"en-hk":[",",",",".",3],"en-ie":[",",",",".",3],"en-in":[",",",",".",3,2],"en-nz":[",",",",".",3],"en-us":[",",",",".",3],"en-za":[",",",",".",3],"es-ar":[".",".",",",3],"es-bo":[".",".",",",3],"es-cl":[".",".",",",3],"es-co":[".",".",",",3],"es-cr":[".",".",",",3],"es-do":[".",".",",",3],"es-ec":[".",".",",",3],"es-es":[".",".",",",3],"es-gt":[",",",",".",3],"es-hn":[",",",",".",3],"es-mx":[",",",",".",3],"es-ni":[",",",",".",3],"es-pa":[",",",",".",3],"es-pe":[",",",",".",3],"es-pr":[",",",",".",3],"es-py":[".",".",",",3],"es-sv":[",",",",".",3],"es-uy":[".",".",",",3],"es-ve":[".",".",",",3],"fi-fi":[" "," ",",",3],"fr-be":[".",".",",",3],"fr-ca":[" "," ",",",3],"fr-ch":[" "," ",".",3],"fr-fr":[" "," ",",",3],"fr-lu":[".",".",",",3],"he-il":[",",",",".",3],"hu-hu":[" "," ",",",3],"it-ch":[" "," ",".",3],"it-it":[".",".",",",3],"ja-jp":[",",",",".",3],"ko-kr":[",",",",".",3],"no-no":[".",".",",",3],"nl-be":[" "," ",",",3],"nl-nl":[".",".",",",3],"pl-pl":[".",".",",",3],"pt-br":[".",".",",",3],"pt-pt":[".",".","$",3],"ru-ru":[" "," ",",",3],"sv-se":["."," ",",",3],"tr-tr":[".",".",",",3],"zh-cn":[",",",",".",3],"zh-hk":[",",",",".",3],"zh-tw":[",",",",".",3],"*":[",",",",".",3]};
})();
dojo.i18n.number._mapToLocalizedFormatData=function(_767,_768){
_768=dojo.hostenv.normalizeLocale(_768);
var data=_767[_768];
if(typeof data=="undefined"){
data=_767["*"];
}
return data;
};
dojo.provide("dojo.i18n.currency");
dojo.experimental("dojo.i18n.currency");
dojo.i18n.currency.format=function(_76a,iso,_76c,_76d){
_76c=(typeof _76c=="object")?_76c:{};
var _76e=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_76d);
if(typeof _76c.places=="undefined"){
_76c.places=_76e.places;
}
if(typeof _76c.places=="undefined"){
_76c.places=2;
}
_76c.signed=false;
var _76f=dojo.i18n.number.format(_76a,_76c,_76d);
var sym=_76e.symbol;
if(_76e.adjSpace=="symbol"){
if(_76e.placement=="after"){
sym=" "+sym;
}else{
sym=sym+" ";
}
}
if(_76a<0){
if(_76e.signPlacement=="before"){
sym="-"+sym;
}else{
if(_76e.signPlacement=="after"){
sym=sym+"-";
}
}
}
var spc=(_76e.adjSpace=="number")?" ":"";
if(_76e.placement=="after"){
_76f=_76f+spc+sym;
}else{
_76f=sym+spc+_76f;
}
if(_76a<0){
if(_76e.signPlacement=="around"){
_76f="("+_76f+")";
}else{
if(_76e.signPlacement=="end"){
_76f=_76f+"-";
}else{
if(!_76e.signPlacement||_76e.signPlacement=="begin"){
_76f="-"+_76f;
}
}
}
}
return _76f;
};
dojo.i18n.currency.parse=function(_772,iso,_774,_775){
if(typeof _775.validate=="undefined"){
_775.validate=true;
}
if(_775.validate&&!dojo.i18n.number.isCurrency(_772,iso,_774,_775)){
return Number.NaN;
}
var sign=(_772.indexOf("-")!=-1);
var abs=abs.replace(/\-/,"");
var _778=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_774);
abs=abs.replace(new RegExp("\\"+_778.symbol),"");
var _779=dojo.i18n.number.parse(abs,_774,_775);
if(sign){
_779=_779*-1;
}
return _779;
};
dojo.i18n.currency.isCurrency=function(_77a,iso,_77c,_77d){
_77d=(typeof _77d=="object")?_77d:{};
var _77e=dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE,_77c);
if(typeof _77d.separator=="undefined"){
_77d.separator=_77e[0];
}else{
if(dojo.lang.isArray(_77d.separator)&&_77d.separator.length==0){
_77d.separator=[_77e[0],""];
}
}
if(typeof _77d.decimal=="undefined"){
_77d.decimal=_77e[2];
}
if(typeof _77d.groupSize=="undefined"){
_77d.groupSize=_77e[3];
}
if(typeof _77d.groupSize2=="undefined"){
_77d.groupSize2=_77e[4];
}
var _77f=dojo.i18n.currency._mapToLocalizedFormatData(dojo.i18n.currency.FORMAT_TABLE,iso,_77c);
if(typeof _77d.places=="undefined"){
_77d.places=_77f.places;
}
if(typeof _77d.places=="undefined"){
_77d.places=2;
}
if(typeof _77d.symbol=="undefined"){
_77d.symbol=_77f.symbol;
}else{
if(dojo.lang.isArray(_77d.symbol)&&_77d.symbol.length==0){
_77d.symbol=[_77f.symbol,""];
}
}
if(typeof _77d.placement=="undefined"){
_77d.placement=_77f.placement;
}
var re=new RegExp("^"+dojo.regexp.currency(_77d)+"$");
return re.test(_77a);
};
dojo.i18n.currency._mapToLocalizedFormatData=function(_781,iso,_783){
var _784=dojo.i18n.currency.FORMAT_TABLE[iso];
if(!dojo.lang.isArray(_784)){
return _784;
}
return dojo.i18n.number._mapToLocalizedFormatData(_784[0],_783);
};
(function(){
var _785={symbol:"\u062c",placement:"after",htmlSymbol:"?"};
var euro={symbol:"\u20ac",placement:"before",adjSpace:"symbol",htmlSymbol:"&euro;"};
var _787={symbol:"\u20ac",placement:"after",htmlSymbol:"&euro;"};
dojo.i18n.currency.FORMAT_TABLE={AED:{symbol:"\u062c",placement:"after"},ARS:{symbol:"$",signPlacement:"after"},ATS:{symbol:"\u20ac",adjSpace:"number",signPlacement:"after",htmlSymbol:"&euro;"},AUD:{symbol:"$"},BOB:{symbol:"$b"},BRL:{symbol:"R$",adjSpace:"symbol"},BEF:_787,BHD:_785,CAD:[{"*":{symbol:"$"},"fr-ca":{symbol:"$",placement:"after",signPlacement:"around"}}],CHF:{symbol:"CHF",adjSpace:"symbol",signPlacement:"after"},CLP:{symbol:"$"},COP:{symbol:"$",signPlacement:"around"},CNY:{symbol:"\xa5",htmlSymbol:"&yen;"},CRC:{symbol:"\u20a1",signPlacement:"after",htmlSymbol:"?"},CZK:{symbol:"Kc",adjSpace:"symbol",signPlacement:"after"},DEM:_787,DKK:{symbol:"kr.",adjSpace:"symbol",signPlacement:"after"},DOP:{symbol:"$"},DZD:_785,ECS:{symbol:"$",signPlacement:"after"},EGP:_785,ESP:_787,EUR:euro,FIM:_787,FRF:_787,GBP:{symbol:"\xa3",htmlSymbol:"&pound;"},GRD:{symbol:"\u20ac",signPlacement:"end",htmlSymbol:"&euro;"},GTQ:{symbol:"Q",signPlacement:"after"},HKD:{symbol:"HK$"},HNL:{symbol:"L.",signPlacement:"end"},HUF:{symbol:"Ft",placement:"after",adjSpace:"symbol"},IEP:{symbol:"\u20ac",htmlSymbol:"&euro;"},ILS:{symbol:"\u05e9\"\u05d7",placement:"after",htmlSymbol:"?"},INR:{symbol:"Rs."},ITL:{symbol:"\u20ac",signPlacement:"after",htmlSymbol:"&euro;"},JOD:_785,JPY:{symbol:"\xa5",places:0,htmlSymbol:"&yen;"},KRW:{symbol:"\u20a9",places:0,htmlSymbol:"?"},KWD:_785,LBP:_785,LUF:_787,MAD:_785,MXN:{symbol:"$",signPlacement:"around"},NIO:{symbol:"C$",adjSpace:"symbol",signPlacement:"after"},NLG:{symbol:"\u20ac",signPlacement:"end",htmlSymbol:"&euro;"},NOK:{symbol:"kr",adjSpace:"symbol",signPlacement:"after"},NZD:{symbol:"$"},OMR:_785,PAB:{symbol:"B/",adjSpace:"symbol",signPlacement:"after"},PEN:{symbol:"S/",signPlacement:"after"},PLN:{symbol:"z",placement:"after"},PTE:_787,PYG:{symbol:"Gs.",signPlacement:"after"},QAR:_785,RUR:{symbol:"rub.",placement:"after"},SAR:_785,SEK:{symbol:"kr",placement:"after",adjSpace:"symbol"},SGD:{symbol:"$"},SVC:{symbol:"\u20a1",signPlacement:"after",adjSpace:"symbol"},SYP:_785,TND:_785,TRL:{symbol:"TL",placement:"after"},TWD:{symbol:"NT$"},USD:{symbol:"$"},UYU:{symbol:"$U",signplacement:"after",adjSpace:"symbol"},VEB:{symbol:"Bs",signplacement:"after",adjSpace:"symbol"},YER:_785,ZAR:{symbol:"R",signPlacement:"around"}};
})();
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,_78e,_78f){
var out="";
for(var i=0;i<_78e;i++){
out+=str;
if(_78f&&i<_78e-1){
out+=_78f;
}
}
return out;
};
dojo.string.pad=function(str,len,c,dir){
var out=String(str);
if(!c){
c="0";
}
if(!dir){
dir=1;
}
while(out.length<len){
if(dir>0){
out=c+out;
}else{
out+=c;
}
}
return out;
};
dojo.string.padLeft=function(str,len,c){
return dojo.string.pad(str,len,c,1);
};
dojo.string.padRight=function(str,len,c){
return dojo.string.pad(str,len,c,-1);
};
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_79e,_79f,_7a0){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_79e){
this.mimetype=_79e;
}
if(_79f){
this.transport=_79f;
}
if(arguments.length>=4){
this.changeUrl=_7a0;
}
}
};
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(_7a1){
if((this.mimetype=="text/json-comment-filtered")||(this.mimetype=="application/json-comment-filtered")){
var _7a2=_7a1.indexOf("/*");
var _7a3=_7a1.lastIndexOf("*/");
if((_7a2==-1)||(_7a3==-1)){
dojo.debug("your JSON wasn't comment filtered!");
return "";
}
return _7a1.substring(_7a2+2,_7a3);
}
dojo.debug("please consider using a mimetype of text/json-comment-filtered to avoid potential security issues with JSON endpoints");
return _7a1;
},load:function(type,data,_7a6,_7a7){
},error:function(type,_7a9,_7aa,_7ab){
},timeout:function(type,_7ad,_7ae,_7af){
},handle:function(type,data,_7b2,_7b3){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_7b4){
if(_7b4["url"]){
_7b4.url=_7b4.url.toString();
}
if(_7b4["formNode"]){
_7b4.formNode=dojo.byId(_7b4.formNode);
}
if(!_7b4["method"]&&_7b4["formNode"]&&_7b4["formNode"].method){
_7b4.method=_7b4["formNode"].method;
}
if(!_7b4["handle"]&&_7b4["handler"]){
_7b4.handle=_7b4.handler;
}
if(!_7b4["load"]&&_7b4["loaded"]){
_7b4.load=_7b4.loaded;
}
if(!_7b4["changeUrl"]&&_7b4["changeURL"]){
_7b4.changeUrl=_7b4.changeURL;
}
_7b4.encoding=dojo.lang.firstValued(_7b4["encoding"],djConfig["bindEncoding"],"");
_7b4.sendTransport=dojo.lang.firstValued(_7b4["sendTransport"],djConfig["ioSendTransport"],false);
var _7b5=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_7b4[fn]&&_7b5(_7b4[fn])){
continue;
}
if(_7b4["handle"]&&_7b5(_7b4["handle"])){
_7b4[fn]=_7b4.handle;
}
}
dojo.lang.mixin(this,_7b4);
}});
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(_7bc){
if(!(_7bc instanceof dojo.io.Request)){
try{
_7bc=new dojo.io.Request(_7bc);
}
catch(e){
dojo.debug(e);
}
}
var _7bd="";
if(_7bc["transport"]){
_7bd=_7bc["transport"];
if(!this[_7bd]){
dojo.io.sendBindError(_7bc,"No dojo.io.bind() transport with name '"+_7bc["transport"]+"'.");
return _7bc;
}
if(!this[_7bd].canHandle(_7bc)){
dojo.io.sendBindError(_7bc,"dojo.io.bind() transport with name '"+_7bc["transport"]+"' cannot handle this type of request.");
return _7bc;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_7bc))){
_7bd=tmp;
break;
}
}
if(_7bd==""){
dojo.io.sendBindError(_7bc,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _7bc;
}
}
this[_7bd].bind(_7bc);
_7bc.bindSuccess=true;
return _7bc;
};
dojo.io.sendBindError=function(_7c0,_7c1){
if((typeof _7c0.error=="function"||typeof _7c0.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _7c2=new dojo.io.Error(_7c1);
setTimeout(function(){
_7c0[(typeof _7c0.error=="function")?"error":"handle"]("error",_7c2,null,_7c0);
},50);
}else{
dojo.raise(_7c1);
}
};
dojo.io.queueBind=function(_7c3){
if(!(_7c3 instanceof dojo.io.Request)){
try{
_7c3=new dojo.io.Request(_7c3);
}
catch(e){
dojo.debug(e);
}
}
var _7c4=_7c3.load;
_7c3.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_7c4.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _7c6=_7c3.error;
_7c3.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_7c6.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_7c3);
dojo.io._dispatchNextQueueBind();
return _7c3;
};
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,_7c9,last){
var enc=/utf/i.test(_7c9||"")?encodeURIComponent:dojo.string.encodeAscii;
var _7cc=[];
var _7cd=new Object();
for(var name in map){
var _7cf=function(elt){
var val=enc(name)+"="+enc(elt);
_7cc[(last==name)?"push":"unshift"](val);
};
if(!_7cd[name]){
var _7d2=map[name];
if(dojo.lang.isArray(_7d2)){
dojo.lang.forEach(_7d2,_7cf);
}else{
_7cf(_7d2);
}
}
}
return _7cc.join("&");
};
dojo.io.setIFrameSrc=function(_7d3,src,_7d5){
try{
var r=dojo.render.html;
if(!_7d5){
if(r.safari){
_7d3.location=src;
}else{
frames[_7d3.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_7d3.contentWindow.document;
}else{
if(r.safari){
idoc=_7d3.document;
}else{
idoc=_7d3.contentWindow;
}
}
if(!idoc){
_7d3.location=src;
return;
}else{
idoc.location.replace(src);
}
}
}
catch(e){
dojo.debug(e);
dojo.debug("setIFrameSrc: "+e);
}
};
dojo.provide("dojo.string.extras");
dojo.string.substituteParams=function(_7d8,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _7d8.replace(/\%\{(\w+)\}/g,function(_7db,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 _7de=str.split(" ");
for(var i=0;i<_7de.length;i++){
_7de[i]=_7de[i].charAt(0).toUpperCase()+_7de[i].substring(1);
}
return _7de.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 _7e3=escape(str);
var _7e4,re=/%u([0-9A-F]{4})/i;
while((_7e4=_7e3.match(re))){
var num=Number("0x"+_7e4[1]);
var _7e7=escape("&#"+num+";");
ret+=_7e3.substring(0,_7e4.index)+_7e7;
_7e3=_7e3.substring(_7e4.index+_7e4[0].length);
}
ret+=_7e3.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,_7ec){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_7ec){
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,_7f5){
if(_7f5){
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,_7f9,_7fa){
if(_7fa){
str=str.toLowerCase();
_7f9=_7f9.toLowerCase();
}
return str.indexOf(_7f9)==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,_800){
if(_800=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_800=="\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,_802){
var _803=[];
for(var i=0,_805=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_802){
_803.push(str.substring(_805,i));
_805=i+1;
}
}
_803.push(str.substr(_805));
return _803;
};
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 _80a=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_80c){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_80a.apply(this,[_80c]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _80d=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_80f){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_80d){
_80d.apply(this,[_80f]);
}
};
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,_812){
if(!dojo.render.html.opera){
var _813=this._getUrlQuery(_812.href);
if(_813==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_813==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_813==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _814=this.historyStack.pop();
if(!_814){
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(_814);
},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 _81b=url.split("?");
if(_81b.length<2){
return null;
}else{
return _81b[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 _81e=false;
var _81f=node.getElementsByTagName("input");
dojo.lang.forEach(_81f,function(_820){
if(_81e){
return;
}
if(_820.getAttribute("type")=="file"){
_81e=true;
}
});
return _81e;
};
dojo.io.formHasFile=function(_821){
return dojo.io.checkChildrenForFile(_821);
};
dojo.io.updateNode=function(node,_823){
node=dojo.byId(node);
var args=_823;
if(dojo.lang.isString(_823)){
args={url:_823};
}
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(_82a,_82b,_82c){
if((!_82a)||(!_82a.tagName)||(!_82a.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_82c){
_82c=dojo.io.formFilter;
}
var enc=/utf/i.test(_82b||"")?encodeURIComponent:dojo.string.encodeAscii;
var _82e=[];
for(var i=0;i<_82a.elements.length;i++){
var elm=_82a.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_82c(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){
_82e.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_82e.push(name+"="+enc(elm.value));
}
}else{
_82e.push(name+"="+enc(elm.value));
}
}
}
var _834=_82a.getElementsByTagName("input");
for(var i=0;i<_834.length;i++){
var _835=_834[i];
if(_835.type.toLowerCase()=="image"&&_835.form==_82a&&_82c(_835)){
var name=enc(_835.name);
_82e.push(name+"="+enc(_835.value));
_82e.push(name+".x=0");
_82e.push(name+".y=0");
}
}
return _82e.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 _83b=form.getElementsByTagName("input");
for(var i=0;i<_83b.length;i++){
var _83c=_83b[i];
if(_83c.type.toLowerCase()=="image"&&_83c.form==form){
this.connect(_83c,"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 _843=false;
if(node.disabled||!node.name){
_843=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_843=node==this.clickedButton;
}else{
_843=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _843;
},connect:function(_844,_845,_846){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_844,_845,this,_846);
}else{
var fcn=dojo.lang.hitch(this,_846);
_844[_845]=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 _849=this;
var _84a={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_84c,_84d){
return url+"|"+_84c+"|"+_84d.toLowerCase();
}
function addToCache(url,_84f,_850,http){
_84a[getCacheKey(url,_84f,_850)]=http;
}
function getFromCache(url,_853,_854){
return _84a[getCacheKey(url,_853,_854)];
}
this.clearCache=function(){
_84a={};
};
function doLoad(_855,http,url,_858,_859){
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(_855.method.toLowerCase()=="head"){
var _85b=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _85b;
};
var _85c=_85b.split(/[\r\n]+/g);
for(var i=0;i<_85c.length;i++){
var pair=_85c[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_855.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_855.mimetype.substr(0,9)=="text/json"||_855.mimetype.substr(0,16)=="application/json"){
try{
ret=dj_eval("("+_855.jsonFilter(http.responseText)+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_855.mimetype=="application/xml")||(_855.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(_859){
addToCache(url,_858,_855.method,http);
}
_855[(typeof _855.load=="function")?"load":"handle"]("load",ret,http,_855);
}else{
var _85f=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_855[(typeof _855.error=="function")?"error":"handle"]("error",_85f,http,_855);
}
}
function setHeaders(http,_861){
if(_861["headers"]){
for(var _862 in _861["headers"]){
if(_862.toLowerCase()=="content-type"&&!_861["contentType"]){
_861["contentType"]=_861["headers"][_862];
}else{
http.setRequestHeader(_862,_861["headers"][_862]);
}
}
}
}
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&&!_849._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 _866=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_866,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 _867=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_868){
var mlc=_868["mimetype"].toLowerCase()||"";
return _867&&((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"))&&!(_868["formNode"]&&dojo.io.formHasFile(_868["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_86a){
if(!_86a["url"]){
if(!_86a["formNode"]&&(_86a["backButton"]||_86a["back"]||_86a["changeUrl"]||_86a["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(_86a);
return true;
}
}
var url=_86a.url;
var _86c="";
if(_86a["formNode"]){
var ta=_86a.formNode.getAttribute("action");
if((ta)&&(!_86a["url"])){
url=ta;
}
var tp=_86a.formNode.getAttribute("method");
if((tp)&&(!_86a["method"])){
_86a.method=tp;
}
_86c+=dojo.io.encodeForm(_86a.formNode,_86a.encoding,_86a["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_86a["file"]){
_86a.method="post";
}
if(!_86a["method"]){
_86a.method="get";
}
if(_86a.method.toLowerCase()=="get"){
_86a.multipart=false;
}else{
if(_86a["file"]){
_86a.multipart=true;
}else{
if(!_86a["multipart"]){
_86a.multipart=false;
}
}
}
if(_86a["backButton"]||_86a["back"]||_86a["changeUrl"]){
dojo.undo.browser.addToHistory(_86a);
}
var _86f=_86a["content"]||{};
if(_86a.sendTransport){
_86f["dojo.transport"]="xmlhttp";
}
do{
if(_86a.postContent){
_86c=_86a.postContent;
break;
}
if(_86f){
_86c+=dojo.io.argsFromMap(_86f,_86a.encoding);
}
if(_86a.method.toLowerCase()=="get"||!_86a.multipart){
break;
}
var t=[];
if(_86c.length){
var q=_86c.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(_86a.file){
if(dojo.lang.isArray(_86a.file)){
for(var i=0;i<_86a.file.length;++i){
var o=_86a.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=_86a.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+"--","");
_86c=t.join("\r\n");
}
}while(false);
var _875=_86a["sync"]?false:true;
var _876=_86a["preventCache"]||(this.preventCache==true&&_86a["preventCache"]!=false);
var _877=_86a["useCache"]==true||(this.useCache==true&&_86a["useCache"]!=false);
if(!_876&&_877){
var _878=getFromCache(url,_86c,_86a.method);
if(_878){
doLoad(_86a,_878,url,_86c,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_86a);
var _87a=false;
if(_875){
var _87b=this.inFlight.push({"req":_86a,"http":http,"url":url,"query":_86c,"useCache":_877,"startTime":_86a.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_849._blockAsync=true;
}
if(_86a.method.toLowerCase()=="post"){
if(!_86a.user){
http.open("POST",url,_875);
}else{
http.open("POST",url,_875,_86a.user,_86a.password);
}
setHeaders(http,_86a);
http.setRequestHeader("Content-Type",_86a.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_86a.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_86c);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_86a,{status:404},url,_86c,_877);
}
}else{
var _87c=url;
if(_86c!=""){
_87c+=(_87c.indexOf("?")>-1?"&":"?")+_86c;
}
if(_876){
_87c+=(dojo.string.endsWithAny(_87c,"?","&")?"":(_87c.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_86a.user){
http.open(_86a.method.toUpperCase(),_87c,_875);
}else{
http.open(_86a.method.toUpperCase(),_87c,_875,_86a.user,_86a.password);
}
setHeaders(http,_86a);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_86a,{status:404},url,_86c,_877);
}
}
if(!_875){
doLoad(_86a,http,url,_86c,_877);
_849._blockAsync=false;
}
_86a.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,_87e,days,path,_881,_882){
var _883=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_883=d.toGMTString();
}
_87e=escape(_87e);
document.cookie=name+"="+_87e+";"+(_883!=-1?" expires="+_883+";":"")+(path?"path="+path:"")+(_881?"; domain="+_881:"")+(_882?"; 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 _887=document.cookie.substring(idx+name.length+1);
var end=_887.indexOf(";");
if(end==-1){
end=_887.length;
}
_887=_887.substring(0,end);
_887=unescape(_887);
return _887;
};
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,_88e,_88f,_890){
if(arguments.length==5){
_890=_88e;
_88e=null;
_88f=null;
}
var _891=[],_892,_893="";
if(!_890){
_892=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_892){
_892={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _892[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_892[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _892){
_891.push(escape(prop)+"="+escape(_892[prop]));
}
_893=_891.join("&");
}
dojo.io.cookie.setCookie(name,_893,days,path,_88e,_88f);
};
dojo.io.cookie.getObjectCookie=function(name){
var _896=null,_897=dojo.io.cookie.getCookie(name);
if(_897){
_896={};
var _898=_897.split("&");
for(var i=0;i<_898.length;i++){
var pair=_898[i].split("=");
var _89b=pair[1];
if(isNaN(_89b)){
_89b=unescape(pair[1]);
}
_896[unescape(pair[0])]=_89b;
}
}
return _896;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _89c=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_89c=="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(_89d){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_89d);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_89e){
try{
if(dojo.lang.isArray(_89e)){
return "array";
}
if(dojo.lang.isFunction(_89e)){
return "function";
}
if(dojo.lang.isString(_89e)){
return "string";
}
if(dojo.lang.isNumber(_89e)){
return "number";
}
if(dojo.lang.isBoolean(_89e)){
return "boolean";
}
if(dojo.lang.isAlien(_89e)){
return "alien";
}
if(dojo.lang.isUndefined(_89e)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_89e)){
return name;
}
}
if(dojo.lang.isObject(_89e)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_8a0){
return (!isNaN(_8a0)&&isFinite(_8a0)&&(_8a0!=null)&&!dojo.lang.isBoolean(_8a0)&&!dojo.lang.isArray(_8a0)&&!/^\s*$/.test(_8a0));
};
dojo.lang.isBuiltIn=function(_8a1){
return (dojo.lang.isArray(_8a1)||dojo.lang.isFunction(_8a1)||dojo.lang.isString(_8a1)||dojo.lang.isNumber(_8a1)||dojo.lang.isBoolean(_8a1)||(_8a1==null)||(_8a1 instanceof Error)||(typeof _8a1=="error"));
};
dojo.lang.isPureObject=function(_8a2){
return ((_8a2!=null)&&dojo.lang.isObject(_8a2)&&_8a2.constructor==Object);
};
dojo.lang.isOfType=function(_8a3,type,_8a5){
var _8a6=false;
if(_8a5){
_8a6=_8a5["optional"];
}
if(_8a6&&((_8a3===null)||dojo.lang.isUndefined(_8a3))){
return true;
}
if(dojo.lang.isArray(type)){
var _8a7=type;
for(var i in _8a7){
var _8a9=_8a7[i];
if(dojo.lang.isOfType(_8a3,_8a9)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_8a3);
case Function:
case "function":
return dojo.lang.isFunction(_8a3);
case String:
case "string":
return dojo.lang.isString(_8a3);
case Number:
case "number":
return dojo.lang.isNumber(_8a3);
case "numeric":
return dojo.lang.isNumeric(_8a3);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_8a3);
case Object:
case "object":
return dojo.lang.isObject(_8a3);
case "pureobject":
return dojo.lang.isPureObject(_8a3);
case "builtin":
return dojo.lang.isBuiltIn(_8a3);
case "alien":
return dojo.lang.isAlien(_8a3);
case "undefined":
return dojo.lang.isUndefined(_8a3);
case null:
case "null":
return (_8a3===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_8a3===null)||dojo.lang.isUndefined(_8a3));
default:
if(dojo.lang.isFunction(type)){
return (_8a3 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 _8ab=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_8ab[i++]];
}while(i<_8ab.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _8af=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_8af[i++]];
}while(i<_8af.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_8b2,_8b3){
if(!_8b2){
var _8b4="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_8b3){
_8b4+="Here's the assert message:\n"+_8b3+"\n";
}
throw new Error(_8b4);
}
};
dojo.lang.assertType=function(_8b5,type,_8b7){
if(dojo.lang.isString(_8b7)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_8b5,type,_8b7)){
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(_8b8,_8b9,_8ba){
var key;
if(!_8ba){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_8ba=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_8b9)){
for(key in _8b8){
if(!dojo.lang.inArray(_8b9,key)){
dojo.lang.assert(false,_8ba+" "+key);
}
}
}else{
for(key in _8b8){
if(!(key in _8b9)){
dojo.lang.assert(false,_8ba+" "+key);
}
}
}
};
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_8bc){
this.pairs=[];
this.returnWrappers=_8bc||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_8be,wrap,_8c0,_8c1){
var type=(_8c1)?"unshift":"push";
this.pairs[type]([name,_8be,wrap,_8c0]);
},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.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_8c9,wrap,_8cb){
dojo.lang.reprRegistry.register(name,_8c9,wrap,_8cb);
};
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.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_8d2,_8d3,_8d4){
dojo.html.show(node);
if(dojo.lang.isFunction(_8d4)){
_8d4();
}
},hide:function(node,_8d6,_8d7,_8d8){
dojo.html.hide(node);
if(dojo.lang.isFunction(_8d8)){
_8d8();
}
}};
dojo.lfx.toggle.fade={show:function(node,_8da,_8db,_8dc){
dojo.lfx.fadeShow(node,_8da,_8db,_8dc).play();
},hide:function(node,_8de,_8df,_8e0){
dojo.lfx.fadeHide(node,_8de,_8df,_8e0).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_8e2,_8e3,_8e4){
dojo.lfx.wipeIn(node,_8e2,_8e3,_8e4).play();
},hide:function(node,_8e6,_8e7,_8e8){
dojo.lfx.wipeOut(node,_8e6,_8e7,_8e8).play();
}};
dojo.lfx.toggle.explode={show:function(node,_8ea,_8eb,_8ec,_8ed){
dojo.lfx.explode(_8ed||{x:0,y:0,width:0,height:0},node,_8ea,_8eb,_8ec).play();
},hide:function(node,_8ef,_8f0,_8f1,_8f2){
dojo.lfx.implode(node,_8f2||{x:0,y:0,width:0,height:0},_8ef,_8f0,_8f1).play();
}};
dojo.provide("dojo.math.points");
dojo.math.points={translate:function(a,b){
if(a.length!=b.length){
dojo.raise("dojo.math.translate: points not same size (a:["+a+"], b:["+b+"])");
}
var c=new Array(a.length);
for(var i=0;i<a.length;i++){
c[i]=a[i]+b[i];
}
return c;
},midpoint:function(a,b){
if(a.length!=b.length){
dojo.raise("dojo.math.midpoint: points not same size (a:["+a+"], b:["+b+"])");
}
var c=new Array(a.length);
for(var i=0;i<a.length;i++){
c[i]=(a[i]+b[i])/2;
}
return c;
},invert:function(a){
var b=new Array(a.length);
for(var i=0;i<a.length;i++){
b[i]=-a[i];
}
return b;
},distance:function(a,b){
return Math.sqrt(Math.pow(b[0]-a[0],2)+Math.pow(b[1]-a[1],2));
}};
dojo.kwCompoundRequire({common:[["dojo.math",false,false],["dojo.math.curves",false,false],["dojo.math.points",false,false]]});
dojo.provide("dojo.math.*");
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_901,_902,_903){
if(!_903||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_901,_902);
}
},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,_90a,_90b){
this.name=name;
this.module=_90a;
this.resolver=_90b;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_90d,_90e){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _90f=this.resolver(name,_90d);
if((_90f)&&(!this._loaded[_90f])&&(!this._failed[_90f])){
var req=dojo.require;
req(_90f,false,true);
if(dojo.hostenv.findModule(_90f,false)){
this._loaded[_90f]=true;
}else{
if(!_90e){
dojo.raise("dojo.ns.Ns.resolve: module '"+_90f+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_90f]=true;
}
}
return Boolean(this._loaded[_90f]);
};
dojo.registerNamespace=function(name,_912,_913){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_915){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_915;
}
};
dojo.registerNamespaceManifest=function(_917,path,name,_91a,_91b){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_91a,_91b);
};
dojo.registerNamespace("dojo","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(_91d,_91e){
map[_91d]=_91e;
};
function dojoNamespaceResolver(name,_920){
if(!_920){
_920="html";
}
if(!map[_920]){
return null;
}
return map[_920][name];
}
dojo.registerNamespaceResolver("dojo",dojoNamespaceResolver);
})();
dojo.provide("dojo.storage");
dojo.storage=new function(){
};
dojo.declare("dojo.storage",null,{SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",namespace:"default",onHideSettingsUI:null,initialize:function(){
dojo.unimplemented("dojo.storage.initialize");
},isAvailable:function(){
dojo.unimplemented("dojo.storage.isAvailable");
},put:function(key,_922,_923){
dojo.unimplemented("dojo.storage.put");
},get:function(key){
dojo.unimplemented("dojo.storage.get");
},hasKey:function(key){
return (this.get(key)!=null);
},getKeys:function(){
dojo.unimplemented("dojo.storage.getKeys");
},clear:function(){
dojo.unimplemented("dojo.storage.clear");
},remove:function(key){
dojo.unimplemented("dojo.storage.remove");
},isPermanent:function(){
dojo.unimplemented("dojo.storage.isPermanent");
},getMaximumSize:function(){
dojo.unimplemented("dojo.storage.getMaximumSize");
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.unimplemented("dojo.storage.showSettingsUI");
},hideSettingsUI:function(){
dojo.unimplemented("dojo.storage.hideSettingsUI");
},getType:function(){
dojo.unimplemented("dojo.storage.getType");
},isValidKey:function(_927){
if((_927==null)||(typeof _927=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_927);
}});
dojo.storage.manager=new function(){
this.currentProvider=null;
this.available=false;
this._initialized=false;
this._providers=[];
this.namespace="default";
this.initialize=function(){
this.autodetect();
};
this.register=function(name,_929){
this._providers[this._providers.length]=_929;
this._providers[name]=_929;
};
this.setProvider=function(_92a){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _92b=null;
for(var i=0;i<this._providers.length;i++){
_92b=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_92b.getType()==djConfig["forceStorageProvider"]){
_92b.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_92b.isAvailable()){
break;
}
}
}
if(_92b==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_92b;
for(var i in _92b){
dojo.storage[i]=_92b[i];
}
dojo.storage.manager=this;
dojo.storage.initialize();
this._initialized=true;
this.available=true;
};
this.isAvailable=function(){
return this.available;
};
this.isInitialized=function(){
if(this.currentProvider.getType()=="dojo.storage.browser.FlashStorageProvider"&&dojo.flash.ready==false){
return false;
}else{
return this._initialized;
}
};
this.supportsProvider=function(_92d){
try{
var _92e=eval("new "+_92d+"()");
var _92f=_92e.isAvailable();
if(_92f==null||typeof _92f=="undefined"){
return false;
}
return _92f;
}
catch(exception){
return false;
}
};
this.getProvider=function(){
return this.currentProvider;
};
this.loaded=function(){
};
};
dojo.provide("dojo.string.Builder");
dojo.string.Builder=function(str){
this.arrConcat=(dojo.render.html.capable&&dojo.render.html["ie"]);
var a=[];
var b="";
var _933=this.length=b.length;
if(this.arrConcat){
if(b.length>0){
a.push(b);
}
b="";
}
this.toString=this.valueOf=function(){
return (this.arrConcat)?a.join(""):b;
};
this.append=function(){
for(var x=0;x<arguments.length;x++){
var s=arguments[x];
if(dojo.lang.isArrayLike(s)){
this.append.apply(this,s);
}else{
if(this.arrConcat){
a.push(s);
}else{
b+=s;
}
_933+=s.length;
this.length=_933;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_933=this.length=0;
return this;
};
this.remove=function(f,l){
var s="";
if(this.arrConcat){
b=a.join("");
}
a=[];
if(f>0){
s=b.substring(0,(f-1));
}
b=s+b.substring(f+l);
_933=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.replace=function(o,n){
if(this.arrConcat){
b=a.join("");
}
a=[];
b=b.replace(o,n);
_933=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.insert=function(idx,s){
if(this.arrConcat){
b=a.join("");
}
a=[];
if(idx==0){
b=s+b;
}else{
var t=b.split("");
t.splice(idx,0,s);
b=t.join("");
}
_933=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.kwCompoundRequire({common:["dojo.string","dojo.string.common","dojo.string.extras","dojo.string.Builder"]});
dojo.provide("dojo.string.*");
dojo.provide("dojo.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_93e){
if(_93e==null||dojo.lang.isUndefined(_93e)){
return;
}
if(_93e.flash6!=null&&!dojo.lang.isUndefined(_93e.flash6)){
this.flash6_version=_93e.flash6;
}
if(_93e.flash8!=null&&!dojo.lang.isUndefined(_93e.flash8)){
this.flash8_version=_93e.flash8;
}
if(!dojo.lang.isUndefined(_93e.visible)){
this._visible=_93e.visible;
}
this._initialize();
},useFlash6:function(){
if(this.flash6_version==null){
return false;
}else{
if(this.flash6_version!=null&&dojo.flash.info.commVersion==6){
return true;
}else{
return false;
}
}
},useFlash8:function(){
if(this.flash8_version==null){
return false;
}else{
if(this.flash8_version!=null&&dojo.flash.info.commVersion==8){
return true;
}else{
return false;
}
}
},addLoadedListener:function(_93f){
this._loadedListeners.push(_93f);
},addInstallingListener:function(_940){
this._installingListeners.push(_940);
},loaded:function(){
dojo.flash.ready=true;
if(dojo.flash._loadedListeners.length>0){
for(var i=0;i<dojo.flash._loadedListeners.length;i++){
dojo.flash._loadedListeners[i].call(null);
}
}
},installing:function(){
if(dojo.flash._installingListeners.length>0){
for(var i=0;i<dojo.flash._installingListeners.length;i++){
dojo.flash._installingListeners[i].call(null);
}
}
},_initialize:function(){
var _943=new dojo.flash.Install();
dojo.flash.installer=_943;
if(_943.needed()==true){
_943.install();
}else{
dojo.flash.obj=new dojo.flash.Embed(this._visible);
dojo.flash.obj.write(dojo.flash.info.commVersion);
dojo.flash.comm=new dojo.flash.Communicator();
}
}};
dojo.flash.Info=function(){
if(dojo.render.html.ie){
document.writeln("<script language=\"VBScript\" type=\"text/vbscript\">");
document.writeln("Function VBGetSwfVer(i)");
document.writeln("  on error resume next");
document.writeln("  Dim swControl, swVersion");
document.writeln("  swVersion = 0");
document.writeln("  set swControl = CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" + CStr(i))");
document.writeln("  if (IsObject(swControl)) then");
document.writeln("    swVersion = swControl.GetVariable(\"$version\")");
document.writeln("  end if");
document.writeln("  VBGetSwfVer = swVersion");
document.writeln("End Function");
document.writeln("</script>");
}
this._detectVersion();
this._detectCommunicationVersion();
};
dojo.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,commVersion:6,installing:false,isVersionOrAbove:function(_944,_945,_946){
_946=parseFloat("."+_946);
if(this.versionMajor>=_944&&this.versionMinor>=_945&&this.versionRevision>=_946){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _947;
for(var _948=25;_948>0;_948--){
if(dojo.render.html.ie){
_947=VBGetSwfVer(_948);
}else{
_947=this._JSFlashInfo(_948);
}
if(_947==-1){
this.capable=false;
return;
}else{
if(_947!=0){
var _949;
if(dojo.render.html.ie){
var _94a=_947.split(" ");
var _94b=_94a[1];
_949=_94b.split(",");
}else{
_949=_947.split(".");
}
this.versionMajor=_949[0];
this.versionMinor=_949[1];
this.versionRevision=_949[2];
var _94c=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_94c);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_94d){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _94e=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _94f=navigator.plugins["Shockwave Flash"+_94e].description;
var _950=_94f.split(" ");
var _951=_950[2].split(".");
var _952=_951[0];
var _953=_951[1];
if(_950[3]!=""){
var _954=_950[3].split("r");
}else{
var _954=_950[4].split("r");
}
var _955=_954[1]>0?_954[1]:0;
var _956=_952+"."+_953+"."+_955;
return _956;
}
}
return -1;
},_detectCommunicationVersion:function(){
if(this.capable==false){
this.commVersion=null;
return;
}
if(typeof djConfig["forceFlashComm"]!="undefined"&&typeof djConfig["forceFlashComm"]!=null){
this.commVersion=djConfig["forceFlashComm"];
return;
}
if(dojo.render.html.safari==true||dojo.render.html.opera==true){
this.commVersion=8;
}else{
this.commVersion=6;
}
}};
dojo.flash.Embed=function(_957){
this._visible=_957;
};
dojo.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){
switch(window.location.protocol){
case "https:":
return "https";
break;
default:
return "http";
break;
}
},write:function(_958,_959){
if(dojo.lang.isUndefined(_959)){
_959=false;
}
var _95a=new dojo.string.Builder();
_95a.append("width: "+this.width+"px; ");
_95a.append("height: "+this.height+"px; ");
if(this._visible==false){
_95a.append("position: absolute; ");
_95a.append("z-index: 10000; ");
_95a.append("top: -1000px; ");
_95a.append("left: -1000px; ");
}
_95a=_95a.toString();
var _95b;
var _95c;
if(_958==6){
_95c=dojo.flash.flash6_version;
var _95d=djConfig.baseRelativePath;
_95c=_95c+"?baseRelativePath="+escape(_95d);
_95b="<embed id=\""+this.id+"\" src=\""+_95c+"\" "+"    quality=\"high\" bgcolor=\"#ffffff\" "+"    width=\""+this.width+"\" height=\""+this.height+"\" "+"    name=\""+this.id+"\" "+"    align=\"middle\" allowScriptAccess=\"sameDomain\" "+"    type=\"application/x-shockwave-flash\" swLiveConnect=\"true\" "+"    pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\">";
}else{
_95c=dojo.flash.flash8_version;
var _95e=_95c;
var _95f=_95c;
var _95d=djConfig.baseRelativePath;
if(_959){
var _960=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _961=escape(document.title);
_95e+="?MMredirectURL="+_960+"&MMplayerType=ActiveX"+"&MMdoctitle="+_961+"&baseRelativePath="+escape(_95d);
_95f+="?MMredirectURL="+_960+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_95d);
}
if(_95f.indexOf("?")==-1){
_95f+="?baseRelativePath="+escape(_95d)+"' ";
}
_95b="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\""+this.protocol()+"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/"+"swflash.cab#version=8,0,0,0\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"align=\"middle\"> "+"<param name=\"allowScriptAccess\" value=\"sameDomain\" /> "+"<param name=\"movie\" value=\""+_95e+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_95f+"' "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"sameDomain\" "+"type=\"application/x-shockwave-flash\" "+"pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\" />"+"</object>";
}
_95b="<div id=\""+this.id+"Container\" style=\""+_95a+"\"> "+_95b+"</div>";
document.writeln(_95b);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_962){
var _963=dojo.byId(this.id+"Container");
if(_962==true){
_963.style.visibility="visible";
}else{
_963.style.position="absolute";
_963.style.x="-1000px";
_963.style.y="-1000px";
_963.style.visibility="hidden";
}
},center:function(){
var _964=this.width;
var _965=this.height;
var _966=dojo.html.getScroll().offset;
var _967=dojo.html.getViewport();
var x=_966.x+(_967.width-_964)/2;
var y=_966.y+(_967.height-_965)/2;
var _96a=dojo.byId(this.id+"Container");
_96a.style.top=y+"px";
_96a.style.left=x+"px";
}};
dojo.flash.Communicator=function(){
if(dojo.flash.useFlash6()){
this._writeFlash6();
}else{
if(dojo.flash.useFlash8()){
this._writeFlash8();
}
}
};
dojo.flash.Communicator.prototype={_writeFlash6:function(){
var id=dojo.flash.obj.id;
document.writeln("<script language=\"JavaScript\">");
document.writeln("  function "+id+"_DoFSCommand(command, args){ ");
document.writeln("    dojo.flash.comm._handleFSCommand(command, args); ");
document.writeln("}");
document.writeln("</script>");
if(dojo.render.html.ie){
document.writeln("<SCRIPT LANGUAGE=VBScript> ");
document.writeln("on error resume next ");
document.writeln("Sub "+id+"_FSCommand(ByVal command, ByVal args)");
document.writeln(" call "+id+"_DoFSCommand(command, args)");
document.writeln("end sub");
document.writeln("</SCRIPT> ");
}
},_writeFlash8:function(){
},_handleFSCommand:function(_96c,args){
if(_96c!=null&&!dojo.lang.isUndefined(_96c)&&/^FSCommand:(.*)/.test(_96c)==true){
_96c=_96c.match(/^FSCommand:(.*)/)[1];
}
if(_96c=="addCallback"){
this._fscommandAddCallback(_96c,args);
}else{
if(_96c=="call"){
this._fscommandCall(_96c,args);
}else{
if(_96c=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_96e,args){
var _970=args;
var _971=function(){
return dojo.flash.comm._call(_970,arguments);
};
dojo.flash.comm[_970]=_971;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_972,args){
var _974=dojo.flash.obj.get();
var _975=args;
var _976=parseInt(_974.GetVariable("_numArgs"));
var _977=new Array();
for(var i=0;i<_976;i++){
var _979=_974.GetVariable("_"+i);
_977.push(_979);
}
var _97a;
if(_975.indexOf(".")==-1){
_97a=window[_975];
}else{
_97a=eval(_975);
}
var _97b=null;
if(!dojo.lang.isUndefined(_97a)&&_97a!=null){
_97b=_97a.apply(null,_977);
}
_974.SetVariable("_returnResult",_97b);
},_fscommandReady:function(){
var _97c=dojo.flash.obj.get();
_97c.SetVariable("fscommandReady","true");
},_call:function(_97d,args){
var _97f=dojo.flash.obj.get();
_97f.SetVariable("_functionName",_97d);
_97f.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _981=args[i];
_981=_981.replace(/\0/g,"\\0");
_97f.SetVariable("_"+i,_981);
}
_97f.TCallLabel("/_flashRunner","execute");
var _982=_97f.GetVariable("_returnResult");
_982=_982.replace(/\\0/g,"\x00");
return _982;
},_addExternalInterfaceCallback:function(_983){
var _984=function(){
var _985=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_985[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_983,_985);
};
dojo.flash.comm[_983]=_984;
},_encodeData:function(data){
var _988=/\&([^;]*)\;/g;
data=data.replace(_988,"&amp;$1;");
data=data.replace(/</g,"&lt;");
data=data.replace(/>/g,"&gt;");
data=data.replace("\\","&custom_backslash;&custom_backslash;");
data=data.replace(/\n/g,"\\n");
data=data.replace(/\r/g,"\\r");
data=data.replace(/\f/g,"\\f");
data=data.replace(/\0/g,"\\0");
data=data.replace(/\'/g,"\\'");
data=data.replace(/\"/g,"\\\"");
return data;
},_decodeData:function(data){
if(data==null||typeof data=="undefined"){
return data;
}
data=data.replace(/\&custom_lt\;/g,"<");
data=data.replace(/\&custom_gt\;/g,">");
data=eval("\""+data+"\"");
return data;
},_chunkArgumentData:function(_98a,_98b){
var _98c=dojo.flash.obj.get();
var _98d=Math.ceil(_98a.length/1024);
for(var i=0;i<_98d;i++){
var _98f=i*1024;
var _990=i*1024+1024;
if(i==(_98d-1)){
_990=i*1024+_98a.length;
}
var _991=_98a.substring(_98f,_990);
_991=this._encodeData(_991);
_98c.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_991+"</string>"+"<number>"+_98b+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _992=dojo.flash.obj.get();
var _993=_992.getReturnLength();
var _994=new Array();
for(var i=0;i<_993;i++){
var _996=_992.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_996=="\"\""||_996=="''"){
_996="";
}else{
_996=_996.substring(1,_996.length-1);
}
_994.push(_996);
}
var _997=_994.join("");
return _997;
},_execFlash:function(_998,_999){
var _99a=dojo.flash.obj.get();
_99a.startExec();
_99a.setNumberArguments(_999.length);
for(var i=0;i<_999.length;i++){
this._chunkArgumentData(_999[i],i);
}
_99a.exec(_998);
var _99c=this._chunkReturnData();
_99c=this._decodeData(_99c);
_99a.endExec();
return _99c;
}};
dojo.flash.Install=function(){
};
dojo.flash.Install.prototype={needed:function(){
if(dojo.flash.info.capable==false){
return true;
}
if(dojo.render.os.mac==true&&!dojo.flash.info.isVersionOrAbove(8,0,0)){
return true;
}
if(!dojo.flash.info.isVersionOrAbove(6,0,0)){
return true;
}
return false;
},install:function(){
dojo.flash.info.installing=true;
dojo.flash.installing();
if(dojo.flash.info.capable==false){
var _99d=new dojo.flash.Embed(false);
_99d.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _99d=new dojo.flash.Embed(false);
_99d.write(8,true);
_99d.setVisible(true);
_99d.center();
}else{
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=+dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}
}
},_onInstallStatus:function(msg){
if(msg=="Download.Complete"){
dojo.flash._initialize();
}else{
if(msg=="Download.Cancelled"){
alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
window.location.href=dojo.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
}else{
if(msg=="Download.Failed"){
alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
}
}
}
}};
dojo.flash.info=new dojo.flash.Info();
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_9a0,wrap,_9a2){
dojo.json.jsonRegistry.register(name,_9a0,wrap,_9a2);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _9a5=typeof (o);
if(_9a5=="undefined"){
return "undefined";
}else{
if((_9a5=="number")||(_9a5=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_9a5=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _9a7;
if(typeof (o.__json__)=="function"){
_9a7=o.__json__();
if(o!==_9a7){
return me(_9a7);
}
}
if(typeof (o.json)=="function"){
_9a7=o.json();
if(o!==_9a7){
return me(_9a7);
}
}
if(_9a5!="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;
_9a7=dojo.json.jsonRegistry.match(o);
return me(_9a7);
}
catch(e){
}
if(_9a5=="function"){
return null;
}
res=[];
for(var k in o){
var _9ac;
if(typeof (k)=="number"){
_9ac="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_9ac=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_9ac+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.storage.browser");
dojo.storage.browser.FileStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FileStorageProvider,dojo.storage);
dojo.storage.browser.FileStorageProvider._KEY_INDEX_FILENAME="__dojoAllKeys";
dojo.storage.browser.FileStorageProvider._APPLET_ID="__dojoFileJavaObj";
dojo.lang.extend(dojo.storage.browser.FileStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,_keyIndex:new Array(),initialize:function(){
if(djConfig["disableFileStorage"]==true){
return;
}
this._loadKeyIndex();
this.initialized=true;
dojo.storage.manager.loaded();
},isAvailable:function(){
this._available=false;
var _9ad=window.location.protocol;
if(_9ad.indexOf("file")!=-1||_9ad.indexOf("chrome")!=-1){
this._available=this._isAvailableXPCOM();
if(this._available==false){
this._available=this._isAvailableActiveX();
}
}
return this._available;
},put:function(key,_9af,_9b0){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_9b0;
try{
this._save(key,_9af);
_9b0.call(null,dojo.storage.SUCCESS,key);
}
catch(e){
this._statusHandler.call(null,dojo.storage.FAILED,key,e.toString());
}
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _9b2=this._load(key);
return _9b2;
},getKeys:function(){
return this._keyIndex;
},hasKey:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._loadKeyIndex();
var _9b4=false;
for(var i=0;i<this._keyIndex.length;i++){
if(this._keyIndex[i]==key){
_9b4=true;
}
}
return _9b4;
},clear:function(){
this._loadKeyIndex();
var _9b6=new Array();
for(var i=0;i<this._keyIndex.length;i++){
_9b6[_9b6.length]=new String(this._keyIndex[i]);
}
for(var i=0;i<_9b6.length;i++){
this.remove(_9b6[i]);
}
},remove:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._loadKeyIndex();
for(var i=0;i<this._keyIndex.length;i++){
if(this._keyIndex[i]==key){
this._keyIndex.splice(i,1);
break;
}
}
this._save(dojo.storage.browser.FileStorageProvider._KEY_INDEX_FILENAME,this._keyIndex,false);
var _9ba=this._getPagePath()+key+".txt";
if(this._isAvailableXPCOM()){
this._removeXPCOM(_9ba);
}else{
if(this._isAvailableActiveX()){
this._removeActiveX(_9ba);
}
}
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},hideSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},getType:function(){
return "dojo.storage.browser.FileStorageProvider";
},_save:function(key,_9bc,_9bd){
if(typeof _9bd=="undefined"){
_9bd=true;
}
if(dojo.lang.isString(_9bc)==false){
_9bc=dojo.json.serialize(_9bc);
_9bc="/* JavaScript */\n"+_9bc+"\n\n";
}
var _9be=this._getPagePath()+key+".txt";
if(this._isAvailableXPCOM()){
this._saveFileXPCOM(_9be,_9bc);
}else{
if(this._isAvailableActiveX()){
this._saveFileActiveX(_9be,_9bc);
}
}
if(_9bd){
this._updateKeyIndex(key);
}
},_load:function(key){
var _9c0=this._getPagePath()+key+".txt";
var _9c1=null;
if(this._isAvailableXPCOM()){
_9c1=this._loadFileXPCOM(_9c0);
}else{
if(this._isAvailableActiveX()){
_9c1=this._loadFileActiveX(_9c0);
}else{
if(this._isAvailableJava()){
_9c1=this._loadFileJava(_9c0);
}
}
}
if(_9c1==null){
return null;
}
if(!dojo.lang.isUndefined(_9c1)&&_9c1!=null&&/^\/\* JavaScript \*\//.test(_9c1)){
_9c1=dojo.json.evalJson(_9c1);
}
return _9c1;
},_updateKeyIndex:function(key){
this._loadKeyIndex();
var _9c3=false;
for(var i=0;i<this._keyIndex.length;i++){
if(this._keyIndex[i]==key){
_9c3=true;
break;
}
}
if(_9c3==false){
this._keyIndex[this._keyIndex.length]=key;
}
this._save(dojo.storage.browser.FileStorageProvider._KEY_INDEX_FILENAME,this._keyIndex,false);
},_loadKeyIndex:function(){
var _9c5=this._load(dojo.storage.browser.FileStorageProvider._KEY_INDEX_FILENAME);
if(_9c5==null){
this._keyIndex=new Array();
}else{
this._keyIndex=_9c5;
}
},_saveFileXPCOM:function(_9c6,_9c7){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var f=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
f.initWithPath(_9c6);
var _9c9=Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
_9c9.init(f,32|4|8,256+128,null);
_9c9.write(_9c7,_9c7.length);
_9c9.close();
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._saveFileXPCOM(): "+msg);
}
},_loadFileXPCOM:function(_9cb){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var f=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
f.initWithPath(_9cb);
if(f.exists()==false){
return null;
}
var inp=Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
inp.init(f,1,4,null);
var _9ce=Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream);
_9ce.init(inp);
var _9cf=_9ce.read(_9ce.available());
return _9cf;
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._loadFileXPCOM(): "+msg);
}
return null;
},_saveFileActiveX:function(_9d1,_9d2){
try{
var _9d3=new ActiveXObject("Scripting.FileSystemObject");
var f=_9d3.OpenTextFile(_9d1,2,true);
f.Write(_9d2);
f.Close();
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._saveFileActiveX(): "+msg);
}
},_loadFileActiveX:function(_9d6){
try{
var _9d7=new ActiveXObject("Scripting.FileSystemObject");
if(_9d7.FileExists(_9d6)==false){
return null;
}
var f=_9d7.OpenTextFile(_9d6,1);
var _9d9=f.ReadAll();
f.Close();
return _9d9;
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._loadFileActiveX(): "+msg);
}
},_saveFileJava:function(_9db,_9dc){
try{
var _9dd=dojo.byId(dojo.storage.browser.FileStorageProvider._APPLET_ID);
_9dd.save(_9db,_9dc);
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._saveFileJava(): "+msg);
}
},_loadFileJava:function(_9df){
try{
var _9e0=dojo.byId(dojo.storage.browser.FileStorageProvider._APPLET_ID);
var _9e1=_9e0.load(_9df);
return _9e1;
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._loadFileJava(): "+msg);
}
},_isAvailableActiveX:function(){
try{
if(window.ActiveXObject){
var _9e3=new window.ActiveXObject("Scripting.FileSystemObject");
return true;
}
}
catch(e){
dojo.debug(e);
}
return false;
},_isAvailableXPCOM:function(){
try{
if(window.Components){
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
return true;
}
}
catch(e){
dojo.debug(e);
}
return false;
},_isAvailableJava:function(){
try{
if(dojo.render.html.safari==true||dojo.render.html.opera==true()){
if(navigator.javaEnabled()==true){
return true;
}
}
}
catch(e){
dojo.debug(e);
}
return false;
},_getPagePath:function(){
var path=window.location.pathname;
if(/\.html?$/i.test(path)){
path=path.replace(/(?:\/|\\)?[^\.\/\\]*\.html?$/,"");
}
if(/^\/?[a-z]+\:/i.test(path)){
path=path.replace(/^\/?/,"");
path=path.replace(/\//g,"\\");
}else{
if(/^[\/\\]{2,3}[^\/]/.test(path)){
path=path.replace(/^[\/\\]{2,3}/,"");
path=path.replace(/\//g,"\\");
path="\\\\"+path;
}
}
if(/\/$/.test(path)==false&&/\\$/.test(path)==false){
if(/\//.test(path)){
path+="/";
}else{
path+="\\";
}
}
path=unescape(path);
return path;
},_removeXPCOM:function(_9e5){
try{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var f=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
f.initWithPath(_9e5);
if(f.exists()==false||f.isDirectory()){
return;
}
if(f.isFile()){
f.remove(false);
}
}
catch(e){
dojo.raise("dojo.storage.browser.FileStorageProvider.remove(): "+e.toString());
}
},_removeActiveX:function(_9e7){
try{
var _9e8=new ActiveXObject("Scripting.FileSystemObject");
_9e8.DeleteFile(_9e7);
}
catch(e){
dojo.raise("dojo.storage.browser.FileStorageProvider.remove(): "+e.toString());
}
},_removeJava:function(_9e9){
try{
var _9ea=dojo.byId(dojo.storage.browser.FileStorageProvider._APPLET_ID);
_9ea.remove(_9e9);
}
catch(e){
var msg=e.toString();
if(e.name&&e.message){
msg=e.name+": "+e.message;
}
dojo.raise("dojo.storage.browser.FileStorageProvider._removeJava(): "+msg);
}
},_writeApplet:function(){
var _9ec=dojo.uri.moduleUri("dojo","../DojoFileStorageProvider.jar").toString();
var tag="<applet "+"id='"+dojo.storage.browser.FileStorageProvider._APPLET_ID+"' "+"style='position: absolute; top: -500px; left: -500px; width: 1px; height: 1px;' "+"code='DojoFileStorageProvider.class' "+"archive='"+_9ec+"' "+"width='1' "+"height='1' "+">"+"</applet>";
document.writeln(tag);
}});
dojo.storage.browser.WhatWGStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.WhatWGStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.WhatWGStorageProvider,{namespace:"default",initialized:false,_domain:null,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableWhatWGStorage"]==true){
return;
}
this._domain=location.hostname;
this.initialized=true;
dojo.storage.manager.loaded();
},isAvailable:function(){
try{
var _9ee=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_9f0,_9f1){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_9f1;
if(dojo.lang.isString(_9f0)){
_9f0="string:"+_9f0;
}else{
_9f0=dojo.json.serialize(_9f0);
}
window.addEventListener("storage",function(evt){
_9f1.call(null,dojo.storage.SUCCESS,key);
},false);
try{
var _9f3=globalStorage[this._domain];
_9f3.setItem(key,_9f0);
}
catch(e){
this._statusHandler.call(null,dojo.storage.FAILED,key,e.toString());
}
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _9f5=globalStorage[this._domain];
var _9f6=_9f5.getItem(key);
if(_9f6==null){
return null;
}
_9f6=_9f6.value;
if(!dojo.lang.isUndefined(_9f6)&&_9f6!=null&&/^string:/.test(_9f6)){
_9f6=_9f6.substring("string:".length);
}else{
_9f6=dojo.json.evalJson(_9f6);
}
return _9f6;
},getKeys:function(){
var _9f7=globalStorage[this._domain];
var _9f8=new Array();
for(i=0;i<_9f7.length;i++){
_9f8[i]=_9f7.key(i);
}
return _9f8;
},clear:function(){
var _9f9=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_9f9.length;i++){
keys[keys.length]=_9f9.key(i);
}
for(var i=0;i<keys.length;i++){
_9f9.removeItem(keys[i]);
}
},remove:function(key){
var _9fd=globalStorage[this._domain];
_9fd.removeItem(key);
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return false;
},showSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},hideSettingsUI:function(){
dojo.raise(this.getType()+" does not support a storage settings user-interface");
},getType:function(){
return "dojo.storage.browser.WhatWGProvider";
}});
dojo.storage.browser.FlashStorageProvider=function(){
};
dojo.inherits(dojo.storage.browser.FlashStorageProvider,dojo.storage);
dojo.lang.extend(dojo.storage.browser.FlashStorageProvider,{namespace:"default",initialized:false,_available:null,_statusHandler:null,initialize:function(){
if(djConfig["disableFlashStorage"]==true){
return;
}
var _9fe=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_9fe);
var _9ff=dojo.uri.moduleUri("dojo","../Storage_version6.swf").toString();
var _a00=dojo.uri.moduleUri("dojo","../Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_9ff,flash8:_a00,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_a02,_a03){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_a03;
if(dojo.lang.isString(_a02)){
_a02="string:"+_a02;
}else{
_a02=dojo.json.serialize(_a02);
}
dojo.flash.comm.put(key,_a02,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _a05=dojo.flash.comm.get(key,this.namespace);
if(_a05==""){
return null;
}
if(!dojo.lang.isUndefined(_a05)&&_a05!=null&&/^string:/.test(_a05)){
_a05=_a05.substring("string:".length);
}else{
_a05=dojo.json.evalJson(_a05);
}
return _a05;
},getKeys:function(){
var _a06=dojo.flash.comm.getKeys(this.namespace);
if(_a06==""){
return [];
}
return _a06.split(",");
},clear:function(){
dojo.flash.comm.clear(this.namespace);
},remove:function(key){
dojo.unimplemented("dojo.storage.browser.FlashStorageProvider.remove");
},isPermanent:function(){
return true;
},getMaximumSize:function(){
return dojo.storage.SIZE_NO_LIMIT;
},hasSettingsUI:function(){
return true;
},showSettingsUI:function(){
dojo.flash.comm.showSettings();
dojo.flash.obj.setVisible(true);
dojo.flash.obj.center();
},hideSettingsUI:function(){
dojo.flash.obj.setVisible(false);
if(dojo.storage.onHideSettingsUI!=null&&!dojo.lang.isUndefined(dojo.storage.onHideSettingsUI)){
dojo.storage.onHideSettingsUI.call(null);
}
},getType:function(){
return "dojo.storage.browser.FlashStorageProvider";
},_flashLoaded:function(){
this._initialized=true;
dojo.storage.manager.loaded();
},_onStatus:function(_a08,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_a08==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_a08,key);
}
}});
dojo.storage.manager.register("dojo.storage.browser.FileStorageProvider",new dojo.storage.browser.FileStorageProvider());
dojo.storage.manager.register("dojo.storage.browser.WhatWGStorageProvider",new dojo.storage.browser.WhatWGStorageProvider());
dojo.storage.manager.register("dojo.storage.browser.FlashStorageProvider",new dojo.storage.browser.FlashStorageProvider());
dojo.storage.manager.initialize();
dojo.kwCompoundRequire({common:["dojo.storage"],browser:["dojo.storage.browser"]});
dojo.provide("dojo.storage.*");
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 _a0f=getTagName(node);
if(!_a0f){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_a0f])){
return _a0f;
}
var p=_a0f.indexOf(":");
if(p>=0){
return _a0f;
}
if(_a0f.substr(0,5)=="dojo:"){
return _a0f;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_a0f;
}
if(_a0f.substr(0,4)=="dojo"){
return "dojo:"+_a0f.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 _a12=node.className||node.getAttribute("class");
if((_a12)&&(_a12.indexOf)&&(_a12.indexOf("dojo-")!=-1)){
var _a13=_a12.split(" ");
for(var x=0,c=_a13.length;x<c;x++){
if(_a13[x].slice(0,5)=="dojo-"){
return "dojo:"+_a13[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_a17,_a18,_a19){
var _a1a=getTagName(node);
if(isIE&&_a1a.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _a1c=true;
if(_a18){
var _a1d=getDojoTagName(node);
_a1a=_a1d||_a1a;
_a1c=Boolean(_a1d);
}
var _a1e={};
_a1e[_a1a]=[];
var pos=_a1a.indexOf(":");
if(pos>0){
var ns=_a1a.substring(0,pos);
_a1e["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_a1c=false;
}
}
if(_a1c){
var _a21=this.parseAttributes(node);
for(var attr in _a21){
if((!_a1e[_a1a][attr])||(typeof _a1e[_a1a][attr]!="array")){
_a1e[_a1a][attr]=[];
}
_a1e[_a1a][attr].push(_a21[attr]);
}
_a1e[_a1a].nodeRef=node;
_a1e.tagName=_a1a;
_a1e.index=_a19||0;
}
var _a22=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(!_a1e[ctn]){
_a1e[ctn]=[];
}
_a1e[ctn].push(this.parseElement(tcn,true,_a18,_a22));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_a1e[ctn][_a1e[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_a22++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_a1e[_a1a].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _a1e;
};
this.parseAttributes=function(node){
var _a27={};
var atts=node.attributes;
var _a29,i=0;
while((_a29=atts[i++])){
if(isIE){
if(!_a29){
continue;
}
if((typeof _a29=="object")&&(typeof _a29.nodeValue=="undefined")||(_a29.nodeValue==null)||(_a29.nodeValue=="")){
continue;
}
}
var nn=_a29.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_a29.nodeName;
_a27[nn]={value:_a29.nodeValue};
}
return _a27;
};
};
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _a2c={};
var _a2d=[];
this.getUniqueId=function(_a2e){
var _a2f;
do{
_a2f=_a2e+"_"+(_a2c[_a2e]!=undefined?++_a2c[_a2e]:_a2c[_a2e]=0);
}while(this.getWidgetById(_a2f));
return _a2f;
};
this.add=function(_a30){
this.widgets.push(_a30);
if(!_a30.extraArgs["id"]){
_a30.extraArgs["id"]=_a30.extraArgs["ID"];
}
if(_a30.widgetId==""){
if(_a30["id"]){
_a30.widgetId=_a30["id"];
}else{
if(_a30.extraArgs["id"]){
_a30.widgetId=_a30.extraArgs["id"];
}else{
_a30.widgetId=this.getUniqueId(_a30.ns+"_"+_a30.widgetType);
}
}
}
if(this.widgetIds[_a30.widgetId]){
dojo.debug("widget ID collision on ID: "+_a30.widgetId);
}
this.widgetIds[_a30.widgetId]=_a30;
};
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(_a32){
if(dojo.lang.isNumber(_a32)){
var tw=this.widgets[_a32].widgetId;
delete this.topWidgets[tw];
delete this.widgetIds[tw];
this.widgets.splice(_a32,1);
}else{
this.removeById(_a32);
}
};
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 _a39=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_a39(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_a3e,_a3f){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_a3e(x)){
ret.push(x);
if(_a3f){
return false;
}
}
return true;
});
return (_a3f?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 _a45={};
var _a46=["dojo.widget"];
for(var i=0;i<_a46.length;i++){
_a46[_a46[i]]=true;
}
this.registerWidgetPackage=function(_a48){
if(!_a46[_a48]){
_a46[_a48]=true;
_a46.push(_a48);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_a46,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_a4a,_a4b,_a4c,ns){
var impl=this.getImplementationName(_a4a,ns);
if(impl){
var ret=_a4b?new impl(_a4b):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _a50 in dojo.render){
if(dojo.render[_a50]["capable"]===true){
var _a51=dojo.render[_a50].prefixes;
for(var i=0;i<_a51.length;i++){
_a2d.push(_a51[i].toLowerCase());
}
}
}
}
var _a53=function(_a54,_a55){
if(!_a55){
return null;
}
for(var i=0,l=_a2d.length,_a58;i<=l;i++){
_a58=(i<l?_a55[_a2d[i]]:_a55);
if(!_a58){
continue;
}
for(var name in _a58){
if(name.toLowerCase()==_a54){
return _a58[name];
}
}
}
return null;
};
var _a5a=function(_a5b,_a5c){
var _a5d=dojo.evalObjPath(_a5c,false);
return (_a5d?_a53(_a5b,_a5d):null);
};
this.getImplementationName=function(_a5e,ns){
var _a60=_a5e.toLowerCase();
ns=ns||"dojo";
var imps=_a45[ns]||(_a45[ns]={});
var impl=imps[_a60];
if(impl){
return impl;
}
if(!_a2d.length){
buildPrefixCache();
}
var _a63=dojo.ns.get(ns);
if(!_a63){
dojo.ns.register(ns,ns+".widget");
_a63=dojo.ns.get(ns);
}
if(_a63){
_a63.resolve(_a5e);
}
impl=_a5a(_a60,_a63.module);
if(impl){
return (imps[_a60]=impl);
}
_a63=dojo.ns.require(ns);
if((_a63)&&(_a63.resolver)){
_a63.resolve(_a5e);
impl=_a5a(_a60,_a63.module);
if(impl){
return (imps[_a60]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_a5e+"\" in \""+_a63.module+"\" registered to namespace \""+_a63.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_a46.length;i++){
impl=_a5a(_a60,_a46[i]);
if(impl){
return (imps[_a60]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_a5e+"\" in \""+_a63.module+"\" registered to namespace \""+_a63.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _a66=this.topWidgets[id];
if(_a66.checkSize){
_a66.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(_a6b,_a6c){
dw[(_a6c||_a6b)]=h(_a6b);
};
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 _a6e=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _a6e[n];
}
return _a6e;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.widget.Widget");
dojo.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 _a70=this.children[i];
if(_a70.onResized){
_a70.onResized();
}
}
},create:function(args,_a72,_a73,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_a72,_a73);
this.mixInProperties(args,_a72,_a73);
this.postMixInProperties(args,_a72,_a73);
dojo.widget.manager.add(this);
this.buildRendering(args,_a72,_a73);
this.initialize(args,_a72,_a73);
this.postInitialize(args,_a72,_a73);
this.postCreate(args,_a72,_a73);
return this;
},destroy:function(_a75){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_a75);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _a76;
var i=0;
while(this.children.length>i){
_a76=this.children[i];
if(_a76 instanceof dojo.widget.Widget){
this.removeChild(_a76);
_a76.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_a79){
var ret=[];
var _a7b=dojo.lang.isFunction(type);
if(!_a7b){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_a7b){
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(_a79){
ret=ret.concat(this.children[x].getChildrenOfType(type,_a79));
}
}
return ret;
},getDescendants:function(){
var _a7d=[];
var _a7e=[this];
var elem;
while((elem=_a7e.pop())){
_a7d.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_a7e.push(elem);
});
}
}
return _a7d;
},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 _a85;
var _a86=dojo.widget.lcArgsCache[this.widgetType];
if(_a86==null){
_a86={};
for(var y in this){
_a86[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_a86;
}
var _a88={};
for(var x in args){
if(!this[x]){
var y=_a86[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_a88[x]){
continue;
}
_a88[x]=true;
if((typeof this[x])!=(typeof _a85)){
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 _a8a=args[x].split(";");
for(var y=0;y<_a8a.length;y++){
var si=_a8a[y].indexOf(":");
if((si!=-1)&&(_a8a[y].length>si)){
this[x][_a8a[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_a8a[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_a8e){
},initialize:function(args,frag,_a91){
return false;
},postInitialize:function(args,frag,_a94){
return false;
},postCreate:function(args,frag,_a97){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_a9a){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_a9b){
},addChild:function(_a9c){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_a9d){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_a9d){
this.children.splice(x,1);
_a9d.parent=null;
break;
}
}
return _a9d;
},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(_aa2,_aa3,_aa4){
var _aa5=_aa3.parseProperties(_aa2["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_aa6,_aa7,_aa8){
var _aa9=_aa7.parseProperties(_aa6["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_aac,_aad,_aae,_aaf){
dojo.a11y.setAccessibleMode();
var _ab0=type.split(":");
_ab0=(_ab0.length==2)?_ab0[1]:type;
var _ab1=_aaf||_aac.parseProperties(frag[frag["ns"]+":"+_ab0]);
var _ab2=dojo.widget.manager.getImplementation(_ab0,null,null,frag["ns"]);
if(!_ab2){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_ab2.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_ab1["dojoinsertionindex"]=_aae;
var ret=_ab2.create(_ab1,frag,_aad,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_ab4,_ab5,_ab6,init,_ab8){
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(_abb,_abc,_abd,init,_abf){
var _ac0=_abb.split(".");
var type=_ac0.pop();
var regx="\\.("+(_abc?_abc+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_abb.search(new RegExp(regx));
_ac0=(r<0?_ac0.join("."):_abb.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_ac0);
var pos=_ac0.indexOf(".");
var _ac5=(pos>-1)?_ac0.substring(0,pos):_ac0;
_abf=(_abf)||{};
_abf.widgetType=type;
if((!init)&&(_abf["classConstructor"])){
init=_abf.classConstructor;
delete _abf.classConstructor;
}
dojo.declare(_abb,_abd,init,_abf);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_ac6){
this.propertySetsList=[];
this.fragment=_ac6;
this.createComponents=function(frag,_ac8){
var _ac9=[];
var _aca=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _acb=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(_acb[ltn]){
_aca=true;
ret=_acb[ltn](frag,this,_ac8,frag.index);
_ac9.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_ac8,frag.index);
if(ret){
_aca=true;
_ac9.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_aca){
_ac9=_ac9.concat(this.createSubComponents(frag,_ac8));
}
return _ac9;
};
this.createSubComponents=function(_ad0,_ad1){
var frag,_ad3=[];
for(var item in _ad0){
frag=_ad0[item];
if(frag&&typeof frag=="object"&&(frag!=_ad0.nodeRef)&&(frag!=_ad0.tagName)&&(!dojo.dom.isNode(frag))){
_ad3=_ad3.concat(this.createComponents(frag,_ad1));
}
}
return _ad3;
};
this.parsePropertySets=function(_ad5){
return [];
};
this.parseProperties=function(_ad6){
var _ad7={};
for(var item in _ad6){
if((_ad6[item]==_ad6.tagName)||(_ad6[item]==_ad6.nodeRef)){
}else{
var frag=_ad6[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 _ada=this;
this.getDataProvider(_ada,frag[0].value);
_ad7.dataProvider=this.dataProvider;
}
_ad7[item]=frag[0].value;
var _adb=this.parseProperties(frag);
for(var _adc in _adb){
_ad7[_adc]=_adb[_adc];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _ad7[item]!="boolean"){
_ad7[item]=true;
}
break;
}
}
}
return _ad7;
};
this.getDataProvider=function(_add,_ade){
dojo.io.bind({url:_ade,load:function(type,_ae0){
if(type=="load"){
_add.dataProvider=_ae0;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_ae1){
for(var x=0;x<this.propertySetsList.length;x++){
if(_ae1==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_ae3){
var _ae4=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _ae8=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_ae8==cpcc[0].value)){
_ae4.push(cpl);
}
}
return _ae4;
};
this.getPropertySets=function(_ae9){
var ppl="dojo:propertyproviderlist";
var _aeb=[];
var _aec=_ae9.tagName;
if(_ae9[ppl]){
var _aed=_ae9[ppl].value.split(" ");
for(var _aee in _aed){
if((_aee.indexOf("..")==-1)&&(_aee.indexOf("://")==-1)){
var _aef=this.getPropertySetById(_aee);
if(_aef!=""){
_aeb.push(_aef);
}
}else{
}
}
}
return this.getPropertySetsByType(_aec).concat(_aeb);
};
this.createComponentFromScript=function(_af0,_af1,_af2,ns){
_af2.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_af1.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_af2,this,null,null,_af2)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_af2,this,null,null,_af2)];
};
};
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,_af7,_af8,_af9){
var _afa=false;
var _afb=(typeof name=="string");
if(_afb){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _afe=name.toLowerCase();
var _aff=ns+":"+_afe;
_afa=(dojo.byId(name)&&!dojo.widget.tags[_aff]);
}
if((arguments.length==1)&&(_afa||!_afb)){
var xp=new dojo.xml.Parse();
var tn=_afa?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_b02,name,_b04,ns){
_b04[_aff]={dojotype:[{value:_afe}],nodeRef:_b02,fastMixIn:true};
_b04.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_b02,name,_b04,ns);
}
_af7=_af7||{};
var _b06=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_af8){
_b06=true;
_af8=tn;
if(h){
dojo.body().appendChild(_af8);
}
}else{
if(_af9){
dojo.dom.insertAtPosition(tn,_af8,_af9);
}else{
tn=_af8;
}
}
var _b08=fromScript(tn,name.toLowerCase(),_af7,ns);
if((!_b08)||(!_b08[0])||(typeof _b08[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_b06&&_b08[0].domNode.parentNode){
_b08[0].domNode.parentNode.removeChild(_b08[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _b08[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,_b0a,_b0b,_b0c){
var _b0d=_b0a||obj.templatePath;
var _b0e=dojo.widget._templateCache;
if(!_b0d&&!obj["widgetType"]){
do{
var _b0f="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_b0e[_b0f]);
obj.widgetType=_b0f;
}
var wt=_b0d?_b0d.toString():obj.widgetType;
var ts=_b0e[wt];
if(!ts){
_b0e[wt]={"string":null,"node":null};
if(_b0c){
ts={};
}else{
ts=_b0e[wt];
}
}
if((!obj.templateString)&&(!_b0c)){
obj.templateString=_b0b||ts["string"];
}
if(obj.templateString){
obj.templateString=this._sanitizeTemplateString(obj.templateString);
}
if((!obj.templateNode)&&(!_b0c)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_b0d)){
var _b12=this._sanitizeTemplateString(dojo.hostenv.getText(_b0d));
obj.templateString=_b12;
if(!_b0c){
_b0e[wt]["string"]=_b12;
}
}
if((!ts["string"])&&(!_b0c)){
ts.string=obj.templateString;
}
};
dojo.widget._sanitizeTemplateString=function(_b13){
if(_b13){
_b13=_b13.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _b14=_b13.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_b14){
_b13=_b14[1];
}
}else{
_b13="";
}
return _b13;
};
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,_b18){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_b18);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_b18);
}
},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 _b1f=true;
if(dojo.render.html.ie){
_b1f=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _b1f;
}};
dojo.widget.attachTemplateNodes=function(_b20,_b21,_b22){
var _b23=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_b20){
_b20=_b21.domNode;
}
if(_b20.nodeType!=_b23){
return;
}
var _b25=_b20.all||_b20.getElementsByTagName("*");
var _b26=_b21;
for(var x=-1;x<_b25.length;x++){
var _b28=(x==-1)?_b20:_b25[x];
var _b29=[];
if(!_b21.widgetsInTemplate||!_b28.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _b2b=_b28.getAttribute(this.attachProperties[y]);
if(_b2b){
_b29=_b2b.split(";");
for(var z=0;z<_b29.length;z++){
if(dojo.lang.isArray(_b21[_b29[z]])){
_b21[_b29[z]].push(_b28);
}else{
_b21[_b29[z]]=_b28;
}
}
break;
}
}
var _b2d=_b28.getAttribute(this.eventAttachProperty);
if(_b2d){
var evts=_b2d.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _b2f=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _b31=tevt.split(":");
tevt=trim(_b31[0]);
_b2f=trim(_b31[1]);
}
if(!_b2f){
_b2f=tevt;
}
var tf=function(){
var ntf=new String(_b2f);
return function(evt){
if(_b26[ntf]){
_b26[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_b28,tevt,tf,false,true);
}
}
for(var y=0;y<_b22.length;y++){
var _b35=_b28.getAttribute(_b22[y]);
if((_b35)&&(_b35.length)){
var _b2f=null;
var _b36=_b22[y].substr(4);
_b2f=trim(_b35);
var _b37=[_b2f];
if(_b2f.indexOf(";")>=0){
_b37=dojo.lang.map(_b2f.split(";"),trim);
}
for(var z=0;z<_b37.length;z++){
if(!_b37[z].length){
continue;
}
var tf=function(){
var ntf=new String(_b37[z]);
return function(evt){
if(_b26[ntf]){
_b26[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_b28,_b36,tf,false,true);
}
}
}
}
var _b3a=_b28.getAttribute(this.templateProperty);
if(_b3a){
_b21[_b3a]=_b28;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_b28.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_b28,wai.name,"role",val);
}else{
var _b3e=val.split("-");
dojo.widget.wai.setAttr(_b28,wai.name,_b3e[0],_b3e[1]);
}
}
},this);
var _b3f=_b28.getAttribute(this.onBuildProperty);
if(_b3f){
eval("var node = baseNode; var widget = targetObj; "+_b3f);
}
}
};
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(_b47,_b48,pos,ref,_b4b){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_b4b==undefined){
_b4b=this.children.length;
}
this.addWidgetAsDirectChild(_b47,_b48,pos,ref,_b4b);
this.registerChild(_b47,_b4b);
}
return _b47;
},addWidgetAsDirectChild:function(_b4c,_b4d,pos,ref,_b50){
if((!this.containerNode)&&(!_b4d)){
this.containerNode=this.domNode;
}
var cn=(_b4d)?_b4d:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_b50){
_b50=0;
}
_b4c.domNode.setAttribute("dojoinsertionindex",_b50);
if(!ref){
cn.appendChild(_b4c.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_b4c.domNode,ref.parentNode,_b50);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_b4c.domNode);
}else{
dojo.dom.insertAtPosition(_b4c.domNode,cn,pos);
}
}
}
},registerChild:function(_b52,_b53){
_b52.dojoInsertionIndex=_b53;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_b53){
idx=i;
}
}
this.children.splice(idx+1,0,_b52);
_b52.parent=this;
_b52.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_b52.widgetId];
},removeChild:function(_b56){
dojo.dom.removeNode(_b56.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_b56);
},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,_b5a){
var _b5b=this.getFragNodeRef(frag);
if(_b5a&&(_b5a.snarfChildDomOutput||!_b5b)){
_b5a.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_b5b);
}else{
if(_b5b){
if(this.domNode&&(this.domNode!==_b5b)){
this._sourceNodeRef=dojo.dom.replaceNode(_b5b,this.domNode);
}
}
}
if(_b5a){
_b5a.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _b5c=new dojo.xml.Parse();
var _b5d;
var _b5e=this.domNode.getElementsByTagName("*");
for(var i=0;i<_b5e.length;i++){
if(_b5e[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_b5d=_b5e[i];
}
if(_b5e[i].getAttribute("dojoType")){
_b5e[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_b5d){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_b5d);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _b61=_b5c.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_b61,this);
var _b62=[];
var _b63=[this];
var w;
while((w=_b63.pop())){
for(var i=0;i<w.children.length;i++){
var _b65=w.children[i];
if(_b65._processedSubWidgets||!_b65.extraArgs["issubwidget"]){
continue;
}
_b62.push(_b65);
if(_b65.isContainer){
_b63.push(_b65);
}
}
}
for(var i=0;i<_b62.length;i++){
var _b66=_b62[i];
if(_b66._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_b66._processedSubWidgets=true;
if(_b66.extraArgs["dojoattachevent"]){
var evts=_b66.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _b69=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _b6b=tevt.split(":");
tevt=dojo.string.trim(_b6b[0]);
_b69=dojo.string.trim(_b6b[1]);
}
if(!_b69){
_b69=tevt;
}
if(dojo.lang.isFunction(_b66[tevt])){
dojo.event.kwConnect({srcObj:_b66,srcFunc:tevt,targetObj:this,targetFunc:_b69});
}else{
alert(tevt+" is not a function in widget "+_b66);
}
}
}
if(_b66.extraArgs["dojoattachpoint"]){
this[_b66.extraArgs["dojoattachpoint"]]=_b66;
}
}
}
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 _b6f=args["templateCssPath"]||this.templateCssPath;
if(_b6f&&!dojo.widget._cssFiles[_b6f.toString()]){
if((!this.templateCssString)&&(_b6f)){
this.templateCssString=dojo.hostenv.getText(_b6f);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_b6f.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_b6f);
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 _b72=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_b72);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_b72)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _b74=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_b74=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_b74){
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<_b74.length;i++){
var key=_b74[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 _b7b;
if((kval)||(dojo.lang.isString(kval))){
_b7b=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_b7b.indexOf("\"")>-1){
_b7b=_b7b.replace("\"","&quot;");
}
tstr=tstr.replace(_b74[i],_b7b);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_b72){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_b74)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_b74){
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(_b7d,_b7e){
if(!_b7d){
_b7d=this.domNode;
}
if(!_b7e){
_b7e=this;
}
return dojo.widget.attachTemplateNodes(_b7d,_b7e,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.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(_b85){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_b85&&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 _b89=w||wh.width;
var _b8a=h||wh.height;
if(this.width==_b89&&this.height==_b8a){
return false;
}
this.width=_b89;
this.height=_b8a;
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(_b8d){
if(_b8d.checkSize){
_b8d.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.widget.Button");
dojo.widget.defineWidget("dojo.widget.Button",dojo.widget.HtmlWidget,{isContainer:true,caption:"",templateString:"<div dojoAttachPoint=\"buttonNode\" class=\"dojoButton\" style=\"position:relative;\" dojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick; onKey:onKey; onFocus;\">\r\n  <div class=\"dojoButtonContents\" align=center dojoAttachPoint=\"containerNode\" style=\"position:absolute;z-index:2;\"></div>\r\n  <img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;\">\r\n  <img dojoAttachPoint=\"centerImage\" style=\"position:absolute;z-index:1;\">\r\n  <img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\r\n</div>\r\n",templateCssString:"/* ---- button --- */\r\n.dojoButton {\r\n\tpadding: 0 0 0 0;\r\n\tfont-size: 8pt;\r\n\twhite-space: nowrap;\r\n\tcursor: pointer;\r\n\tfont-family: Myriad, Tahoma, Verdana, sans-serif;\r\n}\r\n\r\n.dojoButton .dojoButtonContents {\r\n\tpadding: 2px 2px 2px 2px;\r\n\ttext-align: center;\t\t/* if icon and label are split across two lines, center icon */\r\n\tcolor: gray;\r\n}\r\n\r\n.dojoButtonLeftPart .dojoButtonContents {\r\n\tpadding-right: 8px;\r\n}\r\n\r\n.dojoButtonDisabled {\r\n\tcursor: url(\"images/no.gif\"), default;\r\n}\r\n\r\n\r\n.dojoButtonContents img {\r\n\tvertical-align: middle;\t/* if icon and label are on same line, center them */\r\n}\r\n\r\n/* -------- colors ------------ */\r\n\r\n.dojoButtonHover .dojoButtonContents {\r\n\ttext-decoration:underline;\r\n}\r\n\r\n.dojoButtonDepressed .dojoButtonContents {\r\n\tcolor: #293a4b;\r\n}\r\n\r\n.dojoButtonDisabled .dojoButtonContents {\r\n\tcolor: #aaa;\r\n}\r\n\r\n\r\n/* ---------- drop down button specific ---------- */\r\n\r\n/* border between label and arrow (for drop down buttons */\r\n.dojoButton .border {\r\n\twidth: 1px;\r\n\tbackground: gray;\r\n}\r\n\r\n/* button arrow */\r\n.dojoButton .downArrow {\r\n\tpadding-left: 10px;\r\n\ttext-align: center;\r\n}\r\n\r\n.dojoButton.disabled .downArrow {\r\n\tcursor : default;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ButtonTemplate.css"),inactiveImg:"templates/images/soriaButton-",activeImg:"templates/images/soriaActive-",pressedImg:"templates/images/soriaPressed-",disabledImg:"templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){
if(this.caption){
this.containerNode.appendChild(document.createTextNode(this.caption));
}
dojo.html.disableSelection(this.containerNode);
},postCreate:function(){
this._sizeMyself();
},_sizeMyself:function(){
if(this.domNode.parentNode){
var _b8e=document.createElement("span");
dojo.html.insertBefore(_b8e,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_b8e){
dojo.html.insertBefore(this.domNode,_b8e);
dojo.html.removeNode(_b8e);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _b90=this.height*this.width2height;
this.containerNode.style.left=_b90+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_b90+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_b90+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
if(this.disabled){
dojo.html.prependClass(this.domNode,"dojoButtonDisabled");
this.domNode.removeAttribute("tabIndex");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
}else{
dojo.html.removeClass(this.domNode,"dojoButtonDisabled");
this.domNode.setAttribute("tabIndex","0");
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
}
this.domNode.style.height=this.height+"px";
this.domNode.style.width=(this.containerWidth+2*_b90)+"px";
},onMouseOver:function(e){
if(this.disabled){
return;
}
if(!dojo.html.hasClass(this.buttonNode,"dojoButtonHover")){
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
}
this._setImage(this.activeImg);
},onMouseDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed");
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
this._setImage(this.pressedImg);
},onMouseUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.activeImg);
},onMouseOut:function(e){
if(this.disabled){
return;
}
if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){
return;
}
dojo.html.removeClass(this.buttonNode,"dojoButtonHover");
dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed");
this._setImage(this.inactiveImg);
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
},onFocus:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(menu){
dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur");
}
},onBlur:function(e){
var menu=dojo.widget.getWidgetById(this.menuId);
if(!menu){
return;
}
if(menu.close&&menu.isShowingNow){
menu.close();
}
},buttonClick:function(e){
if(!this.disabled){
try{
this.domNode.focus();
}
catch(e2){
}
this.onClick(e);
}
},onClick:function(e){
},_setImage:function(_b9d){
this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_b9d+"l.gif");
this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_b9d+"c.gif");
this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_b9d+"r.gif");
},_toggleMenu:function(_b9e){
var menu=dojo.widget.getWidgetById(_b9e);
if(!menu){
return;
}
if(menu.open&&!menu.isShowingNow){
var pos=dojo.html.getAbsolutePosition(this.domNode,false);
menu.open(pos.x,pos.y+this.height,this);
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}else{
if(menu.close&&menu.isShowingNow){
menu.close();
}else{
menu.toggle();
}
}
},setCaption:function(_ba1){
this.caption=_ba1;
this.containerNode.innerHTML=_ba1;
this._sizeMyself();
},setDisabled:function(_ba2){
this.disabled=_ba2;
this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"templates/images/whiteDownArrow.gif",disabledDownArrow:"templates/images/whiteDownArrow.gif",fillInTemplate:function(){
dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments);
this.arrow=document.createElement("img");
dojo.html.setClass(this.arrow,"downArrow");
dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId);
},_sizeMyselfHelper:function(){
this.arrow.src=dojo.uri.moduleUri("dojo.widget",this.disabled?this.disabledDownArrow:this.downArrow);
this.containerNode.appendChild(this.arrow);
dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this);
},onClick:function(e){
this._toggleMenu(this.menuId);
}});
dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templateString:"<div class=\"dojoButton\" style=\"position:relative;top:0px;left:0px; text-align:none;\" dojoAttachEvent=\"onKey;onFocus\">\r\n\r\n\t<div dojoAttachPoint=\"buttonNode\" class=\"dojoButtonLeftPart\" style=\"position:absolute;left:0px;top:0px;\"\r\n\t\tdojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick;\">\r\n\t\t<div class=\"dojoButtonContents\" dojoAttachPoint=\"containerNode\" style=\"position:absolute;top:0px;right:0px;z-index:2;\"></div>\r\n\t\t<img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;top:0px;\">\r\n\t\t<img dojoAttachPoint=\"centerImage\" style=\"position:absolute;right:0px;top:0px;z-index:1;\">\r\n\t</div>\r\n\r\n\t<div dojoAttachPoint=\"rightPart\" class=\"dojoButtonRightPart\" style=\"position:absolute;top:0px;right:0px;\"\r\n\t\tdojoAttachEvent=\"onMouseOver:rightOver; onMouseOut:rightOut; onMouseDown:rightDown; onMouseUp:rightUp; onClick:rightClick;\">\r\n\t\t<img dojoAttachPoint=\"arrowBackgroundImage\" style=\"position:absolute;top:0px;left:0px;z-index:1;\">\r\n\t\t<img src=\"${dojoWidgetModuleUri}templates/images/whiteDownArrow.gif\"\r\n\t\t  \t\tstyle=\"z-index:2;position:absolute;left:3px;top:50%;\">\r\n\t\t<img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\r\n\t</div>\r\n\r\n</div>\r\n",splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _ba6=this.height/3;
if(this.disabled){
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",true);
this.domNode.removeAttribute("tabIndex");
}else{
dojo.widget.wai.setAttr(this.domNode,"waiState","disabled",false);
this.domNode.setAttribute("tabIndex","0");
}
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.arrowBackgroundImage.height=this.height;
this.leftImage.width=_ba6+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_ba6+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_ba6+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_ba6+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _ba7=this.containerWidth+this.splitWidth+this.arrowWidth+2*_ba6;
this.domNode.style.width=_ba7+"px";
},_setImage:function(_ba8){
this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_ba8+"l.gif");
this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_ba8+"c.gif");
},rightOver:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.activeImg);
},rightDown:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonDepressed");
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
this._setImageR(this.pressedImg);
},rightUp:function(e){
if(this.disabled){
return;
}
dojo.html.prependClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.activeImg);
},rightOut:function(e){
if(this.disabled){
return;
}
dojo.html.removeClass(this.rightPart,"dojoButtonHover");
dojo.html.removeClass(this.rightPart,"dojoButtonDepressed");
this._setImageR(this.inactiveImg);
},rightClick:function(e){
if(this.disabled){
return;
}
try{
this.domNode.focus();
}
catch(e2){
}
this._toggleMenu(this.menuId);
},_setImageR:function(_bae){
this.arrowBackgroundImage.src=dojo.uri.moduleUri("dojo.widget",_bae+"c.gif");
this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_bae+"r.gif");
},onKey:function(e){
if(!e.key){
return;
}
var menu=dojo.widget.getWidgetById(this.menuId);
if(e.key==e.KEY_ENTER||e.key==" "){
this.onMouseDown(e);
this.buttonClick(e);
dojo.lang.setTimeout(this,"onMouseUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(e.key==e.KEY_DOWN_ARROW&&e.altKey){
this.rightDown(e);
this.rightClick(e);
dojo.lang.setTimeout(this,"rightUp",75,e);
dojo.event.browser.stopEvent(e);
}else{
if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){
dojo.event.disconnect(this.domNode,"onblur",this,"onBlur");
}
}
}
}});
dojo.provide("dojo.widget.html.stabile");
dojo.widget.html.stabile={_sqQuotables:new RegExp("([\\\\'])","g"),_depth:0,_recur:false,depthLimit:2};
dojo.widget.html.stabile.getState=function(id){
dojo.widget.html.stabile.setup();
return dojo.widget.html.stabile.widgetState[id];
};
dojo.widget.html.stabile.setState=function(id,_bb3,_bb4){
dojo.widget.html.stabile.setup();
dojo.widget.html.stabile.widgetState[id]=_bb3;
if(_bb4){
dojo.widget.html.stabile.commit(dojo.widget.html.stabile.widgetState);
}
};
dojo.widget.html.stabile.setup=function(){
if(!dojo.widget.html.stabile.widgetState){
var text=dojo.widget.html.stabile._getStorage().value;
dojo.widget.html.stabile.widgetState=text?dj_eval("("+text+")"):{};
}
};
dojo.widget.html.stabile.commit=function(_bb6){
dojo.widget.html.stabile._getStorage().value=dojo.widget.html.stabile.description(_bb6);
};
dojo.widget.html.stabile.description=function(v,_bb8){
var _bb9=dojo.widget.html.stabile._depth;
var _bba=function(){
return this.description(this,true);
};
try{
if(v===void (0)){
return "undefined";
}
if(v===null){
return "null";
}
if(typeof (v)=="boolean"||typeof (v)=="number"||v instanceof Boolean||v instanceof Number){
return v.toString();
}
if(typeof (v)=="string"||v instanceof String){
var v1=v.replace(dojo.widget.html.stabile._sqQuotables,"\\$1");
v1=v1.replace(/\n/g,"\\n");
v1=v1.replace(/\r/g,"\\r");
return "'"+v1+"'";
}
if(v instanceof Date){
return "new Date("+d.getFullYear+","+d.getMonth()+","+d.getDate()+")";
}
var d;
if(v instanceof Array||v.push){
if(_bb9>=dojo.widget.html.stabile.depthLimit){
return "[ ... ]";
}
d="[";
var _bbd=true;
dojo.widget.html.stabile._depth++;
for(var i=0;i<v.length;i++){
if(_bbd){
_bbd=false;
}else{
d+=",";
}
d+=arguments.callee(v[i],_bb8);
}
return d+"]";
}
if(v.constructor==Object||v.toString==_bba){
if(_bb9>=dojo.widget.html.stabile.depthLimit){
return "{ ... }";
}
if(typeof (v.hasOwnProperty)!="function"&&v.prototype){
throw new Error("description: "+v+" not supported by script engine");
}
var _bbd=true;
d="{";
dojo.widget.html.stabile._depth++;
for(var key in v){
if(v[key]==void (0)||typeof (v[key])=="function"){
continue;
}
if(_bbd){
_bbd=false;
}else{
d+=", ";
}
var kd=key;
if(!kd.match(/^[a-zA-Z_][a-zA-Z0-9_]*$/)){
kd=arguments.callee(key,_bb8);
}
d+=kd+": "+arguments.callee(v[key],_bb8);
}
return d+"}";
}
if(_bb8){
if(dojo.widget.html.stabile._recur){
var _bc1=Object.prototype.toString;
return _bc1.apply(v,[]);
}else{
dojo.widget.html.stabile._recur=true;
return v.toString();
}
}else{
throw new Error("Unknown type: "+v);
return "'unknown'";
}
}
finally{
dojo.widget.html.stabile._depth=_bb9;
}
};
dojo.widget.html.stabile._getStorage=function(){
if(dojo.widget.html.stabile.dataField){
return dojo.widget.html.stabile.dataField;
}
var form=document.forms._dojo_form;
return dojo.widget.html.stabile.dataField=form?form.stabile:{value:""};
};
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,_bc6,_bc7,_bc8,_bc9){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _bca=false,node,_bcc;
if(typeof x=="object"){
node=x;
_bcc=_bc7;
_bc7=_bc6;
_bc6=y;
_bca=true;
}
this.parent=_bc6;
dojo.body().appendChild(this.domNode);
_bc7=_bc7||_bc6["domNode"]||[];
var _bcd=null;
this.isTopLevel=true;
while(_bc6){
if(_bc6!==this&&(_bc6.setOpenedSubpopup!=undefined&&_bc6.applyPopupBasicStyle!=undefined)){
_bcd=_bc6;
this.isTopLevel=false;
_bcd.setOpenedSubpopup(this);
break;
}
_bc6=_bc6.parent;
}
this.parentPopup=_bcd;
this.popupIndex=_bcd?_bcd.popupIndex+1:1;
if(this.isTopLevel){
var _bce=dojo.html.isNode(_bc7)?_bc7:null;
dojo.widget.PopupManager.opened(this,_bce);
}
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(_bc7 instanceof Array){
_bc7={left:_bc7[0],top:_bc7[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_bca){
this.move(node,_bc9,_bcc);
}else{
this.move(x,y,_bc9,_bc8);
}
this.domNode.style.display="none";
this.explodeSrc=_bc7;
this.show();
this.isShowingNow=true;
},move:function(x,y,_bd1,_bd2){
var _bd3=(typeof x=="object");
if(_bd3){
var _bd4=_bd1;
var node=x;
_bd1=y;
if(!_bd4){
_bd4={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_bd1,this.aroundBox,_bd4);
}else{
if(!_bd2){
_bd2="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_bd1,true,_bd2);
}
},close:function(_bd6){
if(_bd6){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_bd6);
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(_bd7){
if(this.parentPopup){
this.parentPopup.closeAll(_bd7);
}else{
this.close(_bd7);
}
},setOpenedSubpopup:function(_bd8){
this.currentSubpopup=_bd8;
},closeSubpopup:function(_bd9){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_bd9);
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(_bdd){
if(!_bdd){
_bdd=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_bdd);
for(var i=0;i<_bdd.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_bdd.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,_be4){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_be4;
};
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 _be9=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.ComboBox");
dojo.declare("dojo.widget.incrementalComboBoxDataProvider",null,function(_beb){
this.searchUrl=_beb.dataUrl;
this._cache={};
this._inFlight=false;
this._lastRequest=null;
this.allowCache=false;
},{_addToCache:function(_bec,data){
if(this.allowCache){
this._cache[_bec]=data;
}
},startSearch:function(_bee,_bef){
if(this._inFlight){
}
var tss=encodeURIComponent(_bee);
var _bf1=dojo.string.substituteParams(this.searchUrl,{"searchString":tss});
var _bf2=this;
var _bf3=this._lastRequest=dojo.io.bind({url:_bf1,method:"get",mimetype:"text/json",load:function(type,data,evt){
_bf2._inFlight=false;
if(!dojo.lang.isArray(data)){
var _bf7=[];
for(var key in data){
_bf7.push([data[key],key]);
}
data=_bf7;
}
_bf2._addToCache(_bee,data);
if(_bf3==_bf2._lastRequest){
_bef(data);
}
}});
this._inFlight=true;
}});
dojo.declare("dojo.widget.basicComboBoxDataProvider",null,function(_bf9,node){
this._data=[];
this.searchLimit=30;
this.searchType="STARTSTRING";
this.caseSensitive=false;
if(!dj_undef("dataUrl",_bf9)&&!dojo.string.isBlank(_bf9.dataUrl)){
this._getData(_bf9.dataUrl);
}else{
if((node)&&(node.nodeName.toLowerCase()=="select")){
var opts=node.getElementsByTagName("option");
var ol=opts.length;
var data=[];
for(var x=0;x<ol;x++){
var text=opts[x].textContent||opts[x].innerText||opts[x].innerHTML;
var _c00=[String(text),String(opts[x].value)];
data.push(_c00);
if(opts[x].selected){
_bf9.setAllValues(_c00[0],_c00[1]);
}
}
this.setData(data);
}
}
},{_getData:function(url){
dojo.io.bind({url:url,load:dojo.lang.hitch(this,function(type,data,evt){
if(!dojo.lang.isArray(data)){
var _c05=[];
for(var key in data){
_c05.push([data[key],key]);
}
data=_c05;
}
this.setData(data);
}),mimetype:"text/json"});
},startSearch:function(_c07,_c08){
this._performSearch(_c07,_c08);
},_performSearch:function(_c09,_c0a){
var st=this.searchType;
var ret=[];
if(!this.caseSensitive){
_c09=_c09.toLowerCase();
}
for(var x=0;x<this._data.length;x++){
if((this.searchLimit>0)&&(ret.length>=this.searchLimit)){
break;
}
var _c0e=new String((!this.caseSensitive)?this._data[x][0].toLowerCase():this._data[x][0]);
if(_c0e.length<_c09.length){
continue;
}
if(st=="STARTSTRING"){
if(_c09==_c0e.substr(0,_c09.length)){
ret.push(this._data[x]);
}
}else{
if(st=="SUBSTRING"){
if(_c0e.indexOf(_c09)>=0){
ret.push(this._data[x]);
}
}else{
if(st=="STARTWORD"){
var idx=_c0e.indexOf(_c09);
if(idx==0){
ret.push(this._data[x]);
}
if(idx<=0){
continue;
}
var _c10=false;
while(idx!=-1){
if(" ,/(".indexOf(_c0e.charAt(idx-1))!=-1){
_c10=true;
break;
}
idx=_c0e.indexOf(_c09,idx+1);
}
if(!_c10){
continue;
}else{
ret.push(this._data[x]);
}
}
}
}
}
_c0a(ret);
},setData:function(_c11){
this._data=_c11;
}});
dojo.widget.defineWidget("dojo.widget.ComboBox",dojo.widget.HtmlWidget,{forceValidOption:false,searchType:"stringstart",dataProvider:null,autoComplete:true,searchDelay:100,dataUrl:"",fadeTime:200,maxListLength:8,mode:"local",selectedResult:null,dataProviderClass:"",buttonSrc:dojo.uri.moduleUri("dojo.widget","templates/images/combo_box_arrow.png"),dropdownToggle:"fade",templateString:"<span _=\"whitespace and CR's between tags adds &nbsp; in FF\"\r\n\tclass=\"dojoComboBoxOuter\"\r\n\t><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \r\n\t\tdojoAttachPoint=\"comboBoxValue\"\r\n\t><input style=\"display:none\"  tabindex=\"-1\" name=\"\" value=\"\" \r\n\t\tdojoAttachPoint=\"comboBoxSelectionValue\"\r\n\t><input type=\"text\" autocomplete=\"off\" class=\"dojoComboBox\"\r\n\t\tdojoAttachEvent=\"key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd; onResize;\"\r\n\t\tdojoAttachPoint=\"textInputNode\"\r\n\t><img hspace=\"0\"\r\n\t\tvspace=\"0\"\r\n\t\tclass=\"dojoComboBox\"\r\n\t\tdojoAttachPoint=\"downArrowNode\"\r\n\t\tdojoAttachEvent=\"onMouseUp: handleArrowClick; onResize;\"\r\n\t\tsrc=\"${this.buttonSrc}\"\r\n></span>\r\n",templateCssString:".dojoComboBoxOuter {\r\n\tborder: 0px !important;\r\n\tmargin: 0px !important;\r\n\tpadding: 0px !important;\r\n\tbackground: transparent !important;\r\n\twhite-space: nowrap !important;\r\n}\r\n\r\n.dojoComboBox {\r\n\tborder: 1px inset #afafaf;\r\n\tmargin: 0px;\r\n\tpadding: 0px;\r\n\tvertical-align: middle !important;\r\n\tfloat: none !important;\r\n\tposition: static !important;\r\n\tdisplay: inline !important;\r\n}\r\n\r\n/* the input box */\r\ninput.dojoComboBox {\r\n\tborder-right-width: 0px !important; \r\n\tmargin-right: 0px !important;\r\n\tpadding-right: 0px !important;\r\n}\r\n\r\n/* the down arrow */\r\nimg.dojoComboBox {\r\n\tborder-left-width: 0px !important;\r\n\tpadding-left: 0px !important;\r\n\tmargin-left: 0px !important;\r\n}\r\n\r\n/* IE vertical-alignment calculations can be off by +-1 but these margins are collapsed away */\r\n.dj_ie img.dojoComboBox {\r\n\tmargin-top: 1px; \r\n\tmargin-bottom: 1px; \r\n}\r\n\r\n/* the drop down */\r\n.dojoComboBoxOptions {\r\n\tfont-family: Verdana, Helvetica, Garamond, sans-serif;\r\n\t/* font-size: 0.7em; */\r\n\tbackground-color: white;\r\n\tborder: 1px solid #afafaf;\r\n\tposition: absolute;\r\n\tz-index: 1000; \r\n\toverflow: auto;\r\n\tcursor: default;\r\n}\r\n\r\n.dojoComboBoxItem {\r\n\tpadding-left: 2px;\r\n\tpadding-top: 2px;\r\n\tmargin: 0px;\r\n}\r\n\r\n.dojoComboBoxItemEven {\r\n\tbackground-color: #f4f4f4;\r\n}\r\n\r\n.dojoComboBoxItemOdd {\r\n\tbackground-color: white;\r\n}\r\n\r\n.dojoComboBoxItemHighlight {\r\n\tbackground-color: #63709A;\r\n\tcolor: white;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ComboBox.css"),setValue:function(_c12){
this.comboBoxValue.value=_c12;
if(this.textInputNode.value!=_c12){
this.textInputNode.value=_c12;
dojo.widget.html.stabile.setState(this.widgetId,this.getState(),true);
this.onValueChanged(_c12);
}
},onValueChanged:function(_c13){
},getValue:function(){
return this.comboBoxValue.value;
},getState:function(){
return {value:this.getValue()};
},setState:function(_c14){
this.setValue(_c14.value);
},enable:function(){
this.disabled=false;
this.textInputNode.removeAttribute("disabled");
},disable:function(){
this.disabled=true;
this.textInputNode.setAttribute("disabled",true);
},_getCaretPos:function(_c15){
if(dojo.lang.isNumber(_c15.selectionStart)){
return _c15.selectionStart;
}else{
if(dojo.render.html.ie){
var tr=document.selection.createRange().duplicate();
var ntr=_c15.createTextRange();
tr.move("character",0);
ntr.move("character",0);
try{
ntr.setEndPoint("EndToEnd",tr);
return String(ntr.text).replace(/\r/g,"").length;
}
catch(e){
return 0;
}
}
}
},_setCaretPos:function(_c18,_c19){
_c19=parseInt(_c19);
this._setSelectedRange(_c18,_c19,_c19);
},_setSelectedRange:function(_c1a,_c1b,end){
if(!end){
end=_c1a.value.length;
}
if(_c1a.setSelectionRange){
_c1a.focus();
_c1a.setSelectionRange(_c1b,end);
}else{
if(_c1a.createTextRange){
var _c1d=_c1a.createTextRange();
with(_c1d){
collapse(true);
moveEnd("character",end);
moveStart("character",_c1b);
select();
}
}else{
_c1a.value=_c1a.value;
_c1a.blur();
_c1a.focus();
var dist=parseInt(_c1a.value.length)-end;
var _c1f=String.fromCharCode(37);
var tcc=_c1f.charCodeAt(0);
for(var x=0;x<dist;x++){
var te=document.createEvent("KeyEvents");
te.initKeyEvent("keypress",true,true,null,false,false,false,false,tcc,tcc);
_c1a.dispatchEvent(te);
}
}
}
},_handleKeyEvents:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return;
}
this._prev_key_backspace=false;
this._prev_key_esc=false;
var k=dojo.event.browser.keys;
var _c25=true;
switch(evt.key){
case k.KEY_DOWN_ARROW:
if(!this.popupWidget.isShowingNow){
this._startSearchFromInput();
}
this._highlightNextOption();
dojo.event.browser.stopEvent(evt);
return;
case k.KEY_UP_ARROW:
this._highlightPrevOption();
dojo.event.browser.stopEvent(evt);
return;
case k.KEY_TAB:
if(!this.autoComplete&&this.popupWidget.isShowingNow&&this._highlighted_option){
dojo.event.browser.stopEvent(evt);
this._selectOption({"target":this._highlighted_option,"noHide":false});
this._setSelectedRange(this.textInputNode,this.textInputNode.value.length,null);
}else{
this._selectOption();
return;
}
break;
case k.KEY_ENTER:
if(this.popupWidget.isShowingNow){
dojo.event.browser.stopEvent(evt);
}
if(this.autoComplete){
this._selectOption();
return;
}
case " ":
if(this.popupWidget.isShowingNow&&this._highlighted_option){
dojo.event.browser.stopEvent(evt);
this._selectOption();
this._hideResultList();
return;
}
break;
case k.KEY_ESCAPE:
this._hideResultList();
this._prev_key_esc=true;
return;
case k.KEY_BACKSPACE:
this._prev_key_backspace=true;
if(!this.textInputNode.value.length){
this.setAllValues("","");
this._hideResultList();
_c25=false;
}
break;
case k.KEY_RIGHT_ARROW:
case k.KEY_LEFT_ARROW:
_c25=false;
break;
default:
if(evt.charCode==0){
_c25=false;
}
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_c25){
this._blurOptionNode();
this.searchTimer=setTimeout(dojo.lang.hitch(this,this._startSearchFromInput),this.searchDelay);
}
},compositionEnd:function(evt){
evt.key=evt.keyCode;
this._handleKeyEvents(evt);
},onKeyUp:function(evt){
this.setValue(this.textInputNode.value);
},setSelectedValue:function(_c28){
this.comboBoxSelectionValue.value=_c28;
},setAllValues:function(_c29,_c2a){
this.setSelectedValue(_c2a);
this.setValue(_c29);
},_focusOptionNode:function(node){
if(this._highlighted_option!=node){
this._blurOptionNode();
this._highlighted_option=node;
dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.html.removeClass(this._highlighted_option,"dojoComboBoxItemHighlight");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
if((!this._highlighted_option)||!this._highlighted_option.parentNode){
this._focusOptionNode(this.optionsListNode.firstChild);
}else{
if(this._highlighted_option.nextSibling){
this._focusOptionNode(this._highlighted_option.nextSibling);
}
}
dojo.html.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
if(this._highlighted_option&&this._highlighted_option.previousSibling){
this._focusOptionNode(this._highlighted_option.previousSibling);
}else{
this._highlighted_option=null;
this._hideResultList();
return;
}
dojo.html.scrollIntoView(this._highlighted_option);
},_itemMouseOver:function(evt){
if(evt.target===this.optionsListNode){
return;
}
this._focusOptionNode(evt.target);
dojo.html.addClass(this._highlighted_option,"dojoComboBoxItemHighlight");
},_itemMouseOut:function(evt){
if(evt.target===this.optionsListNode){
return;
}
this._blurOptionNode();
},onResize:function(){
var _c2e=dojo.html.getContentBox(this.textInputNode);
if(_c2e.height<=0){
dojo.lang.setTimeout(this,"onResize",100);
return;
}
var _c2f={width:_c2e.height,height:_c2e.height};
dojo.html.setContentBox(this.downArrowNode,_c2f);
},fillInTemplate:function(args,frag){
dojo.html.applyBrowserClass(this.domNode);
var _c32=this.getFragNodeRef(frag);
if(!this.name&&_c32.name){
this.name=_c32.name;
}
this.comboBoxValue.name=this.name;
this.comboBoxSelectionValue.name=this.name+"_selected";
dojo.html.copyStyle(this.domNode,_c32);
dojo.html.copyStyle(this.textInputNode,_c32);
dojo.html.copyStyle(this.downArrowNode,_c32);
with(this.downArrowNode.style){
width="0px";
height="0px";
}
var _c33;
if(this.dataProviderClass){
if(typeof this.dataProviderClass=="string"){
_c33=dojo.evalObjPath(this.dataProviderClass);
}else{
_c33=this.dataProviderClass;
}
}else{
if(this.mode=="remote"){
_c33=dojo.widget.incrementalComboBoxDataProvider;
}else{
_c33=dojo.widget.basicComboBoxDataProvider;
}
}
this.dataProvider=new _c33(this,this.getFragNodeRef(frag));
this.popupWidget=new dojo.widget.createWidget("PopupContainer",{toggle:this.dropdownToggle,toggleDuration:this.toggleDuration});
dojo.event.connect(this,"destroy",this.popupWidget,"destroy");
this.optionsListNode=this.popupWidget.domNode;
this.domNode.appendChild(this.optionsListNode);
dojo.html.addClass(this.optionsListNode,"dojoComboBoxOptions");
dojo.event.connect(this.optionsListNode,"onclick",this,"_selectOption");
dojo.event.connect(this.optionsListNode,"onmouseover",this,"_onMouseOver");
dojo.event.connect(this.optionsListNode,"onmouseout",this,"_onMouseOut");
dojo.event.connect(this.optionsListNode,"onmouseover",this,"_itemMouseOver");
dojo.event.connect(this.optionsListNode,"onmouseout",this,"_itemMouseOut");
},_openResultList:function(_c34){
if(this.disabled){
return;
}
this._clearResultList();
if(!_c34.length){
this._hideResultList();
}
if((this.autoComplete)&&(_c34.length)&&(!this._prev_key_backspace)&&(this.textInputNode.value.length>0)){
var cpos=this._getCaretPos(this.textInputNode);
if((cpos+1)>this.textInputNode.value.length){
this.textInputNode.value+=_c34[0][0].substr(cpos);
this._setSelectedRange(this.textInputNode,cpos,this.textInputNode.value.length);
}
}
var even=true;
while(_c34.length){
var tr=_c34.shift();
if(tr){
var td=document.createElement("div");
td.appendChild(document.createTextNode(tr[0]));
td.setAttribute("resultName",tr[0]);
td.setAttribute("resultValue",tr[1]);
td.className="dojoComboBoxItem "+((even)?"dojoComboBoxItemEven":"dojoComboBoxItemOdd");
even=(!even);
this.optionsListNode.appendChild(td);
}
}
this._showResultList();
},_onFocusInput:function(){
this._hasFocus=true;
},_onBlurInput:function(){
this._hasFocus=false;
this._handleBlurTimer(true,500);
},_handleBlurTimer:function(_c39,_c3a){
if(this.blurTimer&&(_c39||_c3a)){
clearTimeout(this.blurTimer);
}
if(_c3a){
this.blurTimer=dojo.lang.setTimeout(this,"_checkBlurred",_c3a);
}
},_onMouseOver:function(evt){
if(!this._mouseover_list){
this._handleBlurTimer(true,0);
this._mouseover_list=true;
}
},_onMouseOut:function(evt){
var _c3d=evt.relatedTarget;
try{
if(!_c3d||_c3d.parentNode!=this.optionsListNode){
this._mouseover_list=false;
this._handleBlurTimer(true,100);
this._tryFocus();
}
}
catch(e){
}
},_isInputEqualToResult:function(_c3e){
var _c3f=this.textInputNode.value;
if(!this.dataProvider.caseSensitive){
_c3f=_c3f.toLowerCase();
_c3e=_c3e.toLowerCase();
}
return (_c3f==_c3e);
},_isValidOption:function(){
var tgt=dojo.html.firstElement(this.optionsListNode);
var _c41=false;
while(!_c41&&tgt){
if(this._isInputEqualToResult(tgt.getAttribute("resultName"))){
_c41=true;
}else{
tgt=dojo.html.nextElement(tgt);
}
}
return _c41;
},_checkBlurred:function(){
if(!this._hasFocus&&!this._mouseover_list){
this._hideResultList();
if(!this.textInputNode.value.length){
this.setAllValues("","");
return;
}
var _c42=this._isValidOption();
if(this.forceValidOption&&!_c42){
this.setAllValues("","");
return;
}
if(!_c42){
this.setSelectedValue("");
}
}
},_selectOption:function(evt){
var tgt=null;
if(!evt){
evt={target:this._highlighted_option};
}
if(!dojo.html.isDescendantOf(evt.target,this.optionsListNode)){
if(!this.textInputNode.value.length){
return;
}
tgt=dojo.html.firstElement(this.optionsListNode);
if(!tgt||!this._isInputEqualToResult(tgt.getAttribute("resultName"))){
return;
}
}else{
tgt=evt.target;
}
while((tgt.nodeType!=1)||(!tgt.getAttribute("resultName"))){
tgt=tgt.parentNode;
if(tgt===dojo.body()){
return false;
}
}
this.selectedResult=[tgt.getAttribute("resultName"),tgt.getAttribute("resultValue")];
this.setAllValues(tgt.getAttribute("resultName"),tgt.getAttribute("resultValue"));
if(!evt.noHide){
this._hideResultList();
this._setSelectedRange(this.textInputNode,0,null);
}
this._tryFocus();
},_clearResultList:function(){
if(this.optionsListNode.innerHTML){
this.optionsListNode.innerHTML="";
}
},_hideResultList:function(){
this.popupWidget.close();
},_showResultList:function(){
var _c45=this.optionsListNode.childNodes;
if(_c45.length){
var _c46=Math.min(_c45.length,this.maxListLength);
with(this.optionsListNode.style){
display="";
if(_c46==_c45.length){
height="";
}else{
height=_c46*dojo.html.getMarginBox(_c45[0]).height+"px";
}
width=(dojo.html.getMarginBox(this.domNode).width-2)+"px";
}
this.popupWidget.open(this.domNode,this,this.downArrowNode);
}else{
this._hideResultList();
}
},handleArrowClick:function(){
this._handleBlurTimer(true,0);
this._tryFocus();
if(this.popupWidget.isShowingNow){
this._hideResultList();
}else{
this._startSearch("");
}
},_tryFocus:function(){
try{
this.textInputNode.focus();
}
catch(e){
}
},_startSearchFromInput:function(){
this._startSearch(this.textInputNode.value);
},_startSearch:function(key){
this.dataProvider.startSearch(key,dojo.lang.hitch(this,"_openResultList"));
},postCreate:function(){
this.onResize();
dojo.event.connect(this.textInputNode,"onblur",this,"_onBlurInput");
dojo.event.connect(this.textInputNode,"onfocus",this,"_onFocusInput");
if(this.disabled){
this.disable();
}
var s=dojo.widget.html.stabile.getState(this.widgetId);
if(s){
this.setState(s);
}
}});
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:"Loading...",isLoaded:false,postCreate:function(args,frag,_c4b){
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,_c4f){
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();
}
}},_c4f));
},_cacheSetting:function(_c55,_c56){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_c55[x])){
_c55[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_c55.useCache)){
_c55.useCache=_c56;
}
if(dojo.lang.isUndefined(_c55.preventCache)){
_c55.preventCache=!_c56;
}
if(dojo.lang.isUndefined(_c55.mimetype)){
_c55.mimetype="text/html";
}
return _c55;
},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(_c5b){
var st=this[_c5b];
var err="";
var _c5e=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_c5e);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_c5b]=[];
if(err.length){
var name=(_c5b=="_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(_c65,obj,func){
if(typeof func=="undefined"){
_c65.push(obj);
}else{
_c65.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,_c6f,_c70){
if(!_c6f){
_c6f="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[_c6f](e);
if(e.returnValue){
switch(_c70){
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 _c73=[],_c74=[],tmp=[];
var _c76=[],_c77=[],attr=[],_c79=[];
var str="",path="",fix="",_c7d="",tag="",_c7f="";
if(!url){
url="./";
}
if(s){
var _c80=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_c76=_c80.exec(s)){
_c73.push(_c76[1]);
s=s.substring(0,_c76.index)+s.substr(_c76.index+_c76[0].length);
}
if(this.adjustPaths){
var _c81=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _c82=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _c83=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_c81.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_c7d="";
while(attr=_c82.exec(tag)){
path="";
_c7f=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_c83.exec(_c7f)){
path=_c7f;
}else{
path=(new dojo.uri.Uri(url,_c7f).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_c7f,url);
break;
default:
path=_c7f;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_c7d+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_c7d+tag;
}
s=str+s;
}
_c80=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_c76=_c80.exec(s)){
if(_c76[1]&&_c76[1].toLowerCase()=="style"){
_c79.push(dojo.html.fixPathsInCssText(_c76[2],url));
}else{
if(attr=_c76[3].match(/href=(['"]?)([^'">]*)\1/i)){
_c79.push({path:attr[2]});
}
}
s=s.substring(0,_c76.index)+s.substr(_c76.index+_c76[0].length);
}
var _c80=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _c84=/src=(['"]?)([^"']*)\1/i;
var _c85=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _c86=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _c87=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_c76=_c80.exec(s)){
if(this.executeScripts&&_c76[1]){
if(attr=_c84.exec(_c76[1])){
if(_c85.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_c74.push({path:attr[2]});
}
}
}
if(_c76[2]){
var sc=_c76[2].replace(_c86,"");
if(!sc){
continue;
}
while(tmp=_c87.exec(sc)){
_c77.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_c74.push(sc);
}
}
s=s.substr(0,_c76.index)+s.substr(_c76.index+_c76[0].length);
}
if(this.extractContent){
_c76=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_c76){
s=_c76[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _c80=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _c89=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_c80.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_c89.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":_c79,"titles":_c73,"requires":_c77,"scripts":_c74,"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 _c8f=this;
function asyncParse(){
if(_c8f.executeScripts){
_c8f._executeScripts(data.scripts);
}
if(_c8f.parseContent){
var node=_c8f.containerNode||_c8f.domNode;
var _c91=new dojo.xml.Parse();
var frag=_c91.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_c8f);
}
_c8f.onResized();
_c8f.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_c93){
var fcn=dojo.lang.isFunction(_c93)?_c93:window[_c93];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_c93+"' 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(_c96){
var self=this;
var tmp="",code="";
for(var i=0;i<_c96.length;i++){
if(_c96[i].path){
dojo.io.bind(this._cacheSetting({"url":_c96[i].path,"load":function(type,_c9c){
dojo.lang.hitch(self,tmp=";"+_c9c);
},"error":function(type,_c9e){
_c9e.text=type+" downloading remote script";
self._handleDefaults.call(self,_c9e,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_c96[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.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 _ca4=this;
setTimeout(function(){
_ca4._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(_ca6){
if(arguments.length>=3){
_ca6=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_ca6=new dojo.gfx.color.Color(_ca6);
}
this.bg.style.backgroundColor=_ca6.toString();
return this.bgColor=_ca6;
},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 _ca8=dojo.html.getViewport();
var h=_ca8.height;
var w=_ca8.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _cab=dojo.html.getScroll().offset;
this.bg.style.top=_cab.y+"px";
this.bg.style.left=_cab.x+"px";
var _ca8=dojo.html.getViewport();
if(_ca8.width!=w){
this.bg.style.width=_ca8.width+"px";
}
if(_ca8.height!=h){
this.bg.style.height=_ca8.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 _cac=dojo.html.getScroll().offset;
var _cad=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=_cac.x+(_cad.width-mb.width)/2;
var y=_cac.y+(_cad.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 _cb3=dojo.html.getScroll().offset;
this.bg.style.top=_cb3.y+"px";
this.bg.style.left=_cb3.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.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.date.common");
dojo.date.setDayOfYear=function(_cba,_cbb){
_cba.setMonth(0);
_cba.setDate(_cbb);
return _cba;
};
dojo.date.getDayOfYear=function(_cbc){
var _cbd=_cbc.getFullYear();
var _cbe=new Date(_cbd-1,11,31);
return Math.floor((_cbc.getTime()-_cbe.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_cbf,week,_cc1){
if(arguments.length==1){
_cc1=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_cc2,_cc3){
if(arguments.length==1){
_cc3=0;
}
var _cc4=new Date(_cc2.getFullYear(),0,1);
var day=_cc4.getDay();
_cc4.setDate(_cc4.getDate()-day+_cc3-(day>_cc3?7:0));
return Math.floor((_cc2.getTime()-_cc4.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_cc6,week,_cc8){
if(arguments.length==1){
_cc8=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_cc9,_cca){
if(arguments.length==1){
_cca=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(_ccb){
var _ccc=_ccb.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_ccc==1&&dojo.date.isLeapYear(_ccb)){
return 29;
}else{
return days[_ccc];
}
};
dojo.date.isLeapYear=function(_cce){
var year=_cce.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_cd0){
var str=_cd0.toString();
var tz="";
var _cd3;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_cd3=str.match(pat))){
tz=_cd3[1];
}else{
str=_cd0.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_cd3=str.match(pat))){
tz=_cd3[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_cd6){
var date=_cd6.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(_cd8,_cd9,_cda){
var dA=_cd8;
var dB=_cd9||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_cda||(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,_ce2,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(_ce2){
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 _ce6=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;
_ce6=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_ce6=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*_ce6)+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,_cee){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _cef=dtB.getFullYear()-dtA.getFullYear();
var _cf0=(dtB.getMonth()-dtA.getMonth())+(_cef*12);
var _cf1=dtB.getTime()-dtA.getTime();
var _cf2=_cf1/1000;
var _cf3=_cf2/60;
var _cf4=_cf3/60;
var _cf5=_cf4/24;
var _cf6=_cf5/7;
var _cf7=0;
with(dojo.date.dateParts){
switch(_cee){
case YEAR:
_cf7=_cef;
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+=(_cef*4);
_cf7=qB-qA;
break;
case MONTH:
_cf7=_cf0;
break;
case WEEK:
_cf7=parseInt(_cf6);
break;
case DAY:
_cf7=_cf5;
break;
case WEEKDAY:
var days=Math.round(_cf5);
var _cfd=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_cfd*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_cfd=parseInt(days/7);
mod=days%7;
var _d02=new Date(dtA);
_d02.setDate(_d02.getDate()+(_cfd*7));
var _d03=_d02.getDay();
if(_cf5>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 (_d03+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_cf5<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 (_d03+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_cfd*2);
}
_cf7=days;
break;
case HOUR:
_cf7=_cf4;
break;
case MINUTE:
_cf7=_cf3;
break;
case SECOND:
_cf7=_cf2;
break;
case MILLISECOND:
_cf7=_cf1;
break;
default:
break;
}
}
return Math.round(_cf7);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_d04){
var _d05={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};
_d04=dojo.hostenv.normalizeLocale(_d04);
var _d06=_d04.split("-")[1];
var dow=_d05[_d06];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_d08){
var _d09={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 _d0a={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};
_d08=dojo.hostenv.normalizeLocale(_d08);
var _d0b=_d08.split("-")[1];
var _d0c=_d09[_d0b];
var end=_d0a[_d0b];
if(typeof _d0c=="undefined"){
_d0c=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_d0c,end:end};
};
dojo.date.isWeekend=function(_d0e,_d0f){
var _d10=dojo.date.getWeekend(_d0f);
var day=(_d0e||new Date()).getDay();
if(_d10.end<_d10.start){
_d10.end+=7;
if(day<_d10.start){
day+=7;
}
}
return day>=_d10.start&&day<=_d10.end;
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_d12,_d13){
if(typeof _d13=="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(_d12,_d13);
}
function formatPattern(_d14,_d15){
return _d15.replace(/([a-z])\1*/ig,function(_d16){
var s;
var c=_d16.charAt(0);
var l=_d16.length;
var pad;
var _d1b=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_d14.getFullYear()<0?1:0];
break;
case "y":
s=_d14.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((_d14.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=_d14.getMonth();
var _d1e;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_d1e=_d1b[l-3];
break;
}
if(_d1e){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_d1e].join("-");
s=info[prop][m];
}
break;
case "w":
var _d21=0;
s=dojo.date.getWeekOfYear(_d14,_d21);
pad=true;
break;
case "d":
s=_d14.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_d14);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_d14.getDay();
var _d1e;
switch(l){
case 1:
case 2:
if(c=="e"){
var _d23=dojo.date.getFirstDayOfWeek(_d13.locale);
d=(d-_d23+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_d1e=_d1b[l-3];
break;
}
if(_d1e){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_d1e].join("-");
s=info[prop][d];
}
break;
case "a":
var _d24=(_d14.getHours()<12)?"am":"pm";
s=info[_d24];
break;
case "h":
case "H":
case "K":
case "k":
var h=_d14.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=_d14.getMinutes();
pad=true;
break;
case "s":
s=_d14.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_d14.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_d14);
if(s){
break;
}
l=4;
case "Z":
var _d26=_d14.getTimezoneOffset();
var tz=[(_d26<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_d26)/60),2),dojo.string.pad(Math.abs(_d26)%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(_d16+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_d15);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_d13=_d13||{};
var _d28=dojo.hostenv.normalizeLocale(_d13.locale);
var _d29=_d13.formatLength||"full";
var info=dojo.date._getGregorianBundle(_d28);
var str=[];
var _d2b=dojo.lang.curry(this,formatPattern,_d12);
if(_d13.selector!="timeOnly"){
var _d2c=_d13.datePattern||info["dateFormat-"+_d29];
if(_d2c){
str.push(_processPattern(_d2c,_d2b));
}
}
if(_d13.selector!="dateOnly"){
var _d2d=_d13.timePattern||info["timeFormat-"+_d29];
if(_d2d){
str.push(_processPattern(_d2d,_d2b));
}
}
var _d2e=str.join(" ");
return _d2e;
};
dojo.date.parse=function(_d2f,_d30){
_d30=_d30||{};
var _d31=dojo.hostenv.normalizeLocale(_d30.locale);
var info=dojo.date._getGregorianBundle(_d31);
var _d33=_d30.formatLength||"full";
if(!_d30.selector){
_d30.selector="dateOnly";
}
var _d34=_d30.datePattern||info["dateFormat-"+_d33];
var _d35=_d30.timePattern||info["timeFormat-"+_d33];
var _d36;
if(_d30.selector=="dateOnly"){
_d36=_d34;
}else{
if(_d30.selector=="timeOnly"){
_d36=_d35;
}else{
if(_d30.selector=="dateTime"){
_d36=_d34+" "+_d35;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_d30.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_d36=_d34;
}
}
}
var _d38=[];
var _d39=_processPattern(_d36,dojo.lang.curry(this,_buildDateTimeRE,_d38,info,_d30));
var _d3a=new RegExp("^"+_d39+"$");
var _d3b=_d3a.exec(_d2f);
if(!_d3b){
return null;
}
var _d3c=["abbr","wide","narrow"];
var _d3d=new Date(1972,0);
var _d3e={};
for(var i=1;i<_d3b.length;i++){
var grp=_d38[i-1];
var l=grp.length;
var v=_d3b[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_d3d.setFullYear(v);
_d3e.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _d44=year.substring(0,2)*100;
var _d45=Number(year.substring(2,4));
var _d46=Math.min(_d45+20,99);
var num=(v<_d46)?_d44+v:_d44-100+v;
_d3d.setFullYear(num);
_d3e.year=num;
}else{
if(_d30.strict){
return null;
}
_d3d.setFullYear(v);
_d3e.year=v;
}
}
break;
case "M":
if(l>2){
if(!_d30.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _d48=info["months-format-"+_d3c[l-3]].concat();
for(var j=0;j<_d48.length;j++){
if(!_d30.strict){
_d48[j]=_d48[j].toLowerCase();
}
if(v==_d48[j]){
_d3d.setMonth(j);
_d3e.month=j;
break;
}
}
if(j==_d48.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_d3d.setMonth(v-1);
_d3e.month=v-1;
}
break;
case "E":
case "e":
if(!_d30.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_d3c[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_d30.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":
_d3d.setDate(v);
_d3e.date=v;
break;
case "a":
var am=_d30.am||info.am;
var pm=_d30.pm||info.pm;
if(!_d30.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_d30.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _d4d=_d3d.getHours();
if(v==pm&&_d4d<12){
_d3d.setHours(_d4d+12);
}else{
if(v==am&&_d4d==12){
_d3d.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;
}
_d3d.setHours(v);
break;
case "m":
_d3d.setMinutes(v);
break;
case "s":
_d3d.setSeconds(v);
break;
case "S":
_d3d.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_d3e.year&&_d3d.getFullYear()!=_d3e.year){
dojo.debug("Parsed year: '"+_d3d.getFullYear()+"' did not match input year: '"+_d3e.year+"'.");
return null;
}
if(_d3e.month&&_d3d.getMonth()!=_d3e.month){
dojo.debug("Parsed month: '"+_d3d.getMonth()+"' did not match input month: '"+_d3e.month+"'.");
return null;
}
if(_d3e.date&&_d3d.getDate()!=_d3e.date){
dojo.debug("Parsed day of month: '"+_d3d.getDate()+"' did not match input day of month: '"+_d3e.date+"'.");
return null;
}
return _d3d;
};
function _processPattern(_d4e,_d4f,_d50,_d51){
var _d52=function(x){
return x;
};
_d4f=_d4f||_d52;
_d50=_d50||_d52;
_d51=_d51||_d52;
var _d54=_d4e.match(/(''|[^'])+/g);
var _d55=false;
for(var i=0;i<_d54.length;i++){
if(!_d54[i]){
_d54[i]="";
}else{
_d54[i]=(_d55?_d50:_d4f)(_d54[i]);
_d55=!_d55;
}
}
return _d51(_d54.join(""));
}
function _buildDateTimeRE(_d57,info,_d59,_d5a){
return _d5a.replace(/([a-z])\1*/ig,function(_d5b){
var s;
var c=_d5b.charAt(0);
var l=_d5b.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=_d59.am||info.am||"AM";
var pm=_d59.pm||info.pm||"PM";
if(_d59.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="+_d5a);
}
if(_d57){
_d57.push(_d5b);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_d61,_d62,_d63){
var _d64=null;
function _(s,n){
return dojo.string.pad(s,n||2,_d64||"0");
}
var info=dojo.date._getGregorianBundle(_d63);
function $(_d68){
switch(_d68){
case "a":
return dojo.date.getDayShortName(_d61,_d63);
case "A":
return dojo.date.getDayName(_d61,_d63);
case "b":
case "h":
return dojo.date.getMonthShortName(_d61,_d63);
case "B":
return dojo.date.getMonthName(_d61,_d63);
case "c":
return dojo.date.format(_d61,{locale:_d63});
case "C":
return _(Math.floor(_d61.getFullYear()/100));
case "d":
return _(_d61.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_d64==null){
_d64=" ";
}
return _(_d61.getDate());
case "f":
if(_d64==null){
_d64=" ";
}
return _(_d61.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_d61.getHours());
case "I":
return _(_d61.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_d61),3);
case "k":
if(_d64==null){
_d64=" ";
}
return _(_d61.getHours());
case "l":
if(_d64==null){
_d64=" ";
}
return _(_d61.getHours()%12||12);
case "m":
return _(_d61.getMonth()+1);
case "M":
return _(_d61.getMinutes());
case "n":
return "\n";
case "p":
return info[_d61.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_d61.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_d61.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_d61));
case "V":
return _(dojo.date.getIsoWeekOfYear(_d61));
case "W":
return _(dojo.date.getWeekOfYear(_d61,1));
case "w":
return String(_d61.getDay());
case "x":
return dojo.date.format(_d61,{selector:"dateOnly",locale:_d63});
case "X":
return dojo.date.format(_d61,{selector:"timeOnly",locale:_d63});
case "y":
return _(_d61.getFullYear()%100);
case "Y":
return String(_d61.getFullYear());
case "z":
var _d69=_d61.getTimezoneOffset();
return (_d69>0?"-":"+")+_(Math.floor(Math.abs(_d69)/60))+":"+_(Math.abs(_d69)%60);
case "Z":
return dojo.date.getTimezoneName(_d61);
case "%":
return "%";
}
}
var _d6a="";
var i=0;
var _d6c=0;
var _d6d=null;
while((_d6c=_d62.indexOf("%",i))!=-1){
_d6a+=_d62.substring(i,_d6c++);
switch(_d62.charAt(_d6c++)){
case "_":
_d64=" ";
break;
case "-":
_d64="";
break;
case "0":
_d64="0";
break;
case "^":
_d6d="upper";
break;
case "*":
_d6d="lower";
break;
case "#":
_d6d="swap";
break;
default:
_d64=null;
_d6c--;
break;
}
var _d6e=$(_d62.charAt(_d6c++));
switch(_d6d){
case "upper":
_d6e=_d6e.toUpperCase();
break;
case "lower":
_d6e=_d6e.toLowerCase();
break;
case "swap":
var _d6f=_d6e.toLowerCase();
var _d70="";
var j=0;
var ch="";
while(j<_d6e.length){
ch=_d6e.charAt(j);
_d70+=(ch==_d6f.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_d6e=_d70;
break;
default:
break;
}
_d6d=null;
_d6a+=_d6e;
i=_d6c;
}
_d6a+=_d62.substring(i);
return _d6a;
};
(function(){
var _d73=[];
dojo.date.addCustomFormats=function(_d74,_d75){
_d73.push({pkg:_d74,name:_d75});
};
dojo.date._getGregorianBundle=function(_d76){
var _d77={};
dojo.lang.forEach(_d73,function(desc){
var _d79=dojo.i18n.getLocalization(desc.pkg,desc.name,_d76);
_d77=dojo.lang.mixin(_d77,_d79);
},this);
return _d77;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_d7d){
var _d7e;
var _d7f=dojo.date._getGregorianBundle(_d7d);
var _d80=[item,use,type];
if(use=="standAlone"){
_d7e=_d7f[_d80.join("-")];
}
_d80[1]="format";
return (_d7e||_d7f[_d80.join("-")]).concat();
};
dojo.date.getDayName=function(_d81,_d82){
return dojo.date.getNames("days","wide","format",_d82)[_d81.getDay()];
};
dojo.date.getDayShortName=function(_d83,_d84){
return dojo.date.getNames("days","abbr","format",_d84)[_d83.getDay()];
};
dojo.date.getMonthName=function(_d85,_d86){
return dojo.date.getNames("months","wide","format",_d86)[_d85.getMonth()];
};
dojo.date.getMonthShortName=function(_d87,_d88){
return dojo.date.getNames("months","abbr","format",_d88)[_d87.getMonth()];
};
dojo.date.toRelativeString=function(_d89){
var now=new Date();
var diff=(now-_d89)/1000;
var end=" ago";
var _d8d=false;
if(diff<0){
_d8d=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 _d8d?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_d89);
};
dojo.date.toSql=function(_d8e,_d8f){
return dojo.date.strftime(_d8e,"%F"+!_d8f?" %T":"");
};
dojo.date.fromSql=function(_d90){
var _d91=_d90.split(/[\- :]/g);
while(_d91.length<6){
_d91.push(0);
}
return new Date(_d91[0],(parseInt(_d91[1],10)-1),_d91[2],_d91[3],_d91[4],_d91[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_d92,_d93){
var _d94=(_d93.indexOf("T")==-1)?_d93.split(" "):_d93.split("T");
_d92=dojo.date.setIso8601Date(_d92,_d94[0]);
if(_d94.length==2){
_d92=dojo.date.setIso8601Time(_d92,_d94[1]);
}
return _d92;
};
dojo.date.fromIso8601=function(_d95){
return dojo.date.setIso8601(new Date(0,0),_d95);
};
dojo.date.setIso8601Date=function(_d96,_d97){
var _d98="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_d97.match(new RegExp(_d98));
if(!d){
dojo.debug("invalid date string: "+_d97);
return null;
}
var year=d[1];
var _d9b=d[4];
var date=d[6];
var _d9d=d[8];
var week=d[10];
var _d9f=d[12]?d[12]:1;
_d96.setFullYear(year);
if(_d9d){
_d96.setMonth(0);
_d96.setDate(Number(_d9d));
}else{
if(week){
_d96.setMonth(0);
_d96.setDate(1);
var gd=_d96.getDay();
var day=gd?gd:7;
var _da2=Number(_d9f)+(7*Number(week));
if(day<=4){
_d96.setDate(_da2+1-day);
}else{
_d96.setDate(_da2+8-day);
}
}else{
if(_d9b){
_d96.setDate(1);
_d96.setMonth(_d9b-1);
}
if(date){
_d96.setDate(date);
}
}
}
return _d96;
};
dojo.date.fromIso8601Date=function(_da3){
return dojo.date.setIso8601Date(new Date(0,0),_da3);
};
dojo.date.setIso8601Time=function(_da4,_da5){
var _da6="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_da5.match(new RegExp(_da6));
var _da8=0;
if(d){
if(d[0]!="Z"){
_da8=(Number(d[3])*60)+Number(d[5]);
_da8*=((d[2]=="-")?1:-1);
}
_da8-=_da4.getTimezoneOffset();
_da5=_da5.substr(0,_da5.length-d[0].length);
}
var _da9="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_da5.match(new RegExp(_da9));
if(!d){
dojo.debug("invalid time string: "+_da5);
return null;
}
var _daa=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;
_da4.setHours(_daa);
_da4.setMinutes(mins);
_da4.setSeconds(secs);
_da4.setMilliseconds(ms);
if(_da8!==0){
_da4.setTime(_da4.getTime()+_da8*60000);
}
return _da4;
};
dojo.date.fromIso8601Time=function(_dae){
return dojo.date.setIso8601Time(new Date(0,0),_dae);
};
dojo.date.toRfc3339=function(_daf,_db0){
if(!_daf){
_daf=new Date();
}
var _=dojo.string.pad;
var _db2=[];
if(_db0!="timeOnly"){
var date=[_(_daf.getFullYear(),4),_(_daf.getMonth()+1,2),_(_daf.getDate(),2)].join("-");
_db2.push(date);
}
if(_db0!="dateOnly"){
var time=[_(_daf.getHours(),2),_(_daf.getMinutes(),2),_(_daf.getSeconds(),2)].join(":");
var _db5=_daf.getTimezoneOffset();
time+=(_db5>0?"-":"+")+_(Math.floor(Math.abs(_db5)/60),2)+":"+_(Math.abs(_db5)%60,2);
_db2.push(time);
}
return _db2.join("T");
};
dojo.date.fromRfc3339=function(_db6){
if(_db6.indexOf("Tany")!=-1){
_db6=_db6.replace("Tany","");
}
var _db7=new Date();
return dojo.date.setIso8601(_db7,_db6);
};
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",templateCssString:".datePickerContainer {\r\n\twidth:164px; /* needed for proper user styling */\r\n}\r\n\r\n.calendarContainer {\r\n/*\tborder:1px solid #566f8f;*/\r\n}\r\n\r\n.calendarBodyContainer {\r\n\twidth:100%; /* needed for the explode effect (explain?) */\r\n\tbackground: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\r\n}\r\n\r\n.calendarBodyContainer thead tr td {\r\n\tcolor:#293a4b;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n\tpadding:0.25em;\r\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\r\n}\r\n\r\n.calendarBodyContainer tbody tr td {\r\n\tcolor:#fff;\r\n\tfont:bold 0.7em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n\tpadding:0.4em;\r\n\tbackground: url(\"images/dpVertLine.gif\") top right repeat-y;\r\n\tcursor:pointer;\r\n\tcursor:hand;\r\n}\r\n\r\n\r\n.monthWrapper {\r\n\tpadding-bottom:2px;\r\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\r\n}\r\n\r\n.monthContainer {\r\n\twidth:100%;\r\n}\r\n\r\n.monthLabelContainer {\r\n\ttext-align:center;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\tbackground: url(\"images/dpMonthBg.png\") repeat-x top left !important;\r\n\tcolor:#293a4b;\r\n\tpadding:0.25em;\r\n}\r\n\r\n.monthCurve {\r\n\twidth:12px;\r\n}\r\n\r\n.monthCurveTL {\r\n\tbackground: url(\"images/dpCurveTL.png\") no-repeat top left !important;\r\n}\r\n\r\n.monthCurveTR {\r\n\t\tbackground: url(\"images/dpCurveTR.png\") no-repeat top right !important;\r\n}\r\n\r\n\r\n.yearWrapper {\r\n\tbackground: url(\"images/dpHorizLineFoot.gif\") top left repeat-x;\r\n\tpadding-top:2px;\r\n}\r\n\r\n.yearContainer {\r\n\twidth:100%;\r\n}\r\n\r\n.yearContainer td {\r\n\tbackground:url(\"images/dpYearBg.png\") top left repeat-x;\r\n}\r\n\r\n.yearContainer .yearLabel {\r\n\tmargin:0;\r\n\tpadding:0.45em 0 0.45em 0;\r\n\tcolor:#fff;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n}\r\n\r\n.curveBL {\r\n\tbackground: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\r\n\twidth:9px !important;\r\n\tpadding:0;\r\n\tmargin:0;\r\n}\r\n\r\n.curveBR {\r\n\tbackground: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\r\n\twidth:9px !important;\r\n\tpadding:0;\r\n\tmargin:0;\r\n}\r\n\r\n\r\n.previousMonth {\r\n\tbackground-color:#6782a8 !important;\r\n}\r\n\r\n.previousMonthDisabled {\r\n\tbackground-color:#a4a5a6 !important;\r\n\tcursor:default !important\r\n}\r\n.currentMonth {\r\n}\r\n\r\n.currentMonthDisabled {\r\n\tbackground-color:#bbbbbc !important;\r\n\tcursor:default !important\r\n}\r\n.nextMonth {\r\n\tbackground-color:#6782a8 !important;\r\n}\r\n.nextMonthDisabled {\r\n\tbackground-color:#a4a5a6 !important;\r\n\tcursor:default !important;\r\n}\r\n\r\n.currentDate {\r\n\ttext-decoration:underline;\r\n\tfont-style:italic;\r\n}\r\n\r\n.selectedDate {\r\n\tbackground-color:#fff !important;\r\n\tcolor:#6782a8 !important;\r\n}\r\n\r\n.yearLabel .selectedYear {\r\n\tpadding:0.2em;\r\n\tbackground-color:#9ec3fb !important;\r\n}\r\n\r\n.nextYear, .previousYear {\r\n\tcursor:pointer;cursor:hand;\r\n\tpadding:0;\r\n}\r\n\r\n.nextYear {\r\n\tmargin:0 0 0 0.55em;\r\n}\r\n\r\n.previousYear {\r\n\tmargin:0 0.55em 0 0;\r\n}\r\n\r\n.incrementControl {\r\n\tcursor:pointer;cursor:hand;\r\n\twidth:1em;\r\n}\r\n\r\n.increase {\r\n\tfloat:right;\r\n}\r\n\r\n.decrease {\r\n\tfloat:left;\r\n}\r\n\r\n.lastColumn {\r\n\tbackground-image:none !important;\r\n}\r\n\r\n\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/DatePicker.css"),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 _dba=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_dba);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value?this.value:this.today,false,true);
var _dbb=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_dbb.push(_dbb.shift());
}
}
var _dbd=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_dbd.item(i).innerHTML=_dbb[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(_dbe){
this.setDate(_dbe);
},setDate:function(_dbf){
if(_dbf==""){
this.value="";
this._preInitUI(this.curMonth,false,true);
}else{
if(typeof _dbf=="string"){
this.value=dojo.date.fromRfc3339(_dbf);
this.value.setHours(0,0,0,0);
}else{
this.value=new Date(_dbf);
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(_dc0,_dc1,_dc2){
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(_dc0<this.startDate||_dc0>this.endDate){
_dc0=new Date((_dc0<this.startDate)?this.startDate:this.endDate);
}
this.firstDay=this._initFirstDay(_dc0,_dc1);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _dc3=new Date(this.firstDay);
var _dc4=_dc3.getMonth();
this.curMonth=new Date(_dc3);
this.curMonth.setDate(_dc3.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(_dc3,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_dc3=new Date(this.firstDay);
}
this.curMonth=new Date(_dc3);
this.curMonth.setDate(_dc3.getDate()+6);
this.curMonth.setDate(1);
var _dc6=(_dc3.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_dc2){
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 _dc9=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _dca=this.calendarDatesContainerNode.getElementsByTagName("td");
var _dcb=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _dcc;
for(i=0;i<days;i++){
_dcc=_dca.item(i);
_dcc.innerHTML=_dc9.getDate();
_dcc.setAttribute("djDateValue",_dc9.valueOf());
var _dcd=(_dc9.getMonth()!=this.curMonth.getMonth()&&Number(_dc9)<Number(this.curMonth))?"previous":(_dc9.getMonth()==this.curMonth.getMonth())?"current":"next";
var _dce=_dcd;
if(this._isDisabledDate(_dc9)){
var _dcf={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_dce=_dcf[_dcd];
}
dojo.html.setClass(_dcc,this._getDateClassName(_dc9,_dce));
if(dojo.html.hasClass(_dcc,this.classNames.selectedDate)){
this.selectedNode=_dcc;
}
_dc9=dojo.date.add(_dc9,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_dc9,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _dd2,_dd3,_dd4,_dd5,_dd6,_dd7;
_dd2=_dd3=_dd4=_dd5=_dd6=_dd7=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_dd2&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_dd2=_dd4=_dd6=false;
}
if(_dd3&&d2>this.endDate){
_dd3=_dd5=_dd7=false;
}
if(_dd4&&add(d,DAY,-1)<this.startDate){
_dd4=_dd6=false;
}
if(_dd5&&add(d2,DAY,1)>this.endDate){
_dd5=_dd7=false;
}
if(_dd6&&add(d2,YEAR,-1)<this.startDate){
_dd6=false;
}
if(_dd7&&add(d,YEAR,1)>this.endDate){
_dd7=false;
}
}
function enableControl(node,_dda){
dojo.html.setVisibility(node,_dda?"":"hidden");
}
enableControl(this.decreaseWeekNode,_dd2);
enableControl(this.increaseWeekNode,_dd3);
enableControl(this.decreaseMonthNode,_dd4);
enableControl(this.increaseMonthNode,_dd5);
enableControl(this.previousYearLabelNode,_dd6);
enableControl(this.nextYearLabelNode,_dd7);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _ddd=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_ddd<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 _de0=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_de0=dojo.date.add(_de0,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_de0<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _de1=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_de0>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _de2=true;
}
break;
}
if(_de2){
d=new Date(this.startDate);
}else{
if(_de1){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _de5=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_de5=dojo.date.add(_de5,dojo.date.dateParts.YEAR,1);
if(_de5<this.endDate){
year++;
}else{
var _de6=true;
}
break;
case this.previousYearLabelNode:
_de5=dojo.date.add(_de5,dojo.date.dateParts.YEAR,-1);
if(_de5>this.startDate){
year--;
}else{
var _de7=true;
}
break;
}
var d;
if(_de7){
d=new Date(this.startDate);
}else{
if(_de6){
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(_dec){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_dec];
},_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,_df2){
var _df3=this.classNames[_df2];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_df3=this.classNames.selectedDate+" "+_df3;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_df3=_df3+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _df3;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _df6=evt.target;
if(_df6.nodeType!=dojo.dom.ELEMENT_NODE){
_df6=_df6.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
if(dojo.html.hasClass(_df6,this.classNames["disabledPrevious"])||dojo.html.hasClass(_df6,this.classNames["disabledCurrent"])||dojo.html.hasClass(_df6,this.classNames["disabledNext"])){
return;
}
this.clickedNode=_df6;
this.setDate(new Date(Number(dojo.html.getAttribute(_df6,"djDateValue"))));
},onValueChanged:function(date){
},_isDisabledDate:function(_df8){
if(_df8<this.startDate||_df8>this.endDate){
return true;
}
return this.isDisabledDate(_df8,this.lang);
},isDisabledDate:function(_df9,_dfa){
return false;
},_initFirstDay:function(_dfb,adj){
var d=new Date(_dfb);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_dfe){
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[_dfe.getDay()];
},destroy:function(){
dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);
dojo.html.destroyNode(this.weekTemplate);
}});
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(_e01,frag){
dojo.widget.DropdownDatePicker.superclass.postMixInProperties.apply(this,arguments);
var _e03=dojo.i18n.getLocalization("dojo.widget","DropdownDatePicker",this.lang);
this.iconAlt=_e03.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 _e07={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",_e07,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(_e08){
this.setDate(_e08);
},setDate:function(_e09){
this.datePicker.setDate(_e09);
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(_e0a){
},onInputChange:function(){
var _e0b=dojo.string.trim(this.inputNode.value);
if(_e0b){
var _e0c=dojo.date.parse(_e0b,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang});
if(!this.datePicker._isDisabledDate(_e0c)){
this.setDate(_e0c);
}
}else{
if(_e0b==""){
this.datePicker.setDate("");
}
this.valueNode.value=_e0b;
}
if(_e0b){
this._updateText();
}
},_syncValueNode:function(){
var date=this.datePicker.value;
var _e0e="";
switch(this.saveFormat.toLowerCase()){
case "rfc":
case "iso":
case "":
_e0e=dojo.date.toRfc3339(date,"dateOnly");
break;
case "posix":
case "unix":
_e0e=Number(date);
break;
default:
if(date){
_e0e=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang});
}
}
this.valueNode.value=_e0e;
},destroy:function(_e0f){
this.datePicker.destroy(_e0f);
dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments);
}});
dojo.provide("dojo.widget.html.layout");
dojo.widget.html.layout=function(_e10,_e11,_e12){
dojo.html.addClass(_e10,"dojoLayoutContainer");
_e11=dojo.lang.filter(_e11,function(_e13,idx){
_e13.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_e13.layoutAlign);
});
if(_e12&&_e12!="none"){
var rank=function(_e16){
switch(_e16.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_e12=="left-right")?2:3;
case "top":
case "bottom":
return (_e12=="left-right")?3:2;
default:
return 4;
}
};
_e11.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_e10,"padding-top",true),left:dojo.html.getPixelValue(_e10,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_e10));
dojo.lang.forEach(_e11,function(_e1a){
var elm=_e1a.domNode;
var pos=_e1a.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(_e1a.onResized){
_e1a.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_e1a.resizeTo){
_e1a.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(_e1a.resizeTo){
_e1a.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.Menu2");
dojo.declare("dojo.widget.MenuBase",null,function(){
this.eventNames={open:""};
},{isContainer:true,isMenu:true,eventNaming:"default",templateCssString:"\r\n.dojoPopupMenu2 {\r\n\tposition: absolute;\r\n\tborder: 1px solid #7298d0;\r\n\tbackground:#85aeec url(images/soriaMenuBg.gif) repeat-x bottom left !important;\r\n\tpadding: 1px;\r\n\tmargin-top: 1px;\r\n\tmargin-bottom: 1px;\r\n}\r\n\r\n.dojoMenuItem2{\r\n\twhite-space: nowrap;\r\n\tfont: menu;\r\n\tmargin: 0;\r\n}\r\n\r\n.dojoMenuItem2Hover {\r\n\tbackground-color: #D2E4FD;\r\n\tcursor:pointer;\r\n\tcursor:hand;\r\n}\r\n\r\n.dojoMenuItem2Icon {\r\n\tposition: relative;\r\n\tbackground-position: center center;\r\n\tbackground-repeat: no-repeat;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tpadding-right: 3px;\r\n}\r\n\r\n.dojoMenuItem2Label {\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n}\r\n\r\n/* main label text */\r\n.dojoMenuItem2Label {\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.dojoMenuItem2Accel {\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n\tpadding-left: 3px;\r\n}\r\n\r\n.dojoMenuItem2Disabled .dojoMenuItem2Label,\r\n.dojoMenuItem2Disabled .dojoMenuItem2Accel {\r\n\tcolor: #607a9e;\r\n}\r\n\r\n.dojoMenuItem2Submenu {\r\n\tposition: relative;\r\n\tbackground-position: center center;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-image: url(images/submenu_off.gif);\r\n\twidth: 5px;\r\n\theight: 9px;\r\n\tpadding-left: 3px;\r\n}\r\n.dojoMenuItem2Hover .dojoMenuItem2Submenu {\r\n\tbackground-image: url(images/submenu_on.gif);\r\n}\r\n\r\n.dojoMenuItem2Disabled .dojoMenuItem2Submenu {\r\n\tbackground-image: url(images/submenu_disabled.gif);\r\n}\r\n\r\n.dojoMenuSeparator2 {\r\n\tfont-size: 1px;\r\n\tmargin: 0;\r\n}\r\n\r\n.dojoMenuSeparator2Top {\r\n\theight: 50%;\r\n\tborder-bottom: 1px solid #7a98c4;\r\n\tmargin: 0px 2px;\r\n\tfont-size: 1px;\r\n}\r\n\r\n.dojoMenuSeparator2Bottom {\r\n\theight: 50%;\r\n\tborder-top: 1px solid #c9deff;\r\n\tmargin: 0px 2px;\r\n\tfont-size: 1px;\r\n}\r\n\r\n.dojoMenuBar2 {\r\n\tbackground:#85aeec url(images/soriaBarBg.gif) repeat-x top left;\r\n\t/*border-bottom:1px solid #6b9fec;*/\r\n\tpadding: 1px;\r\n}\r\n\r\n.dojoMenuBar2 .dojoMenuItem2 {\r\n\twhite-space: nowrap;\r\n\tfont: menu;\r\n\tmargin: 0;\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n\tz-index: 1;\r\n\tpadding: 3px 8px;\r\n\tdisplay: inline;/* needed in khtml to display correctly */\r\n\tdisplay: -moz-inline-box;/* needed in firefox */\r\n\tcursor:pointer;\r\n\tcursor:hand;\r\n}\r\n\r\n.dojoMenuBar2 .dojoMenuItem2Hover {\r\n\tbackground-color:#d2e4fd;\r\n}\r\n\r\n.dojoMenuBar2 .dojoMenuItem2Disabled span {\r\n\tcolor: #4f6582;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/Menu2.css"),submenuDelay:500,initialize:function(args,frag){
if(this.eventNaming=="default"){
for(var _e21 in this.eventNames){
this.eventNames[_e21]=this.widgetId+"/"+_e21;
}
}
},_moveToNext:function(evt){
this._highlightOption(1);
return true;
},_moveToPrevious:function(evt){
this._highlightOption(-1);
return true;
},_moveToParentMenu:function(evt){
if(this._highlighted_option&&this.parentMenu){
if(evt._menu2UpKeyProcessed){
return true;
}else{
this._highlighted_option.onUnhover();
this.closeSubmenu();
evt._menu2UpKeyProcessed=true;
}
}
return false;
},_moveToChildMenu:function(evt){
if(this._highlighted_option&&this._highlighted_option.submenuId){
this._highlighted_option._onClick(true);
return true;
}
return false;
},_selectCurrentItem:function(evt){
if(this._highlighted_option){
this._highlighted_option._onClick();
return true;
}
return false;
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey||!evt.key){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToPrevious(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToParentMenu(evt);
break;
case " ":
case evt.KEY_ENTER:
if(rval=this._selectCurrentItem(evt)){
break;
}
case evt.KEY_ESCAPE:
case evt.KEY_TAB:
this.close(true);
rval=true;
break;
}
return rval;
},_findValidItem:function(dir,_e2a){
if(_e2a){
_e2a=dir>0?_e2a.getNextSibling():_e2a.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_e2a){
_e2a=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_e2a.onHover&&_e2a.isShowing()){
return _e2a;
}
_e2a=dir>0?_e2a.getNextSibling():_e2a.getPreviousSibling();
}
},_highlightOption:function(dir){
var item;
if((!this._highlighted_option)){
item=this._findValidItem(dir);
}else{
item=this._findValidItem(dir,this._highlighted_option);
}
if(item){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
item.onHover();
dojo.html.scrollIntoView(item.domNode);
try{
var node=dojo.html.getElementsByClass("dojoMenuItem2Label",item.domNode)[0];
node.focus();
}
catch(e){
}
}
},onItemClick:function(item){
},closeSubmenu:function(_e30){
if(this.currentSubmenu==null){
return;
}
this.currentSubmenu.close(_e30);
this.currentSubmenu=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_e30);
this.currentSubmenuTrigger=null;
}});
dojo.widget.defineWidget("dojo.widget.PopupMenu2",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase,dojo.widget.MenuBase],function(){
this.targetNodeIds=[];
},{templateString:"<table class=\"dojoPopupMenu2\" border=0 cellspacing=0 cellpadding=0 style=\"display: none; position: absolute;\">"+"<tbody dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",submenuOverlap:5,contextMenuForWindow:false,parentMenu:null,postCreate:function(){
if(this.contextMenuForWindow){
var doc=dojo.body();
this.bindDomNode(doc);
}else{
if(this.targetNodeIds.length>0){
dojo.lang.forEach(this.targetNodeIds,this.bindDomNode,this);
}
}
this._subscribeSubitemsOnOpen();
},_subscribeSubitemsOnOpen:function(){
var _e32=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_e32.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_e32[i],"menuOpen");
}
},getTopOpenEvent:function(){
var menu=this;
while(menu.parentMenu){
menu=menu.parentMenu;
}
return menu.openEvent;
},bindDomNode:function(node){
node=dojo.byId(node);
var win=dojo.html.getElementWindow(node);
if(dojo.html.isTag(node,"iframe")=="iframe"){
win=dojo.html.iframeContentWindow(node);
node=dojo.withGlobal(win,dojo.body);
}
dojo.widget.Menu2.OperaAndKonqFixer.fixNode(node);
dojo.event.kwConnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
if(dojo.render.html.moz&&win.document.designMode.toLowerCase()=="on"){
dojo.event.browser.addListener(node,"contextmenu",dojo.lang.hitch(this,"onOpen"));
}
dojo.widget.PopupManager.registerWin(win);
},unBindDomNode:function(_e37){
var node=dojo.byId(_e37);
dojo.event.kwDisconnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(node);
},_openAsSubmenu:function(_e39,_e3a,_e3b){
if(this.isShowingNow){
return;
}
this.parentMenu=_e39;
this.open(_e3a,_e39,_e3a,_e3b);
},close:function(_e3c){
if(this.animationInProgress){
dojo.widget.PopupContainerBase.prototype.close.call(this,_e3c);
return;
}
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
dojo.widget.PopupContainerBase.prototype.close.call(this,_e3c);
this.parentMenu=null;
},closeAll:function(_e3d){
if(this.parentMenu){
this.parentMenu.closeAll(_e3d);
}else{
this.close(_e3d);
}
},_openSubmenu:function(_e3e,_e3f){
_e3e._openAsSubmenu(this,_e3f.arrow,{"TR":"TL","TL":"TR"});
this.currentSubmenu=_e3e;
this.currentSubmenuTrigger=_e3f;
this.currentSubmenuTrigger.is_open=true;
},focus:function(){
if(this.currentSubmenuTrigger){
if(this.currentSubmenuTrigger.caption){
try{
this.currentSubmenuTrigger.caption.focus();
}
catch(e){
}
}else{
try{
this.currentSubmenuTrigger.domNode.focus();
}
catch(e){
}
}
}
},onOpen:function(e){
this.openEvent=e;
if(e["target"]){
this.openedForWindow=dojo.html.getElementWindow(e.target);
}else{
this.openedForWindow=null;
}
var x=e.pageX,y=e.pageY;
var win=dojo.html.getElementWindow(e.target);
var _e44=win._frameElement||win.frameElement;
if(_e44){
var cood=dojo.html.abs(_e44,true);
x+=cood.x-dojo.withGlobal(win,dojo.html.getScroll).left;
y+=cood.y-dojo.withGlobal(win,dojo.html.getScroll).top;
}
this.open(x,y,null,[x,y]);
dojo.event.browser.stopEvent(e);
}});
dojo.widget.defineWidget("dojo.widget.MenuItem2",dojo.widget.HtmlWidget,function(){
this.eventNames={engage:""};
},{templateString:"<tr class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick; onKey:onKey;\">"+"<td><div class=\"${this.iconClass}\" style=\"${this.iconStyle}\"></div></td>"+"<td tabIndex=\"-1\" class=\"dojoMenuItem2Label\" dojoAttachPoint=\"caption\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"<td><div class=\"dojoMenuItem2Submenu\" style=\"display:${this.arrowDisplay};\" dojoAttachPoint=\"arrow\"></div></td>"+"</tr>",is_hovering:false,hover_timer:null,is_open:false,topPosition:0,caption:"Untitled",accelKey:"",iconSrc:"",disabledClass:"dojoMenuItem2Disabled",iconClass:"dojoMenuItem2Icon",submenuId:"",eventNaming:"default",highlightClass:"dojoMenuItem2Hover",postMixInProperties:function(){
this.iconStyle="";
if(this.iconSrc){
if((this.iconSrc.toLowerCase().substring(this.iconSrc.length-4)==".png")&&(dojo.render.html.ie55||dojo.render.html.ie60)){
this.iconStyle="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.iconSrc+"', sizingMethod='image')";
}else{
this.iconStyle="background-image: url("+this.iconSrc+")";
}
}
this.arrowDisplay=this.submenuId?"block":"none";
dojo.widget.MenuItem2.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.domNode);
if(this.disabled){
this.setDisabled(true);
}
if(this.eventNaming=="default"){
for(var _e46 in this.eventNames){
this.eventNames[_e46]=this.widgetId+"/"+_e46;
}
}
},onHover:function(){
this.onUnhover();
if(this.is_hovering){
return;
}
if(this.is_open){
return;
}
if(this.parent._highlighted_option){
this.parent._highlighted_option.onUnhover();
}
this.parent.closeSubmenu();
this.parent._highlighted_option=this;
dojo.widget.PopupManager.setFocusedMenu(this.parent);
this._highlightItem();
if(this.is_hovering){
this._stopSubmenuTimer();
}
this.is_hovering=true;
this._startSubmenuTimer();
},onUnhover:function(){
if(!this.is_open){
this._unhighlightItem();
}
this.is_hovering=false;
this.parent._highlighted_option=null;
if(this.parent.parentMenu){
dojo.widget.PopupManager.setFocusedMenu(this.parent.parentMenu);
}
this._stopSubmenuTimer();
},_onClick:function(_e47){
var _e48=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_e48=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_e48&&_e47){
dojo.widget.getWidgetById(this.submenuId)._highlightOption(1);
}
return;
},onClick:function(){
this.parent.onItemClick(this);
},_highlightItem:function(){
dojo.html.addClass(this.domNode,this.highlightClass);
},_unhighlightItem:function(){
dojo.html.removeClass(this.domNode,this.highlightClass);
},_startSubmenuTimer:function(){
this._stopSubmenuTimer();
if(this.disabled){
return;
}
var self=this;
var _e4a=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_e4a,this.parent.submenuDelay);
},_stopSubmenuTimer:function(){
if(this.hover_timer){
dojo.lang.clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_openSubmenu:function(){
if(this.disabled){
return;
}
this.parent.closeSubmenu();
var _e4b=dojo.widget.getWidgetById(this.submenuId);
if(_e4b){
this.parent._openSubmenu(_e4b,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_e4c){
this.disabled=_e4c;
if(this.disabled){
dojo.html.addClass(this.domNode,this.disabledClass);
}else{
dojo.html.removeClass(this.domNode,this.disabledClass);
}
},enable:function(){
this.setDisabled(false);
},disable:function(){
this.setDisabled(true);
},menuOpen:function(_e4d){
}});
dojo.widget.defineWidget("dojo.widget.MenuSeparator2",dojo.widget.HtmlWidget,{templateString:"<tr class=\"dojoMenuSeparator2\"><td colspan=4>"+"<div class=\"dojoMenuSeparator2Top\"></div>"+"<div class=\"dojoMenuSeparator2Bottom\"></div>"+"</td></tr>",postCreate:function(){
dojo.html.disableSelection(this.domNode);
}});
dojo.widget.defineWidget("dojo.widget.MenuBar2",[dojo.widget.HtmlWidget,dojo.widget.MenuBase],{menuOverlap:2,templateString:"<div class=\"dojoMenuBar2\" dojoAttachPoint=\"containerNode\" tabIndex=\"0\"></div>",close:function(_e4e){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubmenu(_e4e);
},closeAll:function(_e4f){
this.close(_e4f);
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey){
return false;
}
var rval=false;
switch(evt.key){
case evt.KEY_DOWN_ARROW:
rval=this._moveToChildMenu(evt);
break;
case evt.KEY_UP_ARROW:
rval=this._moveToParentMenu(evt);
break;
case evt.KEY_RIGHT_ARROW:
rval=this._moveToNext(evt);
break;
case evt.KEY_LEFT_ARROW:
rval=this._moveToPrevious(evt);
break;
default:
rval=dojo.widget.MenuBar2.superclass.processKey.apply(this,arguments);
break;
}
return rval;
},postCreate:function(){
dojo.widget.MenuBar2.superclass.postCreate.apply(this,arguments);
this.isShowingNow=true;
},_openSubmenu:function(_e52,_e53){
_e52._openAsSubmenu(this,_e53.domNode,{"BL":"TL","TL":"BL"});
this.currentSubmenu=_e52;
this.currentSubmenuTrigger=_e53;
this.currentSubmenuTrigger.is_open=true;
}});
dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:"<span class=\"dojoMenuItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;\">${this.caption}</span>"});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _e54=true;
var _e55=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_e54=false;
_e55=true;
};
}
if(dojo.doc().createEvent){
try{
var e=dojo.doc().createEvent("MouseEvents");
e.initMouseEvent("contextmenu",1,1,dojo.global(),1,0,0,0,0,0,0,0,0,0,null);
dojo.doc().dispatchEvent(e);
}
catch(e){
}
}else{
_e54=false;
}
if(_e55){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_e54){
if(!dojo.lang.isFunction(node.oncontextmenu)){
node.oncontextmenu=function(e){
};
}
if(dojo.render.html.opera){
node._menufixer_opera=function(e){
if(e.ctrlKey){
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onclick",node,"_menufixer_opera");
}else{
node._menufixer_konq=function(e){
if(e.button==2){
e.preventDefault();
this.oncontextmenu(e);
}
};
dojo.event.connect(node,"onmousedown",node,"_menufixer_konq");
}
}
};
this.cleanNode=function(node){
if(_e54){
if(node._menufixer_opera){
dojo.event.disconnect(node,"onclick",node,"_menufixer_opera");
delete node._menufixer_opera;
}else{
if(node._menufixer_konq){
dojo.event.disconnect(node,"onmousedown",node,"_menufixer_konq");
delete node._menufixer_konq;
}
}
if(node.oncontextmenu){
delete node.oncontextmenu;
}
}
};
};
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 _e5e=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_e5e);
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 _e61;
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(_e63){
dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);
this._setupChild(_e63);
this.onResized();
if(!this.selectedChildWidget){
this.selectChild(_e63);
}
},_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,_e67){
page=dojo.widget.byId(page);
this.correspondingPageButton=_e67;
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 _e68=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_e68+1]);
},back:function(){
var _e69=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_e69-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 _e6a=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_e6a.width,_e6a.height);
}
},_showChild:function(page){
if(this.doLayout){
var _e6c=dojo.html.getContentBox(this.containerNode);
page.resizeTo(_e6c.width,_e6c.height);
}
page.selected=true;
page.show();
},_hideChild:function(page){
page.selected=false;
page.hide();
},closeChild:function(page){
var _e6f=page.onClose(this,page);
if(_e6f){
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 _e70=dojo.widget.byId(this.containerId);
if(_e70){
dojo.lang.forEach(_e70.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 _e72=dojo.widget.createWidget(this.buttonWidget,{label:page.label,closeButton:page.closable});
this.addChild(_e72);
this.domNode.appendChild(_e72.domNode);
this.pane2button[page]=_e72;
page.controlButton=_e72;
var _e73=this;
dojo.event.connect(_e72,"onClick",function(){
_e73.onButtonClick(page);
});
dojo.event.connect(_e72,"onCloseButtonClick",function(){
_e73.onCloseButtonClick(page);
});
},onRemoveChild:function(page){
if(this._currentChild==page){
this._currentChild=null;
}
var _e75=this.pane2button[page];
if(_e75){
_e75.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(this._currentChild){
var _e77=this.pane2button[this._currentChild];
_e77.clearSelected();
}
var _e78=this.pane2button[page];
_e78.setSelected();
this._currentChild=page;
},onButtonClick:function(page){
var _e7a=dojo.widget.byId(this.containerId);
_e7a.selectChild(page,false,this);
},onCloseButtonClick:function(page){
var _e7c=dojo.widget.byId(this.containerId);
_e7c.closeChild(page);
},onKey:function(evt){
if((evt.keyCode==evt.KEY_RIGHT_ARROW)||(evt.keyCode==evt.KEY_LEFT_ARROW)){
var _e7e=0;
var next=null;
var _e7e=dojo.lang.find(this.children,this.pane2button[this._currentChild]);
if(evt.keyCode==evt.KEY_RIGHT_ARROW){
next=this.children[(_e7e+1)%this.children.length];
}else{
next=this.children[(_e7e+(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.TabContainer");
dojo.widget.defineWidget("dojo.widget.TabContainer",dojo.widget.PageContainer,{labelPosition:"top",closeButton:"none",templateString:null,templateString:"<div id=\"${this.widgetId}\" class=\"dojoTabContainer\">\r\n\t<div dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div class=\"dojoTabPaneWrapper\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onKey\" waiRole=\"tabpanel\"></div>\r\n</div>\r\n",templateCssString:".dojoTabContainer {\r\n\tposition : relative;\r\n}\r\n\r\n.dojoTabPaneWrapper {\r\n\tborder : 1px solid #aaaaaa;\r\n\t_zoom: 1; /* force IE6 layout mode so top border doesnt disappear */\r\n\tdisplay: block;\r\n\tclear: both;\r\n\toverflow: hidden;\r\n}\r\n\r\n.dojoTabLabels-top {\r\n\tposition : relative;\r\n\ttop : 0px;\r\n\tleft : 0px;\r\n\toverflow : visible;\r\n\tmargin-bottom : -1px;\r\n\twidth : 100%;\r\n\tz-index: 2;\t/* so the bottom of the tab label will cover up the border of dojoTabPaneWrapper */\r\n}\r\n\r\n.dojoTabNoLayout.dojoTabLabels-top .dojoTab {\r\n\tmargin-bottom: -1px;\r\n\t_margin-bottom: 0px; /* IE filter so top border lines up correctly */\r\n}\r\n\r\n.dojoTab {\r\n\tposition : relative;\r\n\tfloat : left;\r\n\tpadding-left : 9px;\r\n\tborder-bottom : 1px solid #aaaaaa;\r\n\tbackground : url(images/tab_left.gif) no-repeat left top;\r\n\tcursor: pointer;\r\n\twhite-space: nowrap;\r\n\tz-index: 3;\r\n}\r\n\r\n.dojoTab div {\r\n\tdisplay : block;\r\n\tpadding : 4px 15px 4px 6px;\r\n\tbackground : url(images/tab_top_right.gif) no-repeat right top;\r\n\tcolor : #333;\r\n\tfont-size : 90%;\r\n}\r\n\r\n.dojoTab .close {\r\n\tdisplay : inline-block;\r\n\theight : 12px;\r\n\twidth : 12px;\r\n\tpadding : 0 12px 0 0;\r\n\tmargin : 0 -10px 0 10px;\r\n\tcursor : default;\r\n\tfont-size: small;\r\n}\r\n\r\n.dojoTab .closeImage {\r\n\tbackground : url(images/tab_close.gif) no-repeat right top;\r\n}\r\n\r\n.dojoTab .closeHover {\r\n\tbackground-image : url(images/tab_close_h.gif);\r\n}\r\n\r\n.dojoTab.current {\r\n\tpadding-bottom : 1px;\r\n\tborder-bottom : 0;\r\n\tbackground-position : 0 -150px;\r\n}\r\n\r\n.dojoTab.current div {\r\n\tpadding-bottom : 5px;\r\n\tmargin-bottom : -1px;\r\n\tbackground-position : 100% -150px;\r\n}\r\n\r\n/* bottom tabs */\r\n\r\n.dojoTabLabels-bottom {\r\n\tposition : relative;\r\n\tbottom : 0px;\r\n\tleft : 0px;\r\n\toverflow : visible;\r\n\tmargin-top : -1px;\r\n\twidth : 100%;\r\n\tz-index: 2;\r\n}\r\n\r\n.dojoTabNoLayout.dojoTabLabels-bottom {\r\n\tposition : relative;\r\n}\r\n\r\n.dojoTabLabels-bottom .dojoTab {\r\n\tborder-top :  1px solid #aaaaaa;\r\n\tborder-bottom : 0;\r\n\tbackground : url(images/tab_bot_left.gif) no-repeat left bottom;\r\n}\r\n\r\n.dojoTabLabels-bottom .dojoTab div {\r\n\tbackground : url(images/tab_bot_right.gif) no-repeat right bottom;\r\n}\r\n\r\n.dojoTabLabels-bottom .dojoTab.current {\r\n\tborder-top : 0;\r\n\tbackground : url(images/tab_bot_left_curr.gif) no-repeat left bottom;\r\n}\r\n\r\n.dojoTabLabels-bottom .dojoTab.current div {\r\n\tpadding-top : 4px;\r\n\tbackground : url(images/tab_bot_right_curr.gif) no-repeat right bottom;\r\n}\r\n\r\n/* right-h tabs */\r\n\r\n.dojoTabLabels-right-h {\r\n\toverflow : visible;\r\n\tmargin-left : -1px;\r\n\tz-index: 2;\r\n}\r\n\r\n.dojoTabLabels-right-h .dojoTab {\r\n\tpadding-left : 0;\r\n\tborder-left :  1px solid #aaaaaa;\r\n\tborder-bottom : 0;\r\n\tbackground : url(images/tab_bot_right.gif) no-repeat right bottom;\r\n\tfloat : none;\r\n}\r\n\r\n.dojoTabLabels-right-h .dojoTab div {\r\n\tpadding : 4px 15px 4px 15px;\r\n}\r\n\r\n.dojoTabLabels-right-h .dojoTab.current {\r\n\tborder-left :  0;\r\n\tborder-bottom :  1px solid #aaaaaa;\r\n}\r\n\r\n/* left-h tabs */\r\n\r\n.dojoTabLabels-left-h {\r\n\toverflow : visible;\r\n\tmargin-right : -1px;\r\n\tz-index: 2;\r\n}\r\n\r\n.dojoTabLabels-left-h .dojoTab {\r\n\tborder-right :  1px solid #aaaaaa;\r\n\tborder-bottom : 0;\r\n\tfloat : none;\r\n\tbackground : url(images/tab_top_left.gif) no-repeat left top;\r\n}\r\n\r\n.dojoTabLabels-left-h .dojoTab.current {\r\n\tborder-right : 0;\r\n\tborder-bottom :  1px solid #aaaaaa;\r\n\tpadding-bottom : 0;\r\n\tbackground : url(images/tab_top_left.gif) no-repeat 0 -150px;\r\n}\r\n\r\n.dojoTabLabels-left-h .dojoTab div {\r\n\tbackground : 0;\r\n\tborder-bottom :  1px solid #aaaaaa;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TabContainer.css"),selectedTab:"",postMixInProperties:function(){
if(this.selectedTab){
dojo.deprecated("selectedTab deprecated, use selectedChild instead, will be removed in","0.5");
this.selectedChild=this.selectedTab;
}
if(this.closeButton!="none"){
dojo.deprecated("closeButton deprecated, use closable='true' on each child instead, will be removed in","0.5");
}
dojo.widget.TabContainer.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
this.tablist=dojo.widget.createWidget("TabController",{id:this.widgetId+"_tablist",labelPosition:this.labelPosition,doLayout:this.doLayout,containerId:this.widgetId},this.tablistNode);
dojo.widget.TabContainer.superclass.fillInTemplate.apply(this,arguments);
},postCreate:function(args,frag){
dojo.widget.TabContainer.superclass.postCreate.apply(this,arguments);
this.onResized();
},_setupChild:function(tab){
if(this.closeButton=="tab"||this.closeButton=="pane"){
tab.closable=true;
}
dojo.html.addClass(tab.domNode,"dojoTabPane");
dojo.widget.TabContainer.superclass._setupChild.apply(this,arguments);
},onResized:function(){
if(!this.doLayout){
return;
}
var _e84=this.labelPosition.replace(/-h/,"");
var _e85=[{domNode:this.tablist.domNode,layoutAlign:_e84},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_e85);
if(this.selectedChildWidget){
var _e86=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_e86.width,_e86.height);
}
},selectTab:function(tab,_e88){
dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");
this.selectChild(tab,_e88);
},onKey:function(e){
if(e.keyCode==e.KEY_UP_ARROW&&e.ctrlKey){
var _e8a=this.correspondingTabButton||this.selectedTabWidget.tabButton;
_e8a.focus();
dojo.event.browser.stopEvent(e);
}else{
if(e.keyCode==e.KEY_DELETE&&e.altKey){
if(this.selectedChildWidget.closable){
this.closeChild(this.selectedChildWidget);
dojo.event.browser.stopEvent(e);
}
}
}
},destroy:function(){
this.tablist.destroy();
dojo.widget.TabContainer.superclass.destroy.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.TabController",dojo.widget.PageController,{templateString:"<div wairole='tablist' dojoAttachEvent='onKey'></div>",labelPosition:"top",doLayout:true,"class":"",buttonWidget:"TabButton",postMixInProperties:function(){
if(!this["class"]){
this["class"]="dojoTabLabels-"+this.labelPosition+(this.doLayout?"":" dojoTabNoLayout");
}
dojo.widget.TabController.superclass.postMixInProperties.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.TabButton",dojo.widget.PageButton,{templateString:"<div class='dojoTab' dojoAttachEvent='onClick'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<span dojoAttachPoint='closeButtonNode' class='close closeImage' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onMouseOver:onCloseButtonMouseOver; onMouseOut:onCloseButtonMouseOut; onClick:onCloseButtonClick'></span>"+"</div>"+"</div>",postMixInProperties:function(){
this.closeButtonStyle=this.closeButton?"":"display: none";
dojo.widget.TabButton.superclass.postMixInProperties.apply(this,arguments);
},fillInTemplate:function(){
dojo.html.disableSelection(this.titleNode);
dojo.widget.TabButton.superclass.fillInTemplate.apply(this,arguments);
},onCloseButtonClick:function(evt){
evt.stopPropagation();
dojo.widget.TabButton.superclass.onCloseButtonClick.apply(this,arguments);
}});
dojo.widget.defineWidget("dojo.widget.a11y.TabButton",dojo.widget.TabButton,{imgPath:dojo.uri.moduleUri("dojo.widget","templates/images/tab_close.gif"),templateString:"<div class='dojoTab' dojoAttachEvent='onClick;onKey'>"+"<div dojoAttachPoint='innerDiv'>"+"<span dojoAttachPoint='titleNode' tabIndex='-1' waiRole='tab'>${this.label}</span>"+"<img class='close' src='${this.imgPath}' alt='[x]' style='${this.closeButtonStyle}'"+"    dojoAttachEvent='onClick:onCloseButtonClick'>"+"</div>"+"</div>"});
dojo.provide("dojo.widget.Tooltip");
dojo.widget.defineWidget("dojo.widget.Tooltip",[dojo.widget.ContentPane,dojo.widget.PopupContainerBase],{caption:"",showDelay:500,hideDelay:100,connectId:"",templateCssString:".dojoTooltip {\r\n\tborder: solid black 1px;\r\n\tbackground: beige;\r\n\tcolor: black;\r\n\tposition: absolute;\r\n\tfont-size: small;\r\n\tpadding: 2px 2px 2px 2px;\r\n\tz-index: 10;\r\n\tdisplay: block;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TooltipTemplate.css"),fillInTemplate:function(args,frag){
if(this.caption!=""){
this.domNode.appendChild(document.createTextNode(this.caption));
}
this._connectNode=dojo.byId(this.connectId);
dojo.widget.Tooltip.superclass.fillInTemplate.call(this,args,frag);
this.addOnLoad(this,"_loadedContent");
dojo.html.addClass(this.domNode,"dojoTooltip");
var _e8e=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_e8e);
this.applyPopupBasicStyle();
},postCreate:function(args,frag){
dojo.event.connect(this._connectNode,"onmouseover",this,"_onMouseOver");
dojo.widget.Tooltip.superclass.postCreate.call(this,args,frag);
},_onMouseOver:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(!this._tracking){
dojo.event.connect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=true;
}
this._onHover(e);
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
if(dojo.html.overElement(this._connectNode,e)||dojo.html.overElement(this.domNode,e)){
this._onHover(e);
}else{
this._onUnHover(e);
}
},_onHover:function(e){
if(this._hover){
return;
}
this._hover=true;
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
if(!this.isShowingNow&&!this._showTimer){
this._showTimer=setTimeout(dojo.lang.hitch(this,"open"),this.showDelay);
}
},_onUnHover:function(e){
if(!this._hover){
return;
}
this._hover=false;
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this.isShowingNow&&!this._hideTimer){
this._hideTimer=setTimeout(dojo.lang.hitch(this,"close"),this.hideDelay);
}
if(!this.isShowingNow){
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
}
},open:function(){
if(this.isShowingNow){
return;
}
dojo.widget.PopupContainerBase.prototype.open.call(this,this._mouse.x,this._mouse.y,null,[this._mouse.x,this._mouse.y],"TL,TR,BL,BR",[10,15]);
},close:function(){
if(this.isShowingNow){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
if(this._hideTimer){
clearTimeout(this._hideTimer);
delete this._hideTimer;
}
dojo.event.disconnect(document.documentElement,"onmousemove",this,"_onMouseMove");
this._tracking=false;
dojo.widget.PopupContainerBase.prototype.close.call(this);
}
},_position:function(){
this.move(this._mouse.x,this._mouse.y,[10,15],"TL,TR,BL,BR");
},_loadedContent:function(){
if(this.isShowingNow){
this._position();
}
},checkSize:function(){
},uninitialize:function(){
this.close();
dojo.event.disconnect(this._connectNode,"onmouseover",this,"_onMouseOver");
}});
dojo.provide("dojo.widget.TreeNode");
dojo.widget.defineWidget("dojo.widget.TreeNode",dojo.widget.HtmlWidget,function(){
this.actionsDisabled=[];
},{widgetType:"TreeNode",loadStates:{UNCHECKED:"UNCHECKED",LOADING:"LOADING",LOADED:"LOADED"},actions:{MOVE:"MOVE",REMOVE:"REMOVE",EDIT:"EDIT",ADDCHILD:"ADDCHILD"},isContainer:true,lockLevel:0,templateString:("<div class=\"dojoTreeNode\"> "+"<span treeNode=\"${this.widgetId}\" class=\"dojoTreeNodeLabel\" dojoAttachPoint=\"labelNode\"> "+"\t\t<span dojoAttachPoint=\"titleNode\" dojoAttachEvent=\"onClick: onTitleClick\" class=\"dojoTreeNodeLabelTitle\">${this.title}</span> "+"</span> "+"<span class=\"dojoTreeNodeAfterLabel\" dojoAttachPoint=\"afterLabelNode\">${this.afterLabel}</span> "+"<div dojoAttachPoint=\"containerNode\" style=\"display:none\"></div> "+"</div>").replace(/(>|<)\s+/g,"$1"),childIconSrc:"",childIconFolderSrc:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/closed.gif"),childIconDocumentSrc:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/document.gif"),childIcon:null,isTreeNode:true,objectId:"",afterLabel:"",afterLabelNode:null,expandIcon:null,title:"",object:"",isFolder:false,labelNode:null,titleNode:null,imgs:null,expandLevel:"",tree:null,depth:0,isExpanded:false,state:null,domNodeInitialized:false,isFirstChild:function(){
return this.getParentIndex()==0?true:false;
},isLastChild:function(){
return this.getParentIndex()==this.parent.children.length-1?true:false;
},lock:function(){
return this.tree.lock.apply(this,arguments);
},unlock:function(){
return this.tree.unlock.apply(this,arguments);
},isLocked:function(){
return this.tree.isLocked.apply(this,arguments);
},cleanLock:function(){
return this.tree.cleanLock.apply(this,arguments);
},actionIsDisabled:function(_e95){
var _e96=this;
var _e97=false;
if(this.tree.strictFolders&&_e95==this.actions.ADDCHILD&&!this.isFolder){
_e97=true;
}
if(dojo.lang.inArray(_e96.actionsDisabled,_e95)){
_e97=true;
}
if(this.isLocked()){
_e97=true;
}
return _e97;
},getInfo:function(){
var info={widgetId:this.widgetId,objectId:this.objectId,index:this.getParentIndex(),isFolder:this.isFolder};
return info;
},initialize:function(args,frag){
this.state=this.loadStates.UNCHECKED;
for(var i=0;i<this.actionsDisabled.length;i++){
this.actionsDisabled[i]=this.actionsDisabled[i].toUpperCase();
}
this.expandLevel=parseInt(this.expandLevel);
},adjustDepth:function(_e9c){
for(var i=0;i<this.children.length;i++){
this.children[i].adjustDepth(_e9c);
}
this.depth+=_e9c;
if(_e9c>0){
for(var i=0;i<_e9c;i++){
var img=this.tree.makeBlankImg();
this.imgs.unshift(img);
dojo.html.insertBefore(this.imgs[0],this.domNode.firstChild);
}
}
if(_e9c<0){
for(var i=0;i<-_e9c;i++){
this.imgs.shift();
dojo.html.removeNode(this.domNode.firstChild);
}
}
},markLoading:function(){
this._markLoadingSavedIcon=this.expandIcon.src;
this.expandIcon.src=this.tree.expandIconSrcLoading;
},unMarkLoading:function(){
if(!this._markLoadingSavedIcon){
return;
}
var im=new Image();
im.src=this.tree.expandIconSrcLoading;
if(this.expandIcon.src==im.src){
this.expandIcon.src=this._markLoadingSavedIcon;
}
this._markLoadingSavedIcon=null;
},setFolder:function(){
dojo.event.connect(this.expandIcon,"onclick",this,"onTreeClick");
this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus;
this.isFolder=true;
},createDOMNode:function(tree,_ea1){
this.tree=tree;
this.depth=_ea1;
this.imgs=[];
for(var i=0;i<this.depth+1;i++){
var img=this.tree.makeBlankImg();
this.domNode.insertBefore(img,this.labelNode);
this.imgs.push(img);
}
this.expandIcon=this.imgs[this.imgs.length-1];
this.childIcon=this.tree.makeBlankImg();
this.imgs.push(this.childIcon);
dojo.html.insertBefore(this.childIcon,this.titleNode);
if(this.children.length||this.isFolder){
this.setFolder();
}else{
this.state=this.loadStates.LOADED;
}
dojo.event.connect(this.childIcon,"onclick",this,"onIconClick");
for(var i=0;i<this.children.length;i++){
this.children[i].parent=this;
var node=this.children[i].createDOMNode(this.tree,this.depth+1);
this.containerNode.appendChild(node);
}
if(this.children.length){
this.state=this.loadStates.LOADED;
}
this.updateIcons();
this.domNodeInitialized=true;
dojo.event.topic.publish(this.tree.eventNames.createDOMNode,{source:this});
return this.domNode;
},onTreeClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.treeClick,{source:this,event:e});
},onIconClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.iconClick,{source:this,event:e});
},onTitleClick:function(e){
dojo.event.topic.publish(this.tree.eventNames.titleClick,{source:this,event:e});
},markSelected:function(){
dojo.html.addClass(this.titleNode,"dojoTreeNodeLabelSelected");
},unMarkSelected:function(){
dojo.html.removeClass(this.titleNode,"dojoTreeNodeLabelSelected");
},updateExpandIcon:function(){
if(this.isFolder){
this.expandIcon.src=this.isExpanded?this.tree.expandIconSrcMinus:this.tree.expandIconSrcPlus;
}else{
this.expandIcon.src=this.tree.blankIconSrc;
}
},updateExpandGrid:function(){
if(this.tree.showGrid){
if(this.depth){
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT);
}else{
if(this.isFirstChild()){
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcX:this.tree.gridIconSrcY);
}else{
this.setGridImage(-2,this.isLastChild()?this.tree.gridIconSrcL:this.tree.gridIconSrcT);
}
}
}else{
this.setGridImage(-2,this.tree.blankIconSrc);
}
},updateChildGrid:function(){
if((this.depth||this.tree.showRootGrid)&&this.tree.showGrid){
this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcP:this.tree.gridIconSrcC);
}else{
if(this.tree.showGrid&&!this.tree.showRootGrid){
this.setGridImage(-1,(this.children.length&&this.isExpanded)?this.tree.gridIconSrcZ:this.tree.blankIconSrc);
}else{
this.setGridImage(-1,this.tree.blankIconSrc);
}
}
},updateParentGrid:function(){
var _ea8=this.parent;
for(var i=0;i<this.depth;i++){
var idx=this.imgs.length-(3+i);
var img=(this.tree.showGrid&&!_ea8.isLastChild())?this.tree.gridIconSrcV:this.tree.blankIconSrc;
this.setGridImage(idx,img);
_ea8=_ea8.parent;
}
},updateExpandGridColumn:function(){
if(!this.tree.showGrid){
return;
}
var _eac=this;
var icon=this.isLastChild()?this.tree.blankIconSrc:this.tree.gridIconSrcV;
dojo.lang.forEach(_eac.getDescendants(),function(node){
node.setGridImage(_eac.depth,icon);
});
this.updateExpandGrid();
},updateIcons:function(){
this.imgs[0].style.display=this.tree.showRootGrid?"inline":"none";
this.buildChildIcon();
this.updateExpandGrid();
this.updateChildGrid();
this.updateParentGrid();
dojo.profile.stop("updateIcons");
},buildChildIcon:function(){
if(this.childIconSrc){
this.childIcon.src=this.childIconSrc;
}
this.childIcon.style.display=this.childIconSrc?"inline":"none";
},setGridImage:function(idx,src){
if(idx<0){
idx=this.imgs.length+idx;
}
this.imgs[idx].style.backgroundImage="url("+src+")";
},updateIconTree:function(){
this.tree.updateIconTree.call(this);
},expand:function(){
if(this.isExpanded){
return;
}
if(this.children.length){
this.showChildren();
}
this.isExpanded=true;
this.updateExpandIcon();
dojo.event.topic.publish(this.tree.eventNames.expand,{source:this});
},collapse:function(){
if(!this.isExpanded){
return;
}
this.hideChildren();
this.isExpanded=false;
this.updateExpandIcon();
dojo.event.topic.publish(this.tree.eventNames.collapse,{source:this});
},hideChildren:function(){
this.tree.toggleObj.hide(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onHide"));
if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){
dojo.dnd.dragManager.cacheTargetLocations();
}
},showChildren:function(){
this.tree.toggleObj.show(this.containerNode,this.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onShow"));
if(dojo.exists(dojo,"dnd.dragManager.dragObjects")&&dojo.dnd.dragManager.dragObjects.length){
dojo.dnd.dragManager.cacheTargetLocations();
}
},addChild:function(){
return this.tree.addChild.apply(this,arguments);
},doAddChild:function(){
return this.tree.doAddChild.apply(this,arguments);
},edit:function(_eb1){
dojo.lang.mixin(this,_eb1);
if(_eb1.title){
this.titleNode.innerHTML=this.title;
}
if(_eb1.afterLabel){
this.afterLabelNode.innerHTML=this.afterLabel;
}
if(_eb1.childIconSrc){
this.buildChildIcon();
}
},removeNode:function(){
return this.tree.removeNode.apply(this,arguments);
},doRemoveNode:function(){
return this.tree.doRemoveNode.apply(this,arguments);
},toString:function(){
return "["+this.widgetType+" Tree:"+this.tree+" ID:"+this.widgetId+" Title:"+this.title+"]";
}});
dojo.provide("dojo.dnd.TreeDragAndDrop");
dojo.dnd.TreeDragSource=function(node,_eb3,type,_eb5){
this.controller=_eb3;
this.treeNode=_eb5;
dojo.dnd.HtmlDragSource.call(this,node,type);
};
dojo.inherits(dojo.dnd.TreeDragSource,dojo.dnd.HtmlDragSource);
dojo.lang.extend(dojo.dnd.TreeDragSource,{onDragStart:function(){
var _eb6=dojo.dnd.HtmlDragSource.prototype.onDragStart.call(this);
_eb6.treeNode=this.treeNode;
_eb6.onDragStart=dojo.lang.hitch(_eb6,function(e){
this.savedSelectedNode=this.treeNode.tree.selector.selectedNode;
if(this.savedSelectedNode){
this.savedSelectedNode.unMarkSelected();
}
var _eb8=dojo.dnd.HtmlDragObject.prototype.onDragStart.apply(this,arguments);
var _eb9=this.dragClone.getElementsByTagName("img");
for(var i=0;i<_eb9.length;i++){
_eb9.item(i).style.backgroundImage="url()";
}
return _eb8;
});
_eb6.onDragEnd=function(e){
if(this.savedSelectedNode){
this.savedSelectedNode.markSelected();
}
return dojo.dnd.HtmlDragObject.prototype.onDragEnd.apply(this,arguments);
};
return _eb6;
},onDragEnd:function(e){
var res=dojo.dnd.HtmlDragSource.prototype.onDragEnd.call(this,e);
return res;
}});
dojo.dnd.TreeDropTarget=function(_ebe,_ebf,type,_ec1){
this.treeNode=_ec1;
this.controller=_ebf;
dojo.dnd.HtmlDropTarget.apply(this,[_ebe,type]);
};
dojo.inherits(dojo.dnd.TreeDropTarget,dojo.dnd.HtmlDropTarget);
dojo.lang.extend(dojo.dnd.TreeDropTarget,{autoExpandDelay:1500,autoExpandTimer:null,position:null,indicatorStyle:"2px black solid",showIndicator:function(_ec2){
if(this.position==_ec2){
return;
}
this.hideIndicator();
this.position=_ec2;
if(_ec2=="before"){
this.treeNode.labelNode.style.borderTop=this.indicatorStyle;
}else{
if(_ec2=="after"){
this.treeNode.labelNode.style.borderBottom=this.indicatorStyle;
}else{
if(_ec2=="onto"){
this.treeNode.markSelected();
}
}
}
},hideIndicator:function(){
this.treeNode.labelNode.style.borderBottom="";
this.treeNode.labelNode.style.borderTop="";
this.treeNode.unMarkSelected();
this.position=null;
},onDragOver:function(e){
var _ec4=dojo.dnd.HtmlDropTarget.prototype.onDragOver.apply(this,arguments);
if(_ec4&&this.treeNode.isFolder&&!this.treeNode.isExpanded){
this.setAutoExpandTimer();
}
return _ec4;
},accepts:function(_ec5){
var _ec6=dojo.dnd.HtmlDropTarget.prototype.accepts.apply(this,arguments);
if(!_ec6){
return false;
}
var _ec7=_ec5[0].treeNode;
if(dojo.lang.isUndefined(_ec7)||!_ec7||!_ec7.isTreeNode){
dojo.raise("Source is not TreeNode or not found");
}
if(_ec7===this.treeNode){
return false;
}
return true;
},setAutoExpandTimer:function(){
var _ec8=this;
var _ec9=function(){
if(dojo.dnd.dragManager.currentDropTarget===_ec8){
_ec8.controller.expand(_ec8.treeNode);
}
};
this.autoExpandTimer=dojo.lang.setTimeout(_ec9,_ec8.autoExpandDelay);
},getDNDMode:function(){
return this.treeNode.tree.DNDMode;
},getAcceptPosition:function(e,_ecb){
var _ecc=this.getDNDMode();
if(_ecc&dojo.widget.Tree.prototype.DNDModes.ONTO&&!(!this.treeNode.actionIsDisabled(dojo.widget.TreeNode.prototype.actions.ADDCHILD)&&_ecb.parent!==this.treeNode&&this.controller.canMove(_ecb,this.treeNode))){
_ecc&=~dojo.widget.Tree.prototype.DNDModes.ONTO;
}
var _ecd=this.getPosition(e,_ecc);
if(_ecd=="onto"||(!this.isAdjacentNode(_ecb,_ecd)&&this.controller.canMove(_ecb,this.treeNode.parent))){
return _ecd;
}else{
return false;
}
},onDragOut:function(e){
this.clearAutoExpandTimer();
this.hideIndicator();
},clearAutoExpandTimer:function(){
if(this.autoExpandTimer){
clearTimeout(this.autoExpandTimer);
this.autoExpandTimer=null;
}
},onDragMove:function(e,_ed0){
var _ed1=_ed0[0].treeNode;
var _ed2=this.getAcceptPosition(e,_ed1);
if(_ed2){
this.showIndicator(_ed2);
}
},isAdjacentNode:function(_ed3,_ed4){
if(_ed3===this.treeNode){
return true;
}
if(_ed3.getNextSibling()===this.treeNode&&_ed4=="before"){
return true;
}
if(_ed3.getPreviousSibling()===this.treeNode&&_ed4=="after"){
return true;
}
return false;
},getPosition:function(e,_ed6){
var node=dojo.byId(this.treeNode.labelNode);
var _ed8=e.pageY||e.clientY+dojo.body().scrollTop;
var _ed9=dojo.html.getAbsolutePosition(node).y;
var _eda=dojo.html.getBorderBox(node).height;
var relY=_ed8-_ed9;
var p=relY/_eda;
var _edd="";
if(_ed6&dojo.widget.Tree.prototype.DNDModes.ONTO&&_ed6&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.3){
_edd="before";
}else{
if(p<=0.7){
_edd="onto";
}else{
_edd="after";
}
}
}else{
if(_ed6&dojo.widget.Tree.prototype.DNDModes.BETWEEN){
if(p<=0.5){
_edd="before";
}else{
_edd="after";
}
}else{
if(_ed6&dojo.widget.Tree.prototype.DNDModes.ONTO){
_edd="onto";
}
}
}
return _edd;
},getTargetParentIndex:function(_ede,_edf){
var _ee0=_edf=="before"?this.treeNode.getParentIndex():this.treeNode.getParentIndex()+1;
if(this.treeNode.parent===_ede.parent&&this.treeNode.getParentIndex()>_ede.getParentIndex()){
_ee0--;
}
return _ee0;
},onDrop:function(e){
var _ee2=this.position;
this.onDragOut(e);
var _ee3=e.dragObject.treeNode;
if(!dojo.lang.isObject(_ee3)){
dojo.raise("TreeNode not found in dragObject");
}
if(_ee2=="onto"){
return this.controller.move(_ee3,this.treeNode,0);
}else{
var _ee4=this.getTargetParentIndex(_ee3,_ee2);
return this.controller.move(_ee3,this.treeNode.parent,_ee4);
}
}});
dojo.dnd.TreeDNDController=function(_ee5){
this.treeController=_ee5;
this.dragSources={};
this.dropTargets={};
};
dojo.lang.extend(dojo.dnd.TreeDNDController,{listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.subscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.subscribe(tree.eventNames.moveTo,this,"onMoveTo");
dojo.event.topic.subscribe(tree.eventNames.addChild,this,"onAddChild");
dojo.event.topic.subscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.unsubscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.unsubscribe(tree.eventNames.moveTo,this,"onMoveTo");
dojo.event.topic.unsubscribe(tree.eventNames.addChild,this,"onAddChild");
dojo.event.topic.unsubscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},onTreeDestroy:function(_ee8){
this.unlistenTree(_ee8.source);
},onCreateDOMNode:function(_ee9){
this.registerDNDNode(_ee9.source);
},onAddChild:function(_eea){
this.registerDNDNode(_eea.child);
},onMoveFrom:function(_eeb){
var _eec=this;
dojo.lang.forEach(_eeb.child.getDescendants(),function(node){
_eec.unregisterDNDNode(node);
});
},onMoveTo:function(_eee){
var _eef=this;
dojo.lang.forEach(_eee.child.getDescendants(),function(node){
_eef.registerDNDNode(node);
});
},registerDNDNode:function(node){
if(!node.tree.DNDMode){
return;
}
var _ef2=null;
var _ef3=null;
if(!node.actionIsDisabled(node.actions.MOVE)){
var _ef2=new dojo.dnd.TreeDragSource(node.labelNode,this,node.tree.widgetId,node);
this.dragSources[node.widgetId]=_ef2;
}
var _ef3=new dojo.dnd.TreeDropTarget(node.labelNode,this.treeController,node.tree.DNDAcceptTypes,node);
this.dropTargets[node.widgetId]=_ef3;
},unregisterDNDNode:function(node){
if(this.dragSources[node.widgetId]){
dojo.dnd.dragManager.unregisterDragSource(this.dragSources[node.widgetId]);
delete this.dragSources[node.widgetId];
}
if(this.dropTargets[node.widgetId]){
dojo.dnd.dragManager.unregisterDropTarget(this.dropTargets[node.widgetId]);
delete this.dropTargets[node.widgetId];
}
}});
dojo.provide("dojo.widget.TreeBasicController");
dojo.widget.defineWidget("dojo.widget.TreeBasicController",dojo.widget.HtmlWidget,{widgetType:"TreeBasicController",DNDController:"",dieWithTree:false,initialize:function(args,frag){
if(this.DNDController=="create"){
this.DNDController=new dojo.dnd.TreeDNDController(this);
}
},listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.subscribe(tree.eventNames.treeClick,this,"onTreeClick");
dojo.event.topic.subscribe(tree.eventNames.treeCreate,this,"onTreeCreate");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
if(this.DNDController){
this.DNDController.listenTree(tree);
}
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeClick,this,"onTreeClick");
dojo.event.topic.unsubscribe(tree.eventNames.treeCreate,this,"onTreeCreate");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
},onTreeDestroy:function(_ef9){
var tree=_ef9.source;
this.unlistenTree(tree);
if(this.dieWithTree){
this.destroy();
}
},onCreateDOMNode:function(_efb){
var node=_efb.source;
if(node.expandLevel>0){
this.expandToLevel(node,node.expandLevel);
}
},onTreeCreate:function(_efd){
var tree=_efd.source;
var _eff=this;
if(tree.expandLevel){
dojo.lang.forEach(tree.children,function(_f00){
_eff.expandToLevel(_f00,tree.expandLevel-1);
});
}
},expandToLevel:function(node,_f02){
if(_f02==0){
return;
}
var _f03=node.children;
var _f04=this;
var _f05=function(node,_f07){
this.node=node;
this.expandLevel=_f07;
this.process=function(){
for(var i=0;i<this.node.children.length;i++){
var _f09=node.children[i];
_f04.expandToLevel(_f09,this.expandLevel);
}
};
};
var h=new _f05(node,_f02-1);
this.expand(node,false,h,h.process);
},onTreeClick:function(_f0b){
var node=_f0b.source;
if(node.isLocked()){
return false;
}
if(node.isExpanded){
this.collapse(node);
}else{
this.expand(node);
}
},expand:function(node,sync,_f0f,_f10){
node.expand();
if(_f10){
_f10.apply(_f0f,[node]);
}
},collapse:function(node){
node.collapse();
},canMove:function(_f12,_f13){
if(_f12.actionIsDisabled(_f12.actions.MOVE)){
return false;
}
if(_f12.parent!==_f13&&_f13.actionIsDisabled(_f13.actions.ADDCHILD)){
return false;
}
var node=_f13;
while(node.isTreeNode){
if(node===_f12){
return false;
}
node=node.parent;
}
return true;
},move:function(_f15,_f16,_f17){
if(!this.canMove(_f15,_f16)){
return false;
}
var _f18=this.doMove(_f15,_f16,_f17);
if(!_f18){
return _f18;
}
if(_f16.isTreeNode){
this.expand(_f16);
}
return _f18;
},doMove:function(_f19,_f1a,_f1b){
_f19.tree.move(_f19,_f1a,_f1b);
return true;
},canRemoveNode:function(_f1c){
if(_f1c.actionIsDisabled(_f1c.actions.REMOVE)){
return false;
}
return true;
},removeNode:function(node,_f1e,_f1f){
if(!this.canRemoveNode(node)){
return false;
}
return this.doRemoveNode(node,_f1e,_f1f);
},doRemoveNode:function(node,_f21,_f22){
node.tree.removeNode(node);
if(_f22){
_f22.apply(dojo.lang.isUndefined(_f21)?this:_f21,[node]);
}
},canCreateChild:function(_f23,_f24,data){
if(_f23.actionIsDisabled(_f23.actions.ADDCHILD)){
return false;
}
return true;
},createChild:function(_f26,_f27,data,_f29,_f2a){
if(!this.canCreateChild(_f26,_f27,data)){
return false;
}
return this.doCreateChild.apply(this,arguments);
},doCreateChild:function(_f2b,_f2c,data,_f2e,_f2f){
var _f30=data.widgetType?data.widgetType:"TreeNode";
var _f31=dojo.widget.createWidget(_f30,data);
_f2b.addChild(_f31,_f2c);
this.expand(_f2b);
if(_f2f){
_f2f.apply(_f2e,[_f31]);
}
return _f31;
}});
dojo.provide("dojo.widget.TreeSelector");
dojo.widget.defineWidget("dojo.widget.TreeSelector",dojo.widget.HtmlWidget,function(){
this.eventNames={};
this.listenedTrees=[];
},{widgetType:"TreeSelector",selectedNode:null,dieWithTree:false,eventNamesDefault:{select:"select",destroy:"destroy",deselect:"deselect",dblselect:"dblselect"},initialize:function(){
for(var name in this.eventNamesDefault){
if(dojo.lang.isUndefined(this.eventNames[name])){
this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name];
}
}
},destroy:function(){
dojo.event.topic.publish(this.eventNames.destroy,{source:this});
return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
},listenTree:function(tree){
dojo.event.topic.subscribe(tree.eventNames.titleClick,this,"select");
dojo.event.topic.subscribe(tree.eventNames.iconClick,this,"select");
dojo.event.topic.subscribe(tree.eventNames.collapse,this,"onCollapse");
dojo.event.topic.subscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.subscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
this.listenedTrees.push(tree);
},unlistenTree:function(tree){
dojo.event.topic.unsubscribe(tree.eventNames.titleClick,this,"select");
dojo.event.topic.unsubscribe(tree.eventNames.iconClick,this,"select");
dojo.event.topic.unsubscribe(tree.eventNames.collapse,this,"onCollapse");
dojo.event.topic.unsubscribe(tree.eventNames.moveFrom,this,"onMoveFrom");
dojo.event.topic.unsubscribe(tree.eventNames.removeNode,this,"onRemoveNode");
dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy");
for(var i=0;i<this.listenedTrees.length;i++){
if(this.listenedTrees[i]===tree){
this.listenedTrees.splice(i,1);
break;
}
}
},onTreeDestroy:function(_f36){
this.unlistenTree(_f36.source);
if(this.dieWithTree){
this.destroy();
}
},onCollapse:function(_f37){
if(!this.selectedNode){
return;
}
var node=_f37.source;
var _f39=this.selectedNode.parent;
while(_f39!==node&&_f39.isTreeNode){
_f39=_f39.parent;
}
if(_f39.isTreeNode){
this.deselect();
}
},select:function(_f3a){
var node=_f3a.source;
var e=_f3a.event;
if(this.selectedNode===node){
if(e.ctrlKey||e.shiftKey||e.metaKey){
this.deselect();
return;
}
dojo.event.topic.publish(this.eventNames.dblselect,{node:node});
return;
}
if(this.selectedNode){
this.deselect();
}
this.doSelect(node);
dojo.event.topic.publish(this.eventNames.select,{node:node});
},onMoveFrom:function(_f3d){
if(_f3d.child!==this.selectedNode){
return;
}
if(!dojo.lang.inArray(this.listenedTrees,_f3d.newTree)){
this.deselect();
}
},onRemoveNode:function(_f3e){
if(_f3e.child!==this.selectedNode){
return;
}
this.deselect();
},doSelect:function(node){
node.markSelected();
this.selectedNode=node;
},deselect:function(){
var node=this.selectedNode;
this.selectedNode=null;
node.unMarkSelected();
dojo.event.topic.publish(this.eventNames.deselect,{node:node});
}});
dojo.provide("dojo.widget.Tree");
dojo.widget.defineWidget("dojo.widget.Tree",dojo.widget.HtmlWidget,function(){
this.eventNames={};
this.tree=this;
this.DNDAcceptTypes=[];
this.actionsDisabled=[];
},{widgetType:"Tree",eventNamesDefault:{createDOMNode:"createDOMNode",treeCreate:"treeCreate",treeDestroy:"treeDestroy",treeClick:"treeClick",iconClick:"iconClick",titleClick:"titleClick",moveFrom:"moveFrom",moveTo:"moveTo",addChild:"addChild",removeNode:"removeNode",expand:"expand",collapse:"collapse"},isContainer:true,DNDMode:"off",lockLevel:0,strictFolders:true,DNDModes:{BETWEEN:1,ONTO:2},DNDAcceptTypes:"",templateCssString:"\r\n.dojoTree {\r\n\tfont: caption;\r\n\tfont-size: 11px;\r\n\tfont-weight: normal;\r\n\toverflow: auto;\r\n}\r\n\r\n\r\n.dojoTreeNodeLabelTitle {\r\n\tpadding-left: 2px;\r\n\tcolor: WindowText;\r\n}\r\n\r\n.dojoTreeNodeLabel {\r\n\tcursor:hand;\r\n\tcursor:pointer;\r\n}\r\n\r\n.dojoTreeNodeLabelTitle:hover {\r\n\ttext-decoration: underline;\r\n}\r\n\r\n.dojoTreeNodeLabelSelected {\r\n\tbackground-color: Highlight;\r\n\tcolor: HighlightText;\r\n}\r\n\r\n.dojoTree div {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.dojoTree img, .dojoTreeNodeLabel img {\r\n\tvertical-align: middle;\r\n}\r\n\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/Tree.css"),templateString:"<div class=\"dojoTree\"></div>",isExpanded:true,isTree:true,objectId:"",controller:"",selector:"",menu:"",expandLevel:"",blankIconSrc:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_blank.gif"),gridIconSrcT:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_t.gif"),gridIconSrcL:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_l.gif"),gridIconSrcV:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_v.gif"),gridIconSrcP:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_p.gif"),gridIconSrcC:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_c.gif"),gridIconSrcX:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_x.gif"),gridIconSrcY:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_y.gif"),gridIconSrcZ:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_grid_z.gif"),expandIconSrcPlus:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_expand_plus.gif"),expandIconSrcMinus:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_expand_minus.gif"),expandIconSrcLoading:dojo.uri.moduleUri("dojo.widget","templates/images/Tree/treenode_loading.gif"),iconWidth:18,iconHeight:18,showGrid:true,showRootGrid:true,actionIsDisabled:function(_f41){
var _f42=this;
return dojo.lang.inArray(_f42.actionsDisabled,_f41);
},actions:{ADDCHILD:"ADDCHILD"},getInfo:function(){
var info={widgetId:this.widgetId,objectId:this.objectId};
return info;
},initializeController:function(){
if(this.controller!="off"){
if(this.controller){
this.controller=dojo.widget.byId(this.controller);
}else{
this.controller=dojo.widget.createWidget("TreeBasicController",{DNDController:(this.DNDMode?"create":""),dieWithTree:true});
}
this.controller.listenTree(this);
}else{
this.controller=null;
}
},initializeSelector:function(){
if(this.selector!="off"){
if(this.selector){
this.selector=dojo.widget.byId(this.selector);
}else{
this.selector=dojo.widget.createWidget("TreeSelector",{dieWithTree:true});
}
this.selector.listenTree(this);
}else{
this.selector=null;
}
},initialize:function(args,frag){
var _f46=this;
for(name in this.eventNamesDefault){
if(dojo.lang.isUndefined(this.eventNames[name])){
this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name];
}
}
for(var i=0;i<this.actionsDisabled.length;i++){
this.actionsDisabled[i]=this.actionsDisabled[i].toUpperCase();
}
if(this.DNDMode=="off"){
this.DNDMode=0;
}else{
if(this.DNDMode=="between"){
this.DNDMode=this.DNDModes.ONTO|this.DNDModes.BETWEEN;
}else{
if(this.DNDMode=="onto"){
this.DNDMode=this.DNDModes.ONTO;
}
}
}
this.expandLevel=parseInt(this.expandLevel);
this.initializeSelector();
this.initializeController();
if(this.menu){
this.menu=dojo.widget.byId(this.menu);
this.menu.listenTree(this);
}
this.containerNode=this.domNode;
},postCreate:function(){
this.createDOMNode();
},createDOMNode:function(){
dojo.html.disableSelection(this.domNode);
for(var i=0;i<this.children.length;i++){
this.children[i].parent=this;
var node=this.children[i].createDOMNode(this,0);
this.domNode.appendChild(node);
}
if(!this.showRootGrid){
for(var i=0;i<this.children.length;i++){
this.children[i].expand();
}
}
dojo.event.topic.publish(this.eventNames.treeCreate,{source:this});
},destroy:function(){
dojo.event.topic.publish(this.tree.eventNames.treeDestroy,{source:this});
return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments);
},addChild:function(_f4a,_f4b){
var _f4c={child:_f4a,index:_f4b,parent:this,domNodeInitialized:_f4a.domNodeInitialized};
this.doAddChild.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.addChild,_f4c);
},doAddChild:function(_f4d,_f4e){
if(dojo.lang.isUndefined(_f4e)){
_f4e=this.children.length;
}
if(!_f4d.isTreeNode){
dojo.raise("You can only add TreeNode widgets to a "+this.widgetType+" widget!");
return;
}
if(this.isTreeNode){
if(!this.isFolder){
this.setFolder();
}
}
var _f4f=this;
dojo.lang.forEach(_f4d.getDescendants(),function(elem){
elem.tree=_f4f.tree;
});
_f4d.parent=this;
if(this.isTreeNode){
this.state=this.loadStates.LOADED;
}
if(_f4e<this.children.length){
dojo.html.insertBefore(_f4d.domNode,this.children[_f4e].domNode);
}else{
this.containerNode.appendChild(_f4d.domNode);
if(this.isExpanded&&this.isTreeNode){
this.showChildren();
}
}
this.children.splice(_f4e,0,_f4d);
if(_f4d.domNodeInitialized){
var d=this.isTreeNode?this.depth:-1;
_f4d.adjustDepth(d-_f4d.depth+1);
_f4d.updateIconTree();
}else{
_f4d.depth=this.isTreeNode?this.depth+1:0;
_f4d.createDOMNode(_f4d.tree,_f4d.depth);
}
var _f52=_f4d.getPreviousSibling();
if(_f4d.isLastChild()&&_f52){
_f52.updateExpandGridColumn();
}
},makeBlankImg:function(){
var img=document.createElement("img");
img.style.width=this.iconWidth+"px";
img.style.height=this.iconHeight+"px";
img.src=this.blankIconSrc;
img.style.verticalAlign="middle";
return img;
},updateIconTree:function(){
if(!this.isTree){
this.updateIcons();
}
for(var i=0;i<this.children.length;i++){
this.children[i].updateIconTree();
}
},toString:function(){
return "["+this.widgetType+" ID:"+this.widgetId+"]";
},move:function(_f55,_f56,_f57){
var _f58=_f55.parent;
var _f59=_f55.tree;
this.doMove.apply(this,arguments);
var _f56=_f55.parent;
var _f5a=_f55.tree;
var _f5b={oldParent:_f58,oldTree:_f59,newParent:_f56,newTree:_f5a,child:_f55};
dojo.event.topic.publish(_f59.eventNames.moveFrom,_f5b);
dojo.event.topic.publish(_f5a.eventNames.moveTo,_f5b);
},doMove:function(_f5c,_f5d,_f5e){
_f5c.parent.doRemoveNode(_f5c);
_f5d.doAddChild(_f5c,_f5e);
},removeNode:function(_f5f){
if(!_f5f.parent){
return;
}
var _f60=_f5f.tree;
var _f61=_f5f.parent;
var _f62=this.doRemoveNode.apply(this,arguments);
dojo.event.topic.publish(this.tree.eventNames.removeNode,{child:_f62,tree:_f60,parent:_f61});
return _f62;
},doRemoveNode:function(_f63){
if(!_f63.parent){
return;
}
var _f64=_f63.parent;
var _f65=_f64.children;
var _f66=_f63.getParentIndex();
if(_f66<0){
dojo.raise("Couldn't find node "+_f63+" for removal");
}
_f65.splice(_f66,1);
dojo.html.removeNode(_f63.domNode);
if(_f64.children.length==0&&!_f64.isTree){
_f64.containerNode.style.display="none";
}
if(_f66==_f65.length&&_f66>0){
_f65[_f66-1].updateExpandGridColumn();
}
if(_f64 instanceof dojo.widget.Tree&&_f66==0&&_f65.length>0){
_f65[0].updateExpandGrid();
}
_f63.parent=_f63.tree=null;
return _f63;
},markLoading:function(){
},unMarkLoading:function(){
},lock:function(){
!this.lockLevel&&this.markLoading();
this.lockLevel++;
},unlock:function(){
if(!this.lockLevel){
dojo.raise("unlock: not locked");
}
this.lockLevel--;
!this.lockLevel&&this.unMarkLoading();
},isLocked:function(){
var node=this;
while(true){
if(node.lockLevel){
return true;
}
if(node instanceof dojo.widget.Tree){
break;
}
node=node.parent;
}
return false;
},flushLock:function(){
this.lockLevel=0;
this.unMarkLoading();
}});
dojo.provide("wc.render.Context");
wc.render.contexts={};
wc.render.getContextById=function(id){
return wc.render.contexts[id];
};
wc.render.updateContext=function(id,_f6a){
wc.render.getContextById(id).update(_f6a);
};
wc.render.declareContext=function(id,_f6c,_f6d){
var _f6e=new wc.render.Context(id,_f6c,_f6d);
this.contexts[id]=_f6e;
return _f6e;
};
dojo.declare("wc.render.Context",null,{initializer:function(id,_f70,_f71){
this.id=id;
this.properties=_f70?_f70:{};
this.url=_f71;
this.contextChangedEventName=id+"/RenderContextChanged";
},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_f72){
if(!this.properties){
this.properties={};
}
if(this.url){
var _f73={};
for(var name in _f72){
var _f75=_f72[name];
if(dojo.lang.isUndefined(_f75)){
if(dojo.lang.isUndefined(_f73.clear)){
_f73.clear=[name];
}else{
_f73.clear.push(name);
}
}else{
_f73["set_"+name]=_f75;
}
}
dojo.io.bind({url:this.url,mimetype:"text/json",content:_f73,properties:this.properties,successEventName:this.contextChangedEventName,load:function(type,data,evt,_f79){
if(dojo.lang.isArray(data.renderContextChanges)){
for(var i=0;i<data.renderContextChanges.length;i++){
var name=data.renderContextChanges[i];
_f79.properties[name]=data[name];
}
}
dojo.event.topic.publish(this.successEventName,data);
},error:function(type,_f7d){
var _f7e=dojo.i18n.getLocalization("wc","common");
alert(_f7e.communicationError);
}});
}else{
var data={renderContextChanges:[]};
for(var name in _f72){
var _f75=_f72[name];
if(_f75!=this.properties[name]){
data.renderContextChanges.push(name);
if(dojo.lang.isUndefined(_f75)){
delete this.properties[name];
}else{
this.properties[name]=_f75;
data[name]=_f75;
}
}
}
dojo.event.topic.publish(this.contextChangedEventName,data);
}
}});
dojo.provide("wc.render.RefreshController");
wc.render.refreshControllers={};
wc.render.getRefreshControllerById=function(id){
return wc.render.refreshControllers[id];
};
wc.render.declareRefreshController=function(_f81){
var _f82=new wc.render.RefreshController(_f81);
this.refreshControllers[_f81.id]=_f82;
return _f82;
};
dojo.declare("wc.render.RefreshController",null,{initializer:function(_f83){
dojo.lang.mixin(this,_f83);
this.syncRCProperties();
if(dojo.lang.isFunction(this.renderContextChangedHandler)){
dojo.event.topic.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged");
}
if(dojo.lang.isFunction(this.modelChangedHandler)){
dojo.event.topic.subscribe("modelChanged",this,"modelChanged");
}
this.widgets={};
},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(_f84){
if(this.widgets[_f84.widgetId]){
dojo.debug("RefreshController.addWidget: duplicate widget ID "+_f84.widgetId);
}
this.widgets[_f84.widgetId]=_f84;
},removeWidget:function(_f85){
if(typeof this.widgets=="undefined"){
dojo.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");
return;
}
delete this.widgets[_f85.widgetId];
},syncRCProperties:function(){
if(this.renderContext){
var _f86={};
var rc=this.renderContext.properties;
for(var prop in rc){
_f86[prop]=rc[prop];
}
this.currentRCProperties=_f86;
}
},renderContextChanged:function(_f89){
for(var _f8a in this.widgets){
this.renderContextChangedHandler(_f89,this.widgets[_f8a]);
}
this.syncRCProperties();
},modelChanged:function(_f8b){
for(var _f8c in this.widgets){
this.modelChangedHandler(_f8b,this.widgets[_f8c]);
}
},refreshHandler:function(_f8d,data){
_f8d.setInnerHTML(data);
},refresh:function(_f8f,_f90){
var _f91=null;
if(this.formId){
_f91=document.getElementById(this.formId);
}
dojo.io.bind({url:this.url,mimetype:this.mimetype,formNode:_f91,content:_f90,load:function(type,data,evt){
var _f95=_f8f.controller;
_f95.refreshHandler(_f8f,data);
if(_f95.postRefreshHandler!=null){
_f95.postRefreshHandler(_f8f);
}
},error:function(type,_f97){
var _f98=dojo.i18n.getLocalization("wc","common");
alert(_f98.communicationError);
}});
},testForChangedRC:function(_f99){
var _f9a=false;
for(var i=0;i<_f99.length;i++){
var prop=_f99[i];
if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){
_f9a=true;
break;
}
}
return _f9a;
}});
dojo.provide("wc.render.common");
dojo.kwCompoundRequire({common:["wc.render.common"]});
dojo.provide("wc.render.*");
dojo.provide("wc.service.common");
wc.service.services={};
wc.service.getServiceById=function(id){
return wc.service.services[id];
};
wc.service.declare=function(_f9e){
var _f9f=new wc.service.Service(_f9e);
this.register(_f9f);
return _f9f;
};
wc.service.register=function(_fa0){
this.services[_fa0.id]=_fa0;
};
wc.service.invoke=function(_fa1,_fa2){
var _fa3=this.getServiceById(_fa1);
if(_fa3){
_fa3.invoke(_fa2);
}else{
dojo.debug("Attempt to invoke an unregistered service: "+_fa1);
}
};
dojo.declare("wc.service.Service",null,{initializer:function(_fa4){
dojo.lang.mixin(this,_fa4);
},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_fa5){
return true;
},validateForm:function(_fa6){
return true;
},successTest:function(_fa7){
return !_fa7.errorMessage&&!_fa7.errorMessageKey;
},successHandler:function(_fa8){
},failureHandler:function(_fa9){
var _faa=_fa9.errorMessage;
if(_faa){
alert(_faa);
}else{
_faa=_fa9.errorMessageKey;
if(_faa){
alert(_faa);
}else{
alert("Service request error.");
}
}
},invoke:function(_fab){
var _fac=true;
var _fad=null;
if(this.formId){
_fad=document.getElementById(this.formId);
}
if(_fad){
_fac=this.validateForm(_fad);
}
if(_fac){
_fac=this.validateParameters(_fab);
}
if(_fac){
dojo.io.bind({url:this.url,mimetype:"text/json",formNode:_fad,content:_fab,service:this,load:function(type,_faf,evt,_fb1){
var _fb2=_fb1.service;
_faf.serviceId=_fb2.id;
_faf.actionId=_fb2.actionId;
dojo.debug("Service response:");
for(var prop in _faf){
dojo.debug("  "+prop+"="+_faf[prop]);
}
if(_fb2.successTest(_faf)){
_fb2.successHandler(_faf);
dojo.event.topic.publish("modelChanged",_faf);
if(_fb2.actionId){
dojo.event.topic.publish("modelChanged/"+_fb2.actionId,_faf);
}
}else{
_fb2.failureHandler(_faf);
}
},error:function(type,_fb5){
var _fb6=dojo.i18n.getLocalization("wc","common");
alert(_fb6.communicationError);
}});
}
}});
dojo.kwCompoundRequire({common:["wc.service.common"]});
dojo.provide("wc.service.*");
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("wc.widget.*");
dojo.widget.manager.registerWidgetPackage("wc.widget");
dojo.provide("wc.widget.ProductQuickView");
dojo.provide("wc.widget.BaseContent");
dojo.provide("wc.widget.ToolTipContent");
dojo.widget.defineWidget("wc.widget.ProductQuickView",dojo.widget.HtmlWidget,{templateString:"<div dojoAttachPoint=\"containerNode\">\r\n<table dojoAttachPoint=\"DAPProductQuickViewTable\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"pqv_table\">\r\n<tr> \r\n\t<td class=\"pqv_img_view\">\r\n\t\t<div dojoAttachPoint = \"DAPCatalogEntryContainer\" style=\"display:block;width:auto;\">\r\n\t\t\t<a dojoAttachPoint = \"DAPCatalogEntryThumbnailImageLink\"  >\r\n\t\t\t\t<span>\r\n\t\t\t\t\t<img id = \"DAPCatalogEntryThumbnailImageConnectId\" dojoAttachPoint = \"DAPCatalogEntryThumbnailImage\"  alt=\"\" border=\"0\"/>\r\n\t\t\t\t</span>\r\n\t\t\t</a><div>\r\n\t\t\t<a dojoAttachPoint = \"DAPCatalogEntryNameLink\" >\r\n\t\t\t\t<span dojoAttachPoint = \"DAPCatalogEntryName\" class=\"pqv_productName\">\r\n\t\t\t\t</span>\r\n\t\t\t</a></div>\r\n\t\t\t<br/>\r\n\t\t\t<span dojoAttachPoint = \"DAPSKU\" class=\"pqv_text\"></span>\r\n\t\t\t<span dojoAttachPoint = \"DAPShortDescription\" class=\"pqv_text\"></span>\r\n\t\t\t<a dojoAttachPoint = \"DAPPriceImageLink\" ><img dojoAttachPoint = \"DAPPriceImage\"  alt='' width=\"1\" height=\"1\" border=\"0\" />\r\n\t\t\t</a>\r\n\t\t\t<span dojoAttachPoint = \"DAPPriceRange\" class=\"pqv_price\"></span>\r\n\t\t\t<span class=\"pqv_img_border\">\r\n\t\t\t\t\t<img dojoAttachPoint = \"DAPDiscountImage\"  border = \"0\"/>\r\n\t\t\t\t\t<a  dojoAttachPoint = \"DAPDiscountLink\"  class = \"pqv_discount\">\r\n\t\t\t\t\t<span dojoAttachPoint = \"DAPDiscountDetails\" class = \"pqv_discount\"></span>\r\n\t\t\t\t\t</a>\r\n\t\t\t</span>\r\n\t\t\t<span dojoAttachPoint = \"DAPAdditionalText\"></span>\r\n\t\t</div>\r\n\t</td>\r\n</tr>\r\n</table>\r\n</div>\r\n",templateCssString:"/**\r\n *-------------------------------------------------------------------\r\n * Licensed Materials - Property of IBM\r\n *\r\n * WebSphere Commerce\r\n *\r\n * (c) Copyright IBM Corp. 2007\r\n *\r\n * US Government Users Restricted Rights - Use, duplication or\r\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\r\n *\r\n *-------------------------------------------------------------------\r\n */\r\n \r\n\t.pqv_table {\r\n\t\tfont-family: Verdana, Arial,sans-serif; \r\n\t\tfont-size: 11px; \r\n\t\tcolor:#444444; \r\n\t\twidth: 100%;\r\n\t}\r\n\t.pqv_img_view {\r\n\t\ttext-align : center; \r\n\t\twidth:120px;\r\n\t\tdisplay:block;\r\n\t\tpadding-top:12px;\r\n\t\tpadding-bottom:10px;\r\n\t\tvertical-align:top;\r\n\t}\r\n\r\n\t.pqv_price {\r\n\t\tfont-size:  12px; \r\n\t\tcolor: #444444; \r\n\t\tfont-family: arial, helvetica, sans-serif; \r\n\t\ttext-align: right;\r\n\t}\r\n\r\n\t.pqv_discountPrice{\r\n\t\tfont-size:  9pt; \r\n\t\tcolor: #9B9B9B; \r\n\t\tfont-family: arial, helvetica, sans-serif;\r\n\t}\r\n\t.pqv_productName{\r\n\t\tfont-size:  11px; \r\n\t\tcolor: #427DBE; \r\n\t\tfont-family: Verdana, Arial,sans-serif;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\t.pqv_discount {\r\n\t\tfont-family:Verdana,Arial,sans-serif; \r\n\t\tfont-size:11px; \r\n\t\tfont-weight:bold; \r\n\t\tcolor:#427DBE; \r\n\t\tvertical-align:middle;\r\n\t}\r\n\t.pqv_text{\r\n\t\tcolor:#174D8A;\r\n\t\tfont-size: 11px;\r\n\t}\r\n",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickView.css"),isContainer:true,widgetType:"ProductQuickView",identifier:"",defaultContent:false,dragAndDrop:true,dragSourceProperties:"",CatalogEntryThumbnailImageLink:"",CatalogEntryThumbnailImageSrc:"",CatalogEntryThumbnailImageAlt:"",CatalogEntryNameLink:"",CatalogEntryName:"",PriceImageLink:"",PriceImageSrc:"",PriceRange:"",SKU:"",ShortDescription:"",DiscountImage:"",DiscountLink:"",DiscountDetails:"",AdditionalText:"",catentryId:"",dragSourceType:"*",additionalProperties:"",DAPCatalogEntryContainer:null,DAPCatalogEntryThumbnailImageLink:null,DAPCatalogEntryThumbnailImage:null,DAPCatalogEntryNameLink:null,DAPCatalogEntryName:null,DAPPriceImageLink:null,DAPPriceImage:null,DAPPriceRange:null,DAPSKU:null,DAPShortDescription:null,DAPDiscountImage:null,DAPDiscountLink:null,DAPDiscountDetails:null,DAPAdditionalText:null,DAPProductQuickViewTable:null,fillInTemplate:function(){
if(this.defaultContent){
this.DAPCatalogEntryContainer.style.display="block";
this.DAPCatalogEntryThumbnailImageLink.href=this.CatalogEntryThumbnailImageLink;
this.DAPCatalogEntryThumbnailImage.src=this.CatalogEntryThumbnailImageSrc;
this.DAPCatalogEntryThumbnailImage.alt=this.CatalogEntryThumbnailImageAlt;
this.DAPCatalogEntryThumbnailImage.id=this.catentryId;
this.DAPCatalogEntryNameLink.href=this.CatalogEntryNameLink;
this.DAPCatalogEntryName.innerHTML=this.CatalogEntryName;
this.DAPPriceImageLink.href=this.PriceImageLink;
this.DAPPriceImage.src=this.PriceImageSrc;
this.DAPPriceRange.innerHTML=this.insertWithBreak(this.PriceRange);
this.DAPSKU.innerHTML=this.insertWithBreak(this.SKU);
this.DAPShortDescription.innerHTML=this.insertWithBreak(this.ShortDescription);
this.DAPDiscountImage.src=this.DiscountImage;
this.DAPDiscountLink.href=this.insertWithBreak(this.DiscountLink);
this.DAPDiscountDetails.innerHTML=this.insertWithBreak(this.DiscountDetails);
this.DAPAdditionalText.innerHTML=this.insertWithBreak(this.AdditionalText);
}else{
this.DAPCatalogEntryContainer.style.display="none";
dojo.dom.removeChildren(this.DAPProductQuickViewTable);
}
this.addDragDropFeature();
var _fb7=new Array();
var _fb8=new Array();
_fb7=this.additionalProperties.split(",");
for(var i=0;i<_fb7.length;i++){
_fb8=_fb7[i].split("=");
if(_fb8.length==2){
this[_fb8[0]]=_fb8[1];
}
}
},insertWithBreak:function(_fba){
if(_fba!=""){
return _fba+"<br/><br/>";
}
return "";
},addDragDropFeature:function(){
if(this.dragAndDrop&&this.defaultContent){
var _fbb=null;
_fbb=this.DAPCatalogEntryThumbnailImageLink;
_fbb.name=this.DAPCatalogEntryName.innerHTML;
_fbb.price=this.DAPPriceRange.innerHTML;
_fbb.catentryId=this.catentryId;
var _fbc=new Array();
var _fbd=new Array();
_fbc=this.dragSourceProperties.split(",");
for(var i=0;i<_fbc.length;i++){
_fbd=_fbc[i].split("=");
if(_fbd.length==2){
_fbb[_fbd[0]]=_fbd[1];
}
}
new dojo.dnd.HtmlDragSource(_fbb,this.dragSourceType);
}
}});
dojo.widget.defineWidget("wc.widget.BaseContent",dojo.widget.HtmlWidget,{catentryId:"",dragSourceId:"",isContainer:true,widgetType:"BaseContent",dragSourceType:"*",dragSourceProperties:"",templateString:"",userInnerHtml:"",dragAndDrop:true,postCreate:function(){
if(this.userInnerHtml!=""){
this.domNode.innerHTML=this.userInnerHtml;
}
if(this.domNode.innerHTML!=null&&this.domNode.innerHTML!=""){
if(this.dragAndDrop){
var _fbf=null;
_fbf=dojo.byId(this.dragSourceId);
_fbf.catentryId=this.catentryId;
var _fc0=new Array();
var _fc1=new Array();
_fc0=this.dragSourceProperties.split(",");
for(var i=0;i<_fc0.length;i++){
_fc1=_fc0[i].split("=");
if(_fc1.length==2){
_fbf[_fc1[0]]=_fc1[1];
}
}
new dojo.dnd.HtmlDragSource(_fbf,this.dragSourceType);
}
}
}});
dojo.widget.defineWidget("wc.widget.ToolTipContent",dojo.widget.Tooltip,{connectId:"",userInnerHtml:"",templateCssString:"/**\r\n *-------------------------------------------------------------------\r\n * Licensed Materials - Property of IBM\r\n *\r\n * WebSphere Commerce\r\n *\r\n * (c) Copyright IBM Corp. 2007\r\n *\r\n * US Government Users Restricted Rights - Use, duplication or\r\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\r\n *\r\n *-------------------------------------------------------------------\r\n */\r\n \r\n.dojoTooltip {\r\n\tcolor: black;\r\n\tposition: absolute;\r\n\tz-index: 10;\r\n}\r\n",templateCssPath:dojo.uri.dojoUri("wc/widget/templates/HtmlProductQuickViewToolTip.css"),fillInTemplate:function(args,frag){
if(this.userInnerHtml!=""){
this.containerNode.innerHTML=this.userInnerHtml;
}
wc.widget.ToolTipContent.superclass.fillInTemplate.call(this,args,frag);
},_getPosition:function(_fc5){
var pos={x:0,y:0};
if(!_fc5.offsetParent){
return pos;
}
pos.x=_fc5.offsetLeft;
pos.y=_fc5.offsetTop;
while(_fc5=_fc5.offsetParent){
pos.x+=_fc5.offsetLeft;
pos.y+=_fc5.offsetTop;
}
return pos;
},_isOverElement:function(_fc7,e){
_fc7=dojo.byId(_fc7);
if(e.target.tagName.toLowerCase()=="option"||e.target.tagName.toLowerCase()=="select"){
var _fc9=this._getPosition(e.target.offsetParent);
dojo.debug("mouse  = ("+_fc9.x+" , "+_fc9.y+") ");
}else{
var _fc9=dojo.html.getCursorPosition(e);
}
var bb=dojo.html.getBorderBox(_fc7);
var _fcb=dojo.html.getAbsolutePosition(_fc7,true,dojo.html.boxSizing.BORDER_BOX);
var top=_fcb.y;
var _fcd=top+bb.height;
var left=_fcb.x;
var _fcf=left+bb.width;
dojo.debug("**** left = "+left+", right = "+_fcf+", top = "+top+", bottom = "+_fcd+" mouse: "+_fc9.x+", "+_fc9.y+") ");
dojo.debug("**** mouse x y = ("+_fc9.x+", "+_fc9.y+") ");
return (_fc9.x>=left&&_fc9.x<=_fcf&&_fc9.y>=top&&_fc9.y<=_fcd);
},_onMouseMove:function(e){
this._mouse={x:e.pageX,y:e.pageY};
dojo.debug("mouse x = "+this._mouse.x+" y = "+this._mouse.y+" and target: "+e.target+" with coordinates: ("+this._getPosition(dojo.byId(e.target)).x+", "+this._getPosition(dojo.byId(e.target)).y+") ");
if(this._isOverElement(this._connectNode,e)||this._isOverElement(this.domNode,e)){
dojo.debug("on mouse on hover: {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onHover(e);
}else{
dojo.debug("on mousemove unhover "+e+" and target is: "+e.target+" unHovering with mouse = {x = "+this._mouse.x+", y = "+this._mouse.y+" }");
this._onUnHover(e);
}
},destroy:function(_fd1){
try{
wc.widget.ToolTipContent.superclass.uninitialize.call(this);
wc.widget.ToolTipContent.superclass.destroy.call(this,_fd1);
}
catch(err){
}
}});
dojo.provide("dojo.style");
dojo.kwCompoundRequire({browser:["dojo.html.style"]});
dojo.deprecated("dojo.style","replaced by dojo.html.style","0.5");
dojo.lang.mixin(dojo.style,dojo.html);
dojo.provide("wc.widget.RangeSlider");
wc.widget.RangeSlider=function(){
dojo.widget.HtmlWidget.call(this);
this.widgetType="RangeSlider";
this.isContainer=true;
this.templateCssString="/**\r\n *-------------------------------------------------------------------\r\n * Licensed Materials - Property of IBM\r\n *\r\n * WebSphere Commerce\r\n *\r\n * (c) Copyright IBM Corp. 2007\r\n *\r\n * US Government Users Restricted Rights - Use, duplication or\r\n * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.\r\n *\r\n *-------------------------------------------------------------------\r\n */\r\n \r\n.rangeSelectorHandle { \r\n  color: #FF0000;\r\n  position: absolute; \r\n  background-image: url(images/rangeSelector-button.png);\r\n  width: 25px; \r\n  height: 25px;\r\n  cursor: pointer;\r\n  z-index: 10;\r\n}\r\n\r\n.rangeSelectorHandleHover { \r\n  background-image: url(images/rangeSelector-button-hover.png);\r\n}\r\n\r\n.rangeSelectorBar { \r\n  width: 300px;\r\n  height: 25px;\r\n  cursor: pointer;\r\n  background: url(images/rangeSelector-bar.png) no-repeat;\r\n}\r\n\r\n.rangeSelectorTooltip{\r\n  position: absolute;\r\n  background-color: #ffffff;\r\n  border: solid 1px #000000;\r\n  padding: 2px 2px 2px 2px;\r\n  font-size: small;\r\n  z-index: 30;\r\n}\r\n";this.templateCssPath=dojo.uri.dojoUri("wc/widget/templates/RangeSlider.css");
this.templateString="<div class=\"rangeSelectorMain\">\r\n    <div id=\"${this.widgetId}_firstHandle\" class=\"rangeSelectorHandle\" dojoAttachPoint=\"firstHandle\" dojoAttachEvent=\"onMouseOver: onFirstMouseOver; onMouseOut: onFirstMouseOut;\"></div>\r\n    <div class=\"rangeSelectorBar\" dojoAttachPoint=\"rangeSelectorBar\"></div>\r\n    <div id=\"${this.widgetId}_secondHandle\" class=\"rangeSelectorHandle\" dojoAttachPoint=\"secondHandle\" dojoAttachEvent=\"onMouseOver: onSecondMouseOver; onMouseOut: onSecondMouseOut;\"></div>\r\n\r\n\t<div id=\"${this.widgetId}_firstHandle_tooltip\" class=\"rangeSelectorTooltip\" dojoAttachPoint=\"firstTooltip\"></div>\r\n   \t<div id=\"${this.widgetId}_secondHandle_tooltip\" class=\"rangeSelectorTooltip\" dojoAttachPoint=\"secondTooltip\"></div>\r\n</div>\r\n";
this.firstHandle=null;
this.secondHandle=null;
this.rangeSelectorBar=null;
this.startRange=0;
this.totalRange=100;
this.defaultStart=0;
this.defaultEnd=0;
this.clickSelect=true;
this.snapToGrid=true;
this.activeDrag=true;
this.incrementValue=1;
this.decimalPoints=0;
this.showTooltip=true;
this.showTooltipAllTime=true;
this.ralativePositionFirst=[-1,-1];
this.ralativePositionSecond=[1,-1];
this.prefix="";
this.suffix="";
this.currencyCode="";
this.firstTooltip=null;
this.secondTooltip=null;
this.currentValue=new Object();
this.fillInTemplate=function(args,frag){
dojo.lang.setTimeout(this,"initWidget",0);
};
this.initWidget=function(){
this.pixelsOnSlider=dojo.html.getContentBoxWidth(this.rangeSelectorBar);
this.endRange=this.startRange+this.totalRange;
this.pixelsPerUnit=(this.pixelsOnSlider)/this.totalRange;
this.noOfDecimalUnits=(this.totalRange*(Math.pow(10,this.decimalPoints)))/this.incrementValue;
var x=Math.log(this.noOfDecimalUnits/this.pixelsOnSlider)*Math.LOG10E;
if(x>0){
dojo.debug("RangeSlider Widget: The whole range (along with decimal values) cannot be represented by the specified width of the widget. "+"Please set decimalPoints value to "+Math.floor(this.decimalPoints-x)+" or less, OR "+"Set the width of the widget to "+(this.noOfDecimalUnits)+" Pixels.");
dojo.debug("RangeSlider Widget: The decimalPoints value is set to "+Math.floor(this.decimalPoints-x)+" from its origional value "+this.decimalPoints);
this.decimalPoints=Math.floor(this.decimalPoints-x);
}
if(this.pixelsPerUnit<1){
dojo.debug("RangeSlider Widget: The whole range cannot be represented by the specified width of the widget. "+"Please decrese the range  by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Units OR "+"Increase the width of the widget by "+dojo.math.round((1-this.pixelsPerUnit)*this.totalRange)+" Pixels.");
}
if(this.defaultStart<this.startRange