/* 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:4,patch:3,flag:"sx",revision:Number("$Rev: 8617 $".match(/[0-9]+/)[0]),toString:function(){ with(dojo.version){ return major+"."+minor+"."+patch+flag+" ("+revision+")"; } }}; dojo.evalProp=function(_3,_4,_5){ if((!_4)||(!_3)){ return undefined; } if(!dj_undef(_3,_4)){ return _4[_3]; } return (_5?(_4[_3]={}):undefined); }; dojo.parseObjPath=function(_6,_7,_8){ var _9=(_7||dojo.global()); var _a=_6.split("."); var _b=_a.pop(); for(var i=0,l=_a.length;i1){ dh.modulesLoadedListeners.push(function(){ obj[_3d](); }); } } if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){ dh.callLoaded(); } }; dojo.addOnUnload=function(obj,_40){ var dh=dojo.hostenv; if(arguments.length==1){ dh.unloadListeners.push(obj); }else{ if(arguments.length>1){ dh.unloadListeners.push(function(){ obj[_40](); }); } } }; dojo.hostenv.modulesLoaded=function(){ if(this.post_load_){ return; } if(this.loadUriStack.length==0&&this.getTextStack.length==0){ if(this.inFlightCount>0){ dojo.debug("files still in flight!"); return; } dojo.hostenv.callLoaded(); } }; dojo.hostenv.callLoaded=function(){ if(typeof setTimeout=="object"||(djConfig["useXDomain"]&&dojo.render.html.opera)){ setTimeout("dojo.hostenv.loaded();",0); }else{ dojo.hostenv.loaded(); } }; dojo.hostenv.getModuleSymbols=function(_42){ var _43=_42.split("."); for(var i=_43.length;i>0;i--){ var _45=_43.slice(0,i).join("."); if((i==1)&&!this.moduleHasPrefix(_45)){ _43[0]="../"+_43[0]; }else{ var _46=this.getModulePrefix(_45); if(_46!=_45){ _43.splice(0,i,_46); break; } } } return _43; }; dojo.hostenv._global_omit_module_check=false; dojo.hostenv.loadModule=function(_47,_48,_49){ if(!_47){ return; } _49=this._global_omit_module_check||_49; var _4a=this.findModule(_47,false); if(_4a){ return _4a; } if(dj_undef(_47,this.loading_modules_)){ this.addedToLoadingCount.push(_47); } this.loading_modules_[_47]=1; var _4b=_47.replace(/\./g,"/")+".js"; var _4c=_47.split("."); var _4d=this.getModuleSymbols(_47); var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/)); var _4f=_4d[_4d.length-1]; var ok; if(_4f=="*"){ _47=_4c.slice(0,-1).join("."); while(_4d.length){ _4d.pop(); _4d.push(this.pkgFileName); _4b=_4d.join("/")+".js"; if(_4e&&_4b.charAt(0)=="/"){ _4b=_4b.slice(1); } ok=this.loadPath(_4b,!_49?_47:null); if(ok){ break; } _4d.pop(); } }else{ _4b=_4d.join("/")+".js"; _47=_4c.join("."); var _51=!_49?_47:null; ok=this.loadPath(_4b,_51); if(!ok&&!_48){ _4d.pop(); while(_4d.length){ _4b=_4d.join("/")+".js"; ok=this.loadPath(_4b,_51); if(ok){ break; } _4d.pop(); _4b=_4d.join("/")+"/"+this.pkgFileName+".js"; if(_4e&&_4b.charAt(0)=="/"){ _4b=_4b.slice(1); } ok=this.loadPath(_4b,_51); if(ok){ break; } } } if(!ok&&!_49){ dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'"); } } if(!_49&&!this["isXDomain"]){ _4a=this.findModule(_47,false); if(!_4a){ dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'"); } } return _4a; }; dojo.hostenv.startPackage=function(_52){ var _53=String(_52); var _54=_53; var _55=_52.split(/\./); if(_55[_55.length-1]=="*"){ _55.pop(); _54=_55.join("."); } var _56=dojo.evalObjPath(_54,true); this.loaded_modules_[_53]=_56; this.loaded_modules_[_54]=_56; return _56; }; dojo.hostenv.findModule=function(_57,_58){ var lmn=String(_57); if(this.loaded_modules_[lmn]){ return this.loaded_modules_[lmn]; } if(_58){ dojo.raise("no loaded module named '"+_57+"'"); } return null; }; dojo.kwCompoundRequire=function(_5a){ var _5b=_5a["common"]||[]; var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]); for(var x=0;x<_5c.length;x++){ var _5e=_5c[x]; if(_5e.constructor==Array){ dojo.hostenv.loadModule.apply(dojo.hostenv,_5e); }else{ dojo.hostenv.loadModule(_5e); } } }; dojo.require=function(_5f){ dojo.hostenv.loadModule.apply(dojo.hostenv,arguments); }; dojo.requireIf=function(_60,_61){ var _62=arguments[0]; if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){ var _63=[]; for(var i=1;i0;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_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("
"+_c8+"
"); } catch(e2){ window.status=_c8; } } } }; dojo.addOnLoad(function(){ dojo.hostenv._println_safe=true; while(dojo.hostenv._println_buffer.length>0){ dojo.hostenv.println(dojo.hostenv._println_buffer.shift()); } }); function dj_addNodeEvtHdlr(_cb,_cc,fp){ var _ce=_cb["on"+_cc]||function(){ }; _cb["on"+_cc]=function(){ fp.apply(_cb,arguments); _ce.apply(_cb,arguments); }; return true; } dojo.hostenv._djInitFired=false; function dj_load_init(e){ dojo.hostenv._djInitFired=true; var _d0=(e&&e.type)?e.type.toLowerCase():"load"; if(arguments.callee.initialized||(_d0!="domcontentloaded"&&_d0!="load")){ return; } arguments.callee.initialized=true; if(typeof (_timer)!="undefined"){ clearInterval(_timer); delete _timer; } var _d1=function(){ if(dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }; if(dojo.hostenv.inFlightCount==0){ _d1(); dojo.hostenv.modulesLoaded(); }else{ dojo.hostenv.modulesLoadedListeners.unshift(_d1); } } if(document.addEventListener){ if(dojo.render.html.opera||(dojo.render.html.moz&&(djConfig["enableMozDomContentLoaded"]===true))){ document.addEventListener("DOMContentLoaded",dj_load_init,null); } window.addEventListener("load",dj_load_init,null); } if(dojo.render.html.ie&&dojo.render.os.win){ document.attachEvent("onreadystatechange",function(e){ if(document.readyState=="complete"){ dj_load_init(); } }); } if(/(WebKit|khtml)/i.test(navigator.userAgent)){ var _timer=setInterval(function(){ if(/loaded|complete/.test(document.readyState)){ dj_load_init(); } },10); } if(dojo.render.html.ie){ dj_addNodeEvtHdlr(window,"beforeunload",function(){ dojo.hostenv._unloading=true; window.setTimeout(function(){ dojo.hostenv._unloading=false; },0); }); } dj_addNodeEvtHdlr(window,"unload",function(){ dojo.hostenv.unloaded(); if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){ dojo.hostenv.unloaded(); } }); dojo.hostenv.makeWidgets=function(){ var _d3=[]; if(djConfig.searchIds&&djConfig.searchIds.length>0){ _d3=_d3.concat(djConfig.searchIds); } if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){ _d3=_d3.concat(dojo.hostenv.searchIds); } if((djConfig.parseWidgets)||(_d3.length>0)){ if(dojo.evalObjPath("dojo.widget.Parse")){ var _d4=new dojo.xml.Parse(); if(_d3.length>0){ for(var x=0;x<_d3.length;x++){ var _d6=document.getElementById(_d3[x]); if(!_d6){ continue; } var _d7=_d4.parseElement(_d6,null,true); dojo.widget.getParser().createComponents(_d7); } }else{ if(djConfig.parseWidgets){ var _d7=_d4.parseElement(dojo.body(),null,true); dojo.widget.getParser().createComponents(_d7); } } } } }; dojo.addOnLoad(function(){ if(!dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }); try{ if(dojo.render.html.ie){ document.namespaces.add("v","urn:schemas-microsoft-com:vml"); document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)"); } } catch(e){ } dojo.hostenv.writeIncludes=function(){ }; if(!dj_undef("document",this)){ dj_currentDocument=this.document; } dojo.doc=function(){ return dj_currentDocument; }; dojo.body=function(){ return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0]; }; dojo.byId=function(id,doc){ if((id)&&((typeof id=="string")||(id instanceof String))){ if(!doc){ doc=dj_currentDocument; } var ele=doc.getElementById(id); if(ele&&(ele.id!=id)&&doc.all){ ele=null; eles=doc.all[id]; if(eles){ if(eles.length){ for(var i=0;i0)?(/^\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,_f4,_f5){ var out=""; for(var i=0;i<_f4;i++){ out+=str; if(_f5&&i<_f4-1){ out+=_f5; } } return out; }; dojo.string.pad=function(str,len,c,dir){ var out=String(str); if(!c){ c="0"; } if(!dir){ dir=1; } while(out.length0){ out=c+out; }else{ out+=c; } } return out; }; dojo.string.padLeft=function(str,len,c){ return dojo.string.pad(str,len,c,1); }; dojo.string.padRight=function(str,len,c){ return dojo.string.pad(str,len,c,-1); }; dojo.provide("dojo.string"); dojo.provide("dojo.lang.common"); dojo.lang.inherits=function(_103,_104){ if(!dojo.lang.isFunction(_104)){ dojo.raise("dojo.inherits: superclass argument ["+_104+"] must be a function (subclass: ["+_103+"']"); } _103.prototype=new _104(); _103.prototype.constructor=_103; _103.superclass=_104.prototype; _103["super"]=_104.prototype; }; dojo.lang._mixin=function(obj,_106){ var tobj={}; for(var x in _106){ if((typeof tobj[x]=="undefined")||(tobj[x]!=_106[x])){ obj[x]=_106[x]; } } if(dojo.render.html.ie&&(typeof (_106["toString"])=="function")&&(_106["toString"]!=obj["toString"])&&(_106["toString"]!=tobj["toString"])){ obj.toString=_106.toString; } return obj; }; dojo.lang.mixin=function(obj,_10a){ for(var i=1,l=arguments.length;i-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.extras"); dojo.lang.setTimeout=function(func,_12a){ var _12b=window,_12c=2; if(!dojo.lang.isFunction(func)){ _12b=func; func=_12a; _12a=arguments[2]; _12c++; } if(dojo.lang.isString(func)){ func=_12b[func]; } var args=[]; for(var i=_12c;i0){ dojo.io.bind(dojo.io._bindQueue.shift()); }else{ dojo.io._queueBindInFlight=false; } } }; dojo.io._bindQueue=[]; dojo.io._queueBindInFlight=false; dojo.io.argsFromMap=function(map,_16b,last){ var enc=/utf/i.test(_16b||"")?encodeURIComponent:dojo.string.encodeAscii; var _16e=[]; var _16f=new Object(); for(var name in map){ var _171=function(elt){ var val=enc(name)+"="+enc(elt); _16e[(last==name)?"push":"unshift"](val); }; if(!_16f[name]){ var _174=map[name]; if(dojo.lang.isArray(_174)){ dojo.lang.forEach(_174,_171); }else{ _171(_174); } } } return _16e.join("&"); }; dojo.io.setIFrameSrc=function(_175,src,_177){ try{ var r=dojo.render.html; if(!_177){ if(r.safari){ _175.location=src; }else{ frames[_175.name].location=src; } }else{ var idoc; if(r.ie){ idoc=_175.contentWindow.document; }else{ if(r.safari){ idoc=_175.document; }else{ idoc=_175.contentWindow; } } if(!idoc){ _175.location=src; return; }else{ idoc.location.replace(src); } } } catch(e){ dojo.debug(e); dojo.debug("setIFrameSrc: "+e); } }; 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 _17e=0; for(var x in obj){ if(obj[x]&&(!tmp[x])){ _17e++; break; } } return _17e==0; }else{ if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){ return obj.length==0; } } },map:function(arr,obj,_182){ var _183=dojo.lang.isString(arr); if(_183){ arr=arr.split(""); } if(dojo.lang.isFunction(obj)&&(!_182)){ _182=obj; obj=dj_global; }else{ if(dojo.lang.isFunction(obj)&&_182){ var _184=obj; obj=_182; _182=_184; } } if(Array.map){ var _185=Array.map(arr,_182,obj); }else{ var _185=[]; for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _1a3=dj_global; } _1a5=[]; for(var i=0;i/gm,">").replace(/"/gm,"""); if(!_1e8){ str=str.replace(/'/gm,"'"); } 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,_1f1){ if(_1f1){ 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-1){ return true; } } return false; }; dojo.string.normalizeNewlines=function(text,_1fc){ if(_1fc=="\n"){ text=text.replace(/\r\n/g,"\n"); text=text.replace(/\r/g,"\n"); }else{ if(_1fc=="\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,_1fe){ var _1ff=[]; for(var i=0,_201=0;i0){ return _224[0]; } node=node.parentNode; } if(_223){ return null; } return _224; }; dojo.dom.getAncestorsByTag=function(node,tag,_228){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_228); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_22d,_22e){ if(_22e&&node){ node=node.parentNode; } while(node){ if(node==_22d){ 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 _231=dojo.doc(); if(!dj_undef("ActiveXObject")){ var _232=["MSXML2","Microsoft","MSXML","MSXML3"]; for(var i=0;i<_232.length;i++){ try{ doc=new ActiveXObject(_232[i]+".XMLDOM"); } catch(e){ } if(doc){ break; } } }else{ if((_231.implementation)&&(_231.implementation.createDocument)){ doc=_231.implementation.createDocument("","",null); } } return doc; }; dojo.dom.createDocumentFromText=function(str,_235){ if(!_235){ _235="text/xml"; } if(!dj_undef("DOMParser")){ var _236=new DOMParser(); return _236.parseFromString(str,_235); }else{ if(!dj_undef("ActiveXObject")){ var _237=dojo.dom.createDocument(); if(_237){ _237.async=false; _237.loadXML(str); return _237; }else{ dojo.debug("toXml didn't work?"); } }else{ var _238=dojo.doc(); if(_238.createElement){ var tmp=_238.createElement("xml"); tmp.innerHTML=str; if(_238.implementation&&_238.implementation.createDocument){ var _23a=_238.implementation.createDocument("foo","",null); for(var i=0;i1){ var _24f=dojo.doc(); dojo.dom.replaceChildren(node,_24f.createTextNode(text)); return text; }else{ if(node.textContent!=undefined){ return node.textContent; } var _250=""; if(node==null){ return _250; } for(var i=0;i"); } } catch(e){ } if(dojo.render.html.opera){ dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work."); } dojo.undo.browser={initialHref:(!dj_undef("window"))?window.location.href:"",initialHash:(!dj_undef("window"))?window.location.hash:"",moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){ this.initialState=this._createState(this.initialHref,args,this.initialHash); },addToHistory:function(args){ this.forwardStack=[]; var hash=null; var url=null; if(!this.historyIframe){ if(djConfig["useXDomain"]&&!djConfig["dojoIframeHistoryUrl"]){ dojo.debug("dojo.undo.browser: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html"); } this.historyIframe=window.frames["djhistory"]; } if(!this.bookmarkAnchor){ this.bookmarkAnchor=document.createElement("a"); dojo.body().appendChild(this.bookmarkAnchor); this.bookmarkAnchor.style.display="none"; } if(args["changeUrl"]){ hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime()); if(this.historyStack.length==0&&this.initialState.urlHash==hash){ this.initialState=this._createState(url,args,hash); return; }else{ if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){ this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash); return; } } this.changingUrl=true; setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1); this.bookmarkAnchor.href=hash; if(dojo.render.html.ie){ url=this._loadIframeHistory(); var _25f=args["back"]||args["backButton"]||args["handle"]; var tcb=function(_261){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+hash+"';",1); } _25f.apply(this,[_261]); }; if(args["back"]){ args.back=tcb; }else{ if(args["backButton"]){ args.backButton=tcb; }else{ if(args["handle"]){ args.handle=tcb; } } } var _262=args["forward"]||args["forwardButton"]||args["handle"]; var tfw=function(_264){ if(window.location.hash!=""){ window.location.href=hash; } if(_262){ _262.apply(this,[_264]); } }; 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,_267){ if(!dojo.render.html.opera){ var _268=this._getUrlQuery(_267.href); if(_268==null){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } if(this.moveForward){ this.moveForward=false; return; } if(this.historyStack.length>=2&&_268==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){ this.handleBackButton(); }else{ if(this.forwardStack.length>0&&_268==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){ this.handleForwardButton(); } } } },handleBackButton:function(){ var _269=this.historyStack.pop(); if(!_269){ 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(_269); },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 _270=url.split("?"); if(_270.length<2){ return null; }else{ return _270[1]; } },_loadIframeHistory:function(){ var url=(djConfig["dojoIframeHistoryUrl"]||dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"?"+(new Date()).getTime(); this.moveForward=true; dojo.io.setIFrameSrc(this.historyIframe,url,false); return url; }}; dojo.provide("dojo.io.BrowserIO"); if(!dj_undef("window")){ dojo.io.checkChildrenForFile=function(node){ var _273=false; var _274=node.getElementsByTagName("input"); dojo.lang.forEach(_274,function(_275){ if(_273){ return; } if(_275.getAttribute("type")=="file"){ _273=true; } }); return _273; }; dojo.io.formHasFile=function(_276){ return dojo.io.checkChildrenForFile(_276); }; dojo.io.updateNode=function(node,_278){ node=dojo.byId(node); var args=_278; if(dojo.lang.isString(_278)){ args={url:_278}; } 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(_27f,_280,_281){ if((!_27f)||(!_27f.tagName)||(!_27f.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } if(!_281){ _281=dojo.io.formFilter; } var enc=/utf/i.test(_280||"")?encodeURIComponent:dojo.string.encodeAscii; var _283=[]; for(var i=0;i<_27f.elements.length;i++){ var elm=_27f.elements[i]; if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_281(elm)){ continue; } var name=enc(elm.name); var type=elm.type.toLowerCase(); if(type=="select-multiple"){ for(var j=0;j=200)&&(http.status<300))||(http.status==304)||(http.status==1223)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){ var ret; if(_2aa.method.toLowerCase()=="head"){ var _2b0=http.getAllResponseHeaders(); ret={}; ret.toString=function(){ return _2b0; }; var _2b1=_2b0.split(/[\r\n]+/g); for(var i=0;i<_2b1.length;i++){ var pair=_2b1[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair){ ret[pair[1]]=pair[2]; } } }else{ if(_2aa.mimetype=="text/javascript"){ try{ ret=dj_eval(http.responseText); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=null; } }else{ if(_2aa.mimetype.substr(0,9)=="text/json"||_2aa.mimetype.substr(0,16)=="application/json"){ try{ ret=dj_eval("("+_2aa.jsonFilter(http.responseText)+")"); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=false; } }else{ if((_2aa.mimetype=="application/xml")||(_2aa.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(_2ae){ addToCache(url,_2ad,_2aa.method,http); } _2aa[(typeof _2aa.load=="function")?"load":"handle"]("load",ret,http,_2aa); }else{ var _2b4=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); _2aa[(typeof _2aa.error=="function")?"error":"handle"]("error",_2b4,http,_2aa); } } function setHeaders(http,_2b6){ if(_2b6["headers"]){ for(var _2b7 in _2b6["headers"]){ if(_2b7.toLowerCase()=="content-type"&&!_2b6["contentType"]){ _2b6["contentType"]=_2b6["headers"][_2b7]; }else{ http.setRequestHeader(_2b7,_2b6["headers"][_2b7]); } } } } 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&&!_29e._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)-1){ dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url); url=url.split("#")[0]; } if(_2bf["file"]){ _2bf.method="post"; } if(!_2bf["method"]){ _2bf.method="get"; } if(_2bf.method.toLowerCase()=="get"){ _2bf.multipart=false; }else{ if(_2bf["file"]){ _2bf.multipart=true; }else{ if(!_2bf["multipart"]){ _2bf.multipart=false; } } } if(_2bf["backButton"]||_2bf["back"]||_2bf["changeUrl"]){ dojo.undo.browser.addToHistory(_2bf); } var _2c4=_2bf["content"]||{}; if(_2bf.sendTransport){ _2c4["dojo.transport"]="xmlhttp"; } do{ if(_2bf.postContent){ _2c1=_2bf.postContent; break; } if(_2c4){ _2c1+=dojo.io.argsFromMap(_2c4,_2bf.encoding); } if(_2bf.method.toLowerCase()=="get"||!_2bf.multipart){ break; } var t=[]; if(_2c1.length){ var q=_2c1.split("&"); for(var i=0;i-1?"&":"?")+_2c1; } if(_2cb){ _2d1+=(dojo.string.endsWithAny(_2d1,"?","&")?"":(_2d1.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } if(!_2bf.user){ http.open(_2bf.method.toUpperCase(),_2d1,_2ca); }else{ http.open(_2bf.method.toUpperCase(),_2d1,_2ca,_2bf.user,_2bf.password); } setHeaders(http,_2bf); try{ http.send(null); } catch(e){ if(typeof http.abort=="function"){ http.abort(); } doLoad(_2bf,{status:404},url,_2c1,_2cc); } } if(!_2ca){ doLoad(_2bf,http,url,_2c1,_2cc); _29e._blockAsync=false; } _2bf.abort=function(){ try{ http._aborted=true; } catch(e){ } return http.abort(); }; return; }; dojo.io.transports.addTransport("XMLHTTPTransport"); }; } dojo.provide("dojo.io.cookie"); dojo.io.cookie.setCookie=function(name,_2d3,days,path,_2d6,_2d7){ var _2d8=-1; if((typeof days=="number")&&(days>=0)){ var d=new Date(); d.setTime(d.getTime()+(days*24*60*60*1000)); _2d8=d.toGMTString(); } _2d3=escape(_2d3); document.cookie=name+"="+_2d3+";"+(_2d8!=-1?" expires="+_2d8+";":"")+(path?"path="+path:"")+(_2d6?"; domain="+_2d6:"")+(_2d7?"; 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 _2dc=document.cookie.substring(idx+name.length+1); var end=_2dc.indexOf(";"); if(end==-1){ end=_2dc.length; } _2dc=_2dc.substring(0,end); _2dc=unescape(_2dc); return _2dc; }; 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,_2e3,_2e4,_2e5){ if(arguments.length==5){ _2e5=_2e3; _2e3=null; _2e4=null; } var _2e6=[],_2e7,_2e8=""; if(!_2e5){ _2e7=dojo.io.cookie.getObjectCookie(name); } if(days>=0){ if(!_2e7){ _2e7={}; } for(var prop in obj){ if(obj[prop]==null){ delete _2e7[prop]; }else{ if((typeof obj[prop]=="string")||(typeof obj[prop]=="number")){ _2e7[prop]=obj[prop]; } } } prop=null; for(var prop in _2e7){ _2e6.push(escape(prop)+"="+escape(_2e7[prop])); } _2e8=_2e6.join("&"); } dojo.io.cookie.setCookie(name,_2e8,days,path,_2e3,_2e4); }; dojo.io.cookie.getObjectCookie=function(name){ var _2eb=null,_2ec=dojo.io.cookie.getCookie(name); if(_2ec){ _2eb={}; var _2ed=_2ec.split("&"); for(var i=0;i<_2ed.length;i++){ var pair=_2ed[i].split("="); var _2f0=pair[1]; if(isNaN(_2f0)){ _2f0=unescape(pair[1]); } _2eb[unescape(pair[0])]=_2f0; } } return _2eb; }; dojo.io.cookie.isSupported=function(){ if(typeof navigator.cookieEnabled!="boolean"){ dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null); var _2f1=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__"); navigator.cookieEnabled=(_2f1=="CookiesAllowed"); if(navigator.cookieEnabled){ this.deleteCookie("__TestingYourBrowserForCookieSupport__"); } } return navigator.cookieEnabled; }; if(!dojo.io.cookies){ dojo.io.cookies=dojo.io.cookie; } dojo.kwCompoundRequire({common:["dojo.io.common"],rhino:["dojo.io.RhinoIO"],browser:["dojo.io.BrowserIO","dojo.io.cookie"],dashboard:["dojo.io.BrowserIO","dojo.io.cookie"]}); dojo.provide("dojo.io.*"); dojo.provide("dojo.event.common"); dojo.event=new function(){ this._canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]); function interpolateArgs(args,_2f3){ var dl=dojo.lang; var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false,maxCalls:-1}; switch(args.length){ case 0: return; case 1: return; case 2: ao.srcFunc=args[0]; ao.adviceFunc=args[1]; break; case 3: if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; var _2f6=dl.nameAnonFunc(args[2],ao.adviceObj,_2f3); ao.adviceFunc=_2f6; }else{ if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=dj_global; var _2f6=dl.nameAnonFunc(args[0],ao.srcObj,_2f3); ao.srcFunc=_2f6; 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 _2f6=dl.nameAnonFunc(args[1],dj_global,_2f3); ao.srcFunc=_2f6; 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 _2f6=dl.nameAnonFunc(args[3],dj_global,_2f3); ao.adviceObj=dj_global; ao.adviceFunc=_2f6; }else{ if(dl.isObject(args[1])){ ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=dj_global; ao.adviceFunc=args[3]; }else{ if(dl.isObject(args[2])){ ao.srcObj=dj_global; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; ao.aroundFunc=args[3]; } } } } } } break; case 6: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundFunc=args[5]; ao.aroundObj=dj_global; break; default: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundObj=args[5]; ao.aroundFunc=args[6]; ao.once=args[7]; ao.delay=args[8]; ao.rate=args[9]; ao.adviceMsg=args[10]; ao.maxCalls=(!isNaN(parseInt(args[11])))?args[11]:-1; break; } if(dl.isFunction(ao.aroundFunc)){ var _2f6=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2f3); ao.aroundFunc=_2f6; } 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 _2f8={}; for(var x in ao){ _2f8[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); } _2f8.srcObj=src; mjps.push(dojo.event.connect.call(dojo.event,_2f8)); }); 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 _300; if((arguments.length==1)&&(typeof a1=="object")){ _300=a1; }else{ _300={srcObj:a1,srcFunc:a2}; } _300.adviceFunc=function(){ var _301=[]; for(var x=0;x=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,_319){ this.object=obj||dj_global; this.methodname=_319; this.methodfunc=this.object[_319]; this.squelch=false; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_31b){ if(!obj){ obj=dj_global; } var ofn=obj[_31b]; if(!ofn){ ofn=obj[_31b]=function(){ }; if(!obj[_31b]){ dojo.raise("Cannot set do-nothing method on that object "+_31b); } }else{ if((typeof ofn!="function")&&(!dojo.lang.isFunction(ofn))&&(!dojo.lang.isAlien(ofn))){ return null; } } var _31d=_31b+"$joinpoint"; var _31e=_31b+"$joinpoint$method"; var _31f=obj[_31d]; if(!_31f){ var _320=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _320=true; dojo.event.browser.addClobberNodeAttrs(obj,[_31d,_31e,_31b]); } } var _321=ofn.length; obj[_31e]=ofn; _31f=obj[_31d]=new dojo.event.MethodJoinPoint(obj,_31e); if(!_320){ obj[_31b]=function(){ return _31f.run.apply(_31f,arguments); }; }else{ obj[_31b]=function(){ var args=[]; if(!arguments.length){ var evt=null; try{ if(obj.ownerDocument){ evt=obj.ownerDocument.parentWindow.event; }else{ if(obj.documentElement){ evt=obj.documentElement.ownerDocument.parentWindow.event; }else{ if(obj.event){ evt=obj.event; }else{ evt=window.event; } } } } catch(e){ evt=window.event; } if(evt){ args.push(dojo.event.browser.fixEvent(evt,this)); } }else{ for(var x=0;x-1){ if(_330==0){ return; } marr[7]--; } var _331; var to={args:[],jp_:this,object:obj,proceed:function(){ return _32b[_32c].apply(_32b,to.args); }}; to.args=_327; var _333=parseInt(marr[4]); var _334=((!isNaN(_333))&&(marr[4]!==null)&&(typeof marr[4]!="undefined")); if(marr[5]){ var rate=parseInt(marr[5]); var cur=new Date(); var _337=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; _329(mcpy); },tod); } return; }else{ marr.last=cur; } } if(_32e){ _32d[_32e].call(_32d,to); }else{ if((_334)&&((dojo.render.html)||(dojo.render.svg))){ dj_global["setTimeout"](function(){ if(msg){ _32b[_32c].call(_32b,to); }else{ _32b[_32c].apply(_32b,args); } },_333); }else{ if(msg){ _32b[_32c].call(_32b,to); }else{ _32b[_32c].apply(_32b,args); } } } }; var _33a=function(){ if(this.squelch){ try{ return _329.apply(this,arguments); } catch(e){ dojo.debug(e); } }else{ return _329.apply(this,arguments); } }; if((this["before"])&&(this.before.length>0)){ dojo.lang.forEach(this.before.concat(new Array()),_33a); } var _33b; try{ if((this["around"])&&(this.around.length>0)){ var mi=new dojo.event.MethodInvocation(this,obj,args); _33b=mi.proceed(); }else{ if(this.methodfunc){ _33b=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()),_33a); } return (this.methodfunc)?_33b:null; },getArr:function(kind){ var type="after"; if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){ type="before"; }else{ if(kind=="around"){ type="around"; } } if(!this[type]){ this[type]=[]; } return this[type]; },kwAddAdvice:function(args){ this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"],args["maxCalls"]); },addAdvice:function(_340,_341,_342,_343,_344,_345,once,_347,rate,_349,_34a){ var arr=this.getArr(_344); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_340,_341,_342,_343,_347,rate,_349,_34a]; if(once){ if(this.hasAdvice(_340,_341,_344,arr)>=0){ return; } } if(_345=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_34d,_34e,_34f,arr){ if(!arr){ arr=this.getArr(_34f); } var ind=-1; for(var x=0;x=0;i=i-1){ var el=na[i]; try{ if(el&&el["__clobberAttrs__"]){ for(var j=0;j=65&&_3a1<=90&&evt.shiftKey==false){ _3a1+=32; } if(_3a1>=1&&_3a1<=26&&evt.ctrlKey){ _3a1+=96; } evt.key=String.fromCharCode(_3a1); } } }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 _3a1=evt.which; if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){ _3a1+=32; } evt.key=String.fromCharCode(_3a1); } } } }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=(_39f?_39f: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 _3a3=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement; if(!evt.pageX){ evt.pageX=evt.clientX+(_3a3.scrollLeft||0); } if(!evt.pageY){ evt.pageY=evt.clientY+(_3a3.scrollTop||0); } if(evt.type=="mouseover"){ evt.relatedTarget=evt.fromElement; } if(evt.type=="mouseout"){ evt.relatedTarget=evt.toElement; } this.currentEvent=evt; evt.callListener=this.callListener; evt.stopPropagation=this._stopPropagation; evt.preventDefault=this._preventDefault; } return evt; }; this.stopEvent=function(evt){ if(window.event){ evt.cancelBubble=true; evt.returnValue=false; }else{ evt.preventDefault(); evt.stopPropagation(); } }; }; dojo.kwCompoundRequire({common:["dojo.event.common","dojo.event.topic"],browser:["dojo.event.browser"],dashboard:["dojo.event.browser"]}); dojo.provide("dojo.event.*"); dojo.provide("dojo.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 _3a8=getTagName(node); if(!_3a8){ return ""; } if((dojo.widget)&&(dojo.widget.tags[_3a8])){ return _3a8; } var p=_3a8.indexOf(":"); if(p>=0){ return _3a8; } if(_3a8.substr(0,5)=="dojo:"){ return _3a8; } if(dojo.render.html.capable&&dojo.render.html.ie&&node.scopeName!="HTML"&&node.scopeName!=null){ return node.scopeName.toLowerCase()+":"+_3a8; } if(_3a8.substr(0,4)=="dojo"){ return "dojo:"+_3a8.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 _3ab=node.className||node.getAttribute("class"); if((_3ab)&&(_3ab.indexOf)&&(_3ab.indexOf("dojo-")!=-1)){ var _3ac=_3ab.split(" "); for(var x=0,c=_3ac.length;x0){ var ns=_3b3.substring(0,pos); _3b7["ns"]=ns; if((dojo.ns)&&(!dojo.ns.allow(ns))){ _3b5=false; } } if(_3b5){ var _3ba=this.parseAttributes(node); for(var attr in _3ba){ if((!_3b7[_3b3][attr])||(typeof _3b7[_3b3][attr]!="array")){ _3b7[_3b3][attr]=[]; } _3b7[_3b3][attr].push(_3ba[attr]); } _3b7[_3b3].nodeRef=node; _3b7.tagName=_3b3; _3b7.index=_3b2||0; } var _3bb=0; for(var i=0;i=0;x--){ try{ this.widgets[x].destroy(true); delete this.widgets[x]; } catch(e){ } } }; this.remove=function(_401){ if(dojo.lang.isNumber(_401)){ var tw=this.widgets[_401].widgetId; delete this.topWidgets[tw]; delete this.widgetIds[tw]; this.widgets.splice(_401,1); }else{ this.removeById(_401); } }; 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;i0){ return _43d[n]; } return _43d; }; g("registerWidgetPackage"); g("getImplementation","getWidgetImplementation"); g("getImplementationName","getWidgetImplementationName"); dw.widgets=dwm.widgets; dw.widgetIds=dwm.widgetIds; dw.root=dwm.root; })(); 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(_43f,uri){ var loc=dojo.hostenv.getModuleSymbols(_43f).join("/"); if(!loc){ return null; } if(loc.lastIndexOf("/")!=loc.length-1){ loc+="/"; } var _442=loc.indexOf(":"); var _443=loc.indexOf("/"); if(loc.charAt(0)!="/"&&(_442==-1||_442>_443)){ loc=dojo.hostenv.getBaseScriptUri()+loc; } return new dojo.uri.Uri(loc,uri); }; this.Uri=function(){ var uri=arguments[0]; for(var i=1;i0&&!(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; } } } } _446.path=segs.join("/"); } } } } uri=""; if(_446.scheme!=null){ uri+=_446.scheme+":"; } if(_446.authority!=null){ uri+="//"+_446.authority; } uri+=_446.path; if(_446.query!=null){ uri+="?"+_446.query; } if(_446.fragment!=null){ uri+="#"+_446.fragment; } } this.uri=uri.toString(); var _44b="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_44b)); 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){ _44b="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_44b)); this.user=r[3]||null; this.password=r[4]||null; this.host=r[5]; this.port=r[7]||null; } this.toString=function(){ return this.uri; }; }; }; dojo.kwCompoundRequire({common:[["dojo.uri.Uri",false,false]]}); dojo.provide("dojo.uri.*"); dojo.provide("dojo.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 _44f=dojo.global(); var _450=dojo.doc(); var w=0; var h=0; if(dojo.render.html.mozilla){ w=_450.documentElement.clientWidth; h=_44f.innerHeight; }else{ if(!dojo.render.html.opera&&_44f.innerWidth){ w=_44f.innerWidth; h=_44f.innerHeight; }else{ if(!dojo.render.html.opera&&dojo.exists(_450,"documentElement.clientWidth")){ var w2=_450.documentElement.clientWidth; if(!w||w2&&w2i){ _47f=this.children[i]; if(_47f instanceof dojo.widget.Widget){ this.removeChild(_47f); _47f.destroy(); continue; } i++; } },getChildrenOfType:function(type,_482){ var ret=[]; var _484=dojo.lang.isFunction(type); if(!_484){ type=type.toLowerCase(); } for(var x=0;xsi)){ this[x][_493[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_493[y].substr(si+1); } } } }else{ this[x]=args[x]; } } } } } } } } }else{ this.extraArgs[x.toLowerCase()]=args[x]; } } },postMixInProperties:function(args,frag,_497){ },initialize:function(args,frag,_49a){ return false; },postInitialize:function(args,frag,_49d){ return false; },postCreate:function(args,frag,_4a0){ return false; },uninitialize:function(){ return false; },buildRendering:function(args,frag,_4a3){ dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", "); return false; },destroyRendering:function(){ dojo.unimplemented("dojo.widget.Widget.destroyRendering"); return false; },addedTo:function(_4a4){ },addChild:function(_4a5){ dojo.unimplemented("dojo.widget.Widget.addChild"); return false; },removeChild:function(_4a6){ for(var x=0;x-1)?_4c9.substring(0,pos):_4c9; _4c8=(_4c8)||{}; _4c8.widgetType=type; if((!init)&&(_4c8["classConstructor"])){ init=_4c8.classConstructor; delete _4c8.classConstructor; } dojo.declare(_4c4,_4c6,init,_4c8); }; dojo.provide("dojo.widget.Parse"); dojo.widget.Parse=function(_4cf){ this.propertySetsList=[]; this.fragment=_4cf; this.createComponents=function(frag,_4d1){ var _4d2=[]; var _4d3=false; try{ if(frag&&frag.tagName&&(frag!=frag.nodeRef)){ var _4d4=dojo.widget.tags; var tna=String(frag.tagName).split(";"); for(var x=0;x-1)?name.substring(0,pos):"dojo"; if(pos>-1){ name=name.substring(pos+1); } var _507=name.toLowerCase(); var _508=ns+":"+_507; _503=(dojo.byId(name)&&!dojo.widget.tags[_508]); } if((arguments.length==1)&&(_503||!_504)){ var xp=new dojo.xml.Parse(); var tn=_503?dojo.byId(name):name; return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0]; } function fromScript(_50b,name,_50d,ns){ _50d[_508]={dojotype:[{value:_507}],nodeRef:_50b,fastMixIn:true}; _50d.ns=ns; return dojo.widget.getParser().createComponentFromScript(_50b,name,_50d,ns); } _500=_500||{}; var _50f=false; var tn=null; var h=dojo.render.html.capable; if(h){ tn=document.createElement("span"); } if(!_501){ _50f=true; _501=tn; if(h){ dojo.body().appendChild(_501); } }else{ if(_502){ dojo.dom.insertAtPosition(tn,_501,_502); }else{ tn=_501; } } var _511=fromScript(tn,name.toLowerCase(),_500,ns); if((!_511)||(!_511[0])||(typeof _511[0].widgetType=="undefined")){ throw new Error("createWidget: Creation of \""+name+"\" widget failed."); } try{ if(_50f&&_511[0].domNode.parentNode){ _511[0].domNode.parentNode.removeChild(_511[0].domNode); } } catch(e){ dojo.debug(e); } return _511[0]; }; 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,_517){ return (new RegExp("(^|\\s+)"+_517+"(\\s+|$)")).test(dojo.html.getClass(node)); }; dojo.html.prependClass=function(node,_519){ _519+=" "+dojo.html.getClass(node); return dojo.html.setClass(node,_519); }; dojo.html.addClass=function(node,_51b){ if(dojo.html.hasClass(node,_51b)){ return false; } _51b=(dojo.html.getClass(node)+" "+_51b).replace(/^\s+|\s+$/g,""); return dojo.html.setClass(node,_51b); }; dojo.html.setClass=function(node,_51d){ node=dojo.byId(node); var cs=new String(_51d); try{ if(typeof node.className=="string"){ node.className=cs; }else{ if(node.setAttribute){ node.setAttribute("class",_51d); node.className=cs; }else{ return false; } } } catch(e){ dojo.debug("dojo.html.setClass() failed",e); } return true; }; dojo.html.removeClass=function(node,_520,_521){ try{ if(!_521){ var _522=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_520+"(\\s+|$)"),"$1$2"); }else{ var _522=dojo.html.getClass(node).replace(_520,""); } dojo.html.setClass(node,_522); } catch(e){ dojo.debug("dojo.html.removeClass() failed",e); } return true; }; dojo.html.replaceClass=function(node,_524,_525){ dojo.html.removeClass(node,_525); dojo.html.addClass(node,_524); }; dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2}; dojo.html.getElementsByClass=function(_526,_527,_528,_529,_52a){ _52a=false; var _52b=dojo.doc(); _527=dojo.byId(_527)||_52b; var _52c=_526.split(/\s+/g); var _52d=[]; if(_529!=1&&_529!=2){ _529=0; } var _52e=new RegExp("(\\s|^)(("+_52c.join(")|(")+"))(\\s|$)"); var _52f=_52c.join(" ").length; var _530=[]; if(!_52a&&_52b.evaluate){ var _531=".//"+(_528||"*")+"[contains("; if(_529!=dojo.html.classMatchType.ContainsAny){ _531+="concat(' ',@class,' '), ' "+_52c.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')"; if(_529==2){ _531+=" and string-length(@class)="+_52f+"]"; }else{ _531+="]"; } }else{ _531+="concat(' ',@class,' '), ' "+_52c.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]"; } var _532=_52b.evaluate(_531,_527,null,XPathResult.ANY_TYPE,null); var _533=_532.iterateNext(); while(_533){ try{ _530.push(_533); _533=_532.iterateNext(); } catch(e){ break; } } return _530; }else{ if(!_528){ _528="*"; } _530=_527.getElementsByTagName(_528); var node,i=0; outer: while(node=_530[i++]){ var _536=dojo.html.getClasses(node); if(_536.length==0){ continue outer; } var _537=0; for(var j=0;j<_536.length;j++){ if(_52e.test(_536[j])){ if(_529==dojo.html.classMatchType.ContainsAny){ _52d.push(node); continue outer; }else{ _537++; } }else{ if(_529==dojo.html.classMatchType.IsOnly){ continue outer; } } } if(_537==_52c.length){ if((_529==dojo.html.classMatchType.IsOnly)&&(_537==_536.length)){ _52d.push(node); }else{ if(_529==dojo.html.classMatchType.ContainsAll){ _52d.push(node); } } } } return _52d; } }; dojo.html.getElementsByClassName=dojo.html.getElementsByClass; dojo.html.toCamelCase=function(_539){ var arr=_539.split("-"),cc=arr[0]; for(var i=1;i/im,""); var _59f=_59e.match(/]*>\s*([\s\S]+)\s*<\/body>/im); if(_59f){ _59e=_59f[1]; } }else{ _59e=""; } return _59e; }; 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,_5a3){ if(dojo.render.html.ie){ node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_5a3); }else{ node.setAttributeNS(this[ns]["namespace"],attr,this[ns].prefix+_5a3); } },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 _5aa=true; if(dojo.render.html.ie){ _5aa=node.removeAttribute(this[ns].alias+":"+attr); }else{ node.removeAttributeNS(this[ns]["namespace"],attr); } return _5aa; }}; dojo.widget.attachTemplateNodes=function(_5ab,_5ac,_5ad){ var _5ae=dojo.dom.ELEMENT_NODE; function trim(str){ return str.replace(/^\s+|\s+$/g,""); } if(!_5ab){ _5ab=_5ac.domNode; } if(_5ab.nodeType!=_5ae){ return; } var _5b0=_5ab.all||_5ab.getElementsByTagName("*"); var _5b1=_5ac; for(var x=-1;x<_5b0.length;x++){ var _5b3=(x==-1)?_5ab:_5b0[x]; var _5b4=[]; if(!_5ac.widgetsInTemplate||!_5b3.getAttribute("dojoType")){ for(var y=0;y=0){ var _5bc=tevt.split(":"); tevt=trim(_5bc[0]); _5ba=trim(_5bc[1]); } if(!_5ba){ _5ba=tevt; } var tf=function(){ var ntf=new String(_5ba); return function(evt){ if(_5b1[ntf]){ _5b1[ntf](dojo.event.browser.fixEvent(evt,this)); } }; }(); dojo.event.browser.addListener(_5b3,tevt,tf,false,true); } } for(var y=0;y<_5ad.length;y++){ var _5c0=_5b3.getAttribute(_5ad[y]); if((_5c0)&&(_5c0.length)){ var _5ba=null; var _5c1=_5ad[y].substr(4); _5ba=trim(_5c0); var _5c2=[_5ba]; if(_5ba.indexOf(";")>=0){ _5c2=dojo.lang.map(_5ba.split(";"),trim); } for(var z=0;z<_5c2.length;z++){ if(!_5c2[z].length){ continue; } var tf=function(){ var ntf=new String(_5c2[z]); return function(evt){ if(_5b1[ntf]){ _5b1[ntf](dojo.event.browser.fixEvent(evt,this)); } }; }(); dojo.event.browser.addListener(_5b3,_5c1,tf,false,true); } } } } var _5c5=_5b3.getAttribute(this.templateProperty); if(_5c5){ _5ac[_5c5]=_5b3; } dojo.lang.forEach(dojo.widget.waiNames,function(name){ var wai=dojo.widget.wai[name]; var val=_5b3.getAttribute(wai.name); if(val){ if(val.indexOf("-")==-1){ dojo.widget.wai.setAttr(_5b3,wai.name,"role",val); }else{ var _5c9=val.split("-"); dojo.widget.wai.setAttr(_5b3,wai.name,_5c9[0],_5c9[1]); } } },this); var _5ca=_5b3.getAttribute(this.onBuildProperty); if(_5ca){ eval("var node = baseNode; var widget = targetObj; "+_5ca); } } }; 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;x0)&&(typeof arguments[0]=="object")){ this.create(arguments[0]); } },{templateNode:null,templateString:null,templateCssString:null,preventClobber:false,domNode:null,containerNode:null,widgetsInTemplate:false,addChild:function(_5d2,_5d3,pos,ref,_5d6){ if(!this.isContainer){ dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget"); return null; }else{ if(_5d6==undefined){ _5d6=this.children.length; } this.addWidgetAsDirectChild(_5d2,_5d3,pos,ref,_5d6); this.registerChild(_5d2,_5d6); } return _5d2; },addWidgetAsDirectChild:function(_5d7,_5d8,pos,ref,_5db){ if((!this.containerNode)&&(!_5d8)){ this.containerNode=this.domNode; } var cn=(_5d8)?_5d8:this.containerNode; if(!pos){ pos="after"; } if(!ref){ if(!cn){ cn=dojo.body(); } ref=cn.lastChild; } if(!_5db){ _5db=0; } _5d7.domNode.setAttribute("dojoinsertionindex",_5db); if(!ref){ cn.appendChild(_5d7.domNode); }else{ if(pos=="insertAtIndex"){ dojo.dom.insertAtIndex(_5d7.domNode,ref.parentNode,_5db); }else{ if((pos=="after")&&(ref===cn.lastChild)){ cn.appendChild(_5d7.domNode); }else{ dojo.dom.insertAtPosition(_5d7.domNode,cn,pos); } } } },registerChild:function(_5dd,_5de){ _5dd.dojoInsertionIndex=_5de; var idx=-1; for(var i=0;i=0){ var _5f6=tevt.split(":"); tevt=dojo.string.trim(_5f6[0]); _5f4=dojo.string.trim(_5f6[1]); } if(!_5f4){ _5f4=tevt; } if(dojo.lang.isFunction(_5f1[tevt])){ dojo.event.kwConnect({srcObj:_5f1,srcFunc:tevt,targetObj:this,targetFunc:_5f4}); }else{ alert(tevt+" is not a function in widget "+_5f1); } } } if(_5f1.extraArgs["dojoattachpoint"]){ this[_5f1.extraArgs["dojoattachpoint"]]=_5f1; } } } 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 _5fa=args["templateCssPath"]||this.templateCssPath; if(_5fa&&!dojo.widget._cssFiles[_5fa.toString()]){ if((!this.templateCssString)&&(_5fa)){ this.templateCssString=dojo.hostenv.getText(_5fa); this.templateCssPath=null; } dojo.widget._cssFiles[_5fa.toString()]=true; } if((this["templateCssString"])&&(!dojo.widget._cssStrings[this.templateCssString])){ dojo.html.insertCssText(this.templateCssString,null,_5fa); 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 _5fd=false; if(args["templatepath"]){ args["templatePath"]=args["templatepath"]; } dojo.widget.fillFromTemplateCache(this,args["templatePath"],null,_5fd); var ts=dojo.widget._templateCache[this.templatePath?this.templatePath.toString():this.widgetType]; if((ts)&&(!_5fd)){ if(!this.templateString.length){ this.templateString=ts["string"]; } if(!this.templateNode){ this.templateNode=ts["node"]; } } var _5ff=false; var node=null; var tstr=this.templateString; if((!this.templateNode)&&(this.templateString)){ _5ff=this.templateString.match(/\$\{([^\}]+)\}/g); if(_5ff){ 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<_5ff.length;i++){ var key=_5ff[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 _606; if((kval)||(dojo.lang.isString(kval))){ _606=new String((dojo.lang.isFunction(kval))?kval.call(this,key,this.templateString):kval); while(_606.indexOf("\"")>-1){ _606=_606.replace("\"","""); } tstr=tstr.replace(_5ff[i],_606); } } }else{ this.templateNode=this.createNodesFromText(this.templateString,true)[0]; if(!_5fd){ ts.node=this.templateNode; } } } if((!this.templateNode)&&(!_5ff)){ dojo.debug("DomWidget.buildFromTemplate: could not create template"); return false; }else{ if(!_5ff){ 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(_608,_609){ if(!_608){ _608=this.domNode; } if(!_609){ _609=this; } return dojo.widget.attachTemplateNodes(_608,_609,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,_60b,_60c){ node=dojo.byId(node); _60c(node,!_60b(node)); return _60b(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,_611){ dojo.html[(_611?"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,_617){ dojo.html.setStyle(node,"display",((_617 instanceof String||typeof _617=="string")?_617:(_617?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,_61b){ dojo.html.setStyle(node,"visibility",((_61b instanceof String||typeof _61b=="string")?_61b:(_61b?"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,_61f,_620){ node=dojo.byId(node); var h=dojo.render.html; if(!_620){ if(_61f>=1){ if(h.ie){ dojo.html.clearOpacity(node); return; }else{ _61f=0.999999; } }else{ if(_61f<0){ _61f=0; } } } if(h.ie){ if(node.nodeName.toLowerCase()=="tr"){ var tds=node.getElementsByTagName("td"); for(var x=0;x=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 _62c=0; while(node){ if(dojo.html.getComputedStyle(node,"position")=="fixed"){ return 0; } var val=node[prop]; if(val){ _62c+=val-0; if(node==dojo.body()){ break; } } node=node.parentNode; } return _62c; }; dojo.html.setStyleAttributes=function(node,_62f){ node=dojo.byId(node); var _630=_62f.replace(/(;)?\s*$/,"").split(";"); for(var i=0;i<_630.length;i++){ var _632=_630[i].split(":"); var name=_632[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase(); var _634=_632[1].replace(/\s*$/,"").replace(/^\s*/,""); switch(name){ case "opacity": dojo.html.setOpacity(node,_634); break; case "content-height": dojo.html.setContentBox(node,{height:_634}); break; case "content-width": dojo.html.setContentBox(node,{width:_634}); break; case "outer-height": dojo.html.setMarginBox(node,{height:_634}); break; case "outer-width": dojo.html.setMarginBox(node,{width:_634}); break; default: node.style[dojo.html.toCamelCase(name)]=_634; } } }; 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,_636,_637){ node=dojo.byId(node,node.ownerDocument); var ret={x:0,y:0}; var bs=dojo.html.boxSizing; if(!_637){ _637=bs.CONTENT_BOX; } var _63a=2; var _63b; switch(_637){ case bs.MARGIN_BOX: _63b=3; break; case bs.BORDER_BOX: _63b=2; break; case bs.PADDING_BOX: default: _63b=1; break; case bs.CONTENT_BOX: _63b=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){ _63a=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 _63f; if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){ _63f=db; }else{ _63f=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 _641=node; do{ var n=_641["offsetLeft"]; if(!h.opera||n>0){ ret.x+=isNaN(n)?0:n; } var m=_641["offsetTop"]; ret.y+=isNaN(m)?0:m; _641=_641.offsetParent; }while((_641!=_63f)&&(_641!=null)); }else{ if(node["x"]&&node["y"]){ ret.x+=isNaN(node.x)?0:node.x; ret.y+=isNaN(node.y)?0:node.y; } } } } if(_636){ var _644=dojo.html.getScroll(); ret.y+=_644.top; ret.x+=_644.left; } var _645=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent]; if(_63a>_63b){ for(var i=_63b;i<_63a;++i){ ret.y+=_645[i](node,"top"); ret.x+=_645[i](node,"left"); } }else{ if(_63a<_63b){ for(var i=_63b;i>_63a;--i){ ret.y-=_645[i-1](node,"top"); ret.x-=_645[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,_649,_64a){ var _64b=0; for(var x=0;x<_649.length;x++){ _64b+=dojo.html.getPixelValue(node,_649[x],_64a); } return _64b; }; 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 _658=dojo.html.getBorder(node); return {width:pad.width+_658.width,height:pad.height+_658.height}; }; dojo.html.getBoxSizing=function(node){ var h=dojo.render.html; var bs=dojo.html.boxSizing; if(((h.ie)||(h.opera))&&node.nodeName.toLowerCase()!="img"){ var cm=document["compatMode"]; if((cm=="BackCompat")||(cm=="QuirksMode")){ return bs.BORDER_BOX; }else{ return bs.CONTENT_BOX; } }else{ if(arguments.length==0){ node=document.documentElement; } var _65d; if(!h.ie){ _65d=dojo.html.getStyle(node,"-moz-box-sizing"); if(!_65d){ _65d=dojo.html.getStyle(node,"box-sizing"); } } return (_65d?_65d: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 _662=dojo.html.getBorder(node); return {width:box.width-_662.width,height:box.height-_662.height}; }; dojo.html.getContentBox=function(node){ node=dojo.byId(node); var _664=dojo.html.getPadBorder(node); return {width:node.offsetWidth-_664.width,height:node.offsetHeight-_664.height}; }; dojo.html.setContentBox=function(node,args){ node=dojo.byId(node); var _667=0; var _668=0; var isbb=dojo.html.isBorderBox(node); var _66a=(isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var ret={}; if(typeof args.width!="undefined"){ _667=args.width+_66a.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_667); } if(typeof args.height!="undefined"){ _668=args.height+_66a.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_668); } return ret; }; dojo.html.getMarginBox=function(node){ var _66d=dojo.html.getBorderBox(node); var _66e=dojo.html.getMargin(node); return {width:_66d.width+_66e.width,height:_66d.height+_66e.height}; }; dojo.html.setMarginBox=function(node,args){ node=dojo.byId(node); var _671=0; var _672=0; var isbb=dojo.html.isBorderBox(node); var _674=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var _675=dojo.html.getMargin(node); var ret={}; if(typeof args.width!="undefined"){ _671=args.width-_674.width; _671-=_675.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_671); } if(typeof args.height!="undefined"){ _672=args.height-_674.height; _672-=_675.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_672); } 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(_67a,_67b,_67c){ if(_67a instanceof Array||typeof _67a=="array"){ dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5"); while(_67a.length<4){ _67a.push(0); } while(_67a.length>4){ _67a.pop(); } var ret={left:_67a[0],top:_67a[1],width:_67a[2],height:_67a[3]}; }else{ if(!_67a.nodeType&&!(_67a instanceof String||typeof _67a=="string")&&("width" in _67a||"height" in _67a||"left" in _67a||"x" in _67a||"top" in _67a||"y" in _67a)){ var ret={left:_67a.left||_67a.x||0,top:_67a.top||_67a.y||0,width:_67a.width||0,height:_67a.height||0}; }else{ var node=dojo.byId(_67a); var pos=dojo.html.abs(node,_67b,_67c); var _680=dojo.html.getMarginBox(node); var ret={left:pos.left,top:pos.top,width:_680.width,height:_680.height}; } } ret.x=ret.left; ret.y=ret.top; return ret; }; dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_682){ 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,_685){ return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type); }; dojo.html.getAbsoluteX=function(node,_687){ return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x"); }; dojo.html.getAbsoluteY=function(node,_689){ return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y"); }; dojo.html.totalOffsetLeft=function(node,_68b){ return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left"); }; dojo.html.totalOffsetTop=function(node,_68d){ 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,_697){ return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width"); }; dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_699){ return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height"); }; dojo.provide("dojo.html.util"); dojo.html.getElementWindow=function(_69a){ return dojo.html.getDocumentWindow(_69a.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=left&&_6a9.x<=_6af&&_6a9.y>=top&&_6a9.y<=_6ad); }; dojo.html.renderedTextContent=function(node){ node=dojo.byId(node); var _6b1=""; if(node==null){ return _6b1; } for(var i=0;i]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _6ba="cell"; }else{ if((/^]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _6ba="row"; }else{ if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _6ba="section"; } } } tn.innerHTML=txt; if(tn["normalize"]){ tn.normalize(); } var _6bb=null; switch(_6ba){ case "cell": _6bb=tn.getElementsByTagName("tr")[0]; break; case "row": _6bb=tn.getElementsByTagName("tbody")[0]; break; case "section": _6bb=tn.getElementsByTagName("table")[0]; break; default: _6bb=tn; break; } var _6bc=[]; for(var x=0;x<_6bb.childNodes.length;x++){ _6bc.push(_6bb.childNodes[x].cloneNode(true)); } tn.style.display="none"; dojo.html.destroyNode(tn); return _6bc; }; dojo.html.placeOnScreen=function(node,_6bf,_6c0,_6c1,_6c2,_6c3,_6c4){ if(_6bf instanceof Array||typeof _6bf=="array"){ _6c4=_6c3; _6c3=_6c2; _6c2=_6c1; _6c1=_6c0; _6c0=_6bf[1]; _6bf=_6bf[0]; } if(_6c3 instanceof String||typeof _6c3=="string"){ _6c3=_6c3.split(","); } if(!isNaN(_6c1)){ _6c1=[Number(_6c1),Number(_6c1)]; }else{ if(!(_6c1 instanceof Array||typeof _6c1=="array")){ _6c1=[0,0]; } } var _6c5=dojo.html.getScroll().offset; var view=dojo.html.getViewport(); node=dojo.byId(node); var _6c7=node.style.display; node.style.display=""; var bb=dojo.html.getBorderBox(node); var w=bb.width; var h=bb.height; node.style.display=_6c7; if(!(_6c3 instanceof Array||typeof _6c3=="array")){ _6c3=["TL"]; } var _6cb,_6cc,_6cd=Infinity,_6ce; for(var _6cf=0;_6cf<_6c3.length;++_6cf){ var _6d0=_6c3[_6cf]; var _6d1=true; var tryX=_6bf-(_6d0.charAt(1)=="L"?0:w)+_6c1[0]*(_6d0.charAt(1)=="L"?1:-1); var tryY=_6c0-(_6d0.charAt(0)=="T"?0:h)+_6c1[1]*(_6d0.charAt(0)=="T"?1:-1); if(_6c2){ tryX-=_6c5.x; tryY-=_6c5.y; } if(tryX<0){ tryX=0; _6d1=false; } if(tryY<0){ tryY=0; _6d1=false; } var x=tryX+w; if(x>view.width){ x=view.width-w; _6d1=false; }else{ x=tryX; } x=Math.max(_6c1[0],x)+_6c5.x; var y=tryY+h; if(y>view.height){ y=view.height-h; _6d1=false; }else{ y=tryY; } y=Math.max(_6c1[1],y)+_6c5.y; if(_6d1){ _6cb=x; _6cc=y; _6cd=0; _6ce=_6d0; break; }else{ var dist=Math.pow(x-tryX-_6c5.x,2)+Math.pow(y-tryY-_6c5.y,2); if(_6cd>dist){ _6cd=dist; _6cb=x; _6cc=y; _6ce=_6d0; } } } if(!_6c4){ node.style.left=_6cb+"px"; node.style.top=_6cc+"px"; } return {left:_6cb,top:_6cc,x:_6cb,y:_6cc,dist:_6cd,corner:_6ce}; }; dojo.html.placeOnScreenPoint=function(node,_6d8,_6d9,_6da,_6db){ dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5"); return dojo.html.placeOnScreen(node,_6d8,_6d9,_6da,_6db,["TL","TR","BL","BR"]); }; dojo.html.placeOnScreenAroundElement=function(node,_6dd,_6de,_6df,_6e0,_6e1){ var best,_6e3=Infinity; _6dd=dojo.byId(_6dd); var _6e4=_6dd.style.display; _6dd.style.display=""; var mb=dojo.html.getElementBox(_6dd,_6df); var _6e6=mb.width; var _6e7=mb.height; var _6e8=dojo.html.getAbsolutePosition(_6dd,true,_6df); _6dd.style.display=_6e4; for(var _6e9 in _6e0){ var pos,_6eb,_6ec; var _6ed=_6e0[_6e9]; _6eb=_6e8.x+(_6e9.charAt(1)=="L"?0:_6e6); _6ec=_6e8.y+(_6e9.charAt(0)=="T"?0:_6e7); pos=dojo.html.placeOnScreen(node,_6eb,_6ec,_6de,true,_6ed,true); if(pos.dist==0){ best=pos; break; }else{ if(_6e3>pos.dist){ _6e3=pos.dist; best=pos; } } } if(!_6e1){ 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 _6ef=node.parentNode; var _6f0=_6ef.scrollTop+dojo.html.getBorderBox(_6ef).height; var _6f1=node.offsetTop+dojo.html.getMarginBox(node).height; if(_6f0<_6f1){ _6ef.scrollTop+=(_6f1-_6f0); }else{ if(_6ef.scrollTop>node.offsetTop){ _6ef.scrollTop-=(_6ef.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(_6f8){ if(_6f8){ 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(_6f9,_6fa){ var rgb=null; if(dojo.lang.isArray(_6f9)){ rgb=_6f9; }else{ if(_6f9 instanceof dojo.gfx.color.Color){ rgb=_6f9.toRgb(); }else{ rgb=new dojo.gfx.color.Color(_6f9).toRgb(); } } return dojo.gfx.color.blend(this.toRgb(),rgb,_6fa); }}); 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,_6fe){ if(typeof a=="string"){ return dojo.gfx.color.blendHex(a,b,_6fe); } if(!_6fe){ _6fe=0; } _6fe=Math.min(Math.max(-1,_6fe),1); _6fe=((_6fe+1)/2); var c=[]; for(var x=0;x<3;x++){ c[x]=parseInt(b[x]+((a[x]-b[x])*_6fe)); } return c; }; dojo.gfx.color.blendHex=function(a,b,_703){ return dojo.gfx.color.rgb2hex(dojo.gfx.color.blend(dojo.gfx.color.hex2rgb(a),dojo.gfx.color.hex2rgb(b),_703)); }; dojo.gfx.color.extractRGB=function(_704){ var hex="0123456789abcdef"; _704=_704.toLowerCase(); if(_704.indexOf("rgb")==0){ var _706=_704.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_706.splice(1,3); return ret; }else{ var _708=dojo.gfx.color.hex2rgb(_704); if(_708){ return _708; }else{ return dojo.gfx.color.named[_704]||[255,255,255]; } } }; dojo.gfx.color.hex2rgb=function(hex){ var _70a="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_70a+"]","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;i0){ this.duration=_72b; } if(_72e){ this.repeatCount=_72e; } if(rate){ this.rate=rate; } if(_72a){ dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){ if(_72a[item]){ this.connect(item,_72a[item]); } },this); } if(_72d&&dojo.lang.isFunction(_72d)){ this.easing=_72d; } }; 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(_731,_732){ if(_732){ 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(_731>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_732); }),_731); 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 _734=this.curve.getValue(step); if(this._percent==0){ if(!this._startRepeatCount){ this._startRepeatCount=this.repeatCount; } this.fire("handler",["begin",_734]); this.fire("onBegin",[_734]); } this.fire("handler",["play",_734]); this.fire("onPlay",[_734]); this._cycle(); return this; },pause:function(){ clearTimeout(this._timer); if(!this._active){ return this; } this._paused=true; var _735=this.curve.getValue(this._percent/100); this.fire("handler",["pause",_735]); this.fire("onPause",[_735]); return this; },gotoPercent:function(pct,_737){ clearTimeout(this._timer); this._active=true; this._paused=true; this._percent=pct; if(_737){ this.play(); } return this; },stop:function(_738){ clearTimeout(this._timer); var step=this._percent/100; if(_738){ step=1; } var _73a=this.curve.getValue(step); this.fire("handler",["stop",_73a]); this.fire("onStop",[_73a]); 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 _73d=this.curve.getValue(step); this.fire("handler",["animate",_73d]); this.fire("onAnimate",[_73d]); 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(_73e){ dojo.lfx.IAnimation.call(this); this._anims=[]; this._animsEnded=0; var _73f=arguments; if(_73f.length==1&&(dojo.lang.isArray(_73f[0])||dojo.lang.isArrayLike(_73f[0]))){ _73f=_73f[0]; } dojo.lang.forEach(_73f,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(_741,_742){ if(!this._anims.length){ return this; } this.fire("beforeBegin"); if(_741>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_742); }),_741); return this; } if(_742||this._anims[0].percent==0){ this.fire("onBegin"); } this.fire("onPlay"); this._animsCall("play",null,_742); return this; },pause:function(){ this.fire("onPause"); this._animsCall("pause"); return this; },stop:function(_743){ this.fire("onStop"); this._animsCall("stop",_743); return this; },_onAnimsEnded:function(){ this._animsEnded++; if(this._animsEnded>=this._anims.length){ this.fire("onEnd"); } return this; },_animsCall:function(_744){ var args=[]; if(arguments.length>1){ for(var i=1;i0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_750); }),_74f); return this; } if(_751){ if(this._currAnim==0){ this.fire("handler",["begin",this._currAnim]); this.fire("onBegin",[this._currAnim]); } this.fire("onPlay",[this._currAnim]); _751.play(null,_750); } 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 _752=this._anims[this._currAnim]; if(_752){ if(!_752._active||_752._paused){ this.play(); }else{ this.pause(); } } return this; },stop:function(){ var _753=this._anims[this._currAnim]; if(_753){ _753.stop(); this.fire("onStop",[this._currAnim]); } return _753; },_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(_754){ var _755=arguments; if(dojo.lang.isArray(arguments[0])){ _755=arguments[0]; } if(_755.length==1){ return _755[0]; } return new dojo.lfx.Combine(_755); }; dojo.lfx.chain=function(_756){ var _757=arguments; if(dojo.lang.isArray(arguments[0])){ _757=arguments[0]; } if(_757.length==1){ return _757[0]; } return new dojo.lfx.Chain(_757); }; dojo.provide("dojo.html.color"); dojo.html.getBackgroundColor=function(node){ node=dojo.byId(node); var _759; do{ _759=dojo.html.getStyle(node,"background-color"); if(_759.toLowerCase()=="rgba(0, 0, 0, 0)"){ _759="transparent"; } if(node==document.getElementsByTagName("body")[0]){ node=null; break; } node=node.parentNode; }while(node&&dojo.lang.inArray(["transparent",""],_759)); if(_759=="transparent"){ _759=[255,255,255,0]; }else{ _759=dojo.gfx.color.extractRGB(_759); } return _759; }; dojo.provide("dojo.lfx.html"); dojo.lfx.html._byId=function(_75a){ if(!_75a){ return []; } if(dojo.lang.isArrayLike(_75a)){ if(!_75a.alreadyChecked){ var n=[]; dojo.lang.forEach(_75a,function(node){ n.push(dojo.byId(node)); }); n.alreadyChecked=true; return n; }else{ return _75a; } }else{ var n=[]; n.push(dojo.byId(_75a)); n.alreadyChecked=true; return n; } }; dojo.lfx.html.propertyAnimation=function(_75d,_75e,_75f,_760,_761){ _75d=dojo.lfx.html._byId(_75d); var _762={"propertyMap":_75e,"nodes":_75d,"duration":_75f,"easing":_760||dojo.lfx.easeDefault}; var _763=function(args){ if(args.nodes.length==1){ var pm=args.propertyMap; if(!dojo.lang.isArray(args.propertyMap)){ var parr=[]; for(var _767 in pm){ pm[_767].property=_767; parr.push(pm[_767]); } 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 _769=function(_76a){ var _76b=[]; dojo.lang.forEach(_76a,function(c){ _76b.push(Math.round(c)); }); return _76b; }; var _76d=function(n,_76f){ n=dojo.byId(n); if(!n||!n.style){ return; } for(var s in _76f){ try{ if(s=="opacity"){ dojo.html.setOpacity(n,_76f[s]); }else{ n.style[s]=_76f[s]; } } catch(e){ dojo.debug(e); } } }; var _771=function(_772){ this._properties=_772; this.diffs=new Array(_772.length); dojo.lang.forEach(_772,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 _779=null; if(dojo.lang.isArray(prop.start)){ }else{ if(prop.start instanceof dojo.gfx.color.Color){ _779=(prop.units||"rgb")+"("; for(var j=0;j3){ _7ee.pop(); } var rgb=new dojo.gfx.color.Color(_7e8); var _7f3=new dojo.gfx.color.Color(_7ee); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_7f3}},_7e9,_7ea,{"beforeBegin":function(){ if(_7f0){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")"; },"onEnd":function(){ if(_7f0){ node.style.backgroundImage=_7f0; } if(_7f1){ node.style.backgroundColor="transparent"; } if(_7eb){ _7eb(node,anim); } }}); _7ec.push(anim); }); return dojo.lfx.combine(_7ec); }; dojo.lfx.html.unhighlight=function(_7f5,_7f6,_7f7,_7f8,_7f9){ _7f5=dojo.lfx.html._byId(_7f5); var _7fa=[]; dojo.lang.forEach(_7f5,function(node){ var _7fc=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node)); var rgb=new dojo.gfx.color.Color(_7f6); var _7fe=dojo.html.getStyle(node,"background-image"); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_7fc,end:rgb}},_7f7,_7f8,{"beforeBegin":function(){ if(_7fe){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+_7fc.toRgb().join(",")+")"; },"onEnd":function(){ if(_7f9){ _7f9(node,anim); } }}); _7fa.push(anim); }); return dojo.lfx.combine(_7fa); }; dojo.lang.mixin(dojo.lfx,dojo.lfx.html); dojo.kwCompoundRequire({browser:["dojo.lfx.html"],dashboard:["dojo.lfx.html"]}); dojo.provide("dojo.lfx.*"); dojo.provide("dojo.lfx.toggle"); dojo.lfx.toggle.plain={show:function(node,_801,_802,_803){ dojo.html.show(node); if(dojo.lang.isFunction(_803)){ _803(); } },hide:function(node,_805,_806,_807){ dojo.html.hide(node); if(dojo.lang.isFunction(_807)){ _807(); } }}; dojo.lfx.toggle.fade={show:function(node,_809,_80a,_80b){ dojo.lfx.fadeShow(node,_809,_80a,_80b).play(); },hide:function(node,_80d,_80e,_80f){ dojo.lfx.fadeHide(node,_80d,_80e,_80f).play(); }}; dojo.lfx.toggle.wipe={show:function(node,_811,_812,_813){ dojo.lfx.wipeIn(node,_811,_812,_813).play(); },hide:function(node,_815,_816,_817){ dojo.lfx.wipeOut(node,_815,_816,_817).play(); }}; dojo.lfx.toggle.explode={show:function(node,_819,_81a,_81b,_81c){ dojo.lfx.explode(_81c||{x:0,y:0,width:0,height:0},node,_819,_81a,_81b).play(); },hide:function(node,_81e,_81f,_820,_821){ dojo.lfx.implode(node,_821||{x:0,y:0,width:0,height:0},_81e,_81f,_820).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(_828){ try{ if(this.bgIframe){ this.bgIframe.remove(); delete this.bgIframe; } if(!_828&&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 _82c=w||wh.width; var _82d=h||wh.height; if(this.width==_82c&&this.height==_82d){ return false; } this.width=_82c; this.height=_82d; 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(_830){ if(_830.checkSize){ _830.checkSize(); } }); }}); dojo.kwCompoundRequire({common:["dojo.xml.Parse","dojo.widget.Widget","dojo.widget.Parse","dojo.widget.Manager"],browser:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],dashboard:["dojo.widget.DomWidget","dojo.widget.HtmlWidget"],svg:["dojo.widget.SvgWidget"],rhino:["dojo.widget.SwtWidget"]}); dojo.provide("dojo.widget.*"); dojo.kwCompoundRequire({common:["dojo.html.common","dojo.html.style"]}); dojo.provide("dojo.html.*"); dojo.provide("dojo.html.selection"); dojo.html.selectionType={NONE:0,TEXT:1,CONTROL:2}; dojo.html.clearSelection=function(){ var _831=dojo.global(); var _832=dojo.doc(); try{ if(_831["getSelection"]){ if(dojo.render.html.safari){ _831.getSelection().collapse(); }else{ _831.getSelection().removeAllRanges(); } }else{ if(_832.selection){ if(_832.selection.empty){ _832.selection.empty(); }else{ if(_832.selection.clear){ _832.selection.clear(); } } } } return true; } catch(e){ dojo.debug(e); return false; } }; dojo.html.disableSelection=function(_833){ _833=dojo.byId(_833)||dojo.body(); var h=dojo.render.html; if(h.mozilla){ _833.style.MozUserSelect="none"; }else{ if(h.safari){ _833.style.KhtmlUserSelect="none"; }else{ if(h.ie){ _833.unselectable="on"; }else{ return false; } } } return true; }; dojo.html.enableSelection=function(_835){ _835=dojo.byId(_835)||dojo.body(); var h=dojo.render.html; if(h.mozilla){ _835.style.MozUserSelect=""; }else{ if(h.safari){ _835.style.KhtmlUserSelect=""; }else{ if(h.ie){ _835.unselectable="off"; }else{ return false; } } } return true; }; dojo.html.selectElement=function(_837){ dojo.deprecated("dojo.html.selectElement","replaced by dojo.html.selection.selectElementChildren",0.5); }; dojo.html.selectInputText=function(_838){ var _839=dojo.global(); var _83a=dojo.doc(); _838=dojo.byId(_838); if(_83a["selection"]&&dojo.body()["createTextRange"]){ var _83b=_838.createTextRange(); _83b.moveStart("character",0); _83b.moveEnd("character",_838.value.length); _83b.select(); }else{ if(_839["getSelection"]){ var _83c=_839.getSelection(); _838.setSelectionRange(0,_838.value.length); } } _838.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 _83d=dojo.html.selectionType.TEXT; var oSel; try{ oSel=dojo.global().getSelection(); } catch(e){ } if(oSel&&oSel.rangeCount==1){ var _83f=oSel.getRangeAt(0); if(_83f.startContainer==_83f.endContainer&&(_83f.endOffset-_83f.startOffset)==1&&_83f.startContainer.nodeType!=dojo.dom.TEXT_NODE){ _83d=dojo.html.selectionType.CONTROL; } } return _83d; } },isCollapsed:function(){ var _840=dojo.global(); var _841=dojo.doc(); if(_841["selection"]){ return _841.selection.createRange().text==""; }else{ if(_840["getSelection"]){ var _842=_840.getSelection(); if(dojo.lang.isString(_842)){ return _842==""; }else{ return _842.isCollapsed||_842.toString()==""; } } } },getSelectedElement:function(){ if(dojo.html.selection.getType()==dojo.html.selectionType.CONTROL){ if(dojo.doc()["selection"]){ var _843=dojo.doc().selection.createRange(); if(_843&&_843.item){ return dojo.doc().selection.createRange().item(0); } }else{ var _844=dojo.global().getSelection(); return _844.anchorNode.childNodes[_844.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 _846=dojo.global().getSelection(); if(_846){ var node=_846.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 _848=dojo.global().getSelection(); if(_848){ return _848.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 _849=dojo.global().getSelection(); if(_849&&_849.rangeCount){ var frag=_849.getRangeAt(0).cloneContents(); var div=document.createElement("div"); div.appendChild(frag); return div.innerHTML; } return null; } },hasAncestorElement:function(_84c){ return (dojo.html.selection.getAncestorElement.apply(this,arguments)!=null); },getAncestorElement:function(_84d){ 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\r\n
\r\n \r\n \r\n \r\n\r\n",templateCssString:"/* ---- button --- */\r\n.dojoButton {\r\n\tpadding: 0 0 0 0;\r\n\tfont-size: 8pt;\r\n\twhite-space: nowrap;\r\n\tcursor: pointer;\r\n\tfont-family: Myriad, Tahoma, Verdana, sans-serif;\r\n}\r\n\r\n.dojoButton .dojoButtonContents {\r\n\tpadding: 2px 2px 2px 2px;\r\n\ttext-align: center;\t\t/* if icon and label are split across two lines, center icon */\r\n\tcolor: white;\r\n}\r\n\r\n.dojoButtonLeftPart .dojoButtonContents {\r\n\tpadding-right: 8px;\r\n}\r\n\r\n.dojoButtonDisabled {\r\n\tcursor: url(\"images/no.gif\"), default;\r\n}\r\n\r\n\r\n.dojoButtonContents img {\r\n\tvertical-align: middle;\t/* if icon and label are on same line, center them */\r\n}\r\n\r\n/* -------- colors ------------ */\r\n\r\n.dojoButtonHover .dojoButtonContents {\r\n}\r\n\r\n.dojoButtonDepressed .dojoButtonContents {\r\n\tcolor: #293a4b;\r\n}\r\n\r\n.dojoButtonDisabled .dojoButtonContents {\r\n\tcolor: #aaa;\r\n}\r\n\r\n\r\n/* ---------- drop down button specific ---------- */\r\n\r\n/* border between label and arrow (for drop down buttons */\r\n.dojoButton .border {\r\n\twidth: 1px;\r\n\tbackground: gray;\r\n}\r\n\r\n/* button arrow */\r\n.dojoButton .downArrow {\r\n\tpadding-left: 10px;\r\n\ttext-align: center;\r\n}\r\n\r\n.dojoButton.disabled .downArrow {\r\n\tcursor : default;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/ButtonTemplate.css"),inactiveImg:"templates/images/soriaButton-",activeImg:"templates/images/soriaActive-",pressedImg:"templates/images/soriaPressed-",disabledImg:"templates/images/soriaDisabled-",width2height:1/3,fillInTemplate:function(){ if(this.caption){ this.containerNode.appendChild(document.createTextNode(this.caption)); } dojo.html.disableSelection(this.containerNode); },postCreate:function(){ this._sizeMyself(); },_sizeMyself:function(){ if(this.domNode.parentNode){ var _869=document.createElement("span"); dojo.html.insertBefore(_869,this.domNode); } dojo.body().appendChild(this.domNode); this._sizeMyselfHelper(); if(_869){ dojo.html.insertBefore(this.domNode,_869); dojo.html.removeNode(_869); } },_sizeMyselfHelper:function(){ var mb=dojo.html.getMarginBox(this.containerNode); this.height=mb.height; this.containerWidth=mb.width; var _86b=this.height*this.width2height; this.containerNode.style.left=_86b+"px"; this.leftImage.height=this.rightImage.height=this.centerImage.height=this.height; this.leftImage.width=this.rightImage.width=_86b+1; this.centerImage.width=this.containerWidth; this.centerImage.style.left=_86b+"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*_86b)+"px"; },onMouseOver:function(e){ if(this.disabled){ return; } if(!dojo.html.hasClass(this.buttonNode,"dojoButtonHover")){ dojo.html.prependClass(this.buttonNode,"dojoButtonHover"); } this._setImage(this.activeImg); },onMouseDown:function(e){ if(this.disabled){ return; } dojo.html.prependClass(this.buttonNode,"dojoButtonDepressed"); dojo.html.removeClass(this.buttonNode,"dojoButtonHover"); this._setImage(this.pressedImg); },onMouseUp:function(e){ if(this.disabled){ return; } dojo.html.prependClass(this.buttonNode,"dojoButtonHover"); dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed"); this._setImage(this.activeImg); },onMouseOut:function(e){ if(this.disabled){ return; } if(e.toElement&&dojo.html.isDescendantOf(e.toElement,this.buttonNode)){ return; } dojo.html.removeClass(this.buttonNode,"dojoButtonHover"); dojo.html.removeClass(this.buttonNode,"dojoButtonDepressed"); this._setImage(this.inactiveImg); },onKey:function(e){ if(!e.key){ return; } var menu=dojo.widget.getWidgetById(this.menuId); if(e.key==e.KEY_ENTER||e.key==" "){ this.onMouseDown(e); this.buttonClick(e); dojo.lang.setTimeout(this,"onMouseUp",75,e); dojo.event.browser.stopEvent(e); } if(menu&&menu.isShowingNow&&e.key==e.KEY_DOWN_ARROW){ dojo.event.disconnect(this.domNode,"onblur",this,"onBlur"); } },onFocus:function(e){ var menu=dojo.widget.getWidgetById(this.menuId); if(menu){ dojo.event.connectOnce(this.domNode,"onblur",this,"onBlur"); } },onBlur:function(e){ var menu=dojo.widget.getWidgetById(this.menuId); if(!menu){ return; } if(menu.close&&menu.isShowingNow){ menu.close(); } },buttonClick:function(e){ if(!this.disabled){ try{ this.domNode.focus(); } catch(e2){ } this.onClick(e); } },onClick:function(e){ },_setImage:function(_878){ this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_878+"l.gif"); this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_878+"c.gif"); this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_878+"r.gif"); },_toggleMenu:function(_879){ var menu=dojo.widget.getWidgetById(_879); if(!menu){ return; } if(menu.open&&!menu.isShowingNow){ var pos=dojo.html.getAbsolutePosition(this.domNode,false); menu.open(pos.x,pos.y+this.height,this); dojo.event.disconnect(this.domNode,"onblur",this,"onBlur"); }else{ if(menu.close&&menu.isShowingNow){ menu.close(); }else{ menu.toggle(); } } },setCaption:function(_87c){ this.caption=_87c; this.containerNode.innerHTML=_87c; this._sizeMyself(); },setDisabled:function(_87d){ this.disabled=_87d; this._sizeMyself(); }}); dojo.widget.defineWidget("dojo.widget.DropDownButton",dojo.widget.Button,{menuId:"",downArrow:"templates/images/whiteDownArrow.gif",disabledDownArrow:"templates/images/whiteDownArrow.gif",fillInTemplate:function(){ dojo.widget.DropDownButton.superclass.fillInTemplate.apply(this,arguments); this.arrow=document.createElement("img"); dojo.html.setClass(this.arrow,"downArrow"); dojo.widget.wai.setAttr(this.domNode,"waiState","haspopup",this.menuId); },_sizeMyselfHelper:function(){ this.arrow.src=dojo.uri.moduleUri("dojo.widget",this.disabled?this.disabledDownArrow:this.downArrow); this.containerNode.appendChild(this.arrow); dojo.widget.DropDownButton.superclass._sizeMyselfHelper.call(this); },onClick:function(e){ this._toggleMenu(this.menuId); }}); dojo.widget.defineWidget("dojo.widget.ComboButton",dojo.widget.Button,{menuId:"",templateString:"
\r\n\r\n\t
\r\n\t\t
\r\n\t\t\r\n\t\t\r\n\t
\r\n\r\n\t
\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t
\r\n\r\n
\r\n",splitWidth:2,arrowWidth:5,_sizeMyselfHelper:function(e){ var mb=dojo.html.getMarginBox(this.containerNode); this.height=mb.height; this.containerWidth=mb.width; var _881=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=_881+1; this.centerImage.width=this.containerWidth; this.buttonNode.style.height=this.height+"px"; this.buttonNode.style.width=_881+this.containerWidth+"px"; this._setImage(this.disabled?this.disabledImg:this.inactiveImg); this.arrowBackgroundImage.width=this.arrowWidth; this.rightImage.width=_881+1; this.rightPart.style.height=this.height+"px"; this.rightPart.style.width=this.arrowWidth+_881+"px"; this._setImageR(this.disabled?this.disabledImg:this.inactiveImg); this.domNode.style.height=this.height+"px"; var _882=this.containerWidth+this.splitWidth+this.arrowWidth+2*_881; this.domNode.style.width=_882+"px"; },_setImage:function(_883){ this.leftImage.src=dojo.uri.moduleUri("dojo.widget",_883+"l.gif"); this.centerImage.src=dojo.uri.moduleUri("dojo.widget",_883+"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(_889){ this.arrowBackgroundImage.src=dojo.uri.moduleUri("dojo.widget",_889+"c.gif"); this.rightImage.src=dojo.uri.moduleUri("dojo.widget",_889+"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.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,_88e){ 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,_892){ 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(); } }},_892)); },_cacheSetting:function(_898,_899){ for(var x in this.bindArgs){ if(dojo.lang.isUndefined(_898[x])){ _898[x]=this.bindArgs[x]; } } if(dojo.lang.isUndefined(_898.useCache)){ _898.useCache=_899; } if(dojo.lang.isUndefined(_898.preventCache)){ _898.preventCache=!_899; } if(dojo.lang.isUndefined(_898.mimetype)){ _898.mimetype="text/html"; } return _898; },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(_89e){ var st=this[_89e]; var err=""; var _8a1=this.scriptScope||window; for(var i=0;i]*>([\s\S]*?)<\/title>/i; while(_8b9=_8c3.exec(s)){ _8b6.push(_8b9[1]); s=s.substring(0,_8b9.index)+s.substr(_8b9.index+_8b9[0].length); } if(this.adjustPaths){ var _8c4=/<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i; var _8c5=/\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i; var _8c6=/^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/; while(tag=_8c4.exec(s)){ str+=s.substring(0,tag.index); s=s.substring((tag.index+tag[0].length),s.length); tag=tag[0]; _8c0=""; while(attr=_8c5.exec(tag)){ path=""; _8c2=attr[3]; switch(attr[1].toLowerCase()){ case "src": case "href": if(_8c6.exec(_8c2)){ path=_8c2; }else{ path=(new dojo.uri.Uri(url,_8c2).toString()); } break; case "style": path=dojo.html.fixPathsInCssText(_8c2,url); break; default: path=_8c2; } fix=" "+attr[1]+"="+attr[2]+path+attr[2]; _8c0+=tag.substring(0,attr.index)+fix; tag=tag.substring((attr.index+attr[0].length),tag.length); } str+=_8c0+tag; } s=str+s; } _8c3=/(?:<(style)[^>]*>([\s\S]*?)<\/style>|]*rel=['"]?stylesheet['"]?[^>]*)>)/i; while(_8b9=_8c3.exec(s)){ if(_8b9[1]&&_8b9[1].toLowerCase()=="style"){ _8bc.push(dojo.html.fixPathsInCssText(_8b9[2],url)); }else{ if(attr=_8b9[3].match(/href=(['"]?)([^'">]*)\1/i)){ _8bc.push({path:attr[2]}); } } s=s.substring(0,_8b9.index)+s.substr(_8b9.index+_8b9[0].length); } var _8c3=/]*)>([\s\S]*?)<\/script>/i; var _8c7=/src=(['"]?)([^"']*)\1/i; var _8c8=/.*(\bdojo\b\.js(?:\.uncompressed\.js)?)$/; var _8c9=/(?:var )?\bdjConfig\b(?:[\s]*=[\s]*\{[^}]+\}|\.[\w]*[\s]*=[\s]*[^;\n]*)?;?|dojo\.hostenv\.writeIncludes\(\s*\);?/g; var _8ca=/dojo\.(?:(?:require(?:After)?(?:If)?)|(?:widget\.(?:manager\.)?registerWidgetPackage)|(?:(?:hostenv\.)?setModulePrefix|registerModulePath)|defineNamespace)\((['"]).*?\1\)\s*;?/; while(_8b9=_8c3.exec(s)){ if(this.executeScripts&&_8b9[1]){ if(attr=_8c7.exec(_8b9[1])){ if(_8c8.exec(attr[2])){ dojo.debug("Security note! inhibit:"+attr[2]+" from being loaded again."); }else{ _8b7.push({path:attr[2]}); } } } if(_8b9[2]){ var sc=_8b9[2].replace(_8c9,""); if(!sc){ continue; } while(tmp=_8ca.exec(sc)){ _8ba.push(tmp[0]); sc=sc.substring(0,tmp.index)+sc.substr(tmp.index+tmp[0].length); } if(this.executeScripts){ _8b7.push(sc); } } s=s.substr(0,_8b9.index)+s.substr(_8b9.index+_8b9[0].length); } if(this.extractContent){ _8b9=s.match(/]*>\s*([\s\S]+)\s*<\/body>/im); if(_8b9){ s=_8b9[1]; } } if(this.executeScripts&&this.scriptSeparation){ var _8c3=/(<[a-zA-Z][a-zA-Z0-9]*\s[^>]*?\S=)((['"])[^>]*scriptScope[^>]*>)/; var _8cc=/([\s'";:\(])scriptScope(.*)/; str=""; while(tag=_8c3.exec(s)){ tmp=((tag[3]=="'")?"\"":"'"); fix=""; str+=s.substring(0,tag.index)+tag[1]; while(attr=_8cc.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":_8bc,"titles":_8b6,"requires":_8ba,"scripts":_8b7,"url":url}; },_setContent:function(cont){ this.destroyChildren(); for(var i=0;i"; 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 _8eb=dojo.html.getMarginBox(this.domNode); if(_8eb.width==0||_8eb.height==0){ dojo.lang.setTimeout(this,this.onResized,100); return; } this.iframe.style.width=_8eb.width+"px"; this.iframe.style.height=_8eb.height+"px"; } },size:function(node){ if(!this.iframe){ return; } var _8ed=dojo.html.toCoordinateObject(node,true,dojo.html.boxSizing.BORDER_BOX); with(this.iframe.style){ width=_8ed.width+"px"; height=_8ed.height+"px"; left=_8ed.left+"px"; top=_8ed.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 _8f1=this; setTimeout(function(){ _8f1._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(_8f3){ if(arguments.length>=3){ _8f3=new dojo.gfx.color.Color(arguments[0],arguments[1],arguments[2]); }else{ _8f3=new dojo.gfx.color.Color(_8f3); } this.bg.style.backgroundColor=_8f3.toString(); return this.bgColor=_8f3; },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 _8f5=dojo.html.getViewport(); var h=_8f5.height; var w=_8f5.width; with(this.bg.style){ width=w+"px"; height=h+"px"; } var _8f8=dojo.html.getScroll().offset; this.bg.style.top=_8f8.y+"px"; this.bg.style.left=_8f8.x+"px"; var _8f5=dojo.html.getViewport(); if(_8f5.width!=w){ this.bg.style.width=_8f5.width+"px"; } if(_8f5.height!=h){ this.bg.style.height=_8f5.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 _8f9=dojo.html.getScroll().offset; var _8fa=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=_8f9.x+(_8fa.width-mb.width)/2; var y=_8f9.y+(_8fa.height-mb.height)/2; this.domNode.style.left=x+"px"; this.domNode.style.top=y+"px"; /* A.Knieschewski wg. Chrome: 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 _900=dojo.html.getScroll().offset; this.bg.style.top=_900.y+"px"; this.bg.style.left=_900.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:"
\r\n\t\r\n\t\r\n\t
\r\n\t\r\n\t\r\n
\r\n",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){ dojo.widget.Dialog.superclass.postMixInProperties.apply(this,arguments); if(this.closeNode){ this.setCloseControl(this.closeNode); } },postCreate:function(){ dojo.widget.Dialog.superclass.postCreate.apply(this,arguments); dojo.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments); },show:function(){ if(this.lifetime){ this.timeRemaining=this.lifetime; if(this.timerNode){ this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000); } if(this.blockDuration&&this.closeNode){ if(this.lifetime>this.blockDuration){ this.closeNode.style.visibility="hidden"; }else{ this.closeNode.style.display="none"; } } if(this.timer){ clearInterval(this.timer); } this.timer=setInterval(dojo.lang.hitch(this,"_onTick"),100); } this.showModalDialog(); dojo.widget.Dialog.superclass.show.call(this); },onLoad:function(){ this.placeModalDialog(); dojo.widget.Dialog.superclass.onLoad.call(this); },fillInTemplate:function(){ },hide:function(){ this.hideModalDialog(); dojo.widget.Dialog.superclass.hide.call(this); if(this.timer){ clearInterval(this.timer); } },setTimerNode:function(node){ this.timerNode=node; },setCloseControl:function(node){ this.closeNode=dojo.byId(node); dojo.event.connect(this.closeNode,"onclick",this,"hide"); },setShowControl:function(node){ node=dojo.byId(node); dojo.event.connect(node,"onclick",this,"show"); },_onTick:function(){ if(this.timer){ this.timeRemaining-=100; if(this.lifetime-this.timeRemaining>=this.blockDuration){ if(this.closeNode){ this.closeNode.style.visibility="visible"; } } if(!this.timeRemaining){ clearInterval(this.timer); this.hide(); }else{ if(this.timerNode){ this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000); } } } }}); dojo.provide("dojo.widget.TreeWithNode"); dojo.declare("dojo.widget.TreeWithNode",null,function(){ },{loadStates:{UNCHECKED:"UNCHECKED",LOADING:"LOADING",LOADED:"LOADED"},state:"UNCHECKED",objectId:"",isContainer:true,lockLevel:0,lock:function(){ this.lockLevel++; },unlock:function(){ if(!this.lockLevel){ dojo.raise(this.widgetType+" unlock: not locked"); } this.lockLevel--; },expandLevel:0,loadLevel:0,hasLock:function(){ return this.lockLevel>0; },isLocked:function(){ var node=this; while(true){ if(node.lockLevel){ return true; } if(!node.parent||node.isTree){ break; } node=node.parent; } return false; },flushLock:function(){ this.lockLevel=0; },actionIsDisabled:function(_905){ var _906=false; if(dojo.lang.inArray(this.actionsDisabled,_905)){ _906=true; } if(this.isTreeNode){ if(!this.tree.allowAddChildToLeaf&&_905==this.actions.ADDCHILD&&!this.isFolder){ _906=true; } } return _906; },actionIsDisabledNow:function(_907){ return this.actionIsDisabled(_907)||this.isLocked(); },setChildren:function(_908){ if(this.isTreeNode&&!this.isFolder){ this.setFolder(); }else{ if(this.isTreeNode){ this.state=this.loadStates.LOADED; } } var _909=this.children.length>0; if(_909&&_908){ this.destroyChildren(); } if(_908){ this.children=_908; } var _90a=this.children.length>0; if(this.isTreeNode&&_90a!=_909){ this.viewSetHasChildren(); } for(var i=0;i1){ if(_92e==0&&_92d.children[1] instanceof dojo.widget.Widget){ _92d.children[1].viewUpdateLayout(); } if(_92e==_930-1&&_92d.children[_930-2] instanceof dojo.widget.Widget){ _92d.children[_930-2].viewUpdateLayout(); } }else{ if(_92d.isTreeNode){ _92d.viewSetHasChildren(); } } if(!_92f){ var _931={child:this,index:_92e,parent:_92d}; dojo.event.topic.publish(this.tree.eventNames.afterAddChild,_931); } },createSimple:function(args,_933){ if(args.tree){ var tree=args.tree; }else{ if(_933){ var tree=_933.tree; }else{ dojo.raise("createSimple: can't evaluate tree"); } } tree=dojo.widget.byId(tree); var _935=new tree.defaultChildWidget(); for(var x in args){ _935[x]=args[x]; } _935.toggleObj=dojo.lfx.toggle[_935.toggle.toLowerCase()]||dojo.lfx.toggle.plain; dojo.widget.manager.add(_935); _935.buildRendering(args,{},_933); _935.initialize(args,{},_933); if(_935.parent){ delete dojo.widget.manager.topWidgets[_935.widgetId]; } return _935; },viewUpdateLayout:function(){ this.viewRemoveLayout(); this.viewAddLayout(); },viewAddContainer:function(){ this.containerNode=this.tree.containerNodeTemplate.cloneNode(true); this.domNode.appendChild(this.containerNode); },viewAddLayout:function(){ if(this.parent["isTree"]){ dojo.html.setClass(this.domNode,dojo.html.getClass(this.domNode)+" "+this.tree.classPrefix+"IsRoot"); } if(this.isLastChild()){ dojo.html.setClass(this.domNode,dojo.html.getClass(this.domNode)+" "+this.tree.classPrefix+"IsLast"); } },viewRemoveLayout:function(){ dojo.html.removeClass(this.domNode,this.tree.classPrefix+"IsRoot"); dojo.html.removeClass(this.domNode,this.tree.classPrefix+"IsLast"); },viewGetExpandClass:function(){ if(this.isFolder){ return this.isExpanded?"ExpandOpen":"ExpandClosed"; }else{ return "ExpandLeaf"; } },viewSetExpand:function(){ var _937=this.tree.classPrefix+this.viewGetExpandClass(); var reg=new RegExp("(^|\\s)"+this.tree.classPrefix+"Expand\\w+","g"); dojo.html.setClass(this.domNode,dojo.html.getClass(this.domNode).replace(reg,"")+" "+_937); this.viewSetHasChildrenAndExpand(); },viewGetChildrenClass:function(){ return "Children"+(this.children.length?"Yes":"No"); },viewSetHasChildren:function(){ var _939=this.tree.classPrefix+this.viewGetChildrenClass(); var reg=new RegExp("(^|\\s)"+this.tree.classPrefix+"Children\\w+","g"); dojo.html.setClass(this.domNode,dojo.html.getClass(this.domNode).replace(reg,"")+" "+_939); this.viewSetHasChildrenAndExpand(); },viewSetHasChildrenAndExpand:function(){ var _93b=this.tree.classPrefix+"State"+this.viewGetChildrenClass()+"-"+this.viewGetExpandClass(); var reg=new RegExp("(^|\\s)"+this.tree.classPrefix+"State[\\w-]+","g"); dojo.html.setClass(this.domNode,dojo.html.getClass(this.domNode).replace(reg,"")+" "+_93b); },viewUnfocus:function(){ dojo.html.removeClass(this.labelNode,this.tree.classPrefix+"LabelFocused"); },viewFocus:function(){ dojo.html.addClass(this.labelNode,this.tree.classPrefix+"LabelFocused"); },viewEmphasize:function(){ dojo.html.clearSelection(this.labelNode); dojo.html.addClass(this.labelNode,this.tree.classPrefix+"NodeEmphasized"); },viewUnemphasize:function(){ dojo.html.removeClass(this.labelNode,this.tree.classPrefix+"NodeEmphasized"); },detach:function(){ if(!this.parent){ return; } var _93d=this.parent; var _93e=this.getParentIndex(); this.doDetach.apply(this,arguments); dojo.event.topic.publish(this.tree.eventNames.afterDetach,{child:this,parent:_93d,index:_93e}); },doDetach:function(){ var _93f=this.parent; if(!_93f){ return; } var _940=this.getParentIndex(); this.viewRemoveLayout(); dojo.widget.DomWidget.prototype.removeChild.call(_93f,this); var _941=_93f.children.length; if(_941>0){ if(_940==0){ _93f.children[0].viewUpdateLayout(); } if(_940==_941){ _93f.children[_941-1].viewUpdateLayout(); } }else{ if(_93f.isTreeNode){ _93f.viewSetHasChildren(); } } if(this.tree.unsetFolderOnEmpty&&!_93f.children.length&&_93f.isTreeNode){ _93f.unsetFolder(); } this.parent=null; },destroy:function(){ dojo.event.topic.publish(this.tree.eventNames.beforeNodeDestroy,{source:this}); this.detach(); return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments); },expand:function(){ if(this.isExpanded){ return; } if(this.tryLazyInit){ this.setChildren(); this.tryLazyInit=false; } this.isExpanded=true; this.viewSetExpand(); this.showChildren(); },collapse:function(){ if(!this.isExpanded){ return; } this.isExpanded=false; this.hideChildren(); },hideChildren:function(){ this.tree.toggleObj.hide(this.containerNode,this.tree.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onHideChildren")); },showChildren:function(){ this.tree.toggleObj.show(this.containerNode,this.tree.toggleDuration,this.explodeSrc,dojo.lang.hitch(this,"onShowChildren")); },onShowChildren:function(){ this.onShow(); dojo.event.topic.publish(this.tree.eventNames.afterExpand,{source:this}); },onHideChildren:function(){ this.viewSetExpand(); this.onHide(); dojo.event.topic.publish(this.tree.eventNames.afterCollapse,{source:this}); },setTitle:function(_942){ var _943=this.title; this.labelNode.innerHTML=this.title=_942; dojo.event.topic.publish(this.tree.eventNames.afterSetTitle,{source:this,oldTitle:_943}); },toString:function(){ return "["+this.widgetType+", "+this.title+"]"; }}); dojo.provide("dojo.widget.TreeV3"); dojo.widget.defineWidget("dojo.widget.TreeV3",[dojo.widget.HtmlWidget,dojo.widget.TreeWithNode],function(){ this.eventNames={}; this.DndAcceptTypes=[]; this.actionsDisabled=[]; this.listeners=[]; this.tree=this; },{DndMode:"",defaultChildWidget:null,defaultChildTitle:"New Node",eagerWidgetInstantiation:false,eventNamesDefault:{afterTreeCreate:"afterTreeCreate",beforeTreeDestroy:"beforeTreeDestroy",beforeNodeDestroy:"beforeNodeDestroy",afterChangeTree:"afterChangeTree",afterSetFolder:"afterSetFolder",afterUnsetFolder:"afterUnsetFolder",beforeMoveFrom:"beforeMoveFrom",beforeMoveTo:"beforeMoveTo",afterMoveFrom:"afterMoveFrom",afterMoveTo:"afterMoveTo",afterAddChild:"afterAddChild",afterDetach:"afterDetach",afterExpand:"afterExpand",beforeExpand:"beforeExpand",afterSetTitle:"afterSetTitle",afterCollapse:"afterCollapse",beforeCollapse:"beforeCollapse"},classPrefix:"Tree",style:"",allowAddChildToLeaf:true,unsetFolderOnEmpty:true,DndModes:{BETWEEN:1,ONTO:2},DndAcceptTypes:"",templateCssString:"/* indent for all tree children excepts root */\r\n.TreeNode {\r\n background-image : url('../templates/images/TreeV3/i.gif');\r\n background-position : top left;\r\n background-repeat : repeat-y;\r\n margin-left: 19px;\r\n zoom: 1;\r\n}\r\n.TreeIsRoot {\r\n margin-left: 0;\r\n}\r\n \r\n/* left vertical line (grid) for all nodes */\r\n.TreeIsLast {\r\n background-image: url('../templates/images/TreeV3/i_half.gif');\r\n background-repeat : no-repeat;\r\n}\r\n \r\n.TreeExpandOpen .TreeExpand {\r\n background-image: url('../templates/images/TreeV3/expand_minus.gif');\r\n}\r\n \r\n/* closed is higher priority than open */\r\n.TreeExpandClosed .TreeExpand {\r\n background-image: url('../templates/images/TreeV3/expand_plus.gif');\r\n}\r\n \r\n/* highest priority */\r\n.TreeExpandLeaf .TreeExpand {\r\n background-image: url('../templates/images/TreeV3/expand_leaf.gif');\r\n}\r\n\r\n/* \r\nshould always override any expand setting, but do not touch children.\r\nif I add .TreeExpand .TreeExpandLoading same time and put it to top/bottom, then it will take precedence over +- for all descendants or always fail\r\nso I have to remove TreeExpand and process this one specifically\r\n*/\r\n\r\n.TreeExpandLoading {\r\n width: 18px;\r\n height: 18px;\r\n float: left;\r\n display: inline;\r\n background-repeat : no-repeat;\r\n background-image: url('../templates/images/TreeV3/expand_loading.gif');\r\n}\r\n \r\n.TreeContent {\r\n min-height: 18px;\r\n min-width: 18px;\r\n margin-left:18px;\r\n cursor: default;\r\n /* can't make inline - multiline bugs */\r\n}\r\n\r\n.TreeIEContent {\r\n\theight: 18px;\r\n}\r\n \r\n.TreeExpand {\r\n width: 18px;\r\n height: 18px;\r\n float: left;\r\n display: inline;\r\n background-repeat : no-repeat;\r\n}\r\n \r\n/* same style as IE selection */\r\n.TreeNodeEmphasized {\r\n background-color: Highlight;\r\n color: HighlightText;\r\n}\r\n \r\n.TreeContent .RichTextEditable, .TreeContent .RichTextEditable iframe {\r\n background-color: #ffc;\r\n color: black;\r\n}\r\n\r\n/* don't use :focus due to opera's lack of support on div's */\r\n.TreeLabelFocused {\r\n outline: 1px invert dotted;\r\n}\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/TreeV3.css"),templateString:"
\n
",isExpanded:true,isTree:true,createNode:function(data){ data.tree=this.widgetId; if(data.widgetName){ return dojo.widget.createWidget(data.widgetName,data); }else{ if(this.defaultChildWidget.prototype.createSimple){ return this.defaultChildWidget.prototype.createSimple(data); }else{ var ns=this.defaultChildWidget.prototype.ns; var wt=this.defaultChildWidget.prototype.widgetType; return dojo.widget.createWidget(ns+":"+wt,data); } } },makeNodeTemplate:function(){ var _947=document.createElement("div"); dojo.html.setClass(_947,this.classPrefix+"Node "+this.classPrefix+"ExpandLeaf "+this.classPrefix+"ChildrenNo"); this.nodeTemplate=_947; var _948=document.createElement("div"); var _949=this.classPrefix+"Expand"; if(dojo.render.html.ie){ _949=_949+" "+this.classPrefix+"IEExpand"; } dojo.html.setClass(_948,_949); this.expandNodeTemplate=_948; var _94a=document.createElement("span"); dojo.html.setClass(_94a,this.classPrefix+"Label"); this.labelNodeTemplate=_94a; var _94b=document.createElement("div"); var _949=this.classPrefix+"Content"; if(dojo.render.html.ie&&!dojo.render.html.ie70){ _949=_949+" "+this.classPrefix+"IEContent"; } dojo.html.setClass(_94b,_949); this.contentNodeTemplate=_94b; _947.appendChild(_948); _947.appendChild(_94b); _94b.appendChild(_94a); },makeContainerNodeTemplate:function(){ var div=document.createElement("div"); div.style.display="none"; dojo.html.setClass(div,this.classPrefix+"Container"); this.containerNodeTemplate=div; },actions:{ADDCHILD:"ADDCHILD"},getInfo:function(){ var info={widgetId:this.widgetId,objectId:this.objectId}; return info; },adjustEventNames:function(){ for(var name in this.eventNamesDefault){ if(dojo.lang.isUndefined(this.eventNames[name])){ this.eventNames[name]=this.widgetId+"/"+this.eventNamesDefault[name]; } } },adjustDndMode:function(){ var _94f=this; var _950=0; dojo.lang.forEach(this.DndMode.split(";"),function(elem){ var mode=_94f.DndModes[dojo.string.trim(elem).toUpperCase()]; if(mode){ _950=_950|mode; } }); this.DndMode=_950; },destroy:function(){ dojo.event.topic.publish(this.tree.eventNames.beforeTreeDestroy,{source:this}); return dojo.widget.HtmlWidget.prototype.destroy.apply(this,arguments); },initialize:function(args){ this.domNode.widgetId=this.widgetId; for(var i=0;i=0){ this.dropTargets.splice(_99a,1); } },getDragSource:function(e){ var tn=e.target; if(tn===dojo.body()){ return; } var ta=dojo.html.getAttribute(tn,this.dsPrefix); while((!ta)&&(tn)){ tn=tn.parentNode; if((!tn)||(tn===dojo.body())){ return; } ta=dojo.html.getAttribute(tn,this.dsPrefix); } return this.dragSources[ta]; },onKeyDown:function(e){ },onMouseDown:function(e){ if(this.disabled){ return; } if(dojo.render.html.ie){ if(e.button!=1){ return; } }else{ if(e.which!=1){ return; } } var _9a0=e.target.nodeType==dojo.html.TEXT_NODE?e.target.parentNode:e.target; if(dojo.html.isTag(_9a0,"button","textarea","input","select","option")){ return; } var ds=this.getDragSource(e); if(!ds){ return; } if(!dojo.lang.inArray(this.selectedSources,ds)){ this.selectedSources.push(ds); ds.onSelected(); } this.mouseDownX=e.pageX; this.mouseDownY=e.pageY; e.preventDefault(); dojo.event.connect(document,"onmousemove",this,"onMouseMove"); },onMouseUp:function(e,_9a3){ if(this.selectedSources.length==0){ return; } this.mouseDownX=null; this.mouseDownY=null; this._dragTriggered=false; e.dragSource=this.dragSource; if((!e.shiftKey)&&(!e.ctrlKey)){ if(this.currentDropTarget){ this.currentDropTarget.onDropStart(); } dojo.lang.forEach(this.dragObjects,function(_9a4){ var ret=null; if(!_9a4){ return; } if(this.currentDropTarget){ e.dragObject=_9a4; var ce=this.currentDropTarget.domNode.childNodes; if(ce.length>0){ e.dropTarget=ce[0]; while(e.dropTarget==_9a4.domNode){ e.dropTarget=e.dropTarget.nextSibling; } }else{ e.dropTarget=this.currentDropTarget.domNode; } if(this.dropAcceptable){ ret=this.currentDropTarget.onDrop(e); }else{ this.currentDropTarget.onDragOut(e); } } e.dragStatus=this.dropAcceptable&&ret?"dropSuccess":"dropFailure"; dojo.lang.delayThese([function(){ try{ _9a4.dragSource.onDragEnd(e); } catch(err){ var _9a7={}; for(var i in e){ if(i=="type"){ _9a7.type="mouseup"; continue; } _9a7[i]=e[i]; } _9a4.dragSource.onDragEnd(_9a7); } },function(){ _9a4.onDragEnd(e); }]); },this); this.selectedSources=[]; this.dragObjects=[]; this.dragSource=null; if(this.currentDropTarget){ this.currentDropTarget.onDropEnd(); } }else{ } dojo.event.disconnect(document,"onmousemove",this,"onMouseMove"); this.currentDropTarget=null; },onScroll:function(){ for(var i=0;ithis.threshold); if(!this._dragTriggered){ return; } dx=e.pageX-this.mouseDownX; dy=e.pageY-this.mouseDownY; } this.dragSource=this.selectedSources[0]; dojo.lang.forEach(this.selectedSources,function(_9b7){ if(!_9b7){ return; } var tdo=_9b7.onDragStart(e); if(tdo){ tdo.onDragStart(e); tdo.dragOffset.y+=dy; tdo.dragOffset.x+=dx; tdo.dragSource=_9b7; this.dragObjects.push(tdo); } },this); this.previousDropTarget=null; this.cacheTargetLocations(); } dojo.lang.forEach(this.dragObjects,function(_9b9){ if(_9b9){ _9b9.onDragMove(e); } }); if(this.currentDropTarget){ var c=dojo.html.toCoordinateObject(this.currentDropTarget.domNode,true); var dtp=[[c.x,c.y],[c.x+c.width,c.y+c.height]]; } if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){ if(this.dropAcceptable){ this.currentDropTarget.onDragMove(e,this.dragObjects); } }else{ var _9bc=this.findBestTarget(e); if(_9bc.target===null){ if(this.currentDropTarget){ this.currentDropTarget.onDragOut(e); this.previousDropTarget=this.currentDropTarget; this.currentDropTarget=null; } this.dropAcceptable=false; return; } if(this.currentDropTarget!==_9bc.target){ if(this.currentDropTarget){ this.previousDropTarget=this.currentDropTarget; this.currentDropTarget.onDragOut(e); } this.currentDropTarget=_9bc.target; e.dragObjects=this.dragObjects; this.dropAcceptable=this.currentDropTarget.onDragOver(e); }else{ if(this.dropAcceptable){ this.currentDropTarget.onDragMove(e,this.dragObjects); } } } },findBestTarget:function(e){ var _9be=this; var _9bf=new Object(); _9bf.target=null; _9bf.points=null; dojo.lang.every(this.dropTargetDimensions,function(_9c0){ if(!_9be.isInsideBox(e,_9c0)){ return true; } _9bf.target=_9c0[2]; _9bf.points=_9c0; return Boolean(_9be.nestedTargets); }); return _9bf; },isInsideBox:function(e,_9c2){ if((e.pageX>_9c2[0][0])&&(e.pageX<_9c2[1][0])&&(e.pageY>_9c2[0][1])&&(e.pageY<_9c2[1][1])){ return true; } return false; },onMouseOver:function(e){ },onMouseOut:function(e){ }}); dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager(); (function(){ var d=document; var dm=dojo.dnd.dragManager; dojo.event.connect(d,"onkeydown",dm,"onKeyDown"); dojo.event.connect(d,"onmouseover",dm,"onMouseOver"); dojo.event.connect(d,"onmouseout",dm,"onMouseOut"); dojo.event.connect(d,"onmousedown",dm,"onMouseDown"); dojo.event.connect(d,"onmouseup",dm,"onMouseUp"); dojo.event.connect(window,"onscroll",dm,"onScroll"); })(); dojo.provide("dojo.dnd.HtmlDragAndDrop"); dojo.declare("dojo.dnd.HtmlDragSource",dojo.dnd.DragSource,{dragClass:"",onDragStart:function(){ var _9c7=new dojo.dnd.HtmlDragObject(this.dragObject,this.type); if(this.dragClass){ _9c7.dragClass=this.dragClass; } if(this.constrainToContainer){ _9c7.constrainTo(this.constrainingContainer||this.domNode.parentNode); } return _9c7; },setDragHandle:function(node){ node=dojo.byId(node); dojo.dnd.dragManager.unregisterDragSource(this); this.domNode=node; dojo.dnd.dragManager.registerDragSource(this); },setDragTarget:function(node){ this.dragObject=node; },constrainTo:function(_9ca){ this.constrainToContainer=true; if(_9ca){ this.constrainingContainer=_9ca; } },onSelected:function(){ for(var i=0;ithis.constraints.maxX){ x=this.constraints.maxX; } if(y>this.constraints.maxY){ y=this.constraints.maxY; } } this.setAbsolutePosition(x,y); dojo.event.topic.publish("dragMove",{source:this}); },setAbsolutePosition:function(x,y){ if(!this.disableY){ this.dragClone.style.top=y+"px"; } if(!this.disableX){ this.dragClone.style.left=x+"px"; } },onDragEnd:function(e){ switch(e.dragStatus){ case "dropSuccess": dojo.html.removeNode(this.dragClone); this.dragClone=null; break; case "dropFailure": var _9ed=dojo.html.getAbsolutePosition(this.dragClone,true); var _9ee={left:this.dragStartPosition.x+1,top:this.dragStartPosition.y+1}; var anim=dojo.lfx.slideTo(this.dragClone,_9ee,300); var _9f0=this; dojo.event.connect(anim,"onEnd",function(e){ dojo.html.removeNode(_9f0.dragClone); _9f0.dragClone=null; }); anim.play(); break; } dojo.event.topic.publish("dragEnd",{source:this}); },constrainTo:function(_9f2){ this.constrainToContainer=true; if(_9f2){ this.constrainingContainer=_9f2; }else{ this.constrainingContainer=this.domNode.parentNode; } }},function(node,type){ this.domNode=dojo.byId(node); this.type=type; this.constrainToContainer=false; this.dragSource=null; dojo.dnd.DragObject.prototype.register.call(this); }); dojo.declare("dojo.dnd.HtmlDropTarget",dojo.dnd.DropTarget,{vertical:false,onDragOver:function(e){ if(!this.accepts(e.dragObjects)){ return false; } this.childBoxes=[]; for(var i=0,_9f7;i=left&&e.pageX<=right&&e.pageY>=top&&e.pageY<=bottom){ return i; } } } return -1; },createDropIndicator:function(){ this.dropIndicator=document.createElement("div"); with(this.dropIndicator.style){ position="absolute"; zIndex=999; if(this.vertical){ borderLeftWidth="1px"; borderLeftColor="black"; borderLeftStyle="solid"; height=dojo.html.getBorderBox(this.domNode).height+"px"; top=dojo.html.getAbsolutePosition(this.domNode,true).y+"px"; }else{ borderTopWidth="1px"; borderTopColor="black"; borderTopStyle="solid"; width=dojo.html.getBorderBox(this.domNode).width+"px"; left=dojo.html.getAbsolutePosition(this.domNode,true).x+"px"; } } },onDragMove:function(e,_9fe){ var i=this._getNodeUnderMouse(e); if(!this.dropIndicator){ this.createDropIndicator(); } var _a00=this.vertical?dojo.html.gravity.WEST:dojo.html.gravity.NORTH; var hide=false; if(i<0){ if(this.childBoxes.length){ var _a02=(dojo.html.gravity(this.childBoxes[0].node,e)&_a00); if(_a02){ hide=true; } }else{ var _a02=true; } }else{ var _a03=this.childBoxes[i]; var _a02=(dojo.html.gravity(_a03.node,e)&_a00); if(_a03.node===_9fe[0].dragSource.domNode){ hide=true; }else{ var _a04=_a02?(i>0?this.childBoxes[i-1]:_a03):(i_a42.getParentIndex()){ _a44--; } return _a44; },onDrop:function(e){ var _a46=this.position; this.onDragOut(e); var _a47=e.dragObject.treeNode; if(!dojo.lang.isObject(_a47)){ dojo.raise("TreeNode not found in dragObject"); } if(_a46=="onto"){ return this.controller.move(_a47,this.treeNode,0); }else{ var _a48=this.getTargetParentIndex(_a47,_a46); return this.controller.move(_a47,this.treeNode.parent,_a48); } }}); dojo.dnd.TreeDNDController=function(_a49){ this.treeController=_a49; this.dragSources={}; this.dropTargets={}; }; dojo.lang.extend(dojo.dnd.TreeDNDController,{listenTree:function(tree){ dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode"); dojo.event.topic.subscribe(tree.eventNames.moveFrom,this,"onMoveFrom"); dojo.event.topic.subscribe(tree.eventNames.moveTo,this,"onMoveTo"); dojo.event.topic.subscribe(tree.eventNames.addChild,this,"onAddChild"); dojo.event.topic.subscribe(tree.eventNames.removeNode,this,"onRemoveNode"); dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy"); },unlistenTree:function(tree){ dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode"); dojo.event.topic.unsubscribe(tree.eventNames.moveFrom,this,"onMoveFrom"); dojo.event.topic.unsubscribe(tree.eventNames.moveTo,this,"onMoveTo"); dojo.event.topic.unsubscribe(tree.eventNames.addChild,this,"onAddChild"); dojo.event.topic.unsubscribe(tree.eventNames.removeNode,this,"onRemoveNode"); dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy"); },onTreeDestroy:function(_a4c){ this.unlistenTree(_a4c.source); },onCreateDOMNode:function(_a4d){ this.registerDNDNode(_a4d.source); },onAddChild:function(_a4e){ this.registerDNDNode(_a4e.child); },onMoveFrom:function(_a4f){ var _a50=this; dojo.lang.forEach(_a4f.child.getDescendants(),function(node){ _a50.unregisterDNDNode(node); }); },onMoveTo:function(_a52){ var _a53=this; dojo.lang.forEach(_a52.child.getDescendants(),function(node){ _a53.registerDNDNode(node); }); },registerDNDNode:function(node){ if(!node.tree.DNDMode){ return; } var _a56=null; var _a57=null; if(!node.actionIsDisabled(node.actions.MOVE)){ var _a56=new dojo.dnd.TreeDragSource(node.labelNode,this,node.tree.widgetId,node); this.dragSources[node.widgetId]=_a56; } var _a57=new dojo.dnd.TreeDropTarget(node.labelNode,this.treeController,node.tree.DNDAcceptTypes,node); this.dropTargets[node.widgetId]=_a57; },unregisterDNDNode:function(node){ if(this.dragSources[node.widgetId]){ dojo.dnd.dragManager.unregisterDragSource(this.dragSources[node.widgetId]); delete this.dragSources[node.widgetId]; } if(this.dropTargets[node.widgetId]){ dojo.dnd.dragManager.unregisterDropTarget(this.dropTargets[node.widgetId]); delete this.dropTargets[node.widgetId]; } }}); dojo.provide("dojo.widget.TreeBasicController"); dojo.widget.defineWidget("dojo.widget.TreeBasicController",dojo.widget.HtmlWidget,{widgetType:"TreeBasicController",DNDController:"",dieWithTree:false,initialize:function(args,frag){ if(this.DNDController=="create"){ this.DNDController=new dojo.dnd.TreeDNDController(this); } },listenTree:function(tree){ dojo.event.topic.subscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode"); dojo.event.topic.subscribe(tree.eventNames.treeClick,this,"onTreeClick"); dojo.event.topic.subscribe(tree.eventNames.treeCreate,this,"onTreeCreate"); dojo.event.topic.subscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy"); if(this.DNDController){ this.DNDController.listenTree(tree); } },unlistenTree:function(tree){ dojo.event.topic.unsubscribe(tree.eventNames.createDOMNode,this,"onCreateDOMNode"); dojo.event.topic.unsubscribe(tree.eventNames.treeClick,this,"onTreeClick"); dojo.event.topic.unsubscribe(tree.eventNames.treeCreate,this,"onTreeCreate"); dojo.event.topic.unsubscribe(tree.eventNames.treeDestroy,this,"onTreeDestroy"); },onTreeDestroy:function(_a5d){ var tree=_a5d.source; this.unlistenTree(tree); if(this.dieWithTree){ this.destroy(); } },onCreateDOMNode:function(_a5f){ var node=_a5f.source; if(node.expandLevel>0){ this.expandToLevel(node,node.expandLevel); } },onTreeCreate:function(_a61){ var tree=_a61.source; var _a63=this; if(tree.expandLevel){ dojo.lang.forEach(tree.children,function(_a64){ _a63.expandToLevel(_a64,tree.expandLevel-1); }); } },expandToLevel:function(node,_a66){ if(_a66==0){ return; } var _a67=node.children; var _a68=this; var _a69=function(node,_a6b){ this.node=node; this.expandLevel=_a6b; this.process=function(){ for(var i=0;ii){ _abf=this.selectedNodes[i]; if(_abf!==node){ this.deselect(_abf); continue; } i++; } var _ac0=this.checkRecentClick(node); eventName=_ac0?this.eventNames.dblselect:this.eventNames.select; if(_ac0){ eventName=this.eventNames.dblselect; this.forgetLastClicked(); }else{ eventName=this.eventNames.select; this.setLastClicked(node); } dojo.event.topic.publish(eventName,{node:node}); return; } this.deselectIfNoMulti(_abc); this.setLastClicked(node); this.select(node); },forgetLastClicked:function(){ this.lastClicked={}; },setLastClicked:function(node){ this.lastClicked.date=new Date(); this.lastClicked.node=node; },checkRecentClick:function(node){ var diff=new Date()-this.lastClicked.date; if(this.lastClicked.node&&diff=0){ return; } this.selectedNodes.push(node); dojo.event.topic.publish(this.eventNames.select,{node:node}); },deselect:function(node){ var _acd=dojo.lang.find(this.selectedNodes,node,true); if(_acd<0){ return; } this.selectedNodes.splice(_acd,1); dojo.event.topic.publish(this.eventNames.deselect,{node:node}); },deselectAll:function(){ while(this.selectedNodes.length){ this.deselect(this.selectedNodes[0]); } }}); dojo.provide("dojo.widget.TreeEmphasizeOnSelect"); dojo.widget.defineWidget("dojo.widget.TreeEmphasizeOnSelect",dojo.widget.HtmlWidget,{selector:"",initialize:function(){ this.selector=dojo.widget.byId(this.selector); dojo.event.topic.subscribe(this.selector.eventNames.select,this,"onSelect"); dojo.event.topic.subscribe(this.selector.eventNames.deselect,this,"onDeselect"); },onSelect:function(_ace){ _ace.node.viewEmphasize(); },onDeselect:function(_acf){ _acf.node.viewUnemphasize(); }}); dojo.provide("dojo.widget.PopupContainer"); dojo.declare("dojo.widget.PopupContainerBase",null,function(){ this.queueOnAnimationFinish=[]; },{isShowingNow:false,currentSubpopup:null,beginZIndex:1000,parentPopup:null,parent:null,popupIndex:0,aroundBox:dojo.html.boxSizing.BORDER_BOX,openedForWindow:null,processKey:function(evt){ return false; },applyPopupBasicStyle:function(){ with(this.domNode.style){ display="none"; position="absolute"; } },aboutToShow:function(){ },open:function(x,y,_ad3,_ad4,_ad5,_ad6){ if(this.isShowingNow){ return; } if(this.animationInProgress){ this.queueOnAnimationFinish.push(this.open,arguments); return; } this.aboutToShow(); var _ad7=false,node,_ad9; if(typeof x=="object"){ node=x; _ad9=_ad4; _ad4=_ad3; _ad3=y; _ad7=true; } this.parent=_ad3; dojo.body().appendChild(this.domNode); _ad4=_ad4||_ad3["domNode"]||[]; var _ada=null; this.isTopLevel=true; while(_ad3){ if(_ad3!==this&&(_ad3.setOpenedSubpopup!=undefined&&_ad3.applyPopupBasicStyle!=undefined)){ _ada=_ad3; this.isTopLevel=false; _ada.setOpenedSubpopup(this); break; } _ad3=_ad3.parent; } this.parentPopup=_ada; this.popupIndex=_ada?_ada.popupIndex+1:1; if(this.isTopLevel){ var _adb=dojo.html.isNode(_ad4)?_ad4:null; dojo.widget.PopupManager.opened(this,_adb); } 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(_ad4 instanceof Array){ _ad4={left:_ad4[0],top:_ad4[1],width:0,height:0}; } with(this.domNode.style){ display=""; zIndex=this.beginZIndex+this.popupIndex; } if(_ad7){ this.move(node,_ad6,_ad9); }else{ this.move(x,y,_ad6,_ad5); } this.domNode.style.display="none"; this.explodeSrc=_ad4; this.show(); this.isShowingNow=true; },move:function(x,y,_ade,_adf){ var _ae0=(typeof x=="object"); if(_ae0){ var _ae1=_ade; var node=x; _ade=y; if(!_ae1){ _ae1={"BL":"TL","TL":"BL"}; } dojo.html.placeOnScreenAroundElement(this.domNode,node,_ade,this.aroundBox,_ae1); }else{ if(!_adf){ _adf="TL,TR,BL,BR"; } dojo.html.placeOnScreen(this.domNode,x,y,_ade,true,_adf); } },close:function(_ae3){ if(_ae3){ this.domNode.style.display="none"; } if(this.animationInProgress){ this.queueOnAnimationFinish.push(this.close,[]); return; } this.closeSubpopup(_ae3); 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(_ae4){ if(this.parentPopup){ this.parentPopup.closeAll(_ae4); }else{ this.close(_ae4); } },setOpenedSubpopup:function(_ae5){ this.currentSubpopup=_ae5; },closeSubpopup:function(_ae6){ if(this.currentSubpopup==null){ return; } this.currentSubpopup.close(_ae6); this.currentSubpopup=null; },onShow:function(){ dojo.widget.PopupContainer.superclass.onShow.apply(this,arguments); this.openedSize={w:this.domNode.style.width,h:this.domNode.style.height}; if(dojo.render.html.ie){ if(!this.bgIframe){ this.bgIframe=new dojo.html.BackgroundIframe(); this.bgIframe.setZIndex(this.domNode); } this.bgIframe.size(this.domNode); this.bgIframe.show(); } this.processQueue(); },processQueue:function(){ if(!this.queueOnAnimationFinish.length){ return; } var func=this.queueOnAnimationFinish.shift(); var args=this.queueOnAnimationFinish.shift(); func.apply(this,args); },onHide:function(){ dojo.widget.HtmlWidget.prototype.onHide.call(this); if(this.openedSize){ with(this.domNode.style){ width=this.openedSize.w; height=this.openedSize.h; } } this.processQueue(); }}); dojo.widget.defineWidget("dojo.widget.PopupContainer",[dojo.widget.HtmlWidget,dojo.widget.PopupContainerBase],{isContainer:true,fillInTemplate:function(){ this.applyPopupBasicStyle(); dojo.widget.PopupContainer.superclass.fillInTemplate.apply(this,arguments); }}); dojo.widget.PopupManager=new function(){ this.currentMenu=null; this.currentButton=null; this.currentFocusMenu=null; this.focusNode=null; this.registeredWindows=[]; this.registerWin=function(win){ if(!win.__PopupManagerRegistered){ dojo.event.connect(win.document,"onmousedown",this,"onClick"); dojo.event.connect(win,"onscroll",this,"onClick"); dojo.event.connect(win.document,"onkey",this,"onKey"); win.__PopupManagerRegistered=true; this.registeredWindows.push(win); } }; this.registerAllWindows=function(_aea){ // PATCH MB 27.6.08 bei Javascript-bookmark aufruf, try-catch um _aea= ergaenzt if(!_aea){ try{ _aea=dojo.html.getDocumentWindow(window.top&&window.top.document||window.document); } catch (e) { return;} } this.registerWin(_aea); for(var i=0;i<_aea.frames.length;i++){ try{ var win=dojo.html.getDocumentWindow(_aea.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.iconAlt}\"",templateCssPath:"",isContainer:true,attachTemplateNodes:function(){ dojo.widget.DropdownContainer.superclass.attachTemplateNodes.apply(this,arguments); this.popup=dojo.widget.createWidget("PopupContainer",{toggle:this.containerToggle,toggleDuration:this.containerToggleDuration}); this.containerNode=this.popup.domNode; },fillInTemplate:function(args,frag){ this.domNode.appendChild(this.popup.domNode); if(this.id){ this.domNode.id=this.id; } if(this.inputId){ this.inputNode.id=this.inputId; } if(this.inputName){ this.inputNode.name=this.inputName; } this.inputNode.style.width=this.inputWidth; this.inputNode.disabled=this.disabled; if(this.copyClasses){ this.inputNode.style=""; this.inputNode.className=this.getFragNodeRef(frag).className; } dojo.event.connect(this.inputNode,"onchange",this,"onInputChange"); },onIconClick:function(evt){ if(this.disabled){ return; } if(!this.popup.isShowingNow){ this.popup.open(this.inputNode,this,this.buttonNode); }else{ this.popup.close(); } },hideContainer:function(){ if(this.popup.isShowingNow){ this.popup.close(); } },onInputChange:function(){ },enable:function(){ this.inputNode.disabled=false; dojo.widget.DropdownContainer.superclass.enable.apply(this,arguments); },disable:function(){ this.inputNode.disabled=true; dojo.widget.DropdownContainer.superclass.disable.apply(this,arguments); }}); dojo.provide("dojo.date.common"); dojo.date.setDayOfYear=function(_b04,_b05){ _b04.setMonth(0); _b04.setDate(_b05); return _b04; }; dojo.date.getDayOfYear=function(_b06){ var _b07=_b06.getFullYear(); var _b08=new Date(_b07-1,11,31); return Math.floor((_b06.getTime()-_b08.getTime())/86400000); }; dojo.date.setWeekOfYear=function(_b09,week,_b0b){ if(arguments.length==1){ _b0b=0; } dojo.unimplemented("dojo.date.setWeekOfYear"); }; dojo.date.getWeekOfYear=function(_b0c,_b0d){ if(arguments.length==1){ _b0d=0; } var _b0e=new Date(_b0c.getFullYear(),0,1); var day=_b0e.getDay(); _b0e.setDate(_b0e.getDate()-day+_b0d-(day>_b0d?7:0)); return Math.floor((_b0c.getTime()-_b0e.getTime())/604800000); }; dojo.date.setIsoWeekOfYear=function(_b10,week,_b12){ if(arguments.length==1){ _b12=1; } dojo.unimplemented("dojo.date.setIsoWeekOfYear"); }; dojo.date.getIsoWeekOfYear=function(_b13,_b14){ if(arguments.length==1){ _b14=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(_b15){ var _b16=_b15.getMonth(); var days=[31,28,31,30,31,30,31,31,30,31,30,31]; if(_b16==1&&dojo.date.isLeapYear(_b15)){ return 29; }else{ return days[_b16]; } }; dojo.date.isLeapYear=function(_b18){ var year=_b18.getFullYear(); return (year%400==0)?true:(year%100==0)?false:(year%4==0)?true:false; }; dojo.date.getTimezoneName=function(_b1a){ var str=_b1a.toString(); var tz=""; var _b1d; var pos=str.indexOf("("); if(pos>-1){ pos++; tz=str.substring(pos,str.indexOf(")")); }else{ var pat=/([A-Z\/]+) \d{4}$/; if((_b1d=str.match(pat))){ tz=_b1d[1]; }else{ str=_b1a.toLocaleString(); pat=/ ([A-Z\/]+)$/; if((_b1d=str.match(pat))){ tz=_b1d[1]; } } } return tz=="AM"||tz=="PM"?"":tz; }; dojo.date.getOrdinal=function(_b20){ var date=_b20.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(_b22,_b23,_b24){ var dA=_b22; var dB=_b23||new Date(); var now=new Date(); with(dojo.date.compareTypes){ var opt=_b24||(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()0)?5:-5; _b30=(incr>0)?((incr-5)/5):((incr+5)/5); }else{ days=mod; _b30=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*_b30)+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,_b38){ if(typeof dtA=="number"){ dtA=new Date(dtA); } if(typeof dtB=="number"){ dtB=new Date(dtB); } var _b39=dtB.getFullYear()-dtA.getFullYear(); var _b3a=(dtB.getMonth()-dtA.getMonth())+(_b39*12); var _b3b=dtB.getTime()-dtA.getTime(); var _b3c=_b3b/1000; var _b3d=_b3c/60; var _b3e=_b3d/60; var _b3f=_b3e/24; var _b40=_b3f/7; var _b41=0; with(dojo.date.dateParts){ switch(_b38){ case YEAR: _b41=_b39; 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+=(_b39*4); _b41=qB-qA; break; case MONTH: _b41=_b3a; break; case WEEK: _b41=parseInt(_b40); break; case DAY: _b41=_b3f; break; case WEEKDAY: var days=Math.round(_b3f); var _b47=parseInt(days/7); var mod=days%7; if(mod==0){ days=_b47*5; }else{ var adj=0; var aDay=dtA.getDay(); var bDay=dtB.getDay(); _b47=parseInt(days/7); mod=days%7; var _b4c=new Date(dtA); _b4c.setDate(_b4c.getDate()+(_b47*7)); var _b4d=_b4c.getDay(); if(_b3f>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 (_b4d+mod)>5: adj=-2; break; default: break; } }else{ if(_b3f<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 (_b4d+mod)<0: adj=2; break; default: break; } } } days+=adj; days-=(_b47*2); } _b41=days; break; case HOUR: _b41=_b3e; break; case MINUTE: _b41=_b3d; break; case SECOND: _b41=_b3c; break; case MILLISECOND: _b41=_b3b; break; default: break; } } return Math.round(_b41); }; dojo.provide("dojo.date.supplemental"); dojo.date.getFirstDayOfWeek=function(_b4e){ var _b4f={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}; _b4e=dojo.hostenv.normalizeLocale(_b4e); var _b50=_b4e.split("-")[1]; var dow=_b4f[_b50]; return (typeof dow=="undefined")?1:dow; }; dojo.date.getWeekend=function(_b52){ var _b53={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 _b54={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}; _b52=dojo.hostenv.normalizeLocale(_b52); var _b55=_b52.split("-")[1]; var _b56=_b53[_b55]; var end=_b54[_b55]; if(typeof _b56=="undefined"){ _b56=6; } if(typeof end=="undefined"){ end=0; } return {start:_b56,end:end}; }; dojo.date.isWeekend=function(_b58,_b59){ var _b5a=dojo.date.getWeekend(_b59); var day=(_b58||new Date()).getDay(); if(_b5a.end<_b5a.start){ _b5a.end+=7; if(day<_b5a.start){ day+=7; } } return day>=_b5a.start&&day<=_b5a.end; }; dojo.provide("dojo.i18n.common"); dojo.i18n.getLocalization=function(_b5c,_b5d,_b5e){ dojo.hostenv.preloadLocalizations(); _b5e=dojo.hostenv.normalizeLocale(_b5e); var _b5f=_b5e.split("-"); var _b60=[_b5c,"nls",_b5d].join("."); var _b61=dojo.hostenv.findModule(_b60,true); var _b62; for(var i=_b5f.length;i>0;i--){ var loc=_b5f.slice(0,i).join("_"); if(_b61[loc]){ _b62=_b61[loc]; break; } } if(!_b62){ _b62=_b61.ROOT; } if(_b62){ var _b65=function(){ }; _b65.prototype=_b62; return new _b65(); } dojo.raise("Bundle not found: "+_b5d+" in "+_b5c+" , locale="+_b5e); }; dojo.i18n.isLTR=function(_b66){ var lang=dojo.hostenv.normalizeLocale(_b66).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(_b69,_b6a){ if(typeof _b6a=="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(_b69,_b6a); } function formatPattern(_b6b,_b6c){ return _b6c.replace(/([a-z])\1*/ig,function(_b6d){ var s; var c=_b6d.charAt(0); var l=_b6d.length; var pad; var _b72=["abbr","wide","narrow"]; switch(c){ case "G": if(l>3){ dojo.unimplemented("Era format not implemented"); } s=info.eras[_b6b.getFullYear()<0?1:0]; break; case "y": s=_b6b.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((_b6b.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=_b6b.getMonth(); var _b75; switch(l){ case 1: case 2: s=m+1; pad=true; break; case 3: case 4: case 5: _b75=_b72[l-3]; break; } if(_b75){ var type=(c=="L")?"standalone":"format"; var prop=["months",type,_b75].join("-"); s=info[prop][m]; } break; case "w": var _b78=0; s=dojo.date.getWeekOfYear(_b6b,_b78); pad=true; break; case "d": s=_b6b.getDate(); pad=true; break; case "D": s=dojo.date.getDayOfYear(_b6b); pad=true; break; case "E": case "e": case "c": var d=_b6b.getDay(); var _b75; switch(l){ case 1: case 2: if(c=="e"){ var _b7a=dojo.date.getFirstDayOfWeek(_b6a.locale); d=(d-_b7a+7)%7; } if(c!="c"){ s=d+1; pad=true; break; } case 3: case 4: case 5: _b75=_b72[l-3]; break; } if(_b75){ var type=(c=="c")?"standalone":"format"; var prop=["days",type,_b75].join("-"); s=info[prop][d]; } break; case "a": var _b7b=(_b6b.getHours()<12)?"am":"pm"; s=info[_b7b]; break; case "h": case "H": case "K": case "k": var h=_b6b.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=_b6b.getMinutes(); pad=true; break; case "s": s=_b6b.getSeconds(); pad=true; break; case "S": s=Math.round(_b6b.getMilliseconds()*Math.pow(10,l-3)); break; case "v": case "z": s=dojo.date.getTimezoneName(_b6b); if(s){ break; } l=4; case "Z": var _b7d=_b6b.getTimezoneOffset(); var tz=[(_b7d<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_b7d)/60),2),dojo.string.pad(Math.abs(_b7d)%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(_b6d+" modifier not yet implemented"); s="?"; break; default: dojo.raise("dojo.date.format: invalid pattern char: "+_b6c); } if(pad){ s=dojo.string.pad(s,l); } return s; }); } _b6a=_b6a||{}; var _b7f=dojo.hostenv.normalizeLocale(_b6a.locale); var _b80=_b6a.formatLength||"full"; var info=dojo.date._getGregorianBundle(_b7f); var str=[]; var _b82=dojo.lang.curry(this,formatPattern,_b69); if(_b6a.selector!="timeOnly"){ var _b83=_b6a.datePattern||info["dateFormat-"+_b80]; if(_b83){ str.push(_processPattern(_b83,_b82)); } } if(_b6a.selector!="dateOnly"){ var _b84=_b6a.timePattern||info["timeFormat-"+_b80]; if(_b84){ str.push(_processPattern(_b84,_b82)); } } var _b85=str.join(" "); return _b85; }; dojo.date.parse=function(_b86,_b87){ _b87=_b87||{}; var _b88=dojo.hostenv.normalizeLocale(_b87.locale); var info=dojo.date._getGregorianBundle(_b88); var _b8a=_b87.formatLength||"full"; if(!_b87.selector){ _b87.selector="dateOnly"; } var _b8b=_b87.datePattern||info["dateFormat-"+_b8a]; var _b8c=_b87.timePattern||info["timeFormat-"+_b8a]; var _b8d; if(_b87.selector=="dateOnly"){ _b8d=_b8b; }else{ if(_b87.selector=="timeOnly"){ _b8d=_b8c; }else{ if(_b87.selector=="dateTime"){ _b8d=_b8b+" "+_b8c; }else{ var msg="dojo.date.parse: Unknown selector param passed: '"+_b87.selector+"'."; msg+=" Defaulting to date pattern."; dojo.debug(msg); _b8d=_b8b; } } } var _b8f=[]; var _b90=_processPattern(_b8d,dojo.lang.curry(this,_buildDateTimeRE,_b8f,info,_b87)); var _b91=new RegExp("^"+_b90+"$"); var _b92=_b91.exec(_b86); if(!_b92){ return null; } var _b93=["abbr","wide","narrow"]; var _b94=new Date(1972,0); var _b95={}; for(var i=1;i<_b92.length;i++){ var grp=_b8f[i-1]; var l=grp.length; var v=_b92[i]; switch(grp.charAt(0)){ case "y": if(l!=2){ _b94.setFullYear(v); _b95.year=v; }else{ if(v<100){ v=Number(v); var year=""+new Date().getFullYear(); var _b9b=year.substring(0,2)*100; var _b9c=Number(year.substring(2,4)); var _b9d=Math.min(_b9c+20,99); var num=(v<_b9d)?_b9b+v:_b9b-100+v; _b94.setFullYear(num); _b95.year=num; }else{ if(_b87.strict){ return null; } _b94.setFullYear(v); _b95.year=v; } } break; case "M": if(l>2){ if(!_b87.strict){ v=v.replace(/\./g,""); v=v.toLowerCase(); } var _b9f=info["months-format-"+_b93[l-3]].concat(); for(var j=0;j<_b9f.length;j++){ if(!_b87.strict){ _b9f[j]=_b9f[j].toLowerCase(); } if(v==_b9f[j]){ _b94.setMonth(j); _b95.month=j; break; } } if(j==_b9f.length){ dojo.debug("dojo.date.parse: Could not parse month name: '"+v+"'."); return null; } }else{ _b94.setMonth(v-1); _b95.month=v-1; } break; case "E": case "e": if(!_b87.strict){ v=v.toLowerCase(); } var days=info["days-format-"+_b93[l-3]].concat(); for(var j=0;j23){ dojo.debug("dojo.date.parse: Illegal hours value"); return null; } _b94.setHours(v); break; case "m": _b94.setMinutes(v); break; case "s": _b94.setSeconds(v); break; case "S": _b94.setMilliseconds(v); break; default: dojo.unimplemented("dojo.date.parse: unsupported pattern char="+grp.charAt(0)); } } if(_b95.year&&_b94.getFullYear()!=_b95.year){ dojo.debug("Parsed year: '"+_b94.getFullYear()+"' did not match input year: '"+_b95.year+"'."); return null; } if(_b95.month&&_b94.getMonth()!=_b95.month){ dojo.debug("Parsed month: '"+_b94.getMonth()+"' did not match input month: '"+_b95.month+"'."); return null; } if(_b95.date&&_b94.getDate()!=_b95.date){ dojo.debug("Parsed day of month: '"+_b94.getDate()+"' did not match input day of month: '"+_b95.date+"'."); return null; } return _b94; }; function _processPattern(_ba5,_ba6,_ba7,_ba8){ var _ba9=function(x){ return x; }; _ba6=_ba6||_ba9; _ba7=_ba7||_ba9; _ba8=_ba8||_ba9; var _bab=_ba5.match(/(''|[^'])+/g); var _bac=false; for(var i=0;i<_bab.length;i++){ if(!_bab[i]){ _bab[i]=""; }else{ _bab[i]=(_bac?_ba7:_ba6)(_bab[i]); _bac=!_bac; } } return _ba8(_bab.join("")); } function _buildDateTimeRE(_bae,info,_bb0,_bb1){ return _bb1.replace(/([a-z])\1*/ig,function(_bb2){ var s; var c=_bb2.charAt(0); var l=_bb2.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=_bb0.am||info.am||"AM"; var pm=_bb0.pm||info.pm||"PM"; if(_bb0.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="+_bb1); } if(_bae){ _bae.push(_bb2); } return "\\s*("+s+")\\s*"; }); } })(); dojo.date.strftime=function(_bb8,_bb9,_bba){ var _bbb=null; function _(s,n){ return dojo.string.pad(s,n||2,_bbb||"0"); } var info=dojo.date._getGregorianBundle(_bba); function $(_bbf){ switch(_bbf){ case "a": return dojo.date.getDayShortName(_bb8,_bba); case "A": return dojo.date.getDayName(_bb8,_bba); case "b": case "h": return dojo.date.getMonthShortName(_bb8,_bba); case "B": return dojo.date.getMonthName(_bb8,_bba); case "c": return dojo.date.format(_bb8,{locale:_bba}); case "C": return _(Math.floor(_bb8.getFullYear()/100)); case "d": return _(_bb8.getDate()); case "D": return $("m")+"/"+$("d")+"/"+$("y"); case "e": if(_bbb==null){ _bbb=" "; } return _(_bb8.getDate()); case "f": if(_bbb==null){ _bbb=" "; } return _(_bb8.getMonth()+1); case "g": break; case "G": dojo.unimplemented("unimplemented modifier 'G'"); break; case "F": return $("Y")+"-"+$("m")+"-"+$("d"); case "H": return _(_bb8.getHours()); case "I": return _(_bb8.getHours()%12||12); case "j": return _(dojo.date.getDayOfYear(_bb8),3); case "k": if(_bbb==null){ _bbb=" "; } return _(_bb8.getHours()); case "l": if(_bbb==null){ _bbb=" "; } return _(_bb8.getHours()%12||12); case "m": return _(_bb8.getMonth()+1); case "M": return _(_bb8.getMinutes()); case "n": return "\n"; case "p": return info[_bb8.getHours()<12?"am":"pm"]; case "r": return $("I")+":"+$("M")+":"+$("S")+" "+$("p"); case "R": return $("H")+":"+$("M"); case "S": return _(_bb8.getSeconds()); case "t": return "\t"; case "T": return $("H")+":"+$("M")+":"+$("S"); case "u": return String(_bb8.getDay()||7); case "U": return _(dojo.date.getWeekOfYear(_bb8)); case "V": return _(dojo.date.getIsoWeekOfYear(_bb8)); case "W": return _(dojo.date.getWeekOfYear(_bb8,1)); case "w": return String(_bb8.getDay()); case "x": return dojo.date.format(_bb8,{selector:"dateOnly",locale:_bba}); case "X": return dojo.date.format(_bb8,{selector:"timeOnly",locale:_bba}); case "y": return _(_bb8.getFullYear()%100); case "Y": return String(_bb8.getFullYear()); case "z": var _bc0=_bb8.getTimezoneOffset(); return (_bc0>0?"-":"+")+_(Math.floor(Math.abs(_bc0)/60))+":"+_(Math.abs(_bc0)%60); case "Z": return dojo.date.getTimezoneName(_bb8); case "%": return "%"; } } var _bc1=""; var i=0; var _bc3=0; var _bc4=null; while((_bc3=_bb9.indexOf("%",i))!=-1){ _bc1+=_bb9.substring(i,_bc3++); switch(_bb9.charAt(_bc3++)){ case "_": _bbb=" "; break; case "-": _bbb=""; break; case "0": _bbb="0"; break; case "^": _bc4="upper"; break; case "*": _bc4="lower"; break; case "#": _bc4="swap"; break; default: _bbb=null; _bc3--; break; } var _bc5=$(_bb9.charAt(_bc3++)); switch(_bc4){ case "upper": _bc5=_bc5.toUpperCase(); break; case "lower": _bc5=_bc5.toLowerCase(); break; case "swap": var _bc6=_bc5.toLowerCase(); var _bc7=""; var j=0; var ch=""; while(j<_bc5.length){ ch=_bc5.charAt(j); _bc7+=(ch==_bc6.charAt(j))?ch.toUpperCase():ch.toLowerCase(); j++; } _bc5=_bc7; break; default: break; } _bc4=null; _bc1+=_bc5; i=_bc3; } _bc1+=_bb9.substring(i); return _bc1; }; (function(){ var _bca=[]; dojo.date.addCustomFormats=function(_bcb,_bcc){ _bca.push({pkg:_bcb,name:_bcc}); }; dojo.date._getGregorianBundle=function(_bcd){ var _bce={}; dojo.lang.forEach(_bca,function(desc){ var _bd0=dojo.i18n.getLocalization(desc.pkg,desc.name,_bcd); _bce=dojo.lang.mixin(_bce,_bd0); },this); return _bce; }; })(); dojo.date.addCustomFormats("dojo.i18n.calendar","gregorian"); dojo.date.addCustomFormats("dojo.i18n.calendar","gregorianExtras"); dojo.date.getNames=function(item,type,use,_bd4){ var _bd5; var _bd6=dojo.date._getGregorianBundle(_bd4); var _bd7=[item,use,type]; if(use=="standAlone"){ _bd5=_bd6[_bd7.join("-")]; } _bd7[1]="format"; return (_bd5||_bd6[_bd7.join("-")]).concat(); }; dojo.date.getDayName=function(_bd8,_bd9){ return dojo.date.getNames("days","wide","format",_bd9)[_bd8.getDay()]; }; dojo.date.getDayShortName=function(_bda,_bdb){ return dojo.date.getNames("days","abbr","format",_bdb)[_bda.getDay()]; }; dojo.date.getMonthName=function(_bdc,_bdd){ return dojo.date.getNames("months","wide","format",_bdd)[_bdc.getMonth()]; }; dojo.date.getMonthShortName=function(_bde,_bdf){ return dojo.date.getNames("months","abbr","format",_bdf)[_bde.getMonth()]; }; dojo.date.toRelativeString=function(_be0){ var now=new Date(); var diff=(now-_be0)/1000; var end=" ago"; var _be4=false; if(diff<0){ _be4=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 _be4?"Tomorrow":"Yesterday"; }else{ return diff+" days"+end; } } return dojo.date.format(_be0); }; dojo.date.toSql=function(_be5,_be6){ return dojo.date.strftime(_be5,"%F"+!_be6?" %T":""); }; dojo.date.fromSql=function(_be7){ var _be8=_be7.split(/[\- :]/g); while(_be8.length<6){ _be8.push(0); } return new Date(_be8[0],(parseInt(_be8[1],10)-1),_be8[2],_be8[3],_be8[4],_be8[5]); }; dojo.provide("dojo.date.serialize"); dojo.date.setIso8601=function(_be9,_bea){ var _beb=(_bea.indexOf("T")==-1)?_bea.split(" "):_bea.split("T"); _be9=dojo.date.setIso8601Date(_be9,_beb[0]); if(_beb.length==2){ _be9=dojo.date.setIso8601Time(_be9,_beb[1]); } return _be9; }; dojo.date.fromIso8601=function(_bec){ return dojo.date.setIso8601(new Date(0,0),_bec); }; dojo.date.setIso8601Date=function(_bed,_bee){ var _bef="^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|"+"(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$"; var d=_bee.match(new RegExp(_bef)); if(!d){ dojo.debug("invalid date string: "+_bee); return null; } var year=d[1]; var _bf2=d[4]; var date=d[6]; var _bf4=d[8]; var week=d[10]; var _bf6=d[12]?d[12]:1; _bed.setFullYear(year); if(_bf4){ _bed.setMonth(0); _bed.setDate(Number(_bf4)); }else{ if(week){ _bed.setMonth(0); _bed.setDate(1); var gd=_bed.getDay(); var day=gd?gd:7; var _bf9=Number(_bf6)+(7*Number(week)); if(day<=4){ _bed.setDate(_bf9+1-day); }else{ _bed.setDate(_bf9+8-day); } }else{ if(_bf2){ _bed.setDate(1); _bed.setMonth(_bf2-1); } if(date){ _bed.setDate(date); } } } return _bed; }; dojo.date.fromIso8601Date=function(_bfa){ return dojo.date.setIso8601Date(new Date(0,0),_bfa); }; dojo.date.setIso8601Time=function(_bfb,_bfc){ var _bfd="Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$"; var d=_bfc.match(new RegExp(_bfd)); var _bff=0; if(d){ if(d[0]!="Z"){ _bff=(Number(d[3])*60)+Number(d[5]); _bff*=((d[2]=="-")?1:-1); } _bff-=_bfb.getTimezoneOffset(); _bfc=_bfc.substr(0,_bfc.length-d[0].length); } var _c00="^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(.([0-9]+))?)?)?$"; d=_bfc.match(new RegExp(_c00)); if(!d){ dojo.debug("invalid time string: "+_bfc); return null; } var _c01=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; _bfb.setHours(_c01); _bfb.setMinutes(mins); _bfb.setSeconds(secs); _bfb.setMilliseconds(ms); if(_bff!==0){ _bfb.setTime(_bfb.getTime()+_bff*60000); } return _bfb; }; dojo.date.fromIso8601Time=function(_c05){ return dojo.date.setIso8601Time(new Date(0,0),_c05); }; dojo.date.toRfc3339=function(_c06,_c07){ if(!_c06){ _c06=new Date(); } var _=dojo.string.pad; var _c09=[]; if(_c07!="timeOnly"){ var date=[_(_c06.getFullYear(),4),_(_c06.getMonth()+1,2),_(_c06.getDate(),2)].join("-"); _c09.push(date); } if(_c07!="dateOnly"){ var time=[_(_c06.getHours(),2),_(_c06.getMinutes(),2),_(_c06.getSeconds(),2)].join(":"); var _c0c=_c06.getTimezoneOffset(); time+=(_c0c>0?"-":"+")+_(Math.floor(Math.abs(_c0c)/60),2)+":"+_(Math.abs(_c0c)%60,2); _c09.push(time); } return _c09.join("T"); }; dojo.date.fromRfc3339=function(_c0d){ if(_c0d.indexOf("Tany")!=-1){ _c0d=_c0d.replace("Tany",""); } var _c0e=new Date(); return dojo.date.setIso8601(_c0e,_c0d); }; dojo.provide("dojo.widget.DatePicker"); dojo.widget.defineWidget("dojo.widget.DatePicker",dojo.widget.HtmlWidget,{value:"",name:"",displayWeeks:6,adjustWeeks:false,startDate:"1492-10-12",endDate:"2941-10-12",weekStartsOn:"",staticDisplay:false,dayWidth:"narrow",classNames:{previous:"previousMonth",disabledPrevious:"previousMonthDisabled",current:"currentMonth",disabledCurrent:"currentMonthDisabled",next:"nextMonth",disabledNext:"nextMonthDisabled",currentDate:"currentDate",selectedDate:"selectedDate"},templateString:"
\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\"↑\"\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t
\r\n
\r\n",templateCssString:".datePickerContainer {\r\n\twidth:164px; /* needed for proper user styling */\r\n}\r\n\r\n.calendarContainer {\r\n/*\tborder:1px solid #566f8f;*/\r\n}\r\n\r\n.calendarBodyContainer {\r\n\twidth:100%; /* needed for the explode effect (explain?) */\r\n\tbackground: #7591bc url(\"images/dpBg.gif\") top left repeat-x;\r\n}\r\n\r\n.calendarBodyContainer thead tr td {\r\n\tcolor:#293a4b;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n\tpadding:0.25em;\r\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\r\n}\r\n\r\n.calendarBodyContainer tbody tr td {\r\n\tcolor:#fff;\r\n\tfont:bold 0.7em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n\tpadding:0.4em;\r\n\tbackground: url(\"images/dpVertLine.gif\") top right repeat-y;\r\n\tcursor:pointer;\r\n\tcursor:hand;\r\n}\r\n\r\n\r\n.monthWrapper {\r\n\tpadding-bottom:2px;\r\n\tbackground: url(\"images/dpHorizLine.gif\") bottom left repeat-x;\r\n}\r\n\r\n.monthContainer {\r\n\twidth:100%;\r\n}\r\n\r\n.monthLabelContainer {\r\n\ttext-align:center;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\tbackground: url(\"images/dpMonthBg.png\") repeat-x top left !important;\r\n\tcolor:#293a4b;\r\n\tpadding:0.25em;\r\n}\r\n\r\n.monthCurve {\r\n\twidth:12px;\r\n}\r\n\r\n.monthCurveTL {\r\n\tbackground: url(\"images/dpCurveTL.png\") no-repeat top left !important;\r\n}\r\n\r\n.monthCurveTR {\r\n\t\tbackground: url(\"images/dpCurveTR.png\") no-repeat top right !important;\r\n}\r\n\r\n\r\n.yearWrapper {\r\n\tbackground: url(\"images/dpHorizLineFoot.gif\") top left repeat-x;\r\n\tpadding-top:2px;\r\n}\r\n\r\n.yearContainer {\r\n\twidth:100%;\r\n}\r\n\r\n.yearContainer td {\r\n\tbackground:url(\"images/dpYearBg.png\") top left repeat-x;\r\n}\r\n\r\n.yearContainer .yearLabel {\r\n\tmargin:0;\r\n\tpadding:0.45em 0 0.45em 0;\r\n\tcolor:#fff;\r\n\tfont:bold 0.75em Helvetica, Arial, Verdana, sans-serif;\r\n\ttext-align:center;\r\n}\r\n\r\n.curveBL {\r\n\tbackground: url(\"images/dpCurveBL.png\") bottom left no-repeat !important;\r\n\twidth:9px !important;\r\n\tpadding:0;\r\n\tmargin:0;\r\n}\r\n\r\n.curveBR {\r\n\tbackground: url(\"images/dpCurveBR.png\") bottom right no-repeat !important;\r\n\twidth:9px !important;\r\n\tpadding:0;\r\n\tmargin:0;\r\n}\r\n\r\n\r\n.previousMonth {\r\n\tbackground-color:#6782a8 !important;\r\n}\r\n\r\n.previousMonthDisabled {\r\n\tbackground-color:#a4a5a6 !important;\r\n\tcursor:default !important\r\n}\r\n.currentMonth {\r\n}\r\n\r\n.currentMonthDisabled {\r\n\tbackground-color:#bbbbbc !important;\r\n\tcursor:default !important\r\n}\r\n.nextMonth {\r\n\tbackground-color:#6782a8 !important;\r\n}\r\n.nextMonthDisabled {\r\n\tbackground-color:#a4a5a6 !important;\r\n\tcursor:default !important;\r\n}\r\n\r\n.currentDate {\r\n\ttext-decoration:underline;\r\n\tfont-style:italic;\r\n}\r\n\r\n.selectedDate {\r\n\tbackground-color:#fff !important;\r\n\tcolor:#6782a8 !important;\r\n}\r\n\r\n.yearLabel .selectedYear {\r\n\tpadding:0.2em;\r\n\tbackground-color:#9ec3fb !important;\r\n}\r\n\r\n.nextYear, .previousYear {\r\n\tcursor:pointer;cursor:hand;\r\n\tpadding:0;\r\n}\r\n\r\n.nextYear {\r\n\tmargin:0 0 0 0.55em;\r\n}\r\n\r\n.previousYear {\r\n\tmargin:0 0.55em 0 0;\r\n}\r\n\r\n.incrementControl {\r\n\tcursor:pointer;cursor:hand;\r\n\twidth:1em;\r\n}\r\n\r\n.increase {\r\n\tfloat:right;\r\n}\r\n\r\n.decrease {\r\n\tfloat:left;\r\n}\r\n\r\n.lastColumn {\r\n\tbackground-image:none !important;\r\n}\r\n\r\n\r\n",templateCssPath:dojo.uri.moduleUri("dojo.widget","templates/DatePicker.css"),postMixInProperties:function(){ dojo.widget.DatePicker.superclass.postMixInProperties.apply(this,arguments); if(!this.weekStartsOn){ this.weekStartsOn=dojo.date.getFirstDayOfWeek(this.lang); } this.today=new Date(); this.today.setHours(0,0,0,0); if(typeof (this.value)=="string"&&this.value.toLowerCase()=="today"){ this.value=new Date(); }else{ if(this.value&&(typeof this.value=="string")&&(this.value.split("-").length>2)){ this.value=dojo.date.fromRfc3339(this.value); this.value.setHours(0,0,0,0); } } },fillInTemplate:function(args,frag){ dojo.widget.DatePicker.superclass.fillInTemplate.apply(this,arguments); var _c11=this.getFragNodeRef(frag); dojo.html.copyStyle(this.domNode,_c11); this.weekTemplate=dojo.dom.removeNode(this.calendarWeekTemplate); this._preInitUI(this.value?this.value:this.today,false,true); var _c12=dojo.lang.unnest(dojo.date.getNames("days",this.dayWidth,"standAlone",this.lang)); if(this.weekStartsOn>0){ for(var i=0;ithis.endDate){ _c17=new Date((_c17days){ this._preInitUI(this.startDate,true,false); _c1a=new Date(this.firstDay); } this.curMonth=new Date(_c1a); this.curMonth.setDate(_c1a.getDate()+6); this.curMonth.setDate(1); var _c1d=(_c1a.getMonth()==this.curMonth.getMonth())?"current":"previous"; } if(_c19){ this._initUI(days); } },_initUI:function(days){ dojo.dom.removeChildren(this.calendarDatesContainerNode); for(var i=0;ithis.endDate){ _c2a=_c2c=_c2e=false; } if(_c2b&&add(d,DAY,-1)this.endDate){ _c2c=_c2e=false; } if(_c2d&&add(d2,YEAR,-1)this.endDate){ _c2e=false; } } function enableControl(node,_c31){ dojo.html.setVisibility(node,_c31?"":"hidden"); } enableControl(this.decreaseWeekNode,_c29); enableControl(this.increaseWeekNode,_c2a); enableControl(this.decreaseMonthNode,_c2b); enableControl(this.increaseMonthNode,_c2c); enableControl(this.previousYearLabelNode,_c2d); enableControl(this.nextYearLabelNode,_c2e); },_incrementWeek:function(evt){ var d=new Date(this.firstDay); switch(evt.target){ case this.increaseWeekNode.getElementsByTagName("img").item(0): case this.increaseWeekNode: var _c34=dojo.date.add(d,dojo.date.dateParts.WEEK,1); if(_c34=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 _c37=new Date(this.firstDay); switch(evt.currentTarget){ case this.increaseMonthNode.getElementsByTagName("img").item(0): case this.increaseMonthNode: _c37=dojo.date.add(_c37,dojo.date.dateParts.DAY,this.displayWeeks*7); if(_c37this.startDate){ d=dojo.date.add(d,dojo.date.dateParts.MONTH,-1); }else{ var _c39=true; } break; } if(_c39){ d=new Date(this.startDate); }else{ if(_c38){ d=new Date(this.endDate); } } this._preInitUI(d,false,true); },_incrementYear:function(evt){ var year=this.curMonth.getFullYear(); var _c3c=new Date(this.firstDay); switch(evt.target){ case this.nextYearLabelNode: _c3c=dojo.date.add(_c3c,dojo.date.dateParts.YEAR,1); if(_c3cthis.startDate){ year--; }else{ var _c3e=true; } break; } var d; if(_c3e){ d=new Date(this.startDate); }else{ if(_c3d){ 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(_c43){ this.monthLabelNode.innerHTML=dojo.date.getNames("months","wide","standAlone",this.lang)[_c43]; },_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,_c49){ var _c4a=this.classNames[_c49]; if((!this.selectedIsUsed&&this.value)&&(Number(date)==Number(this.value))){ _c4a=this.classNames.selectedDate+" "+_c4a; this.selectedIsUsed=true; } if((!this.currentIsUsed)&&(Number(date)==Number(this.today))){ _c4a=_c4a+" "+this.classNames.currentDate; this.currentIsUsed=true; } return _c4a; },onClick:function(evt){ dojo.event.browser.stopEvent(evt); },_handleUiClick:function(evt){ var _c4d=evt.target; if(_c4d.nodeType!=dojo.dom.ELEMENT_NODE){ _c4d=_c4d.parentNode; } dojo.event.browser.stopEvent(evt); this.selectedIsUsed=this.todayIsUsed=false; if(dojo.html.hasClass(_c4d,this.classNames["disabledPrevious"])||dojo.html.hasClass(_c4d,this.classNames["disabledCurrent"])||dojo.html.hasClass(_c4d,this.classNames["disabledNext"])){ return; } this.clickedNode=_c4d; this.setDate(new Date(Number(dojo.html.getAttribute(_c4d,"djDateValue")))); },onValueChanged:function(date){ },_isDisabledDate:function(_c4f){ if(_c4fthis.endDate){ return true; } return this.isDisabledDate(_c4f,this.lang); },isDisabledDate:function(_c50,_c51){ return false; },_initFirstDay:function(_c52,adj){ var d=new Date(_c52); if(!adj){ d.setDate(1); } d.setDate(d.getDate()-this._getAdjustedDay(d,this.weekStartsOn)); d.setHours(0,0,0,0); return d; },_getAdjustedDay:function(_c55){ var days=[0,1,2,3,4,5,6]; if(this.weekStartsOn>0){ for(var i=0;ithis.datePicker.endDate){ this.inputNode.value=""; } this._syncValueNode(); this.onValueChanged(this.getDate()); this.hideContainer(); },onValueChanged:function(_c61){ },onInputChange:function(){ var _c62=dojo.string.trim(this.inputNode.value); if(_c62){ var _c63=dojo.date.parse(_c62,{formatLength:this.formatLength,datePattern:this.displayFormat,selector:"dateOnly",locale:this.lang}); if(!this.datePicker._isDisabledDate(_c63)){ this.setDate(_c63); } }else{ if(_c62==""){ this.datePicker.setDate(""); } this.valueNode.value=_c62; } if(_c62){ this._updateText(); } },_syncValueNode:function(){ var date=this.datePicker.value; var _c65=""; switch(this.saveFormat.toLowerCase()){ case "rfc": case "iso": case "": _c65=dojo.date.toRfc3339(date,"dateOnly"); break; case "posix": case "unix": _c65=Number(date); break; default: if(date){ _c65=dojo.date.format(date,{datePattern:this.saveFormat,selector:"dateOnly",locale:this.lang}); } } this.valueNode.value=_c65; },destroy:function(_c66){ this.datePicker.destroy(_c66); dojo.widget.DropdownDatePicker.superclass.destroy.apply(this,arguments); }}); dojo.kwCompoundRequire({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"],dashboard:["dojo.dnd.HtmlDragAndDrop"]}); dojo.provide("dojo.dnd.*"); if(!this["dojo"]){ alert("\"dojo/__package__.js\" is now located at \"dojo/dojo.js\". Please update your includes accordingly"); }