/* 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; function dj_undef(_1,_2){ if(_2==null){ _2=dojo.global(); } return (typeof _2[_1]=="undefined"); } if(dj_undef("djConfig",this)){ var djConfig={}; } if(dj_undef("dojo",this)){ var dojo={}; } dojo._currentContext=this; if(!dj_undef("document",dojo._currentContext)){ dojo._currentDocument=this.document; } dojo.locale=djConfig.locale; dojo.version={major:0,minor:0,patch:0,flag:"dev",revision:Number("$Rev: 4898 $".match(/[0-9]+/)[0]),toString:function(){ with(dojo.version){ return major+"."+minor+"."+patch+flag+" ("+revision+")"; } }}; dojo.evalProp=function(_3,_4,_5){ return (_4&&!dj_undef(_3,_4)?_4[_3]:(_5?(_4[_3]={}):undefined)); }; dojo.parseObjPath=function(_6,_7,_8){ var _9=(_7!=null?_7:dj_global); var _a=_6.split("."); var _b=_a.pop(); for(var i=0,l=_a.length;i1){ dh.modulesLoadedListeners.push(function(){ obj[_52](); }); } } if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){ dh.callLoaded(); } }; dojo.addOnUnload=function(obj,_55){ var dh=dojo.hostenv; if(arguments.length==1){ dh.unloadListeners.push(obj); }else{ if(arguments.length>1){ dh.unloadListeners.push(function(){ obj[_55](); }); } } }; dojo.hostenv.modulesLoaded=function(){ if(this.post_load_){ return; } if((this.loadUriStack.length==0)&&(this.getTextStack.length==0)){ if(this.inFlightCount>0){ dojo.debug("files still in flight!"); return; } dojo.hostenv.callLoaded(); } }; dojo.hostenv.callLoaded=function(){ if(typeof setTimeout=="object"){ setTimeout("dojo.hostenv.loaded();",0); }else{ dojo.hostenv.loaded(); } }; dojo.hostenv.getModuleSymbols=function(_57){ var _58=_57.split("."); for(var i=_58.length-1;i>0;i--){ var _5a=_58.slice(0,i).join("."); var _5b=this.getModulePrefix(_5a); if(_5b!=_5a){ _58.splice(0,i,_5b); break; } } return _58; }; dojo._namespaces={}; (function(){ var _5c={}; var _5d={}; dojo.getNamespace=function(_5e){ if(!dojo._namespaces[_5e]&&!_5d[_5e]){ var req=dojo.require; var _60="dojo.namespaces."+_5e; if(!_5c[_60]){ _5c[_60]=true; req(_60,false,true); _5c[_60]=false; if(!dojo._namespaces[_5e]){ _5d[_5e]=true; } } } return dojo._namespaces[_5e]; }; })(); dojo.hostenv._global_omit_module_check=false; dojo.hostenv.loadModule=function(_61,_62,_63){ if(!_61){ return; } _63=this._global_omit_module_check||_63; var _64=this.findModule(_61,false); if(_64){ return _64; } if(dj_undef(_61,this.loading_modules_)){ this.addedToLoadingCount.push(_61); } this.loading_modules_[_61]=1; var _65=_61.replace(/\./g,"/")+".js"; var _66=_61.split("."); if(djConfig.autoLoadNamespace){ dojo.getNamespace(_66[0]); } var _67=this.getModuleSymbols(_61); var _68=((_67[0].charAt(0)!="/")&&(!_67[0].match(/^\w+:/))); var _69=_67[_67.length-1]; if(_69=="*"){ _61=(_66.slice(0,-1)).join("."); while(_67.length){ _67.pop(); _67.push(this.pkgFileName); _65=_67.join("/")+".js"; if(_68&&(_65.charAt(0)=="/")){ _65=_65.slice(1); } ok=this.loadPath(_65,((!_63)?_61:null)); if(ok){ break; } _67.pop(); } }else{ _65=_67.join("/")+".js"; _61=_66.join("."); var ok=this.loadPath(_65,((!_63)?_61:null)); if((!ok)&&(!_62)){ _67.pop(); while(_67.length){ _65=_67.join("/")+".js"; ok=this.loadPath(_65,((!_63)?_61:null)); if(ok){ break; } _67.pop(); _65=_67.join("/")+"/"+this.pkgFileName+".js"; if(_68&&(_65.charAt(0)=="/")){ _65=_65.slice(1); } ok=this.loadPath(_65,((!_63)?_61:null)); if(ok){ break; } } } if((!ok)&&(!_63)){ dojo.raise("Could not load '"+_61+"'; last tried '"+_65+"'"); } } if(!_63&&!this["isXDomain"]){ _64=this.findModule(_61,false); if(!_64){ dojo.raise("symbol '"+_61+"' is not defined after loading '"+_65+"'"); } } return _64; }; dojo.hostenv.startPackage=function(_6b){ var _6c=dojo.evalObjPath((_6b.split(".").slice(0,-1)).join(".")); this.loaded_modules_[(new String(_6b)).toLowerCase()]=_6c; var _6d=_6b.split(/\./); if(_6d[_6d.length-1]=="*"){ _6d.pop(); } return dojo.evalObjPath(_6d.join("."),true); }; dojo.hostenv.findModule=function(_6e,_6f){ var lmn=(new String(_6e)).toLowerCase(); if(this.loaded_modules_[lmn]){ return this.loaded_modules_[lmn]; } var _71=dojo.evalObjPath(_6e); if((_6e)&&(typeof _71!="undefined")&&(_71)){ this.loaded_modules_[lmn]=_71; return _71; } if(_6f){ dojo.raise("no loaded module named '"+_6e+"'"); } return null; }; dojo.kwCompoundRequire=function(_72){ var _73=_72["common"]||[]; var _74=(_72[dojo.hostenv.name_])?_73.concat(_72[dojo.hostenv.name_]||[]):_73.concat(_72["default"]||[]); for(var x=0;x<_74.length;x++){ var _76=_74[x]; if(_76.constructor==Array){ dojo.hostenv.loadModule.apply(dojo.hostenv,_76); }else{ dojo.hostenv.loadModule(_76); } } }; dojo.require=function(){ dojo.hostenv.loadModule.apply(dojo.hostenv,arguments); }; dojo.requireIf=function(){ if((arguments[0]===true)||(arguments[0]=="common")||(arguments[0]&&dojo.render[arguments[0]].capable)){ var _77=[]; for(var i=1;i1){ var _81=_80[1]; var _82=_81.split("&"); for(var x in _82){ var sp=_82[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 _86=document.getElementsByTagName("script"); var _87=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i; for(var i=0;i<_86.length;i++){ var src=_86[i].getAttribute("src"); if(!src){ continue; } var m=src.match(_87); if(m){ var _8b=src.substring(0,m.index); if(src.indexOf("bootstrap1")>-1){ _8b+="../"; } if(!this["djConfig"]){ djConfig={}; } if(djConfig["baseScriptUri"]==""){ djConfig["baseScriptUri"]=_8b; } if(djConfig["baseRelativePath"]==""){ djConfig["baseRelativePath"]=_8b; } 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 _93=dua.indexOf("Gecko"); drh.mozilla=drh.moz=(_93>=0)&&(!drh.khtml); if(drh.mozilla){ drh.geckoVersion=dua.substring(_93+6,_93+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; 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 _94=window["document"]; var tdi=_94["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; } } })(); 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 _98=null; var _99=null; try{ _98=new XMLHttpRequest(); } catch(e){ } if(!_98){ for(var i=0;i<3;++i){ var _9b=dojo.hostenv._XMLHTTP_PROGIDS[i]; try{ _98=new ActiveXObject(_9b); } catch(e){ _99=e; } if(_98){ dojo.hostenv._XMLHTTP_PROGIDS=[_9b]; break; } } } if(!_98){ return dojo.raise("XMLHTTP not available",_99); } return _98; }; dojo.hostenv._blockAsync=false; dojo.hostenv.getText=function(uri,_9d,_9e){ if(!_9d){ this._blockAsync=true; } var _9f=this.getXmlhttpObject(); function isDocumentOk(_a0){ var _a1=_a0["status"]; return Boolean((!_a1)||((200<=_a1)&&(300>_a1))||(_a1==304)); } if(_9d){ var _a2=this,timer=null,gbl=dojo.global(); var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport"); _9f.onreadystatechange=function(){ if(timer){ gbl.clearTimeout(timer); timer=null; } if(_a2._blockAsync||(xhr&&xhr._blockAsync)){ timer=gbl.setTimeout(function(){ _9f.onreadystatechange.apply(this); },10); }else{ if(4==_9f.readyState){ if(isDocumentOk(_9f)){ _9d(_9f.responseText); } } } }; } _9f.open("GET",uri,_9d?true:false); try{ _9f.send(null); if(_9d){ return null; } if(!isDocumentOk(_9f)){ var err=Error("Unable to load "+uri+" status:"+_9f.status); err.status=_9f.status; err.responseText=_9f.responseText; throw err; } } catch(e){ this._blockAsync=false; if((_9e)&&(!_9d)){ return null; }else{ throw e; } } this._blockAsync=false; return _9f.responseText; }; dojo.hostenv.defaultDebugContainerId="dojoDebug"; dojo.hostenv._println_buffer=[]; dojo.hostenv._println_safe=false; dojo.hostenv.println=function(_a5){ if(!dojo.hostenv._println_safe){ dojo.hostenv._println_buffer.push(_a5); }else{ try{ var _a6=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId); if(!_a6){ _a6=dojo.body(); } var div=document.createElement("div"); div.appendChild(document.createTextNode(_a5)); _a6.appendChild(div); } catch(e){ try{ document.write("
"+_a5+"
"); } catch(e2){ window.status=_a5; } } } }; 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(_a8,_a9,fp,_ab){ var _ac=_a8["on"+_a9]||function(){ }; _a8["on"+_a9]=function(){ fp.apply(_a8,arguments); _ac.apply(_a8,arguments); }; return true; } dj_addNodeEvtHdlr(window,"load",function(){ if(arguments.callee.initialized){ return; } arguments.callee.initialized=true; var _ad=function(){ if(dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }; if(dojo.hostenv.inFlightCount==0){ _ad(); dojo.hostenv.modulesLoaded(); }else{ dojo.addOnLoad(_ad); } }); dj_addNodeEvtHdlr(window,"unload",function(){ dojo.hostenv.unloaded(); }); dojo.hostenv.makeWidgets=function(){ var _ae=[]; if(djConfig.searchIds&&djConfig.searchIds.length>0){ _ae=_ae.concat(djConfig.searchIds); } if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){ _ae=_ae.concat(dojo.hostenv.searchIds); } if((djConfig.parseWidgets)||(_ae.length>0)){ if(dojo.evalObjPath("dojo.widget.Parse")){ var _af=new dojo.xml.Parse(); if(_ae.length>0){ for(var x=0;x<_ae.length;x++){ var _b1=document.getElementById(_ae[x]); if(!_b1){ continue; } var _b2=_af.parseElement(_b1,null,true); dojo.widget.getParser().createComponents(_b2); } }else{ if(djConfig.parseWidgets){ var _b2=_af.parseElement(dojo.body(),null,true); dojo.widget.getParser().createComponents(_b2); } } } } }; 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(){ }; dojo.byId=function(id,doc){ if(id&&(typeof id=="string"||id instanceof String)){ if(!doc){ doc=dojo.doc(); } return doc.getElementById(id); } return id; }; (function(){ if(typeof dj_usingBootstrap!="undefined"){ return; } var _b5=false; var _b6=false; var _b7=false; if((typeof this["load"]=="function")&&((typeof this["Packages"]=="function")||(typeof this["Packages"]=="object"))){ _b5=true; }else{ if(typeof this["load"]=="function"){ _b6=true; }else{ if(window.widget){ _b7=true; } } } var _b8=[]; if((this["djConfig"])&&((djConfig["isDebug"])||(djConfig["debugAtAllCosts"]))){ _b8.push("debug.js"); } if((this["djConfig"])&&(djConfig["debugAtAllCosts"])&&(!_b5)&&(!_b7)){ _b8.push("browser_debug.js"); } if((this["djConfig"])&&(djConfig["compat"])){ _b8.push("compat/"+djConfig["compat"]+".js"); } var _b9=djConfig["baseScriptUri"]; if((this["djConfig"])&&(djConfig["baseLoaderUri"])){ _b9=djConfig["baseLoaderUri"]; } for(var x=0;x<_b8.length;x++){ var _bb=_b9+"src/"+_b8[x]; if(_b5||_b6){ load(_bb); }else{ try{ document.write(""); } catch(e){ var _bc=document.createElement("script"); _bc.src=_bb; document.getElementsByTagName("head")[0].appendChild(_bc); } } } })(); dojo.normalizeLocale=function(_bd){ return _bd?_bd.toLowerCase():dojo.locale; }; dojo.searchLocalePath=function(_be,_bf,_c0){ _be=dojo.normalizeLocale(_be); var _c1=_be.split("-"); var _c2=[]; for(var i=_c1.length;i>0;i--){ _c2.push(_c1.slice(0,i).join("-")); } _c2.push(false); if(_bf){ _c2.reverse(); } for(var j=_c2.length-1;j>=0;j--){ var loc=_c2[j]||"ROOT"; var _c6=_c0(loc); if(_c6){ break; } } }; dojo.requireLocalization=function(_c7,_c8,_c9){ var _ca=[_c7,"_nls",_c8].join("."); var _cb=dojo.hostenv.startPackage(_ca); dojo.hostenv.loaded_modules_[_ca]=_cb; if(!dj_undef("dj_localesBuilt",dj_global)&&dojo.hostenv.loaded_modules_[_ca]){ _c9=dojo.normalizeLocale(_c9); 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,_e8,_e9){ var out=""; for(var i=0;i<_e8;i++){ out+=str; if(_e9&&i<_e8-1){ out+=_e9; } } 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._mixin=dojo._mixin; dojo.lang.mixin=dojo.mixin; dojo.lang.extend=dojo.extend; dojo.lang.find=function(_f7,_f8,_f9,_fa){ if(!dojo.lang.isArrayLike(_f7)&&dojo.lang.isArrayLike(_f8)){ dojo.deprecated("dojo.lang.find(value, array)","use dojo.lang.find(array, value) instead","0.5"); var _fb=_f7; _f7=_f8; _f8=_fb; } var _fc=dojo.lang.isString(_f7); if(_fc){ _f7=_f7.split(""); } if(_fa){ var _fd=-1; var i=_f7.length-1; var end=-1; }else{ var _fd=1; var i=0; var end=_f7.length; } if(_f9){ while(i!=end){ if(_f7[i]===_f8){ return i; } i+=_fd; } }else{ while(i!=end){ if(_f7[i]==_f8){ return i; } i+=_fd; } } return -1; }; dojo.lang.indexOf=dojo.lang.find; dojo.lang.findLast=function(_100,_101,_102){ return dojo.lang.find(_100,_101,_102,true); }; dojo.lang.lastIndexOf=dojo.lang.findLast; dojo.lang.inArray=function(_103,_104){ return dojo.lang.find(_103,_104)>-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 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){ if(!it){ return false; } return (it instanceof Function||typeof it=="function"); }; dojo.lang.isString=function(it){ return (it instanceof String||typeof it=="string"); }; dojo.lang.isAlien=function(it){ if(!it){ return false; } return !dojo.lang.isFunction()&&/\{\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 ((it==undefined)&&(typeof it=="undefined")); }; dojo.provide("dojo.lang.extras"); dojo.lang.setTimeout=function(func,_10f){ var _110=window,argsStart=2; if(!dojo.lang.isFunction(func)){ _110=func; func=_10f; _10f=arguments[2]; argsStart++; } if(dojo.lang.isString(func)){ func=_110[func]; } var args=[]; for(var i=argsStart;i=4){ this.changeUrl=_125; } } }; dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){ },error:function(type,_12a){ },timeout:function(type){ },handle:function(){ },timeoutSeconds:0,abort:function(){ },fromKwArgs:function(_12c){ if(_12c["url"]){ _12c.url=_12c.url.toString(); } if(_12c["formNode"]){ _12c.formNode=dojo.byId(_12c.formNode); } if(!_12c["method"]&&_12c["formNode"]&&_12c["formNode"].method){ _12c.method=_12c["formNode"].method; } if(!_12c["handle"]&&_12c["handler"]){ _12c.handle=_12c.handler; } if(!_12c["load"]&&_12c["loaded"]){ _12c.load=_12c.loaded; } if(!_12c["changeUrl"]&&_12c["changeURL"]){ _12c.changeUrl=_12c.changeURL; } _12c.encoding=dojo.lang.firstValued(_12c["encoding"],djConfig["bindEncoding"],""); _12c.sendTransport=dojo.lang.firstValued(_12c["sendTransport"],djConfig["ioSendTransport"],false); var _12d=dojo.lang.isFunction; for(var x=0;x0){ dojo.io.bind(dojo.io._bindQueue.shift()); }else{ dojo.io._queueBindInFlight=false; } } }; dojo.io._bindQueue=[]; dojo.io._queueBindInFlight=false; dojo.io.argsFromMap=function(map,_13e,last){ var enc=/utf/i.test(_13e||"")?encodeURIComponent:dojo.string.encodeAscii; var _141=[]; var _142=new Object(); for(var name in map){ var _144=function(elt){ var val=enc(name)+"="+enc(elt); _141[(last==name)?"push":"unshift"](val); }; if(!_142[name]){ var _147=map[name]; if(dojo.lang.isArray(_147)){ dojo.lang.forEach(_147,_144); }else{ _144(_147); } } } return _141.join("&"); }; dojo.io.setIFrameSrc=function(_148,src,_14a){ try{ var r=dojo.render.html; if(!_14a){ if(r.safari){ _148.location=src; }else{ frames[_148.name].location=src; } }else{ var idoc; if(r.ie){ idoc=_148.contentWindow.document; }else{ if(r.safari){ idoc=_148.document; }else{ idoc=_148.contentWindow; } } if(!idoc){ _148.location=src; return; }else{ idoc.location.replace(src); } } } catch(e){ dojo.debug(e); dojo.debug("setIFrameSrc: "+e); } }; dojo.provide("dojo.lang.array"); dojo.lang.has=function(obj,name){ try{ return (typeof obj[name]!="undefined"); } catch(e){ return false; } }; dojo.lang.isEmpty=function(obj){ if(dojo.lang.isObject(obj)){ var tmp={}; var _151=0; for(var x in obj){ if(obj[x]&&(!tmp[x])){ _151++; break; } } return (_151==0); }else{ if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){ return obj.length==0; } } }; dojo.lang.map=function(arr,obj,_155){ var _156=dojo.lang.isString(arr); if(_156){ arr=arr.split(""); } if(dojo.lang.isFunction(obj)&&(!_155)){ _155=obj; obj=dj_global; }else{ if(dojo.lang.isFunction(obj)&&_155){ var _157=obj; obj=_155; _155=_157; } } if(Array.map){ var _158=Array.map(arr,_155,obj); }else{ var _158=[]; for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _16c=dj_global; } var _16e=[]; for(var i=0;i/gm,">").replace(/"/gm,"""); if(!_1ac){ 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; }else{ return str.substring(0,len).replace(/\.+$/,"")+"..."; } }; dojo.string.endsWith=function(str,end,_1b5){ if(_1b5){ 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,_1c0){ if(_1c0=="\n"){ text=text.replace(/\r\n/g,"\n"); text=text.replace(/\r/g,"\n"); }else{ if(_1c0=="\r"){ text=text.replace(/\r\n/g,"\r"); text=text.replace(/\n/g,"\r"); }else{ text=text.replace(/([^\r])\n/g,"$1\r\n"); text=text.replace(/\r([^\n])/g,"\r\n$1"); } } return text; }; dojo.string.splitEscaped=function(str,_1c2){ var _1c3=[]; for(var i=0,prevcomma=0;i0){ return _1e2[0]; } node=node.parentNode; } if(_1e1){ return null; } return _1e2; }; dojo.dom.getAncestorsByTag=function(node,tag,_1e6){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_1e6); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_1eb,_1ec){ if(_1ec&&node){ node=node.parentNode; } while(node){ if(node==_1eb){ 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 _1ef=dojo.doc(); if(!dj_undef("ActiveXObject")){ var _1f0=["MSXML2","Microsoft","MSXML","MSXML3"]; for(var i=0;i<_1f0.length;i++){ try{ doc=new ActiveXObject(_1f0[i]+".XMLDOM"); } catch(e){ } if(doc){ break; } } }else{ if((_1ef.implementation)&&(_1ef.implementation.createDocument)){ doc=_1ef.implementation.createDocument("","",null); } } return doc; }; dojo.dom.createDocumentFromText=function(str,_1f3){ if(!_1f3){ _1f3="text/xml"; } if(!dj_undef("DOMParser")){ var _1f4=new DOMParser(); return _1f4.parseFromString(str,_1f3); }else{ if(!dj_undef("ActiveXObject")){ var _1f5=dojo.dom.createDocument(); if(_1f5){ _1f5.async=false; _1f5.loadXML(str); return _1f5; }else{ dojo.debug("toXml didn't work?"); } }else{ var _1f6=dojo.doc(); if(_1f6.createElement){ var tmp=_1f6.createElement("xml"); tmp.innerHTML=str; if(_1f6.implementation&&_1f6.implementation.createDocument){ var _1f8=_1f6.implementation.createDocument("foo","",null); for(var i=0;i1){ var _210=dojo.doc(); dojo.dom.replaceChildren(node,_210.createTextNode(text)); return text; }else{ if(node.textContent!=undefined){ return node.textContent; } var _211=""; if(node==null){ return _211; } 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:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){ this.initialState={"url":this.initialHref,"kwArgs":args,"urlHash":this.initialHash}; },addToHistory:function(args){ var hash=null; if(!this.historyIframe){ this.historyIframe=window.frames["djhistory"]; } if(!this.bookmarkAnchor){ this.bookmarkAnchor=document.createElement("a"); dojo.body().appendChild(this.bookmarkAnchor); this.bookmarkAnchor.style.display="none"; } if((!args["changeUrl"])||(dojo.render.html.ie)){ var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime(); this.moveForward=true; dojo.io.setIFrameSrc(this.historyIframe,url,false); } if(args["changeUrl"]){ this.changingUrl=true; hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime()); setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1); this.bookmarkAnchor.href=hash; if(dojo.render.html.ie){ var _220=args["back"]||args["backButton"]||args["handle"]; var tcb=function(_222){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+hash+"';",1); } _220.apply(this,[_222]); }; if(args["back"]){ args.back=tcb; }else{ if(args["backButton"]){ args.backButton=tcb; }else{ if(args["handle"]){ args.handle=tcb; } } } this.forwardStack=[]; var _223=args["forward"]||args["forwardButton"]||args["handle"]; var tfw=function(_225){ if(window.location.hash!=""){ window.location.href=hash; } if(_223){ _223.apply(this,[_225]); } }; 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); } } } } this.historyStack.push({"url":url,"kwArgs":args,"urlHash":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,_228){ if(!dojo.render.html.opera){ var _229=this._getUrlQuery(_228.href); if(_229==null){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } if(this.moveForward){ this.moveForward=false; return; } if(this.historyStack.length>=2&&_229==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){ this.handleBackButton(); }else{ if(this.forwardStack.length>0&&_229==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){ this.handleForwardButton(); } } } },handleBackButton:function(){ var _22a=this.historyStack.pop(); if(!_22a){ 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(_22a); },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); },_getUrlQuery:function(url){ var _22e=url.split("?"); if(_22e.length<2){ return null; }else{ return _22e[1]; } }}; dojo.provide("dojo.io.BrowserIO"); dojo.io.checkChildrenForFile=function(node){ var _230=false; var _231=node.getElementsByTagName("input"); dojo.lang.forEach(_231,function(_232){ if(_230){ return; } if(_232.getAttribute("type")=="file"){ _230=true; } }); return _230; }; dojo.io.formHasFile=function(_233){ return dojo.io.checkChildrenForFile(_233); }; dojo.io.updateNode=function(node,_235){ node=dojo.byId(node); var args=_235; if(dojo.lang.isString(_235)){ args={url:_235}; } args.mimetype="text/html"; args.load=function(t,d,e){ while(node.firstChild){ if(dojo["event"]){ try{ dojo.event.browser.clean(node.firstChild); } catch(e){ } } node.removeChild(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(_23c,_23d,_23e){ if((!_23c)||(!_23c.tagName)||(!_23c.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } if(!_23e){ _23e=dojo.io.formFilter; } var enc=/utf/i.test(_23d||"")?encodeURIComponent:dojo.string.encodeAscii; var _240=[]; for(var i=0;i<_23c.elements.length;i++){ var elm=_23c.elements[i]; if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_23e(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)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){ var ret; if(_267.method.toLowerCase()=="head"){ var _26d=http.getAllResponseHeaders(); ret={}; ret.toString=function(){ return _26d; }; var _26e=_26d.split(/[\r\n]+/g); for(var i=0;i<_26e.length;i++){ var pair=_26e[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair){ ret[pair[1]]=pair[2]; } } }else{ if(_267.mimetype=="text/javascript"){ try{ ret=dj_eval(http.responseText); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=null; } }else{ if(_267.mimetype=="text/json"){ try{ ret=dj_eval("("+http.responseText+")"); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=false; } }else{ if((_267.mimetype=="application/xml")||(_267.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(_26b){ addToCache(url,_26a,_267.method,http); } _267[(typeof _267.load=="function")?"load":"handle"]("load",ret,http,_267); }else{ var _271=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); _267[(typeof _267.error=="function")?"error":"handle"]("error",_271,http,_267); } } function setHeaders(http,_273){ if(_273["headers"]){ for(var _274 in _273["headers"]){ if(_274.toLowerCase()=="content-type"&&!_273["contentType"]){ _273["contentType"]=_273["headers"][_274]; }else{ http.setRequestHeader(_274,_273["headers"][_274]); } } } } 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&&!_25b._blockAsync){ for(var x=this.inFlight.length-1;x>=0;x--){ 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(_27a["file"]){ _27a.method="post"; } if(!_27a["method"]){ _27a.method="get"; } if(_27a.method.toLowerCase()=="get"){ _27a.multipart=false; }else{ if(_27a["file"]){ _27a.multipart=true; }else{ if(!_27a["multipart"]){ _27a.multipart=false; } } } if(_27a["backButton"]||_27a["back"]||_27a["changeUrl"]){ dojo.undo.browser.addToHistory(_27a); } var _27f=_27a["content"]||{}; if(_27a.sendTransport){ _27f["dojo.transport"]="xmlhttp"; } do{ if(_27a.postContent){ _27c=_27a.postContent; break; } if(_27f){ _27c+=dojo.io.argsFromMap(_27f,_27a.encoding); } if(_27a.method.toLowerCase()=="get"||!_27a.multipart){ break; } var t=[]; if(_27c.length){ var q=_27c.split("&"); for(var i=0;i-1?"&":"?")+_27c; } if(_286){ _28c+=(dojo.string.endsWithAny(_28c,"?","&")?"":(_28c.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } http.open(_27a.method.toUpperCase(),_28c,_285); setHeaders(http,_27a); try{ http.send(null); } catch(e){ if(typeof http.abort=="function"){ http.abort(); } doLoad(_27a,{status:404},url,_27c,_287); } } if(!_285){ doLoad(_27a,http,url,_27c,_287); _25b._blockAsync=false; } _27a.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,_28e,days,path,_291,_292){ var _293=-1; if(typeof days=="number"&&days>=0){ var d=new Date(); d.setTime(d.getTime()+(days*24*60*60*1000)); _293=d.toGMTString(); } _28e=escape(_28e); document.cookie=name+"="+_28e+";"+(_293!=-1?" expires="+_293+";":"")+(path?"path="+path:"")+(_291?"; domain="+_291:"")+(_292?"; 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 _297=document.cookie.substring(idx+name.length+1); var end=_297.indexOf(";"); if(end==-1){ end=_297.length; } _297=_297.substring(0,end); _297=unescape(_297); return _297; }; 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,_29e,_29f,_2a0){ if(arguments.length==5){ _2a0=_29e; _29e=null; _29f=null; } var _2a1=[],cookie,value=""; if(!_2a0){ cookie=dojo.io.cookie.getObjectCookie(name); } if(days>=0){ if(!cookie){ cookie={}; } for(var prop in obj){ if(prop==null){ delete cookie[prop]; }else{ if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){ cookie[prop]=obj[prop]; } } } prop=null; for(var prop in cookie){ _2a1.push(escape(prop)+"="+escape(cookie[prop])); } value=_2a1.join("&"); } dojo.io.cookie.setCookie(name,value,days,path,_29e,_29f); }; dojo.io.cookie.getObjectCookie=function(name){ var _2a4=null,cookie=dojo.io.cookie.getCookie(name); if(cookie){ _2a4={}; var _2a5=cookie.split("&"); for(var i=0;i<_2a5.length;i++){ var pair=_2a5[i].split("="); var _2a8=pair[1]; if(isNaN(_2a8)){ _2a8=unescape(pair[1]); } _2a4[unescape(pair[0])]=_2a8; } } return _2a4; }; dojo.io.cookie.isSupported=function(){ if(typeof navigator.cookieEnabled!="boolean"){ dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null); var _2a9=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__"); navigator.cookieEnabled=(_2a9=="CookiesAllowed"); if(navigator.cookieEnabled){ this.deleteCookie("__TestingYourBrowserForCookieSupport__"); } } return navigator.cookieEnabled; }; if(!dojo.io.cookies){ dojo.io.cookies=dojo.io.cookie; } dojo.provide("dojo.io.*"); dojo.provide("dojo.event"); dojo.event=new function(){ this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]); function interpolateArgs(args,_2ab){ var dl=dojo.lang; var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false}; switch(args.length){ case 0: return; case 1: return; case 2: ao.srcFunc=args[0]; ao.adviceFunc=args[1]; break; case 3: if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; var _2ae=dl.nameAnonFunc(args[2],ao.adviceObj,_2ab); ao.adviceFunc=_2ae; }else{ if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=dj_global; var _2ae=dl.nameAnonFunc(args[0],ao.srcObj,_2ab); ao.srcFunc=_2ae; 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 _2ae=dl.nameAnonFunc(args[1],dj_global,_2ab); ao.srcFunc=_2ae; 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 _2ae=dl.nameAnonFunc(args[3],dj_global,_2ab); ao.adviceObj=dj_global; ao.adviceFunc=_2ae; }else{ if(dl.isObject(args[1])){ ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=dj_global; ao.adviceFunc=args[3]; }else{ if(dl.isObject(args[2])){ ao.srcObj=dj_global; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; ao.aroundFunc=args[3]; } } } } } } break; case 6: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundFunc=args[5]; ao.aroundObj=dj_global; break; default: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundObj=args[5]; ao.aroundFunc=args[6]; ao.once=args[7]; ao.delay=args[8]; ao.rate=args[9]; ao.adviceMsg=args[10]; break; } if(dl.isFunction(ao.aroundFunc)){ var _2ae=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_2ab); ao.aroundFunc=_2ae; } 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.isArray(ao.srcObj)&&ao.srcObj!=""){ var _2b0={}; for(var x in ao){ _2b0[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); } _2b0.srcObj=src; mjps.push(dojo.event.connect.call(dojo.event,_2b0)); }); 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 _2b8; if((arguments.length==1)&&(typeof a1=="object")){ _2b8=a1; }else{ _2b8={srcObj:a1,srcFunc:a2}; } _2b8.adviceFunc=function(){ var _2b9=[]; 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,_2d0){ this.object=obj||dj_global; this.methodname=_2d0; this.methodfunc=this.object[_2d0]; this.before=[]; this.after=[]; this.around=[]; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_2d2){ if(!obj){ obj=dj_global; } if(!obj[_2d2]){ obj[_2d2]=function(){ }; if(!obj[_2d2]){ dojo.raise("Cannot set do-nothing method on that object "+_2d2); } }else{ if((!dojo.lang.isFunction(obj[_2d2]))&&(!dojo.lang.isAlien(obj[_2d2]))){ return null; } } var _2d3=_2d2+"$joinpoint"; var _2d4=_2d2+"$joinpoint$method"; var _2d5=obj[_2d3]; if(!_2d5){ var _2d6=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _2d6=true; dojo.event.browser.addClobberNodeAttrs(obj,[_2d3,_2d4,_2d2]); } } var _2d7=obj[_2d2].length; obj[_2d4]=obj[_2d2]; _2d5=obj[_2d3]=new dojo.event.MethodJoinPoint(obj,_2d4); obj[_2d2]=function(){ var args=[]; if((_2d6)&&(!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;x0){ dojo.lang.forEach(this.before.concat(new Array()),_2df); } var _2ef; if(this.around.length>0){ var mi=new dojo.event.MethodInvocation(this,obj,args); _2ef=mi.proceed(); }else{ if(this.methodfunc){ _2ef=this.object[this.methodname].apply(this.object,args); } } if(this.after.length>0){ dojo.lang.forEach(this.after.concat(new Array()),_2df); } return (this.methodfunc)?_2ef:null; },getArr:function(kind){ var arr=this.after; if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){ arr=this.before; }else{ if(kind=="around"){ arr=this.around; } } return arr; },kwAddAdvice:function(args){ this.addAdvice(args["adviceObj"],args["adviceFunc"],args["aroundObj"],args["aroundFunc"],args["adviceType"],args["precedence"],args["once"],args["delay"],args["rate"],args["adviceMsg"]); },addAdvice:function(_2f4,_2f5,_2f6,_2f7,_2f8,_2f9,once,_2fb,rate,_2fd){ var arr=this.getArr(_2f8); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_2f4,_2f5,_2f6,_2f7,_2fb,rate,_2fd]; if(once){ if(this.hasAdvice(_2f4,_2f5,_2f8,arr)>=0){ return; } } if(_2f9=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_300,_301,_302,arr){ if(!arr){ arr=this.getArr(_302); } var ind=-1; for(var x=0;x=0;i=i-1){ var el=na[i]; if(el["__clobberAttrs__"]){ for(var j=0;j5&&_357[x].indexOf("dojo-")>=0){ return "dojo:"+_357[x].substr(5).toLowerCase(); } } } } return _354.toLowerCase(); } this.parseElement=function(node,_35a,_35b,_35c){ var _35d={}; if(node.tagName&&node.tagName.indexOf("/")==0){ return null; } var _35e=getDojoTagName(node); _35d[_35e]=[]; if(_35e.substr(0,4).toLowerCase()=="dojo"){ _35d.namespace="dojo"; }else{ var pos=_35e.indexOf(":"); if(pos>0){ _35d.namespace=_35e.substring(0,pos); } } var _360=false; if(!_35b){ _360=true; }else{ if(_35d.namespace&&dojo.getNamespace(_35d.namespace)){ _360=true; }else{ if(dojo.widget.tags[_35e]){ dojo.deprecated("dojo.xml.Parse.parseElement","Widgets should be placed in a defined namespace","0.5"); _360=true; } } } if(_360){ var _361=this.parseAttributes(node); for(var attr in _361){ if((!_35d[_35e][attr])||(typeof _35d[_35e][attr]!="array")){ _35d[_35e][attr]=[]; } _35d[_35e][attr].push(_361[attr]); } _35d[_35e].nodeRef=node; _35d.tagName=_35e; _35d.index=_35c||0; } var _363=0; for(var i=0;i=0;x--){ try{ this.widgets[x].destroy(true); delete this.widgets[x]; } catch(e){ } } }; this.remove=function(_38a){ if(dojo.lang.isNumber(_38a)){ var tw=this.widgets[_38a].widgetId; delete this.widgetIds[tw]; this.widgets.splice(_38a,1); }else{ this.removeById(_38a); } }; this.removeById=function(id){ if(!dojo.lang.isString(id)){ id=id["widgetId"]; if(!id){ dojo.debug("invalid widget or id passed to removeById"); return; } } for(var i=0;i-1){ var n=_39b[i].substring(0,pos); if(n!=_3a6){ if(_3af==0){ continue; } if(!_3ae){ _3ae=true; dojo.deprecated("dojo.widget.Manager.getImplementationName","Wrong namespace ("+_3a6+") specified. Developers should specify correct namespaces for all non-Dojo widgets","0.5"); } } } for(var j=0;j<_386.length;j++){ if(!_3b0[_386[j]]){ continue; } for(var _3b4 in _3b0[_386[j]]){ if(_3b4.toLowerCase()!=_3a7){ continue; } _39a[_3a6][_3a7]=_3b0[_386[j]][_3b4]; return _39a[_3a6][_3a7]; } } for(var j=0;j<_386.length;j++){ for(var _3b4 in _3b0){ if(_3b4.toLowerCase()!=(_386[j]+_3a7)&&_3b4.toLowerCase()!=_3a7){ continue; } _39a[_3a6][_3a7]=_3b0[_3b4]; return _39a[_3a6][_3a7]; } } } var _3b5=dojo.findNamespaceForWidget(_3a7); if(_3b5){ _3a6=_3b5.nsPrefix; } } throw new Error("Could not locate \""+_3a5+"\" class"); }; this.resizing=false; this.onWindowResized=function(){ if(this.resizing){ return; } try{ this.resizing=true; for(var id in this.topWidgets){ var _3b7=this.topWidgets[id]; if(_3b7.checkSize){ _3b7.checkSize(); } } } catch(e){ } finally{ this.resizing=false; } }; if(typeof window!="undefined"){ dojo.addOnLoad(this,"onWindowResized"); dojo.event.connect(window,"onresize",this,"onWindowResized"); } }; (function(){ var dw=dojo.widget; var dwm=dw.manager; var h=dojo.lang.curry(dojo.lang,"hitch",dwm); var g=function(_3bc,_3bd){ dw[(_3bd||_3bc)]=h(_3bc); }; g("add","addWidget"); g("destroyAll","destroyAllWidgets"); g("remove","removeWidget"); g("removeById","removeWidgetById"); g("getWidgetById"); g("getWidgetById","byId"); g("getWidgetsByType"); g("getWidgetsByFilter"); g("getWidgetsByType","byType"); g("getWidgetsByFilter","byFilter"); g("getWidgetByNode","byNode"); dw.all=function(n){ var _3bf=dwm.getAllWidgets.apply(dwm,arguments); if(arguments.length>0){ return _3bf[n]; } return _3bf; }; g("registerWidgetPackage"); g("getImplementation","getWidgetImplementation"); g("getImplementationName","getWidgetImplementationName"); dw.widgets=dwm.widgets; dw.widgetIds=dwm.widgetIds; dw.root=dwm.root; })(); dojo.provide("dojo.widget.Widget"); dojo.provide("dojo.widget.tags"); dojo.declare("dojo.widget.Widget",null,function(){ this.children=[]; this.extraArgs={}; },{parent:null,isTopLevel:false,isModal:false,isEnabled:true,isHidden:false,isContainer:false,widgetId:"",widgetType:"Widget",namespace:"dojo",toString:function(){ return "[Widget "+this.widgetType+", "+(this.widgetId||"NO ID")+"]"; },repr:function(){ return this.toString(); },enable:function(){ this.isEnabled=true; },disable:function(){ this.isEnabled=false; },hide:function(){ this.isHidden=true; },show:function(){ this.isHidden=false; },onResized:function(){ this.notifyChildrenOfResize(); },notifyChildrenOfResize:function(){ for(var i=0;i0){ var tc=this.children[0]; this.removeChild(tc); tc.destroy(); } },getChildrenOfType:function(type,_3c9){ var ret=[]; var _3cb=dojo.lang.isFunction(type); if(!_3cb){ type=type.toLowerCase(); } for(var x=0;xsi)){ this[x][_3da[y].substr(0,si).replace(/^\s+|\s+$/g,"")]=_3da[y].substr(si+1); } } } }else{ this[x]=args[x]; } } } } } } } } }else{ this.extraArgs[x.toLowerCase()]=args[x]; } } },postMixInProperties:function(){ },initialize:function(args,frag){ return false; },postInitialize:function(args,frag){ return false; },postCreate:function(args,frag){ return false; },uninitialize:function(){ return false; },buildRendering:function(){ dojo.unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", "); return false; },destroyRendering:function(){ dojo.unimplemented("dojo.widget.Widget.destroyRendering"); return false; },cleanUp:function(){ dojo.unimplemented("dojo.widget.Widget.cleanUp"); return false; },addedTo:function(_3e2){ },addChild:function(_3e3){ dojo.unimplemented("dojo.widget.Widget.addChild"); return false; },removeChild:function(_3e4){ for(var x=0;x-1)?_416.substring(0,pos):_416; dojo.widget.tags.addParseTreeHandler(_41b+":"+type.toLowerCase()); if(_41b!="dojo"){ dojo.widget.tags.addParseTreeHandler("dojo:"+type.toLowerCase()); } _415=(_415)||{}; _415.widgetType=type; if((!init)&&(_415["classConstructor"])){ init=_415.classConstructor; delete _415.classConstructor; } dojo.declare(_411,_413,init,_415); }; dojo.provide("dojo.namespace"); dojo.Namespace=function(_41c,_41d,_41e,_41f){ this.root=_41c; this.location=_41d; this.nsPrefix=_41e; this.resolver=_41f; dojo.setModulePrefix(_41e,_41d); }; dojo.Namespace.prototype._loaded={}; dojo.Namespace.prototype.load=function(name,_421){ if(this.resolver){ var _422=this.resolver(name,_421); if(_422&&!this._loaded[_422]){ var req=dojo.require; req(_422); this._loaded[_422]=true; } if(this._loaded[_422]){ return true; } } return false; }; dojo.defineNamespace=function(_424,_425,_426,_427,_428){ if(dojo._namespaces[_424]){ return; } var ns=new dojo.Namespace(_424,_425,_426,_427); dojo._namespaces[_424]=ns; if(_426){ dojo._namespaces[_426]=ns; } if(_428){ dojo.widget.manager.registerWidgetPackage(_428); } }; dojo.findNamespaceForWidget=function(_42a){ dojo.deprecated("dojo.findNamespaceForWidget","Widget ["+_42a+"] not defined for a namespace"+", so searching all namespaces. Developers should specify namespaces for all non-Dojo widgets","0.5"); _42a=_42a.toLowerCase(); for(x in dojo._namespaces){ if(dojo._namespaces[x].load(_42a)){ return dojo._namespaces[x]; } } }; dojo.provide("dojo.widget.Parse"); dojo.widget.Parse=function(_42b){ this.propertySetsList=[]; this.fragment=_42b; this.createComponents=function(frag,_42d){ var _42e=[]; var _42f=false; try{ if((frag)&&(frag["tagName"])&&(frag!=frag["nodeRef"])){ var _430=dojo.widget.tags; var tna=String(frag["tagName"]).split(";"); for(var x=0;x0)?ltn.substring(0,pos):null; if(!_430[ltn]&&dojo.getNamespace&&dojo.lang.isString(ltn)&&pos>0){ var ns=dojo.getNamespace(_435); var _437=ltn.substring(pos+1,ltn.length); var _438=null; var _439=frag[ltn]["dojoDomain"]||frag[ltn]["dojodomain"]; if(_439){ _438=_439[0].value; } if(ns){ ns.load(_437,_438); } } if(!_430[ltn]){ dojo.deprecated("dojo.widget.Parse.createComponents","Widget not defined for namespace"+_435+", so searching all namespaces. Developers should specify namespaces for all non-Dojo widgets","0.5"); var _43a=dojo.findNamespaceForWidget(_437); if(_43a){ ltn=_43a.nsPrefix+":"+(ltn.indexOf(":")>0?ltn.substring(ltn.indexOf(":")+1):ltn); } } if(_430[ltn]){ _42f=true; frag.tagName=ltn; var ret=_430[ltn](frag,this,_42d,frag["index"]); _42e.push(ret); }else{ if(dojo.lang.isString(ltn)&&_435&&dojo._namespaces[_435]){ dojo.debug("no tag handler registered for type: ",ltn); } } } } } catch(e){ dojo.debug("dojo.widget.Parse: error:",e); } if(!_42f){ _42e=_42e.concat(this.createSubComponents(frag,_42d)); } return _42e; }; this.createSubComponents=function(_43c,_43d){ var frag,comps=[]; for(var item in _43c){ frag=_43c[item]; if((frag)&&(typeof frag=="object")&&(frag!=_43c.nodeRef)&&(frag!=_43c["tagName"])){ comps=comps.concat(this.createComponents(frag,_43d)); } } return comps; }; this.parsePropertySets=function(_440){ return []; var _441=[]; for(var item in _440){ if((_440[item]["tagName"]=="dojo:propertyset")){ _441.push(_440[item]); } } this.propertySetsList.push(_441); return _441; }; this.parseProperties=function(_443){ var _444={}; for(var item in _443){ if((_443[item]==_443["tagName"])||(_443[item]==_443.nodeRef)){ }else{ if((_443[item]["tagName"])&&(dojo.widget.tags[_443[item].tagName.toLowerCase()])){ }else{ if((_443[item][0])&&(_443[item][0].value!="")&&(_443[item][0].value!=null)){ try{ if(item.toLowerCase()=="dataprovider"){ var _446=this; this.getDataProvider(_446,_443[item][0].value); _444.dataProvider=this.dataProvider; } _444[item]=_443[item][0].value; var _447=this.parseProperties(_443[item]); for(var _448 in _447){ _444[_448]=_447[_448]; } } catch(e){ dojo.debug(e); } } } } } return _444; }; this.getDataProvider=function(_449,_44a){ dojo.io.bind({url:_44a,load:function(type,_44c){ if(type=="load"){ _449.dataProvider=_44c; } },mimetype:"text/javascript",sync:true}); }; this.getPropertySetById=function(_44d){ for(var x=0;x0?ltn.substring(ltn.indexOf(":")+1):ltn); _45e[_464]=_45e[ltn]; _45e.namespace=_463.nsPrefix; ltn=_464; } } if(_461[ltn]){ _45e.fastMixIn=true; var ret=[dojo.widget.buildWidgetFromParseTree(ltn,_45e,this,null,null,_45e)]; return ret; }else{ dojo.debug("no tag handler registered for type: ",ltn); } }; }; dojo.widget._parser_collection={"dojo":new dojo.widget.Parse()}; dojo.widget.getParser=function(name){ if(!name){ name="dojo"; } if(!this._parser_collection[name]){ this._parser_collection[name]=new dojo.widget.Parse(); } return this._parser_collection[name]; }; dojo.widget.createWidget=function(name,_468,_469,_46a){ var _46b=false; var _46c=(typeof name=="string"); if(_46c){ var pos=name.indexOf(":"); var _46e=(pos>-1)?name.substring(0,pos):"dojo"; if(pos>-1){ name=name.substring(pos+1); } var _46f=name.toLowerCase(); var _470=_46e+":"+_46f; _46b=(dojo.byId(name)&&(!dojo.widget.tags[_470])); } if((arguments.length==1)&&((_46b)||(!_46c))){ var xp=new dojo.xml.Parse(); var tn=(_46b)?dojo.byId(name):name; return dojo.widget.getParser().createComponents(xp.parseElement(tn,null,true))[0]; } function fromScript(_473,name,_475,_476){ _475[_470]={dojotype:[{value:_46f}],nodeRef:_473,fastMixIn:true}; _475.namespace=_476; return dojo.widget.getParser().createComponentFromScript(_473,name,_475,_476); } _468=_468||{}; var _477=false; var tn=null; var h=dojo.render.html.capable; if(h){ tn=document.createElement("span"); } if(!_469){ _477=true; _469=tn; if(h){ dojo.body().appendChild(_469); } }else{ if(_46a){ dojo.dom.insertAtPosition(tn,_469,_46a); }else{ tn=_469; } } var _479=fromScript(tn,name.toLowerCase(),_468,_46e); if(!_479||!_479[0]||typeof _479[0].widgetType=="undefined"){ throw new Error("createWidget: Creation of \""+name+"\" widget failed."); } if(_477){ if(_479[0].domNode.parentNode){ _479[0].domNode.parentNode.removeChild(_479[0].domNode); } } return _479[0]; }; dojo.provide("dojo.namespaces.dojo"); (function(){ var map={html:{"accordioncontainer":"dojo.widget.AccordionContainer","treerpccontroller":"dojo.widget.TreeRPCController","accordionpane":"dojo.widget.AccordionPane","button":"dojo.widget.Button","chart":"dojo.widget.Chart","checkbox":"dojo.widget.Checkbox","civicrmdatepicker":"dojo.widget.CiviCrmDatePicker","colorpalette":"dojo.widget.ColorPalette","combobox":"dojo.widget.ComboBox","contentpane":"dojo.widget.ContentPane","contextmenu":"dojo.widget.ContextMenu","datepicker":"dojo.widget.DatePicker","debugconsole":"dojo.widget.DebugConsole","dialog":"dojo.widget.Dialog","docpane":"dojo.widget.DocPane","dropdownbutton":"dojo.widget.DropdownButton","dropdowndatepicker":"dojo.widget.DropdownDatePicker","editor2":"dojo.widget.Editor2","editor2toolbar":"dojo.widget.Editor2Toolbar","editor":"dojo.widget.Editor","editortree":"dojo.widget.EditorTree","editortreecontextmenu":"dojo.widget.EditorTreeContextMenu","editortreenode":"dojo.widget.EditorTreeNode","fisheyelist":"dojo.widget.FisheyeList","editortreecontroller":"dojo.widget.EditorTreeController","googlemap":"dojo.widget.GoogleMap","editortreeselector":"dojo.widget.EditorTreeSelector","floatingpane":"dojo.widget.FloatingPane","hslcolorpicker":"dojo.widget.HslColorPicker","inlineeditbox":"dojo.widget.InlineEditBox","layoutcontainer":"dojo.widget.LayoutContainer","linkpane":"dojo.widget.LinkPane","manager":"dojo.widget.Manager","popupcontainer":"dojo.widget.Menu2","popupmenu2":"dojo.widget.Menu2","menuitem2":"dojo.widget.Menu2","menuseparator2":"dojo.widget.Menu2","menubar2":"dojo.widget.Menu2","menubaritem2":"dojo.widget.Menu2","monthlyCalendar":"dojo.widget.MonthlyCalendar","popupbutton":"dojo.widget.PopUpButton","richtext":"dojo.widget.RichText","remotetabcontroller":"dojo.widget.RemoteTabController","resizehandle":"dojo.widget.ResizeHandle","resizabletextarea":"dojo.widget.ResizableTextarea","select":"dojo.widget.Select","slideshow":"dojo.widget.SlideShow","sortabletable":"dojo.widget.SortableTable","simpledropdownbuttons":"dojo.widget.SimpleDropdownButtons","splitcontainer":"dojo.widget.SplitContainer","svgbutton":"dojo.widget.SvgButton","tabcontainer":"dojo.widget.TabContainer","taskbar":"dojo.widget.TaskBar","timepicker":"dojo.widget.TimePicker","titlepane":"dojo.widget.TitlePane","toaster":"dojo.widget.Toaster","toggler":"dojo.widget.Toggler","toolbar":"dojo.widget.Toolbar","tooltip":"dojo.widget.Tooltip","tree":"dojo.widget.Tree","treebasiccontroller":"dojo.widget.TreeBasicController","treecontextmenu":"dojo.widget.TreeContextMenu","treeselector":"dojo.widget.TreeSelector","treecontrollerextension":"dojo.widget.TreeControllerExtension","treenode":"dojo.widget.TreeNode","validate":"dojo.widget.validate","treeloadingcontroller":"dojo.widget.TreeLoadingController","widget":"dojo.widget.Widget","wizard":"dojo.widget.Wizard","yahoomap":"dojo.widget.YahooMap"},svg:{"chart":"dojo.widget.svg.Chart","hslcolorpicker":"dojo.widget.svg.HslColorPicker"},vml:{"chart":"dojo.widget.vml.Chart"}}; function dojoNamespaceResolver(name,_47c){ if(!_47c){ _47c="html"; } if(!map[_47c]){ return null; } return map[_47c][name]; } dojo.defineNamespace("dojo","src","dojo",dojoNamespaceResolver); dojo.addDojoNamespaceMapping=function(_47d,_47e){ map[_47d]=_47e; }; })(); 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,_484){ return (new RegExp("(^|\\s+)"+_484+"(\\s+|$)")).test(dojo.html.getClass(node)); }; dojo.html.prependClass=function(node,_486){ _486+=" "+dojo.html.getClass(node); return dojo.html.setClass(node,_486); }; dojo.html.addClass=function(node,_488){ if(dojo.html.hasClass(node,_488)){ return false; } _488=(dojo.html.getClass(node)+" "+_488).replace(/^\s+|\s+$/g,""); return dojo.html.setClass(node,_488); }; dojo.html.setClass=function(node,_48a){ node=dojo.byId(node); var cs=new String(_48a); try{ if(typeof node.className=="string"){ node.className=cs; }else{ if(node.setAttribute){ node.setAttribute("class",_48a); node.className=cs; }else{ return false; } } } catch(e){ dojo.debug("dojo.html.setClass() failed",e); } return true; }; dojo.html.removeClass=function(node,_48d,_48e){ try{ if(!_48e){ var _48f=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_48d+"(\\s+|$)"),"$1$2"); }else{ var _48f=dojo.html.getClass(node).replace(_48d,""); } dojo.html.setClass(node,_48f); } catch(e){ dojo.debug("dojo.html.removeClass() failed",e); } return true; }; dojo.html.replaceClass=function(node,_491,_492){ dojo.html.removeClass(node,_492); dojo.html.addClass(node,_491); }; dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2}; dojo.html.getElementsByClass=function(_493,_494,_495,_496,_497){ var _498=dojo.doc(); _494=dojo.byId(_494)||_498; var _499=_493.split(/\s+/g); var _49a=[]; if(_496!=1&&_496!=2){ _496=0; } var _49b=new RegExp("(\\s|^)(("+_499.join(")|(")+"))(\\s|$)"); var _49c=_499.join(" ").length; var _49d=[]; if(!_497&&_498.evaluate){ var _49e=".//"+(_495||"*")+"[contains("; if(_496!=dojo.html.classMatchType.ContainsAny){ _49e+="concat(' ',@class,' '), ' "+_499.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')"; if(_496==2){ _49e+=" and string-length(@class)="+_49c+"]"; }else{ _49e+="]"; } }else{ _49e+="concat(' ',@class,' '), ' "+_499.join(" ')) or contains(concat(' ',@class,' '), ' ")+" ')]"; } var _49f=_498.evaluate(_49e,_494,null,XPathResult.ANY_TYPE,null); var _4a0=_49f.iterateNext(); while(_4a0){ try{ _49d.push(_4a0); _4a0=_49f.iterateNext(); } catch(e){ break; } } return _49d; }else{ if(!_495){ _495="*"; } _49d=_494.getElementsByTagName(_495); var node,i=0; outer: while(node=_49d[i++]){ var _4a2=dojo.html.getClasses(node); if(_4a2.length==0){ continue outer; } var _4a3=0; for(var j=0;j<_4a2.length;j++){ if(_49b.test(_4a2[j])){ if(_496==dojo.html.classMatchType.ContainsAny){ _49a.push(node); continue outer; }else{ _4a3++; } }else{ if(_496==dojo.html.classMatchType.IsOnly){ continue outer; } } } if(_4a3==_499.length){ if((_496==dojo.html.classMatchType.IsOnly)&&(_4a3==_4a2.length)){ _49a.push(node); }else{ if(_496==dojo.html.classMatchType.ContainsAll){ _49a.push(node); } } } } return _49a; } }; dojo.html.getElementsByClassName=dojo.html.getElementsByClass; dojo.html.toCamelCase=function(_4a5){ var arr=_4a5.split("-"),cc=arr[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; } } } } _4e9.path=segs.join("/"); } } } } uri=""; if(_4e9.scheme!=null){ uri+=_4e9.scheme+":"; } if(_4e9.authority!=null){ uri+="//"+_4e9.authority; } uri+=_4e9.path; if(_4e9.query!=null){ uri+="?"+_4e9.query; } if(_4e9.fragment!=null){ uri+="#"+_4e9.fragment; } } this.uri=uri.toString(); var _4ee="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_4ee)); 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){ _4ee="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_4ee)); this.user=r[3]||null; this.password=r[4]||null; this.host=r[5]; this.port=r[7]||null; } this.toString=function(){ return this.uri; }; }; }; dojo.provide("dojo.uri.*"); dojo.provide("dojo.widget.DomWidget"); dojo.widget._cssFiles={}; dojo.widget._cssStrings={}; dojo.widget._templateCache={}; dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()}; dojo.widget.buildFromTemplate=function(){ dojo.lang.forward("fillFromTemplateCache"); }; dojo.widget.fillFromTemplateCache=function(obj,_4f1,_4f2,_4f3){ var _4f4=_4f1||obj.templatePath; if(_4f4&&!(_4f4 instanceof dojo.uri.Uri)){ _4f4=dojo.uri.dojoUri(_4f4); dojo.deprecated("templatePath should be of type dojo.uri.Uri",null,"0.4"); } var _4f5=dojo.widget._templateCache; if(!obj["widgetType"]){ do{ var _4f6="__dummyTemplate__"+dojo.widget._templateCache.dummyCount++; }while(_4f5[_4f6]); obj.widgetType=_4f6; } var wt=obj.widgetType; var ts=_4f5[wt]; if(!ts){ _4f5[wt]={"string":null,"node":null}; if(_4f3){ ts={}; }else{ ts=_4f5[wt]; } } if((!obj.templateString)&&(!_4f3)){ obj.templateString=_4f2||ts["string"]; } if((!obj.templateNode)&&(!_4f3)){ obj.templateNode=ts["node"]; } if((!obj.templateNode)&&(!obj.templateString)&&(_4f4)){ var _4f9=dojo.hostenv.getText(_4f4); if(_4f9){ _4f9=_4f9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""); var _4fa=_4f9.match(/]*>\s*([\s\S]+)\s*<\/body>/im); if(_4fa){ _4f9=_4fa[1]; } }else{ _4f9=""; } obj.templateString=_4f9; if(!_4f3){ _4f5[wt]["string"]=_4f9; } } if((!ts["string"])&&(!_4f3)){ ts.string=obj.templateString; } }; dojo.widget._templateCache.dummyCount=0; dojo.widget.attachProperties=["dojoAttachPoint","id"]; dojo.widget.eventAttachProperty="dojoAttachEvent"; dojo.widget.onBuildProperty="dojoOnBuild"; dojo.widget.waiNames=["waiRole","waiState"]; dojo.widget.wai={waiRole:{name:"waiRole",namespace:"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState",namespace:"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(node,ns,attr,_4fe){ if(dojo.render.html.ie){ node.setAttribute(this[ns].alias+":"+attr,this[ns].prefix+_4fe); }else{ node.setAttributeNS(this[ns].namespace,attr,this[ns].prefix+_4fe); } },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); } }}; dojo.widget.attachTemplateNodes=function(_502,_503,_504){ var _505=dojo.dom.ELEMENT_NODE; function trim(str){ return str.replace(/^\s+|\s+$/g,""); } if(!_502){ _502=_503.domNode; } if(_502.nodeType!=_505){ return; } var _507=_502.all||_502.getElementsByTagName("*"); var _508=_503; for(var x=-1;x<_507.length;x++){ var _50a=(x==-1)?_502:_507[x]; var _50b=[]; for(var y=0;y=0){ var _518=tevt.split(":"); tevt=trim(_518[0]); _516=trim(_518[1]); } if(!_516){ _516=tevt; } var tf=function(){ var ntf=new String(_516); return function(evt){ if(_508[ntf]){ _508[ntf](dojo.event.browser.fixEvent(evt,this)); } }; }(); dojo.event.browser.addListener(_50a,tevt,tf,false,true); } } for(var y=0;y<_504.length;y++){ var _51c=_50a.getAttribute(_504[y]); if((_51c)&&(_51c.length)){ var _516=null; var _51d=_504[y].substr(4); _516=trim(_51c); var _51e=[_516]; if(_516.indexOf(";")>=0){ _51e=dojo.lang.map(_516.split(";"),trim); } for(var z=0;z<_51e.length;z++){ if(!_51e[z].length){ continue; } var tf=function(){ var ntf=new String(_51e[z]); return function(evt){ if(_508[ntf]){ _508[ntf](dojo.event.browser.fixEvent(evt,this)); } }; }(); dojo.event.browser.addListener(_50a,_51d,tf,false,true); } } } var _521=_50a.getAttribute(this.onBuildProperty); if(_521){ eval("var node = baseNode; var widget = targetObj; "+_521); } } }; 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,addChild:function(_529,_52a,pos,ref,_52d){ if(!this.isContainer){ dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget"); return null; }else{ if(_52d==undefined){ _52d=this.children.length; } this.addWidgetAsDirectChild(_529,_52a,pos,ref,_52d); this.registerChild(_529,_52d); } return _529; },addWidgetAsDirectChild:function(_52e,_52f,pos,ref,_532){ if((!this.containerNode)&&(!_52f)){ this.containerNode=this.domNode; } var cn=(_52f)?_52f:this.containerNode; if(!pos){ pos="after"; } if(!ref){ if(!cn){ cn=dojo.body(); } ref=cn.lastChild; } if(!_532){ _532=0; } _52e.domNode.setAttribute("dojoinsertionindex",_532); if(!ref){ cn.appendChild(_52e.domNode); }else{ if(pos=="insertAtIndex"){ dojo.dom.insertAtIndex(_52e.domNode,ref.parentNode,_532); }else{ if((pos=="after")&&(ref===cn.lastChild)){ cn.appendChild(_52e.domNode); }else{ dojo.dom.insertAtPosition(_52e.domNode,cn,pos); } } } },registerChild:function(_534,_535){ _534.dojoInsertionIndex=_535; var idx=-1; for(var i=0;i0){ ret.x+=isNaN(n)?0:n; } var m=_590["offsetTop"]; ret.y+=isNaN(m)?0:m; _590=_590.offsetParent; }while((_590!=_58e)&&(_590!=null)); }else{ if(node["x"]&&node["y"]){ ret.x+=isNaN(node.x)?0:node.x; ret.y+=isNaN(node.y)?0:node.y; } } } } if(_585){ var _593=dojo.html.getScroll(); ret.y+=_593.top; ret.x+=_593.left; } var _594=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent]; if(_589>_58a){ for(var i=_58a;i<_589;++i){ ret.y+=_594[i](node,"top"); ret.x+=_594[i](node,"left"); } }else{ if(_589<_58a){ for(var i=_58a;i>_589;--i){ ret.y-=_594[i-1](node,"top"); ret.x-=_594[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,_598,_599){ var _59a=0; for(var x=0;x<_598.length;x++){ _59a+=dojo.html.getPixelValue(node,_598[x],_599); } return _59a; }; 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 _5a7=dojo.html.getBorder(node); return {width:pad.width+_5a7.width,height:pad.height+_5a7.height}; }; dojo.html.getBoxSizing=function(node){ var h=dojo.render.html; var bs=dojo.html.boxSizing; if((h.ie)||(h.opera)){ 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 _5ac=dojo.html.getStyle(node,"-moz-box-sizing"); if(!_5ac){ _5ac=dojo.html.getStyle(node,"box-sizing"); } return (_5ac?_5ac: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 _5b1=dojo.html.getBorder(node); return {width:box.width-_5b1.width,height:box.height-_5b1.height}; }; dojo.html.getContentBox=function(node){ node=dojo.byId(node); var _5b3=dojo.html.getPadBorder(node); return {width:node.offsetWidth-_5b3.width,height:node.offsetHeight-_5b3.height}; }; dojo.html.setContentBox=function(node,args){ node=dojo.byId(node); var _5b6=0; var _5b7=0; var isbb=dojo.html.isBorderBox(node); var _5b9=(isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var ret={}; if(typeof args.width!=undefined){ _5b6=args.width+_5b9.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_5b6); } if(typeof args.height!=undefined){ _5b7=args.height+_5b9.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_5b7); } return ret; }; dojo.html.getMarginBox=function(node){ var _5bc=dojo.html.getBorderBox(node); var _5bd=dojo.html.getMargin(node); return {width:_5bc.width+_5bd.width,height:_5bc.height+_5bd.height}; }; dojo.html.setMarginBox=function(node,args){ node=dojo.byId(node); var _5c0=0; var _5c1=0; var isbb=dojo.html.isBorderBox(node); var _5c3=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var _5c4=dojo.html.getMargin(node); var ret={}; if(typeof args.width!=undefined){ _5c0=args.width-_5c3.width; _5c0-=_5c4.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_5c0); } if(typeof args.height!=undefined){ _5c1=args.height-_5c3.height; _5c1-=_5c4.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_5c1); } 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(_5c9,_5ca){ if(_5c9 instanceof Array||typeof _5c9=="array"){ dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5"); while(_5c9.length<4){ _5c9.push(0); } while(_5c9.length>4){ _5c9.pop(); } var ret={left:_5c9[0],top:_5c9[1],width:_5c9[2],height:_5c9[3]}; }else{ if(!_5c9.nodeType&&!(_5c9 instanceof String||typeof _5c9=="string")&&("width" in _5c9||"height" in _5c9||"left" in _5c9||"x" in _5c9||"top" in _5c9||"y" in _5c9)){ var ret={left:_5c9.left||_5c9.x||0,top:_5c9.top||_5c9.y||0,width:_5c9.width||0,height:_5c9.height||0}; }else{ var node=dojo.byId(_5c9); var pos=dojo.html.abs(node,_5ca); var _5ce=dojo.html.getMarginBox(node); var ret={left:pos.left,top:pos.top,width:_5ce.width,height:_5ce.height}; } } ret.x=ret.left; ret.y=ret.top; return ret; }; dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_5d0){ 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,_5d3){ return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type); }; dojo.html.getAbsoluteX=function(node,_5d5){ return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x"); }; dojo.html.getAbsoluteY=function(node,_5d7){ return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y"); }; dojo.html.totalOffsetLeft=function(node,_5d9){ return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left"); }; dojo.html.totalOffsetTop=function(node,_5db){ 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,_5e5){ return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width"); }; dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_5e7){ return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height"); }; dojo.provide("dojo.html.util"); dojo.html.getElementWindow=function(_5e8){ return dojo.html.getDocumentWindow(_5e8.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&&_5f6.x<=_5fc&&_5f6.y>=top&&_5f6.y<=_5fa); }; dojo.html.renderedTextContent=function(node){ node=dojo.byId(node); var _5fe=""; if(node==null){ return _5fe; } for(var i=0;i]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _607="cell"; }else{ if((/^]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _607="row"; }else{ if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _607="section"; } } } tn.innerHTML=txt; if(tn["normalize"]){ tn.normalize(); } var _608=null; switch(_607){ case "cell": _608=tn.getElementsByTagName("tr")[0]; break; case "row": _608=tn.getElementsByTagName("tbody")[0]; break; case "section": _608=tn.getElementsByTagName("table")[0]; break; default: _608=tn; break; } var _609=[]; for(var x=0;x<_608.childNodes.length;x++){ _609.push(_608.childNodes[x].cloneNode(true)); } tn.style.display="none"; dojo.body().removeChild(tn); return _609; }; dojo.html.placeOnScreen=function(node,_60c,_60d,_60e,_60f,_610,_611){ if(_60c instanceof Array||typeof _60c=="array"){ _611=_610; _610=_60f; _60f=_60e; _60e=_60d; _60d=_60c[1]; _60c=_60c[0]; } if(_610 instanceof String||typeof _610=="string"){ _610=_610.split(","); } if(!isNaN(_60e)){ _60e=[Number(_60e),Number(_60e)]; }else{ if(!(_60e instanceof Array||typeof _60e=="array")){ _60e=[0,0]; } } var _612=dojo.html.getScroll().offset; var view=dojo.html.getViewport(); node=dojo.byId(node); var _614=node.style.display; node.style.display=""; var bb=dojo.html.getBorderBox(node); var w=bb.width; var h=bb.height; node.style.display=_614; if(!(_610 instanceof Array||typeof _610=="array")){ _610=["TL"]; } var _618,besty,bestDistance=Infinity; for(var _619=0;_619<_610.length;++_619){ var _61a=_610[_619]; var _61b=true; var tryX=_60c-(_61a.charAt(1)=="L"?0:w)+_60e[0]*(_61a.charAt(1)=="L"?1:-1); var tryY=_60d-(_61a.charAt(0)=="T"?0:h)+_60e[1]*(_61a.charAt(0)=="T"?1:-1); if(_60f){ tryX-=_612.x; tryY-=_612.y; } var x=tryX+w; if(x>view.width){ x=view.width-w; _61b=false; }else{ x=tryX; } x=Math.max(_60e[0],x)+_612.x; var y=tryY+h; if(y>view.height){ y=view.height-h; _61b=false; }else{ y=tryY; } y=Math.max(_60e[1],y)+_612.y; if(_61b){ _618=x; besty=y; bestDistance=0; break; }else{ var dist=Math.pow(x-tryX-_612.x,2)+Math.pow(y-tryY-_612.y,2); if(bestDistance>dist){ bestDistance=dist; _618=x; besty=y; } } } if(!_611){ node.style.left=_618+"px"; node.style.top=besty+"px"; } return {left:_618,top:besty,x:_618,y:besty,dist:bestDistance}; }; dojo.html.placeOnScreenPoint=function(node,_622,_623,_624,_625){ dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5"); return dojo.html.placeOnScreen(node,_622,_623,_624,_625,["TL","TR","BL","BR"]); }; dojo.html.placeOnScreenAroundElement=function(node,_627,_628,_629,_62a,_62b){ var best,bestDistance=Infinity; _627=dojo.byId(_627); var _62d=_627.style.display; _627.style.display=""; var mb=dojo.html.getElementBox(_627,_629); var _62f=mb.width; var _630=mb.height; var _631=dojo.html.getAbsolutePosition(_627,true,_629); _627.style.display=_62d; for(var _632 in _62a){ var pos,desiredX,desiredY; var _634=_62a[_632]; desiredX=_631.x+(_632.charAt(1)=="L"?0:_62f); desiredY=_631.y+(_632.charAt(0)=="T"?0:_630); pos=dojo.html.placeOnScreen(node,desiredX,desiredY,_628,true,_634,true); if(pos.dist==0){ best=pos; break; }else{ if(bestDistance>pos.dist){ bestDistance=pos.dist; best=pos; } } } if(!_62b){ 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).heightnode.offsetTop){ _636.scrollTop-=(_636.scrollTop-node.offsetTop); } } } } }; dojo.provide("dojo.html.display"); dojo.html._toggle=function(node,_63a,_63b){ node=dojo.byId(node); _63b(node,!_63a(node)); return _63a(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,_640){ dojo.html[(_640?"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,_646){ dojo.html.setStyle(node,"display",((_646 instanceof String||typeof _646=="string")?_646:(_646?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,_64a){ dojo.html.setStyle(node,"visibility",((_64a instanceof String||typeof _64a=="string")?_64a:(_64a?"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,_64e,_64f){ node=dojo.byId(node); var h=dojo.render.html; if(!_64f){ if(_64e>=1){ if(h.ie){ dojo.html.clearOpacity(node); return; }else{ _64e=0.999999; } }else{ if(_64e<0){ _64e=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.lfx.Animation"); dojo.provide("dojo.lfx.Line"); dojo.lfx.Line=function(_659,end){ this.start=_659; this.end=end; if(dojo.lang.isArray(_659)){ var diff=[]; dojo.lang.forEach(this.start,function(s,i){ diff[i]=this.end[i]-s; },this); this.getValue=function(n){ var res=[]; dojo.lang.forEach(this.start,function(s,i){ res[i]=(diff[i]*n)+s; },this); return res; }; }else{ var diff=end-_659; this.getValue=function(n){ return (diff*n)+this.start; }; } }; dojo.lfx.easeDefault=function(n){ return (0.5+((Math.sin((n+1.5)*Math.PI))/2)); }; dojo.lfx.easeIn=function(n){ return Math.pow(n,3); }; dojo.lfx.easeOut=function(n){ return (1-Math.pow(1-n,3)); }; dojo.lfx.easeInOut=function(n){ return ((3*Math.pow(n,2))-(2*Math.pow(n,3))); }; dojo.lfx.IAnimation=function(){ }; dojo.lang.extend(dojo.lfx.IAnimation,{curve:null,duration:1000,easing:null,repeatCount:0,rate:25,handler:null,beforeBegin:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,play:null,pause:null,stop:null,connect:function(evt,_668,_669){ if(!_669){ _669=_668; _668=this; } _669=dojo.lang.hitch(_668,_669); var _66a=this[evt]||function(){ }; this[evt]=function(){ var ret=_66a.apply(this,arguments); _669.apply(this,arguments); return ret; }; return this; },fire:function(evt,args){ if(this[evt]){ this[evt].apply(this,(args||[])); } return this; },repeat:function(_66e){ this.repeatCount=_66e; return this; },_active:false,_paused:false}); dojo.lfx.Animation=function(_66f,_670,_671,_672,_673,rate){ dojo.lfx.IAnimation.call(this); if(dojo.lang.isNumber(_66f)||(!_66f&&_670.getValue)){ rate=_673; _673=_672; _672=_671; _671=_670; _670=_66f; _66f=null; }else{ if(_66f.getValue||dojo.lang.isArray(_66f)){ rate=_672; _673=_671; _672=_670; _671=_66f; _670=null; _66f=null; } } if(dojo.lang.isArray(_671)){ this.curve=new dojo.lfx.Line(_671[0],_671[1]); }else{ this.curve=_671; } if(_670!=null&&_670>0){ this.duration=_670; } if(_673){ this.repeatCount=_673; } if(rate){ this.rate=rate; } if(_66f){ dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){ if(_66f[item]){ this.connect(item,_66f[item]); } },this); } if(_672&&dojo.lang.isFunction(_672)){ this.easing=_672; } }; 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(_676,_677){ if(_677){ 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(_676>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_677); }),_676); 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 _679=this.curve.getValue(step); if(this._percent==0){ if(!this._startRepeatCount){ this._startRepeatCount=this.repeatCount; } this.fire("handler",["begin",_679]); this.fire("onBegin",[_679]); } this.fire("handler",["play",_679]); this.fire("onPlay",[_679]); this._cycle(); return this; },pause:function(){ clearTimeout(this._timer); if(!this._active){ return this; } this._paused=true; var _67a=this.curve.getValue(this._percent/100); this.fire("handler",["pause",_67a]); this.fire("onPause",[_67a]); return this; },gotoPercent:function(pct,_67c){ clearTimeout(this._timer); this._active=true; this._paused=true; this._percent=pct; if(_67c){ this.play(); } return this; },stop:function(_67d){ clearTimeout(this._timer); var step=this._percent/100; if(_67d){ step=1; } var _67f=this.curve.getValue(step); this.fire("handler",["stop",_67f]); this.fire("onStop",[_67f]); 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 _682=this.curve.getValue(step); this.fire("handler",["animate",_682]); this.fire("onAnimate",[_682]); 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(){ dojo.lfx.IAnimation.call(this); this._anims=[]; this._animsEnded=0; var _683=arguments; if(_683.length==1&&(dojo.lang.isArray(_683[0])||dojo.lang.isArrayLike(_683[0]))){ _683=_683[0]; } dojo.lang.forEach(_683,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(_685,_686){ if(!this._anims.length){ return this; } this.fire("beforeBegin"); if(_685>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_686); }),_685); return this; } if(_686||this._anims[0].percent==0){ this.fire("onBegin"); } this.fire("onPlay"); this._animsCall("play",null,_686); return this; },pause:function(){ this.fire("onPause"); this._animsCall("pause"); return this; },stop:function(_687){ this.fire("onStop"); this._animsCall("stop",_687); return this; },_onAnimsEnded:function(){ this._animsEnded++; if(this._animsEnded>=this._anims.length){ this.fire("onEnd"); } return this; },_animsCall:function(_688){ var args=[]; if(arguments.length>1){ for(var i=1;i0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_693); }),_692); return this; } if(_694){ if(this._currAnim==0){ this.fire("handler",["begin",this._currAnim]); this.fire("onBegin",[this._currAnim]); } this.fire("onPlay",[this._currAnim]); _694.play(null,_693); } 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 _695=this._anims[this._currAnim]; if(_695){ if(!_695._active||_695._paused){ this.play(); }else{ this.pause(); } } return this; },stop:function(){ var _696=this._anims[this._currAnim]; if(_696){ _696.stop(); this.fire("onStop",[this._currAnim]); } return _696; },_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(){ var _697=arguments; if(dojo.lang.isArray(arguments[0])){ _697=arguments[0]; } if(_697.length==1){ return _697[0]; } return new dojo.lfx.Combine(_697); }; dojo.lfx.chain=function(){ var _698=arguments; if(dojo.lang.isArray(arguments[0])){ _698=arguments[0]; } if(_698.length==1){ return _698[0]; } return new dojo.lfx.Chain(_698); }; dojo.provide("dojo.graphics.color"); dojo.graphics.color.Color=function(r,g,b,a){ if(dojo.lang.isArray(r)){ this.r=r[0]; this.g=r[1]; this.b=r[2]; this.a=r[3]||1; }else{ if(dojo.lang.isString(r)){ var rgb=dojo.graphics.color.extractRGB(r); this.r=rgb[0]; this.g=rgb[1]; this.b=rgb[2]; this.a=g||1; }else{ if(r instanceof dojo.graphics.color.Color){ this.r=r.r; this.b=r.b; this.g=r.g; this.a=r.a; }else{ this.r=r; this.g=g; this.b=b; this.a=a; } } } }; dojo.graphics.color.Color.fromArray=function(arr){ return new dojo.graphics.color.Color(arr[0],arr[1],arr[2],arr[3]); }; dojo.lang.extend(dojo.graphics.color.Color,{toRgb:function(_69f){ if(_69f){ return this.toRgba(); }else{ return [this.r,this.g,this.b]; } },toRgba:function(){ return [this.r,this.g,this.b,this.a]; },toHex:function(){ return dojo.graphics.color.rgb2hex(this.toRgb()); },toCss:function(){ return "rgb("+this.toRgb().join()+")"; },toString:function(){ return this.toHex(); },blend:function(_6a0,_6a1){ return dojo.graphics.color.blend(this.toRgb(),new dojo.graphics.color.Color(_6a0).toRgb(),_6a1); }}); dojo.graphics.color.named={white:[255,255,255],black:[0,0,0],red:[255,0,0],green:[0,255,0],blue:[0,0,255],navy:[0,0,128],gray:[128,128,128],silver:[192,192,192]}; dojo.graphics.color.blend=function(a,b,_6a4){ if(typeof a=="string"){ return dojo.graphics.color.blendHex(a,b,_6a4); } if(!_6a4){ _6a4=0; }else{ if(_6a4>1){ _6a4=1; }else{ if(_6a4<-1){ _6a4=-1; } } } var c=new Array(3); for(var i=0;i<3;i++){ var half=Math.abs(a[i]-b[i])/2; c[i]=Math.floor(Math.min(a[i],b[i])+half+(half*_6a4)); } return c; }; dojo.graphics.color.blendHex=function(a,b,_6aa){ return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_6aa)); }; dojo.graphics.color.extractRGB=function(_6ab){ var hex="0123456789abcdef"; _6ab=_6ab.toLowerCase(); if(_6ab.indexOf("rgb")==0){ var _6ad=_6ab.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_6ad.splice(1,3); return ret; }else{ var _6af=dojo.graphics.color.hex2rgb(_6ab); if(_6af){ return _6af; }else{ return dojo.graphics.color.named[_6ab]||[255,255,255]; } } }; dojo.graphics.color.hex2rgb=function(hex){ var _6b1="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_6b1+"]","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;i3){ _74b.pop(); } var rgb=new dojo.graphics.color.Color(_745); var _750=new dojo.graphics.color.Color(_74b); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_750}},_746,_747,{"beforeBegin":function(){ if(_74d){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")"; },"onEnd":function(){ if(_74d){ node.style.backgroundImage=_74d; } if(_74e){ node.style.backgroundColor="transparent"; } if(_748){ _748(node,anim); } }}); _749.push(anim); }); return dojo.lfx.combine(_749); }; dojo.lfx.html.unhighlight=function(_752,_753,_754,_755,_756){ _752=dojo.lfx.html._byId(_752); var _757=[]; dojo.lang.forEach(_752,function(node){ var _759=new dojo.graphics.color.Color(dojo.html.getBackgroundColor(node)); var rgb=new dojo.graphics.color.Color(_753); var _75b=dojo.html.getStyle(node,"background-image"); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_759,end:rgb}},_754,_755,{"beforeBegin":function(){ if(_75b){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+_759.toRgb().join(",")+")"; },"onEnd":function(){ if(_756){ _756(node,anim); } }}); _757.push(anim); }); return dojo.lfx.combine(_757); }; dojo.lang.mixin(dojo.lfx,dojo.lfx.html); dojo.provide("dojo.lfx.*"); dojo.provide("dojo.lfx.toggle"); dojo.lfx.toggle.plain={show:function(node,_75e,_75f,_760){ dojo.html.show(node); if(dojo.lang.isFunction(_760)){ _760(); } },hide:function(node,_762,_763,_764){ dojo.html.hide(node); if(dojo.lang.isFunction(_764)){ _764(); } }}; dojo.lfx.toggle.fade={show:function(node,_766,_767,_768){ dojo.lfx.fadeShow(node,_766,_767,_768).play(); },hide:function(node,_76a,_76b,_76c){ dojo.lfx.fadeHide(node,_76a,_76b,_76c).play(); }}; dojo.lfx.toggle.wipe={show:function(node,_76e,_76f,_770){ dojo.lfx.wipeIn(node,_76e,_76f,_770).play(); },hide:function(node,_772,_773,_774){ dojo.lfx.wipeOut(node,_772,_773,_774).play(); }}; dojo.lfx.toggle.explode={show:function(node,_776,_777,_778,_779){ dojo.lfx.explode(_779||{x:0,y:0,width:0,height:0},node,_776,_777,_778).play(); },hide:function(node,_77b,_77c,_77d,_77e){ dojo.lfx.implode(node,_77e||{x:0,y:0,width:0,height:0},_77b,_77c,_77d).play(); }}; dojo.provide("dojo.widget.HtmlWidget"); dojo.declare("dojo.widget.HtmlWidget",dojo.widget.DomWidget,{widgetType:"HtmlWidget",templateCssPath:null,templatePath:null,toggle:"plain",toggleDuration:150,animationInProgress:false,initialize:function(args,frag){ },postMixInProperties:function(args,frag){ this.toggleObj=dojo.lfx.toggle[this.toggle.toLowerCase()]||dojo.lfx.toggle.plain; },getContainerHeight:function(){ dojo.unimplemented("dojo.widget.HtmlWidget.getContainerHeight"); },getContainerWidth:function(){ return this.parent.domNode.offsetWidth; },setNativeHeight:function(_783){ var ch=this.getContainerHeight(); },createNodesFromText:function(txt,wrap){ return dojo.html.createNodesFromText(txt,wrap); },destroyRendering:function(_787){ try{ if(!_787&&this.domNode){ dojo.event.browser.clean(this.domNode); } this.domNode.parentNode.removeChild(this.domNode); delete this.domNode; } catch(e){ } },isShowing:function(){ return dojo.html.isShowing(this.domNode); },toggleShowing:function(){ if(this.isHidden){ this.show(); }else{ this.hide(); } },show:function(){ this.animationInProgress=true; this.isHidden=false; 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(){ this.animationInProgress=true; this.isHidden=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 _78b=w||wh.width; var _78c=h||wh.height; if(this.width==_78b&&this.height==_78c){ return false; } this.width=_78b; this.height=_78c; return true; },checkSize:function(){ if(!this._isResized()){ return; } this.onResized(); },resizeTo:function(w,h){ if(!this._isResized(w,h)){ return; } dojo.html.setMarginBox(this.domNode,{width:w,height:h}); this.onResized(); },resizeSoon:function(){ if(this.isShowing()){ dojo.lang.setTimeout(this,this.onResized,0); } },onResized:function(){ dojo.lang.forEach(this.children,function(_78f){ if(_78f["checkSize"]){ _78f.checkSize(); } }); }}); dojo.provide("dojo.widget.*");