/*
	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: 6824 $".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++){
try {
mll[x]();
} catch(e) {
	// wtf
}
}
this.modulesLoadedListeners=[];
this.loadNotifying=false;
dojo.loaded();
};
dojo.hostenv.unloaded=function(){
var mll=this.unloadListeners;
while(mll.length){
(mll.pop())();
}
dojo.unloaded();
};
dojo.addOnLoad=function(obj,_3d){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.modulesLoadedListeners.push(obj);
}else{
if(arguments.length>1){
dh.modulesLoadedListeners.push(function(){
obj[_3d]();
});
}
}
if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){
dh.callLoaded();
}
};
dojo.addOnUnload=function(obj,_40){
var dh=dojo.hostenv;
if(arguments.length==1){
dh.unloadListeners.push(obj);
}else{
if(arguments.length>1){
dh.unloadListeners.push(function(){
obj[_40]();
});
}
}
};
dojo.hostenv.modulesLoaded=function(){
if(this.post_load_){
return;
}
if(this.loadUriStack.length==0&&this.getTextStack.length==0){
if(this.inFlightCount>0){
dojo.debug("files still in flight!");
return;
}
dojo.hostenv.callLoaded();
}
};
dojo.hostenv.callLoaded=function(){
if(typeof setTimeout=="object"){
setTimeout("dojo.hostenv.loaded();",0);
}else{
dojo.hostenv.loaded();
}
};
dojo.hostenv.getModuleSymbols=function(_42){
var _43=_42.split(".");
for(var i=_43.length;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);
};
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;
}
function dj_load_init(e){
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.delayMozLoadingFix)){
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;
};
}
(function(){
if(typeof dj_usingBootstrap!="undefined"){
return;
}
var _ee=false;
var _ef=false;
var _f0=false;
if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){
_ee=true;
}else{
if(typeof this["load"]=="function"){
_ef=true;
}else{
if(window.widget){
_f0=true;
}
}
}
var _f1=[];
if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){
_f1.push("debug.js");
}
if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_ee)&&(!_f0)){
_f1.push("browser_debug.js");
}
var _f2=djConfig["baseScriptUri"];
if((this["djConfig"])&&(djConfig["baseLoaderUri"])){
_f2=djConfig["baseLoaderUri"];
}
for(var x=0;x<_f1.length;x++){
var _f4=_f2+"src/"+_f1[x];
if(_ee||_ef){
load(_f4);
}else{
try{
document.write("<scr"+"ipt type='text/javascript' src='"+_f4+"'></scr"+"ipt>");
}
catch(e){
var _f5=document.createElement("script");
_f5.src=_f4;
document.getElementsByTagName("head")[0].appendChild(_f5);
}
}
}
})();
dojo.provide("dojo.date.common");
dojo.date.setDayOfYear=function(_f6,_f7){
_f6.setMonth(0);
_f6.setDate(_f7);
return _f6;
};
dojo.date.getDayOfYear=function(_f8){
var _f9=_f8.getFullYear();
var _fa=new Date(_f9-1,11,31);
return Math.floor((_f8.getTime()-_fa.getTime())/86400000);
};
dojo.date.setWeekOfYear=function(_fb,_fc,_fd){
if(arguments.length==1){
_fd=0;
}
dojo.unimplemented("dojo.date.setWeekOfYear");
};
dojo.date.getWeekOfYear=function(_fe,_ff){
if(arguments.length==1){
_ff=0;
}
var _100=new Date(_fe.getFullYear(),0,1);
var day=_100.getDay();
_100.setDate(_100.getDate()-day+_ff-(day>_ff?7:0));
return Math.floor((_fe.getTime()-_100.getTime())/604800000);
};
dojo.date.setIsoWeekOfYear=function(_102,week,_104){
if(arguments.length==1){
_104=1;
}
dojo.unimplemented("dojo.date.setIsoWeekOfYear");
};
dojo.date.getIsoWeekOfYear=function(_105,_106){
if(arguments.length==1){
_106=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(_107){
var _108=_107.getMonth();
var days=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_108==1&&dojo.date.isLeapYear(_107)){
return 29;
}else{
return days[_108];
}
};
dojo.date.isLeapYear=function(_10a){
var year=_10a.getFullYear();
return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false;
};
dojo.date.getTimezoneName=function(_10c){
var str=_10c.toString();
var tz="";
var _10f;
var pos=str.indexOf("(");
if(pos>-1){
pos++;
tz=str.substring(pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_10f=str.match(pat))){
tz=_10f[1];
}else{
str=_10c.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_10f=str.match(pat))){
tz=_10f[1];
}
}
}
return tz=="AM"||tz=="PM"?"":tz;
};
dojo.date.getOrdinal=function(_112){
var date=_112.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(_114,_115,_116){
var dA=_114;
var dB=_115||new Date();
var now=new Date();
with(dojo.date.compareTypes){
var opt=_116||(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,_11e,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(_11e){
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 _122=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;
_122=(incr>0)?((incr-5)/5):((incr+5)/5);
}else{
days=mod;
_122=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*_122)+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,_12a){
if(typeof dtA=="number"){
dtA=new Date(dtA);
}
if(typeof dtB=="number"){
dtB=new Date(dtB);
}
var _12b=dtB.getFullYear()-dtA.getFullYear();
var _12c=(dtB.getMonth()-dtA.getMonth())+(_12b*12);
var _12d=dtB.getTime()-dtA.getTime();
var _12e=_12d/1000;
var _12f=_12e/60;
var _130=_12f/60;
var _131=_130/24;
var _132=_131/7;
var _133=0;
with(dojo.date.dateParts){
switch(_12a){
case YEAR:
_133=_12b;
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+=(_12b*4);
_133=qB-qA;
break;
case MONTH:
_133=_12c;
break;
case WEEK:
_133=parseInt(_132);
break;
case DAY:
_133=_131;
break;
case WEEKDAY:
var days=Math.round(_131);
var _139=parseInt(days/7);
var mod=days%7;
if(mod==0){
days=_139*5;
}else{
var adj=0;
var aDay=dtA.getDay();
var bDay=dtB.getDay();
_139=parseInt(days/7);
mod=days%7;
var _13e=new Date(dtA);
_13e.setDate(_13e.getDate()+(_139*7));
var _13f=_13e.getDay();
if(_131>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 (_13f+mod)>5:
adj=-2;
break;
default:
break;
}
}else{
if(_131<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 (_13f+mod)<0:
adj=2;
break;
default:
break;
}
}
}
days+=adj;
days-=(_139*2);
}
_133=days;
break;
case HOUR:
_133=_130;
break;
case MINUTE:
_133=_12f;
break;
case SECOND:
_133=_12e;
break;
case MILLISECOND:
_133=_12d;
break;
default:
break;
}
}
return Math.round(_133);
};
dojo.provide("dojo.date.supplemental");
dojo.date.getFirstDayOfWeek=function(_140){
var _141={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};
_140=dojo.hostenv.normalizeLocale(_140);
var _142=_140.split("-")[1];
var dow=_141[_142];
return (typeof dow=="undefined")?1:dow;
};
dojo.date.getWeekend=function(_144){
var _145={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 _146={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};
_144=dojo.hostenv.normalizeLocale(_144);
var _147=_144.split("-")[1];
var _148=_145[_147];
var end=_146[_147];
if(typeof _148=="undefined"){
_148=6;
}
if(typeof end=="undefined"){
end=0;
}
return {start:_148,end:end};
};
dojo.date.isWeekend=function(_14a,_14b){
var _14c=dojo.date.getWeekend(_14b);
var day=(_14a||new Date()).getDay();
if(_14c.end<_14c.start){
_14c.end+=7;
if(day<_14c.start){
day+=7;
}
}
return day>=_14c.start&&day<=_14c.end;
};
dojo.provide("dojo.lang.common");
dojo.lang.inherits=function(_14e,_14f){
if(!dojo.lang.isFunction(_14f)){
dojo.raise("dojo.inherits: superclass argument ["+_14f+"] must be a function (subclass: ["+_14e+"']");
}
_14e.prototype=new _14f();
_14e.prototype.constructor=_14e;
_14e.superclass=_14f.prototype;
_14e["super"]=_14f.prototype;
};
dojo.lang._mixin=function(obj,_151){
var tobj={};
for(var x in _151){
if((typeof tobj[x]=="undefined")||(tobj[x]!=_151[x])){
obj[x]=_151[x];
}
}
if(dojo.render.html.ie&&(typeof (_151["toString"])=="function")&&(_151["toString"]!=obj["toString"])&&(_151["toString"]!=tobj["toString"])){
obj.toString=_151.toString;
}
return obj;
};
dojo.lang.mixin=function(obj,_155){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(obj,arguments[i]);
}
return obj;
};
dojo.lang.extend=function(_158,_159){
for(var i=1,l=arguments.length;i<l;i++){
dojo.lang._mixin(_158.prototype,arguments[i]);
}
return _158;
};
dojo.inherits=dojo.lang.inherits;
dojo.mixin=dojo.lang.mixin;
dojo.extend=dojo.lang.extend;
dojo.lang.find=function(_15c,_15d,_15e,_15f){
if(!dojo.lang.isArrayLike(_15c)&&dojo.lang.isArrayLike(_15d)){
dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5");
var temp=_15c;
_15c=_15d;
_15d=temp;
}
var _161=dojo.lang.isString(_15c);
if(_161){
_15c=_15c.split("");
}
if(_15f){
var step=-1;
var i=_15c.length-1;
var end=-1;
}else{
var step=1;
var i=0;
var end=_15c.length;
}
if(_15e){
while(i!=end){
if(_15c[i]===_15d){
return i;
}
i+=step;
}
}else{
while(i!=end){
if(_15c[i]==_15d){
return i;
}
i+=step;
}
}
return -1;
};
dojo.lang.indexOf=dojo.lang.find;
dojo.lang.findLast=function(_165,_166,_167){
return dojo.lang.find(_165,_166,_167,true);
};
dojo.lang.lastIndexOf=dojo.lang.findLast;
dojo.lang.inArray=function(_168,_169){
return dojo.lang.find(_168,_169)>-1;
};
dojo.lang.isObject=function(it){
if(typeof it=="undefined"){
return false;
}
return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it));
};
dojo.lang.isArray=function(it){
return (it&&it instanceof Array||typeof it=="array");
};
dojo.lang.isArrayLike=function(it){
if((!it)||(dojo.lang.isUndefined(it))){
return false;
}
if(dojo.lang.isString(it)){
return false;
}
if(dojo.lang.isFunction(it)){
return false;
}
if(dojo.lang.isArray(it)){
return true;
}
if((it.tagName)&&(it.tagName.toLowerCase()=="form")){
return false;
}
if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){
return true;
}
return false;
};
dojo.lang.isFunction=function(it){
return (it instanceof Function||typeof it=="function");
};
(function(){
if((dojo.render.html.capable)&&(dojo.render.html["safari"])){
dojo.lang.isFunction=function(it){
if((typeof (it)=="function")&&(it=="[object NodeList]")){
return false;
}
return (it instanceof Function||typeof it=="function");
};
}
})();
dojo.lang.isString=function(it){
return (typeof it=="string"||it instanceof String);
};
dojo.lang.isAlien=function(it){
if(!it){
return false;
}
return !dojo.lang.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
};
dojo.lang.isBoolean=function(it){
return (it instanceof Boolean||typeof it=="boolean");
};
dojo.lang.isNumber=function(it){
return (it instanceof Number||typeof it=="number");
};
dojo.lang.isUndefined=function(it){
return ((typeof (it)=="undefined")&&(it==undefined));
};
dojo.provide("dojo.lang.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 _178=0;
for(var x in obj){
if(obj[x]&&(!tmp[x])){
_178++;
break;
}
}
return _178==0;
}else{
if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){
return obj.length==0;
}
}
},map:function(arr,obj,_17c){
var _17d=dojo.lang.isString(arr);
if(_17d){
arr=arr.split("");
}
if(dojo.lang.isFunction(obj)&&(!_17c)){
_17c=obj;
obj=dj_global;
}else{
if(dojo.lang.isFunction(obj)&&_17c){
var _17e=obj;
obj=_17c;
_17c=_17e;
}
}
if(Array.map){
var _17f=Array.map(arr,_17c,obj);
}else{
var _17f=[];
for(var i=0;i<arr.length;++i){
_17f.push(_17c.call(obj,arr[i]));
}
}
if(_17d){
return _17f.join("");
}else{
return _17f;
}
},reduce:function(arr,_182,obj,_184){
var _185=_182;
if(arguments.length==1){
dojo.debug("dojo.lang.reduce called with too few arguments!");
return false;
}else{
if(arguments.length==2){
_184=_182;
_185=arr.shift();
}else{
if(arguments.lenght==3){
if(dojo.lang.isFunction(obj)){
_184=obj;
obj=null;
}
}else{
if(dojo.lang.isFunction(obj)){
var tmp=_184;
_184=obj;
obj=tmp;
}
}
}
}
var ob=obj?obj:dj_global;
dojo.lang.map(arr,function(val){
_185=_184.call(ob,_185,val);
});
return _185;
},forEach:function(_189,_18a,_18b){
if(dojo.lang.isString(_189)){
_189=_189.split("");
}
if(Array.forEach){
Array.forEach(_189,_18a,_18b);
}else{
if(!_18b){
_18b=dj_global;
}
for(var i=0,l=_189.length;i<l;i++){
_18a.call(_18b,_189[i],i,_189);
}
}
},_everyOrSome:function(_18e,arr,_190,_191){
if(dojo.lang.isString(arr)){
arr=arr.split("");
}
if(Array.every){
return Array[_18e?"every":"some"](arr,_190,_191);
}else{
if(!_191){
_191=dj_global;
}
for(var i=0,l=arr.length;i<l;i++){
var _194=_190.call(_191,arr[i],i,arr);
if(_18e&&!_194){
return false;
}else{
if((!_18e)&&(_194)){
return true;
}
}
}
return Boolean(_18e);
}
},every:function(arr,_196,_197){
return this._everyOrSome(true,arr,_196,_197);
},some:function(arr,_199,_19a){
return this._everyOrSome(false,arr,_199,_19a);
},filter:function(arr,_19c,_19d){
var _19e=dojo.lang.isString(arr);
if(_19e){
arr=arr.split("");
}
var _19f;
if(Array.filter){
_19f=Array.filter(arr,_19c,_19d);
}else{
if(!_19d){
if(arguments.length>=3){
dojo.raise("thisObject doesn't exist!");
}
_19d=dj_global;
}
_19f=[];
for(var i=0;i<arr.length;i++){
if(_19c.call(_19d,arr[i],i,arr)){
_19f.push(arr[i]);
}
}
}
if(_19e){
return _19f.join("");
}else{
return _19f;
}
},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(_1a4,_1a5){
var _1a6=[];
for(var i=_1a5||0;i<_1a4.length;i++){
_1a6.push(_1a4[i]);
}
return _1a6;
}});
dojo.provide("dojo.lang.func");
dojo.lang.hitch=function(_1a8,_1a9){
var fcn=(dojo.lang.isString(_1a9)?_1a8[_1a9]:_1a9)||function(){
};
return function(){
return fcn.apply(_1a8,arguments);
};
};
dojo.lang.anonCtr=0;
dojo.lang.anon={};
dojo.lang.nameAnonFunc=function(_1ab,_1ac,_1ad){
var nso=(_1ac||dojo.lang.anon);
if((_1ad)||((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true))){
for(var x in nso){
try{
if(nso[x]===_1ab){
return x;
}
}
catch(e){
}
}
}
var ret="__"+dojo.lang.anonCtr++;
while(typeof nso[ret]!="undefined"){
ret="__"+dojo.lang.anonCtr++;
}
nso[ret]=_1ab;
return ret;
};
dojo.lang.forward=function(_1b1){
return function(){
return this[_1b1].apply(this,arguments);
};
};
dojo.lang.curry=function(_1b2,func){
var _1b4=[];
_1b2=_1b2||dj_global;
if(dojo.lang.isString(func)){
func=_1b2[func];
}
for(var x=2;x<arguments.length;x++){
_1b4.push(arguments[x]);
}
var _1b6=(func["__preJoinArity"]||func.length)-_1b4.length;
function gather(_1b7,_1b8,_1b9){
var _1ba=_1b9;
var _1bb=_1b8.slice(0);
for(var x=0;x<_1b7.length;x++){
_1bb.push(_1b7[x]);
}
_1b9=_1b9-_1b7.length;
if(_1b9<=0){
var res=func.apply(_1b2,_1bb);
_1b9=_1ba;
return res;
}else{
return function(){
return gather(arguments,_1bb,_1b9);
};
}
}
return gather([],_1b4,_1b6);
};
dojo.lang.curryArguments=function(_1be,func,args,_1c1){
var _1c2=[];
var x=_1c1||0;
for(x=_1c1;x<args.length;x++){
_1c2.push(args[x]);
}
return dojo.lang.curry.apply(dojo.lang,[_1be,func].concat(_1c2));
};
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,_1c8,_1c9){
if(!farr.length){
if(typeof _1c9=="function"){
_1c9();
}
return;
}
if((typeof _1c8=="undefined")&&(typeof cb=="number")){
_1c8=cb;
cb=function(){
};
}else{
if(!cb){
cb=function(){
};
if(!_1c8){
_1c8=0;
}
}
}
setTimeout(function(){
(farr.shift())();
cb();
dojo.lang.delayThese(farr,cb,_1c8,_1c9);
},_1c8);
};
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,_1d0,_1d1){
var out="";
for(var i=0;i<_1d0;i++){
out+=str;
if(_1d1&&i<_1d0-1){
out+=_1d1;
}
}
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.i18n.common");
dojo.i18n.getLocalization=function(_1df,_1e0,_1e1){
dojo.hostenv.preloadLocalizations();
_1e1=dojo.hostenv.normalizeLocale(_1e1);
var _1e2=_1e1.split("-");
var _1e3=[_1df,"nls",_1e0].join(".");
var _1e4=dojo.hostenv.findModule(_1e3,true);
var _1e5;
for(var i=_1e2.length;i>0;i--){
var loc=_1e2.slice(0,i).join("_");
if(_1e4[loc]){
_1e5=_1e4[loc];
break;
}
}
if(!_1e5){
_1e5=_1e4.ROOT;
}
if(_1e5){
var _1e8=function(){
};
_1e8.prototype=_1e5;
return new _1e8();
}
dojo.raise("Bundle not found: "+_1e0+" in "+_1df+" , locale="+_1e1);
};
dojo.i18n.isLTR=function(_1e9){
var lang=dojo.hostenv.normalizeLocale(_1e9).split("-")[0];
var RTL={ar:true,fa:true,he:true,ur:true,yi:true};
return !RTL[lang];
};
dojo.provide("dojo.date.format");
(function(){
dojo.date.format=function(_1ec,_1ed){
if(typeof _1ed=="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(_1ec,_1ed);
}
function formatPattern(_1ee,_1ef){
return _1ef.replace(/([a-z])\1*/ig,function(_1f0){
var s;
var c=_1f0.charAt(0);
var l=_1f0.length;
var pad;
var _1f5=["abbr","wide","narrow"];
switch(c){
case "G":
if(l>3){
dojo.unimplemented("Era format not implemented");
}
s=info.eras[_1ee.getFullYear()<0?1:0];
break;
case "y":
s=_1ee.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((_1ee.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=_1ee.getMonth();
var _1f8;
switch(l){
case 1:
case 2:
s=m+1;
pad=true;
break;
case 3:
case 4:
case 5:
_1f8=_1f5[l-3];
break;
}
if(_1f8){
var type=(c=="L")?"standalone":"format";
var prop=["months",type,_1f8].join("-");
s=info[prop][m];
}
break;
case "w":
var _1fb=0;
s=dojo.date.getWeekOfYear(_1ee,_1fb);
pad=true;
break;
case "d":
s=_1ee.getDate();
pad=true;
break;
case "D":
s=dojo.date.getDayOfYear(_1ee);
pad=true;
break;
case "E":
case "e":
case "c":
var d=_1ee.getDay();
var _1f8;
switch(l){
case 1:
case 2:
if(c=="e"){
var _1fd=dojo.date.getFirstDayOfWeek(_1ed.locale);
d=(d-_1fd+7)%7;
}
if(c!="c"){
s=d+1;
pad=true;
break;
}
case 3:
case 4:
case 5:
_1f8=_1f5[l-3];
break;
}
if(_1f8){
var type=(c=="c")?"standalone":"format";
var prop=["days",type,_1f8].join("-");
s=info[prop][d];
}
break;
case "a":
var _1fe=(_1ee.getHours()<12)?"am":"pm";
s=info[_1fe];
break;
case "h":
case "H":
case "K":
case "k":
var h=_1ee.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=_1ee.getMinutes();
pad=true;
break;
case "s":
s=_1ee.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_1ee.getMilliseconds()*Math.pow(10,l-3));
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_1ee);
if(s){
break;
}
l=4;
case "Z":
var _200=_1ee.getTimezoneOffset();
var tz=[(_200<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_200)/60),2),dojo.string.pad(Math.abs(_200)%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(_1f0+" modifier not yet implemented");
s="?";
break;
default:
dojo.raise("dojo.date.format: invalid pattern char: "+_1ef);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
}
_1ed=_1ed||{};
var _202=dojo.hostenv.normalizeLocale(_1ed.locale);
var _203=_1ed.formatLength||"full";
var info=dojo.date._getGregorianBundle(_202);
var str=[];
var _205=dojo.lang.curry(this,formatPattern,_1ec);
if(_1ed.selector!="timeOnly"){
var _206=_1ed.datePattern||info["dateFormat-"+_203];
if(_206){
str.push(_processPattern(_206,_205));
}
}
if(_1ed.selector!="dateOnly"){
var _207=_1ed.timePattern||info["timeFormat-"+_203];
if(_207){
str.push(_processPattern(_207,_205));
}
}
var _208=str.join(" ");
return _208;
};
dojo.date.parse=function(_209,_20a){
_20a=_20a||{};
var _20b=dojo.hostenv.normalizeLocale(_20a.locale);
var info=dojo.date._getGregorianBundle(_20b);
var _20d=_20a.formatLength||"full";
if(!_20a.selector){
_20a.selector="dateOnly";
}
var _20e=_20a.datePattern||info["dateFormat-"+_20d];
var _20f=_20a.timePattern||info["timeFormat-"+_20d];
var _210;
if(_20a.selector=="dateOnly"){
_210=_20e;
}else{
if(_20a.selector=="timeOnly"){
_210=_20f;
}else{
if(_20a.selector=="dateTime"){
_210=_20e+" "+_20f;
}else{
var msg="dojo.date.parse: Unknown selector param passed: '"+_20a.selector+"'.";
msg+=" Defaulting to date pattern.";
dojo.debug(msg);
_210=_20e;
}
}
}
var _212=[];
var _213=_processPattern(_210,dojo.lang.curry(this,_buildDateTimeRE,_212,info,_20a));
var _214=new RegExp("^"+_213+"$");
var _215=_214.exec(_209);
if(!_215){
return null;
}
var _216=["abbr","wide","narrow"];
var _217=new Date(1972,0);
var _218={};
for(var i=1;i<_215.length;i++){
var grp=_212[i-1];
var l=grp.length;
var v=_215[i];
switch(grp.charAt(0)){
case "y":
if(l!=2){
_217.setFullYear(v);
_218.year=v;
}else{
if(v<100){
v=Number(v);
var year=""+new Date().getFullYear();
var _21e=year.substring(0,2)*100;
var _21f=Number(year.substring(2,4));
var _220=Math.min(_21f+20,99);
var num=(v<_220)?_21e+v:_21e-100+v;
_217.setFullYear(num);
_218.year=num;
}else{
if(_20a.strict){
return null;
}
_217.setFullYear(v);
_218.year=v;
}
}
break;
case "M":
if(l>2){
if(!_20a.strict){
v=v.replace(/\./g,"");
v=v.toLowerCase();
}
var _222=info["months-format-"+_216[l-3]].concat();
for(var j=0;j<_222.length;j++){
if(!_20a.strict){
_222[j]=_222[j].toLowerCase();
}
if(v==_222[j]){
_217.setMonth(j);
_218.month=j;
break;
}
}
if(j==_222.length){
dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'.");
return null;
}
}else{
_217.setMonth(v-1);
_218.month=v-1;
}
break;
case "E":
case "e":
if(!_20a.strict){
v=v.toLowerCase();
}
var days=info["days-format-"+_216[l-3]].concat();
for(var j=0;j<days.length;j++){
if(!_20a.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":
_217.setDate(v);
_218.date=v;
break;
case "a":
var am=_20a.am||info.am;
var pm=_20a.pm||info.pm;
if(!_20a.strict){
v=v.replace(/\./g,"").toLowerCase();
am=am.replace(/\./g,"").toLowerCase();
pm=pm.replace(/\./g,"").toLowerCase();
}
if(_20a.strict&&v!=am&&v!=pm){
dojo.debug("dojo.date.parse: Could not parse am/pm part.");
return null;
}
var _227=_217.getHours();
if(v==pm&&_227<12){
_217.setHours(_227+12);
}else{
if(v==am&&_227==12){
_217.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;
}
_217.setHours(v);
break;
case "m":
_217.setMinutes(v);
break;
case "s":
_217.setSeconds(v);
break;
case "S":
_217.setMilliseconds(v);
break;
default:
dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0));
}
}
if(_218.year&&_217.getFullYear()!=_218.year){
dojo.debug("Parsed year: '"+_217.getFullYear()+"' did not match input year: '"+_218.year+"'.");
return null;
}
if(_218.month&&_217.getMonth()!=_218.month){
dojo.debug("Parsed month: '"+_217.getMonth()+"' did not match input month: '"+_218.month+"'.");
return null;
}
if(_218.date&&_217.getDate()!=_218.date){
dojo.debug("Parsed day of month: '"+_217.getDate()+"' did not match input day of month: '"+_218.date+"'.");
return null;
}
return _217;
};
function _processPattern(_228,_229,_22a,_22b){
var _22c=function(x){
return x;
};
_229=_229||_22c;
_22a=_22a||_22c;
_22b=_22b||_22c;
var _22e=_228.match(/(''|[^'])+/g);
var _22f=false;
for(var i=0;i<_22e.length;i++){
if(!_22e[i]){
_22e[i]="";
}else{
_22e[i]=(_22f?_22a:_229)(_22e[i]);
_22f=!_22f;
}
}
return _22b(_22e.join(""));
}
function _buildDateTimeRE(_231,info,_233,_234){
return _234.replace(/([a-z])\1*/ig,function(_235){
var s;
var c=_235.charAt(0);
var l=_235.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=_233.am||info.am||"AM";
var pm=_233.pm||info.pm||"PM";
if(_233.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="+_234);
}
if(_231){
_231.push(_235);
}
return "\\s*("+s+")\\s*";
});
}
})();
dojo.date.strftime=function(_23b,_23c,_23d){
var _23e=null;
function _(s,n){
return dojo.string.pad(s,n||2,_23e||"0");
}
var info=dojo.date._getGregorianBundle(_23d);
function $(_242){
switch(_242){
case "a":
return dojo.date.getDayShortName(_23b,_23d);
case "A":
return dojo.date.getDayName(_23b,_23d);
case "b":
case "h":
return dojo.date.getMonthShortName(_23b,_23d);
case "B":
return dojo.date.getMonthName(_23b,_23d);
case "c":
return dojo.date.format(_23b,{locale:_23d});
case "C":
return _(Math.floor(_23b.getFullYear()/100));
case "d":
return _(_23b.getDate());
case "D":
return $("m")+"/"+$("d")+"/"+$("y");
case "e":
if(_23e==null){
_23e=" ";
}
return _(_23b.getDate());
case "f":
if(_23e==null){
_23e=" ";
}
return _(_23b.getMonth()+1);
case "g":
break;
case "G":
dojo.unimplemented("unimplemented modifier 'G'");
break;
case "F":
return $("Y")+"-"+$("m")+"-"+$("d");
case "H":
return _(_23b.getHours());
case "I":
return _(_23b.getHours()%12||12);
case "j":
return _(dojo.date.getDayOfYear(_23b),3);
case "k":
if(_23e==null){
_23e=" ";
}
return _(_23b.getHours());
case "l":
if(_23e==null){
_23e=" ";
}
return _(_23b.getHours()%12||12);
case "m":
return _(_23b.getMonth()+1);
case "M":
return _(_23b.getMinutes());
case "n":
return "\n";
case "p":
return info[_23b.getHours()<12?"am":"pm"];
case "r":
return $("I")+":"+$("M")+":"+$("S")+" "+$("p");
case "R":
return $("H")+":"+$("M");
case "S":
return _(_23b.getSeconds());
case "t":
return "\t";
case "T":
return $("H")+":"+$("M")+":"+$("S");
case "u":
return String(_23b.getDay()||7);
case "U":
return _(dojo.date.getWeekOfYear(_23b));
case "V":
return _(dojo.date.getIsoWeekOfYear(_23b));
case "W":
return _(dojo.date.getWeekOfYear(_23b,1));
case "w":
return String(_23b.getDay());
case "x":
return dojo.date.format(_23b,{selector:"dateOnly",locale:_23d});
case "X":
return dojo.date.format(_23b,{selector:"timeOnly",locale:_23d});
case "y":
return _(_23b.getFullYear()%100);
case "Y":
return String(_23b.getFullYear());
case "z":
var _243=_23b.getTimezoneOffset();
return (_243>0?"-":"+")+_(Math.floor(Math.abs(_243)/60))+":"+_(Math.abs(_243)%60);
case "Z":
return dojo.date.getTimezoneName(_23b);
case "%":
return "%";
}
}
var _244="";
var i=0;
var _246=0;
var _247=null;
while((_246=_23c.indexOf("%",i))!=-1){
_244+=_23c.substring(i,_246++);
switch(_23c.charAt(_246++)){
case "_":
_23e=" ";
break;
case "-":
_23e="";
break;
case "0":
_23e="0";
break;
case "^":
_247="upper";
break;
case "*":
_247="lower";
break;
case "#":
_247="swap";
break;
default:
_23e=null;
_246--;
break;
}
var _248=$(_23c.charAt(_246++));
switch(_247){
case "upper":
_248=_248.toUpperCase();
break;
case "lower":
_248=_248.toLowerCase();
break;
case "swap":
var _249=_248.toLowerCase();
var _24a="";
var j=0;
var ch="";
while(j<_248.length){
ch=_248.charAt(j);
_24a+=(ch==_249.charAt(j))?ch.toUpperCase():ch.toLowerCase();
j++;
}
_248=_24a;
break;
default:
break;
}
_247=null;
_244+=_248;
i=_246;
}
_244+=_23c.substring(i);
return _244;
};
(function(){
var _24d=[];
dojo.date.addCustomFormats=function(_24e,_24f){
_24d.push({pkg:_24e,name:_24f});
};
dojo.date._getGregorianBundle=function(_250){
var _251={};
dojo.lang.forEach(_24d,function(desc){
var _253=dojo.i18n.getLocalization(desc.pkg,desc.name,_250);
_251=dojo.lang.mixin(_251,_253);
},this);
return _251;
};
})();
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian");
dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras");
dojo.date.getNames=function(item,type,use,_257){
var _258;
var _259=dojo.date._getGregorianBundle(_257);
var _25a=[item,use,type];
if(use=="standAlone"){
_258=_259[_25a.join("-")];
}
_25a[1]="format";
return (_258||_259[_25a.join("-")]).concat();
};
dojo.date.getDayName=function(_25b,_25c){
return dojo.date.getNames("days","wide","format",_25c)[_25b.getDay()];
};
dojo.date.getDayShortName=function(_25d,_25e){
return dojo.date.getNames("days","abbr","format",_25e)[_25d.getDay()];
};
dojo.date.getMonthName=function(_25f,_260){
return dojo.date.getNames("months","wide","format",_260)[_25f.getMonth()];
};
dojo.date.getMonthShortName=function(_261,_262){
return dojo.date.getNames("months","abbr","format",_262)[_261.getMonth()];
};
dojo.date.toRelativeString=function(_263){
var now=new Date();
var diff=(now-_263)/1000;
var end=" ago";
var _267=false;
if(diff<0){
_267=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 _267?"Tomorrow":"Yesterday";
}else{
return diff+" days"+end;
}
}
return dojo.date.format(_263);
};
dojo.date.toSql=function(_268,_269){
return dojo.date.strftime(_268,"%F"+!_269?" %T":"");
};
dojo.date.fromSql=function(_26a){
var _26b=_26a.split(/[\- :]/g);
while(_26b.length<6){
_26b.push(0);
}
return new Date(_26b[0],(parseInt(_26b[1],10)-1),_26b[2],_26b[3],_26b[4],_26b[5]);
};
dojo.provide("dojo.date.serialize");
dojo.date.setIso8601=function(_26c,_26d){
var _26e=(_26d.indexOf("T")==-1)?_26d.split(" "):_26d.split("T");
_26c=dojo.date.setIso8601Date(_26c,_26e[0]);
if(_26e.length==2){
_26c=dojo.date.setIso8601Time(_26c,_26e[1]);
}
return _26c;
};
dojo.date.fromIso8601=function(_26f){
return dojo.date.setIso8601(new Date(0,0),_26f);
};
dojo.date.setIso8601Date=function(_270,_271){
var _272="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$";
var d=_271.match(new RegExp(_272));
if(!d){
dojo.debug("invalid date string: "+_271);
return null;
}
var year=d[1];
var _275=d[4];
var date=d[6];
var _277=d[8];
var week=d[10];
var _279=d[12]?d[12]:1;
_270.setFullYear(year);
if(_277){
_270.setMonth(0);
_270.setDate(Number(_277));
}else{
if(week){
_270.setMonth(0);
_270.setDate(1);
var gd=_270.getDay();
var day=gd?gd:7;
var _27c=Number(_279)+(7*Number(week));
if(day<=4){
_270.setDate(_27c+1-day);
}else{
_270.setDate(_27c+8-day);
}
}else{
if(_275){
_270.setDate(1);
_270.setMonth(_275-1);
}
if(date){
_270.setDate(date);
}
}
}
return _270;
};
dojo.date.fromIso8601Date=function(_27d){
return dojo.date.setIso8601Date(new Date(0,0),_27d);
};
dojo.date.setIso8601Time=function(_27e,_27f){
var _280="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$";
var d=_27f.match(new RegExp(_280));
var _282=0;
if(d){
if(d[0]!="Z"){
_282=(Number(d[3])*60)+Number(d[5]);
_282*=((d[2]=="-")?1:-1);
}
_282-=_27e.getTimezoneOffset();
_27f=_27f.substr(0,_27f.length-d[0].length);
}
var _283="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$";
d=_27f.match(new RegExp(_283));
if(!d){
dojo.debug("invalid time string: "+_27f);
return null;
}
var _284=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;
_27e.setHours(_284);
_27e.setMinutes(mins);
_27e.setSeconds(secs);
_27e.setMilliseconds(ms);
if(_282!==0){
_27e.setTime(_27e.getTime()+_282*60000);
}
return _27e;
};
dojo.date.fromIso8601Time=function(_288){
return dojo.date.setIso8601Time(new Date(0,0),_288);
};
dojo.date.toRfc3339=function(_289,_28a){
if(!_289){
_289=new Date();
}
var _=dojo.string.pad;
var _28c=[];
if(_28a!="timeOnly"){
var date=[_(_289.getFullYear(),4),_(_289.getMonth()+1,2),_(_289.getDate(),2)].join("-");
_28c.push(date);
}
if(_28a!="dateOnly"){
var time=[_(_289.getHours(),2),_(_289.getMinutes(),2),_(_289.getSeconds(),2)].join(":");
var _28f=_289.getTimezoneOffset();
time+=(_28f>0?"-":"+")+_(Math.floor(Math.abs(_28f)/60),2)+":"+_(Math.abs(_28f)%60,2);
_28c.push(time);
}
return _28c.join("T");
};
dojo.date.fromRfc3339=function(_290){
if(_290.indexOf("Tany")!=-1){
_290=_290.replace("Tany","");
}
var _291=new Date();
return dojo.date.setIso8601(_291,_290);
};
dojo.provide("dojo.lang.extras");
dojo.lang.setTimeout=function(func,_293){
var _294=window,_295=2;
if(!dojo.lang.isFunction(func)){
_294=func;
func=_293;
_293=arguments[2];
_295++;
}
if(dojo.lang.isString(func)){
func=_294[func];
}
var args=[];
for(var i=_295;i<arguments.length;i++){
args.push(arguments[i]);
}
return dojo.global().setTimeout(function(){
func.apply(_294,args);
},_293);
};
dojo.lang.clearTimeout=function(_298){
dojo.global().clearTimeout(_298);
};
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(_2a1,_2a2,_2a3){
with(dojo.parseObjPath(_2a1,_2a2,_2a3)){
return dojo.evalProp(prop,obj,_2a3);
}
};
dojo.lang.setObjPathValue=function(_2a4,_2a5,_2a6,_2a7){
dojo.deprecated("dojo.lang.setObjPathValue","use dojo.parseObjPath and the '=' operator","0.6");
if(arguments.length<4){
_2a7=true;
}
with(dojo.parseObjPath(_2a4,_2a6,_2a7)){
if(obj&&(_2a7||(prop in obj))){
obj[prop]=_2a5;
}
}
};
dojo.provide("dojo.lang.declare");
dojo.lang.declare=function(_2a8,_2a9,init,_2ab){
if((dojo.lang.isFunction(_2ab))||((!_2ab)&&(!dojo.lang.isFunction(init)))){
var temp=_2ab;
_2ab=init;
init=temp;
}
var _2ad=[];
if(dojo.lang.isArray(_2a9)){
_2ad=_2a9;
_2a9=_2ad.shift();
}
if(!init){
init=dojo.evalObjPath(_2a8,false);
if((init)&&(!dojo.lang.isFunction(init))){
init=null;
}
}
var ctor=dojo.lang.declare._makeConstructor();
var scp=(_2a9?_2a9.prototype:null);
if(scp){
scp.prototyping=true;
ctor.prototype=new _2a9();
scp.prototyping=false;
}
ctor.superclass=scp;
ctor.mixins=_2ad;
for(var i=0,l=_2ad.length;i<l;i++){
dojo.lang.extend(ctor,_2ad[i].prototype);
}
ctor.prototype.initializer=null;
ctor.prototype.declaredClass=_2a8;
if(dojo.lang.isArray(_2ab)){
dojo.lang.extend.apply(dojo.lang,[ctor].concat(_2ab));
}else{
dojo.lang.extend(ctor,(_2ab)||{});
}
dojo.lang.extend(ctor,dojo.lang.declare._common);
ctor.prototype.constructor=ctor;
ctor.prototype.initializer=(ctor.prototype.initializer)||(init)||(function(){
});
var _2b2=dojo.parseObjPath(_2a8,null,true);
_2b2.obj[_2b2.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(_2b8,_2b9,args){
var _2bb,_2bc=this.___proto;
this.___proto=_2b8;
try{
_2bb=_2b8[_2b9].apply(this,(args||[]));
}
catch(e){
throw e;
}
finally{
this.___proto=_2bc;
}
return _2bb;
},_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.logging.Logger");
dojo.provide("dojo.logging.LogFilter");
dojo.provide("dojo.logging.Record");
dojo.provide("dojo.log");
dojo.logging.Record=function(_2c2,_2c3){
this.level=_2c2;
this.message="";
this.msgArgs=[];
this.time=new Date();
if(dojo.lang.isArray(_2c3)){
if(_2c3.length>0&&dojo.lang.isString(_2c3[0])){
this.message=_2c3.shift();
}
this.msgArgs=_2c3;
}else{
this.message=_2c3;
}
};
dojo.logging.LogFilter=function(_2c4){
this.passChain=_2c4||"";
this.filter=function(_2c5){
return true;
};
};
dojo.logging.Logger=function(){
this.cutOffLevel=0;
this.propagate=true;
this.parent=null;
this.data=[];
this.filters=[];
this.handlers=[];
};
dojo.extend(dojo.logging.Logger,{_argsToArr:function(args){
var ret=[];
for(var x=0;x<args.length;x++){
ret.push(args[x]);
}
return ret;
},setLevel:function(lvl){
this.cutOffLevel=parseInt(lvl);
},isEnabledFor:function(lvl){
return parseInt(lvl)>=this.cutOffLevel;
},getEffectiveLevel:function(){
if((this.cutOffLevel==0)&&(this.parent)){
return this.parent.getEffectiveLevel();
}
return this.cutOffLevel;
},addFilter:function(flt){
this.filters.push(flt);
return this.filters.length-1;
},removeFilterByIndex:function(_2cc){
if(this.filters[_2cc]){
delete this.filters[_2cc];
return true;
}
return false;
},removeFilter:function(_2cd){
for(var x=0;x<this.filters.length;x++){
if(this.filters[x]===_2cd){
delete this.filters[x];
return true;
}
}
return false;
},removeAllFilters:function(){
this.filters=[];
},filter:function(rec){
for(var x=0;x<this.filters.length;x++){
if((this.filters[x]["filter"])&&(!this.filters[x].filter(rec))||(rec.level<this.cutOffLevel)){
return false;
}
}
return true;
},addHandler:function(hdlr){
this.handlers.push(hdlr);
return this.handlers.length-1;
},handle:function(rec){
if((!this.filter(rec))||(rec.level<this.cutOffLevel)){
return false;
}
for(var x=0;x<this.handlers.length;x++){
if(this.handlers[x]["handle"]){
this.handlers[x].handle(rec);
}
}
return true;
},log:function(lvl,msg){
if((this.propagate)&&(this.parent)&&(this.parent.rec.level>=this.cutOffLevel)){
this.parent.log(lvl,msg);
return false;
}
this.handle(new dojo.logging.Record(lvl,msg));
return true;
},debug:function(msg){
return this.logType("DEBUG",this._argsToArr(arguments));
},info:function(msg){
return this.logType("INFO",this._argsToArr(arguments));
},warning:function(msg){
return this.logType("WARNING",this._argsToArr(arguments));
},error:function(msg){
return this.logType("ERROR",this._argsToArr(arguments));
},critical:function(msg){
return this.logType("CRITICAL",this._argsToArr(arguments));
},exception:function(msg,e,_2dd){
if(e){
var _2de=[e.name,(e.description||e.message)];
if(e.fileName){
_2de.push(e.fileName);
_2de.push("line "+e.lineNumber);
}
msg+=" "+_2de.join(" : ");
}
this.logType("ERROR",msg);
if(!_2dd){
throw e;
}
},logType:function(type,args){
return this.log.apply(this,[dojo.logging.log.getLevel(type),args]);
},warn:function(){
this.warning.apply(this,arguments);
},err:function(){
this.error.apply(this,arguments);
},crit:function(){
this.critical.apply(this,arguments);
}});
dojo.logging.LogHandler=function(_2e1){
this.cutOffLevel=(_2e1)?_2e1:0;
this.formatter=null;
this.data=[];
this.filters=[];
};
dojo.lang.extend(dojo.logging.LogHandler,{setFormatter:function(_2e2){
dojo.unimplemented("setFormatter");
},flush:function(){
},close:function(){
},handleError:function(){
dojo.deprecated("dojo.logging.LogHandler.handleError","use handle()","0.6");
},handle:function(_2e3){
if((this.filter(_2e3))&&(_2e3.level>=this.cutOffLevel)){
this.emit(_2e3);
}
},emit:function(_2e4){
dojo.unimplemented("emit");
}});
void (function(){
var _2e5=["setLevel","addFilter","removeFilterByIndex","removeFilter","removeAllFilters","filter"];
var tgt=dojo.logging.LogHandler.prototype;
var src=dojo.logging.Logger.prototype;
for(var x=0;x<_2e5.length;x++){
tgt[_2e5[x]]=src[_2e5[x]];
}
})();
dojo.logging.log=new dojo.logging.Logger();
dojo.logging.log.levels=[{"name":"DEBUG","level":1},{"name":"INFO","level":2},{"name":"WARNING","level":3},{"name":"ERROR","level":4},{"name":"CRITICAL","level":5}];
dojo.logging.log.loggers={};
dojo.logging.log.getLogger=function(name){
if(!this.loggers[name]){
this.loggers[name]=new dojo.logging.Logger();
this.loggers[name].parent=this;
}
return this.loggers[name];
};
dojo.logging.log.getLevelName=function(lvl){
for(var x=0;x<this.levels.length;x++){
if(this.levels[x].level==lvl){
return this.levels[x].name;
}
}
return null;
};
dojo.logging.log.getLevel=function(name){
for(var x=0;x<this.levels.length;x++){
if(this.levels[x].name.toUpperCase()==name.toUpperCase()){
return this.levels[x].level;
}
}
return null;
};
dojo.declare("dojo.logging.MemoryLogHandler",dojo.logging.LogHandler,{initializer:function(_2ee,_2ef,_2f0,_2f1){
dojo.logging.LogHandler.call(this,_2ee);
this.numRecords=(typeof djConfig["loggingNumRecords"]!="undefined")?djConfig["loggingNumRecords"]:((_2ef)?_2ef:-1);
this.postType=(typeof djConfig["loggingPostType"]!="undefined")?djConfig["loggingPostType"]:(_2f0||-1);
this.postInterval=(typeof djConfig["loggingPostInterval"]!="undefined")?djConfig["loggingPostInterval"]:(_2f0||-1);
},emit:function(_2f2){
if(!djConfig.isDebug){
return;
}
var _2f3=String(dojo.log.getLevelName(_2f2.level)+": "+_2f2.time.toLocaleTimeString())+": "+_2f2.message;
if(!dj_undef("println",dojo.hostenv)){
dojo.hostenv.println(_2f3,_2f2.msgArgs);
}
this.data.push(_2f2);
if(this.numRecords!=-1){
while(this.data.length>this.numRecords){
this.data.shift();
}
}
}});
dojo.logging.logQueueHandler=new dojo.logging.MemoryLogHandler(0,50,0,10000);
dojo.logging.log.addHandler(dojo.logging.logQueueHandler);
dojo.log=dojo.logging.log;
dojo.provide("dojo.logging.ConsoleLogger");
dojo.lang.extend(dojo.logging.MemoryLogHandler,{debug:function(){
dojo.hostenv.println.apply(this,arguments);
},info:function(){
dojo.hostenv.println.apply(this,arguments);
},warn:function(){
dojo.hostenv.println.apply(this,arguments);
},error:function(){
dojo.hostenv.println.apply(this,arguments);
},critical:function(){
dojo.hostenv.println.apply(this,arguments);
},emit:function(_2f4){
if(!djConfig.isDebug){
return;
}
var _2f5=null;
switch(_2f4.level){
case 1:
_2f5="debug";
break;
case 2:
_2f5="info";
break;
case 3:
_2f5="warn";
break;
case 4:
_2f5="error";
break;
case 5:
_2f5="critical";
break;
default:
_2f5="debug";
}
var _2f6=String(dojo.log.getLevelName(_2f4.level)+": "+_2f4.time.toLocaleTimeString())+": "+_2f4.message;
if(_2f4.msgArgs&&_2f4.msgArgs.length>0){
this[_2f5].call(this,_2f6,_2f4.msgArgs);
}else{
this[_2f5].call(this,_2f6);
}
this.data.push(_2f4);
if(this.numRecords!=-1){
while(this.data.length>this.numRecords){
this.data.shift();
}
}
}});
if(!dj_undef("console")&&!dj_undef("info",console)){
dojo.lang.extend(dojo.logging.MemoryLogHandler,{debug:function(){
console.debug.apply(this,arguments);
},info:function(){
console.info.apply(this,arguments);
},warn:function(){
console.warn.apply(this,arguments);
},error:function(){
console.error.apply(this,arguments);
},critical:function(){
console.error.apply(this,arguments);
}});
dojo.lang.extend(dojo.logging.Logger,{exception:function(msg,e,_2f9){
var args=[msg];
if(e){
msg+=" : "+e.name+" "+(e.description||e.message);
args.push(e);
}
this.logType("ERROR",args);
if(!_2f9){
throw e;
}
}});
}
dojo.provide("dojo.debug.console");
if(window.console){
if(console.info!=null){
dojo.hostenv.println=function(){
if(!djConfig.isDebug){
return;
}
console.info.apply(console,arguments);
};
dojo.debug=dojo.hostenv.println;
dojo.debugDeep=dojo.debug;
dojo.debugShallow=function(obj,_2fc,sort){
if(!djConfig.isDebug){
return;
}
_2fc=(_2fc!=false);
sort=(sort!=false);
if(obj==null||obj.constructor==null){
return dojo.debug(obj);
}
var type=obj.declaredClass;
if(type==null){
type=obj.constructor.toString().match(/function\s*(.*)\(/);
if(type){
type=type[1];
}
}
if(type){
if(type=="String"||type=="Number"){
return dojo.debug(type+": ",obj);
}
if(_2fc&&!sort){
var _2ff=obj;
}else{
var _300=[];
if(_2fc){
for(var prop in obj){
_300.push(prop);
}
}else{
for(var prop in obj){
if(typeof obj[prop]!="function"){
_300.push(prop);
}else{
dojo.debug(prop);
}
}
}
if(sort){
_300.sort();
}
var _2ff={};
dojo.lang.forEach(_300,function(prop){
_2ff[prop]=obj[prop];
});
}
return dojo.debug(type+": %o\n%2.o",obj,_2ff);
}
return dojo.debug(obj.constructor+": ",obj);
};
}else{
if(console.log!=null){
dojo.hostenv.println=function(){
if(!djConfig.isDebug){
return;
}
var args=dojo.lang.toArray(arguments);
console.log("DEBUG: "+args.join(" "));
};
dojo.debug=dojo.hostenv.println;
}else{
dojo.debug("dojo.debug.console requires Firebug > 0.4");
}
}
}else{
if(dojo.render.html.opera){
if(opera&&opera.postError){
dojo.hostenv.println=opera.postError;
}else{
dojo.debug("dojo.debug.Opera requires Opera > 8.0");
}
}
}
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,_305){
var dl=dojo.lang;
var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false};
switch(args.length){
case 0:
return;
case 1:
return;
case 2:
ao.srcFunc=args[0];
ao.adviceFunc=args[1];
break;
case 3:
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isString(args[1]))&&(dl.isString(args[2]))){
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
}else{
if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){
ao.adviceType="after";
ao.srcObj=args[0];
ao.srcFunc=args[1];
var _308=dl.nameAnonFunc(args[2],ao.adviceObj,_305);
ao.adviceFunc=_308;
}else{
if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){
ao.adviceType="after";
ao.srcObj=dj_global;
var _308=dl.nameAnonFunc(args[0],ao.srcObj,_305);
ao.srcFunc=_308;
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 _308=dl.nameAnonFunc(args[1],dj_global,_305);
ao.srcFunc=_308;
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 _308=dl.nameAnonFunc(args[3],dj_global,_305);
ao.adviceObj=dj_global;
ao.adviceFunc=_308;
}else{
if(dl.isObject(args[1])){
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=dj_global;
ao.adviceFunc=args[3];
}else{
if(dl.isObject(args[2])){
ao.srcObj=dj_global;
ao.srcFunc=args[1];
ao.adviceObj=args[2];
ao.adviceFunc=args[3];
}else{
ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global;
ao.srcFunc=args[1];
ao.adviceFunc=args[2];
ao.aroundFunc=args[3];
}
}
}
}
}
}
break;
case 6:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundFunc=args[5];
ao.aroundObj=dj_global;
break;
default:
ao.srcObj=args[1];
ao.srcFunc=args[2];
ao.adviceObj=args[3];
ao.adviceFunc=args[4];
ao.aroundObj=args[5];
ao.aroundFunc=args[6];
ao.once=args[7];
ao.delay=args[8];
ao.rate=args[9];
ao.adviceMsg=args[10];
break;
}
if(dl.isFunction(ao.aroundFunc)){
var _308=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_305);
ao.aroundFunc=_308;
}
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 _30a={};
for(var x in ao){
_30a[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);
}
_30a.srcObj=src;
mjps.push(dojo.event.connect.call(dojo.event,_30a));
});
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 _312;
if((arguments.length==1)&&(typeof a1=="object")){
_312=a1;
}else{
_312={srcObj:a1,srcFunc:a2};
}
_312.adviceFunc=function(){
var _313=[];
for(var x=0;x<arguments.length;x++){
_313.push(arguments[x]);
}
dojo.debug("("+_312.srcObj+")."+_312.srcFunc,":",_313.join(", "));
};
this.kwConnect(_312);
};
this.connectBefore=function(){
var args=["before"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectAround=function(){
var args=["around"];
for(var i=0;i<arguments.length;i++){
args.push(arguments[i]);
}
return this.connect.apply(this,args);
};
this.connectOnce=function(){
var ao=interpolateArgs(arguments,true);
ao.once=true;
return this.connect(ao);
};
this._kwConnectImpl=function(_31a,_31b){
var fn=(_31b)?"disconnect":"connect";
if(typeof _31a["srcFunc"]=="function"){
_31a.srcObj=_31a["srcObj"]||dj_global;
var _31d=dojo.lang.nameAnonFunc(_31a.srcFunc,_31a.srcObj,true);
_31a.srcFunc=_31d;
}
if(typeof _31a["adviceFunc"]=="function"){
_31a.adviceObj=_31a["adviceObj"]||dj_global;
var _31d=dojo.lang.nameAnonFunc(_31a.adviceFunc,_31a.adviceObj,true);
_31a.adviceFunc=_31d;
}
_31a.srcObj=_31a["srcObj"]||dj_global;
_31a.adviceObj=_31a["adviceObj"]||_31a["targetObj"]||dj_global;
_31a.adviceFunc=_31a["adviceFunc"]||_31a["targetFunc"];
return dojo.event[fn](_31a);
};
this.kwConnect=function(_31e){
return this._kwConnectImpl(_31e,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(_321){
return this._kwConnectImpl(_321,true);
};
};
dojo.event.MethodInvocation=function(_322,obj,args){
this.jp_=_322;
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,_32a){
this.object=obj||dj_global;
this.methodname=_32a;
this.methodfunc=this.object[_32a];
this.squelch=false;
};
dojo.event.MethodJoinPoint.getForMethod=function(obj,_32c){
if(!obj){
obj=dj_global;
}
if(!obj[_32c]){
obj[_32c]=function(){
};
if(!obj[_32c]){
dojo.raise("Cannot set do-nothing method on that object "+_32c);
}
}else{
if((!dojo.lang.isFunction(obj[_32c]))&&(!dojo.lang.isAlien(obj[_32c]))){
return null;
}
}
var _32d=_32c+"$joinpoint";
var _32e=_32c+"$joinpoint$method";
var _32f=obj[_32d];
if(!_32f){
var _330=false;
if(dojo.event["browser"]){
if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){
_330=true;
dojo.event.browser.addClobberNodeAttrs(obj,[_32d,_32e,_32c]);
}
}
var _331=obj[_32c].length;
obj[_32e]=obj[_32c];
_32f=obj[_32d]=new dojo.event.MethodJoinPoint(obj,_32e);
obj[_32c]=function(){
var args=[];
if((_330)&&(!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)&&(_330)&&(dojo.event.browser.isEvent(arguments[x]))){
args.push(dojo.event.browser.fixEvent(arguments[x],this));
}else{
args.push(arguments[x]);
}
}
}
return _32f.run.apply(_32f,args);
};
obj[_32c].__preJoinArity=_331;
}
return _32f;
};
dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){
this.object[this.methodname]=this.methodfunc;
this.before=[];
this.after=[];
this.around=[];
},disconnect:dojo.lang.forward("unintercept"),run:function(){
var obj=this.object||dj_global;
var args=arguments;
var _337=[];
for(var x=0;x<args.length;x++){
_337[x]=args[x];
}
var _339=function(marr){
if(!marr){
dojo.debug("Null argument to unrollAdvice()");
return;
}
var _33b=marr[0]||dj_global;
var _33c=marr[1];
if(!_33b[_33c]){
dojo.raise("function \""+_33c+"\" does not exist on \""+_33b+"\"");
}
var _33d=marr[2]||dj_global;
var _33e=marr[3];
var msg=marr[6];
var _340;
var to={args:[],jp_:this,object:obj,proceed:function(){
return _33b[_33c].apply(_33b,to.args);
}};
to.args=_337;
var _342=parseInt(marr[4]);
var _343=((!isNaN(_342))&&(marr[4]!==null)&&(typeof marr[4]!="undefined"));
if(marr[5]){
var rate=parseInt(marr[5]);
var cur=new Date();
var _346=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;
_339(mcpy);
},tod);
}
return;
}else{
marr.last=cur;
}
}
if(_33e){
_33d[_33e].call(_33d,to);
}else{
if((_343)&&((dojo.render.html)||(dojo.render.svg))){
dj_global["setTimeout"](function(){
if(msg){
_33b[_33c].call(_33b,to);
}else{
_33b[_33c].apply(_33b,args);
}
},_342);
}else{
if(msg){
_33b[_33c].call(_33b,to);
}else{
_33b[_33c].apply(_33b,args);
}
}
}
};
var _349=function(){
if(this.squelch){
try{
return _339.apply(this,arguments);
}
catch(e){
dojo.debug(e);
}
}else{
return _339.apply(this,arguments);
}
};
if((this["before"])&&(this.before.length>0)){
dojo.lang.forEach(this.before.concat(new Array()),_349);
}
var _34a;
try{
if((this["around"])&&(this.around.length>0)){
var mi=new dojo.event.MethodInvocation(this,obj,args);
_34a=mi.proceed();
}else{
if(this.methodfunc){
_34a=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()),_349);
}
return (this.methodfunc)?_34a: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"]);
},addAdvice:function(_34f,_350,_351,_352,_353,_354,once,_356,rate,_358){
var arr=this.getArr(_353);
if(!arr){
dojo.raise("bad this: "+this);
}
var ao=[_34f,_350,_351,_352,_356,rate,_358];
if(once){
if(this.hasAdvice(_34f,_350,_353,arr)>=0){
return;
}
}
if(_354=="first"){
arr.unshift(ao);
}else{
arr.push(ao);
}
},hasAdvice:function(_35b,_35c,_35d,arr){
if(!arr){
arr=this.getArr(_35d);
}
var ind=-1;
for(var x=0;x<arr.length;x++){
var aao=(typeof _35c=="object")?(new String(_35c)).toString():_35c;
var a1o=(typeof arr[x][1]=="object")?(new String(arr[x][1])).toString():arr[x][1];
if((arr[x][0]==_35b)&&(a1o==aao)){
ind=x;
}
}
return ind;
},removeAdvice:function(_363,_364,_365,once){
var arr=this.getArr(_365);
var ind=this.hasAdvice(_363,_364,_365,arr);
if(ind==-1){
return false;
}
while(ind!=-1){
arr.splice(ind,1);
if(once){
break;
}
ind=this.hasAdvice(_363,_364,_365,arr);
}
return true;
}});
dojo.provide("dojo.string");
dojo.provide("dojo.io.common");
dojo.io.transports=[];
dojo.io.hdlrFuncNames=["load","error","timeout"];
dojo.io.Request=function(url,_36a,_36b,_36c){
if((arguments.length==1)&&(arguments[0].constructor==Object)){
this.fromKwArgs(arguments[0]);
}else{
this.url=url;
if(_36a){
this.mimetype=_36a;
}
if(_36b){
this.transport=_36b;
}
if(arguments.length>=4){
this.changeUrl=_36c;
}
}
};
dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,_36f,_370){
},error:function(type,_372,_373,_374){
},timeout:function(type,_376,_377,_378){
},handle:function(type,data,_37b,_37c){
},timeoutSeconds:0,abort:function(){
},fromKwArgs:function(_37d){
if(_37d["url"]){
_37d.url=_37d.url.toString();
}
if(_37d["formNode"]){
_37d.formNode=dojo.byId(_37d.formNode);
}
if(!_37d["method"]&&_37d["formNode"]&&_37d["formNode"].method){
_37d.method=_37d["formNode"].method;
}
if(!_37d["handle"]&&_37d["handler"]){
_37d.handle=_37d.handler;
}
if(!_37d["load"]&&_37d["loaded"]){
_37d.load=_37d.loaded;
}
if(!_37d["changeUrl"]&&_37d["changeURL"]){
_37d.changeUrl=_37d.changeURL;
}
_37d.encoding=dojo.lang.firstValued(_37d["encoding"],djConfig["bindEncoding"],"");
_37d.sendTransport=dojo.lang.firstValued(_37d["sendTransport"],djConfig["ioSendTransport"],false);
var _37e=dojo.lang.isFunction;
for(var x=0;x<dojo.io.hdlrFuncNames.length;x++){
var fn=dojo.io.hdlrFuncNames[x];
if(_37d[fn]&&_37e(_37d[fn])){
continue;
}
if(_37d["handle"]&&_37e(_37d["handle"])){
_37d[fn]=_37d.handle;
}
}
dojo.lang.mixin(this,_37d);
}});
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(_385){
if(!(_385 instanceof dojo.io.Request)){
try{
_385=new dojo.io.Request(_385);
}
catch(e){
dojo.debug(e);
}
}
var _386="";
if(_385["transport"]){
_386=_385["transport"];
if(!this[_386]){
dojo.io.sendBindError(_385,"No dojo.io.bind() transport with name '"+_385["transport"]+"'.");
return _385;
}
if(!this[_386].canHandle(_385)){
dojo.io.sendBindError(_385,"dojo.io.bind() transport with name '"+_385["transport"]+"' cannot handle this type of request.");
return _385;
}
}else{
for(var x=0;x<dojo.io.transports.length;x++){
var tmp=dojo.io.transports[x];
if((this[tmp])&&(this[tmp].canHandle(_385))){
_386=tmp;
break;
}
}
if(_386==""){
dojo.io.sendBindError(_385,"None of the loaded transports for dojo.io.bind()"+" can handle the request.");
return _385;
}
}
this[_386].bind(_385);
_385.bindSuccess=true;
return _385;
};
dojo.io.sendBindError=function(_389,_38a){
if((typeof _389.error=="function"||typeof _389.handle=="function")&&(typeof setTimeout=="function"||typeof setTimeout=="object")){
var _38b=new dojo.io.Error(_38a);
setTimeout(function(){
_389[(typeof _389.error=="function")?"error":"handle"]("error",_38b,null,_389);
},50);
}else{
dojo.raise(_38a);
}
};
dojo.io.queueBind=function(_38c){
if(!(_38c instanceof dojo.io.Request)){
try{
_38c=new dojo.io.Request(_38c);
}
catch(e){
dojo.debug(e);
}
}
var _38d=_38c.load;
_38c.load=function(){
dojo.io._queueBindInFlight=false;
var ret=_38d.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
var _38f=_38c.error;
_38c.error=function(){
dojo.io._queueBindInFlight=false;
var ret=_38f.apply(this,arguments);
dojo.io._dispatchNextQueueBind();
return ret;
};
dojo.io._bindQueue.push(_38c);
dojo.io._dispatchNextQueueBind();
return _38c;
};
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,_392,last){
var enc=/utf/i.test(_392||"")?encodeURIComponent:dojo.string.encodeAscii;
var _395=[];
var _396=new Object();
for(var name in map){
var _398=function(elt){
var val=enc(name)+"="+enc(elt);
_395[(last==name)?"push":"unshift"](val);
};
if(!_396[name]){
var _39b=map[name];
if(dojo.lang.isArray(_39b)){
dojo.lang.forEach(_39b,_398);
}else{
_398(_39b);
}
}
}
return _395.join("&");
};
dojo.io.setIFrameSrc=function(_39c,src,_39e){
try{
var r=dojo.render.html;
if(!_39e){
if(r.safari){
_39c.location=src;
}else{
frames[_39c.name].location=src;
}
}else{
var idoc;
if(r.ie){
idoc=_39c.contentWindow.document;
}else{
if(r.safari){
idoc=_39c.document;
}else{
idoc=_39c.contentWindow;
}
}
if(!idoc){
_39c.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(_3a1,hash){
var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1);
return _3a1.replace(/\%\{(\w+)\}/g,function(_3a4,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 _3a7=str.split(" ");
for(var i=0;i<_3a7.length;i++){
_3a7[i]=_3a7[i].charAt(0).toUpperCase()+_3a7[i].substring(1);
}
return _3a7.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 _3ac=escape(str);
var _3ad,re=/%u([0-9A-F]{4})/i;
while((_3ad=_3ac.match(re))){
var num=Number("0x"+_3ad[1]);
var _3b0=escape("&#"+num+";");
ret+=_3ac.substring(0,_3ad.index)+_3b0;
_3ac=_3ac.substring(_3ad.index+_3ad[0].length);
}
ret+=_3ac.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,_3b5){
str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
if(!_3b5){
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,_3be){
if(_3be){
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,_3c2,_3c3){
if(_3c3){
str=str.toLowerCase();
_3c2=_3c2.toLowerCase();
}
return str.indexOf(_3c2)==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,_3c9){
if(_3c9=="\n"){
text=text.replace(/\r\n/g,"\n");
text=text.replace(/\r/g,"\n");
}else{
if(_3c9=="\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,_3cb){
var _3cc=[];
for(var i=0,_3ce=0;i<str.length;i++){
if(str.charAt(i)=="\\"){
i++;
continue;
}
if(str.charAt(i)==_3cb){
_3cc.push(str.substring(_3ce,i));
_3ce=i+1;
}
}
_3cc.push(str.substr(_3ce));
return _3cc;
};
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 _3d0=dojo.doc();
do{
var id="dj_unique_"+(++arguments.callee._idIncrement);
}while(_3d0.getElementById(id));
return id;
};
dojo.dom.getUniqueId._idIncrement=0;
dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_3d2,_3d3){
var node=_3d2.firstChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.nextSibling;
}
if(_3d3&&node&&node.tagName&&node.tagName.toLowerCase()!=_3d3.toLowerCase()){
node=dojo.dom.nextElement(node,_3d3);
}
return node;
};
dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_3d5,_3d6){
var node=_3d5.lastChild;
while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){
node=node.previousSibling;
}
if(_3d6&&node&&node.tagName&&node.tagName.toLowerCase()!=_3d6.toLowerCase()){
node=dojo.dom.prevElement(node,_3d6);
}
return node;
};
dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_3d9){
if(!node){
return null;
}
do{
node=node.nextSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_3d9&&_3d9.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.nextElement(node,_3d9);
}
return node;
};
dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_3db){
if(!node){
return null;
}
if(_3db){
_3db=_3db.toLowerCase();
}
do{
node=node.previousSibling;
}while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE);
if(node&&_3db&&_3db.toLowerCase()!=node.tagName.toLowerCase()){
return dojo.dom.prevElement(node,_3db);
}
return node;
};
dojo.dom.moveChildren=function(_3dc,_3dd,trim){
var _3df=0;
if(trim){
while(_3dc.hasChildNodes()&&_3dc.firstChild.nodeType==dojo.dom.TEXT_NODE){
_3dc.removeChild(_3dc.firstChild);
}
while(_3dc.hasChildNodes()&&_3dc.lastChild.nodeType==dojo.dom.TEXT_NODE){
_3dc.removeChild(_3dc.lastChild);
}
}
while(_3dc.hasChildNodes()){
_3dd.appendChild(_3dc.firstChild);
_3df++;
}
return _3df;
};
dojo.dom.copyChildren=function(_3e0,_3e1,trim){
var _3e3=_3e0.cloneNode(true);
return this.moveChildren(_3e3,_3e1,trim);
};
dojo.dom.replaceChildren=function(node,_3e5){
var _3e6=[];
if(dojo.render.html.ie){
for(var i=0;i<node.childNodes.length;i++){
_3e6.push(node.childNodes[i]);
}
}
dojo.dom.removeChildren(node);
node.appendChild(_3e5);
for(var i=0;i<_3e6.length;i++){
dojo.dom.destroyNode(_3e6[i]);
}
};
dojo.dom.removeChildren=function(node){
var _3e9=node.childNodes.length;
while(node.hasChildNodes()){
dojo.dom.removeNode(node.firstChild);
}
return _3e9;
};
dojo.dom.replaceNode=function(node,_3eb){
return node.parentNode.replaceChild(_3eb,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,_3ef,_3f0){
var _3f1=[];
var _3f2=(_3ef&&(_3ef instanceof Function||typeof _3ef=="function"));
while(node){
if(!_3f2||_3ef(node)){
_3f1.push(node);
}
if(_3f0&&_3f1.length>0){
return _3f1[0];
}
node=node.parentNode;
}
if(_3f0){
return null;
}
return _3f1;
};
dojo.dom.getAncestorsByTag=function(node,tag,_3f5){
tag=tag.toLowerCase();
return dojo.dom.getAncestors(node,function(el){
return ((el.tagName)&&(el.tagName.toLowerCase()==tag));
},_3f5);
};
dojo.dom.getFirstAncestorByTag=function(node,tag){
return dojo.dom.getAncestorsByTag(node,tag,true);
};
dojo.dom.isDescendantOf=function(node,_3fa,_3fb){
if(_3fb&&node){
node=node.parentNode;
}
while(node){
if(node==_3fa){
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 _3fe=dojo.doc();
if(!dj_undef("ActiveXObject")){
var _3ff=["MSXML2","Microsoft","MSXML","MSXML3"];
for(var i=0;i<_3ff.length;i++){
try{
doc=new ActiveXObject(_3ff[i]+".XMLDOM");
}
catch(e){
}
if(doc){
break;
}
}
}else{
if((_3fe.implementation)&&(_3fe.implementation.createDocument)){
doc=_3fe.implementation.createDocument("","",null);
}
}
return doc;
};
dojo.dom.createDocumentFromText=function(str,_402){
if(!_402){
_402="text/xml";
}
if(!dj_undef("DOMParser")){
var _403=new DOMParser();
return _403.parseFromString(str,_402);
}else{
if(!dj_undef("ActiveXObject")){
var _404=dojo.dom.createDocument();
if(_404){
_404.async=false;
_404.loadXML(str);
return _404;
}else{
dojo.debug("toXml didn't work?");
}
}else{
var _405=dojo.doc();
if(_405.createElement){
var tmp=_405.createElement("xml");
tmp.innerHTML=str;
if(_405.implementation&&_405.implementation.createDocument){
var _407=_405.implementation.createDocument("foo","",null);
for(var i=0;i<tmp.childNodes.length;i++){
_407.importNode(tmp.childNodes.item(i),true);
}
return _407;
}
return ((tmp.document)&&(tmp.document.firstChild?tmp.document.firstChild:tmp));
}
}
}
return null;
};
dojo.dom.prependChild=function(node,_40a){
if(_40a.firstChild){
_40a.insertBefore(node,_40a.firstChild);
}else{
_40a.appendChild(node);
}
return true;
};
dojo.dom.insertBefore=function(node,ref,_40d){
if((_40d!=true)&&(node===ref||node.nextSibling===ref)){
return false;
}
var _40e=ref.parentNode;
_40e.insertBefore(node,ref);
return true;
};
dojo.dom.insertAfter=function(node,ref,_411){
var pn=ref.parentNode;
if(ref==pn.lastChild){
if((_411!=true)&&(node===ref)){
return false;
}
pn.appendChild(node);
}else{
return this.insertBefore(node,ref.nextSibling,_411);
}
return true;
};
dojo.dom.insertAtPosition=function(node,ref,_415){
if((!node)||(!ref)||(!_415)){
return false;
}
switch(_415.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,_417,_418){
var _419=_417.childNodes;
if(!_419.length||_419.length==_418){
_417.appendChild(node);
return true;
}
if(_418==0){
return dojo.dom.prependChild(node,_417);
}
return dojo.dom.insertAfter(node,_419[_418-1]);
};
dojo.dom.textContent=function(node,text){
if(arguments.length>1){
var _41c=dojo.doc();
dojo.dom.replaceChildren(node,_41c.createTextNode(text));
return text;
}else{
if(node.textContent!=undefined){
return node.textContent;
}
var _41d="";
if(node==null){
return _41d;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
_41d+=dojo.dom.textContent(node.childNodes[i]);
break;
case 3:
case 2:
case 4:
_41d+=node.childNodes[i].nodeValue;
break;
default:
break;
}
}
return _41d;
}
};
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,_423,_424,_425){
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(_423,_424,_425);
}else{
var _426=elem.ownerDocument;
var _427=_426.createNode(2,_424,_423);
_427.nodeValue=_425;
elem.setAttributeNode(_427);
}
};
dojo.provide("dojo.undo.browser");
try{
if((!djConfig["preventBackButtonFix"])&&(!dojo.hostenv.post_load_)){
document.write("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>");
}
}
catch(e){
}
if(dojo.render.html.opera){
dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work.");
}
dojo.undo.browser={initialHref:(!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){
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 _42c=args["back"]||args["backButton"]||args["handle"];
var tcb=function(_42e){
if(window.location.hash!=""){
setTimeout("window.location.href = '"+hash+"';",1);
}
_42c.apply(this,[_42e]);
};
if(args["back"]){
args.back=tcb;
}else{
if(args["backButton"]){
args.backButton=tcb;
}else{
if(args["handle"]){
args.handle=tcb;
}
}
}
var _42f=args["forward"]||args["forwardButton"]||args["handle"];
var tfw=function(_431){
if(window.location.hash!=""){
window.location.href=hash;
}
if(_42f){
_42f.apply(this,[_431]);
}
};
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,_434){
if(!dojo.render.html.opera){
var _435=this._getUrlQuery(_434.href);
if(_435==null){
if(this.historyStack.length==1){
this.handleBackButton();
}
return;
}
if(this.moveForward){
this.moveForward=false;
return;
}
if(this.historyStack.length>=2&&_435==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){
this.handleBackButton();
}else{
if(this.forwardStack.length>0&&_435==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){
this.handleForwardButton();
}
}
}
},handleBackButton:function(){
var _436=this.historyStack.pop();
if(!_436){
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(_436);
},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 _43d=url.split("?");
if(_43d.length<2){
return null;
}else{
return _43d[1];
}
},_loadIframeHistory:function(){
var url=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 _440=false;
var _441=node.getElementsByTagName("input");
dojo.lang.forEach(_441,function(_442){
if(_440){
return;
}
if(_442.getAttribute("type")=="file"){
_440=true;
}
});
return _440;
};
dojo.io.formHasFile=function(_443){
return dojo.io.checkChildrenForFile(_443);
};
dojo.io.updateNode=function(node,_445){
node=dojo.byId(node);
var args=_445;
if(dojo.lang.isString(_445)){
args={url:_445};
}
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(_44c,_44d,_44e){
if((!_44c)||(!_44c.tagName)||(!_44c.tagName.toLowerCase()=="form")){
dojo.raise("Attempted to encode a non-form element.");
}
if(!_44e){
_44e=dojo.io.formFilter;
}
var enc=/utf/i.test(_44d||"")?encodeURIComponent:dojo.string.encodeAscii;
var _450=[];
for(var i=0;i<_44c.elements.length;i++){
var elm=_44c.elements[i];
if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_44e(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){
_450.push(name+"="+enc(elm.options[j].value));
}
}
}else{
if(dojo.lang.inArray(["radio","checkbox"],type)){
if(elm.checked){
_450.push(name+"="+enc(elm.value));
}
}else{
_450.push(name+"="+enc(elm.value));
}
}
}
var _456=_44c.getElementsByTagName("input");
for(var i=0;i<_456.length;i++){
var _457=_456[i];
if(_457.type.toLowerCase()=="image"&&_457.form==_44c&&_44e(_457)){
var name=enc(_457.name);
_450.push(name+"="+enc(_457.value));
_450.push(name+".x=0");
_450.push(name+".y=0");
}
}
return _450.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 _45d=form.getElementsByTagName("input");
for(var i=0;i<_45d.length;i++){
var _45e=_45d[i];
if(_45e.type.toLowerCase()=="image"&&_45e.form==form){
this.connect(_45e,"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 _465=false;
if(node.disabled||!node.name){
_465=false;
}else{
if(dojo.lang.inArray(["submit","button","image"],type)){
if(!this.clickedButton){
this.clickedButton=node;
}
_465=node==this.clickedButton;
}else{
_465=!dojo.lang.inArray(["file","submit","reset","button"],type);
}
}
return _465;
},connect:function(_466,_467,_468){
if(dojo.evalObjPath("dojo.event.connect")){
dojo.event.connect(_466,_467,this,_468);
}else{
var fcn=dojo.lang.hitch(this,_468);
_466[_467]=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 _46b=this;
var _46c={};
this.useCache=false;
this.preventCache=false;
function getCacheKey(url,_46e,_46f){
return url+"|"+_46e+"|"+_46f.toLowerCase();
}
function addToCache(url,_471,_472,http){
_46c[getCacheKey(url,_471,_472)]=http;
}
function getFromCache(url,_475,_476){
return _46c[getCacheKey(url,_475,_476)];
}
this.clearCache=function(){
_46c={};
};
function doLoad(_477,http,url,_47a,_47b){
if(((http.status>=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){
var ret;
if(_477.method.toLowerCase()=="head"){
var _47d=http.getAllResponseHeaders();
ret={};
ret.toString=function(){
return _47d;
};
var _47e=_47d.split(/[\r\n]+/g);
for(var i=0;i<_47e.length;i++){
var pair=_47e[i].match(/^([^:]+)\s*:\s*(.+)$/i);
if(pair){
ret[pair[1]]=pair[2];
}
}
}else{
if(_477.mimetype=="text/javascript"){
try{
ret=dj_eval(http.responseText);
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=null;
}
}else{
if(_477.mimetype=="text/json"||_477.mimetype=="application/json"){
try{
ret=dj_eval("("+http.responseText+")");
}
catch(e){
dojo.debug(e);
dojo.debug(http.responseText);
ret=false;
}
}else{
if((_477.mimetype=="application/xml")||(_477.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(_47b){
addToCache(url,_47a,_477.method,http);
}
_477[(typeof _477.load=="function")?"load":"handle"]("load",ret,http,_477);
}else{
var _481=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText);
_477[(typeof _477.error=="function")?"error":"handle"]("error",_481,http,_477);
}
}
function setHeaders(http,_483){
if(_483["headers"]){
for(var _484 in _483["headers"]){
if(_484.toLowerCase()=="content-type"&&!_483["contentType"]){
_483["contentType"]=_483["headers"][_484];
}else{
http.setRequestHeader(_484,_483["headers"][_484]);
}
}
}
}
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&&!_46b._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 _488=new dojo.io.Error("XMLHttpTransport.watchInFlight Error: "+e);
tif.req[(typeof tif.req.error=="function")?"error":"handle"]("error",_488,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 _489=dojo.hostenv.getXmlhttpObject()?true:false;
this.canHandle=function(_48a){
return _489&&dojo.lang.inArray(["text/plain","text/html","application/xml","text/xml","text/javascript","text/json","application/json"],(_48a["mimetype"].toLowerCase()||""))&&!(_48a["formNode"]&&dojo.io.formHasFile(_48a["formNode"]));
};
this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F";
this.bind=function(_48b){
if(!_48b["url"]){
if(!_48b["formNode"]&&(_48b["backButton"]||_48b["back"]||_48b["changeUrl"]||_48b["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(_48b);
return true;
}
}
var url=_48b.url;
var _48d="";
if(_48b["formNode"]){
var ta=_48b.formNode.getAttribute("action");
if((ta)&&(!_48b["url"])){
url=ta;
}
var tp=_48b.formNode.getAttribute("method");
if((tp)&&(!_48b["method"])){
_48b.method=tp;
}
_48d+=dojo.io.encodeForm(_48b.formNode,_48b.encoding,_48b["formFilter"]);
}
if(url.indexOf("#")>-1){
dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url);
url=url.split("#")[0];
}
if(_48b["file"]){
_48b.method="post";
}
if(!_48b["method"]){
_48b.method="get";
}
if(_48b.method.toLowerCase()=="get"){
_48b.multipart=false;
}else{
if(_48b["file"]){
_48b.multipart=true;
}else{
if(!_48b["multipart"]){
_48b.multipart=false;
}
}
}
if(_48b["backButton"]||_48b["back"]||_48b["changeUrl"]){
dojo.undo.browser.addToHistory(_48b);
}
var _490=_48b["content"]||{};
if(_48b.sendTransport){
_490["dojo.transport"]="xmlhttp";
}
do{
if(_48b.postContent){
_48d=_48b.postContent;
break;
}
if(_490){
_48d+=dojo.io.argsFromMap(_490,_48b.encoding);
}
if(_48b.method.toLowerCase()=="get"||!_48b.multipart){
break;
}
var t=[];
if(_48d.length){
var q=_48d.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(_48b.file){
if(dojo.lang.isArray(_48b.file)){
for(var i=0;i<_48b.file.length;++i){
var o=_48b.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=_48b.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+"--","");
_48d=t.join("\r\n");
}
}while(false);
var _496=_48b["sync"]?false:true;
var _497=_48b["preventCache"]||(this.preventCache==true&&_48b["preventCache"]!=false);
var _498=_48b["useCache"]==true||(this.useCache==true&&_48b["useCache"]!=false);
if(!_497&&_498){
var _499=getFromCache(url,_48d,_48b.method);
if(_499){
doLoad(_48b,_499,url,_48d,false);
return;
}
}
var http=dojo.hostenv.getXmlhttpObject(_48b);
var _49b=false;
if(_496){
var _49c=this.inFlight.push({"req":_48b,"http":http,"url":url,"query":_48d,"useCache":_498,"startTime":_48b.timeoutSeconds?(new Date()).getTime():0});
this.startWatchingInFlight();
}else{
_46b._blockAsync=true;
}
if(_48b.method.toLowerCase()=="post"){
if(!_48b.user){
http.open("POST",url,_496);
}else{
http.open("POST",url,_496,_48b.user,_48b.password);
}
setHeaders(http,_48b);
http.setRequestHeader("Content-Type",_48b.multipart?("multipart/form-data; boundary="+this.multipartBoundary):(_48b.contentType||"application/x-www-form-urlencoded"));
try{
http.send(_48d);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_48b,{status:404},url,_48d,_498);
}
}else{
var _49d=url;
if(_48d!=""){
_49d+=(_49d.indexOf("?")>-1?"&":"?")+_48d;
}
if(_497){
_49d+=(dojo.string.endsWithAny(_49d,"?","&")?"":(_49d.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf();
}
if(!_48b.user){
http.open(_48b.method.toUpperCase(),_49d,_496);
}else{
http.open(_48b.method.toUpperCase(),_49d,_496,_48b.user,_48b.password);
}
setHeaders(http,_48b);
try{
http.send(null);
}
catch(e){
if(typeof http.abort=="function"){
http.abort();
}
doLoad(_48b,{status:404},url,_48d,_498);
}
}
if(!_496){
doLoad(_48b,http,url,_48d,_498);
_46b._blockAsync=false;
}
_48b.abort=function(){
try{
http._aborted=true;
}
catch(e){
}
return http.abort();
};
return;
};
dojo.io.transports.addTransport("XMLHTTPTransport");
};
}
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_49e){
this.pairs=[];
this.returnWrappers=_49e||false;
};
dojo.lang.extend(dojo.AdapterRegistry,{register:function(name,_4a0,wrap,_4a2,_4a3){
var type=(_4a3)?"unshift":"push";
this.pairs[type]([name,_4a0,wrap,_4a2]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
dojo.provide("dojo.json");
dojo.json={jsonRegistry:new dojo.AdapterRegistry(),register:function(name,_4ab,wrap,_4ad){
dojo.json.jsonRegistry.register(name,_4ab,wrap,_4ad);
},evalJson:function(json){
try{
return eval("("+json+")");
}
catch(e){
dojo.debug(e);
return json;
}
},serialize:function(o){
var _4b0=typeof (o);
if(_4b0=="undefined"){
return "undefined";
}else{
if((_4b0=="number")||(_4b0=="boolean")){
return o+"";
}else{
if(o===null){
return "null";
}
}
}
if(_4b0=="string"){
return dojo.string.escapeString(o);
}
var me=arguments.callee;
var _4b2;
if(typeof (o.__json__)=="function"){
_4b2=o.__json__();
if(o!==_4b2){
return me(_4b2);
}
}
if(typeof (o.json)=="function"){
_4b2=o.json();
if(o!==_4b2){
return me(_4b2);
}
}
if(_4b0!="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;
_4b2=dojo.json.jsonRegistry.match(o);
return me(_4b2);
}
catch(e){
}
if(_4b0=="function"){
return null;
}
res=[];
for(var k in o){
var _4b7;
if(typeof (k)=="number"){
_4b7="\""+k+"\"";
}else{
if(typeof (k)=="string"){
_4b7=dojo.string.escapeString(k);
}else{
continue;
}
}
val=me(o[k]);
if(typeof (val)!="string"){
continue;
}
res.push(_4b7+":"+val);
}
return "{"+res.join(",")+"}";
}};
dojo.provide("dojo.lang.timing.Timer");
dojo.lang.timing.Timer=function(_4b8){
this.timer=null;
this.isRunning=false;
this.interval=_4b8;
this.onStart=null;
this.onStop=null;
};
dojo.extend(dojo.lang.timing.Timer,{onTick:function(){
},setInterval:function(_4b9){
if(this.isRunning){
dj_global.clearInterval(this.timer);
}
this.interval=_4b9;
if(this.isRunning){
this.timer=dj_global.setInterval(dojo.lang.hitch(this,"onTick"),this.interval);
}
},start:function(){
if(typeof this.onStart=="function"){
this.onStart();
}
this.isRunning=true;
this.timer=dj_global.setInterval(dojo.lang.hitch(this,"onTick"),this.interval);
},stop:function(){
if(typeof this.onStop=="function"){
this.onStop();
}
this.isRunning=false;
dj_global.clearInterval(this.timer);
}});
dojo.provide("dojo.lang.type");
dojo.lang.whatAmI=function(_4ba){
dojo.deprecated("dojo.lang.whatAmI","use dojo.lang.getType instead","0.5");
return dojo.lang.getType(_4ba);
};
dojo.lang.whatAmI.custom={};
dojo.lang.getType=function(_4bb){
try{
if(dojo.lang.isArray(_4bb)){
return "array";
}
if(dojo.lang.isFunction(_4bb)){
return "function";
}
if(dojo.lang.isString(_4bb)){
return "string";
}
if(dojo.lang.isNumber(_4bb)){
return "number";
}
if(dojo.lang.isBoolean(_4bb)){
return "boolean";
}
if(dojo.lang.isAlien(_4bb)){
return "alien";
}
if(dojo.lang.isUndefined(_4bb)){
return "undefined";
}
for(var name in dojo.lang.whatAmI.custom){
if(dojo.lang.whatAmI.custom[name](_4bb)){
return name;
}
}
if(dojo.lang.isObject(_4bb)){
return "object";
}
}
catch(e){
}
return "unknown";
};
dojo.lang.isNumeric=function(_4bd){
return (!isNaN(_4bd)&&isFinite(_4bd)&&(_4bd!=null)&&!dojo.lang.isBoolean(_4bd)&&!dojo.lang.isArray(_4bd)&&!/^\s*$/.test(_4bd));
};
dojo.lang.isBuiltIn=function(_4be){
return (dojo.lang.isArray(_4be)||dojo.lang.isFunction(_4be)||dojo.lang.isString(_4be)||dojo.lang.isNumber(_4be)||dojo.lang.isBoolean(_4be)||(_4be==null)||(_4be instanceof Error)||(typeof _4be=="error"));
};
dojo.lang.isPureObject=function(_4bf){
return ((_4bf!=null)&&dojo.lang.isObject(_4bf)&&_4bf.constructor==Object);
};
dojo.lang.isOfType=function(_4c0,type,_4c2){
var _4c3=false;
if(_4c2){
_4c3=_4c2["optional"];
}
if(_4c3&&((_4c0===null)||dojo.lang.isUndefined(_4c0))){
return true;
}
if(dojo.lang.isArray(type)){
var _4c4=type;
for(var i in _4c4){
var _4c6=_4c4[i];
if(dojo.lang.isOfType(_4c0,_4c6)){
return true;
}
}
return false;
}else{
if(dojo.lang.isString(type)){
type=type.toLowerCase();
}
switch(type){
case Array:
case "array":
return dojo.lang.isArray(_4c0);
case Function:
case "function":
return dojo.lang.isFunction(_4c0);
case String:
case "string":
return dojo.lang.isString(_4c0);
case Number:
case "number":
return dojo.lang.isNumber(_4c0);
case "numeric":
return dojo.lang.isNumeric(_4c0);
case Boolean:
case "boolean":
return dojo.lang.isBoolean(_4c0);
case Object:
case "object":
return dojo.lang.isObject(_4c0);
case "pureobject":
return dojo.lang.isPureObject(_4c0);
case "builtin":
return dojo.lang.isBuiltIn(_4c0);
case "alien":
return dojo.lang.isAlien(_4c0);
case "undefined":
return dojo.lang.isUndefined(_4c0);
case null:
case "null":
return (_4c0===null);
case "optional":
dojo.deprecated("dojo.lang.isOfType(value, [type, \"optional\"])","use dojo.lang.isOfType(value, type, {optional: true} ) instead","0.5");
return ((_4c0===null)||dojo.lang.isUndefined(_4c0));
default:
if(dojo.lang.isFunction(type)){
return (_4c0 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 _4c8=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_4c8[i++]];
}while(i<_4c8.length&&obj);
return (obj!=dj_global)?obj:null;
};
dojo.lang.doesObjectExist=function(str){
var _4cc=str.split("."),i=0,obj=dj_global;
do{
obj=obj[_4cc[i++]];
}while(i<_4cc.length&&obj);
return (obj&&obj!=dj_global);
};
dojo.provide("dojo.lang.assert");
dojo.lang.assert=function(_4cf,_4d0){
if(!_4cf){
var _4d1="An assert statement failed.\n"+"The method dojo.lang.assert() was called with a 'false' value.\n";
if(_4d0){
_4d1+="Here's the assert message:\n"+_4d0+"\n";
}
throw new Error(_4d1);
}
};
dojo.lang.assertType=function(_4d2,type,_4d4){
if(dojo.lang.isString(_4d4)){
dojo.deprecated("dojo.lang.assertType(value, type, \"message\")","use dojo.lang.assertType(value, type) instead","0.5");
}
if(!dojo.lang.isOfType(_4d2,type,_4d4)){
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(_4d5,_4d6,_4d7){
var key;
if(!_4d7){
if(!dojo.lang.assertValidKeywords._errorMessage){
dojo.lang.assertValidKeywords._errorMessage="In dojo.lang.assertValidKeywords(), found invalid keyword:";
}
_4d7=dojo.lang.assertValidKeywords._errorMessage;
}
if(dojo.lang.isArray(_4d6)){
for(key in _4d5){
if(!dojo.lang.inArray(_4d6,key)){
dojo.lang.assert(false,_4d7+" "+key);
}
}
}else{
for(key in _4d5){
if(!(key in _4d6)){
dojo.lang.assert(false,_4d7+" "+key);
}
}
}
};
dojo.provide("dojo.lang.repr");
dojo.lang.reprRegistry=new dojo.AdapterRegistry();
dojo.lang.registerRepr=function(name,_4da,wrap,_4dc){
dojo.lang.reprRegistry.register(name,_4da,wrap,_4dc);
};
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.provide("dojo.lang.*");
dojo.provide("dojo.event.topic");
dojo.event.topic=new function(){
this.topics={};
this.getTopic=function(_4e2){
if(!this.topics[_4e2]){
this.topics[_4e2]=new this.TopicImpl(_4e2);
}
return this.topics[_4e2];
};
this.registerPublisher=function(_4e3,obj,_4e5){
var _4e3=this.getTopic(_4e3);
_4e3.registerPublisher(obj,_4e5);
};
this.subscribe=function(_4e6,obj,_4e8){
var _4e6=this.getTopic(_4e6);
_4e6.subscribe(obj,_4e8);
};
this.unsubscribe=function(_4e9,obj,_4eb){
var _4e9=this.getTopic(_4e9);
_4e9.unsubscribe(obj,_4eb);
};
this.destroy=function(_4ec){
this.getTopic(_4ec).destroy();
delete this.topics[_4ec];
};
this.publishApply=function(_4ed,args){
var _4ed=this.getTopic(_4ed);
_4ed.sendMessage.apply(_4ed,args);
};
this.publish=function(_4ef,_4f0){
var _4ef=this.getTopic(_4ef);
var args=[];
for(var x=1;x<arguments.length;x++){
args.push(arguments[x]);
}
_4ef.sendMessage.apply(_4ef,args);
};
};
dojo.event.topic.TopicImpl=function(_4f3){
this.topicName=_4f3;
this.subscribe=function(_4f4,_4f5){
var tf=_4f5||_4f4;
var to=(!_4f5)?dj_global:_4f4;
return dojo.event.kwConnect({srcObj:this,srcFunc:"sendMessage",adviceObj:to,adviceFunc:tf});
};
this.unsubscribe=function(_4f8,_4f9){
var tf=(!_4f9)?_4f8:_4f9;
var to=(!_4f9)?null:_4f8;
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(_4fc){
this._getJoinPoint().squelch=_4fc;
};
this.destroy=function(){
this._getJoinPoint().disconnect();
};
this.registerPublisher=function(_4fd,_4fe){
dojo.event.connect(_4fd,_4fe,this,"sendMessage");
};
this.sendMessage=function(_4ff){
};
};
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(_502){
var na;
var tna;
if(_502){
tna=_502.all||_502.getElementsByTagName("*");
na=[_502];
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 _506={};
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 _50b=0;
this.normalizedEventName=function(_50c){
switch(_50c){
case "CheckboxStateChange":
case "DOMAttrModified":
case "DOMMenuItemActive":
case "DOMMenuItemInactive":
case "DOMMouseScroll":
case "DOMNodeInserted":
case "DOMNodeRemoved":
case "RadioStateChange":
return _50c;
break;
default:
return _50c.toLowerCase();
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,_510){
if(!dojo.render.html.ie){
return;
}
this.addClobberNode(node);
for(var x=0;x<_510.length;x++){
node.__clobberAttrs__.push(_510[x]);
}
};
this.removeListener=function(node,_513,fp,_515){
if(!_515){
var _515=false;
}
_513=dojo.event.browser.normalizedEventName(_513);
if((_513=="onkey")||(_513=="key")){
if(dojo.render.html.ie){
this.removeListener(node,"onkeydown",fp,_515);
}
_513="onkeypress";
}
if(_513.substr(0,2)=="on"){
_513=_513.substr(2);
}
if(node.removeEventListener){
node.removeEventListener(_513,fp,_515);
}
};
this.addListener=function(node,_517,fp,_519,_51a){
if(!node){
return;
}
if(!_519){
var _519=false;
}
_517=dojo.event.browser.normalizedEventName(_517);
if((_517=="onkey")||(_517=="key")){
if(dojo.render.html.ie){
this.addListener(node,"onkeydown",fp,_519,_51a);
}
_517="onkeypress";
}
if(_517.substr(0,2)!="on"){
_517="on"+_517;
}
if(!_51a){
var _51b=function(evt){
if(!evt){
evt=window.event;
}
var ret=fp(dojo.event.browser.fixEvent(evt,this));
if(_519){
dojo.event.browser.stopEvent(evt);
}
return ret;
};
}else{
_51b=fp;
}
if(node.addEventListener){
node.addEventListener(_517.substr(2),_51b,_519);
return _51b;
}else{
if(typeof node[_517]=="function"){
var _51e=node[_517];
node[_517]=function(e){
_51e(e);
return _51b(e);
};
}else{
node[_517]=_51b;
}
if(dojo.render.html.ie){
this.addClobberNodeAttrs(node,[_517]);
}
return _51b;
}
};
this.isEvent=function(obj){
return (typeof obj!="undefined")&&(obj)&&(typeof Event!="undefined")&&(obj.eventPhase);
};
this.currentEvent=null;
this.callListener=function(_521,_522){
if(typeof _521!="function"){
dojo.raise("listener not a function: "+_521);
}
dojo.event.browser.currentEvent.currentTarget=_522;
return _521.call(_522,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,_525){
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 _527=evt.keyCode;
if(_527>=65&&_527<=90&&evt.shiftKey==false){
_527+=32;
}
if(_527>=1&&_527<=26&&evt.ctrlKey){
_527+=96;
}
evt.key=String.fromCharCode(_527);
}
}
}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 _527=evt.which;
if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){
_527+=32;
}
evt.key=String.fromCharCode(_527);
}
}
}
}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=(_525?_525: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 _529=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;
if(!evt.pageX){
evt.pageX=evt.clientX+(_529.scrollLeft||0);
}
if(!evt.pageY){
evt.pageY=evt.clientY+(_529.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.provide("dojo.event.*");
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,_52c,_52d){
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(_531){
if((_531==null)||(typeof _531=="undefined")){
return false;
}
return /^[0-9A-Za-z_]*$/.test(_531);
}});
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,_533){
this._providers[this._providers.length]=_533;
this._providers[name]=_533;
};
this.setProvider=function(_534){
};
this.autodetect=function(){
if(this._initialized==true){
return;
}
var _535=null;
for(var i=0;i<this._providers.length;i++){
_535=this._providers[i];
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==false&&_535.getType()==djConfig["forceStorageProvider"]){
_535.isAvailable();
break;
}else{
if(dojo.lang.isUndefined(djConfig["forceStorageProvider"])==true&&_535.isAvailable()){
break;
}
}
}
if(_535==null){
this._initialized=true;
this.available=false;
this.currentProvider=null;
dojo.raise("No storage provider found for this platform");
}
this.currentProvider=_535;
for(var i in _535){
dojo.storage[i]=_535[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(_537){
try{
var _538=eval("new "+_537+"()");
var _539=_538.isAvailable();
if(_539==null||typeof _539=="undefined"){
return false;
}
return _539;
}
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 _53d=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;
}
_53d+=s.length;
this.length=_53d;
}
}
return this;
};
this.clear=function(){
a=[];
b="";
_53d=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);
_53d=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);
_53d=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("");
}
_53d=this.length=b.length;
if(this.arrConcat){
a.push(b);
b="";
}
return this;
};
this.append.apply(this,arguments);
};
dojo.provide("dojo.string.*");
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(_549,uri){
var loc=dojo.hostenv.getModuleSymbols(_549).join("/");
if(!loc){
return null;
}
if(loc.lastIndexOf("/")!=loc.length-1){
loc+="/";
}
return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri()+loc,uri);
};
this.Uri=function(){
var uri=arguments[0];
for(var i=1;i<arguments.length;i++){
if(!arguments[i]){
continue;
}
var _54e=new dojo.uri.Uri(arguments[i].toString());
var _54f=new dojo.uri.Uri(uri.toString());
if((_54e.path=="")&&(_54e.scheme==null)&&(_54e.authority==null)&&(_54e.query==null)){
if(_54e.fragment!=null){
_54f.fragment=_54e.fragment;
}
_54e=_54f;
}else{
if(_54e.scheme==null){
_54e.scheme=_54f.scheme;
if(_54e.authority==null){
_54e.authority=_54f.authority;
if(_54e.path.charAt(0)!="/"){
var path=_54f.path.substring(0,_54f.path.lastIndexOf("/")+1)+_54e.path;
var segs=path.split("/");
for(var j=0;j<segs.length;j++){
if(segs[j]=="."){
if(j==segs.length-1){
segs[j]="";
}else{
segs.splice(j,1);
j--;
}
}else{
if(j>0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){
if(j==segs.length-1){
segs.splice(j,1);
segs[j-1]="";
}else{
segs.splice(j-1,2);
j-=2;
}
}
}
}
_54e.path=segs.join("/");
}
}
}
}
uri="";
if(_54e.scheme!=null){
uri+=_54e.scheme+":";
}
if(_54e.authority!=null){
uri+="//"+_54e.authority;
}
uri+=_54e.path;
if(_54e.query!=null){
uri+="?"+_54e.query;
}
if(_54e.fragment!=null){
uri+="#"+_54e.fragment;
}
}
this.uri=uri.toString();
var _553="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$";
var r=this.uri.match(new RegExp(_553));
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){
_553="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$";
r=this.authority.match(new RegExp(_553));
this.user=r[3]||null;
this.password=r[4]||null;
this.host=r[5];
this.port=r[7]||null;
}
this.toString=function(){
return this.uri;
};
};
};
dojo.provide("dojo.uri.*");
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 _557=dojo.global();
var _558=dojo.doc();
var w=0;
var h=0;
if(dojo.render.html.mozilla){
w=_558.documentElement.clientWidth;
h=_557.innerHeight;
}else{
if(!dojo.render.html.opera&&_557.innerWidth){
w=_557.innerWidth;
h=_557.innerHeight;
}else{
if(!dojo.render.html.opera&&dojo.exists(_558,"documentElement.clientWidth")){
var w2=_558.documentElement.clientWidth;
if(!w||w2&&w2<w){
w=w2;
}
h=_558.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 _55c=dojo.global();
var _55d=dojo.doc();
var top=_55c.pageYOffset||_55d.documentElement.scrollTop||dojo.body().scrollTop||0;
var left=_55c.pageXOffset||_55d.documentElement.scrollLeft||dojo.body().scrollLeft||0;
return {top:top,left:left,offset:{x:left,y:top}};
};
dojo.html.getParentByType=function(node,type){
var _562=dojo.doc();
var _563=dojo.byId(node);
type=type.toLowerCase();
while((_563)&&(_563.nodeName.toLowerCase()!=type)){
if(_563==(_562["body"]||_562["documentElement"])){
return null;
}
_563=_563.parentNode;
}
return _563;
};
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 _56b={x:0,y:0};
if(e.pageX||e.pageY){
_56b.x=e.pageX;
_56b.y=e.pageY;
}else{
var de=dojo.doc().documentElement;
var db=dojo.body();
_56b.x=e.clientX+((de||db)["scrollLeft"])-((de||db)["clientLeft"]);
_56b.y=e.clientY+((de||db)["scrollTop"])-((de||db)["clientTop"]);
}
return _56b;
};
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 _570=dojo.doc().createElement("script");
_570.src="javascript:'dojo.html.createExternalElement=function(doc, tag){ return doc.createElement(tag); }'";
dojo.doc().getElementsByTagName("head")[0].appendChild(_570);
})();
}
}else{
dojo.html.createExternalElement=function(doc,tag){
return doc.createElement(tag);
};
}
dojo.html._callDeprecated=function(_573,_574,args,_576,_577){
dojo.deprecated("dojo.html."+_573,"replaced by dojo.html."+_574+"("+(_576?"node, {"+_576+": "+_576+"}":"")+")"+(_577?"."+_577:""),"0.5");
var _578=[];
if(_576){
var _579={};
_579[_576]=args[1];
_578.push(args[0]);
_578.push(_579);
}else{
_578=args;
}
var ret=dojo.html[_574].apply(dojo.html,args);
if(_577){
return ret[_577];
}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.flash");
dojo.flash=function(){
};
dojo.flash={flash6_version:null,flash8_version:null,ready:false,_visible:true,_loadedListeners:new Array(),_installingListeners:new Array(),setSwf:function(_57b){
if(_57b==null||dojo.lang.isUndefined(_57b)){
return;
}
if(_57b.flash6!=null&&!dojo.lang.isUndefined(_57b.flash6)){
this.flash6_version=_57b.flash6;
}
if(_57b.flash8!=null&&!dojo.lang.isUndefined(_57b.flash8)){
this.flash8_version=_57b.flash8;
}
if(!dojo.lang.isUndefined(_57b.visible)){
this._visible=_57b.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(_57c){
this._loadedListeners.push(_57c);
},addInstallingListener:function(_57d){
this._installingListeners.push(_57d);
},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 _580=new dojo.flash.Install();
dojo.flash.installer=_580;
if(_580.needed()==true){
_580.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(_581,_582,_583){
_583=parseFloat("."+_583);
if(this.versionMajor>=_581&&this.versionMinor>=_582&&this.versionRevision>=_583){
return true;
}else{
return false;
}
},_detectVersion:function(){
var _584;
for(var _585=25;_585>0;_585--){
if(dojo.render.html.ie){
_584=VBGetSwfVer(_585);
}else{
_584=this._JSFlashInfo(_585);
}
if(_584==-1){
this.capable=false;
return;
}else{
if(_584!=0){
var _586;
if(dojo.render.html.ie){
var _587=_584.split(" ");
var _588=_587[1];
_586=_588.split(",");
}else{
_586=_584.split(".");
}
this.versionMajor=_586[0];
this.versionMinor=_586[1];
this.versionRevision=_586[2];
var _589=this.versionMajor+"."+this.versionRevision;
this.version=parseFloat(_589);
this.capable=true;
break;
}
}
}
},_JSFlashInfo:function(_58a){
if(navigator.plugins!=null&&navigator.plugins.length>0){
if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
var _58b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
var _58c=navigator.plugins["Shockwave Flash"+_58b].description;
var _58d=_58c.split(" ");
var _58e=_58d[2].split(".");
var _58f=_58e[0];
var _590=_58e[1];
if(_58d[3]!=""){
var _591=_58d[3].split("r");
}else{
var _591=_58d[4].split("r");
}
var _592=_591[1]>0?_591[1]:0;
var _593=_58f+"."+_590+"."+_592;
return _593;
}
}
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(_594){
this._visible=_594;
};
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(_595,_596){
if(dojo.lang.isUndefined(_596)){
_596=false;
}
var _597=new dojo.string.Builder();
_597.append("width: "+this.width+"px; ");
_597.append("height: "+this.height+"px; ");
if(this._visible==false){
_597.append("position: absolute; ");
_597.append("z-index: 10000; ");
_597.append("top: -1000px; ");
_597.append("left: -1000px; ");
}
_597=_597.toString();
var _598;
var _599;
if(_595==6){
_599=dojo.flash.flash6_version;
var _59a=djConfig.baseRelativePath;
_599=_599+"?baseRelativePath="+escape(_59a);
_598="<embed id=\""+this.id+"\" src=\""+_599+"\" "+"    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{
_599=dojo.flash.flash8_version;
var _59b=_599;
var _59c=_599;
var _59a=djConfig.baseRelativePath;
if(_596){
var _59d=escape(window.location);
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _59e=escape(document.title);
_59b+="?MMredirectURL="+_59d+"&MMplayerType=ActiveX"+"&MMdoctitle="+_59e+"&baseRelativePath="+escape(_59a);
_59c+="?MMredirectURL="+_59d+"&MMplayerType=PlugIn"+"&baseRelativePath="+escape(_59a);
}
if(_59c.indexOf("?")==-1){
_59c+="?baseRelativePath="+escape(_59a)+"' ";
}
_598="<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=\""+_59b+"\" /> "+"<param name=\"quality\" value=\"high\" /> "+"<param name=\"bgcolor\" value=\"#ffffff\" /> "+"<embed src=\""+_59c+"' "+"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>";
}
_598="<div id=\""+this.id+"Container\" style=\""+_597+"\"> "+_598+"</div>";
document.writeln(_598);
},get:function(){
return document.getElementById(this.id);
},setVisible:function(_59f){
var _5a0=dojo.byId(this.id+"Container");
if(_59f==true){
_5a0.style.visibility="visible";
}else{
_5a0.style.position="absolute";
_5a0.style.x="-1000px";
_5a0.style.y="-1000px";
_5a0.style.visibility="hidden";
}
},center:function(){
var _5a1=this.width;
var _5a2=this.height;
var _5a3=dojo.html.getScroll().offset;
var _5a4=dojo.html.getViewport();
var x=_5a3.x+(_5a4.width-_5a1)/2;
var y=_5a3.y+(_5a4.height-_5a2)/2;
var _5a7=dojo.byId(this.id+"Container");
_5a7.style.top=y+"px";
_5a7.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(_5a9,args){
if(_5a9!=null&&!dojo.lang.isUndefined(_5a9)&&/^FSCommand:(.*)/.test(_5a9)==true){
_5a9=_5a9.match(/^FSCommand:(.*)/)[1];
}
if(_5a9=="addCallback"){
this._fscommandAddCallback(_5a9,args);
}else{
if(_5a9=="call"){
this._fscommandCall(_5a9,args);
}else{
if(_5a9=="fscommandReady"){
this._fscommandReady();
}
}
}
},_fscommandAddCallback:function(_5ab,args){
var _5ad=args;
var _5ae=function(){
return dojo.flash.comm._call(_5ad,arguments);
};
dojo.flash.comm[_5ad]=_5ae;
dojo.flash.obj.get().SetVariable("_succeeded",true);
},_fscommandCall:function(_5af,args){
var _5b1=dojo.flash.obj.get();
var _5b2=args;
var _5b3=parseInt(_5b1.GetVariable("_numArgs"));
var _5b4=new Array();
for(var i=0;i<_5b3;i++){
var _5b6=_5b1.GetVariable("_"+i);
_5b4.push(_5b6);
}
var _5b7;
if(_5b2.indexOf(".")==-1){
_5b7=window[_5b2];
}else{
_5b7=eval(_5b2);
}
var _5b8=null;
if(!dojo.lang.isUndefined(_5b7)&&_5b7!=null){
_5b8=_5b7.apply(null,_5b4);
}
_5b1.SetVariable("_returnResult",_5b8);
},_fscommandReady:function(){
var _5b9=dojo.flash.obj.get();
_5b9.SetVariable("fscommandReady","true");
},_call:function(_5ba,args){
var _5bc=dojo.flash.obj.get();
_5bc.SetVariable("_functionName",_5ba);
_5bc.SetVariable("_numArgs",args.length);
for(var i=0;i<args.length;i++){
var _5be=args[i];
_5be=_5be.replace(/\0/g,"\\0");
_5bc.SetVariable("_"+i,_5be);
}
_5bc.TCallLabel("/_flashRunner","execute");
var _5bf=_5bc.GetVariable("_returnResult");
_5bf=_5bf.replace(/\\0/g,"\x00");
return _5bf;
},_addExternalInterfaceCallback:function(_5c0){
var _5c1=function(){
var _5c2=new Array(arguments.length);
for(var i=0;i<arguments.length;i++){
_5c2[i]=arguments[i];
}
return dojo.flash.comm._execFlash(_5c0,_5c2);
};
dojo.flash.comm[_5c0]=_5c1;
},_encodeData:function(data){
var _5c5=/\&([^;]*)\;/g;
data=data.replace(_5c5,"&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(_5c7,_5c8){
var _5c9=dojo.flash.obj.get();
var _5ca=Math.ceil(_5c7.length/1024);
for(var i=0;i<_5ca;i++){
var _5cc=i*1024;
var _5cd=i*1024+1024;
if(i==(_5ca-1)){
_5cd=i*1024+_5c7.length;
}
var _5ce=_5c7.substring(_5cc,_5cd);
_5ce=this._encodeData(_5ce);
_5c9.CallFunction("<invoke name=\"chunkArgumentData\" "+"returntype=\"javascript\">"+"<arguments>"+"<string>"+_5ce+"</string>"+"<number>"+_5c8+"</number>"+"</arguments>"+"</invoke>");
}
},_chunkReturnData:function(){
var _5cf=dojo.flash.obj.get();
var _5d0=_5cf.getReturnLength();
var _5d1=new Array();
for(var i=0;i<_5d0;i++){
var _5d3=_5cf.CallFunction("<invoke name=\"chunkReturnData\" "+"returntype=\"javascript\">"+"<arguments>"+"<number>"+i+"</number>"+"</arguments>"+"</invoke>");
if(_5d3=="\"\""||_5d3=="''"){
_5d3="";
}else{
_5d3=_5d3.substring(1,_5d3.length-1);
}
_5d1.push(_5d3);
}
var _5d4=_5d1.join("");
return _5d4;
},_execFlash:function(_5d5,_5d6){
var _5d7=dojo.flash.obj.get();
_5d7.startExec();
_5d7.setNumberArguments(_5d6.length);
for(var i=0;i<_5d6.length;i++){
this._chunkArgumentData(_5d6[i],i);
}
_5d7.exec(_5d5);
var _5d9=this._chunkReturnData();
_5d9=this._decodeData(_5d9);
_5d7.endExec();
return _5d9;
}};
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 _5da=new dojo.flash.Embed(false);
_5da.write(8);
}else{
if(dojo.flash.info.isVersionOrAbove(6,0,65)){
var _5da=new dojo.flash.Embed(false);
_5da.write(8,true);
_5da.setVisible(true);
_5da.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.storage.browser");
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 _5dc=globalStorage[location.hostname];
}
catch(e){
this._available=false;
return this._available;
}
this._available=true;
return this._available;
},put:function(key,_5de,_5df){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_5df;
if(dojo.lang.isString(_5de)){
_5de="string:"+_5de;
}else{
_5de=dojo.json.serialize(_5de);
}
window.addEventListener("storage",function(evt){
_5df.call(null,dojo.storage.SUCCESS,key);
},false);
try{
var _5e1=globalStorage[this._domain];
_5e1.setItem(key,_5de);
}
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 _5e3=globalStorage[this._domain];
var _5e4=_5e3.getItem(key);
if(_5e4==null){
return null;
}
_5e4=_5e4.value;
if(!dojo.lang.isUndefined(_5e4)&&_5e4!=null&&/^string:/.test(_5e4)){
_5e4=_5e4.substring("string:".length);
}else{
_5e4=dojo.json.evalJson(_5e4);
}
return _5e4;
},getKeys:function(){
var _5e5=globalStorage[this._domain];
var _5e6=new Array();
for(i=0;i<_5e5.length;i++){
_5e6[i]=_5e5.key(i);
}
return _5e6;
},clear:function(){
var _5e7=globalStorage[this._domain];
var keys=new Array();
for(var i=0;i<_5e7.length;i++){
keys[keys.length]=_5e7.key(i);
}
for(var i=0;i<keys.length;i++){
_5e7.removeItem(keys[i]);
}
},remove:function(key){
var _5eb=globalStorage[this._domain];
_5eb.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.WhatWGStorageProvider";
}});
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 _5ec=function(){
dojo.storage._flashLoaded();
};
dojo.flash.addLoadedListener(_5ec);
var _5ed=dojo.uri.dojoUri("Storage_version6.swf").toString();
var _5ee=dojo.uri.dojoUri("Storage_version8.swf").toString();
dojo.flash.setSwf({flash6:_5ed,flash8:_5ee,visible:false});
},isAvailable:function(){
if(djConfig["disableFlashStorage"]==true){
this._available=false;
}else{
this._available=true;
}
return this._available;
},put:function(key,_5f0,_5f1){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
this._statusHandler=_5f1;
if(dojo.lang.isString(_5f0)){
_5f0="string:"+_5f0;
}else{
_5f0=dojo.json.serialize(_5f0);
}
dojo.flash.comm.put(key,_5f0,this.namespace);
},get:function(key){
if(this.isValidKey(key)==false){
dojo.raise("Invalid key given: "+key);
}
var _5f3=dojo.flash.comm.get(key,this.namespace);
if(_5f3==""){
return null;
}
if(!dojo.lang.isUndefined(_5f3)&&_5f3!=null&&/^string:/.test(_5f3)){
_5f3=_5f3.substring("string:".length);
}else{
_5f3=dojo.json.evalJson(_5f3);
}
return _5f3;
},getKeys:function(){
var _5f4=dojo.flash.comm.getKeys(this.namespace);
if(_5f4==""){
return [];
}
return _5f4.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(_5f6,key){
var ds=dojo.storage;
var dfo=dojo.flash.obj;
if(_5f6==ds.PENDING){
dfo.center();
dfo.setVisible(true);
}else{
dfo.setVisible(false);
}
if((!dj_undef("_statusHandler",ds))&&(ds._statusHandler!=null)){
ds._statusHandler.call(null,_5f6,key);
}
}});
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.provide("dojo.storage.*");
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,_5ff){
return (new RegExp("(^|\\s+)"+_5ff+"(\\s+|$)")).test(dojo.html.getClass(node));
};
dojo.html.prependClass=function(node,_601){
_601+=" "+dojo.html.getClass(node);
return dojo.html.setClass(node,_601);
};
dojo.html.addClass=function(node,_603){
if(dojo.html.hasClass(node,_603)){
return false;
}
_603=(dojo.html.getClass(node)+" "+_603).replace(/^\s+|\s+$/g,"");
return dojo.html.setClass(node,_603);
};
dojo.html.setClass=function(node,_605){
node=dojo.byId(node);
var cs=new String(_605);
try{
if(typeof node.className=="string"){
node.className=cs;
}else{
if(node.setAttribute){
node.setAttribute("class",_605);
node.className=cs;
}else{
return false;
}
}
}
catch(e){
dojo.debug("dojo.html.setClass() failed",e);
}
return true;
};
dojo.html.removeClass=function(node,_608,_609){
try{
if(!_609){
var _60a=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_608+"(\\s+|$)"),"$1$2");
}else{
var _60a=dojo.html.getClass(node).replace(_608,"");
}
dojo.html.setClass(node,_60a);
}
catch(e){
dojo.debug("dojo.html.removeClass() failed",e);
}
return true;
};
dojo.html.replaceClass=function(node,_60c,_60d){
dojo.html.removeClass(node,_60d);
dojo.html.addClass(node,_60c);
};
dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2};
dojo.html.getElementsByClass=function(_60e,_60f,_610,_611,_612){
_612=false;
var _613=dojo.doc();
_60f=dojo.byId(_60f)||_613;
var _614=_60e.split(/\s+/g);
var _615=[];
if(_611!=1&&_611!=2){
_611=0;
}
var _616=new RegExp("(\\s|^)(("+_614.join(")|(")+"))(\\s|$)");
var _617=_614.join(" ").length;
var _618=[];
if(!_612&&_613.evaluate){
var _619=".//"+(_610||"*")+"[contains(";
if(_611!=dojo.html.classMatchType.ContainsAny){
_619+="concat(' ',@class,' '), ' "+_614.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')";
if(_611==2){
_619+=" and string-length(@class)="+_617+"]";
}else{
_619+="]";
}
}else{
_619+="concat(' ',@class,' '), ' "+_614.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]";
}
var _61a=_613.evaluate(_619,_60f,null,XPathResult.ANY_TYPE,null);
var _61b=_61a.iterateNext();
while(_61b){
try{
_618.push(_61b);
_61b=_61a.iterateNext();
}
catch(e){
break;
}
}
return _618;
}else{
if(!_610){
_610="*";
}
_618=_60f.getElementsByTagName(_610);
var node,i=0;
outer:
while(node=_618[i++]){
var _61e=dojo.html.getClasses(node);
if(_61e.length==0){
continue outer;
}
var _61f=0;
for(var j=0;j<_61e.length;j++){
if(_616.test(_61e[j])){
if(_611==dojo.html.classMatchType.ContainsAny){
_615.push(node);
continue outer;
}else{
_61f++;
}
}else{
if(_611==dojo.html.classMatchType.IsOnly){
continue outer;
}
}
}
if(_61f==_614.length){
if((_611==dojo.html.classMatchType.IsOnly)&&(_61f==_61e.length)){
_615.push(node);
}else{
if(_611==dojo.html.classMatchType.ContainsAll){
_615.push(node);
}
}
}
}
return _615;
}
};
dojo.html.getElementsByClassName=dojo.html.getElementsByClass;
dojo.html.toCamelCase=function(_621){
var arr=_621.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(_625){
return _625.replace(/([A-Z])/g,"-$1").toLowerCase();
};
dojo.html.getComputedStyle=function(node,_627,_628){
node=dojo.byId(node);
var _627=dojo.html.toSelectorCase(_627);
var _629=dojo.html.toCamelCase(_627);
if(!node||!node.style){
return _628;
}else{
if(document.defaultView&&dojo.html.isDescendantOf(node,node.ownerDocument)){
try{
var cs=document.defaultView.getComputedStyle(node,"");
if(cs){
return cs.getPropertyValue(_627);
}
}
catch(e){
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_627);
}else{
return _628;
}
}
}else{
if(node.currentStyle){
return node.currentStyle[_629];
}
}
}
if(node.style.getPropertyValue){
return node.style.getPropertyValue(_627);
}else{
return _628;
}
};
dojo.html.getStyleProperty=function(node,_62c){
node=dojo.byId(node);
return (node&&node.style?node.style[dojo.html.toCamelCase(_62c)]:undefined);
};
dojo.html.getStyle=function(node,_62e){
var _62f=dojo.html.getStyleProperty(node,_62e);
return (_62f?_62f:dojo.html.getComputedStyle(node,_62e));
};
dojo.html.setStyle=function(node,_631,_632){
node=dojo.byId(node);
if(node&&node.style){
var _633=dojo.html.toCamelCase(_631);
node.style[_633]=_632;
}
};
dojo.html.setStyleText=function(_634,text){
try{
_634.style.cssText=text;
}
catch(e){
_634.setAttribute("style",text);
}
};
dojo.html.copyStyle=function(_636,_637){
if(!_637.style.cssText){
_636.setAttribute("style",_637.getAttribute("style"));
}else{
_636.style.cssText=_637.style.cssText;
}
dojo.html.addClass(_636,dojo.html.getClass(_637));
};
dojo.html.getUnitValue=function(node,_639,_63a){
var s=dojo.html.getComputedStyle(node,_639);
if((!s)||((s=="auto")&&(_63a))){
return {value:0,units:"px"};
}
var _63c=s.match(/(\-?[\d.]+)([a-z%]*)/i);
if(!_63c){
return dojo.html.getUnitValue.bad;
}
return {value:Number(_63c[1]),units:_63c[2].toLowerCase()};
};
dojo.html.getUnitValue.bad={value:NaN,units:""};
dojo.html.getPixelValue=function(node,_63e,_63f){
var _640=dojo.html.getUnitValue(node,_63e,_63f);
if(isNaN(_640.value)){
return 0;
}
if((_640.value)&&(_640.units!="px")){
return NaN;
}
return _640.value;
};
dojo.html.setPositivePixelValue=function(node,_642,_643){
if(isNaN(_643)){
return false;
}
node.style[_642]=Math.max(0,_643)+"px";
return true;
};
dojo.html.styleSheet=null;
dojo.html.insertCssRule=function(_644,_645,_646){
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){
_646=dojo.html.styleSheet.cssRules.length;
}else{
if(dojo.html.styleSheet.rules){
_646=dojo.html.styleSheet.rules.length;
}else{
return null;
}
}
}
if(dojo.html.styleSheet.insertRule){
var rule=_644+" { "+_645+" }";
return dojo.html.styleSheet.insertRule(rule,_646);
}else{
if(dojo.html.styleSheet.addRule){
return dojo.html.styleSheet.addRule(_644,_645,_646);
}else{
return null;
}
}
};
dojo.html.removeCssRule=function(_648){
if(!dojo.html.styleSheet){
dojo.debug("no stylesheet defined for removing rules");
return false;
}
if(dojo.render.html.ie){
if(!_648){
_648=dojo.html.styleSheet.rules.length;
dojo.html.styleSheet.removeRule(_648);
}
}else{
if(document.styleSheets[0]){
if(!_648){
_648=dojo.html.styleSheet.cssRules.length;
}
dojo.html.styleSheet.deleteRule(_648);
}
}
return true;
};
dojo.html._insertedCssFiles=[];
dojo.html.insertCssFile=function(URI,doc,_64b,_64c){
if(!URI){
return;
}
if(!doc){
doc=document;
}
var _64d=dojo.hostenv.getText(URI,false,_64c);
if(_64d===null){
return;
}
_64d=dojo.html.fixPathsInCssText(_64d,URI);
if(_64b){
var idx=-1,node,ent=dojo.html._insertedCssFiles;
for(var i=0;i<ent.length;i++){
if((ent[i].doc==doc)&&(ent[i].cssText==_64d)){
idx=i;
node=ent[i].nodeRef;
break;
}
}
if(node){
var _652=doc.getElementsByTagName("style");
for(var i=0;i<_652.length;i++){
if(_652[i]==node){
return;
}
}
dojo.html._insertedCssFiles.shift(idx,1);
}
}
var _653=dojo.html.insertCssText(_64d,doc);
dojo.html._insertedCssFiles.push({"doc":doc,"cssText":_64d,"nodeRef":_653});
if(_653&&djConfig.isDebug){
_653.setAttribute("dbgHref",URI);
}
return _653;
};
dojo.html.insertCssText=function(_654,doc,URI){
if(!_654){
return;
}
if(!doc){
doc=document;
}
if(URI){
_654=dojo.html.fixPathsInCssText(_654,URI);
}
var _657=doc.createElement("style");
_657.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(_657);
}
if(_657.styleSheet){
var _659=function(){
try{
_657.styleSheet.cssText=_654;
}
catch(e){
dojo.debug(e);
}
};
if(_657.styleSheet.disabled){
setTimeout(_659,10);
}else{
_659();
}
}else{
var _65a=doc.createTextNode(_654);
_657.appendChild(_65a);
}
return _657;
};
dojo.html.fixPathsInCssText=function(_65b,URI){
if(!_65b||!URI){
return;
}
var _65d,str="",url="",_660="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";
var _661=new RegExp("url\\(\\s*("+_660+")\\s*\\)");
var _662=/(file|https?|ftps?):\/\//;
regexTrim=new RegExp("^[\\s]*(['\"]?)("+_660+")\\1[\\s]*?$");
if(dojo.render.html.ie55||dojo.render.html.ie60){
var _663=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_660+")['\"]");
while(_65d=_663.exec(_65b)){
url=_65d[2].replace(regexTrim,"$2");
if(!_662.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_65b.substring(0,_65d.index)+"AlphaImageLoader("+_65d[1]+"src='"+url+"'";
_65b=_65b.substr(_65d.index+_65d[0].length);
}
_65b=str+_65b;
str="";
}
while(_65d=_661.exec(_65b)){
url=_65d[1].replace(regexTrim,"$2");
if(!_662.exec(url)){
url=(new dojo.uri.Uri(URI,url).toString());
}
str+=_65b.substring(0,_65d.index)+"url("+url+")";
_65b=_65b.substr(_65d.index+_65d[0].length);
}
return str+_65b;
};
dojo.html.setActiveStyleSheet=function(_664){
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")==_664){
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 _670={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 _670){
if(_670[p]){
dojo.html.addClass(node,p);
}
}
};
dojo.provide("dojo.html.*");
dojo.provide("dojo.html.selection");
dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2};
dojo.html.clearSelection=function(){
var _672=dojo.global();
var _673=dojo.doc();
try{
if(_672["getSelection"]){
if(dojo.render.html.safari){
_672.getSelection().collapse();
}else{
_672.getSelection().removeAllRanges();
}
}else{
if(_673.selection){
if(_673.selection.empty){
_673.selection.empty();
}else{
if(_673.selection.clear){
_673.selection.clear();
}
}
}
}
return true;
}
catch(e){
dojo.debug(e);
return false;
}
};
dojo.html.disableSelection=function(_674){
_674=dojo.byId(_674)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_674.style.MozUserSelect="none";
}else{
if(h.safari){
_674.style.KhtmlUserSelect="none";
}else{
if(h.ie){
_674.unselectable="on";
}else{
return false;
}
}
}
return true;
};
dojo.html.enableSelection=function(_676){
_676=dojo.byId(_676)||dojo.body();
var h=dojo.render.html;
if(h.mozilla){
_676.style.MozUserSelect="";
}else{
if(h.safari){
_676.style.KhtmlUserSelect="";
}else{
if(h.ie){
_676.unselectable="off";
}else{
return false;
}
}
}
return true;
};
dojo.html.selectElement=function(_678){
dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5);
};
dojo.html.selectInputText=function(_679){
var _67a=dojo.global();
var _67b=dojo.doc();
_679=dojo.byId(_679);
if(_67b["selection"]&&dojo.body()["createTextRange"]){
var _67c=_679.createTextRange();
_67c.moveStart("character",0);
_67c.moveEnd("character",_679.value.length);
_67c.select();
}else{
if(_67a["getSelection"]){
var _67d=_67a.getSelection();
_679.setSelectionRange(0,_679.value.length);
}
}
_679.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 _67e=dojo.html.selectionType.TEXT;
var oSel;
try{
oSel=dojo.global().getSelection();
}
catch(e){
}
if(oSel&&oSel.rangeCount==1){
var _680=oSel.getRangeAt(0);
if(_680.startContainer==_680.endContainer&&(_680.endOffset-_680.startOffset)==1&&_680.startContainer.nodeType!=dojo.dom.TEXT_NODE){
_67e=dojo.html.selectionType.CONTROL;
}
}
return _67e;
}
},isCollapsed:function(){
var _681=dojo.global();
var _682=dojo.doc();
if(_682["selection"]){
return _682.selection.createRange().text=="";
}else{
if(_681["getSelection"]){
var _683=_681.getSelection();
if(dojo.lang.isString(_683)){
return _683=="";
}else{
return _683.isCollapsed||_683.toString()=="";
}
}
}
},getSelectedElement:function(){
if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){
if(dojo.doc()["selection"]){
var _684=dojo.doc().selection.createRange();
if(_684&&_684.item){
return dojo.doc().selection.createRange().item(0);
}
}else{
var _685=dojo.global().getSelection();
return _685.anchorNode.childNodes[_685.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 _687=dojo.global().getSelection();
if(_687){
var node=_687.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 _689=dojo.global().getSelection();
if(_689){
return _689.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 _68a=dojo.global().getSelection();
if(_68a&&_68a.rangeCount){
var frag=_68a.getRangeAt(0).cloneContents();
var div=document.createElement("div");
div.appendChild(frag);
return div.innerHTML;
}
return null;
}
},hasAncestorElement:function(_68d){
return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null);
},getAncestorElement:function(_68e){
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(_693){
var _694=dojo.global();
var _695=dojo.doc();
_693=dojo.byId(_693);
if(_695.selection&&dojo.body().createTextRange){
try{
var _696=dojo.body().createControlRange();
_696.addElement(_693);
_696.select();
}
catch(e){
dojo.html.selection.selectElementChildren(_693);
}
}else{
if(_694["getSelection"]){
var _697=_694.getSelection();
if(_697["removeAllRanges"]){
var _696=_695.createRange();
_696.selectNode(_693);
_697.removeAllRanges();
_697.addRange(_696);
}
}
}
},selectElementChildren:function(_698){
var _699=dojo.global();
var _69a=dojo.doc();
_698=dojo.byId(_698);
if(_69a.selection&&dojo.body().createTextRange){
var _69b=dojo.body().createTextRange();
_69b.moveToElementText(_698);
_69b.select();
}else{
if(_699["getSelection"]){
var _69c=_699.getSelection();
if(_69c["setBaseAndExtent"]){
_69c.setBaseAndExtent(_698,0,_698,_698.innerText.length-1);
}else{
if(_69c["selectAllChildren"]){
_69c.selectAllChildren(_698);
}
}
}
}
},getBookmark:function(){
var _69d;
var _69e=dojo.doc();
if(_69e["selection"]){
var _69f=_69e.selection.createRange();
_69d=_69f.getBookmark();
}else{
var _6a0;
try{
_6a0=dojo.global().getSelection();
}
catch(e){
}
if(_6a0){
var _69f=_6a0.getRangeAt(0);
_69d=_69f.cloneRange();
}else{
dojo.debug("No idea how to store the current selection for this browser!");
}
}
return _69d;
},moveToBookmark:function(_6a1){
var _6a2=dojo.doc();
if(_6a2["selection"]){
var _6a3=_6a2.selection.createRange();
_6a3.moveToBookmark(_6a1);
_6a3.select();
}else{
var _6a4;
try{
_6a4=dojo.global().getSelection();
}
catch(e){
}
if(_6a4&&_6a4["removeAllRanges"]){
_6a4.removeAllRanges();
_6a4.addRange(_6a1);
}else{
dojo.debug("No idea how to restore selection for this browser!");
}
}
},collapse:function(_6a5){
if(dojo.global()["getSelection"]){
var _6a6=dojo.global().getSelection();
if(_6a6.removeAllRanges){
if(_6a5){
_6a6.collapseToStart();
}else{
_6a6.collapseToEnd();
}
}else{
dojo.global().getSelection().collapse(_6a5);
}
}else{
if(dojo.doc().selection){
var _6a7=dojo.doc().selection.createRange();
_6a7.collapse(_6a5);
_6a7.select();
}
}
},remove:function(){
if(dojo.doc().selection){
var _6a8=dojo.doc().selection;
if(_6a8.type.toUpperCase()!="NONE"){
_6a8.clear();
}
return _6a8;
}else{
var _6a8=dojo.global().getSelection();
for(var i=0;i<_6a8.rangeCount;i++){
_6a8.getRangeAt(i).deleteContents();
}
return _6a8;
}
}});
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 _6ad=getTagName(node);
if(!_6ad){
return "";
}
if((dojo.widget)&&(dojo.widget.tags[_6ad])){
return _6ad;
}
var p=_6ad.indexOf(":");
if(p>=0){
return _6ad;
}
if(_6ad.substr(0,5)=="dojo:"){
return _6ad;
}
if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"){
return node.scopeName.toLowerCase()+":"+_6ad;
}
if(_6ad.substr(0,4)=="dojo"){
return "dojo:"+_6ad.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 _6b0=node.className||node.getAttribute("class");
if((_6b0)&&(_6b0.indexOf)&&(_6b0.indexOf("dojo-")!=-1)){
var _6b1=_6b0.split(" ");
for(var x=0,c=_6b1.length;x<c;x++){
if(_6b1[x].slice(0,5)=="dojo-"){
return "dojo:"+_6b1[x].substr(5).toLowerCase();
}
}
}
}
return "";
}
this.parseElement=function(node,_6b5,_6b6,_6b7){
var _6b8=getTagName(node);
if(isIE&&_6b8.indexOf("/")==0){
return null;
}
try{
var attr=node.getAttribute("parseWidgets");
if(attr&&attr.toLowerCase()=="false"){
return {};
}
}
catch(e){
}
var _6ba=true;
if(_6b6){
var _6bb=getDojoTagName(node);
_6b8=_6bb||_6b8;
_6ba=Boolean(_6bb);
}
var _6bc={};
_6bc[_6b8]=[];
var pos=_6b8.indexOf(":");
if(pos>0){
var ns=_6b8.substring(0,pos);
_6bc["ns"]=ns;
if((dojo.ns)&&(!dojo.ns.allow(ns))){
_6ba=false;
}
}
if(_6ba){
var _6bf=this.parseAttributes(node);
for(var attr in _6bf){
if((!_6bc[_6b8][attr])||(typeof _6bc[_6b8][attr]!="array")){
_6bc[_6b8][attr]=[];
}
_6bc[_6b8][attr].push(_6bf[attr]);
}
_6bc[_6b8].nodeRef=node;
_6bc.tagName=_6b8;
_6bc.index=_6b7||0;
}
var _6c0=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(!_6bc[ctn]){
_6bc[ctn]=[];
}
_6bc[ctn].push(this.parseElement(tcn,true,_6b6,_6c0));
if((tcn.childNodes.length==1)&&(tcn.childNodes.item(0).nodeType==dojo.dom.TEXT_NODE)){
_6bc[ctn][_6bc[ctn].length-1].value=tcn.childNodes.item(0).nodeValue;
}
_6c0++;
break;
case dojo.dom.TEXT_NODE:
if(node.childNodes.length==1){
_6bc[_6b8].push({value:node.childNodes.item(0).nodeValue});
}
break;
default:
break;
}
}
return _6bc;
};
this.parseAttributes=function(node){
var _6c5={};
var atts=node.attributes;
var _6c7,i=0;
while((_6c7=atts[i++])){
if(isIE){
if(!_6c7){
continue;
}
if((typeof _6c7=="object")&&(typeof _6c7.nodeValue=="undefined")||(_6c7.nodeValue==null)||(_6c7.nodeValue=="")){
continue;
}
}
var nn=_6c7.nodeName.split(":");
nn=(nn.length==2)?nn[1]:_6c7.nodeName;
_6c5[nn]={value:_6c7.nodeValue};
}
return _6c5;
};
};
dojo.provide("dojo.ns");
dojo.ns={namespaces:{},failed:{},loading:{},loaded:{},register:function(name,_6cb,_6cc,_6cd){
if(!_6cd||!this.namespaces[name]){
this.namespaces[name]=new dojo.ns.Ns(name,_6cb,_6cc);
}
},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,_6d4,_6d5){
this.name=name;
this.module=_6d4;
this.resolver=_6d5;
this._loaded=[];
this._failed=[];
};
dojo.ns.Ns.prototype.resolve=function(name,_6d7,_6d8){
if(!this.resolver||djConfig["skipAutoRequire"]){
return false;
}
var _6d9=this.resolver(name,_6d7);
if((_6d9)&&(!this._loaded[_6d9])&&(!this._failed[_6d9])){
var req=dojo.require;
req(_6d9,false,true);
if(dojo.hostenv.findModule(_6d9,false)){
this._loaded[_6d9]=true;
}else{
if(!_6d8){
dojo.raise("dojo.ns.Ns.resolve: module '"+_6d9+"' not found after loading via namespace '"+this.name+"'");
}
this._failed[_6d9]=true;
}
}
return Boolean(this._loaded[_6d9]);
};
dojo.registerNamespace=function(name,_6dc,_6dd){
dojo.ns.register.apply(dojo.ns,arguments);
};
dojo.registerNamespaceResolver=function(name,_6df){
var n=dojo.ns.namespaces[name];
if(n){
n.resolver=_6df;
}
};
dojo.registerNamespaceManifest=function(_6e1,path,name,_6e4,_6e5){
dojo.registerModulePath(name,path);
dojo.registerNamespace(name,_6e4,_6e5);
};
dojo.registerNamespace("dojo","dojo.widget");
dojo.provide("dojo.widget.Manager");
dojo.widget.manager=new function(){
this.widgets=[];
this.widgetIds=[];
this.topWidgets={};
var _6e6={};
var _6e7=[];
this.getUniqueId=function(_6e8){
var _6e9;
do{
_6e9=_6e8+"_"+(_6e6[_6e8]!=undefined?++_6e6[_6e8]:_6e6[_6e8]=0);
}while(this.getWidgetById(_6e9));
return _6e9;
};
this.add=function(_6ea){
this.widgets.push(_6ea);
if(!_6ea.extraArgs["id"]){
_6ea.extraArgs["id"]=_6ea.extraArgs["ID"];
}
if(_6ea.widgetId==""){
if(_6ea["id"]){
_6ea.widgetId=_6ea["id"];
}else{
if(_6ea.extraArgs["id"]){
_6ea.widgetId=_6ea.extraArgs["id"];
}else{
_6ea.widgetId=this.getUniqueId(_6ea.ns+"_"+_6ea.widgetType);
}
}
}
if(this.widgetIds[_6ea.widgetId]){
dojo.debug("widget ID collision on ID: "+_6ea.widgetId);
}
this.widgetIds[_6ea.widgetId]=_6ea;
};
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(_6ec){
if(dojo.lang.isNumber(_6ec)){
var tw=this.widgets[_6ec].widgetId;
delete this.widgetIds[tw];
this.widgets.splice(_6ec,1);
}else{
this.removeById(_6ec);
}
};
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 _6f3=(type.indexOf(":")<0?function(x){
return x.widgetType.toLowerCase();
}:function(x){
return x.getNamespacedType();
});
var ret=[];
dojo.lang.forEach(this.widgets,function(x){
if(_6f3(x)==lt){
ret.push(x);
}
});
return ret;
};
this.getWidgetsByFilter=function(_6f8,_6f9){
var ret=[];
dojo.lang.every(this.widgets,function(x){
if(_6f8(x)){
ret.push(x);
if(_6f9){
return false;
}
}
return true;
});
return (_6f9?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 _6ff={};
var _700=["dojo.widget"];
for(var i=0;i<_700.length;i++){
_700[_700[i]]=true;
}
this.registerWidgetPackage=function(_702){
if(!_700[_702]){
_700[_702]=true;
_700.push(_702);
}
};
this.getWidgetPackageList=function(){
return dojo.lang.map(_700,function(elt){
return (elt!==true?elt:undefined);
});
};
this.getImplementation=function(_704,_705,_706,ns){
var impl=this.getImplementationName(_704,ns);
if(impl){
var ret=_705?new impl(_705):new impl();
return ret;
}
};
function buildPrefixCache(){
for(var _70a in dojo.render){
if(dojo.render[_70a]["capable"]===true){
var _70b=dojo.render[_70a].prefixes;
for(var i=0;i<_70b.length;i++){
_6e7.push(_70b[i].toLowerCase());
}
}
}
}
var _70d=function(_70e,_70f){
if(!_70f){
return null;
}
for(var i=0,l=_6e7.length,_712;i<=l;i++){
_712=(i<l?_70f[_6e7[i]]:_70f);
if(!_712){
continue;
}
for(var name in _712){
if(name.toLowerCase()==_70e){
return _712[name];
}
}
}
return null;
};
var _714=function(_715,_716){
var _717=dojo.evalObjPath(_716,false);
return (_717?_70d(_715,_717):null);
};
this.getImplementationName=function(_718,ns){
var _71a=_718.toLowerCase();
ns=ns||"dojo";
var imps=_6ff[ns]||(_6ff[ns]={});
var impl=imps[_71a];
if(impl){
return impl;
}
if(!_6e7.length){
buildPrefixCache();
}
var _71d=dojo.ns.get(ns);
if(!_71d){
dojo.ns.register(ns,ns+".widget");
_71d=dojo.ns.get(ns);
}
if(_71d){
_71d.resolve(_718);
}
impl=_714(_71a,_71d.module);
if(impl){
return (imps[_71a]=impl);
}
_71d=dojo.ns.require(ns);
if((_71d)&&(_71d.resolver)){
_71d.resolve(_718);
impl=_714(_71a,_71d.module);
if(impl){
return (imps[_71a]=impl);
}
}
dojo.deprecated("dojo.widget.Manager.getImplementationName","Could not locate widget implementation for \""+_718+"\" in \""+_71d.module+"\" registered to namespace \""+_71d.name+"\". "+"Developers must specify correct namespaces for all non-Dojo widgets","0.5");
for(var i=0;i<_700.length;i++){
impl=_714(_71a,_700[i]);
if(impl){
return (imps[_71a]=impl);
}
}
throw new Error("Could not locate widget implementation for \""+_718+"\" in \""+_71d.module+"\" registered to namespace \""+_71d.name+"\"");
};
this.resizing=false;
this.onWindowResized=function(){
if(this.resizing){
return;
}
try{
this.resizing=true;
for(var id in this.topWidgets){
var _720=this.topWidgets[id];
if(_720.checkSize){
_720.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(_725,_726){
dw[(_726||_725)]=h(_725);
};
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 _728=dwm.getAllWidgets.apply(dwm,arguments);
if(arguments.length>0){
return _728[n];
}
return _728;
};
g("registerWidgetPackage");
g("getImplementation","getWidgetImplementation");
g("getImplementationName","getWidgetImplementationName");
dw.widgets=dwm.widgets;
dw.widgetIds=dwm.widgetIds;
dw.root=dwm.root;
})();
dojo.provide("dojo.a11y");
dojo.a11y={imgPath:dojo.uri.dojoUri("src/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 _72a=null;
if(window.getComputedStyle){
var _72b=getComputedStyle(div,"");
_72a=_72b.getPropertyValue("background-image");
}else{
_72a=div.currentStyle.backgroundImage;
}
var _72c=false;
if(_72a!=null&&(_72a=="none"||_72a=="url(invalid-url:)")){
this.accessible=true;
}
dojo.body().removeChild(div);
}
return this.accessible;
},setCheckAccessible:function(_72d){
this.doAccessibleCheck=_72d;
},setAccessibleMode:function(){
if(this.accessible===null){
if(this.checkAccessible()){
dojo.render.html.prefixes.unshift("a11y");
}
}
return this.accessible;
}};
dojo.provide("dojo.widget.Widget");
dojo.declare("dojo.widget.Widget",null,function(){
this.children=[];
this.extraArgs={};
},{parent:null,isTopLevel:false,disabled:false,isContainer:false,widgetId:"",widgetType:"Widget",ns:"dojo",getNamespacedType:function(){
return (this.ns?this.ns+":"+this.widgetType:this.widgetType).toLowerCase();
},toString:function(){
return "[Widget "+this.getNamespacedType()+", "+(this.widgetId||"NO ID")+"]";
},repr:function(){
return this.toString();
},enable:function(){
this.disabled=false;
},disable:function(){
this.disabled=true;
},onResized:function(){
this.notifyChildrenOfResize();
},notifyChildrenOfResize:function(){
for(var i=0;i<this.children.length;i++){
var _72f=this.children[i];
if(_72f.onResized){
_72f.onResized();
}
}
},create:function(args,_731,_732,ns){
if(ns){
this.ns=ns;
}
this.satisfyPropertySets(args,_731,_732);
this.mixInProperties(args,_731,_732);
this.postMixInProperties(args,_731,_732);
dojo.widget.manager.add(this);
this.buildRendering(args,_731,_732);
this.initialize(args,_731,_732);
this.postInitialize(args,_731,_732);
this.postCreate(args,_731,_732);
return this;
},destroy:function(_734){
if(this.parent){
this.parent.removeChild(this);
}
this.destroyChildren();
this.uninitialize();
this.destroyRendering(_734);
dojo.widget.manager.removeById(this.widgetId);
},destroyChildren:function(){
var _735;
var i=0;
while(this.children.length>i){
_735=this.children[i];
if(_735 instanceof dojo.widget.Widget){
this.removeChild(_735);
_735.destroy();
continue;
}
i++;
}
},getChildrenOfType:function(type,_738){
var ret=[];
var _73a=dojo.lang.isFunction(type);
if(!_73a){
type=type.toLowerCase();
}
for(var x=0;x<this.children.length;x++){
if(_73a){
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(_738){
ret=ret.concat(this.children[x].getChildrenOfType(type,_738));
}
}
return ret;
},getDescendants:function(){
var _73c=[];
var _73d=[this];
var elem;
while((elem=_73d.pop())){
_73c.push(elem);
if(elem.children){
dojo.lang.forEach(elem.children,function(elem){
_73d.push(elem);
});
}
}
return _73c;
},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 _744;
var _745=dojo.widget.lcArgsCache[this.widgetType];
if(_745==null){
_745={};
for(var y in this){
_745[((new String(y)).toLowerCase())]=y;
}
dojo.widget.lcArgsCache[this.widgetType]=_745;
}
var _747={};
for(var x in args){
if(!this[x]){
var y=_745[(new String(x)).toLowerCase()];
if(y){
args[y]=args[x];
x=y;
}
}
if(_747[x]){
continue;
}
_747[x]=true;
if((typeof this[x])!=(typeof _744)){
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 _749=args[x].split(";");
for(var y=0;y<_749.length;y++){
var si=_749[y].indexOf(":");
if((si!=-1)&&(_749[y].length>si)){
this[x][_749[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_749[y].substr(si+1);
}
}
}
}else{
this[x]=args[x];
}
}
}
}
}
}
}
}
}else{
this.extraArgs[x.toLowerCase()]=args[x];
}
}
},postMixInProperties:function(args,frag,_74d){
},initialize:function(args,frag,_750){
return false;
},postInitialize:function(args,frag,_753){
return false;
},postCreate:function(args,frag,_756){
return false;
},uninitialize:function(){
return false;
},buildRendering:function(args,frag,_759){
dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", ");
return false;
},destroyRendering:function(){
dojo.unimplemented("dojo.widget.Widget.destroyRendering");
return false;
},addedTo:function(_75a){
},addChild:function(_75b){
dojo.unimplemented("dojo.widget.Widget.addChild");
return false;
},removeChild:function(_75c){
for(var x=0;x<this.children.length;x++){
if(this.children[x]===_75c){
this.children.splice(x,1);
_75c.parent=null;
break;
}
}
return _75c;
},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(_761,_762,_763){
var _764=_762.parseProperties(_761["dojo:propertyset"]);
};
dojo.widget.tags["dojo:connect"]=function(_765,_766,_767){
var _768=_766.parseProperties(_765["dojo:connect"]);
};
dojo.widget.buildWidgetFromParseTree=function(type,frag,_76b,_76c,_76d,_76e){
dojo.a11y.setAccessibleMode();
var _76f=type.split(":");
_76f=(_76f.length==2)?_76f[1]:type;
var _770=_76e||_76b.parseProperties(frag[frag["ns"]+":"+_76f]);
var _771=dojo.widget.manager.getImplementation(_76f,null,null,frag["ns"]);
if(!_771){
throw new Error("cannot find \""+type+"\" widget");
}else{
if(!_771.create){
throw new Error("\""+type+"\" widget object has no \"create\" method and does not appear to implement *Widget");
}
}
_770["dojoinsertionindex"]=_76d;
var ret=_771.create(_770,frag,_76c,frag["ns"]);
return ret;
};
dojo.widget.defineWidget=function(_773,_774,_775,init,_777){
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(_77a,_77b,_77c,init,_77e){
var _77f=_77a.split(".");
var type=_77f.pop();
var regx="\\.("+(_77b?_77b+"|":"")+dojo.widget.defineWidget.renderers+")\\.";
var r=_77a.search(new RegExp(regx));
_77f=(r<0?_77f.join("."):_77a.substr(0,r));
dojo.widget.manager.registerWidgetPackage(_77f);
var pos=_77f.indexOf(".");
var _784=(pos>-1)?_77f.substring(0,pos):_77f;
_77e=(_77e)||{};
_77e.widgetType=type;
if((!init)&&(_77e["classConstructor"])){
init=_77e.classConstructor;
delete _77e.classConstructor;
}
dojo.declare(_77a,_77c,init,_77e);
};
dojo.provide("dojo.widget.Parse");
dojo.widget.Parse=function(_785){
this.propertySetsList=[];
this.fragment=_785;
this.createComponents=function(frag,_787){
var _788=[];
var _789=false;
try{
if(frag&&frag.tagName&&(frag!=frag.nodeRef)){
var _78a=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(_78a[ltn]){
_789=true;
ret=_78a[ltn](frag,this,_787,frag.index);
_788.push(ret);
}else{
if(ltn.indexOf(":")==-1){
ltn="dojo:"+ltn;
}
ret=dojo.widget.buildWidgetFromParseTree(ltn,frag,this,_787,frag.index);
if(ret){
_789=true;
_788.push(ret);
}
}
}
}
}
catch(e){
dojo.debug("dojo.widget.Parse: error:",e);
}
if(!_789){
_788=_788.concat(this.createSubComponents(frag,_787));
}
return _788;
};
this.createSubComponents=function(_78f,_790){
var frag,_792=[];
for(var item in _78f){
frag=_78f[item];
if(frag&&typeof frag=="object"&&(frag!=_78f.nodeRef)&&(frag!=_78f.tagName)&&(!dojo.dom.isNode(frag))){
_792=_792.concat(this.createComponents(frag,_790));
}
}
return _792;
};
this.parsePropertySets=function(_794){
return [];
};
this.parseProperties=function(_795){
var _796={};
for(var item in _795){
if((_795[item]==_795.tagName)||(_795[item]==_795.nodeRef)){
}else{
var frag=_795[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 _799=this;
this.getDataProvider(_799,frag[0].value);
_796.dataProvider=this.dataProvider;
}
_796[item]=frag[0].value;
var _79a=this.parseProperties(frag);
for(var _79b in _79a){
_796[_79b]=_79a[_79b];
}
}
catch(e){
dojo.debug(e);
}
}
}
switch(item.toLowerCase()){
case "checked":
case "disabled":
if(typeof _796[item]!="boolean"){
_796[item]=true;
}
break;
}
}
}
return _796;
};
this.getDataProvider=function(_79c,_79d){
dojo.io.bind({url:_79d,load:function(type,_79f){
if(type=="load"){
_79c.dataProvider=_79f;
}
},mimetype:"text/javascript",sync:true});
};
this.getPropertySetById=function(_7a0){
for(var x=0;x<this.propertySetsList.length;x++){
if(_7a0==this.propertySetsList[x]["id"][0].value){
return this.propertySetsList[x];
}
}
return "";
};
this.getPropertySetsByType=function(_7a2){
var _7a3=[];
for(var x=0;x<this.propertySetsList.length;x++){
var cpl=this.propertySetsList[x];
var cpcc=cpl.componentClass||cpl.componentType||null;
var _7a7=this.propertySetsList[x]["id"][0].value;
if(cpcc&&(_7a7==cpcc[0].value)){
_7a3.push(cpl);
}
}
return _7a3;
};
this.getPropertySets=function(_7a8){
var ppl="dojo:propertyproviderlist";
var _7aa=[];
var _7ab=_7a8.tagName;
if(_7a8[ppl]){
var _7ac=_7a8[ppl].value.split(" ");
for(var _7ad in _7ac){
if((_7ad.indexOf("..")==-1)&&(_7ad.indexOf("://")==-1)){
var _7ae=this.getPropertySetById(_7ad);
if(_7ae!=""){
_7aa.push(_7ae);
}
}else{
}
}
}
return this.getPropertySetsByType(_7ab).concat(_7aa);
};
this.createComponentFromScript=function(_7af,_7b0,_7b1,ns){
_7b1.fastMixIn=true;
var ltn=(ns||"dojo")+":"+_7b0.toLowerCase();
if(dojo.widget.tags[ltn]){
return [dojo.widget.tags[ltn](_7b1,this,null,null,_7b1)];
}
return [dojo.widget.buildWidgetFromParseTree(ltn,_7b1,this,null,null,_7b1)];
};
};
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,_7b6,_7b7,_7b8){
var _7b9=false;
var _7ba=(typeof name=="string");
if(_7ba){
var pos=name.indexOf(":");
var ns=(pos>-1)?name.substring(0,pos):"dojo";
if(pos>-1){
name=name.substring(pos+1);
}
var _7bd=name.toLowerCase();
var _7be=ns+":"+_7bd;
_7b9=(dojo.byId(name)&&!dojo.widget.tags[_7be]);
}
if((arguments.length==1)&&(_7b9||!_7ba)){
var xp=new dojo.xml.Parse();
var tn=_7b9?dojo.byId(name):name;
return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0];
}
function fromScript(_7c1,name,_7c3,ns){
_7c3[_7be]={dojotype:[{value:_7bd}],nodeRef:_7c1,fastMixIn:true};
_7c3.ns=ns;
return dojo.widget.getParser().createComponentFromScript(_7c1,name,_7c3,ns);
}
_7b6=_7b6||{};
var _7c5=false;
var tn=null;
var h=dojo.render.html.capable;
if(h){
tn=document.createElement("span");
}
if(!_7b7){
_7c5=true;
_7b7=tn;
if(h){
dojo.body().appendChild(_7b7);
}
}else{
if(_7b8){
dojo.dom.insertAtPosition(tn,_7b7,_7b8);
}else{
tn=_7b7;
}
}
var _7c7=fromScript(tn,name.toLowerCase(),_7b6,ns);
if((!_7c7)||(!_7c7[0])||(typeof _7c7[0].widgetType=="undefined")){
throw new Error("createWidget: Creation of \""+name+"\" widget failed.");
}
try{
if(_7c5&&_7c7[0].domNode.parentNode){
_7c7[0].domNode.parentNode.removeChild(_7c7[0].domNode);
}
}
catch(e){
dojo.debug(e);
}
return _7c7[0];
};
dojo.provide("dojo.widget.DomWidget");
dojo.widget._cssFiles={};
dojo.widget._cssStrings={};
dojo.widget._templateCache={};
dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()};
dojo.widget.fillFromTemplateCache=function(obj,_7c9,_7ca,_7cb){
var _7cc=_7c9||obj.templatePath;
var _7cd=dojo.widget._templateCache;
if(!_7cc&&!obj["widgetType"]){
do{
var _7ce="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++;
}while(_7cd[_7ce]);
obj.widgetType=_7ce;
}
var wt=_7cc?_7cc.toString():obj.widgetType;
var ts=_7cd[wt];
if(!ts){
_7cd[wt]={"string":null,"node":null};
if(_7cb){
ts={};
}else{
ts=_7cd[wt];
}
}
if((!obj.templateString)&&(!_7cb)){
obj.templateString=_7ca||ts["string"];
}
if((!obj.templateNode)&&(!_7cb)){
obj.templateNode=ts["node"];
}
if((!obj.templateNode)&&(!obj.templateString)&&(_7cc)){
var _7d1=dojo.hostenv.getText(_7cc);
if(_7d1){
_7d1=_7d1.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _7d2=_7d1.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_7d2){
_7d1=_7d2[1];
}
}else{
_7d1="";
}
obj.templateString=_7d1;
if(!_7cb){
_7cd[wt]["string"]=_7d1;
}
}
if((!ts["string"])&&(!_7cb)){
ts.string=obj.templateString;
}
};
dojo.widget._templateCache.dummyCount=0;
dojo.widget.attachProperties=["dojoAttachPoint","id"];
dojo.widget.eventAttachProperty="dojoAttachEvent";
dojo.widget.onBuildProperty="dojoOnBuild";
dojo.widget.waiNames=["waiRole","waiState"];
dojo.widget.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_7d6){
if(dojo.render.html.ie){
node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_7d6);
}else{
node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_7d6);
}
},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 _7dd=true;
if(dojo.render.html.ie){
_7dd=node.removeAttribute(this[ns].alias+":"+attr);
}else{
node.removeAttributeNS(this[ns]["namespace"],attr);
}
return _7dd;
}};
dojo.widget.attachTemplateNodes=function(_7de,_7df,_7e0){
var _7e1=dojo.dom.ELEMENT_NODE;
function trim(str){
return str.replace(/^\s+|\s+$/g,"");
}
if(!_7de){
_7de=_7df.domNode;
}
if(_7de.nodeType!=_7e1){
return;
}
var _7e3=_7de.all||_7de.getElementsByTagName("*");
var _7e4=_7df;
for(var x=-1;x<_7e3.length;x++){
var _7e6=(x==-1)?_7de:_7e3[x];
var _7e7=[];
if(!_7df.widgetsInTemplate||!_7e6.getAttribute("dojoType")){
for(var y=0;y<this.attachProperties.length;y++){
var _7e9=_7e6.getAttribute(this.attachProperties[y]);
if(_7e9){
_7e7=_7e9.split(";");
for(var z=0;z<_7e7.length;z++){
if(dojo.lang.isArray(_7df[_7e7[z]])){
_7df[_7e7[z]].push(_7e6);
}else{
_7df[_7e7[z]]=_7e6;
}
}
break;
}
}
var _7eb=_7e6.getAttribute(this.eventAttachProperty);
if(_7eb){
var evts=_7eb.split(";");
for(var y=0;y<evts.length;y++){
if((!evts[y])||(!evts[y].length)){
continue;
}
var _7ed=null;
var tevt=trim(evts[y]);
if(evts[y].indexOf(":")>=0){
var _7ef=tevt.split(":");
tevt=trim(_7ef[0]);
_7ed=trim(_7ef[1]);
}
if(!_7ed){
_7ed=tevt;
}
var tf=function(){
var ntf=new String(_7ed);
return function(evt){
if(_7e4[ntf]){
_7e4[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7e6,tevt,tf,false,true);
}
}
for(var y=0;y<_7e0.length;y++){
var _7f3=_7e6.getAttribute(_7e0[y]);
if((_7f3)&&(_7f3.length)){
var _7ed=null;
var _7f4=_7e0[y].substr(4);
_7ed=trim(_7f3);
var _7f5=[_7ed];
if(_7ed.indexOf(";")>=0){
_7f5=dojo.lang.map(_7ed.split(";"),trim);
}
for(var z=0;z<_7f5.length;z++){
if(!_7f5[z].length){
continue;
}
var tf=function(){
var ntf=new String(_7f5[z]);
return function(evt){
if(_7e4[ntf]){
_7e4[ntf](dojo.event.browser.fixEvent(evt,this));
}
};
}();
dojo.event.browser.addListener(_7e6,_7f4,tf,false,true);
}
}
}
}
var _7f8=_7e6.getAttribute(this.templateProperty);
if(_7f8){
_7df[_7f8]=_7e6;
}
dojo.lang.forEach(dojo.widget.waiNames,function(name){
var wai=dojo.widget.wai[name];
var val=_7e6.getAttribute(wai.name);
if(val){
if(val.indexOf("-")==-1){
dojo.widget.wai.setAttr(_7e6,wai.name,"role",val);
}else{
var _7fc=val.split("-");
dojo.widget.wai.setAttr(_7e6,wai.name,_7fc[0],_7fc[1]);
}
}
},this);
var _7fd=_7e6.getAttribute(this.onBuildProperty);
if(_7fd){
eval("var node = baseNode; var widget = targetObj; "+_7fd);
}
}
};
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(_805,_806,pos,ref,_809){
if(!this.isContainer){
dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget");
return null;
}else{
if(_809==undefined){
_809=this.children.length;
}
this.addWidgetAsDirectChild(_805,_806,pos,ref,_809);
this.registerChild(_805,_809);
}
return _805;
},addWidgetAsDirectChild:function(_80a,_80b,pos,ref,_80e){
if((!this.containerNode)&&(!_80b)){
this.containerNode=this.domNode;
}
var cn=(_80b)?_80b:this.containerNode;
if(!pos){
pos="after";
}
if(!ref){
if(!cn){
cn=dojo.body();
}
ref=cn.lastChild;
}
if(!_80e){
_80e=0;
}
_80a.domNode.setAttribute("dojoinsertionindex",_80e);
if(!ref){
cn.appendChild(_80a.domNode);
}else{
if(pos=="insertAtIndex"){
dojo.dom.insertAtIndex(_80a.domNode,ref.parentNode,_80e);
}else{
if((pos=="after")&&(ref===cn.lastChild)){
cn.appendChild(_80a.domNode);
}else{
dojo.dom.insertAtPosition(_80a.domNode,cn,pos);
}
}
}
},registerChild:function(_810,_811){
_810.dojoInsertionIndex=_811;
var idx=-1;
for(var i=0;i<this.children.length;i++){
if(this.children[i].dojoInsertionIndex<=_811){
idx=i;
}
}
this.children.splice(idx+1,0,_810);
_810.parent=this;
_810.addedTo(this,idx+1);
delete dojo.widget.manager.topWidgets[_810.widgetId];
},removeChild:function(_814){
dojo.dom.removeNode(_814.domNode);
return dojo.widget.DomWidget.superclass.removeChild.call(this,_814);
},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,_818){
var _819=this.getFragNodeRef(frag);
if(_818&&(_818.snarfChildDomOutput||!_819)){
_818.addWidgetAsDirectChild(this,"","insertAtIndex","",args["dojoinsertionindex"],_819);
}else{
if(_819){
if(this.domNode&&(this.domNode!==_819)){
this._sourceNodeRef=dojo.dom.replaceNode(_819,this.domNode);
}
}
}
if(_818){
_818.registerChild(this,args.dojoinsertionindex);
}else{
dojo.widget.manager.topWidgets[this.widgetId]=this;
}
if(this.widgetsInTemplate){
var _81a=new dojo.xml.Parse();
var _81b;
var _81c=this.domNode.getElementsByTagName("*");
for(var i=0;i<_81c.length;i++){
if(_81c[i].getAttribute("dojoAttachPoint")=="subContainerWidget"){
_81b=_81c[i];
}
if(_81c[i].getAttribute("dojoType")){
_81c[i].setAttribute("isSubWidget",true);
}
}
if(this.isContainer&&!this.containerNode){
if(_81b){
var src=this.getFragNodeRef(frag);
if(src){
dojo.dom.moveChildren(src,_81b);
frag["dojoDontFollow"]=true;
}
}else{
dojo.debug("No subContainerWidget node can be found in template file for widget "+this);
}
}
var _81f=_81a.parseElement(this.domNode,null,true);
dojo.widget.getParser().createSubComponents(_81f,this);
var _820=[];
var _821=[this];
var w;
while((w=_821.pop())){
for(var i=0;i<w.children.length;i++){
var _823=w.children[i];
if(_823._processedSubWidgets||!_823.extraArgs["issubwidget"]){
continue;
}
_820.push(_823);
if(_823.isContainer){
_821.push(_823);
}
}
}
for(var i=0;i<_820.length;i++){
var _824=_820[i];
if(_824._processedSubWidgets){
dojo.debug("This should not happen: widget._processedSubWidgets is already true!");
return;
}
_824._processedSubWidgets=true;
if(_824.extraArgs["dojoattachevent"]){
var evts=_824.extraArgs["dojoattachevent"].split(";");
for(var j=0;j<evts.length;j++){
var _827=null;
var tevt=dojo.string.trim(evts[j]);
if(tevt.indexOf(":")>=0){
var _829=tevt.split(":");
tevt=dojo.string.trim(_829[0]);
_827=dojo.string.trim(_829[1]);
}
if(!_827){
_827=tevt;
}
if(dojo.lang.isFunction(_824[tevt])){
dojo.event.kwConnect({srcObj:_824,srcFunc:tevt,targetObj:this,targetFunc:_827});
}else{
alert(tevt+" is not a function in widget "+_824);
}
}
}
if(_824.extraArgs["dojoattachpoint"]){
this[_824.extraArgs["dojoattachpoint"]]=_824;
}
}
}
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 _82d=args["templateCssPath"]||this.templateCssPath;
if(_82d&&!dojo.widget._cssFiles[_82d.toString()]){
if((!this.templateCssString)&&(_82d)){
this.templateCssString=dojo.hostenv.getText(_82d);
this.templateCssPath=null;
}
dojo.widget._cssFiles[_82d.toString()]=true;
}
if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){
dojo.html.insertCssText(this.templateCssString,null,_82d);
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 _830=false;
if(args["templatepath"]){
args["templatePath"]=args["templatepath"];
}
dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_830);
var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType];
if((ts)&&(!_830)){
if(!this.templateString.length){
this.templateString=ts["string"];
}
if(!this.templateNode){
this.templateNode=ts["node"];
}
}
var _832=false;
var node=null;
var tstr=this.templateString;
if((!this.templateNode)&&(this.templateString)){
_832=this.templateString.match(/\$\{([^\}]+)\}/g);
if(_832){
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<_832.length;i++){
var key=_832[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 _839;
if((kval)||(dojo.lang.isString(kval))){
_839=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval);
while(_839.indexOf("\"")>-1){
_839=_839.replace("\"","&quot;");
}
tstr=tstr.replace(_832[i],_839);
}
}
}else{
this.templateNode=this.createNodesFromText(this.templateString,true)[0];
if(!_830){
ts.node=this.templateNode;
}
}
}
if((!this.templateNode)&&(!_832)){
dojo.debug("DomWidget.buildFromTemplate: could not create template");
return false;
}else{
if(!_832){
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(_83b,_83c){
if(!_83b){
_83b=this.domNode;
}
if(!_83c){
_83c=this;
}
return dojo.widget.attachTemplateNodes(_83b,_83c,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.html.display");
dojo.html._toggle=function(node,_83e,_83f){
node=dojo.byId(node);
_83f(node,!_83e(node));
return _83e(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,_844){
dojo.html[(_844?"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,_84a){
dojo.html.setStyle(node,"display",((_84a instanceof String||typeof _84a=="string")?_84a:(_84a?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,_84e){
dojo.html.setStyle(node,"visibility",((_84e instanceof String||typeof _84e=="string")?_84e:(_84e?"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,_852,_853){
node=dojo.byId(node);
var h=dojo.render.html;
if(!_853){
if(_852>=1){
if(h.ie){
dojo.html.clearOpacity(node);
return;
}else{
_852=0.999999;
}
}else{
if(_852<0){
_852=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="+_852*100+")";
}
}
node.style.filter="Alpha(Opacity="+_852*100+")";
}else{
if(h.moz){
node.style.opacity=_852;
node.style.MozOpacity=_852;
}else{
if(h.safari){
node.style.opacity=_852;
node.style.KhtmlOpacity=_852;
}else{
node.style.opacity=_852;
}
}
}
};
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 _85f=0;
while(node){
if(dojo.html.getComputedStyle(node,"position")=="fixed"){
return 0;
}
var val=node[prop];
if(val){
_85f+=val-0;
if(node==dojo.body()){
break;
}
}
node=node.parentNode;
}
return _85f;
};
dojo.html.setStyleAttributes=function(node,_862){
node=dojo.byId(node);
var _863=_862.replace(/(;)?\s*$/,"").split(";");
for(var i=0;i<_863.length;i++){
var _865=_863[i].split(":");
var name=_865[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase();
var _867=_865[1].replace(/\s*$/,"").replace(/^\s*/,"");
switch(name){
case "opacity":
dojo.html.setOpacity(node,_867);
break;
case "content-height":
dojo.html.setContentBox(node,{height:_867});
break;
case "content-width":
dojo.html.setContentBox(node,{width:_867});
break;
case "outer-height":
dojo.html.setMarginBox(node,{height:_867});
break;
case "outer-width":
dojo.html.setMarginBox(node,{width:_867});
break;
default:
node.style[dojo.html.toCamelCase(name)]=_867;
}
}
};
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,_869,_86a){
node=dojo.byId(node,node.ownerDocument);
var ret={x:0,y:0};
var bs=dojo.html.boxSizing;
if(!_86a){
_86a=bs.CONTENT_BOX;
}
var _86d=2;
var _86e;
switch(_86a){
case bs.MARGIN_BOX:
_86e=3;
break;
case bs.BORDER_BOX:
_86e=2;
break;
case bs.PADDING_BOX:
default:
_86e=1;
break;
case bs.CONTENT_BOX:
_86e=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){
_86d=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 _872;
if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){
_872=db;
}else{
_872=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 _874=node;
do{
var n=_874["offsetLeft"];
if(!h.opera||n>0){
ret.x+=isNaN(n)?0:n;
}
var m=_874["offsetTop"];
ret.y+=isNaN(m)?0:m;
_874=_874.offsetParent;
}while((_874!=_872)&&(_874!=null));
}else{
if(node["x"]&&node["y"]){
ret.x+=isNaN(node.x)?0:node.x;
ret.y+=isNaN(node.y)?0:node.y;
}
}
}
}
if(_869){
var _877=dojo.html.getScroll();
ret.y+=_877.top;
ret.x+=_877.left;
}
var _878=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent];
if(_86d>_86e){
for(var i=_86e;i<_86d;++i){
ret.y+=_878[i](node,"top");
ret.x+=_878[i](node,"left");
}
}else{
if(_86d<_86e){
for(var i=_86e;i>_86d;--i){
ret.y-=_878[i-1](node,"top");
ret.x-=_878[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,_87c,_87d){
var _87e=0;
for(var x=0;x<_87c.length;x++){
_87e+=dojo.html.getPixelValue(node,_87c[x],_87d);
}
return _87e;
};
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 _88b=dojo.html.getBorder(node);
return {width:pad.width+_88b.width,height:pad.height+_88b.height};
};
dojo.html.getBoxSizing=function(node){
var h=dojo.render.html;
var bs=dojo.html.boxSizing;
if(((h.ie)||(h.opera))&&node.nodeName!="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 _890=dojo.html.getStyle(node,"-moz-box-sizing");
if(!_890){
_890=dojo.html.getStyle(node,"box-sizing");
}
return (_890?_890: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 _895=dojo.html.getBorder(node);
return {width:box.width-_895.width,height:box.height-_895.height};
};
dojo.html.getContentBox=function(node){
node=dojo.byId(node);
var _897=dojo.html.getPadBorder(node);
return {width:node.offsetWidth-_897.width,height:node.offsetHeight-_897.height};
};
dojo.html.setContentBox=function(node,args){
node=dojo.byId(node);
var _89a=0;
var _89b=0;
var isbb=dojo.html.isBorderBox(node);
var _89d=(isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var ret={};
if(typeof args.width!="undefined"){
_89a=args.width+_89d.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_89a);
}
if(typeof args.height!="undefined"){
_89b=args.height+_89d.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_89b);
}
return ret;
};
dojo.html.getMarginBox=function(node){
var _8a0=dojo.html.getBorderBox(node);
var _8a1=dojo.html.getMargin(node);
return {width:_8a0.width+_8a1.width,height:_8a0.height+_8a1.height};
};
dojo.html.setMarginBox=function(node,args){
node=dojo.byId(node);
var _8a4=0;
var _8a5=0;
var isbb=dojo.html.isBorderBox(node);
var _8a7=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0});
var _8a8=dojo.html.getMargin(node);
var ret={};
if(typeof args.width!="undefined"){
_8a4=args.width-_8a7.width;
_8a4-=_8a8.width;
ret.width=dojo.html.setPositivePixelValue(node,"width",_8a4);
}
if(typeof args.height!="undefined"){
_8a5=args.height-_8a7.height;
_8a5-=_8a8.height;
ret.height=dojo.html.setPositivePixelValue(node,"height",_8a5);
}
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(_8ad,_8ae,_8af){
if(_8ad instanceof Array||typeof _8ad=="array"){
dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5");
while(_8ad.length<4){
_8ad.push(0);
}
while(_8ad.length>4){
_8ad.pop();
}
var ret={left:_8ad[0],top:_8ad[1],width:_8ad[2],height:_8ad[3]};
}else{
if(!_8ad.nodeType&&!(_8ad instanceof String||typeof _8ad=="string")&&("width" in _8ad||"height" in _8ad||"left" in _8ad||"x" in _8ad||"top" in _8ad||"y" in _8ad)){
var ret={left:_8ad.left||_8ad.x||0,top:_8ad.top||_8ad.y||0,width:_8ad.width||0,height:_8ad.height||0};
}else{
var node=dojo.byId(_8ad);
var pos=dojo.html.abs(node,_8ae,_8af);
var _8b3=dojo.html.getMarginBox(node);
var ret={left:pos.left,top:pos.top,width:_8b3.width,height:_8b3.height};
}
}
ret.x=ret.left;
ret.y=ret.top;
return ret;
};
dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_8b5){
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,_8b8){
return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type);
};
dojo.html.getAbsoluteX=function(node,_8ba){
return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x");
};
dojo.html.getAbsoluteY=function(node,_8bc){
return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y");
};
dojo.html.totalOffsetLeft=function(node,_8be){
return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left");
};
dojo.html.totalOffsetTop=function(node,_8c0){
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,_8ca){
return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width");
};
dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_8cc){
return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height");
};
dojo.provide("dojo.html.util");
dojo.html.getElementWindow=function(_8cd){
return dojo.html.getDocumentWindow(_8cd.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 _8d5=dojo.html.getCursorPosition(e);
with(dojo.html){
var _8d6=getAbsolutePosition(node,true);
var bb=getBorderBox(node);
var _8d8=_8d6.x+(bb.width/2);
var _8d9=_8d6.y+(bb.height/2);
}
with(dojo.html.gravity){
return ((_8d5.x<_8d8?WEST:EAST)|(_8d5.y<_8d9?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(_8da,e){
_8da=dojo.byId(_8da);
var _8dc=dojo.html.getCursorPosition(e);
var bb=dojo.html.getBorderBox(_8da);
var _8de=dojo.html.getAbsolutePosition(_8da,true,dojo.html.boxSizing.BORDER_BOX);
var top=_8de.y;
var _8e0=top+bb.height;
var left=_8de.x;
var _8e2=left+bb.width;
return (_8dc.x>=left&&_8dc.x<=_8e2&&_8dc.y>=top&&_8dc.y<=_8e0);
};
dojo.html.renderedTextContent=function(node){
node=dojo.byId(node);
var _8e4="";
if(node==null){
return _8e4;
}
for(var i=0;i<node.childNodes.length;i++){
switch(node.childNodes[i].nodeType){
case 1:
case 5:
var _8e6="unknown";
try{
_8e6=dojo.html.getStyle(node.childNodes[i],"display");
}
catch(E){
}
switch(_8e6){
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":
_8e4+="\n";
_8e4+=dojo.html.renderedTextContent(node.childNodes[i]);
_8e4+="\n";
break;
case "none":
break;
default:
if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){
_8e4+="\n";
}else{
_8e4+=dojo.html.renderedTextContent(node.childNodes[i]);
}
break;
}
break;
case 3:
case 2:
case 4:
var text=node.childNodes[i].nodeValue;
var _8e8="unknown";
try{
_8e8=dojo.html.getStyle(node,"text-transform");
}
catch(E){
}
switch(_8e8){
case "capitalize":
var _8e9=text.split(" ");
for(var i=0;i<_8e9.length;i++){
_8e9[i]=_8e9[i].charAt(0).toUpperCase()+_8e9[i].substring(1);
}
text=_8e9.join(" ");
break;
case "uppercase":
text=text.toUpperCase();
break;
case "lowercase":
text=text.toLowerCase();
break;
default:
break;
}
switch(_8e8){
case "nowrap":
break;
case "pre-wrap":
break;
case "pre-line":
break;
case "pre":
break;
default:
text=text.replace(/\s+/," ");
if(/\s$/.test(_8e4)){
text.replace(/^\s/,"");
}
break;
}
_8e4+=text;
break;
default:
break;
}
}
return _8e4;
};
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 _8ed="none";
if((/^<t[dh][\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody><tr>"+txt+"</tr></tbody></table>";
_8ed="cell";
}else{
if((/^<tr[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table><tbody>"+txt+"</tbody></table>";
_8ed="row";
}else{
if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){
txt="<table>"+txt+"</table>";
_8ed="section";
}
}
}
tn.innerHTML=txt;
if(tn["normalize"]){
tn.normalize();
}
var _8ee=null;
switch(_8ed){
case "cell":
_8ee=tn.getElementsByTagName("tr")[0];
break;
case "row":
_8ee=tn.getElementsByTagName("tbody")[0];
break;
case "section":
_8ee=tn.getElementsByTagName("table")[0];
break;
default:
_8ee=tn;
break;
}
var _8ef=[];
for(var x=0;x<_8ee.childNodes.length;x++){
_8ef.push(_8ee.childNodes[x].cloneNode(true));
}
tn.style.display="none";
dojo.html.destroyNode(tn);
return _8ef;
};
dojo.html.placeOnScreen=function(node,_8f2,_8f3,_8f4,_8f5,_8f6,_8f7){
if(_8f2 instanceof Array||typeof _8f2=="array"){
_8f7=_8f6;
_8f6=_8f5;
_8f5=_8f4;
_8f4=_8f3;
_8f3=_8f2[1];
_8f2=_8f2[0];
}
if(_8f6 instanceof String||typeof _8f6=="string"){
_8f6=_8f6.split(",");
}
if(!isNaN(_8f4)){
_8f4=[Number(_8f4),Number(_8f4)];
}else{
if(!(_8f4 instanceof Array||typeof _8f4=="array")){
_8f4=[0,0];
}
}
var _8f8=dojo.html.getScroll().offset;
var view=dojo.html.getViewport();
node=dojo.byId(node);
var _8fa=node.style.display;
node.style.display="";
var bb=dojo.html.getBorderBox(node);
var w=bb.width;
var h=bb.height;
node.style.display=_8fa;
if(!(_8f6 instanceof Array||typeof _8f6=="array")){
_8f6=["TL"];
}
var _8fe,_8ff,_900=Infinity,_901;
for(var _902=0;_902<_8f6.length;++_902){
var _903=_8f6[_902];
var _904=true;
var tryX=_8f2-(_903.charAt(1)=="L"?0:w)+_8f4[0]*(_903.charAt(1)=="L"?1:-1);
var tryY=_8f3-(_903.charAt(0)=="T"?0:h)+_8f4[1]*(_903.charAt(0)=="T"?1:-1);
if(_8f5){
tryX-=_8f8.x;
tryY-=_8f8.y;
}
if(tryX<0){
tryX=0;
_904=false;
}
if(tryY<0){
tryY=0;
_904=false;
}
var x=tryX+w;
if(x>view.width){
x=view.width-w;
_904=false;
}else{
x=tryX;
}
x=Math.max(_8f4[0],x)+_8f8.x;
var y=tryY+h;
if(y>view.height){
y=view.height-h;
_904=false;
}else{
y=tryY;
}
y=Math.max(_8f4[1],y)+_8f8.y;
if(_904){
_8fe=x;
_8ff=y;
_900=0;
_901=_903;
break;
}else{
var dist=Math.pow(x-tryX-_8f8.x,2)+Math.pow(y-tryY-_8f8.y,2);
if(_900>dist){
_900=dist;
_8fe=x;
_8ff=y;
_901=_903;
}
}
}
if(!_8f7){
node.style.left=_8fe+"px";
node.style.top=_8ff+"px";
}
return {left:_8fe,top:_8ff,x:_8fe,y:_8ff,dist:_900,corner:_901};
};
dojo.html.placeOnScreenPoint=function(node,_90b,_90c,_90d,_90e){
dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5");
return dojo.html.placeOnScreen(node,_90b,_90c,_90d,_90e,["TL","TR","BL","BR"]);
};
dojo.html.placeOnScreenAroundElement=function(node,_910,_911,_912,_913,_914){
var best,_916=Infinity;
_910=dojo.byId(_910);
var _917=_910.style.display;
_910.style.display="";
var mb=dojo.html.getElementBox(_910,_912);
var _919=mb.width;
var _91a=mb.height;
var _91b=dojo.html.getAbsolutePosition(_910,true,_912);
_910.style.display=_917;
for(var _91c in _913){
var pos,_91e,_91f;
var _920=_913[_91c];
_91e=_91b.x+(_91c.charAt(1)=="L"?0:_919);
_91f=_91b.y+(_91c.charAt(0)=="T"?0:_91a);
pos=dojo.html.placeOnScreen(node,_91e,_91f,_911,true,_920,true);
if(pos.dist==0){
best=pos;
break;
}else{
if(_916>pos.dist){
_916=pos.dist;
best=pos;
}
}
}
if(!_914){
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 _922=node.parentNode;
var _923=_922.scrollTop+dojo.html.getBorderBox(_922).height;
var _924=node.offsetTop+dojo.html.getMarginBox(node).height;
if(_923<_924){
_922.scrollTop+=(_924-_923);
}else{
if(_922.scrollTop>node.offsetTop){
_922.scrollTop-=(_922.scrollTop-node.offsetTop);
}
}
}
}
};
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(_92b){
if(_92b){
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(_92c,_92d){
var rgb=null;
if(dojo.lang.isArray(_92c)){
rgb=_92c;
}else{
if(_92c instanceof dojo.gfx.color.Color){
rgb=_92c.toRgb();
}else{
rgb=new dojo.gfx.color.Color(_92c).toRgb();
}
}
return dojo.gfx.color.blend(this.toRgb(),rgb,_92d);
}});
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,_931){
if(typeof a=="string"){
return dojo.gfx.color.blendHex(a,b,_931);
}
if(!_931){
_931=0;
}
_931=Math.min(Math.max(-1,_931),1);
_931=((_931+1)/2);
var c=[];
for(var x=0;x<3;x++){
c[x]=parseInt(b[x]+((a[x]-b[x])*_931));
}
return c;
};
dojo.gfx.color.blendHex=function(a,b,_936){
return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_936));
};
dojo.gfx.color.extractRGB=function(_937){
var hex="0123456789abcdef";
_937=_937.toLowerCase();
if(_937.indexOf("rgb")==0){
var _939=_937.match(/rgba*\((\d+), *(\d+), *(\d+)/i);
var ret=_939.splice(1,3);
return ret;
}else{
var _93b=dojo.gfx.color.hex2rgb(_937);
if(_93b){
return _93b;
}else{
return dojo.gfx.color.named[_937]||[255,255,255];
}
}
};
dojo.gfx.color.hex2rgb=function(hex){
var _93d="0123456789ABCDEF";
var rgb=new Array(3);
if(hex.indexOf("#")==0){
hex=hex.substring(1);
}
hex=hex.toUpperCase();
if(hex.replace(new RegExp("["+_93d+"]","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]=_93d.indexOf(rgb[i].charAt(0))*16+_93d.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(_946,end){
this.start=_946;
this.end=end;
if(dojo.lang.isArray(_946)){
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-_946;
this.getValue=function(n){
return (diff*n)+this.start;
};
}
};
dojo.lfx.easeDefault=function(n){
if(dojo.render.html.khtml){
return (parseFloat("0.5")+((Math.sin((n+parseFloat("1.5"))*Math.PI))/2));
}else{
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:25,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,_955,_956){
if(!_956){
_956=_955;
_955=this;
}
_956=dojo.lang.hitch(_955,_956);
var _957=this[evt]||function(){
};
this[evt]=function(){
var ret=_957.apply(this,arguments);
_956.apply(this,arguments);
return ret;
};
return this;
},fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,(args||[]));
}
return this;
},repeat:function(_95b){
this.repeatCount=_95b;
return this;
},_active:false,_paused:false});
dojo.lfx.Animation=function(_95c,_95d,_95e,_95f,_960,rate){
dojo.lfx.IAnimation.call(this);
if(dojo.lang.isNumber(_95c)||(!_95c&&_95d.getValue)){
rate=_960;
_960=_95f;
_95f=_95e;
_95e=_95d;
_95d=_95c;
_95c=null;
}else{
if(_95c.getValue||dojo.lang.isArray(_95c)){
rate=_95f;
_960=_95e;
_95f=_95d;
_95e=_95c;
_95d=null;
_95c=null;
}
}
if(dojo.lang.isArray(_95e)){
this.curve=new dojo.lfx.Line(_95e[0],_95e[1]);
}else{
this.curve=_95e;
}
if(_95d!=null&&_95d>0){
this.duration=_95d;
}
if(_960){
this.repeatCount=_960;
}
if(rate){
this.rate=rate;
}
if(_95c){
dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){
if(_95c[item]){
this.connect(item,_95c[item]);
}
},this);
}
if(_95f&&dojo.lang.isFunction(_95f)){
this.easing=_95f;
}
};
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(_963,_964){
if(_964){
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(_963>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_964);
}),_963);
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 _966=this.curve.getValue(step);
if(this._percent==0){
if(!this._startRepeatCount){
this._startRepeatCount=this.repeatCount;
}
this.fire("handler",["begin",_966]);
this.fire("onBegin",[_966]);
}
this.fire("handler",["play",_966]);
this.fire("onPlay",[_966]);
this._cycle();
return this;
},pause:function(){
clearTimeout(this._timer);
if(!this._active){
return this;
}
this._paused=true;
var _967=this.curve.getValue(this._percent/100);
this.fire("handler",["pause",_967]);
this.fire("onPause",[_967]);
return this;
},gotoPercent:function(pct,_969){
clearTimeout(this._timer);
this._active=true;
this._paused=true;
this._percent=pct;
if(_969){
this.play();
}
return this;
},stop:function(_96a){
clearTimeout(this._timer);
var step=this._percent/100;
if(_96a){
step=1;
}
var _96c=this.curve.getValue(step);
this.fire("handler",["stop",_96c]);
this.fire("onStop",[_96c]);
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 _96f=this.curve.getValue(step);
this.fire("handler",["animate",_96f]);
this.fire("onAnimate",[_96f]);
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(_970){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._animsEnded=0;
var _971=arguments;
if(_971.length==1&&(dojo.lang.isArray(_971[0])||dojo.lang.isArrayLike(_971[0]))){
_971=_971[0];
}
dojo.lang.forEach(_971,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(_973,_974){
if(!this._anims.length){
return this;
}
this.fire("beforeBegin");
if(_973>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_974);
}),_973);
return this;
}
if(_974||this._anims[0].percent==0){
this.fire("onBegin");
}
this.fire("onPlay");
this._animsCall("play",null,_974);
return this;
},pause:function(){
this.fire("onPause");
this._animsCall("pause");
return this;
},stop:function(_975){
this.fire("onStop");
this._animsCall("stop",_975);
return this;
},_onAnimsEnded:function(){
this._animsEnded++;
if(this._animsEnded>=this._anims.length){
this.fire("onEnd");
}
return this;
},_animsCall:function(_976){
var args=[];
if(arguments.length>1){
for(var i=1;i<arguments.length;i++){
args.push(arguments[i]);
}
}
var _979=this;
dojo.lang.forEach(this._anims,function(anim){
anim[_976](args);
},_979);
return this;
}});
dojo.lfx.Chain=function(_97b){
dojo.lfx.IAnimation.call(this);
this._anims=[];
this._currAnim=-1;
var _97c=arguments;
if(_97c.length==1&&(dojo.lang.isArray(_97c[0])||dojo.lang.isArrayLike(_97c[0]))){
_97c=_97c[0];
}
var _97d=this;
dojo.lang.forEach(_97c,function(anim,i,_980){
this._anims.push(anim);
if(i<_980.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(_981,_982){
if(!this._anims.length){
return this;
}
if(_982||!this._anims[this._currAnim]){
this._currAnim=0;
}
var _983=this._anims[this._currAnim];
this.fire("beforeBegin");
if(_981>0){
setTimeout(dojo.lang.hitch(this,function(){
this.play(null,_982);
}),_981);
return this;
}
if(_983){
if(this._currAnim==0){
this.fire("handler",["begin",this._currAnim]);
this.fire("onBegin",[this._currAnim]);
}
this.fire("onPlay",[this._currAnim]);
_983.play(null,_982);
}
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 _984=this._anims[this._currAnim];
if(_984){
if(!_984._active||_984._paused){
this.play();
}else{
this.pause();
}
}
return this;
},stop:function(){
var _985=this._anims[this._currAnim];
if(_985){
_985.stop();
this.fire("onStop",[this._currAnim]);
}
return _985;
},_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(_986){
var _987=arguments;
if(dojo.lang.isArray(arguments[0])){
_987=arguments[0];
}
if(_987.length==1){
return _987[0];
}
return new dojo.lfx.Combine(_987);
};
dojo.lfx.chain=function(_988){
var _989=arguments;
if(dojo.lang.isArray(arguments[0])){
_989=arguments[0];
}
if(_989.length==1){
return _989[0];
}
return new dojo.lfx.Chain(_989);
};
dojo.provide("dojo.html.color");
dojo.html.getBackgroundColor=function(node){
node=dojo.byId(node);
var _98b;
do{
_98b=dojo.html.getStyle(node,"background-color");
if(_98b.toLowerCase()=="rgba(0, 0, 0, 0)"){
_98b="transparent";
}
if(node==document.getElementsByTagName("body")[0]){
node=null;
break;
}
node=node.parentNode;
}while(node&&dojo.lang.inArray(["transparent",""],_98b));
if(_98b=="transparent"){
_98b=[255,255,255,0];
}else{
_98b=dojo.gfx.color.extractRGB(_98b);
}
return _98b;
};
dojo.provide("dojo.lfx.html");
dojo.lfx.html._byId=function(_98c){
if(!_98c){
return [];
}
if(dojo.lang.isArrayLike(_98c)){
if(!_98c.alreadyChecked){
var n=[];
dojo.lang.forEach(_98c,function(node){
n.push(dojo.byId(node));
});
n.alreadyChecked=true;
return n;
}else{
return _98c;
}
}else{
var n=[];
n.push(dojo.byId(_98c));
n.alreadyChecked=true;
return n;
}
};
dojo.lfx.html.propertyAnimation=function(_98f,_990,_991,_992,_993){
_98f=dojo.lfx.html._byId(_98f);
var _994={"propertyMap":_990,"nodes":_98f,"duration":_991,"easing":_992||dojo.lfx.easeDefault};
var _995=function(args){
if(args.nodes.length==1){
var pm=args.propertyMap;
if(!dojo.lang.isArray(args.propertyMap)){
var parr=[];
for(var _999 in pm){
pm[_999].property=_999;
parr.push(pm[_999]);
}
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 _99b=function(_99c){
var _99d=[];
dojo.lang.forEach(_99c,function(c){
_99d.push(Math.round(c));
});
return _99d;
};
var _99f=function(n,_9a1){
n=dojo.byId(n);
if(!n||!n.style){
return;
}
for(var s in _9a1){
try{
if(s=="opacity"){
dojo.html.setOpacity(n,_9a1[s]);
}else{
n.style[s]=_9a1[s];
}
}
catch(e){
dojo.debug(e);
}
}
};
var _9a3=function(_9a4){
this._properties=_9a4;
this.diffs=new Array(_9a4.length);
dojo.lang.forEach(_9a4,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 _9ab=null;
if(dojo.lang.isArray(prop.start)){
}else{
if(prop.start instanceof dojo.gfx.color.Color){
_9ab=(prop.units||"rgb")+"(";
for(var j=0;j<prop.startRgb.length;j++){
_9ab+=Math.round(((prop.endRgb[j]-prop.startRgb[j])*n)+prop.startRgb[j])+(j<prop.startRgb.length-1?",":"");
}
_9ab+=")";
}else{
_9ab=((this.diffs[i])*n)+prop.start+(prop.property!="opacity"?prop.units||"px":"");
}
}
ret[dojo.html.toCamelCase(prop.property)]=_9ab;
},this);
return ret;
};
};
var anim=new dojo.lfx.Animation({beforeBegin:function(){
_995(_994);
anim.curve=new _9a3(_994.propertyMap);
},onAnimate:function(_9ae){
dojo.lang.forEach(_994.nodes,function(node){
_99f(node,_9ae);
});
}},_994.duration,null,_994.easing);
if(_993){
for(var x in _993){
if(dojo.lang.isFunction(_993[x])){
anim.connect(x,anim,_993[x]);
}
}
}
return anim;
};
dojo.lfx.html._makeFadeable=function(_9b1){
var _9b2=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(_9b1)){
dojo.lang.forEach(_9b1,_9b2);
}else{
_9b2(_9b1);
}
};
dojo.lfx.html.fade=function(_9b4,_9b5,_9b6,_9b7,_9b8){
_9b4=dojo.lfx.html._byId(_9b4);
var _9b9={property:"opacity"};
if(!dj_undef("start",_9b5)){
_9b9.start=_9b5.start;
}else{
_9b9.start=function(){
return dojo.html.getOpacity(_9b4[0]);
};
}
if(!dj_undef("end",_9b5)){
_9b9.end=_9b5.end;
}else{
dojo.raise("dojo.lfx.html.fade needs an end value");
}
var anim=dojo.lfx.propertyAnimation(_9b4,[_9b9],_9b6,_9b7);
anim.connect("beforeBegin",function(){
dojo.lfx.html._makeFadeable(_9b4);
});
if(_9b8){
anim.connect("onEnd",function(){
_9b8(_9b4,anim);
});
}
return anim;
};
dojo.lfx.html.fadeIn=function(_9bb,_9bc,_9bd,_9be){
return dojo.lfx.html.fade(_9bb,{end:1},_9bc,_9bd,_9be);
};
dojo.lfx.html.fadeOut=function(_9bf,_9c0,_9c1,_9c2){
return dojo.lfx.html.fade(_9bf,{end:0},_9c0,_9c1,_9c2);
};
dojo.lfx.html.fadeShow=function(_9c3,_9c4,_9c5,_9c6){
_9c3=dojo.lfx.html._byId(_9c3);
dojo.lang.forEach(_9c3,function(node){
dojo.html.setOpacity(node,0);
});
var anim=dojo.lfx.html.fadeIn(_9c3,_9c4,_9c5,_9c6);
anim.connect("beforeBegin",function(){
if(dojo.lang.isArrayLike(_9c3)){
dojo.lang.forEach(_9c3,dojo.html.show);
}else{
dojo.html.show(_9c3);
}
});
return anim;
};
dojo.lfx.html.fadeHide=function(_9c9,_9ca,_9cb,_9cc){
var anim=dojo.lfx.html.fadeOut(_9c9,_9ca,_9cb,function(){
if(dojo.lang.isArrayLike(_9c9)){
dojo.lang.forEach(_9c9,dojo.html.hide);
}else{
dojo.html.hide(_9c9);
}
if(_9cc){
_9cc(_9c9,anim);
}
});
return anim;
};
dojo.lfx.html.wipeIn=function(_9ce,_9cf,_9d0,_9d1){
_9ce=dojo.lfx.html._byId(_9ce);
var _9d2=[];
dojo.lang.forEach(_9ce,function(node){
var _9d4={};
var _9d5,_9d6,_9d7;
with(node.style){
_9d5=top;
_9d6=left;
_9d7=position;
top="-9999px";
left="-9999px";
position="absolute";
display="";
}
var _9d8=dojo.html.getBorderBox(node).height;
with(node.style){
top=_9d5;
left=_9d6;
position=_9d7;
display="none";
}
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:1,end:function(){
return _9d8;
}}},_9cf,_9d0);
anim.connect("beforeBegin",function(){
_9d4.overflow=node.style.overflow;
_9d4.height=node.style.height;
with(node.style){
overflow="hidden";
_9d8="1px";
}
dojo.html.show(node);
});
anim.connect("onEnd",function(){
with(node.style){
overflow=_9d4.overflow;
_9d8=_9d4.height;
}
if(_9d1){
_9d1(node,anim);
}
});
_9d2.push(anim);
});
return dojo.lfx.combine(_9d2);
};
dojo.lfx.html.wipeOut=function(_9da,_9db,_9dc,_9dd){
_9da=dojo.lfx.html._byId(_9da);
var _9de=[];
dojo.lang.forEach(_9da,function(node){
var _9e0={};
var anim=dojo.lfx.propertyAnimation(node,{"height":{start:function(){
return dojo.html.getContentBox(node).height;
},end:1}},_9db,_9dc,{"beforeBegin":function(){
_9e0.overflow=node.style.overflow;
_9e0.height=node.style.height;
with(node.style){
overflow="hidden";
}
dojo.html.show(node);
},"onEnd":function(){
dojo.html.hide(node);
with(node.style){
overflow=_9e0.overflow;
height=_9e0.height;
}
if(_9dd){
_9dd(node,anim);
}
}});
_9de.push(anim);
});
return dojo.lfx.combine(_9de);
};
dojo.lfx.html.slideTo=function(_9e2,_9e3,_9e4,_9e5,_9e6){
_9e2=dojo.lfx.html._byId(_9e2);
var _9e7=[];
var _9e8=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_9e3)){
dojo.deprecated("dojo.lfx.html.slideTo(node, array)","use dojo.lfx.html.slideTo(node, {top: value, left: value});","0.5");
_9e3={top:_9e3[0],left:_9e3[1]};
}
dojo.lang.forEach(_9e2,function(node){
var top=null;
var left=null;
var init=(function(){
var _9ed=node;
return function(){
var pos=_9e8(_9ed,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_9e8(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_9e8(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_9ed,true);
dojo.html.setStyleAttributes(_9ed,"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:(_9e3.top||0)},"left":{start:left,end:(_9e3.left||0)}},_9e4,_9e5,{"beforeBegin":init});
if(_9e6){
anim.connect("onEnd",function(){
_9e6(_9e2,anim);
});
}
_9e7.push(anim);
});
return dojo.lfx.combine(_9e7);
};
dojo.lfx.html.slideBy=function(_9f1,_9f2,_9f3,_9f4,_9f5){
_9f1=dojo.lfx.html._byId(_9f1);
var _9f6=[];
var _9f7=dojo.html.getComputedStyle;
if(dojo.lang.isArray(_9f2)){
dojo.deprecated("dojo.lfx.html.slideBy(node, array)","use dojo.lfx.html.slideBy(node, {top: value, left: value});","0.5");
_9f2={top:_9f2[0],left:_9f2[1]};
}
dojo.lang.forEach(_9f1,function(node){
var top=null;
var left=null;
var init=(function(){
var _9fc=node;
return function(){
var pos=_9f7(_9fc,"position");
top=(pos=="absolute"?node.offsetTop:parseInt(_9f7(node,"top"))||0);
left=(pos=="absolute"?node.offsetLeft:parseInt(_9f7(node,"left"))||0);
if(!dojo.lang.inArray(["absolute","relative"],pos)){
var ret=dojo.html.abs(_9fc,true);
dojo.html.setStyleAttributes(_9fc,"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+(_9f2.top||0)},"left":{start:left,end:left+(_9f2.left||0)}},_9f3,_9f4).connect("beforeBegin",init);
if(_9f5){
anim.connect("onEnd",function(){
_9f5(_9f1,anim);
});
}
_9f6.push(anim);
});
return dojo.lfx.combine(_9f6);
};
dojo.lfx.html.explode=function(_a00,_a01,_a02,_a03,_a04){
var h=dojo.html;
_a00=dojo.byId(_a00);
_a01=dojo.byId(_a01);
var _a06=h.toCoordinateObject(_a00,true);
var _a07=document.createElement("div");
h.copyStyle(_a07,_a01);
if(_a01.explodeClassName){
_a07.className=_a01.explodeClassName;
}
with(_a07.style){
position="absolute";
display="none";
var _a08=h.getStyle(_a00,"background-color");
backgroundColor=_a08?_a08.toLowerCase():"transparent";
backgroundColor=(backgroundColor=="transparent")?"rgb(221, 221, 221)":backgroundColor;
}
dojo.body().appendChild(_a07);
with(_a01.style){
visibility="hidden";
display="block";
}
var _a09=h.toCoordinateObject(_a01,true);
with(_a01.style){
display="none";
visibility="visible";
}
var _a0a={opacity:{start:0.5,end:1}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_a0a[type]={start:_a06[type],end:_a09[type]};
});
var anim=new dojo.lfx.propertyAnimation(_a07,_a0a,_a02,_a03,{"beforeBegin":function(){
h.setDisplay(_a07,"block");
},"onEnd":function(){
h.setDisplay(_a01,"block");
_a07.parentNode.removeChild(_a07);
}});
if(_a04){
anim.connect("onEnd",function(){
_a04(_a01,anim);
});
}
return anim;
};
dojo.lfx.html.implode=function(_a0d,end,_a0f,_a10,_a11){
var h=dojo.html;
_a0d=dojo.byId(_a0d);
end=dojo.byId(end);
var _a13=dojo.html.toCoordinateObject(_a0d,true);
var _a14=dojo.html.toCoordinateObject(end,true);
var _a15=document.createElement("div");
dojo.html.copyStyle(_a15,_a0d);
if(_a0d.explodeClassName){
_a15.className=_a0d.explodeClassName;
}
dojo.html.setOpacity(_a15,0.3);
with(_a15.style){
position="absolute";
display="none";
backgroundColor=h.getStyle(_a0d,"background-color").toLowerCase();
}
dojo.body().appendChild(_a15);
var _a16={opacity:{start:1,end:0.5}};
dojo.lang.forEach(["height","width","top","left"],function(type){
_a16[type]={start:_a13[type],end:_a14[type]};
});
var anim=new dojo.lfx.propertyAnimation(_a15,_a16,_a0f,_a10,{"beforeBegin":function(){
dojo.html.hide(_a0d);
dojo.html.show(_a15);
},"onEnd":function(){
_a15.parentNode.removeChild(_a15);
}});
if(_a11){
anim.connect("onEnd",function(){
_a11(_a0d,anim);
});
}
return anim;
};
dojo.lfx.html.highlight=function(_a19,_a1a,_a1b,_a1c,_a1d){
_a19=dojo.lfx.html._byId(_a19);
var _a1e=[];
dojo.lang.forEach(_a19,function(node){
var _a20=dojo.html.getBackgroundColor(node);
var bg=dojo.html.getStyle(node,"background-color").toLowerCase();
var _a22=dojo.html.getStyle(node,"background-image");
var _a23=(bg=="transparent"||bg=="rgba(0, 0, 0, 0)");
while(_a20.length>3){
_a20.pop();
}
var rgb=new dojo.gfx.color.Color(_a1a);
var _a25=new dojo.gfx.color.Color(_a20);
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_a25}},_a1b,_a1c,{"beforeBegin":function(){
if(_a22){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")";
},"onEnd":function(){
if(_a22){
node.style.backgroundImage=_a22;
}
if(_a23){
node.style.backgroundColor="transparent";
}
if(_a1d){
_a1d(node,anim);
}
}});
_a1e.push(anim);
});
return dojo.lfx.combine(_a1e);
};
dojo.lfx.html.unhighlight=function(_a27,_a28,_a29,_a2a,_a2b){
_a27=dojo.lfx.html._byId(_a27);
var _a2c=[];
dojo.lang.forEach(_a27,function(node){
var _a2e=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node));
var rgb=new dojo.gfx.color.Color(_a28);
var _a30=dojo.html.getStyle(node,"background-image");
var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_a2e,end:rgb}},_a29,_a2a,{"beforeBegin":function(){
if(_a30){
node.style.backgroundImage="none";
}
node.style.backgroundColor="rgb("+_a2e.toRgb().join(",")+")";
},"onEnd":function(){
if(_a2b){
_a2b(node,anim);
}
}});
_a2c.push(anim);
});
return dojo.lfx.combine(_a2c);
};
dojo.lang.mixin(dojo.lfx,dojo.lfx.html);
dojo.provide("dojo.lfx.*");
dojo.provide("dojo.lfx.toggle");
dojo.lfx.toggle.plain={show:function(node,_a33,_a34,_a35){
dojo.html.show(node);
if(dojo.lang.isFunction(_a35)){
_a35();
}
},hide:function(node,_a37,_a38,_a39){
dojo.html.hide(node);
if(dojo.lang.isFunction(_a39)){
_a39();
}
}};
dojo.lfx.toggle.fade={show:function(node,_a3b,_a3c,_a3d){
dojo.lfx.fadeShow(node,_a3b,_a3c,_a3d).play();
},hide:function(node,_a3f,_a40,_a41){
dojo.lfx.fadeHide(node,_a3f,_a40,_a41).play();
}};
dojo.lfx.toggle.wipe={show:function(node,_a43,_a44,_a45){
dojo.lfx.wipeIn(node,_a43,_a44,_a45).play();
},hide:function(node,_a47,_a48,_a49){
dojo.lfx.wipeOut(node,_a47,_a48,_a49).play();
}};
dojo.lfx.toggle.explode={show:function(node,_a4b,_a4c,_a4d,_a4e){
dojo.lfx.explode(_a4e||{x:0,y:0,width:0,height:0},node,_a4b,_a4c,_a4d).play();
},hide:function(node,_a50,_a51,_a52,_a53){
dojo.lfx.implode(node,_a53||{x:0,y:0,width:0,height:0},_a50,_a51,_a52).play();
}};
dojo.provide("dojo.widget.HtmlWidget");
dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{templateCssPath:null,templatePath:null,lang:"",toggle:"plain",toggleDuration:150,initialize:function(args,frag){
},postMixInProperties:function(args,frag){
if(this.lang===""){
this.lang=null;
}
this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain;
},createNodesFromText:function(txt,wrap){
return dojo.html.createNodesFromText(txt,wrap);
},destroyRendering:function(_a5a){
try{
if(this.bgIframe){
this.bgIframe.remove();
delete this.bgIframe;
}
if(!_a5a&&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 _a5e=w||wh.width;
var _a5f=h||wh.height;
if(this.width==_a5e&&this.height==_a5f){
return false;
}
this.width=_a5e;
this.height=_a5f;
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(_a62){
if(_a62.checkSize){
_a62.checkSize();
}
});
}});
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;\">\n  <div class=\"dojoButtonContents\" align=center dojoAttachPoint=\"containerNode\" style=\"position:absolute;z-index:2;\"></div>\n  <img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;\">\n  <img dojoAttachPoint=\"centerImage\" style=\"position:absolute;z-index:1;\">\n  <img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n</div>\n",templateCssString:"/* ---- button --- */\n.dojoButton {\n	padding: 0 0 0 0;\n	font-size: 8pt;\n	white-space: nowrap;\n	cursor: pointer;\n	font-family: Myriad, Tahoma, Verdana, sans-serif;\n}\n\n.dojoButton .dojoButtonContents {\n	padding: 2px 2px 2px 2px;\n	text-align: center;		/* if icon and label are split across two lines, center icon */\n	color: white;\n}\n\n.dojoButtonLeftPart .dojoButtonContents {\n	padding-right: 8px;\n}\n\n.dojoButtonDisabled {\n	cursor: url(\"images/no.gif\"), default;\n}\n\n\n.dojoButtonContents img {\n	vertical-align: middle;	/* if icon and label are on same line, center them */\n}\n\n/* -------- colors ------------ */\n\n.dojoButtonHover .dojoButtonContents {\n}\n\n.dojoButtonDepressed .dojoButtonContents {\n	color: #293a4b;\n}\n\n.dojoButtonDisabled .dojoButtonContents {\n	color: #aaa;\n}\n\n\n/* ---------- drop down button specific ---------- */\n\n/* border between label and arrow (for drop down buttons */\n.dojoButton .border {\n	width: 1px;\n	background: gray;\n}\n\n/* button arrow */\n.dojoButton .downArrow {\n	padding-left: 10px;\n	text-align: center;\n}\n\n.dojoButton.disabled .downArrow {\n	cursor : default;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/ButtonTemplate.css"),inactiveImg:"src/widget/templates/images/soriaButton-",activeImg:"src/widget/templates/images/soriaActive-",pressedImg:"src/widget/templates/images/soriaPressed-",disabledImg:"src/widget/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 _a63=document.createElement("span");
dojo.html.insertBefore(_a63,this.domNode);
}
dojo.body().appendChild(this.domNode);
this._sizeMyselfHelper();
if(_a63){
dojo.html.insertBefore(this.domNode,_a63);
dojo.html.removeNode(_a63);
}
},_sizeMyselfHelper:function(){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _a65=this.height*this.width2height;
this.containerNode.style.left=_a65+"px";
this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height;
this.leftImage.width=this.rightImage.width=_a65+1;
this.centerImage.width=this.containerWidth;
this.centerImage.style.left=_a65+"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*_a65)+"px";
},onMouseOver:function(e){
if(this.disabled){
return;
}
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(_a72){
this.leftImage.src=dojo.uri.dojoUri(_a72+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_a72+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_a72+"r.gif");
},_toggleMenu:function(_a73){
var menu=dojo.widget.getWidgetById(_a73);
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);
}else{
if(menu.close&&menu.isShowingNow){
menu.close();
}else{
menu.toggle();
}
}
},setCaption:function(_a76){
this.caption=_a76;
this.containerNode.innerHTML=_a76;
this._sizeMyself();
},setDisabled:function(_a77){
this.disabled=_a77;
this._sizeMyself();
}});
dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"src/widget/templates/images/whiteDownArrow.gif",disabledDownArrow:"src/widget/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.dojoUri(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\">\n\n	<div dojoAttachPoint=\"buttonNode\" class=\"dojoButtonLeftPart\" style=\"position:absolute;left:0px;top:0px;\"\n		dojoAttachEvent=\"onMouseOver; onMouseOut; onMouseDown; onMouseUp; onClick:buttonClick;\">\n		<div class=\"dojoButtonContents\" dojoAttachPoint=\"containerNode\" style=\"position:absolute;top:0px;right:0px;z-index:2;\"></div>\n		<img dojoAttachPoint=\"leftImage\" style=\"position:absolute;left:0px;top:0px;\">\n		<img dojoAttachPoint=\"centerImage\" style=\"position:absolute;right:0px;top:0px;z-index:1;\">\n	</div>\n\n	<div dojoAttachPoint=\"rightPart\" class=\"dojoButtonRightPart\" style=\"position:absolute;top:0px;right:0px;\"\n		dojoAttachEvent=\"onMouseOver:rightOver; onMouseOut:rightOut; onMouseDown:rightDown; onMouseUp:rightUp; onClick:rightClick;\">\n		<img dojoAttachPoint=\"arrowBackgroundImage\" style=\"position:absolute;top:0px;left:0px;z-index:1;\">\n		<img src=\"${dojoRoot}src/widget/templates/images/whiteDownArrow.gif\"\n		  		style=\"z-index:2;position:absolute;left:3px;top:50%;\">\n		<img dojoAttachPoint=\"rightImage\" style=\"position:absolute;top:0px;right:0px;\">\n	</div>\n\n</div>\n",splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){
var mb=dojo.html.getMarginBox(this.containerNode);
this.height=mb.height;
this.containerWidth=mb.width;
var _a7b=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=_a7b+1;
this.centerImage.width=this.containerWidth;
this.buttonNode.style.height=this.height+"px";
this.buttonNode.style.width=_a7b+this.containerWidth+"px";
this._setImage(this.disabled?this.disabledImg:this.inactiveImg);
this.arrowBackgroundImage.width=this.arrowWidth;
this.rightImage.width=_a7b+1;
this.rightPart.style.height=this.height+"px";
this.rightPart.style.width=this.arrowWidth+_a7b+"px";
this._setImageR(this.disabled?this.disabledImg:this.inactiveImg);
this.domNode.style.height=this.height+"px";
var _a7c=this.containerWidth+this.splitWidth+this.arrowWidth+2*_a7b;
this.domNode.style.width=_a7c+"px";
},_setImage:function(_a7d){
this.leftImage.src=dojo.uri.dojoUri(_a7d+"l.gif");
this.centerImage.src=dojo.uri.dojoUri(_a7d+"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(_a83){
this.arrowBackgroundImage.src=dojo.uri.dojoUri(_a83+"c.gif");
this.rightImage.src=dojo.uri.dojoUri(_a83+"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.Checkbox");
dojo.widget.defineWidget("dojo.widget.Checkbox",dojo.widget.HtmlWidget,{templateString:"<span style=\"display: inline-block;\" tabIndex=\"${this.tabIndex}\" waiRole=\"checkbox\" id=\"${this.id}\">\n	<img dojoAttachPoint=\"imageNode\" class=\"dojoHtmlCheckbox\" src=\"${dojoRoot}src/widget/templates/images/blank.gif\" alt=\"\" />\n	<input type=\"checkbox\" name=\"${this.name}\" style=\"display: none\" value=\"${this.value}\"\n		dojoAttachPoint=\"inputNode\">\n</span>",templateCssString:".dojoHtmlCheckbox {\n	border: 0px;\n	width: 16px;\n	height: 16px;\n	margin: 2px;\n	vertical-align: middle;\n}\n\n.dojoHtmlCheckboxOn {\n	background: url(check.gif) 0px 0px;\n}\n.dojoHtmlCheckboxOff {\n	background: url(check.gif) -16px 0px;\n}\n.dojoHtmlCheckboxDisabledOn {\n	background: url(check.gif) -32px 0px;\n}\n.dojoHtmlCheckboxDisabledOff {\n	background: url(check.gif) -48px 0px;\n}\n.dojoHtmlCheckboxOnHover {\n	background: url(check.gif) -64px 0px;\n}\n.dojoHtmlCheckboxOffHover {\n	background: url(check.gif) -80px 0px;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/Checkbox.css"),name:"",id:"",checked:false,tabIndex:"",value:"on",postMixInProperties:function(){
dojo.widget.Checkbox.superclass.postMixInProperties.apply(this,arguments);
if(!this.disabled&&this.tabIndex==""){
this.tabIndex="0";
}
},fillInTemplate:function(){
this._setInfo();
},postCreate:function(){
var _a86=true;
this.id=this.id!=""?this.id:this.widgetId;
if(this.id!=""){
var _a87=document.getElementsByTagName("label");
if(_a87!=null&&_a87.length>0){
for(var i=0;i<_a87.length;i++){
if(_a87[i].htmlFor==this.id){
_a87[i].id=(_a87[i].htmlFor+"label");
this._connectEvents(_a87[i]);
dojo.widget.wai.setAttr(this.domNode,"waiState","labelledby",_a87[i].id);
break;
}
}
}
}
this._connectEvents(this.domNode);
this.inputNode.checked=this.checked;
},_connectEvents:function(node){
dojo.event.connect(node,"onmouseover",this,"mouseOver");
dojo.event.connect(node,"onmouseout",this,"mouseOut");
dojo.event.connect(node,"onkey",this,"onKey");
dojo.event.connect(node,"onclick",this,"_onClick");
dojo.html.disableSelection(node);
},_onClick:function(e){
if(this.disabled==false){
this.checked=!this.checked;
this._setInfo();
}
e.preventDefault();
e.stopPropagation();
this.onClick();
},setValue:function(bool){
if(this.disabled==false){
this.checked=bool;
this._setInfo();
}
},onClick:function(){
},onKey:function(e){
var k=dojo.event.browser.keys;
if(e.key==" "){
this._onClick(e);
}
},mouseOver:function(e){
this._hover(e,true);
},mouseOut:function(e){
this._hover(e,false);
},_hover:function(e,_a91){
if(this.disabled==false){
var _a92=this.checked?"On":"Off";
var _a93="dojoHtmlCheckbox"+_a92+"Hover";
if(_a91){
dojo.html.addClass(this.imageNode,_a93);
}else{
dojo.html.removeClass(this.imageNode,_a93);
}
}
},_setInfo:function(){
var _a94="dojoHtmlCheckbox"+(this.disabled?"Disabled":"")+(this.checked?"On":"Off");
dojo.html.setClass(this.imageNode,"dojoHtmlCheckbox "+_a94);
this.inputNode.checked=this.checked;
if(this.disabled){
this.inputNode.setAttribute("disabled",true);
}else{
this.inputNode.removeAttribute("disabled");
}
dojo.widget.wai.setAttr(this.domNode,"waiState","checked",this.checked);
}});
dojo.widget.defineWidget("dojo.widget.a11y.Checkbox",dojo.widget.Checkbox,{templateString:"<span class='dojoHtmlCheckbox'>\n	<input type=\"checkbox\" name=\"${this.name}\" tabIndex=\"${this.tabIndex}\" id=\"${this.id}\" value=\"${this.value}\"\n		 dojoAttachEvent=\"onClick: _onClick;\" dojoAttachPoint=\"inputNode\"> \n</span>\n",fillInTemplate:function(){
},postCreate:function(args,frag){
this.inputNode.checked=this.checked;
if(this.disabled){
this.inputNode.setAttribute("disabled",true);
}
},_onClick:function(){
this.onClick();
}});
dojo.provide("dojo.io.cookie");
dojo.io.cookie.setCookie=function(name,_a98,days,path,_a9b,_a9c){
var _a9d=-1;
if((typeof days=="number")&&(days>=0)){
var d=new Date();
d.setTime(d.getTime()+(days*24*60*60*1000));
_a9d=d.toGMTString();
}
_a98=escape(_a98);
document.cookie=name+"="+_a98+";"+(_a9d!=-1?" expires="+_a9d+";":"")+(path?"path="+path:"")+(_a9b?"; domain="+_a9b:"")+(_a9c?"; 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 _aa1=document.cookie.substring(idx+name.length+1);
var end=_aa1.indexOf(";");
if(end==-1){
end=_aa1.length;
}
_aa1=_aa1.substring(0,end);
_aa1=unescape(_aa1);
return _aa1;
};
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,_aa8,_aa9,_aaa){
if(arguments.length==5){
_aaa=_aa8;
_aa8=null;
_aa9=null;
}
var _aab=[],_aac,_aad="";
if(!_aaa){
_aac=dojo.io.cookie.getObjectCookie(name);
}
if(days>=0){
if(!_aac){
_aac={};
}
for(var prop in obj){
if(obj[prop]==null){
delete _aac[prop];
}else{
if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){
_aac[prop]=obj[prop];
}
}
}
prop=null;
for(var prop in _aac){
_aab.push(escape(prop)+"="+escape(_aac[prop]));
}
_aad=_aab.join("&");
}
dojo.io.cookie.setCookie(name,_aad,days,path,_aa8,_aa9);
};
dojo.io.cookie.getObjectCookie=function(name){
var _ab0=null,_ab1=dojo.io.cookie.getCookie(name);
if(_ab1){
_ab0={};
var _ab2=_ab1.split("&");
for(var i=0;i<_ab2.length;i++){
var pair=_ab2[i].split("=");
var _ab5=pair[1];
if(isNaN(_ab5)){
_ab5=unescape(pair[1]);
}
_ab0[unescape(pair[0])]=_ab5;
}
}
return _ab0;
};
dojo.io.cookie.isSupported=function(){
if(typeof navigator.cookieEnabled!="boolean"){
dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null);
var _ab6=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__");
navigator.cookieEnabled=(_ab6=="CookiesAllowed");
if(navigator.cookieEnabled){
this.deleteCookie("__TestingYourBrowserForCookieSupport__");
}
}
return navigator.cookieEnabled;
};
if(!dojo.io.cookies){
dojo.io.cookies=dojo.io.cookie;
}
dojo.provide("dojo.io.*");
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,_ab9){
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,_abd){
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();
}
}},_abd));
},_cacheSetting:function(_ac3,_ac4){
for(var x in this.bindArgs){
if(dojo.lang.isUndefined(_ac3[x])){
_ac3[x]=this.bindArgs[x];
}
}
if(dojo.lang.isUndefined(_ac3.useCache)){
_ac3.useCache=_ac4;
}
if(dojo.lang.isUndefined(_ac3.preventCache)){
_ac3.preventCache=!_ac4;
}
if(dojo.lang.isUndefined(_ac3.mimetype)){
_ac3.mimetype="text/html";
}
return _ac3;
},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(_ac9){
var st=this[_ac9];
var err="";
var _acc=this.scriptScope||window;
for(var i=0;i<st.length;i++){
try{
st[i].call(_acc);
}
catch(e){
err+="\n"+st[i]+" failed: "+e.description;
}
}
this[_ac9]=[];
if(err.length){
var name=(_ac9=="_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(_ad3,obj,func){
if(typeof func=="undefined"){
_ad3.push(obj);
}else{
_ad3.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,_add,_ade){
if(!_add){
_add="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[_add](e);
if(e.returnValue){
switch(_ade){
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 _ae1=[],_ae2=[],tmp=[];
var _ae4=[],_ae5=[],attr=[],_ae7=[];
var str="",path="",fix="",_aeb="",tag="",_aed="";
if(!url){
url="./";
}
if(s){
var _aee=/<title[^>]*>([\s\S]*?)<\/title>/i;
while(_ae4=_aee.exec(s)){
_ae1.push(_ae4[1]);
s=s.substring(0,_ae4.index)+s.substr(_ae4.index+_ae4[0].length);
}
if(this.adjustPaths){
var _aef=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;
var _af0=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;
var _af1=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;
while(tag=_aef.exec(s)){
str+=s.substring(0,tag.index);
s=s.substring((tag.index+tag[0].length),s.length);
tag=tag[0];
_aeb="";
while(attr=_af0.exec(tag)){
path="";
_aed=attr[3];
switch(attr[1].toLowerCase()){
case "src":
case "href":
if(_af1.exec(_aed)){
path=_aed;
}else{
path=(new dojo.uri.Uri(url,_aed).toString());
}
break;
case "style":
path=dojo.html.fixPathsInCssText(_aed,url);
break;
default:
path=_aed;
}
fix=" "+attr[1]+"="+attr[2]+path+attr[2];
_aeb+=tag.substring(0,attr.index)+fix;
tag=tag.substring((attr.index+attr[0].length),tag.length);
}
str+=_aeb+tag;
}
s=str+s;
}
_aee=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;
while(_ae4=_aee.exec(s)){
if(_ae4[1]&&_ae4[1].toLowerCase()=="style"){
_ae7.push(dojo.html.fixPathsInCssText(_ae4[2],url));
}else{
if(attr=_ae4[3].match(/href=(['"]?)([^'">]*)\1/i)){
_ae7.push({path:attr[2]});
}
}
s=s.substring(0,_ae4.index)+s.substr(_ae4.index+_ae4[0].length);
}
var _aee=/<script([^>]*)>([\s\S]*?)<\/script>/i;
var _af2=/src=(['"]?)([^"']*)\1/i;
var _af3=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/;
var _af4=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g;
var _af5=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/;
while(_ae4=_aee.exec(s)){
if(this.executeScripts&&_ae4[1]){
if(attr=_af2.exec(_ae4[1])){
if(_af3.exec(attr[2])){
dojo.debug("Security note! inhibit:"+attr[2]+" from  being loaded again.");
}else{
_ae2.push({path:attr[2]});
}
}
}
if(_ae4[2]){
var sc=_ae4[2].replace(_af4,"");
if(!sc){
continue;
}
while(tmp=_af5.exec(sc)){
_ae5.push(tmp[0]);
sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length);
}
if(this.executeScripts){
_ae2.push(sc);
}
}
s=s.substr(0,_ae4.index)+s.substr(_ae4.index+_ae4[0].length);
}
if(this.extractContent){
_ae4=s.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_ae4){
s=_ae4[1];
}
}
if(this.executeScripts&&this.scriptSeparation){
var _aee=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/;
var _af7=/([\s'";:\(])scriptScope(.*)/;
str="";
while(tag=_aee.exec(s)){
tmp=((tag[3]=="'")?"\"":"'");
fix="";
str+=s.substring(0,tag.index)+tag[1];
while(attr=_af7.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":_ae7,"titles":_ae1,"requires":_ae5,"scripts":_ae2,"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 _afd=this;
function asyncParse(){
if(_afd.executeScripts){
_afd._executeScripts(data.scripts);
}
if(_afd.parseContent){
var node=_afd.containerNode||_afd.domNode;
var _aff=new dojo.xml.Parse();
var frag=_aff.parseElement(node,null,true);
dojo.widget.getParser().createSubComponents(frag,_afd);
}
_afd.onResized();
_afd.onLoad();
}
if(dojo.hostenv.isXDomain&&data.requires.length){
dojo.addOnLoad(asyncParse);
}else{
asyncParse();
}
}
},setHandler:function(_b01){
var fcn=dojo.lang.isFunction(_b01)?_b01:window[_b01];
if(!dojo.lang.isFunction(fcn)){
this._handleDefaults("Unable to set handler, '"+_b01+"' 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(_b04){
var self=this;
var tmp="",code="";
for(var i=0;i<_b04.length;i++){
if(_b04[i].path){
dojo.io.bind(this._cacheSetting({"url":_b04[i].path,"load":function(type,_b0a){
dojo.lang.hitch(self,tmp=";"+_b0a);
},"error":function(type,_b0c){
_b0c.text=type+" downloading remote script";
self._handleDefaults.call(self,_b0c,"onExecError","debug");
},"mimetype":"text/plain","sync":true},this.cacheContent));
code+=tmp;
}else{
code+=_b04[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.html.iframe");
dojo.html.iframeContentWindow=function(_b10){
var win=dojo.html.getDocumentWindow(dojo.html.iframeContentDocument(_b10))||dojo.html.iframeContentDocument(_b10).__parent__||(_b10.name&&document.frames[_b10.name])||null;
return win;
};
dojo.html.iframeContentDocument=function(_b12){
var doc=_b12.contentDocument||((_b12.contentWindow)&&(_b12.contentWindow.document))||((_b12.name)&&(document.frames[_b12.name])&&(document.frames[_b12.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 _b16=dojo.html.getMarginBox(this.domNode);
if(_b16.width==0||_b16.height==0){
dojo.lang.setTimeout(this,this.onResized,100);
return;
}
this.iframe.style.width=_b16.width+"px";
this.iframe.style.height=_b16.height+"px";
}
},size:function(node){
if(!this.iframe){
return;
}
var _b18=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX);
with(this.iframe.style){
width=_b18.width+"px";
height=_b18.height+"px";
left=_b18.left+"px";
top=_b18.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.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 _b1c=this;
setTimeout(function(){
_b1c._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(_b1e){
if(arguments.length>=3){
_b1e=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]);
}else{
_b1e=new dojo.gfx.color.Color(_b1e);
}
this.bg.style.backgroundColor=_b1e.toString();
return this.bgColor=_b1e;
},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 _b20=dojo.html.getViewport();
var h=_b20.height;
var w=_b20.width;
with(this.bg.style){
width=w+"px";
height=h+"px";
}
var _b23=dojo.html.getScroll().offset;
this.bg.style.top=_b23.y+"px";
this.bg.style.left=_b23.x+"px";
var _b20=dojo.html.getViewport();
if(_b20.width!=w){
this.bg.style.width=_b20.width+"px";
}
if(_b20.height!=h){
this.bg.style.height=_b20.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 _b24=dojo.html.getScroll().offset;
var _b25=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=_b24.x+(_b25.width-mb.width)/2;
var y=_b24.y+(_b25.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 _b2b=dojo.html.getScroll().offset;
this.bg.style.top=_b2b.y+"px";
this.bg.style.left=_b2b.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\">\n	<span dojoattachpoint=\"tabStartOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\"	tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabStart\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div>\n	<span dojoattachpoint=\"tabEnd\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n	<span dojoattachpoint=\"tabEndOuter\" dojoonfocus=\"trapTabs\" dojoonblur=\"clearTrap\" tabindex=\"0\"></span>\n</div>\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.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:"",storedDate:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedItem"},templateString:"<div class=\"datePickerContainer\" dojoAttachPoint=\"datePickerContainerNode\">\n	<table cellspacing=\"0\" cellpadding=\"0\" class=\"calendarContainer\">\n		<thead>\n			<tr>\n				<td class=\"monthWrapper\" valign=\"top\">\n					<table class=\"monthContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n						<tr>\n							<td class=\"monthCurve monthCurveTL\" valign=\"top\"></td>\n							<td class=\"monthLabelContainer\" valign=\"top\">\n								<span dojoAttachPoint=\"increaseWeekNode\" \n									dojoAttachEvent=\"onClick: onIncrementWeek;\" \n									class=\"incrementControl increase\">\n									<img src=\"${dojoRoot}src/widget/templates/images/incrementMonth.png\" \n									alt=\"&darr;\" style=\"width:7px;height:5px;\" />\n								</span>\n								<span \n									dojoAttachPoint=\"increaseMonthNode\" \n									dojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl increase\">\n									<img src=\"${dojoRoot}src/widget/templates/images/incrementMonth.png\" \n										alt=\"&darr;\"  dojoAttachPoint=\"incrementMonthImageNode\">\n								</span>\n								<span \n									dojoAttachPoint=\"decreaseWeekNode\" \n									dojoAttachEvent=\"onClick: onIncrementWeek;\" \n									class=\"incrementControl decrease\">\n									<img src=\"${dojoRoot}src/widget/templates/images/decrementMonth.png\" alt=\"&uarr;\" style=\"width:7px;height:5px;\" />\n								</span>\n								<span \n									dojoAttachPoint=\"decreaseMonthNode\" \n									dojoAttachEvent=\"onClick: onIncrementMonth;\" class=\"incrementControl decrease\">\n									<img src=\"${dojoRoot}src/widget/templates/images/decrementMonth.png\" \n										alt=\"&uarr;\" dojoAttachPoint=\"decrementMonthImageNode\">\n								</span>\n								<span dojoAttachPoint=\"monthLabelNode\" class=\"month\"></span>\n							</td>\n							<td class=\"monthCurve monthCurveTR\" valign=\"top\"></td>\n						</tr>\n					</table>\n				</td>\n			</tr>\n		</thead>\n		<tbody>\n			<tr>\n				<td colspan=\"3\">\n					<table class=\"calendarBodyContainer\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n						<thead>\n							<tr dojoAttachPoint=\"dayLabelsRow\">\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n							</tr>\n						</thead>\n						<tbody dojoAttachPoint=\"calendarDatesContainerNode\" \n							dojoAttachEvent=\"onClick: _handleUiClick;\">\n							<tr dojoAttachPoint=\"calendarWeekTemplate\">\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n								<td></td>\n							</tr>\n						</tbody>\n					</table>\n				</td>\n			</tr>\n		</tbody>\n		<tfoot>\n			<tr>\n				<td colspan=\"3\" class=\"yearWrapper\">\n					<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" class=\"yearContainer\">\n						<tr>\n							<td class=\"curveBL\" valign=\"top\"></td>\n							<td valign=\"top\">\n								<h3 class=\"yearLabel\">\n									<span dojoAttachPoint=\"previousYearLabelNode\"\n										dojoAttachEvent=\"onClick: onIncrementYear;\" class=\"previousYear\"></span>\n									<span class=\"selectedYear\" dojoAttachPoint=\"currentYearLabelNode\"></span>\n									<span dojoAttachPoint=\"nextYearLabelNode\" \n										dojoAttachEvent=\"onClick: onIncrementYear;\" class=\"nextYear\"></span>\n								</h3>\n							</td>\n							<td class=\"curveBR\" valign=\"top\"></td>\n						</tr>\n					</table>\n				</td>\n			</tr>\n		</tfoot>\n	</table>\n	\n</div>\n",templateCssString:".datePickerContainer {\n	width:164px; /* needed for proper user styling */\n}\n\n.calendarContainer {\n/*	border:1px solid #566f8f;*/\n}\n\n.calendarBodyContainer {\n	width:100%; /* needed for the explode effect (explain?) */\n	background: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\n}\n\n.calendarBodyContainer thead tr td {\n	color:#293a4b;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n	padding:0.25em;\n	background: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.calendarBodyContainer tbody tr td {\n	color:#fff;\n	font:bold 0.7em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n	padding:0.4em;\n	background: url(\"images/dpVertLine.gif\") top right repeat-y;\n	cursor:pointer;\n	cursor:hand;\n}\n\n\n.monthWrapper {\n	padding-bottom:2px;\n	background: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\n}\n\n.monthContainer {\n	width:100%;\n}\n\n.monthLabelContainer {\n	text-align:center;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	background: url(\"images/dpMonthBg.png\") repeat-x top left !important;\n	color:#293a4b;\n	padding:0.25em;\n}\n\n.monthCurve {\n	width:12px;\n}\n\n.monthCurveTL {\n	background: url(\"images/dpCurveTL.png\") no-repeat top left !important;\n}\n\n.monthCurveTR {\n		background: url(\"images/dpCurveTR.png\") no-repeat top right !important;\n}\n\n\n.yearWrapper {\n	background: url(\"images/dpHorizLineFoot.gif\") top left repeat-x;\n	padding-top:2px;\n}\n\n.yearContainer {\n	width:100%;\n}\n\n.yearContainer td {\n	background:url(\"images/dpYearBg.png\") top left repeat-x;\n}\n\n.yearContainer .yearLabel {\n	margin:0;\n	padding:0.45em 0 0.45em 0;\n	color:#fff;\n	font:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\n	text-align:center;\n}\n\n.curveBL {\n	background: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\n	width:9px !important;\n	padding:0;\n	margin:0;\n}\n\n.curveBR {\n	background: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\n	width:9px !important;\n	padding:0;\n	margin:0;\n}\n\n\n.previousMonth {\n	background-color:#6782a8 !important;\n}\n\n.previousMonthDisabled {\n	background-color:#a4a5a6 !important;\n	cursor:default !important\n}\n.currentMonth {\n}\n\n.currentMonthDisabled {\n	background-color:#bbbbbc !important;\n	cursor:default !important\n}\n.nextMonth {\n	background-color:#6782a8 !important;\n}\n.nextMonthDisabled {\n	background-color:#a4a5a6 !important;\n	cursor:default !important;\n}\n\n.currentDate {\n	text-decoration:underline;\n	font-style:italic;\n}\n\n.selectedItem {\n	background-color:#fff !important;\n	color:#6782a8 !important;\n}\n\n.yearLabel .selectedYear {\n	padding:0.2em;\n	background-color:#9ec3fb !important;\n}\n\n.nextYear, .previousYear {\n	cursor:pointer;cursor:hand;\n	padding:0;\n}\n\n.nextYear {\n	margin:0 0 0 0.55em;\n}\n\n.previousYear {\n	margin:0 0.55em 0 0;\n}\n\n.incrementControl {\n	cursor:pointer;cursor:hand;\n	width:1em;\n}\n\n.increase {\n	float:right;\n}\n\n.decrease {\n	float:left;\n}\n\n.lastColumn {\n	background-image:none !important;\n}\n\n\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/DatePicker.css"),postMixInProperties:function(){
dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments);
if(this.storedDate){
dojo.deprecated("dojo.widget.DatePicker","use 'value' instead of 'storedDate'","0.5");
this.value=this.storedDate;
}
this.startDate=dojo.date.fromRfc3339(this.startDate);
this.endDate=dojo.date.fromRfc3339(this.endDate);
this.startDate.setHours(0,0,0,0);
this.endDate.setHours(24,0,0,-1);
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 _b31=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_b31);
this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate);
this._preInitUI(this.value?this.value:this.today,false,true);
var _b32=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang));
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
_b32.push(_b32.shift());
}
}
var _b34=this.dayLabelsRow.getElementsByTagName("td");
for(i=0;i<7;i++){
_b34.item(i).innerHTML=_b32[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(_b35){
this.setDate(_b35);
},setDate:function(_b36){
if(typeof _b36=="string"){
this.value=dojo.date.fromRfc3339(_b36);
}else{
this.value=new Date(_b36);
}
this.value.setHours(0,0,0,0);
if(this.selectedNode!=null){
dojo.html.removeClass(this.selectedNode,this.classNames.selectedDate);
}
if(this.clickedNode!=null){
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(_b37,_b38,_b39){
if(_b37<this.startDate||_b37>this.endDate){
_b37=new Date((_b37<this.startDate)?this.startDate:this.endDate);
}
this.firstDay=this._initFirstDay(_b37,_b38);
this.selectedIsUsed=false;
this.currentIsUsed=false;
var _b3a=new Date(this.firstDay);
var _b3b=_b3a.getMonth();
this.curMonth=new Date(_b3a);
this.curMonth.setDate(_b3a.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(_b3a,this.endDate,dojo.date.dateParts.DAY)>days){
this._preInitUI(this.startDate,true,false);
_b3a=new Date(this.firstDay);
}
this.curMonth=new Date(_b3a);
this.curMonth.setDate(_b3a.getDate()+6);
this.curMonth.setDate(1);
var _b3d=(_b3a.getMonth()==this.curMonth.getMonth())?"current":"previous";
}
if(_b39){
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 _b40=new Date(this.firstDay);
this._setMonthLabel(this.curMonth.getMonth());
this._setYearLabels(this.curMonth.getFullYear());
var _b41=this.calendarDatesContainerNode.getElementsByTagName("td");
var _b42=this.calendarDatesContainerNode.getElementsByTagName("tr");
var _b43;
for(i=0;i<days;i++){
_b43=_b41.item(i);
_b43.innerHTML=_b40.getDate();
var _b44=(_b40.getMonth()<this.curMonth.getMonth())?"previous":(_b40.getMonth()==this.curMonth.getMonth())?"current":"next";
var _b45=_b44;
if(this._isDisabledDate(_b40)){
var _b46={previous:"disabledPrevious",current:"disabledCurrent",next:"disabledNext"};
_b45=_b46[_b44];
}
dojo.html.setClass(_b43,this._getDateClassName(_b40,_b45));
if(dojo.html.hasClass(_b43,this.classNames.selectedDate)){
this.selectedNode=_b43;
}
_b40=dojo.date.add(_b40,dojo.date.dateParts.DAY,1);
}
this.lastDay=dojo.date.add(_b40,dojo.date.dateParts.DAY,-1);
this._initControls();
},_initControls:function(){
var d=this.firstDay;
var d2=this.lastDay;
var _b49,_b4a,_b4b,_b4c,_b4d,_b4e;
_b49=_b4a=_b4b=_b4c=_b4d=_b4e=!this.staticDisplay;
with(dojo.date.dateParts){
var add=dojo.date.add;
if(_b49&&add(d,DAY,(-1*(this._getAdjustedDay(d)+1)))<this.startDate){
_b49=_b4b=_b4d=false;
}
if(_b4a&&d2>this.endDate){
_b4a=_b4c=_b4e=false;
}
if(_b4b&&add(d,DAY,-1)<this.startDate){
_b4b=_b4d=false;
}
if(_b4c&&add(d2,DAY,1)>this.endDate){
_b4c=_b4e=false;
}
if(_b4d&&add(d2,YEAR,-1)<this.startDate){
_b4d=false;
}
if(_b4e&&add(d,YEAR,1)>this.endDate){
_b4e=false;
}
}
function enableControl(node,_b51){
dojo.html.setVisibility(node,_b51?"":"hidden");
}
enableControl(this.decreaseWeekNode,_b49);
enableControl(this.increaseWeekNode,_b4a);
enableControl(this.decreaseMonthNode,_b4b);
enableControl(this.increaseMonthNode,_b4c);
enableControl(this.previousYearLabelNode,_b4d);
enableControl(this.nextYearLabelNode,_b4e);
},_incrementWeek:function(evt){
var d=new Date(this.firstDay);
switch(evt.target){
case this.increaseWeekNode.getElementsByTagName("img").item(0):
case this.increaseWeekNode:
var _b54=dojo.date.add(d,dojo.date.dateParts.WEEK,1);
if(_b54<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 _b57=new Date(this.firstDay);
switch(evt.currentTarget){
case this.increaseMonthNode.getElementsByTagName("img").item(0):
case this.increaseMonthNode:
_b57=dojo.date.add(_b57,dojo.date.dateParts.DAY,this.displayWeeks*7);
if(_b57<this.endDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,1);
}else{
var _b58=true;
}
break;
case this.decreaseMonthNode.getElementsByTagName("img").item(0):
case this.decreaseMonthNode:
if(_b57>this.startDate){
d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1);
}else{
var _b59=true;
}
break;
}
if(_b59){
d=new Date(this.startDate);
}else{
if(_b58){
d=new Date(this.endDate);
}
}
this._preInitUI(d,false,true);
},_incrementYear:function(evt){
var year=this.curMonth.getFullYear();
var _b5c=new Date(this.firstDay);
switch(evt.target){
case this.nextYearLabelNode:
_b5c=dojo.date.add(_b5c,dojo.date.dateParts.YEAR,1);
if(_b5c<this.endDate){
year++;
}else{
var _b5d=true;
}
break;
case this.previousYearLabelNode:
_b5c=dojo.date.add(_b5c,dojo.date.dateParts.YEAR,-1);
if(_b5c>this.startDate){
year--;
}else{
var _b5e=true;
}
break;
}
var d;
if(_b5e){
d=new Date(this.startDate);
}else{
if(_b5d){
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(_b63){
this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_b63];
},_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,_b69){
var _b6a=this.classNames[_b69];
if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){
_b6a=this.classNames.selectedDate+" "+_b6a;
this.selectedIsUsed=true;
}
if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){
_b6a=_b6a+" "+this.classNames.currentDate;
this.currentIsUsed=true;
}
return _b6a;
},onClick:function(evt){
dojo.event.browser.stopEvent(evt);
},_handleUiClick:function(evt){
var _b6d=evt.target;
if(_b6d.nodeType!=dojo.dom.ELEMENT_NODE){
_b6d=_b6d.parentNode;
}
dojo.event.browser.stopEvent(evt);
this.selectedIsUsed=this.todayIsUsed=false;
var _b6e=this.curMonth.getMonth();
var year=this.curMonth.getFullYear();
if(dojo.html.hasClass(_b6d,this.classNames["disabledPrevious"])||dojo.html.hasClass(_b6d,this.classNames["disabledCurrent"])||dojo.html.hasClass(_b6d,this.classNames["disabledNext"])){
return;
}else{
if(dojo.html.hasClass(_b6d,this.classNames["next"])){
_b6e=++_b6e%12;
if(_b6e===0){
++year;
}
}else{
if(dojo.html.hasClass(_b6d,this.classNames["previous"])){
_b6e=--_b6e%12;
if(_b6e==11){
--year;
}
}
}
}
this.clickedNode=_b6d;
this.setDate(new Date(year,_b6e,_b6d.innerHTML));
},onValueChanged:function(date){
},_isDisabledDate:function(_b71){
if(_b71<this.startDate||_b71>this.endDate){
return true;
}
return this.isDisabledDate(_b71,this.lang);
},isDisabledDate:function(_b72,_b73){
return false;
},_initFirstDay:function(_b74,adj){
var d=new Date(_b74);
if(!adj){
d.setDate(1);
}
d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn));
d.setHours(0,0,0,0);
return d;
},_getAdjustedDay:function(_b77){
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[_b77.getDay()];
},destroy:function(){
dojo.widget.DatePicker.superclass.destroy.apply(this,arguments);
dojo.html.destroyNode(this.weekTemplate);
}});
dojo.provide("dojo.widget.PopupContainer");
dojo.declare("dojo.widget.PopupContainerBase",null,function(){
this.queueOnAnimationFinish=[];
},{isContainer:true,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"display:none;position:absolute;\" class=\"dojoPopupContainer\" ></div>",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,_b7d,_b7e,_b7f,_b80){
if(this.isShowingNow){
return;
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.open,arguments);
return;
}
this.aboutToShow();
var _b81=false,node,_b83;
if(typeof x=="object"){
node=x;
_b83=_b7e;
_b7e=_b7d;
_b7d=y;
_b81=true;
}
this.parent=_b7d;
dojo.body().appendChild(this.domNode);
_b7e=_b7e||_b7d["domNode"]||[];
var _b84=null;
this.isTopLevel=true;
while(_b7d){
if(_b7d!==this&&(_b7d.setOpenedSubpopup!=undefined&&_b7d.applyPopupBasicStyle!=undefined)){
_b84=_b7d;
this.isTopLevel=false;
_b84.setOpenedSubpopup(this);
break;
}
_b7d=_b7d.parent;
}
this.parentPopup=_b84;
this.popupIndex=_b84?_b84.popupIndex+1:1;
if(this.isTopLevel){
var _b85=dojo.html.isNode(_b7e)?_b7e:null;
dojo.widget.PopupManager.opened(this,_b85);
}
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(_b7e instanceof Array){
_b7e={left:_b7e[0],top:_b7e[1],width:0,height:0};
}
with(this.domNode.style){
display="";
zIndex=this.beginZIndex+this.popupIndex;
}
if(_b81){
this.move(node,_b80,_b83);
}else{
this.move(x,y,_b80,_b7f);
}
this.domNode.style.display="none";
this.explodeSrc=_b7e;
this.show();
this.isShowingNow=true;
},move:function(x,y,_b88,_b89){
var _b8a=(typeof x=="object");
if(_b8a){
var _b8b=_b88;
var node=x;
_b88=y;
if(!_b8b){
_b8b={"BL":"TL","TL":"BL"};
}
dojo.html.placeOnScreenAroundElement(this.domNode,node,_b88,this.aroundBox,_b8b);
}else{
if(!_b89){
_b89="TL,TR,BL,BR";
}
dojo.html.placeOnScreen(this.domNode,x,y,_b88,true,_b89);
}
},close:function(_b8d){
if(_b8d){
this.domNode.style.display="none";
}
if(this.animationInProgress){
this.queueOnAnimationFinish.push(this.close,[]);
return;
}
this.closeSubpopup(_b8d);
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(_b8e){
if(this.parentPopup){
this.parentPopup.closeAll(_b8e);
}else{
this.close(_b8e);
}
},setOpenedSubpopup:function(_b8f){
this.currentSubpopup=_b8f;
},closeSubpopup:function(_b90){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_b90);
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],{});
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(_b94){
if(!_b94){
_b94=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document);
}
this.registerWin(_b94);
for(var i=0;i<_b94.frames.length;i++){
try{
var win=dojo.html.getDocumentWindow(_b94.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,_b9b){
if(menu==this.currentMenu){
return;
}
if(this.currentMenu){
this.currentMenu.close();
}
this.currentMenu=menu;
this.currentFocusMenu=menu;
this.currentButton=_b9b;
};
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;
}
},this.onClick=function(e){
if(!this.currentMenu){
return;
}
var _ba0=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.close();
};
};
dojo.provide("dojo.widget.DropdownContainer");
dojo.widget.defineWidget("dojo.widget.DropdownContainer",dojo.widget.HtmlWidget,{inputWidth:"7em",id:"",inputId:"",inputName:"",iconURL:dojo.uri.dojoUri("src/widget/templates/images/combo_box_arrow.png"),copyClasses:false,iconAlt:"",containerToggle:"plain",containerToggleDuration:150,templateString:"<span style=\"white-space:nowrap\"><input type=\"hidden\" name=\"\" value=\"\" dojoAttachPoint=\"valueNode\" /><input name=\"\" type=\"text\" value=\"\" style=\"vertical-align:middle;\" dojoAttachPoint=\"inputNode\" autocomplete=\"off\" /> <img src=\"${this.iconURL}\" alt=\"${this.iconAlt}\" dojoAttachEvent=\"onclick:onIconClick\" dojoAttachPoint=\"buttonNode\" style=\"vertical-align:middle; cursor:pointer; cursor:hand\" /></span>",templateCssPath:"",isContainer:true,attachTemplateNodes:function(){
dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments);
this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration});
this.containerNode=this.popup.domNode;
},fillInTemplate:function(args,frag){
this.domNode.appendChild(this.popup.domNode);
if(this.id){
this.domNode.id=this.id;
}
if(this.inputId){
this.inputNode.id=this.inputId;
}
if(this.inputName){
this.inputNode.name=this.inputName;
}
this.inputNode.style.width=this.inputWidth;
this.inputNode.disabled=this.disabled;
if(this.copyClasses){
this.inputNode.style="";
this.inputNode.className=this.getFragNodeRef(frag).className;
}
dojo.event.connect(this.inputNode,"onchange",this,"onInputChange");
},onIconClick:function(evt){
if(this.disabled){
return;
}
if(!this.popup.isShowingNow){
this.popup.open(this.inputNode,this,this.buttonNode);
}else{
this.popup.close();
}
},hideContainer:function(){
if(this.popup.isShowingNow){
this.popup.close();
}
},onInputChange:function(){
},enable:function(){
this.inputNode.disabled=false;
dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments);
},disable:function(){
this.inputNode.disabled=true;
dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments);
}});
dojo.provide("dojo.widget.html.layout");
dojo.widget.html.layout=function(_ba5,_ba6,_ba7){
dojo.html.addClass(_ba5,"dojoLayoutContainer");
_ba6=dojo.lang.filter(_ba6,function(_ba8,idx){
_ba8.idx=idx;
return dojo.lang.inArray(["top","bottom","left","right","client","flood"],_ba8.layoutAlign);
});
if(_ba7&&_ba7!="none"){
var rank=function(_bab){
switch(_bab.layoutAlign){
case "flood":
return 1;
case "left":
case "right":
return (_ba7=="left-right")?2:3;
case "top":
case "bottom":
return (_ba7=="left-right")?3:2;
default:
return 4;
}
};
_ba6.sort(function(a,b){
return (rank(a)-rank(b))||(a.idx-b.idx);
});
}
var f={top:dojo.html.getPixelValue(_ba5,"padding-top",true),left:dojo.html.getPixelValue(_ba5,"padding-left",true)};
dojo.lang.mixin(f,dojo.html.getContentBox(_ba5));
dojo.lang.forEach(_ba6,function(_baf){
var elm=_baf.domNode;
var pos=_baf.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(_baf.onResized){
_baf.onResized();
}
}else{
if(pos=="left"||pos=="right"){
var w=dojo.html.getMarginBox(elm).width;
if(_baf.resizeTo){
_baf.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(_baf.resizeTo){
_baf.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.LayoutContainer");
dojo.widget.defineWidget("dojo.widget.LayoutContainer",dojo.widget.HtmlWidget,{isContainer:true,layoutChildPriority:"top-bottom",postCreate:function(){
dojo.widget.html.layout(this.domNode,this.children,this.layoutChildPriority);
},addChild:function(_bb4,_bb5,pos,ref,_bb8){
dojo.widget.LayoutContainer.superclass.addChild.call(this,_bb4,_bb5,pos,ref,_bb8);
dojo.widget.html.layout(this.domNode,this.children,this.layoutChildPriority);
},removeChild:function(pane){
dojo.widget.LayoutContainer.superclass.removeChild.call(this,pane);
dojo.widget.html.layout(this.domNode,this.children,this.layoutChildPriority);
},onResized:function(){
dojo.widget.html.layout(this.domNode,this.children,this.layoutChildPriority);
},show:function(){
this.domNode.style.display="";
this.checkSize();
this.domNode.style.display="none";
this.domNode.style.visibility="";
dojo.widget.LayoutContainer.superclass.show.call(this);
}});
dojo.lang.extend(dojo.widget.Widget,{layoutAlign:"none"});
dojo.provide("dojo.widget.Menu2");
dojo.widget.defineWidget("dojo.widget.PopupMenu2",dojo.widget.PopupContainer,function(){
this.targetNodeIds=[];
this.eventNames={open:""};
},{snarfChildDomOutput:true,eventNaming:"default",templateString:"<table class=\"dojoPopupMenu2\" border=0 cellspacing=0 cellpadding=0 style=\"display: none;\"><tbody dojoAttachPoint=\"containerNode\"></tbody></table>",templateCssString:"\n.dojoPopupMenu2 {\n	position: absolute;\n	border: 1px solid #7298d0;\n	background:#85aeec url(images/soriaMenuBg.gif) repeat-x bottom left !important;\n	padding: 1px;\n	margin-top: 1px;\n	margin-bottom: 1px;\n}\n\n.dojoMenuItem2{\n	white-space: nowrap;\n	font: menu;\n	margin: 0;\n}\n\n.dojoMenuItem2Hover {\n	background-color: #D2E4FD;\n	cursor:pointer;\n	cursor:hand;\n}\n\n.dojoMenuItem2Icon {\n	position: relative;\n	background-position: center center;\n	background-repeat: no-repeat;\n	width: 16px;\n	height: 16px;\n	padding-right: 3px;\n}\n\n.dojoMenuItem2Label {\n	position: relative;\n	vertical-align: middle;\n}\n\n/* main label text */\n.dojoMenuItem2Label {\n	position: relative;\n	vertical-align: middle;\n}\n\n.dojoMenuItem2Accel {\n	position: relative;\n	vertical-align: middle;\n	padding-left: 3px;\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Label,\n.dojoMenuItem2Disabled .dojoMenuItem2Accel {\n	color: #607a9e;\n}\n\n.dojoMenuItem2Submenu {\n	position: relative;\n	background-position: center center;\n	background-repeat: no-repeat;\n	background-image: url(images/submenu_off.gif);\n	width: 5px;\n	height: 9px;\n	padding-left: 3px;\n}\n.dojoMenuItem2Hover .dojoMenuItem2Submenu {\n	background-image: url(images/submenu_on.gif);\n}\n\n.dojoMenuItem2Disabled .dojoMenuItem2Submenu {\n	background-image: url(images/submenu_disabled.gif);\n}\n\n.dojoMenuSeparator2 {\n	font-size: 1px;\n	margin: 0;\n}\n\n.dojoMenuSeparator2Top {\n	height: 50%;\n	border-bottom: 1px solid #7a98c4;\n	margin: 0px 2px;\n	font-size: 1px;\n}\n\n.dojoMenuSeparator2Bottom {\n	height: 50%;\n	border-top: 1px solid #c9deff;\n	margin: 0px 2px;\n	font-size: 1px;\n}\n\n.dojoMenuBar2 {\n	/*position: relative;*/\n	background:#85aeec url(images/soriaBarBg.gif) repeat-x top left;\n	border-bottom:1px solid #6b9fec;\n	\n}\n\n.dojoMenuBar2Client {\n	padding: 1px;\n}\n\n.dojoMenuBarItem2 {\n	white-space: nowrap;\n	font: menu;\n	margin: 0;\n	position: relative;\n	vertical-align: middle;\n	z-index: 1;\n	padding: 3px 8px;\n}\n\n.dojoMenuBarItem2 span {\n	margin: 0;\n	position: relative;\n	z-index: 2;\n	cursor:pointer;\n	cursor:hand;\n}\n\n.dojoMenuBarItem2Hover {\n	background-color:#d2e4fd;\n}\n\n.dojoMenuBarItem2Disabled span {\n	color: #4f6582;\n}\n",templateCssPath:dojo.uri.dojoUri("src/widget/templates/Menu2.css"),templateCssString:"",submenuDelay:500,submenuOverlap:5,contextMenuForWindow:false,initialize:function(args,frag){
if(this.eventNaming=="default"){
for(var _bbc in this.eventNames){
this.eventNames[_bbc]=this.widgetId+"/"+_bbc;
}
}
},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 _bbe=this.getChildrenOfType(dojo.widget.MenuItem2);
for(var i=0;i<_bbe.length;i++){
dojo.event.topic.subscribe(this.eventNames.open,_bbe[i],"menuOpen");
}
},getTopOpenEvent:function(){
var menu=this;
while(menu.parentPopup){
menu=menu.parentPopup;
}
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(_bc3){
var node=dojo.byId(_bc3);
dojo.event.kwDisconnect({srcObj:node,srcFunc:"oncontextmenu",targetObj:this,targetFunc:"onOpen",once:true});
dojo.widget.Menu2.OperaAndKonqFixer.cleanNode(node);
},_moveToNext:function(evt){
this._highlightOption(1);
return true;
},_moveToPrevious:function(evt){
this._highlightOption(-1);
return true;
},_moveToParentMenu:function(evt){
if(this._highlighted_option&&this.parentPopup){
if(evt._menu2UpKeyProcessed){
return true;
}else{
this._highlighted_option.onUnhover();
this.closeSubpopup();
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:
dojo.widget.PopupManager.currentMenu.close();
rval=true;
break;
}
return rval;
},_findValidItem:function(dir,_bcd){
if(_bcd){
_bcd=dir>0?_bcd.getNextSibling():_bcd.getPreviousSibling();
}
for(var i=0;i<this.children.length;++i){
if(!_bcd){
_bcd=dir>0?this.children[0]:this.children[this.children.length-1];
}
if(_bcd.onHover&&_bcd.isShowing()){
return _bcd;
}
_bcd=dir>0?_bcd.getNextSibling():_bcd.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){
},close:function(_bd3){
if(this.animationInProgress){
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
return;
}
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
dojo.widget.PopupMenu2.superclass.close.apply(this,arguments);
},closeSubpopup:function(_bd4){
if(this.currentSubpopup==null){
return;
}
this.currentSubpopup.close(_bd4);
this.currentSubpopup=null;
this.currentSubmenuTrigger.is_open=false;
this.currentSubmenuTrigger._closedSubmenu(_bd4);
this.currentSubmenuTrigger=null;
},_openSubmenu:function(_bd5,_bd6){
var _bd7=dojo.html.getAbsolutePosition(_bd6.domNode,true);
var _bd8=dojo.html.getMarginBox(this.domNode).width;
var x=_bd7.x+_bd8-this.submenuOverlap;
var y=_bd7.y;
_bd5.open(x,y,this,_bd6.domNode);
this.currentSubmenuTrigger=_bd6;
this.currentSubmenuTrigger.is_open=true;
},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 _bdf=win._frameElement||win.frameElement;
if(_bdf){
var cood=dojo.html.abs(_bdf,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]);
e.preventDefault();
e.stopPropagation();
}});
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\">${this.caption}</td>"+"<td class=\"dojoMenuItem2Accel\">${this.accelKey}</td>"+"<td><div class=\"dojoMenuItem2Submenu\" style=\"display:${this.arrowDisplay};\"></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 _be1 in this.eventNames){
this.eventNames[_be1]=this.widgetId+"/"+_be1;
}
}
},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.closeSubpopup();
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.parentPopup){
dojo.widget.PopupManager.setFocusedMenu(this.parent.parentPopup);
}
this._stopSubmenuTimer();
},_onClick:function(_be2){
var _be3=false;
if(this.disabled){
return false;
}
if(this.submenuId){
if(!this.is_open){
this._stopSubmenuTimer();
this._openSubmenu();
}
_be3=true;
}else{
this.onUnhover();
this.parent.closeAll(true);
}
this.onClick();
dojo.event.topic.publish(this.eventNames.engage,this);
if(_be3&&_be2){
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 _be5=function(){
return function(){
self._openSubmenu();
};
}();
this.hover_timer=dojo.lang.setTimeout(_be5,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.closeSubpopup();
var _be6=dojo.widget.getWidgetById(this.submenuId);
if(_be6){
this.parent._openSubmenu(_be6,this);
}
},_closedSubmenu:function(){
this.onUnhover();
},setDisabled:function(_be7){
this.disabled=_be7;
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(_be8){
}});
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.PopupMenu2,{menuOverlap:2,templateString:"<div class=\"dojoMenuBar2\" tabIndex=\"0\"><table class=\"dojoMenuBar2Client\"><tr dojoAttachPoint=\"containerNode\"></tr></table></div>",close:function(_be9){
if(this._highlighted_option){
this._highlighted_option.onUnhover();
}
this.closeSubpopup(_be9);
},processKey:function(evt){
if(evt.ctrlKey||evt.altKey){
return false;
}
if(!dojo.html.hasClass(evt.target,"dojoMenuBar2")){
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);
dojo.widget.PopupManager.opened(this);
this.isShowingNow=true;
},_openSubmenu:function(_bec,_bed){
var _bee=dojo.html.getAbsolutePosition(_bed.domNode,true);
var _bef=dojo.html.getAbsolutePosition(this.domNode,true);
var _bf0=dojo.html.getBorderBox(this.domNode).height;
var x=_bee.x;
var y=_bef.y+_bf0-this.menuOverlap;
_bec.open(x,y,this,_bed.domNode);
this.currentSubmenuTrigger=_bed;
this.currentSubmenuTrigger.is_open=true;
}});
dojo.widget.defineWidget("dojo.widget.MenuBarItem2",dojo.widget.MenuItem2,{templateString:"<td class=\"dojoMenuBarItem2\" dojoAttachEvent=\"onMouseOver: onHover; onMouseOut: onUnhover; onClick: _onClick;\">"+"<span>${this.caption}</span>"+"</td>",highlightClass:"dojoMenuBarItem2Hover",setDisabled:function(_bf3){
this.disabled=_bf3;
if(this.disabled){
dojo.html.addClass(this.domNode,"dojoMenuBarItem2Disabled");
}else{
dojo.html.removeClass(this.domNode,"dojoMenuBarItem2Disabled");
}
}});
dojo.widget.Menu2.OperaAndKonqFixer=new function(){
var _bf4=true;
var _bf5=false;
if(!dojo.lang.isFunction(dojo.doc().oncontextmenu)){
dojo.doc().oncontextmenu=function(){
_bf4=false;
_bf5=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{
_bf4=false;
}
if(_bf5){
delete dojo.doc().oncontextmenu;
}
this.fixNode=function(node){
if(_bf4){
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(_bf4){
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.ProgressBar");
dojo.widget.defineWidget("dojo.widget.ProgressBar",dojo.widget.HtmlWidget,{progressValue:0,maxProgressValue:100,width:300,height:30,frontPercentClass:"frontPercent",backPercentClass:"backPercent",frontBarClass:"frontBar",backBarClass:"backBar",hasText:false,isVertical:false,showOnlyIntegers:false,dataSource:"",pollInterval:3000,duration:1000,templateString:"<div dojoAttachPoint=\"containerNode\" style=\"position:relative;overflow:hidden\">\n	<div style=\"position:absolute;display:none;width:100%;text-align:center\" dojoAttachPoint=\"backPercentLabel\" class=\"dojoBackPercentLabel\"></div>\n	<div style=\"position:absolute;overflow:hidden;width:100%;height:100%\" dojoAttachPoint=\"internalProgress\">\n	<div style=\"position:absolute;display:none;width:100%;text-align:center\" dojoAttachPoint=\"frontPercentLabel\" class=\"dojoFrontPercentLabel\"></div></div>\n</div>\n",templateCssString:".backBar{\n	border:1px solid #84a3d1;\n}\n.frontBar{\n	background:url(\"images/bar.gif\") repeat bottom left;\n	background-attachment: fixed;\n}\n.h-frontBar{\n	background:url(\"images/h-bar.gif\") repeat bottom left;\n	background-attachment: fixed;\n}\n.simpleFrontBar{\n	background: red;\n}\n.frontPercent,.backPercent{\n	font:bold 13px helvetica;\n}\n.backPercent{\n	color:#293a4b;\n}\n.frontPercent{\n	color:#fff;\n}",templateCssPath:dojo.uri.dojoUri("src/widget/templates/ProgressBar.css"),containerNode:null,internalProgress:null,_pixelUnitRatio:0,_pixelPercentRatio:0,_unitPercentRatio:0,_unitPixelRatio:0,_floatDimension:0,_intDimension:0,_progressPercentValue:"0%",_floatMaxProgressValue:0,_dimension:"width",_pixelValue:0,_oInterval:null,_animation:null,_animationStopped:true,_progressValueBak:false,_hasTextBak:false,fillInTemplate:function(args,frag){
this.internalProgress.className=this.frontBarClass;
this.containerNode.className=this.backBarClass;
if(this.isVertical){
this.internalProgress.style.bottom="0px";
this.internalProgress.style.left="0px";
this._dimension="height";
}else{
this.internalProgress.style.top="0px";
this.internalProgress.style.left="0px";
this._dimension="width";
}
this.frontPercentLabel.className=this.frontPercentClass;
this.backPercentLabel.className=this.backPercentClass;
this.progressValue=""+this.progressValue;
this.domNode.style.height=this.height+"px";
this.domNode.style.width=this.width+"px";
this._intDimension=parseInt("0"+eval("this."+this._dimension));
this._floatDimension=parseFloat("0"+eval("this."+this._dimension));
this._pixelPercentRatio=this._floatDimension/100;
this.setMaxProgressValue(this.maxProgressValue,true);
this.setProgressValue(dojo.string.trim(this.progressValue),true);
dojo.debug("float dimension: "+this._floatDimension);
dojo.debug("this._unitPixelRatio: "+this._unitPixelRatio);
this.showText(this.hasText);
},showText:function(_bfe){
if(_bfe){
this.backPercentLabel.style.display="block";
this.frontPercentLabel.style.display="block";
}else{
this.backPercentLabel.style.display="none";
this.frontPercentLabel.style.display="none";
}
this.hasText=_bfe;
},postCreate:function(args,frag){
this.render();
},_backupValues:function(){
this._progressValueBak=this.progressValue;
this._hasTextBak=this.hasText;
},_restoreValues:function(){
this.setProgressValue(this._progressValueBak);
this.showText(this._hasTextBak);
},_setupAnimation:function(){
var _c01=this;
dojo.debug("internalProgress width: "+this.internalProgress.style.width);
this._animation=dojo.lfx.html.slideTo(this.internalProgress,{top:0,left:parseInt(this.width)-parseInt(this.internalProgress.style.width)},parseInt(this.duration),null,function(){
var _c02=dojo.lfx.html.slideTo(_c01.internalProgress,{top:0,left:0},parseInt(_c01.duration));
dojo.event.connect(_c02,"onEnd",function(){
if(!_c01._animationStopped){
_c01._animation.play();
}
});
if(!_c01._animationStopped){
_c02.play();
}
_c02=null;
});
},getMaxProgressValue:function(){
return this.maxProgressValue;
},setMaxProgressValue:function(_c03,_c04){
if(!this._animationStopped){
return;
}
this.maxProgressValue=_c03;
this._floatMaxProgressValue=parseFloat("0"+this.maxProgressValue);
this._pixelUnitRatio=this._floatDimension/this.maxProgressValue;
this._unitPercentRatio=this._floatMaxProgressValue/100;
this._unitPixelRatio=this._floatMaxProgressValue/this._floatDimension;
this.setProgressValue(this.progressValue,true);
if(!_c04){
this.render();
}
},setProgressValue:function(_c05,_c06){
if(!this._animationStopped){
return;
}
this._progressPercentValue="0%";
var _c07=dojo.string.trim(""+_c05);
var _c08=parseFloat("0"+_c07);
var _c09=parseInt("0"+_c07);
var _c0a=0;
if(dojo.string.endsWith(_c07,"%",false)){
this._progressPercentValue=Math.min(_c08.toFixed(1),100)+"%";
_c07=Math.min((_c08)*this._unitPercentRatio,this.maxProgressValue);
_c0a=Math.min((_c08)*this._pixelPercentRatio,eval("this."+this._dimension));
}else{
this.progressValue=Math.min(_c08,this.maxProgressValue);
this._progressPercentValue=Math.min((_c08/this._unitPercentRatio).toFixed(1),100)+"%";
_c0a=Math.min(_c08/this._unitPixelRatio,eval("this."+this._dimension));
}
this.progressValue=dojo.string.trim(_c07);
this._pixelValue=_c0a;
if(!_c06){
this.render();
}
},getProgressValue:function(){
return this.progressValue;
},getProgressPercentValue:function(){
return this._progressPercentValue;
},setDataSource:function(_c0b){
this.dataSource=_c0b;
},setPollInterval:function(_c0c){
this.pollInterval=_c0c;
},start:function(){
var _c0d=dojo.lang.hitch(this,this._showRemoteProgress);
this._oInterval=setInterval(_c0d,this.pollInterval);
},startAnimation:function(){
if(this._animationStopped){
this._backupValues();
this.setProgressValue("10%");
this._animationStopped=false;
this._setupAnimation();
this.showText(false);
this.internalProgress.style.height="105%";
this._animation.play();
}
},stopAnimation:function(){
if(this._animation){
this._animationStopped=true;
this._animation.stop();
this.internalProgress.style.height="100%";
this.internalProgress.style.left="0px";
this._restoreValues();
this._setLabelPosition();
}
},_showRemoteProgress:function(){
var _c0e=this;
if((this.getMaxProgressValue()==this.getProgressValue())&&this._oInterval){
clearInterval(this._oInterval);
this._oInterval=null;
this.setProgressValue("100%");
return;
}
var _c0f={url:_c0e.dataSource,method:"POST",mimetype:"text/json",error:function(type,_c11){
dojo.debug("[ProgressBar] showRemoteProgress error");
},load:function(type,data,evt){
_c0e.setProgressValue((_c0e._oInterval?data["progress"]:"100%"));
}};
dojo.io.bind(_c0f);
},render:function(){
this._setPercentLabel(dojo.string.trim(this._progressPercentValue));
this._setPixelValue(this._pixelValue);
this._setLabelPosition();
},_setLabelPosition:function(){
var _c15=dojo.html.getContentBox(this.frontPercentLabel).width;
var _c16=dojo.html.getContentBox(this.frontPercentLabel).height;
var _c17=dojo.html.getContentBox(this.backPercentLabel).width;
var _c18=dojo.html.getContentBox(this.backPercentLabel).height;
var _c19=(parseInt(this.width)-_c15)/2+"px";
var _c1a=(parseInt(this.height)-parseInt(_c16))/2+"px";
var _c1b=(parseInt(this.width)-_c17)/2+"px";
var _c1c=(parseInt(this.height)-parseInt(_c18))/2+"px";
this.frontPercentLabel.style.left=_c19;
this.backPercentLabel.style.left=_c1b;
this.frontPercentLabel.style.bottom=_c1a;
this.backPercentLabel.style.bottom=_c1c;
},_setPercentLabel:function(_c1d){
dojo.dom.removeChildren(this.frontPercentLabel);
dojo.dom.removeChildren(this.backPercentLabel);
var _c1e=this.showOnlyIntegers==false?_c1d:parseInt(_c1d)+"%";
this.frontPercentLabel.appendChild(document.createTextNode(_c1e));
this.backPercentLabel.appendChild(document.createTextNode(_c1e));
},_setPixelValue:function(_c1f){
eval("this.internalProgress.style."+this._dimension+" = "+_c1f+" + 'px'");
this.onChange();
},onChange:function(){
}});
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 _c22=this.getFragNodeRef(frag);
dojo.html.copyStyle(this.domNode,_c22);
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 _c25;
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(_c27){
dojo.widget.PageContainer.superclass.addChild.apply(this,arguments);
this._setupChild(_c27);
this.onResized();
if(!this.selectedChildWidget){
this.selectChild(_c27);
}
},_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,_c2b){
page=dojo.widget.byId(page);
this.correspondingPageButton=_c2b;
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 _c2c=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_c2c+1]);
},back:function(){
var _c2d=dojo.lang.find(this.children,this.selectedChildWidget);
this.selectChild(this.children[_c2d-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 _c2e=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_c2e.width,_c2e.height);
}
},_showChild:function(page){
if(this.doLayout){
var _c30=dojo.html.getContentBox(this.containerNode);
page.resizeTo(_c30.width,_c30.height);
}
page.selected=true;
page.show();
},_hideChild:function(page){
page.selected=false;
page.hide();
},closeChild:function(page){
var _c33=page.onClose(this,page);
if(_c33){
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 _c34=dojo.widget.byId(this.containerId);
if(_c34){
dojo.lang.forEach(_c34.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 _c36=dojo.widget.createWidget(this.buttonWidget,{label:page.label,closeButton:page.closable});
this.addChild(_c36);
this.domNode.appendChild(_c36.domNode);
this.pane2button[page]=_c36;
page.controlButton=_c36;
var _c37=this;
dojo.event.connect(_c36,"onClick",function(){
_c37.onButtonClick(page);
});
dojo.event.connect(_c36,"onCloseButtonClick",function(){
_c37.onCloseButtonClick(page);
});
},onRemoveChild:function(page){
if(this._currentChild==page){
this._currentChild=null;
}
var _c39=this.pane2button[page];
if(_c39){
_c39.destroy();
}
this.pane2button[page]=null;
},onSelectChild:function(page){
if(this._currentChild){
var _c3b=this.pane2button[this._currentChild];
_c3b.clearSelected();
}
var _c3c=this.pane2button[page];
_c3c.setSelected();
this._currentChild=page;
},onButtonClick:function(page){
var _c3e=dojo.widget.byId(this.containerId);
_c3e.selectChild(page,false,this);
},onCloseButtonClick:function(page){
var _c40=dojo.widget.byId(this.containerId);
_c40.closeChild(page);
},onKey:function(evt){
if((evt.keyCode==evt.KEY_RIGHT_ARROW)||(evt.keyCode==evt.KEY_LEFT_ARROW)){
var _c42=0;
var next=null;
var _c42=dojo.lang.find(this.children,this.pane2button[this._currentChild]);
if(evt.keyCode==evt.KEY_RIGHT_ARROW){
next=this.children[(_c42+1)%this.children.length];
}else{
next=this.children[(_c42+(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\">\n	<div dojoAttachPoint=\"tablistNode\"></div>\n	<div class=\"dojoTabPaneWrapper\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onKey\" waiRole=\"tabpanel\"></div>\n</div>\n",templateCssString:".dojoTabContainer {\n	position : relative;\n}\n\n.dojoTabPaneWrapper {\n	border : 1px solid #6290d2;\n	_zoom: 1; /* force IE6 layout mode so top border doesnt disappear */\n	display: block;\n	clear: both;\n	overflow: hidden;\n}\n\n.dojoTabLabels-top {\n	position : relative;\n	top : 0px;\n	left : 0px;\n	overflow : visible;\n	margin-bottom : -1px;\n	width : 100%;\n	z-index: 2;	/* so the bottom of the tab label will cover up the border of dojoTabPaneWrapper */\n}\n\n.dojoTabNoLayout.dojoTabLabels-top .dojoTab {\n	margin-bottom: -1px;\n	_margin-bottom: 0px; /* IE filter so top border lines up correctly */\n}\n\n.dojoTab {\n	position : relative;\n	float : left;\n	padding-left : 9px;\n	border-bottom : 1px solid #6290d2;\n	background : url(images/tab_left.gif) no-repeat left top;\n	cursor: pointer;\n	white-space: nowrap;\n	z-index: 3;\n}\n\n.dojoTab div {\n	display : block;\n	padding : 4px 15px 4px 6px;\n	background : url(images/tab_top_right.gif) no-repeat right top;\n	color : #333;\n	font-size : 90%;\n}\n\n.dojoTab .close {\n	display : inline-block;\n	height : 12px;\n	width : 12px;\n	padding : 0 12px 0 0;\n	margin : 0 -10px 0 10px;\n	cursor : default;\n	font-size: small;\n}\n\n.dojoTab .closeImage {\n	background : url(images/tab_close.gif) no-repeat right top;\n}\n\n.dojoTab .closeHover {\n	background-image : url(images/tab_close_h.gif);\n}\n\n.dojoTab.current {\n	padding-bottom : 1px;\n	border-bottom : 0;\n	background-position : 0 -150px;\n}\n\n.dojoTab.current div {\n	padding-bottom : 5px;\n	margin-bottom : -1px;\n	background-position : 100% -150px;\n}\n\n/* bottom tabs */\n\n.dojoTabLabels-bottom {\n	position : relative;\n	bottom : 0px;\n	left : 0px;\n	overflow : visible;\n	margin-top : -1px;\n	width : 100%;\n	z-index: 2;\n}\n\n.dojoTabNoLayout.dojoTabLabels-bottom {\n	position : relative;\n}\n\n.dojoTabLabels-bottom .dojoTab {\n	border-top :  1px solid #6290d2;\n	border-bottom : 0;\n	background : url(images/tab_bot_left.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab div {\n	background : url(images/tab_bot_right.gif) no-repeat right bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current {\n	border-top : 0;\n	background : url(images/tab_bot_left_curr.gif) no-repeat left bottom;\n}\n\n.dojoTabLabels-bottom .dojoTab.current div {\n	padding-top : 4px;\n	background : url(images/tab_bot_right_curr.gif) no-repeat right bottom;\n}\n\n/* right-h tabs */\n\n.dojoTabLabels-right-h {\n	overflow : visible;\n	margin-left : -1px;\n	z-index: 2;\n}\n\n.dojoTabLabels-right-h .dojoTab {\n	padding-left : 0;\n	border-left :  1px solid #6290d2;\n	border-bottom : 0;\n	background : url(images/tab_bot_right.gif) no-repeat right bottom;\n	float : none;\n}\n\n.dojoTabLabels-right-h .dojoTab div {\n	padding : 4px 15px 4px 15px;\n}\n\n.dojoTabLabels-right-h .dojoTab.current {\n	border-left :  0;\n	border-bottom :  1px solid #6290d2;\n}\n\n/* left-h tabs */\n\n.dojoTabLabels-left-h {\n	overflow : visible;\n	margin-right : -1px;\n	z-index: 2;\n}\n\n.dojoTabLabels-left-h .dojoTab {\n	border-right :  1px solid #6290d2;\n	border-bottom : 0;\n	float : none;\n	background : url(images/tab_top_left.gif) no-repeat left top;\n}\n\n.dojoTabLabels-left-h .dojoTab.current {\n	border-right : 0;\n	border-bottom :  1px solid #6290d2;\n	padding-bottom : 0;\n	background : url(images/tab_top_left.gif) no-repeat 0 -150px;\n}\n\n.dojoTabLabels-left-h .dojoTab div {\n	background : 0;\n	border-bottom :  1px solid #6290d2;\n}\n",templateCssPath:dojo.uri.dojoUri("src/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 _c48=this.labelPosition.replace(/-h/,"");
var _c49=[{domNode:this.tablist.domNode,layoutAlign:_c48},{domNode:this.containerNode,layoutAlign:"client"}];
dojo.widget.html.layout(this.domNode,_c49);
if(this.selectedChildWidget){
var _c4a=dojo.html.getContentBox(this.containerNode);
this.selectedChildWidget.resizeTo(_c4a.width,_c4a.height);
}
},selectTab:function(tab,_c4c){
dojo.deprecated("use selectChild() rather than selectTab(), selectTab() will be removed in","0.5");
this.selectChild(tab,_c4c);
},onKey:function(e){
if(e.keyCode==e.KEY_UP_ARROW&&e.ctrlKey){
var _c4e=this.correspondingTabButton||this.selectedTabWidget.tabButton;
_c4e.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.dojoUri("src/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>"});

