/* Copyright (c) 2004-2005, 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. */ var dj_global=this; function dj_undef(_1,_2){ if(!_2){ _2=dj_global; } return (typeof _2[_1]=="undefined"); } if(dj_undef("djConfig")){ var djConfig={}; } var dojo; if(dj_undef("dojo")){ dojo={}; } dojo.version={major:0,minor:2,patch:2,flag:"",revision:Number("$Rev: 2836 $".match(/[0-9]+/)[0]),toString:function(){ with(dojo.version){ return major+"."+minor+"."+patch+flag+" ("+revision+")"; } }}; dojo.evalObjPath=function(_3,_4){ if(typeof _3!="string"){ return dj_global; } if(_3.indexOf(".")==-1){ if((dj_undef(_3,dj_global))&&(_4)){ dj_global[_3]={}; } return dj_global[_3]; } var _5=_3.split(/\./); var _6=dj_global; for(var i=0;i<_5.length;++i){ if(!_4){ _6=_6[_5[i]]; if((typeof _6=="undefined")||(!_6)){ return _6; } }else{ if(dj_undef(_5[i],_6)){ _6[_5[i]]={}; } _6=_6[_5[i]]; } } return _6; }; dojo.errorToString=function(_8){ return ((!dj_undef("message",_8))?_8.message:(dj_undef("description",_8)?_8:_8.description)); }; dojo.raise=function(_9,_a){ if(_a){ _9=_9+": "+dojo.errorToString(_a); } var he=dojo.hostenv; if((!dj_undef("hostenv",dojo))&&(!dj_undef("println",dojo.hostenv))){ dojo.hostenv.println("FATAL: "+_9); } throw Error(_9); }; dj_throw=dj_rethrow=function(m,e){ dojo.deprecated("dj_throw and dj_rethrow deprecated, use dojo.raise instead"); dojo.raise(m,e); }; dojo.debug=function(){ if(!djConfig.isDebug){ return; } var _e=arguments; if(dj_undef("println",dojo.hostenv)){ dojo.raise("dojo.debug not available (yet?)"); } var _f=dj_global["jum"]&&!dj_global["jum"].isBrowser; var s=[(_f?"":"DEBUG: ")]; for(var i=0;i<_e.length;++i){ if(!false&&_e[i] instanceof Error){ var msg="["+_e[i].name+": "+dojo.errorToString(_e[i])+(_e[i].fileName?", file: "+_e[i].fileName:"")+(_e[i].lineNumber?", line: "+_e[i].lineNumber:"")+"]"; }else{ try{ var msg=String(_e[i]); } catch(e){ if(dojo.render.html.ie){ var msg="[ActiveXObject]"; }else{ var msg="[unknown]"; } } } s.push(msg); } if(_f){ jum.debug(s.join(" ")); }else{ dojo.hostenv.println(s.join(" ")); } }; dojo.debugShallow=function(obj){ if(!djConfig.isDebug){ return; } dojo.debug("------------------------------------------------------------"); dojo.debug("Object: "+obj); for(i in obj){ dojo.debug(i+": "+obj[i]); } dojo.debug("------------------------------------------------------------"); }; var dj_debug=dojo.debug; function dj_eval(s){ return dj_global.eval?dj_global.eval(s):eval(s); } dj_unimplemented=dojo.unimplemented=function(_15,_16){ var _17="'"+_15+"' not implemented"; if((!dj_undef(_16))&&(_16)){ _17+=" "+_16; } dojo.raise(_17); }; dj_deprecated=dojo.deprecated=function(_18,_19,_1a){ var _1b="DEPRECATED: "+_18; if(_19){ _1b+=" "+_19; } if(_1a){ _1b+=" -- will be removed in version: "+_1a; } dojo.debug(_1b); }; dojo.inherits=function(_1c,_1d){ if(typeof _1d!="function"){ dojo.raise("superclass: "+_1d+" borken"); } _1c.prototype=new _1d(); _1c.prototype.constructor=_1c; _1c.superclass=_1d.prototype; _1c["super"]=_1d.prototype; }; dj_inherits=function(_1e,_1f){ dojo.deprecated("dj_inherits deprecated, use dojo.inherits instead"); dojo.inherits(_1e,_1f); }; dojo.render=(function(){ function vscaffold(_20,_21){ var tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_20}; for(var x in _21){ tmp[x]=false; } return tmp; } return {name:"",ver:dojo.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])}; })(); dojo.hostenv=(function(){ var _24={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,searchIds:[],parseWidgets:true}; if(typeof djConfig=="undefined"){ djConfig=_24; }else{ for(var _25 in _24){ if(typeof djConfig[_25]=="undefined"){ djConfig[_25]=_24[_25]; } } } var djc=djConfig; function _def(obj,_28,def){ return (dj_undef(_28,obj)?def:obj[_28]); } return {name_:"(unset)",version_:"(unset)",pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{dojo:{name:"dojo",value:"src"}},setModulePrefix:function(_2a,_2b){ this.modulePrefixes_[_2a]={name:_2a,value:_2b}; },getModulePrefix:function(_2c){ var mp=this.modulePrefixes_; if((mp[_2c])&&(mp[_2c]["name"])){ return mp[_2c].value; } return _2c; },getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],getName:function(){ return this.name_; },getVersion:function(){ return this.version_; },getText:function(uri){ dojo.unimplemented("getText","uri="+uri); },getLibraryScriptUri:function(){ dojo.unimplemented("getLibraryScriptUri",""); }}; })(); dojo.hostenv.getBaseScriptUri=function(){ if(djConfig.baseScriptUri.length){ return djConfig.baseScriptUri; } var uri=new String(djConfig.libraryScriptUri||djConfig.baseRelativePath); if(!uri){ dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri); } var _30=uri.lastIndexOf("/"); djConfig.baseScriptUri=djConfig.baseRelativePath; return djConfig.baseScriptUri; }; dojo.hostenv.setBaseScriptUri=function(uri){ djConfig.baseScriptUri=uri; }; dojo.hostenv.loadPath=function(_32,_33,cb){ if((_32.charAt(0)=="/")||(_32.match(/^\w+:/))){ dojo.raise("relpath '"+_32+"'; must be relative"); } var uri=this.getBaseScriptUri()+_32; if(djConfig.cacheBust&&dojo.render.html.capable){ uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,""); } try{ return ((!_33)?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_33,cb)); } catch(e){ dojo.debug(e); return false; } }; dojo.hostenv.loadUri=function(uri,cb){ if(this.loadedUris[uri]){ return; } var _38=this.getText(uri,null,true); if(_38==null){ return 0; } this.loadedUris[uri]=true; var _39=dj_eval(_38); return 1; }; dojo.hostenv.loadUriAndCheck=function(uri,_3b,cb){ var ok=true; try{ ok=this.loadUri(uri,cb); } catch(e){ dojo.debug("failed loading ",uri," with error: ",e); } return ((ok)&&(this.findModule(_3b,false)))?true:false; }; dojo.loaded=function(){ }; dojo.hostenv.loaded=function(){ this.post_load_=true; var mll=this.modulesLoadedListeners; for(var x=0;x1){ dojo.hostenv.modulesLoadedListeners.push(function(){ obj[_41](); }); } } }; 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; } if(typeof setTimeout=="object"){ setTimeout("dojo.hostenv.loaded();",0); }else{ dojo.hostenv.loaded(); } } }; dojo.hostenv.moduleLoaded=function(_42){ var _43=dojo.evalObjPath((_42.split(".").slice(0,-1)).join(".")); this.loaded_modules_[(new String(_42)).toLowerCase()]=_43; }; dojo.hostenv._global_omit_module_check=false; dojo.hostenv.loadModule=function(_44,_45,_46){ if(!_44){ return; } _46=this._global_omit_module_check||_46; var _47=this.findModule(_44,false); if(_47){ return _47; } if(dj_undef(_44,this.loading_modules_)){ this.addedToLoadingCount.push(_44); } this.loading_modules_[_44]=1; var _48=_44.replace(/\./g,"/")+".js"; var _49=_44.split("."); var _4a=_44.split("."); for(var i=_49.length-1;i>0;i--){ var _4c=_49.slice(0,i).join("."); var _4d=this.getModulePrefix(_4c); if(_4d!=_4c){ _49.splice(0,i,_4d); break; } } var _4e=_49[_49.length-1]; if(_4e=="*"){ _44=(_4a.slice(0,-1)).join("."); while(_49.length){ _49.pop(); _49.push(this.pkgFileName); _48=_49.join("/")+".js"; if(_48.charAt(0)=="/"){ _48=_48.slice(1); } ok=this.loadPath(_48,((!_46)?_44:null)); if(ok){ break; } _49.pop(); } }else{ _48=_49.join("/")+".js"; _44=_4a.join("."); var ok=this.loadPath(_48,((!_46)?_44:null)); if((!ok)&&(!_45)){ _49.pop(); while(_49.length){ _48=_49.join("/")+".js"; ok=this.loadPath(_48,((!_46)?_44:null)); if(ok){ break; } _49.pop(); _48=_49.join("/")+"/"+this.pkgFileName+".js"; if(_48.charAt(0)=="/"){ _48=_48.slice(1); } ok=this.loadPath(_48,((!_46)?_44:null)); if(ok){ break; } } } if((!ok)&&(!_46)){ dojo.raise("Could not load '"+_44+"'; last tried '"+_48+"'"); } } if(!_46){ _47=this.findModule(_44,false); if(!_47){ dojo.raise("symbol '"+_44+"' is not defined after loading '"+_48+"'"); } } return _47; }; dojo.hostenv.startPackage=function(_50){ var _51=_50.split(/\./); if(_51[_51.length-1]=="*"){ _51.pop(); } return dojo.evalObjPath(_51.join("."),true); }; dojo.hostenv.findModule=function(_52,_53){ var lmn=(new String(_52)).toLowerCase(); if(this.loaded_modules_[lmn]){ return this.loaded_modules_[lmn]; } var _55=dojo.evalObjPath(_52); if((_52)&&(typeof _55!="undefined")&&(_55)){ this.loaded_modules_[lmn]=_55; return _55; } if(_53){ dojo.raise("no loaded module named '"+_52+"'"); } return null; }; if(typeof window=="undefined"){ dojo.raise("no window object"); } (function(){ if(djConfig.allowQueryConfig){ var _56=document.location.toString(); var _57=_56.split("?",2); if(_57.length>1){ var _58=_57[1]; var _59=_58.split("&"); for(var x in _59){ var sp=_59[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 _5d=document.getElementsByTagName("script"); var _5e=/(__package__|dojo)\.js([\?\.]|$)/i; for(var i=0;i<_5d.length;i++){ var src=_5d[i].getAttribute("src"); if(!src){ continue; } var m=src.match(_5e); if(m){ root=src.substring(0,m.index); if(!this["djConfig"]){ djConfig={}; } if(djConfig["baseScriptUri"]==""){ djConfig["baseScriptUri"]=root; } if(djConfig["baseRelativePath"]==""){ djConfig["baseRelativePath"]=root; } break; } } } var dr=dojo.render; var drh=dojo.render.html; 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 _68=dua.indexOf("Gecko"); drh.mozilla=drh.moz=(_68>=0)&&(!drh.khtml); if(drh.mozilla){ drh.geckoVersion=dua.substring(_68+6,_68+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; dr.vml.capable=drh.ie; dr.svg.capable=f; dr.svg.support.plugin=f; dr.svg.support.builtin=f; dr.svg.adobe=f; if(document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg","1.0")){ dr.svg.capable=t; dr.svg.support.builtin=t; dr.svg.support.plugin=f; dr.svg.adobe=f; }else{ if(navigator.mimeTypes&&navigator.mimeTypes.length>0){ var _69=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"]; if(_69){ dr.svg.adobe=_69&&_69.enabledPlugin&&_69.enabledPlugin.description&&(_69.enabledPlugin.description.indexOf("Adobe")>-1); if(dr.svg.adobe){ dr.svg.capable=t; dr.svg.support.plugin=t; } } }else{ if(drh.ie&&dr.os.win){ var _69=f; try{ var _6a=new ActiveXObject("Adobe.SVGCtl"); _69=t; } catch(e){ } if(_69){ dr.svg.capable=t; dr.svg.support.plugin=t; dr.svg.adobe=t; } }else{ dr.svg.capable=f; dr.svg.support.plugin=f; dr.svg.adobe=f; } } } })(); dojo.hostenv.startPackage("dojo.hostenv"); dojo.hostenv.name_="browser"; dojo.hostenv.searchIds=[]; var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"]; dojo.hostenv.getXmlhttpObject=function(){ var _6b=null; var _6c=null; try{ _6b=new XMLHttpRequest(); } catch(e){ } if(!_6b){ for(var i=0;i<3;++i){ var _6e=DJ_XMLHTTP_PROGIDS[i]; try{ _6b=new ActiveXObject(_6e); } catch(e){ _6c=e; } if(_6b){ DJ_XMLHTTP_PROGIDS=[_6e]; break; } } } if(!_6b){ return dojo.raise("XMLHTTP not available",_6c); } return _6b; }; dojo.hostenv.getText=function(uri,_70,_71){ var _72=this.getXmlhttpObject(); if(_70){ _72.onreadystatechange=function(){ if((4==_72.readyState)&&(_72["status"])){ if(_72.status==200){ _70(_72.responseText); } } }; } _72.open("GET",uri,_70?true:false); _72.send(null); if(_70){ return null; } return _72.responseText; }; dojo.hostenv.defaultDebugContainerId="dojoDebug"; dojo.hostenv._println_buffer=[]; dojo.hostenv._println_safe=false; dojo.hostenv.println=function(_73){ if(!dojo.hostenv._println_safe){ dojo.hostenv._println_buffer.push(_73); }else{ try{ var _74=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId); if(!_74){ _74=document.getElementsByTagName("body")[0]||document.body; } var div=document.createElement("div"); div.appendChild(document.createTextNode(_73)); _74.appendChild(div); } catch(e){ try{ document.write("
"+_73+"
"); } catch(e2){ window.status=_73; } } } }; 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(_76,_77,fp,_79){ var _7a=_76["on"+_77]||function(){ }; _76["on"+_77]=function(){ fp.apply(_76,arguments); _7a.apply(_76,arguments); }; return true; } dj_addNodeEvtHdlr(window,"load",function(){ if(dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } dojo.hostenv.modulesLoaded(); }); dojo.hostenv.makeWidgets=function(){ var _7b=[]; if(djConfig.searchIds&&djConfig.searchIds.length>0){ _7b=_7b.concat(djConfig.searchIds); } if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){ _7b=_7b.concat(dojo.hostenv.searchIds); } if((djConfig.parseWidgets)||(_7b.length>0)){ if(dojo.evalObjPath("dojo.widget.Parse")){ try{ var _7c=new dojo.xml.Parse(); if(_7b.length>0){ for(var x=0;x<_7b.length;x++){ var _7e=document.getElementById(_7b[x]); if(!_7e){ continue; } var _7f=_7c.parseElement(_7e,null,true); dojo.widget.getParser().createComponents(_7f); } }else{ if(djConfig.parseWidgets){ var _7f=_7c.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true); dojo.widget.getParser().createComponents(_7f); } } } catch(e){ dojo.debug("auto-build-widgets error:",e); } } } }; dojo.hostenv.modulesLoadedListeners.push(function(){ if(!dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }); try{ if(dojo.render.html.ie){ document.write(""); document.write(""); } } catch(e){ } dojo.hostenv.writeIncludes=function(){ }; dojo.hostenv.byId=dojo.byId=function(id,doc){ if(typeof id=="string"||id instanceof String){ if(!doc){ doc=document; } return doc.getElementById(id); } return id; }; dojo.hostenv.byIdArray=dojo.byIdArray=function(){ var ids=[]; for(var i=0;i=0;i--){ if(arr[i]===val){ return i; } } }else{ for(var i=arr.length-1;i>=0;i--){ if(arr[i]==val){ return i; } } } return -1; }; dojo.lang.lastIndexOf=dojo.lang.findLast; dojo.lang.inArray=function(arr,val){ return dojo.lang.find(arr,val)>-1; }; dojo.lang.getNameInObj=function(ns,_d4){ if(!ns){ ns=dj_global; } for(var x in ns){ if(ns[x]===_d4){ return new String(x); } } return null; }; dojo.lang.has=function(obj,_d7){ return (typeof obj[_d7]!=="undefined"); }; dojo.lang.isEmpty=function(obj){ if(dojo.lang.isObject(obj)){ var tmp={}; var _da=0; for(var x in obj){ if(obj[x]&&(!tmp[x])){ _da++; break; } } return (_da==0); }else{ if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){ return obj.length==0; } } }; dojo.lang.forEach=function(arr,_dd,_de){ var _df=dojo.lang.isString(arr); if(_df){ arr=arr.split(""); } var il=arr.length; for(var i=0;i<((_de)?il:arr.length);i++){ if(_dd(arr[i],i,arr)=="break"){ break; } } }; dojo.lang.map=function(arr,obj,_e4){ var _e5=dojo.lang.isString(arr); if(_e5){ arr=arr.split(""); } if(dojo.lang.isFunction(obj)&&(!_e4)){ _e4=obj; obj=dj_global; }else{ if(dojo.lang.isFunction(obj)&&_e4){ var _e6=obj; obj=_e4; _e4=_e6; } } if(Array.map){ var _e7=Array.map(arr,_e4,obj); }else{ var _e7=[]; for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _f3=dj_global; } for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _f8=dj_global; } for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _fd=dj_global; } var _ff=[]; for(var i=0;i5)&&(_122[x].indexOf("dojo-")>=0)){ return "dojo:"+_122[x].substr(5).toLowerCase(); } } } } } return _11f.toLowerCase(); }; dojo.dom.getUniqueId=function(){ do{ var id="dj_unique_"+(++arguments.callee._idIncrement); }while(document.getElementById(id)); return id; }; dojo.dom.getUniqueId._idIncrement=0; dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_125,_126){ var node=_125.firstChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.nextSibling; } if(_126&&node&&node.tagName&&node.tagName.toLowerCase()!=_126.toLowerCase()){ node=dojo.dom.nextElement(node,_126); } return node; }; dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_128,_129){ var node=_128.lastChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.previousSibling; } if(_129&&node&&node.tagName&&node.tagName.toLowerCase()!=_129.toLowerCase()){ node=dojo.dom.prevElement(node,_129); } return node; }; dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_12c){ if(!node){ return null; } do{ node=node.nextSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_12c&&_12c.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.nextElement(node,_12c); } return node; }; dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_12e){ if(!node){ return null; } if(_12e){ _12e=_12e.toLowerCase(); } do{ node=node.previousSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_12e&&_12e.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.prevElement(node,_12e); } return node; }; dojo.dom.moveChildren=function(_12f,_130,trim){ var _132=0; if(trim){ while(_12f.hasChildNodes()&&_12f.firstChild.nodeType==dojo.dom.TEXT_NODE){ _12f.removeChild(_12f.firstChild); } while(_12f.hasChildNodes()&&_12f.lastChild.nodeType==dojo.dom.TEXT_NODE){ _12f.removeChild(_12f.lastChild); } } while(_12f.hasChildNodes()){ _130.appendChild(_12f.firstChild); _132++; } return _132; }; dojo.dom.copyChildren=function(_133,_134,trim){ var _136=_133.cloneNode(true); return this.moveChildren(_136,_134,trim); }; dojo.dom.removeChildren=function(node){ var _138=node.childNodes.length; while(node.hasChildNodes()){ node.removeChild(node.firstChild); } return _138; }; dojo.dom.replaceChildren=function(node,_13a){ dojo.dom.removeChildren(node); node.appendChild(_13a); }; dojo.dom.removeNode=function(node){ if(node&&node.parentNode){ return node.parentNode.removeChild(node); } }; dojo.dom.getAncestors=function(node,_13d,_13e){ var _13f=[]; var _140=dojo.lang.isFunction(_13d); while(node){ if(!_140||_13d(node)){ _13f.push(node); } if(_13e&&_13f.length>0){ return _13f[0]; } node=node.parentNode; } if(_13e){ return null; } return _13f; }; dojo.dom.getAncestorsByTag=function(node,tag,_143){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_143); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_148,_149){ if(_149&&node){ node=node.parentNode; } while(node){ if(node==_148){ return true; } node=node.parentNode; } return false; }; dojo.dom.innerXML=function(node){ if(node.innerXML){ return node.innerXML; }else{ if(typeof XMLSerializer!="undefined"){ return (new XMLSerializer()).serializeToString(node); } } }; dojo.dom.createDocumentFromText=function(str,_14c){ if(!_14c){ _14c="text/xml"; } if(typeof DOMParser!="undefined"){ var _14d=new DOMParser(); return _14d.parseFromString(str,_14c); }else{ if(typeof ActiveXObject!="undefined"){ var _14e=new ActiveXObject("Microsoft.XMLDOM"); if(_14e){ _14e.async=false; _14e.loadXML(str); return _14e; }else{ dojo.debug("toXml didn't work?"); } }else{ if(document.createElement){ var tmp=document.createElement("xml"); tmp.innerHTML=str; if(document.implementation&&document.implementation.createDocument){ var _150=document.implementation.createDocument("foo","",null); for(var i=0;i2)?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 _18a=dojo.lang.nameAnonFunc(args[2],ao.adviceObj); ao.adviceFunc=_18a; }else{ if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=dj_global; var _18a=dojo.lang.nameAnonFunc(args[0],ao.srcObj); ao.srcFunc=_18a; 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 _18a=dojo.lang.nameAnonFunc(args[1],dj_global); ao.srcFunc=_18a; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }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((typeof ao.srcFunc).toLowerCase()!="string"){ ao.srcFunc=dojo.lang.getNameInObj(ao.srcObj,ao.srcFunc); } if((typeof ao.adviceFunc).toLowerCase()!="string"){ ao.adviceFunc=dojo.lang.getNameInObj(ao.adviceObj,ao.adviceFunc); } if((ao.aroundObj)&&((typeof ao.aroundFunc).toLowerCase()!="string")){ ao.aroundFunc=dojo.lang.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); } return ao; } this.connect=function(){ var ao=interpolateArgs(arguments); 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.connectBefore=function(){ var args=["before"]; for(var i=0;i=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,_1a2){ this.object=obj||dj_global; this.methodname=_1a2; this.methodfunc=this.object[_1a2]; this.before=[]; this.after=[]; this.around=[]; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_1a4){ if(!obj){ obj=dj_global; } if(!obj[_1a4]){ obj[_1a4]=function(){ }; }else{ if((!dojo.lang.isFunction(obj[_1a4]))&&(!dojo.lang.isAlien(obj[_1a4]))){ return null; } } var _1a5=_1a4+"$joinpoint"; var _1a6=_1a4+"$joinpoint$method"; var _1a7=obj[_1a5]; if(!_1a7){ var _1a8=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _1a8=true; dojo.event.browser.addClobberNodeAttrs(obj,[_1a5,_1a6,_1a4]); } } obj[_1a6]=obj[_1a4]; _1a7=obj[_1a5]=new dojo.event.MethodJoinPoint(obj,_1a6); obj[_1a4]=function(){ var args=[]; if((_1a8)&&(!arguments.length)&&(window.event)){ args.push(dojo.event.browser.fixEvent(window.event)); }else{ for(var x=0;x0){ dojo.lang.forEach(this.before,_1af,true); } var _1bf; if(this.around.length>0){ var mi=new dojo.event.MethodInvocation(this,obj,args); _1bf=mi.proceed(); }else{ if(this.methodfunc){ _1bf=this.object[this.methodname].apply(this.object,args); } } if(this.after.length>0){ dojo.lang.forEach(this.after,_1af,true); } return (this.methodfunc)?_1bf: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(_1c4,_1c5,_1c6,_1c7,_1c8,_1c9,once,_1cb,rate,_1cd){ var arr=this.getArr(_1c8); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_1c4,_1c5,_1c6,_1c7,_1cb,rate,_1cd]; if(once){ if(this.hasAdvice(_1c4,_1c5,_1c8,arr)>=0){ return; } } if(_1c9=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_1d0,_1d1,_1d2,arr){ if(!arr){ arr=this.getArr(_1d2); } var ind=-1; for(var x=0;x=0;i=i-1){ var el=na[i]; if(el["__clobberAttrs__"]){ for(var j=0;j=0;x--){ try{ this.widgets[x].destroy(true); delete this.widgets[x]; } catch(e){ } } }; this.remove=function(_221){ var tw=this.widgets[_221].widgetId; delete this.widgetIds[tw]; this.widgets.splice(_221,1); }; this.removeById=function(id){ for(var i=0;i0){ return _244[n]; } return _244; }; dojo.widget.registerWidgetPackage=function(){ return dojo.widget.manager.registerWidgetPackage.apply(dojo.widget.manager,arguments); }; dojo.widget.getWidgetImplementation=function(){ return dojo.widget.manager.getImplementation.apply(dojo.widget.manager,arguments); }; dojo.widget.getWidgetImplementationName=function(){ return dojo.widget.manager.getImplementationName.apply(dojo.widget.manager,arguments); }; dojo.widget.widgets=dojo.widget.manager.widgets; dojo.widget.widgetIds=dojo.widget.manager.widgetIds; dojo.widget.root=dojo.widget.manager.root; dojo.provide("dojo.string"); dojo.require("dojo.lang"); dojo.string.trim=function(str,wh){ if(!dojo.lang.isString(str)){ return str; } if(!str.length){ return str; } if(wh>0){ return str.replace(/^\s+/,""); }else{ if(wh<0){ return str.replace(/\s+$/,""); }else{ return str.replace(/^\s+|\s+$/g,""); } } }; dojo.string.trimStart=function(str){ return dojo.string.trim(str,1); }; dojo.string.trimEnd=function(str){ return dojo.string.trim(str,-1); }; dojo.string.paramString=function(str,_24a,_24b){ for(var name in _24a){ var re=new RegExp("\\%\\{"+name+"\\}","g"); str=str.replace(re,_24a[name]); } if(_24b){ str=str.replace(/%\{([^\}\s]+)\}/g,""); } return str; }; dojo.string.capitalize=function(str){ if(!dojo.lang.isString(str)){ return ""; } if(arguments.length==0){ str=this; } var _24f=str.split(" "); var _250=""; var len=_24f.length; for(var i=0;i/gm,">").replace(/"/gm,"""); if(!_262){ 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.repeat=function(str,_267,_268){ var out=""; for(var i=0;i<_267;i++){ out+=str; if(_268&&i<_267-1){ out+=_268; } } return out; }; dojo.string.endsWith=function(str,end,_26d){ if(_26d){ str=str.toLowerCase(); end=end.toLowerCase(); } 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.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.string.normalizeNewlines=function(text,_283){ if(_283=="\n"){ text=text.replace(/\r\n/g,"\n"); text=text.replace(/\r/g,"\n"); }else{ if(_283=="\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,_285){ var _286=[]; for(var i=0,prevcomma=0;isi)){ this[x][dojo.string.trim(_2a8[y].substr(0,si))]=_2a8[y].substr(si+1); } } }else{ this[x]=args[x]; } } } } } } } } }else{ this.extraArgs[x]=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(){ dj_unimplemented("dojo.widget.Widget.buildRendering, on "+this.toString()+", "); return false; },destroyRendering:function(){ dj_unimplemented("dojo.widget.Widget.destroyRendering"); return false; },cleanUp:function(){ dj_unimplemented("dojo.widget.Widget.cleanUp"); return false; },addedTo:function(_2b0){ },addChild:function(_2b1){ dj_unimplemented("dojo.widget.Widget.addChild"); return false; },addChildAtIndex:function(_2b2,_2b3){ dj_unimplemented("dojo.widget.Widget.addChildAtIndex"); return false; },removeChild:function(_2b4){ dj_unimplemented("dojo.widget.Widget.removeChild"); return false; },removeChildAtIndex:function(_2b5){ dj_unimplemented("dojo.widget.Widget.removeChildAtIndex"); return false; },resize:function(_2b6,_2b7){ this.setWidth(_2b6); this.setHeight(_2b7); },setWidth:function(_2b8){ if((typeof _2b8=="string")&&(_2b8.substr(-1)=="%")){ this.setPercentageWidth(_2b8); }else{ this.setNativeWidth(_2b8); } },setHeight:function(_2b9){ if((typeof _2b9=="string")&&(_2b9.substr(-1)=="%")){ this.setPercentageHeight(_2b9); }else{ this.setNativeHeight(_2b9); } },setPercentageHeight:function(_2ba){ return false; },setNativeHeight:function(_2bb){ return false; },setPercentageWidth:function(_2bc){ return false; },setNativeWidth:function(_2bd){ return false; },getDescendants:function(){ var _2be=[]; var _2bf=[this]; var elem; while(elem=_2bf.pop()){ _2be.push(elem); dojo.lang.forEach(elem.children,function(elem){ _2bf.push(elem); }); } return _2be; }}); dojo.widget.lcArgsCache={}; dojo.widget.tags={}; dojo.widget.tags.addParseTreeHandler=function(type){ var _2c3=type.toLowerCase(); this[_2c3]=function(_2c4,_2c5,_2c6,_2c7,_2c8){ return dojo.widget.buildWidgetFromParseTree(_2c3,_2c4,_2c5,_2c6,_2c7,_2c8); }; }; dojo.widget.tags.addParseTreeHandler("dojo:widget"); dojo.widget.tags["dojo:propertyset"]=function(_2c9,_2ca,_2cb){ var _2cc=_2ca.parseProperties(_2c9["dojo:propertyset"]); }; dojo.widget.tags["dojo:connect"]=function(_2cd,_2ce,_2cf){ var _2d0=_2ce.parseProperties(_2cd["dojo:connect"]); }; dojo.widget.buildWidgetFromParseTree=function(type,frag,_2d3,_2d4,_2d5,_2d6){ var _2d7=type.split(":"); _2d7=(_2d7.length==2)?_2d7[1]:type; var _2d8=_2d6||_2d3.parseProperties(frag["dojo:"+_2d7]); var _2d9=dojo.widget.manager.getImplementation(_2d7); if(!_2d9){ throw new Error("cannot find \""+_2d7+"\" widget"); }else{ if(!_2d9.create){ throw new Error("\""+_2d7+"\" widget object does not appear to implement *Widget"); } } _2d8["dojoinsertionindex"]=_2d5; var ret=_2d9.create(_2d8,frag,_2d4); return ret; }; dojo.provide("dojo.widget.Parse"); dojo.require("dojo.widget.Manager"); dojo.require("dojo.string"); dojo.require("dojo.dom"); dojo.widget.Parse=function(_2db){ this.propertySetsList=[]; this.fragment=_2db; this.createComponents=function(_2dc,_2dd){ var _2de=dojo.widget.tags; var _2df=[]; for(var item in _2dc){ var _2e1=false; try{ if(_2dc[item]&&(_2dc[item]["tagName"])&&(_2dc[item]!=_2dc["nodeRef"])){ var tn=new String(_2dc[item]["tagName"]); var tna=tn.split(";"); for(var x=0;x0&&!(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; } } } } _31c.path=segs.join("/"); } } } } uri=""; if(_31c.scheme!=null){ uri+=_31c.scheme+":"; } if(_31c.authority!=null){ uri+="//"+_31c.authority; } uri+=_31c.path; if(_31c.query!=null){ uri+="?"+_31c.query; } if(_31c.fragment!=null){ uri+="#"+_31c.fragment; } } this.uri=uri.toString(); var _321="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_321)); 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){ _321="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_321)); 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.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]}); dojo.hostenv.moduleLoaded("dojo.uri.*"); dojo.provide("dojo.widget.DomWidget"); dojo.require("dojo.event.*"); dojo.require("dojo.string"); dojo.require("dojo.widget.Widget"); dojo.require("dojo.dom"); dojo.require("dojo.xml.Parse"); dojo.require("dojo.uri.*"); dojo.widget._cssFiles={}; dojo.widget.defaultStrings={dojoRoot:dojo.hostenv.getBaseScriptUri(),baseScriptUri:dojo.hostenv.getBaseScriptUri()}; dojo.widget.buildFromTemplate=function(obj,_324,_325,_326){ var _327=_324||obj.templatePath; var _328=_325||obj.templateCssPath; if(!_328&&obj.templateCSSPath){ obj.templateCssPath=_328=obj.templateCSSPath; obj.templateCSSPath=null; dj_deprecated("templateCSSPath is deprecated, use templateCssPath"); } if(_327&&!(_327 instanceof dojo.uri.Uri)){ _327=dojo.uri.dojoUri(_327); dj_deprecated("templatePath should be of type dojo.uri.Uri"); } if(_328&&!(_328 instanceof dojo.uri.Uri)){ _328=dojo.uri.dojoUri(_328); dj_deprecated("templateCssPath should be of type dojo.uri.Uri"); } var _329=dojo.widget.DomWidget.templates; if(!obj["widgetType"]){ do{ var _32a="__dummyTemplate__"+dojo.widget.buildFromTemplate.dummyCount++; }while(_329[_32a]); obj.widgetType=_32a; } if((_328)&&(!dojo.widget._cssFiles[_328])){ dojo.html.insertCssFile(_328); obj.templateCssPath=null; dojo.widget._cssFiles[_328]=true; } var ts=_329[obj.widgetType]; if(!ts){ _329[obj.widgetType]={}; ts=_329[obj.widgetType]; } if(!obj.templateString){ obj.templateString=_326||ts["string"]; } if(!obj.templateNode){ obj.templateNode=ts["node"]; } if((!obj.templateNode)&&(!obj.templateString)&&(_327)){ var _32c=dojo.hostenv.getText(_327); if(_32c){ var _32d=_32c.match(/]*>\s*([\s\S]+)\s*<\/body>/im); if(_32d){ _32c=_32d[1]; } }else{ _32c=""; } obj.templateString=_32c; ts.string=_32c; } if(!ts["string"]){ ts.string=obj.templateString; } }; dojo.widget.buildFromTemplate.dummyCount=0; dojo.widget.attachProperties=["dojoAttachPoint","id"]; dojo.widget.eventAttachProperty="dojoAttachEvent"; dojo.widget.onBuildProperty="dojoOnBuild"; dojo.widget.attachTemplateNodes=function(_32e,_32f,_330){ var _331=dojo.dom.ELEMENT_NODE; if(!_32e){ _32e=_32f.domNode; } if(_32e.nodeType!=_331){ return; } var _332=_32e.getElementsByTagName("*"); var _333=_32f; for(var x=-1;x<_332.length;x++){ var _335=(x==-1)?_32e:_332[x]; var _336=[]; for(var y=0;y=0){ var _33f=tevt.split(":"); tevt=dojo.string.trim(_33f[0]); _33d=dojo.string.trim(_33f[1]); } if(!_33d){ _33d=tevt; } var tf=function(){ var ntf=new String(_33d); return function(evt){ if(_333[ntf]){ _333[ntf](dojo.event.browser.fixEvent(evt)); } }; }(); dojo.event.browser.addListener(_335,tevt,tf,false,true); } } for(var y=0;y<_330.length;y++){ var _343=_335.getAttribute(_330[y]); if((_343)&&(_343.length)){ var _33d=null; var _344=_330[y].substr(4); _33d=dojo.string.trim(_343); var tf=function(){ var ntf=new String(_33d); return function(evt){ if(_333[ntf]){ _333[ntf](dojo.event.browser.fixEvent(evt)); } }; }(); dojo.event.browser.addListener(_335,_344,tf,false,true); } } var _347=_335.getAttribute(this.onBuildProperty); if(_347){ eval("var node = baseNode; var widget = targetObj; "+_347); } _335.id=""; } }; 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]); } }; dojo.inherits(dojo.widget.DomWidget,dojo.widget.Widget); dojo.lang.extend(dojo.widget.DomWidget,{templateNode:null,templateString:null,preventClobber:false,domNode:null,containerNode:null,addChild:function(_355,_356,pos,ref,_359){ if(!this.isContainer){ dojo.debug("dojo.widget.DomWidget.addChild() attempted on non-container widget"); return null; }else{ this.addWidgetAsDirectChild(_355,_356,pos,ref,_359); this.registerChild(_355,_359); } return _355; },addWidgetAsDirectChild:function(_35a,_35b,pos,ref,_35e){ if((!this.containerNode)&&(!_35b)){ this.containerNode=this.domNode; } var cn=(_35b)?_35b:this.containerNode; if(!pos){ pos="after"; } if(!ref){ ref=cn.lastChild; } if(!_35e){ _35e=0; } _35a.domNode.setAttribute("dojoinsertionindex",_35e); if(!ref){ cn.appendChild(_35a.domNode); }else{ if(pos=="insertAtIndex"){ dojo.dom.insertAtIndex(_35a.domNode,ref.parentNode,_35e); }else{ if((pos=="after")&&(ref===cn.lastChild)){ cn.appendChild(_35a.domNode); }else{ dojo.dom.insertAtPosition(_35a.domNode,cn,pos); } } } },registerChild:function(_360,_361){ _360.dojoInsertionIndex=_361; var idx=-1; for(var i=0;i=1); k=Math.sqrt((-2*Math.log(k))/k); return i*k; }; dojo.math.mean=function(){ var _391=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0; for(var i=0;i<_391.length;i++){ mean+=_391[i]; } return mean/_391.length; }; dojo.math.round=function(_394,_395){ if(!_395){ var _396=1; }else{ var _396=Math.pow(10,_395); } return Math.round(_394*_396)/_396; }; dojo.math.sd=function(){ var _397=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; return Math.sqrt(dojo.math.variance(_397)); }; dojo.math.variance=function(){ var _398=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0,squares=0; for(var i=0;i<_398.length;i++){ mean+=_398[i]; squares+=Math.pow(_398[i],2); } return (squares/_398.length)-Math.pow(mean/_398.length,2); }; dojo.math.range=function(a,b,step){ if(arguments.length<2){ b=a; a=0; } if(arguments.length<3){ step=1; } var _39e=[]; if(step>0){ for(var i=a;ib;i+=step){ _39e.push(i); } }else{ throw new Error("dojo.math.range: step must be non-zero"); } } return _39e; }; dojo.provide("dojo.graphics.color"); dojo.require("dojo.lang"); dojo.require("dojo.string"); dojo.require("dojo.math"); 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.lang.extend(dojo.graphics.color.Color,{toRgb:function(_3a5){ if(_3a5){ 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(); },toHsv:function(){ return dojo.graphics.color.rgb2hsv(this.toRgb()); },toHsl:function(){ return dojo.graphics.color.rgb2hsl(this.toRgb()); },blend:function(_3a6,_3a7){ return dojo.graphics.color.blend(this.toRgb(),new Color(_3a6).toRgb(),_3a7); }}); 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,_3aa){ if(typeof a=="string"){ return dojo.graphics.color.blendHex(a,b,_3aa); } if(!_3aa){ _3aa=0; }else{ if(_3aa>1){ _3aa=1; }else{ if(_3aa<-1){ _3aa=-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*_3aa)); } return c; }; dojo.graphics.color.blendHex=function(a,b,_3b0){ return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_3b0)); }; dojo.graphics.color.extractRGB=function(_3b1){ var hex="0123456789abcdef"; _3b1=_3b1.toLowerCase(); if(_3b1.indexOf("rgb")==0){ var _3b3=_3b1.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_3b3.splice(1,3); return ret; }else{ var _3b5=dojo.graphics.color.hex2rgb(_3b1); if(_3b5){ return _3b5; }else{ return dojo.graphics.color.named[_3b1]||[255,255,255]; } } }; dojo.graphics.color.hex2rgb=function(hex){ var _3b7="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_3b7+"]","g"),"")!=""){ return null; } if(hex.length==3){ rgb[0]=hex.charAt(0)+hex.charAt(0); rgb[1]=hex.charAt(1)+hex.charAt(1); rgb[2]=hex.charAt(2)+hex.charAt(2); }else{ rgb[0]=hex.substring(0,2); rgb[1]=hex.substring(2,4); rgb[2]=hex.substring(4); } for(var i=0;i0)&&(l<1)){ s=_3d9/((l<0.5)?(2*l):(2-2*l)); } h=0; if(_3d9>0){ if((max==r)&&(max!=g)){ h+=(g-b)/_3d9; } if((max==g)&&(max!=b)){ h+=(2+(b-r)/_3d9); } if((max==b)&&(max!=r)){ h+=(4+(r-g)/_3d9); } h*=60; } h=(h==0)?360:Math.ceil((h/360)*255); s=Math.ceil(s*255); l=Math.ceil(l*255); return [h,s,l]; }; dojo.graphics.color.hsl2rgb=function(h,s,l){ if(dojo.lang.isArray(h)){ l=h[2]||0; s=h[1]||0; h=h[0]||0; } h=(h/255)*360; if(h==360){ h=0; } s=s/255; l=l/255; while(h<0){ h+=360; } while(h>360){ h-=360; } if(h<120){ r=(120-h)/60; g=h/60; b=0; }else{ if(h<240){ r=0; g=(240-h)/60; b=(h-120)/60; }else{ r=(h-240)/60; g=0; b=(360-h)/60; } } r=Math.min(r,1); g=Math.min(g,1); b=Math.min(b,1); r=2*s*r+(1-s); g=2*s*g+(1-s); b=2*s*b+(1-s); if(l<0.5){ r=l*r; g=l*g; b=l*b; }else{ r=(1-l)*r+2*l-1; g=(1-l)*g+2*l-1; b=(1-l)*b+2*l-1; } r=Math.ceil(r*255); g=Math.ceil(g*255); b=Math.ceil(b*255); return [r,g,b]; }; dojo.graphics.color.hsl2hex=function(h,s,l){ var rgb=dojo.graphics.color.hsl2rgb(h,s,l); return dojo.graphics.color.rgb2hex(rgb[0],rgb[1],rgb[2]); }; dojo.graphics.color.hex2hsl=function(hex){ var rgb=dojo.graphics.color.hex2rgb(hex); return dojo.graphics.color.rgb2hsl(rgb[0],rgb[1],rgb[2]); }; dojo.provide("dojo.style"); dojo.require("dojo.dom"); dojo.require("dojo.uri.Uri"); dojo.require("dojo.graphics.color"); dojo.style.boxSizing={marginBox:"margin-box",borderBox:"border-box",paddingBox:"padding-box",contentBox:"content-box"}; dojo.style.getBoxSizing=function(node){ if(dojo.render.html.ie||dojo.render.html.opera){ var cm=document["compatMode"]; if(cm=="BackCompat"||cm=="QuirksMode"){ return dojo.style.boxSizing.borderBox; }else{ return dojo.style.boxSizing.contentBox; } }else{ if(arguments.length==0){ node=document.documentElement; } var _3e5=dojo.style.getStyle(node,"-moz-box-sizing"); if(!_3e5){ _3e5=dojo.style.getStyle(node,"box-sizing"); } return (_3e5?_3e5:dojo.style.boxSizing.contentBox); } }; dojo.style.isBorderBox=function(node){ return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox); }; dojo.style.getUnitValue=function(_3e7,_3e8,_3e9){ var _3ea={value:0,units:"px"}; var s=dojo.style.getComputedStyle(_3e7,_3e8); if(s==""||(s=="auto"&&_3e9)){ return _3ea; } if(dojo.lang.isUndefined(s)){ _3ea.value=NaN; }else{ var _3ec=s.match(/([\d.]+)([a-z%]*)/i); if(!_3ec){ _3ea.value=NaN; }else{ _3ea.value=Number(_3ec[1]); _3ea.units=_3ec[2].toLowerCase(); } } return _3ea; }; dojo.style.getPixelValue=function(_3ed,_3ee,_3ef){ var _3f0=dojo.style.getUnitValue(_3ed,_3ee,_3ef); if(isNaN(_3f0.value)){ return 0; } if((_3f0.value)&&(_3f0.units!="px")){ return NaN; } return _3f0.value; }; dojo.style.getNumericStyle=dojo.style.getPixelValue; dojo.style.isPositionAbsolute=function(node){ return (dojo.style.getComputedStyle(node,"position")=="absolute"); }; dojo.style.getMarginWidth=function(node){ var _3f3=dojo.style.isPositionAbsolute(node); var left=dojo.style.getPixelValue(node,"margin-left",_3f3); var _3f5=dojo.style.getPixelValue(node,"margin-right",_3f3); return left+_3f5; }; dojo.style.getBorderWidth=function(node){ var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width")); var _3f8=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width")); return left+_3f8; }; dojo.style.getPaddingWidth=function(node){ var left=dojo.style.getPixelValue(node,"padding-left",true); var _3fb=dojo.style.getPixelValue(node,"padding-right",true); return left+_3fb; }; dojo.style.getContentWidth=function(node){ return node.offsetWidth-dojo.style.getPaddingWidth(node)-dojo.style.getBorderWidth(node); }; dojo.style.getInnerWidth=function(node){ return node.offsetWidth; }; dojo.style.getOuterWidth=function(node){ return dojo.style.getInnerWidth(node)+dojo.style.getMarginWidth(node); }; dojo.style.setOuterWidth=function(node,_400){ if(!dojo.style.isBorderBox(node)){ _400-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } _400-=dojo.style.getMarginWidth(node); if(!isNaN(_400)&&_400>0){ node.style.width=_400+"px"; return true; }else{ return false; } }; dojo.style.getContentBoxWidth=dojo.style.getContentWidth; dojo.style.getBorderBoxWidth=dojo.style.getInnerWidth; dojo.style.getMarginBoxWidth=dojo.style.getOuterWidth; dojo.style.setMarginBoxWidth=dojo.style.setOuterWidth; dojo.style.getMarginHeight=function(node){ var _402=dojo.style.isPositionAbsolute(node); var top=dojo.style.getPixelValue(node,"margin-top",_402); var _404=dojo.style.getPixelValue(node,"margin-bottom",_402); return top+_404; }; dojo.style.getBorderHeight=function(node){ var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width")); var _407=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width")); return top+_407; }; dojo.style.getPaddingHeight=function(node){ var top=dojo.style.getPixelValue(node,"padding-top",true); var _40a=dojo.style.getPixelValue(node,"padding-bottom",true); return top+_40a; }; dojo.style.getContentHeight=function(node){ return node.offsetHeight-dojo.style.getPaddingHeight(node)-dojo.style.getBorderHeight(node); }; dojo.style.getInnerHeight=function(node){ return node.offsetHeight; }; dojo.style.getOuterHeight=function(node){ return dojo.style.getInnerHeight(node)+dojo.style.getMarginHeight(node); }; dojo.style.setOuterHeight=function(node,_40f){ if(!dojo.style.isBorderBox(node)){ _40f-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } _40f-=dojo.style.getMarginHeight(node); if(!isNaN(_40f)&&_40f>0){ node.style.height=_40f+"px"; return true; }else{ return false; } }; dojo.style.setContentWidth=function(node,_411){ if(dojo.style.isBorderBox(node)){ _411+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } if(!isNaN(_411)&&_411>0){ node.style.width=_411+"px"; return true; }else{ return false; } }; dojo.style.setContentHeight=function(node,_413){ if(dojo.style.isBorderBox(node)){ _413+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } if(!isNaN(_413)&&_413>0){ node.style.height=_413+"px"; return true; }else{ return false; } }; dojo.style.getContentBoxHeight=dojo.style.getContentHeight; dojo.style.getBorderBoxHeight=dojo.style.getInnerHeight; dojo.style.getMarginBoxHeight=dojo.style.getOuterHeight; dojo.style.setMarginBoxHeight=dojo.style.setOuterHeight; dojo.style.getTotalOffset=function(node,type,_416){ var _417=(type=="top")?"offsetTop":"offsetLeft"; var _418=(type=="top")?"scrollTop":"scrollLeft"; var _419=(type=="top")?"y":"x"; var _41a=0; if(node["offsetParent"]){ if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==dojo.html.body()){ var _41b=dojo.html.body(); }else{ var _41b=dojo.html.body().parentNode; } if(_416&&node.parentNode!=document.body){ _41a-=dojo.style.sumAncestorProperties(node,_418); } do{ _41a+=node[_417]; node=node.offsetParent; }while(node!=_41b&&node!=null); }else{ if(node[_419]){ _41a+=node[_419]; } } return _41a; }; dojo.style.sumAncestorProperties=function(node,prop){ if(!node){ return 0; } var _41e=0; while(node){ var val=node[prop]; if(val){ _41e+=val-0; } node=node.parentNode; } return _41e; }; dojo.style.totalOffsetLeft=function(node,_421){ return dojo.style.getTotalOffset(node,"left",_421); }; dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft; dojo.style.totalOffsetTop=function(node,_423){ return dojo.style.getTotalOffset(node,"top",_423); }; dojo.style.getAbsoluteY=dojo.style.totalOffsetTop; dojo.style.getAbsolutePosition=function(node,_425){ var _426=[dojo.style.getAbsoluteX(node,_425),dojo.style.getAbsoluteY(node,_425)]; _426.x=_426[0]; _426.y=_426[1]; return _426; }; dojo.style.styleSheet=null; dojo.style.insertCssRule=function(_427,_428,_429){ if(!dojo.style.styleSheet){ if(document.createStyleSheet){ dojo.style.styleSheet=document.createStyleSheet(); }else{ if(document.styleSheets[0]){ dojo.style.styleSheet=document.styleSheets[0]; }else{ return null; } } } if(arguments.length<3){ if(dojo.style.styleSheet.cssRules){ _429=dojo.style.styleSheet.cssRules.length; }else{ if(dojo.style.styleSheet.rules){ _429=dojo.style.styleSheet.rules.length; }else{ return null; } } } if(dojo.style.styleSheet.insertRule){ var rule=_427+" { "+_428+" }"; return dojo.style.styleSheet.insertRule(rule,_429); }else{ if(dojo.style.styleSheet.addRule){ return dojo.style.styleSheet.addRule(_427,_428,_429); }else{ return null; } } }; dojo.style.removeCssRule=function(_42b){ if(!dojo.style.styleSheet){ dojo.debug("no stylesheet defined for removing rules"); return false; } if(dojo.render.html.ie){ if(!_42b){ _42b=dojo.style.styleSheet.rules.length; dojo.style.styleSheet.removeRule(_42b); } }else{ if(document.styleSheets[0]){ if(!_42b){ _42b=dojo.style.styleSheet.cssRules.length; } dojo.style.styleSheet.deleteRule(_42b); } } return true; }; dojo.style.insertCssFile=function(URI,doc,_42e){ if(!URI){ return; } if(!doc){ doc=document; } if(doc.baseURI){ URI=new dojo.uri.Uri(doc.baseURI,URI); } if(_42e&&doc.styleSheets){ var loc=location.href.split("#")[0].substring(0,location.href.indexOf(location.pathname)); for(var i=0;i=1){ if(h.ie){ dojo.style.clearOpacity(node); return; }else{ _443=0.999999; } }else{ if(_443<0){ _443=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.style.clearOpacity=function clearOpacity(node){ var h=dojo.render.html; if(h.ie){ if(node.filters&&node.filters.alpha){ node.style.filter=""; } }else{ if(h.moz){ node.style.opacity=1; node.style.MozOpacity=1; }else{ if(h.safari){ node.style.opacity=1; node.style.KhtmlOpacity=1; }else{ node.style.opacity=1; } } } }; dojo.provide("dojo.html"); dojo.require("dojo.dom"); dojo.require("dojo.style"); dojo.require("dojo.string"); dojo.lang.mixin(dojo.html,dojo.dom); dojo.lang.mixin(dojo.html,dojo.style); dojo.html.clearSelection=function(){ try{ if(window["getSelection"]){ if(dojo.render.html.safari){ window.getSelection().collapse(); }else{ window.getSelection().removeAllRanges(); } }else{ if(document.selection){ if(document.selection.empty){ document.selection.empty(); }else{ if(document.selection.clear){ document.selection.clear(); } } } } return true; } catch(e){ dojo.debug(e); return false; } }; dojo.html.disableSelection=function(_44c){ _44c=dojo.byId(_44c)||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _44c.style.MozUserSelect="none"; }else{ if(h.safari){ _44c.style.KhtmlUserSelect="none"; }else{ if(h.ie){ _44c.unselectable="on"; }else{ return false; } } } return true; }; dojo.html.enableSelection=function(_44e){ _44e=dojo.byId(_44e)||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _44e.style.MozUserSelect=""; }else{ if(h.safari){ _44e.style.KhtmlUserSelect=""; }else{ if(h.ie){ _44e.unselectable="off"; }else{ return false; } } } return true; }; dojo.html.selectElement=function(_450){ _450=dojo.byId(_450); if(document.selection&&dojo.html.body().createTextRange){ var _451=dojo.html.body().createTextRange(); _451.moveToElementText(_450); _451.select(); }else{ if(window["getSelection"]){ var _452=window.getSelection(); if(_452["selectAllChildren"]){ _452.selectAllChildren(_450); } } } }; dojo.html.isSelectionCollapsed=function(){ if(document["selection"]){ return document.selection.createRange().text==""; }else{ if(window["getSelection"]){ var _453=window.getSelection(); if(dojo.lang.isString(_453)){ return _453==""; }else{ return _453.isCollapsed; } } } }; dojo.html.getEventTarget=function(evt){ if(!evt){ evt=window.event||{}; } if(evt.srcElement){ return evt.srcElement; }else{ if(evt.target){ return evt.target; } } return null; }; dojo.html.getScrollTop=function(){ return document.documentElement.scrollTop||dojo.html.body().scrollTop||0; }; dojo.html.getScrollLeft=function(){ return document.documentElement.scrollLeft||dojo.html.body().scrollLeft||0; }; dojo.html.getDocumentWidth=function(){ dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*"); return dojo.html.getViewportWidth(); }; dojo.html.getDocumentHeight=function(){ dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*"); return dojo.html.getViewportHeight(); }; dojo.html.getDocumentSize=function(){ dojo.deprecated("dojo.html.getDocument* has been deprecated in favor of dojo.html.getViewport*"); return dojo.html.getViewportSize(); }; dojo.html.getViewportWidth=function(){ var w=0; if(window.innerWidth){ w=window.innerWidth; } if(dojo.exists(document,"documentElement.clientWidth")){ var w2=document.documentElement.clientWidth; if(!w||w2&&w2=left&&_48f<=_494&&_490>=top&&_490<=_492); }; dojo.html.renderedTextContent=function(node){ node=dojo.byId(node); var _496=""; if(node==null){ return _496; } for(var i=0;i]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _4a2="cell"; }else{ if((/^]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _4a2="row"; }else{ if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _4a2="section"; } } } tn.innerHTML=txt; tn.normalize(); var _4a3=null; switch(_4a2){ case "cell": _4a3=tn.getElementsByTagName("tr")[0]; break; case "row": _4a3=tn.getElementsByTagName("tbody")[0]; break; case "section": _4a3=tn.getElementsByTagName("table")[0]; break; default: _4a3=tn; break; } var _4a4=[]; for(var x=0;x<_4a3.childNodes.length;x++){ _4a4.push(_4a3.childNodes[x].cloneNode(true)); } tn.style.display="none"; document.body.removeChild(tn); return _4a4; }; if(!dojo.evalObjPath("dojo.dom.createNodesFromText")){ dojo.dom.createNodesFromText=function(){ dojo.deprecated("dojo.dom.createNodesFromText","use dojo.html.createNodesFromText instead"); return dojo.html.createNodesFromText.apply(dojo.html,arguments); }; } dojo.html.isVisible=function(node){ node=dojo.byId(node); return dojo.style.getComputedStyle(node||this.domNode,"display")!="none"; }; dojo.html.show=function(node){ node=dojo.byId(node); if(node.style){ node.style.display=dojo.lang.inArray(["tr","td","th"],node.tagName.toLowerCase())?"":"block"; } }; dojo.html.hide=function(node){ node=dojo.byId(node); if(node.style){ node.style.display="none"; } }; dojo.html.toggleVisible=function(node){ if(dojo.html.isVisible(node)){ dojo.html.hide(node); return false; }else{ dojo.html.show(node); return true; } }; dojo.html.isTag=function(node){ node=dojo.byId(node); if(node&&node.tagName){ var arr=dojo.lang.map(dojo.lang.toArray(arguments,1),function(a){ return String(a).toLowerCase(); }); return arr[dojo.lang.find(node.tagName.toLowerCase(),arr)]||""; } return ""; }; dojo.html.toCoordinateArray=function(_4ad,_4ae){ if(dojo.lang.isArray(_4ad)){ while(_4ad.length<4){ _4ad.push(0); } while(_4ad.length>4){ _4ad.pop(); } var ret=_4ad; }else{ var node=dojo.byId(_4ad); var ret=[dojo.html.getAbsoluteX(node,_4ae),dojo.html.getAbsoluteY(node,_4ae),dojo.html.getInnerWidth(node),dojo.html.getInnerHeight(node)]; } ret.x=ret[0]; ret.y=ret[1]; ret.w=ret[2]; ret.h=ret[3]; return ret; }; dojo.html.placeOnScreen=function(node,_4b2,_4b3,_4b4,_4b5){ if(dojo.lang.isArray(_4b2)){ _4b5=_4b4; _4b4=_4b3; _4b3=_4b2[1]; _4b2=_4b2[0]; } if(!isNaN(_4b4)){ _4b4=[Number(_4b4),Number(_4b4)]; }else{ if(!dojo.lang.isArray(_4b4)){ _4b4=[0,0]; } } var _4b6=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth+_4b4[0]; var h=node.offsetHeight+_4b4[1]; if(_4b5){ _4b2-=_4b6.x; _4b3-=_4b6.y; } var x=_4b2+w; if(x>view.w){ x=view.w-w; }else{ x=_4b2; } x=Math.max(_4b4[0],x)+_4b6.x; var y=_4b3+h; if(y>view.h){ y=view.h-h; }else{ y=_4b3; } y=Math.max(_4b4[1],y)+_4b6.y; node.style.left=x+"px"; node.style.top=y+"px"; var ret=[x,y]; ret.x=x; ret.y=y; return ret; }; dojo.html.placeOnScreenPoint=function(node,_4be,_4bf,_4c0,_4c1){ if(dojo.lang.isArray(_4be)){ _4c1=_4c0; _4c0=_4bf; _4bf=_4be[1]; _4be=_4be[0]; } var _4c2=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth; var h=node.offsetHeight; if(_4c1){ _4be-=_4c2.x; _4bf-=_4c2.y; } var x=-1,y=-1; if(_4be+w<=view.w&&_4bf+h<=view.h){ x=_4be; y=_4bf; } if((x<0||y<0)&&_4be<=view.w&&_4bf+h<=view.h){ x=_4be-w; y=_4bf; } if((x<0||y<0)&&_4be+w<=view.w&&_4bf<=view.h){ x=_4be; y=_4bf-h; } if((x<0||y<0)&&_4be<=view.w&&_4bf<=view.h){ x=_4be-w; y=_4bf-h; } if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){ return dojo.html.placeOnScreen(node,_4be,_4bf,_4c0,_4c1); } x+=_4c2.x; y+=_4c2.y; node.style.left=x+"px"; node.style.top=y+"px"; var ret=[x,y]; ret.x=x; ret.y=y; return ret; }; dojo.html.BackgroundIframe=function(){ if(this.ie){ this.iframe=document.createElement(""); } } catch(e){ } dojo.io.checkChildrenForFile=function(node){ var _507=false; var _508=node.getElementsByTagName("input"); dojo.lang.forEach(_508,function(_509){ if(_507){ return; } if(_509.getAttribute("type")=="file"){ _507=true; } }); return _507; }; dojo.io.formHasFile=function(_50a){ return dojo.io.checkChildrenForFile(_50a); }; dojo.io.encodeForm=function(_50b,_50c){ if((!_50b)||(!_50b.tagName)||(!_50b.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } var enc=/utf/i.test(_50c||"")?encodeURIComponent:dojo.string.encodeAscii; var _50e=[]; for(var i=0;i<_50b.elements.length;i++){ var elm=_50b.elements[i]; if(elm.disabled||elm.tagName.toLowerCase()=="fieldset"||!elm.name){ continue; } var name=enc(elm.name); var type=elm.type.toLowerCase(); if(type=="select-multiple"){ for(var j=0;j=0){ while(!this.historyStack[hsl]["urlHash"]){ hsl--; } lh=this.historyStack[hsl]["urlHash"]; } if(lh){ _536=function(){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+lh+"';",1); } _539(); }; } this.forwardStack=[]; var _53c=args["forward"]||args["forwardButton"]; var tfw=function(){ if(window.location.hash!=""){ window.location.href=hash; } if(_53c){ _53c(); } }; if(args["forward"]){ args.forward=tfw; }else{ if(args["forwardButton"]){ args.forwardButton=tfw; } } }else{ if(dojo.render.html.moz){ if(!this.locationTimer){ this.locationTimer=setInterval("dojo.io.XMLHTTPTransport.checkLocation();",200); } } } } this.historyStack.push({"url":url,"callback":_536,"kwArgs":args,"urlHash":hash}); }; this.checkLocation=function(){ 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; } } }; this.iframeLoaded=function(evt,_540){ var isp=_540.href.split("?"); if(isp.length<2){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } var _542=isp[1]; if(this.moveForward){ this.moveForward=false; return; } var last=this.historyStack.pop(); if(!last){ if(this.forwardStack.length>0){ var next=this.forwardStack[this.forwardStack.length-1]; if(_542==next.url.split("?")[1]){ this.handleForwardButton(); } } return; } this.historyStack.push(last); if(this.historyStack.length>=2){ if(isp[1]==this.historyStack[this.historyStack.length-2].url.split("?")[1]){ this.handleBackButton(); } }else{ this.handleBackButton(); } }; this.handleBackButton=function(){ var last=this.historyStack.pop(); if(!last){ return; } if(last["callback"]){ last.callback(); }else{ if(last.kwArgs["backButton"]){ last.kwArgs["backButton"](); }else{ if(last.kwArgs["back"]){ last.kwArgs["back"](); }else{ if(last.kwArgs["handle"]){ last.kwArgs.handle("back"); } } } } this.forwardStack.push(last); }; this.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); }; this.inFlight=[]; this.inFlightTimer=null; this.startWatchingInFlight=function(){ if(!this.inFlightTimer){ this.inFlightTimer=setInterval("dojo.io.XMLHTTPTransport.watchInFlight();",10); } }; this.watchInFlight=function(){ for(var x=this.inFlight.length-1;x>=0;x--){ var tif=this.inFlight[x]; if(!tif){ 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); if(this.inFlight.length==0){ clearInterval(this.inFlightTimer); this.inFlightTimer=null; } } } }; var _549=dojo.hostenv.getXmlhttpObject()?true:false; this.canHandle=function(_54a){ return _549&&dojo.lang.inArray((_54a["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_54a["method"].toLowerCase(),["post","get","head"])&&!(_54a["formNode"]&&dojo.io.formHasFile(_54a["formNode"])); }; this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F"; this.bind=function(_54b){ if(!_54b["url"]){ if(!_54b["formNode"]&&(_54b["backButton"]||_54b["back"]||_54b["changeUrl"]||_54b["watchForURL"])&&(!djConfig.preventBackButtonFix)){ this.addToHistory(_54b); return true; } } var url=_54b.url; var _54d=""; if(_54b["formNode"]){ var ta=_54b.formNode.getAttribute("action"); if((ta)&&(!_54b["url"])){ url=ta; } var tp=_54b.formNode.getAttribute("method"); if((tp)&&(!_54b["method"])){ _54b.method=tp; } _54d+=dojo.io.encodeForm(_54b.formNode,_54b.encoding); } if(url.indexOf("#")>-1){ dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url); url=url.split("#")[0]; } if(_54b["file"]){ _54b.method="post"; } if(!_54b["method"]){ _54b.method="get"; } if(_54b.method.toLowerCase()=="get"){ _54b.multipart=false; }else{ if(_54b["file"]){ _54b.multipart=true; }else{ if(!_54b["multipart"]){ _54b.multipart=false; } } } if(_54b["backButton"]||_54b["back"]||_54b["changeUrl"]){ this.addToHistory(_54b); } var _550=_54b["content"]||{}; if(_54b.sendTransport){ _550["dojo.transport"]="xmlhttp"; } do{ if(_54b.postContent){ _54d=_54b.postContent; break; } if(_550){ _54d+=dojo.io.argsFromMap(_550,_54b.encoding); } if(_54b.method.toLowerCase()=="get"||!_54b.multipart){ break; } var t=[]; if(_54d.length){ var q=_54d.split("&"); for(var i=0;i-1?"&":"?")+_54d; } if(_557){ _55c+=(dojo.string.endsWithAny(_55c,"?","&")?"":(_55c.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } http.open(_54b.method.toUpperCase(),_55c,_556); setHeaders(http,_54b); http.send(null); } if(!_556){ doLoad(_54b,http,url,_54d,_558); } _54b.abort=function(){ return http.abort(); }; return; }; dojo.io.transports.addTransport("XMLHTTPTransport"); }; dojo.provide("dojo.io.cookie"); dojo.io.cookie.setCookie=function(name,_55e,days,path,_561,_562){ var _563=-1; if(typeof days=="number"&&days>=0){ var d=new Date(); d.setTime(d.getTime()+(days*24*60*60*1000)); _563=d.toGMTString(); } _55e=escape(_55e); document.cookie=name+"="+_55e+";"+(_563!=-1?" expires="+_563+";":"")+(path?"path="+path:"")+(_561?"; domain="+_561:"")+(_562?"; secure":""); }; dojo.io.cookie.set=dojo.io.cookie.setCookie; dojo.io.cookie.getCookie=function(name){ var idx=document.cookie.indexOf(name+"="); if(idx==-1){ return null; } value=document.cookie.substring(idx+name.length+1); var end=value.indexOf(";"); if(end==-1){ end=value.length; } value=value.substring(0,end); value=unescape(value); return value; }; 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,_56d,_56e,_56f){ if(arguments.length==5){ _56f=_56d; _56d=null; _56e=null; } var _570=[],cookie,value=""; if(!_56f){ 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){ _570.push(escape(prop)+"="+escape(cookie[prop])); } value=_570.join("&"); } dojo.io.cookie.setCookie(name,value,days,path,_56d,_56e); }; dojo.io.cookie.getObjectCookie=function(name){ var _573=null,cookie=dojo.io.cookie.getCookie(name); if(cookie){ _573={}; var _574=cookie.split("&"); for(var i=0;i<_574.length;i++){ var pair=_574[i].split("="); var _577=pair[1]; if(isNaN(_577)){ _577=unescape(pair[1]); } _573[unescape(pair[0])]=_577; } } return _573; }; dojo.io.cookie.isSupported=function(){ if(typeof navigator.cookieEnabled!="boolean"){ dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null); var _578=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__"); navigator.cookieEnabled=(_578=="CookiesAllowed"); if(navigator.cookieEnabled){ this.deleteCookie("__TestingYourBrowserForCookieSupport__"); } } return navigator.cookieEnabled; }; if(!dojo.io.cookies){ dojo.io.cookies=dojo.io.cookie; } dojo.hostenv.conditionalLoadModule({common:["dojo.io",false,false],rhino:["dojo.io.RhinoIO",false,false],browser:[["dojo.io.BrowserIO",false,false],["dojo.io.cookie",false,false]]}); dojo.hostenv.moduleLoaded("dojo.io.*"); dojo.provide("dojo.math.curves"); dojo.require("dojo.math"); dojo.math.curves={Line:function(_579,end){ this.start=_579; this.end=end; this.dimensions=_579.length; for(var i=0;i<_579.length;i++){ _579[i]=Number(_579[i]); } for(var i=0;i=1){ return this.p[this.p.length-1]; } if(step<=0){ return this.p[0]; } var _581=new Array(this.p[0].length); for(var k=0;j=this.p.length){ i1=this.p.length-1; } var i2=node+2; if(i2>=this.p.length){ i2=this.p.length-1; } var u=_58d; var u2=_58d*_58d; var u3=_58d*_58d*_58d; var _595=new Array(this.p[0].length); for(var k=0;k=r[0]&&n=1){ step=1; this._percent=100; }else{ this._percent=step*100; } if(this.accel&&this.accel.getValue){ step=this.accel.getValue(step); } var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps)); if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onAnimate=="function"){ this.onAnimate(e); } if(step<1){ this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate); }else{ e.type="end"; this._active=false; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onEnd=="function"){ this.onEnd(e); } if(this.repeatCount>0){ this.repeatCount--; this.play(true); }else{ if(this.repeatCount==-1){ this.play(true); }else{ if(this._startRepeatCount){ this.repeatCount=this._startRepeatCount; this._startRepeatCount=0; } if(this._animSequence){ this._animSequence._playNext(); } } } } } }}); dojo.animation.AnimationEvent=function(anim,type,_5cf,_5d0,_5d1,_5d2,dur,pct,fps){ this.type=type; this.animation=anim; this.coords=_5cf; this.x=_5cf[0]; this.y=_5cf[1]; this.z=_5cf[2]; this.startTime=_5d0; this.currentTime=_5d1; this.endTime=_5d2; this.duration=dur; this.percent=pct; this.fps=fps; }; dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){ var _5d6=new Array(this.coords.length); for(var i=0;i0){ this._currAnim=0; this.repeatCount--; this._anims[this._currAnim].play(true); }else{ if(this.repeatCount==-1){ this._currAnim=0; this._anims[this._currAnim].play(true); }else{ this._currAnim=-1; } } } }}); dojo.hostenv.conditionalLoadModule({common:["dojo.animation.Animation",false,false]}); dojo.hostenv.moduleLoaded("dojo.animation.*"); dojo.provide("dojo.fx.html"); dojo.require("dojo.html"); dojo.require("dojo.style"); dojo.require("dojo.lang"); dojo.require("dojo.animation.*"); dojo.require("dojo.event.*"); dojo.require("dojo.graphics.color"); dojo.fx.duration=500; dojo.fx.html._makeFadeable=function(node){ if(dojo.render.html.ie){ if((node.style.zoom.length==0)&&(dojo.style.getStyle(node,"zoom")=="normal")){ node.style.zoom="1"; } if((node.style.width.length==0)&&(dojo.style.getStyle(node,"width")=="auto")){ node.style.width="auto"; } } }; dojo.fx.html.fadeOut=function(node,_5e4,_5e5,_5e6){ return dojo.fx.html.fade(node,_5e4,dojo.style.getOpacity(node),0,_5e5,_5e6); }; dojo.fx.html.fadeIn=function(node,_5e8,_5e9,_5ea){ return dojo.fx.html.fade(node,_5e8,dojo.style.getOpacity(node),1,_5e9,_5ea); }; dojo.fx.html.fadeHide=function(node,_5ec,_5ed,_5ee){ node=dojo.byId(node); if(!_5ec){ _5ec=150; } return dojo.fx.html.fadeOut(node,_5ec,function(node){ node.style.display="none"; if(typeof _5ed=="function"){ _5ed(node); } }); }; dojo.fx.html.fadeShow=function(node,_5f1,_5f2,_5f3){ node=dojo.byId(node); if(!_5f1){ _5f1=150; } node.style.display="block"; return dojo.fx.html.fade(node,_5f1,0,1,_5f2,_5f3); }; dojo.fx.html.fade=function(node,_5f5,_5f6,_5f7,_5f8,_5f9){ node=dojo.byId(node); dojo.fx.html._makeFadeable(node); var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_5f6],[_5f7]),_5f5||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ dojo.style.setOpacity(node,e.x); }); if(_5f8){ dojo.event.connect(anim,"onEnd",function(e){ _5f8(node,anim); }); } if(!_5f9){ anim.play(true); } return anim; }; dojo.fx.html.slideTo=function(node,_5fe,_5ff,_600,_601){ if(!dojo.lang.isNumber(_5fe)){ var tmp=_5fe; _5fe=_5ff; _5ff=tmp; } node=dojo.byId(node); var top=node.offsetTop; var left=node.offsetLeft; var pos=dojo.style.getComputedStyle(node,"position"); if(pos=="relative"||pos=="static"){ top=parseInt(dojo.style.getComputedStyle(node,"top"))||0; left=parseInt(dojo.style.getComputedStyle(node,"left"))||0; } return dojo.fx.html.slide(node,_5fe,[left,top],_5ff,_600,_601); }; dojo.fx.html.slideBy=function(node,_607,_608,_609,_60a){ if(!dojo.lang.isNumber(_607)){ var tmp=_607; _607=_608; _608=tmp; } node=dojo.byId(node); var top=node.offsetTop; var left=node.offsetLeft; var pos=dojo.style.getComputedStyle(node,"position"); if(pos=="relative"||pos=="static"){ top=parseInt(dojo.style.getComputedStyle(node,"top"))||0; left=parseInt(dojo.style.getComputedStyle(node,"left"))||0; } return dojo.fx.html.slideTo(node,_607,[left+_608[0],top+_608[1]],_609,_60a); }; dojo.fx.html.slide=function(node,_610,_611,_612,_613,_614){ if(!dojo.lang.isNumber(_610)){ var tmp=_610; _610=_612; _612=_611; _611=tmp; } node=dojo.byId(node); if(dojo.style.getComputedStyle(node,"position")=="static"){ node.style.position="relative"; } var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_611,_612),_610||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ with(node.style){ left=e.x+"px"; top=e.y+"px"; } }); if(_613){ dojo.event.connect(anim,"onEnd",function(e){ _613(node,anim); }); } if(!_614){ anim.play(true); } return anim; }; dojo.fx.html.colorFadeIn=function(node,_61a,_61b,_61c,_61d,_61e){ if(!dojo.lang.isNumber(_61a)){ var tmp=_61a; _61a=_61b; _61b=tmp; } node=dojo.byId(node); var _620=dojo.html.getBackgroundColor(node); var bg=dojo.style.getStyle(node,"background-color").toLowerCase(); var _622=bg=="transparent"||bg=="rgba(0, 0, 0, 0)"; while(_620.length>3){ _620.pop(); } var rgb=new dojo.graphics.color.Color(_61b).toRgb(); var anim=dojo.fx.html.colorFade(node,_61a||dojo.fx.duration,_61b,_620,_61d,true); dojo.event.connect(anim,"onEnd",function(e){ if(_622){ node.style.backgroundColor="transparent"; } }); if(_61c>0){ node.style.backgroundColor="rgb("+rgb.join(",")+")"; if(!_61e){ setTimeout(function(){ anim.play(true); },_61c); } }else{ if(!_61e){ anim.play(true); } } return anim; }; dojo.fx.html.highlight=dojo.fx.html.colorFadeIn; dojo.fx.html.colorFadeFrom=dojo.fx.html.colorFadeIn; dojo.fx.html.colorFadeOut=function(node,_627,_628,_629,_62a,_62b){ if(!dojo.lang.isNumber(_627)){ var tmp=_627; _627=_628; _628=tmp; } node=dojo.byId(node); var _62d=new dojo.graphics.color.Color(dojo.html.getBackgroundColor(node)).toRgb(); var rgb=new dojo.graphics.color.Color(_628).toRgb(); var anim=dojo.fx.html.colorFade(node,_627||dojo.fx.duration,_62d,rgb,_62a,_629>0||_62b); if(_629>0){ node.style.backgroundColor="rgb("+_62d.join(",")+")"; if(!_62b){ setTimeout(function(){ anim.play(true); },_629); } } return anim; }; dojo.fx.html.unhighlight=dojo.fx.html.colorFadeOut; dojo.fx.html.colorFadeTo=dojo.fx.html.colorFadeOut; dojo.fx.html.colorFade=function(node,_631,_632,_633,_634,_635){ if(!dojo.lang.isNumber(_631)){ var tmp=_631; _631=_633; _633=_632; _632=tmp; } node=dojo.byId(node); var _637=new dojo.graphics.color.Color(_632).toRgb(); var _638=new dojo.graphics.color.Color(_633).toRgb(); var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_637,_638),_631||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ node.style.backgroundColor="rgb("+e.coordsAsInts().join(",")+")"; }); if(_634){ dojo.event.connect(anim,"onEnd",function(e){ _634(node,anim); }); } if(!_635){ anim.play(true); } return anim; }; dojo.fx.html.wipeShow=function(node,_63d,_63e,_63f){ node=dojo.byId(node); var _640=dojo.html.getStyle(node,"overflow"); node.style.overflow="hidden"; node.style.height=0; dojo.html.show(node); var anim=new dojo.animation.Animation([[0],[node.scrollHeight]],_63d||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ node.style.height=e.x+"px"; }); dojo.event.connect(anim,"onEnd",function(){ node.style.overflow=_640; node.style.height="auto"; if(_63e){ _63e(node,anim); } }); if(!_63f){ anim.play(); } return anim; }; dojo.fx.html.wipeHide=function(node,_644,_645,_646){ node=dojo.byId(node); var _647=dojo.html.getStyle(node,"overflow"); node.style.overflow="hidden"; var anim=new dojo.animation.Animation([[node.offsetHeight],[0]],_644||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ node.style.height=e.x+"px"; }); dojo.event.connect(anim,"onEnd",function(){ node.style.overflow=_647; dojo.html.hide(node); if(_645){ _645(node,anim); } }); if(!_646){ anim.play(); } return anim; }; dojo.fx.html.wiper=function(node,_64b){ this.node=dojo.byId(node); if(_64b){ dojo.event.connect(dojo.byId(_64b),"onclick",this,"toggle"); } }; dojo.lang.extend(dojo.fx.html.wiper,{duration:dojo.fx.duration,_anim:null,toggle:function(){ if(!this._anim){ var type="wipe"+(dojo.html.isVisible(this.node)?"Hide":"Show"); this._anim=dojo.fx[type](this.node,this.duration,dojo.lang.hitch(this,"_callback")); } },_callback:function(){ this._anim=null; }}); dojo.fx.html.wipeIn=function(node,_64e,_64f,_650){ node=dojo.byId(node); var _651=dojo.html.getStyle(node,"height"); dojo.html.show(node); var _652=node.offsetHeight; var anim=dojo.fx.html.wipeInToHeight(node,_64e,_652,function(e){ node.style.height=_651||"auto"; if(_64f){ _64f(node,anim); } },_650); }; dojo.fx.html.wipeInToHeight=function(node,_656,_657,_658,_659){ node=dojo.byId(node); var _65a=dojo.html.getStyle(node,"overflow"); node.style.height="0px"; node.style.display="none"; if(_65a=="visible"){ node.style.overflow="hidden"; } var _65b=dojo.lang.inArray(node.tagName.toLowerCase(),["tr","td","th"])?"":"block"; node.style.display=_65b; var anim=new dojo.animation.Animation(new dojo.math.curves.Line([0],[_657]),_656||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ node.style.height=Math.round(e.x)+"px"; }); dojo.event.connect(anim,"onEnd",function(e){ if(_65a!="visible"){ node.style.overflow=_65a; } if(_658){ _658(node,anim); } }); if(!_659){ anim.play(true); } return anim; }; dojo.fx.html.wipeOut=function(node,_660,_661,_662){ node=dojo.byId(node); var _663=dojo.html.getStyle(node,"overflow"); var _664=dojo.html.getStyle(node,"height"); var _665=node.offsetHeight; node.style.overflow="hidden"; var anim=new dojo.animation.Animation(new dojo.math.curves.Line([_665],[0]),_660||dojo.fx.duration,0); dojo.event.connect(anim,"onAnimate",function(e){ node.style.height=Math.round(e.x)+"px"; }); dojo.event.connect(anim,"onEnd",function(e){ node.style.display="none"; node.style.overflow=_663; node.style.height=_664||"auto"; if(_661){ _661(node,anim); } }); if(!_662){ anim.play(true); } return anim; }; dojo.fx.html.explode=function(_669,_66a,_66b,_66c,_66d){ var _66e=dojo.html.toCoordinateArray(_669); var _66f=document.createElement("div"); with(_66f.style){ position="absolute"; border="1px solid black"; display="none"; } dojo.html.body().appendChild(_66f); _66a=dojo.byId(_66a); with(_66a.style){ visibility="hidden"; display="block"; } var _670=dojo.html.toCoordinateArray(_66a); with(_66a.style){ display="none"; visibility="visible"; } var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_66e,_670),_66b||dojo.fx.duration,0); dojo.event.connect(anim,"onBegin",function(e){ _66f.style.display="block"; }); dojo.event.connect(anim,"onAnimate",function(e){ with(_66f.style){ left=e.x+"px"; top=e.y+"px"; width=e.coords[2]+"px"; height=e.coords[3]+"px"; } }); dojo.event.connect(anim,"onEnd",function(){ _66a.style.display="block"; _66f.parentNode.removeChild(_66f); if(_66c){ _66c(_66a,anim); } }); if(!_66d){ anim.play(); } return anim; }; dojo.fx.html.implode=function(_674,end,_676,_677,_678){ var _679=dojo.html.toCoordinateArray(_674); var _67a=dojo.html.toCoordinateArray(end); _674=dojo.byId(_674); var _67b=document.createElement("div"); with(_67b.style){ position="absolute"; border="1px solid black"; display="none"; } dojo.html.body().appendChild(_67b); var anim=new dojo.animation.Animation(new dojo.math.curves.Line(_679,_67a),_676||dojo.fx.duration,0); dojo.event.connect(anim,"onBegin",function(e){ _674.style.display="none"; _67b.style.display="block"; }); dojo.event.connect(anim,"onAnimate",function(e){ with(_67b.style){ left=e.x+"px"; top=e.y+"px"; width=e.coords[2]+"px"; height=e.coords[3]+"px"; } }); dojo.event.connect(anim,"onEnd",function(){ _67b.parentNode.removeChild(_67b); if(_677){ _677(_674,anim); } }); if(!_678){ anim.play(); } return anim; }; dojo.fx.html.Exploder=function(_67f,_680){ _67f=dojo.byId(_67f); _680=dojo.byId(_680); var _681=this; this.waitToHide=500; this.timeToShow=100; this.waitToShow=200; this.timeToHide=70; this.autoShow=false; this.autoHide=false; var _682=null; var _683=null; var _684=null; var _685=null; var _686=null; var _687=null; this.showing=false; this.onBeforeExplode=null; this.onAfterExplode=null; this.onBeforeImplode=null; this.onAfterImplode=null; this.onExploding=null; this.onImploding=null; this.timeShow=function(){ clearTimeout(_684); _684=setTimeout(_681.show,_681.waitToShow); }; this.show=function(){ clearTimeout(_684); clearTimeout(_685); if((_683&&_683.status()=="playing")||(_682&&_682.status()=="playing")||_681.showing){ return; } if(typeof _681.onBeforeExplode=="function"){ _681.onBeforeExplode(_67f,_680); } _682=dojo.fx.html.explode(_67f,_680,_681.timeToShow,function(e){ _681.showing=true; if(typeof _681.onAfterExplode=="function"){ _681.onAfterExplode(_67f,_680); } }); if(typeof _681.onExploding=="function"){ dojo.event.connect(_682,"onAnimate",this,"onExploding"); } }; this.timeHide=function(){ clearTimeout(_684); clearTimeout(_685); if(_681.showing){ _685=setTimeout(_681.hide,_681.waitToHide); } }; this.hide=function(){ clearTimeout(_684); clearTimeout(_685); if(_682&&_682.status()=="playing"){ return; } _681.showing=false; if(typeof _681.onBeforeImplode=="function"){ _681.onBeforeImplode(_67f,_680); } _683=dojo.fx.html.implode(_680,_67f,_681.timeToHide,function(e){ if(typeof _681.onAfterImplode=="function"){ _681.onAfterImplode(_67f,_680); } }); if(typeof _681.onImploding=="function"){ dojo.event.connect(_683,"onAnimate",this,"onImploding"); } }; dojo.event.connect(_67f,"onclick",function(e){ if(_681.showing){ _681.hide(); }else{ _681.show(); } }); dojo.event.connect(_67f,"onmouseover",function(e){ if(_681.autoShow){ _681.timeShow(); } }); dojo.event.connect(_67f,"onmouseout",function(e){ if(_681.autoHide){ _681.timeHide(); } }); dojo.event.connect(_680,"onmouseover",function(e){ clearTimeout(_685); }); dojo.event.connect(_680,"onmouseout",function(e){ if(_681.autoHide){ _681.timeHide(); } }); dojo.event.connect(document.documentElement||dojo.html.body(),"onclick",function(e){ if(_681.autoHide&&_681.showing&&!dojo.dom.isDescendantOf(e.target,_680)&&!dojo.dom.isDescendantOf(e.target,_67f)){ _681.hide(); } }); return this; }; dojo.lang.mixin(dojo.fx,dojo.fx.html); dojo.hostenv.conditionalLoadModule({browser:["dojo.fx.html"]}); dojo.hostenv.moduleLoaded("dojo.fx.*");