/* 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;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; } } } } _173.path=segs.join("/"); } } } } uri=""; if(_173.scheme!=null){ uri+=_173.scheme+":"; } if(_173.authority!=null){ uri+="//"+_173.authority; } uri+=_173.path; if(_173.query!=null){ uri+="?"+_173.query; } if(_173.fragment!=null){ uri+="#"+_173.fragment; } } this.uri=uri.toString(); var _178="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_178)); 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){ _178="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_178)); 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.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,_17f,_180){ for(var name in _17f){ var re=new RegExp("\\%\\{"+name+"\\}","g"); str=str.replace(re,_17f[name]); } if(_180){ 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 _184=str.split(" "); var _185=""; var len=_184.length; for(var i=0;i/gm,">").replace(/"/gm,"""); if(!_197){ 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,_19c,_19d){ var out=""; for(var i=0;i<_19c;i++){ out+=str; if(_19d&&i<_19c-1){ out+=_19d; } } return out; }; dojo.string.endsWith=function(str,end,_1a2){ if(_1a2){ 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,_1b8){ if(_1b8=="\n"){ text=text.replace(/\r\n/g,"\n"); text=text.replace(/\r/g,"\n"); }else{ if(_1b8=="\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,_1ba){ var _1bb=[]; for(var i=0,prevcomma=0;i=1); k=Math.sqrt((-2*Math.log(k))/k); return i*k; }; dojo.math.mean=function(){ var _1d2=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0; for(var i=0;i<_1d2.length;i++){ mean+=_1d2[i]; } return mean/_1d2.length; }; dojo.math.round=function(_1d5,_1d6){ if(!_1d6){ var _1d7=1; }else{ var _1d7=Math.pow(10,_1d6); } return Math.round(_1d5*_1d7)/_1d7; }; dojo.math.sd=function(){ var _1d8=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; return Math.sqrt(dojo.math.variance(_1d8)); }; dojo.math.variance=function(){ var _1d9=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0,squares=0; for(var i=0;i<_1d9.length;i++){ mean+=_1d9[i]; squares+=Math.pow(_1d9[i],2); } return (squares/_1d9.length)-Math.pow(mean/_1d9.length,2); }; dojo.math.range=function(a,b,step){ if(arguments.length<2){ b=a; a=0; } if(arguments.length<3){ step=1; } var _1df=[]; if(step>0){ for(var i=a;ib;i+=step){ _1df.push(i); } }else{ throw new Error("dojo.math.range: step must be non-zero"); } } return _1df; }; 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(_1e6){ if(_1e6){ 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(_1e7,_1e8){ return dojo.graphics.color.blend(this.toRgb(),new Color(_1e7).toRgb(),_1e8); }}); 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,_1eb){ if(typeof a=="string"){ return dojo.graphics.color.blendHex(a,b,_1eb); } if(!_1eb){ _1eb=0; }else{ if(_1eb>1){ _1eb=1; }else{ if(_1eb<-1){ _1eb=-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*_1eb)); } return c; }; dojo.graphics.color.blendHex=function(a,b,_1f1){ return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_1f1)); }; dojo.graphics.color.extractRGB=function(_1f2){ var hex="0123456789abcdef"; _1f2=_1f2.toLowerCase(); if(_1f2.indexOf("rgb")==0){ var _1f4=_1f2.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_1f4.splice(1,3); return ret; }else{ var _1f6=dojo.graphics.color.hex2rgb(_1f2); if(_1f6){ return _1f6; }else{ return dojo.graphics.color.named[_1f2]||[255,255,255]; } } }; dojo.graphics.color.hex2rgb=function(hex){ var _1f8="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_1f8+"]","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=_21a/((l<0.5)?(2*l):(2-2*l)); } h=0; if(_21a>0){ if((max==r)&&(max!=g)){ h+=(g-b)/_21a; } if((max==g)&&(max!=b)){ h+=(2+(b-r)/_21a); } if((max==b)&&(max!=r)){ h+=(4+(r-g)/_21a); } 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 _226=dojo.style.getStyle(node,"-moz-box-sizing"); if(!_226){ _226=dojo.style.getStyle(node,"box-sizing"); } return (_226?_226:dojo.style.boxSizing.contentBox); } }; dojo.style.isBorderBox=function(node){ return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox); }; dojo.style.getUnitValue=function(_228,_229,_22a){ var _22b={value:0,units:"px"}; var s=dojo.style.getComputedStyle(_228,_229); if(s==""||(s=="auto"&&_22a)){ return _22b; } if(dojo.lang.isUndefined(s)){ _22b.value=NaN; }else{ var _22d=s.match(/([\d.]+)([a-z%]*)/i); if(!_22d){ _22b.value=NaN; }else{ _22b.value=Number(_22d[1]); _22b.units=_22d[2].toLowerCase(); } } return _22b; }; dojo.style.getPixelValue=function(_22e,_22f,_230){ var _231=dojo.style.getUnitValue(_22e,_22f,_230); if(isNaN(_231.value)){ return 0; } if((_231.value)&&(_231.units!="px")){ return NaN; } return _231.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 _234=dojo.style.isPositionAbsolute(node); var left=dojo.style.getPixelValue(node,"margin-left",_234); var _236=dojo.style.getPixelValue(node,"margin-right",_234); return left+_236; }; dojo.style.getBorderWidth=function(node){ var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width")); var _239=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width")); return left+_239; }; dojo.style.getPaddingWidth=function(node){ var left=dojo.style.getPixelValue(node,"padding-left",true); var _23c=dojo.style.getPixelValue(node,"padding-right",true); return left+_23c; }; 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,_241){ if(!dojo.style.isBorderBox(node)){ _241-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } _241-=dojo.style.getMarginWidth(node); if(!isNaN(_241)&&_241>0){ node.style.width=_241+"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 _243=dojo.style.isPositionAbsolute(node); var top=dojo.style.getPixelValue(node,"margin-top",_243); var _245=dojo.style.getPixelValue(node,"margin-bottom",_243); return top+_245; }; dojo.style.getBorderHeight=function(node){ var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width")); var _248=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width")); return top+_248; }; dojo.style.getPaddingHeight=function(node){ var top=dojo.style.getPixelValue(node,"padding-top",true); var _24b=dojo.style.getPixelValue(node,"padding-bottom",true); return top+_24b; }; 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,_250){ if(!dojo.style.isBorderBox(node)){ _250-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } _250-=dojo.style.getMarginHeight(node); if(!isNaN(_250)&&_250>0){ node.style.height=_250+"px"; return true; }else{ return false; } }; dojo.style.setContentWidth=function(node,_252){ if(dojo.style.isBorderBox(node)){ _252+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } if(!isNaN(_252)&&_252>0){ node.style.width=_252+"px"; return true; }else{ return false; } }; dojo.style.setContentHeight=function(node,_254){ if(dojo.style.isBorderBox(node)){ _254+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } if(!isNaN(_254)&&_254>0){ node.style.height=_254+"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,_257){ var _258=(type=="top")?"offsetTop":"offsetLeft"; var _259=(type=="top")?"scrollTop":"scrollLeft"; var _25a=(type=="top")?"y":"x"; var _25b=0; if(node["offsetParent"]){ if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==dojo.html.body()){ var _25c=dojo.html.body(); }else{ var _25c=dojo.html.body().parentNode; } if(_257&&node.parentNode!=document.body){ _25b-=dojo.style.sumAncestorProperties(node,_259); } do{ _25b+=node[_258]; node=node.offsetParent; }while(node!=_25c&&node!=null); }else{ if(node[_25a]){ _25b+=node[_25a]; } } return _25b; }; dojo.style.sumAncestorProperties=function(node,prop){ if(!node){ return 0; } var _25f=0; while(node){ var val=node[prop]; if(val){ _25f+=val-0; } node=node.parentNode; } return _25f; }; dojo.style.totalOffsetLeft=function(node,_262){ return dojo.style.getTotalOffset(node,"left",_262); }; dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft; dojo.style.totalOffsetTop=function(node,_264){ return dojo.style.getTotalOffset(node,"top",_264); }; dojo.style.getAbsoluteY=dojo.style.totalOffsetTop; dojo.style.getAbsolutePosition=function(node,_266){ var _267=[dojo.style.getAbsoluteX(node,_266),dojo.style.getAbsoluteY(node,_266)]; _267.x=_267[0]; _267.y=_267[1]; return _267; }; dojo.style.styleSheet=null; dojo.style.insertCssRule=function(_268,_269,_26a){ 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){ _26a=dojo.style.styleSheet.cssRules.length; }else{ if(dojo.style.styleSheet.rules){ _26a=dojo.style.styleSheet.rules.length; }else{ return null; } } } if(dojo.style.styleSheet.insertRule){ var rule=_268+" { "+_269+" }"; return dojo.style.styleSheet.insertRule(rule,_26a); }else{ if(dojo.style.styleSheet.addRule){ return dojo.style.styleSheet.addRule(_268,_269,_26a); }else{ return null; } } }; dojo.style.removeCssRule=function(_26c){ if(!dojo.style.styleSheet){ dojo.debug("no stylesheet defined for removing rules"); return false; } if(dojo.render.html.ie){ if(!_26c){ _26c=dojo.style.styleSheet.rules.length; dojo.style.styleSheet.removeRule(_26c); } }else{ if(document.styleSheets[0]){ if(!_26c){ _26c=dojo.style.styleSheet.cssRules.length; } dojo.style.styleSheet.deleteRule(_26c); } } return true; }; dojo.style.insertCssFile=function(URI,doc,_26f){ if(!URI){ return; } if(!doc){ doc=document; } if(doc.baseURI){ URI=new dojo.uri.Uri(doc.baseURI,URI); } if(_26f&&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{ _284=0.999999; } }else{ if(_284<0){ _284=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(_28d){ _28d=dojo.byId(_28d)||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _28d.style.MozUserSelect="none"; }else{ if(h.safari){ _28d.style.KhtmlUserSelect="none"; }else{ if(h.ie){ _28d.unselectable="on"; }else{ return false; } } } return true; }; dojo.html.enableSelection=function(_28f){ _28f=dojo.byId(_28f)||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _28f.style.MozUserSelect=""; }else{ if(h.safari){ _28f.style.KhtmlUserSelect=""; }else{ if(h.ie){ _28f.unselectable="off"; }else{ return false; } } } return true; }; dojo.html.selectElement=function(_291){ _291=dojo.byId(_291); if(document.selection&&dojo.html.body().createTextRange){ var _292=dojo.html.body().createTextRange(); _292.moveToElementText(_291); _292.select(); }else{ if(window["getSelection"]){ var _293=window.getSelection(); if(_293["selectAllChildren"]){ _293.selectAllChildren(_291); } } } }; dojo.html.isSelectionCollapsed=function(){ if(document["selection"]){ return document.selection.createRange().text==""; }else{ if(window["getSelection"]){ var _294=window.getSelection(); if(dojo.lang.isString(_294)){ return _294==""; }else{ return _294.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&&_2d0<=_2d5&&_2d1>=top&&_2d1<=_2d3); }; dojo.html.renderedTextContent=function(node){ node=dojo.byId(node); var _2d7=""; if(node==null){ return _2d7; } for(var i=0;i]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _2e3="cell"; }else{ if((/^]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _2e3="row"; }else{ if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(dojo.string.trimStart(txt))){ txt=""+txt+"
"; _2e3="section"; } } } tn.innerHTML=txt; tn.normalize(); var _2e4=null; switch(_2e3){ case "cell": _2e4=tn.getElementsByTagName("tr")[0]; break; case "row": _2e4=tn.getElementsByTagName("tbody")[0]; break; case "section": _2e4=tn.getElementsByTagName("table")[0]; break; default: _2e4=tn; break; } var _2e5=[]; for(var x=0;x<_2e4.childNodes.length;x++){ _2e5.push(_2e4.childNodes[x].cloneNode(true)); } tn.style.display="none"; document.body.removeChild(tn); return _2e5; }; 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(_2ee,_2ef){ if(dojo.lang.isArray(_2ee)){ while(_2ee.length<4){ _2ee.push(0); } while(_2ee.length>4){ _2ee.pop(); } var ret=_2ee; }else{ var node=dojo.byId(_2ee); var ret=[dojo.html.getAbsoluteX(node,_2ef),dojo.html.getAbsoluteY(node,_2ef),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,_2f3,_2f4,_2f5,_2f6){ if(dojo.lang.isArray(_2f3)){ _2f6=_2f5; _2f5=_2f4; _2f4=_2f3[1]; _2f3=_2f3[0]; } if(!isNaN(_2f5)){ _2f5=[Number(_2f5),Number(_2f5)]; }else{ if(!dojo.lang.isArray(_2f5)){ _2f5=[0,0]; } } var _2f7=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth+_2f5[0]; var h=node.offsetHeight+_2f5[1]; if(_2f6){ _2f3-=_2f7.x; _2f4-=_2f7.y; } var x=_2f3+w; if(x>view.w){ x=view.w-w; }else{ x=_2f3; } x=Math.max(_2f5[0],x)+_2f7.x; var y=_2f4+h; if(y>view.h){ y=view.h-h; }else{ y=_2f4; } y=Math.max(_2f5[1],y)+_2f7.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,_2ff,_300,_301,_302){ if(dojo.lang.isArray(_2ff)){ _302=_301; _301=_300; _300=_2ff[1]; _2ff=_2ff[0]; } var _303=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth; var h=node.offsetHeight; if(_302){ _2ff-=_303.x; _300-=_303.y; } var x=-1,y=-1; if(_2ff+w<=view.w&&_300+h<=view.h){ x=_2ff; y=_300; } if((x<0||y<0)&&_2ff<=view.w&&_300+h<=view.h){ x=_2ff-w; y=_300; } if((x<0||y<0)&&_2ff+w<=view.w&&_300<=view.h){ x=_2ff; y=_300-h; } if((x<0||y<0)&&_2ff<=view.w&&_300<=view.h){ x=_2ff-w; y=_300-h; } if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){ return dojo.html.placeOnScreen(node,_2ff,_300,_301,_302); } x+=_303.x; y+=_303.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 _514=false; var _515=node.getElementsByTagName("input"); dojo.lang.forEach(_515,function(_516){ if(_514){ return; } if(_516.getAttribute("type")=="file"){ _514=true; } }); return _514; }; dojo.io.formHasFile=function(_517){ return dojo.io.checkChildrenForFile(_517); }; dojo.io.encodeForm=function(_518,_519){ if((!_518)||(!_518.tagName)||(!_518.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } var enc=/utf/i.test(_519||"")?encodeURIComponent:dojo.string.encodeAscii; var _51b=[]; for(var i=0;i<_518.elements.length;i++){ var elm=_518.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){ _543=function(){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+lh+"';",1); } _546(); }; } this.forwardStack=[]; var _549=args["forward"]||args["forwardButton"]; var tfw=function(){ if(window.location.hash!=""){ window.location.href=hash; } if(_549){ _549(); } }; 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":_543,"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,_54d){ var isp=_54d.href.split("?"); if(isp.length<2){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } var _54f=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(_54f==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 _556=dojo.hostenv.getXmlhttpObject()?true:false; this.canHandle=function(_557){ return _556&&dojo.lang.inArray((_557["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_557["method"].toLowerCase(),["post","get","head"])&&!(_557["formNode"]&&dojo.io.formHasFile(_557["formNode"])); }; this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F"; this.bind=function(_558){ if(!_558["url"]){ if(!_558["formNode"]&&(_558["backButton"]||_558["back"]||_558["changeUrl"]||_558["watchForURL"])&&(!djConfig.preventBackButtonFix)){ this.addToHistory(_558); return true; } } var url=_558.url; var _55a=""; if(_558["formNode"]){ var ta=_558.formNode.getAttribute("action"); if((ta)&&(!_558["url"])){ url=ta; } var tp=_558.formNode.getAttribute("method"); if((tp)&&(!_558["method"])){ _558.method=tp; } _55a+=dojo.io.encodeForm(_558.formNode,_558.encoding); } if(url.indexOf("#")>-1){ dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url); url=url.split("#")[0]; } if(_558["file"]){ _558.method="post"; } if(!_558["method"]){ _558.method="get"; } if(_558.method.toLowerCase()=="get"){ _558.multipart=false; }else{ if(_558["file"]){ _558.multipart=true; }else{ if(!_558["multipart"]){ _558.multipart=false; } } } if(_558["backButton"]||_558["back"]||_558["changeUrl"]){ this.addToHistory(_558); } var _55d=_558["content"]||{}; if(_558.sendTransport){ _55d["dojo.transport"]="xmlhttp"; } do{ if(_558.postContent){ _55a=_558.postContent; break; } if(_55d){ _55a+=dojo.io.argsFromMap(_55d,_558.encoding); } if(_558.method.toLowerCase()=="get"||!_558.multipart){ break; } var t=[]; if(_55a.length){ var q=_55a.split("&"); for(var i=0;i-1?"&":"?")+_55a; } if(_564){ _569+=(dojo.string.endsWithAny(_569,"?","&")?"":(_569.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } http.open(_558.method.toUpperCase(),_569,_563); setHeaders(http,_558); http.send(null); } if(!_563){ doLoad(_558,http,url,_55a,_565); } _558.abort=function(){ return http.abort(); }; return; }; dojo.io.transports.addTransport("XMLHTTPTransport"); }; dojo.provide("dojo.io.cookie"); dojo.io.cookie.setCookie=function(name,_56b,days,path,_56e,_56f){ var _570=-1; if(typeof days=="number"&&days>=0){ var d=new Date(); d.setTime(d.getTime()+(days*24*60*60*1000)); _570=d.toGMTString(); } _56b=escape(_56b); document.cookie=name+"="+_56b+";"+(_570!=-1?" expires="+_570+";":"")+(path?"path="+path:"")+(_56e?"; domain="+_56e:"")+(_56f?"; 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,_57a,_57b,_57c){ if(arguments.length==5){ _57c=_57a; _57a=null; _57b=null; } var _57d=[],cookie,value=""; if(!_57c){ 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){ _57d.push(escape(prop)+"="+escape(cookie[prop])); } value=_57d.join("&"); } dojo.io.cookie.setCookie(name,value,days,path,_57a,_57b); }; dojo.io.cookie.getObjectCookie=function(name){ var _580=null,cookie=dojo.io.cookie.getCookie(name); if(cookie){ _580={}; var _581=cookie.split("&"); for(var i=0;i<_581.length;i++){ var pair=_581[i].split("="); var _584=pair[1]; if(isNaN(_584)){ _584=unescape(pair[1]); } _580[unescape(pair[0])]=_584; } } return _580; }; dojo.io.cookie.isSupported=function(){ if(typeof navigator.cookieEnabled!="boolean"){ dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null); var _585=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__"); navigator.cookieEnabled=(_585=="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.hostenv.conditionalLoadModule({common:["dojo.uri.Uri",false,false]}); dojo.hostenv.moduleLoaded("dojo.uri.*"); dojo.provide("dojo.io.IframeIO"); dojo.require("dojo.io.BrowserIO"); dojo.require("dojo.uri.*"); dojo.io.createIFrame=function(_586,_587){ if(window[_586]){ return window[_586]; } if(window.frames[_586]){ return window.frames[_586]; } var r=dojo.render.html; var _589=null; var turi=dojo.uri.dojoUri("iframe_history.html?noInit=true"); var _58b=((r.ie)&&(dojo.render.os.win))?"