/* 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:1,flag:"",revision:Number("$Rev: 2555 $".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+="?"+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(dojo.hostenv.loadedUris[uri]){ return; } var _38=this.getText(uri,null,true); if(_38==null){ return 0; } 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){ _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){ if(this.loaded_modules_[(new String(_52)).toLowerCase()]){ return this.loaded_modules_[_52]; } var _54=dojo.evalObjPath(_52); if((typeof _54!=="undefined")&&(_54)){ return _54; } 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 _55=document.location.toString(); var _56=_55.split("?",2); if(_56.length>1){ var _57=_56[1]; var _58=_57.split("&"); for(var x in _58){ var sp=_58[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 _5c=document.getElementsByTagName("script"); var _5d=/(__package__|dojo)\.js(\?|$)/i; for(var i=0;i<_5c.length;i++){ var src=_5c[i].getAttribute("src"); if(!src){ continue; } var m=src.match(_5d); 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 _67=dua.indexOf("Gecko"); drh.mozilla=drh.moz=(_67>=0)&&(!drh.khtml); if(drh.mozilla){ drh.geckoVersion=dua.substring(_67+6,_67+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 _68=navigator.mimeTypes["image/svg+xml"]||navigator.mimeTypes["image/svg"]||navigator.mimeTypes["image/svg-xml"]; if(_68){ dr.svg.adobe=_68&&_68.enabledPlugin&&_68.enabledPlugin.description&&(_68.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 _68=f; try{ var _69=new ActiveXObject("Adobe.SVGCtl"); _68=t; } catch(e){ } if(_68){ 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 _6a=null; var _6b=null; try{ _6a=new XMLHttpRequest(); } catch(e){ } if(!_6a){ for(var i=0;i<3;++i){ var _6d=DJ_XMLHTTP_PROGIDS[i]; try{ _6a=new ActiveXObject(_6d); } catch(e){ _6b=e; } if(_6a){ DJ_XMLHTTP_PROGIDS=[_6d]; break; } } } if(!_6a){ return dojo.raise("XMLHTTP not available",_6b); } return _6a; }; dojo.hostenv.getText=function(uri,_6f,_70){ var _71=this.getXmlhttpObject(); if(_6f){ _71.onreadystatechange=function(){ if((4==_71.readyState)&&(_71["status"])){ if(_71.status==200){ dojo.debug("LOADED URI: "+uri); _6f(_71.responseText); } } }; } _71.open("GET",uri,_6f?true:false); _71.send(null); if(_6f){ return null; } return _71.responseText; }; dojo.hostenv.defaultDebugContainerId="dojoDebug"; dojo.hostenv._println_buffer=[]; dojo.hostenv._println_safe=false; dojo.hostenv.println=function(_72){ if(!dojo.hostenv._println_safe){ dojo.hostenv._println_buffer.push(_72); }else{ try{ var _73=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId); if(!_73){ _73=document.getElementsByTagName("body")[0]||document.body; } var div=document.createElement("div"); div.appendChild(document.createTextNode(_72)); _73.appendChild(div); } catch(e){ try{ document.write("
"+_72+"
"); } catch(e2){ window.status=_72; } } } }; 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(_75,_76,fp,_78){ var _79=_75["on"+_76]||function(){ }; _75["on"+_76]=function(){ fp.apply(_75,arguments); _79.apply(_75,arguments); }; return true; } dj_addNodeEvtHdlr(window,"load",function(){ if(dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } dojo.hostenv.modulesLoaded(); }); dojo.hostenv.makeWidgets=function(){ var _7a=[]; if(djConfig.searchIds&&djConfig.searchIds.length>0){ _7a=_7a.concat(djConfig.searchIds); } if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){ _7a=_7a.concat(dojo.hostenv.searchIds); } if((djConfig.parseWidgets)||(_7a.length>0)){ if(dojo.evalObjPath("dojo.widget.Parse")){ try{ var _7b=new dojo.xml.Parse(); if(_7a.length>0){ for(var x=0;x<_7a.length;x++){ var _7d=document.getElementById(_7a[x]); if(!_7d){ continue; } var _7e=_7b.parseElement(_7d,null,true); dojo.widget.getParser().createComponents(_7e); } }else{ if(djConfig.parseWidgets){ var _7e=_7b.parseElement(document.getElementsByTagName("body")[0]||document.body,null,true); dojo.widget.getParser().createComponents(_7e); } } } catch(e){ dojo.debug("auto-build-widgets error:",e); } } } }; dojo.hostenv.modulesLoadedListeners.push(function(){ if(!dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }); try{ if(!window["djConfig"]||!window.djConfig["preventBackButtonFix"]){ document.write(""); } 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,_c0){ if(!ns){ ns=dj_global; } for(var x in ns){ if(ns[x]===_c0){ return new String(x); } } return null; }; dojo.lang.has=function(obj,_c3){ return (typeof obj[_c3]!=="undefined"); }; dojo.lang.isEmpty=function(obj){ if(dojo.lang.isObject(obj)){ var tmp={}; var _c6=0; for(var x in obj){ if(obj[x]&&(!tmp[x])){ _c6++; break; } } return (_c6==0); }else{ if(dojo.lang.isArray(obj)||dojo.lang.isString(obj)){ return obj.length==0; } } }; dojo.lang.forEach=function(arr,_c9,_ca){ var _cb=dojo.lang.isString(arr); if(_cb){ arr=arr.split(""); } var il=arr.length; for(var i=0;i<((_ca)?il:arr.length);i++){ if(_c9(arr[i],i,arr)=="break"){ break; } } }; dojo.lang.map=function(arr,obj,_d0){ var _d1=dojo.lang.isString(arr); if(_d1){ arr=arr.split(""); } if(dojo.lang.isFunction(obj)&&(!_d0)){ _d0=obj; obj=dj_global; }else{ if(dojo.lang.isFunction(obj)&&_d0){ var _d2=obj; obj=_d0; _d0=_d2; } } if(Array.map){ var _d3=Array.map(arr,_d0,obj); }else{ var _d3=[]; for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _df=dj_global; } for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _e4=dj_global; } for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _e9=dj_global; } var _eb=[]; for(var i=0;i0){ 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,_109,_10a){ for(var name in _109){ var re=new RegExp("\\%\\{"+name+"\\}","g"); str=str.replace(re,_109[name]); } if(_10a){ 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 _10e=str.split(" "); var _10f=""; var len=_10e.length; for(var i=0;i/gm,">").replace(/"/gm,""").replace(/'/gm,"'"); }; 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,_123,_124){ var out=""; for(var i=0;i<_123;i++){ out+=str; if(_124&&i<_123-1){ out+=_124; } } return out; }; dojo.string.endsWith=function(str,end,_129){ if(_129){ 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.addToPrototype=function(){ for(var _13e in dojo.string){ if(dojo.lang.isFunction(dojo.string[_13e])){ var func=(function(){ var meth=_13e; switch(meth){ case "addToPrototype": return null; break; case "escape": return function(type){ return dojo.string.escape(type,this); }; break; default: return function(){ var args=[this]; for(var i=0;i=4){ this.changeUrl=_147; } } }; dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,evt){ },error:function(type,_14c){ },handle:function(){ },abort:function(){ },fromKwArgs:function(_14d){ if(_14d["url"]){ _14d.url=_14d.url.toString(); } if(!_14d["method"]&&_14d["formNode"]&&_14d["formNode"].method){ _14d.method=_14d["formNode"].method; } if(!_14d["handle"]&&_14d["handler"]){ _14d.handle=_14d.handler; } if(!_14d["load"]&&_14d["loaded"]){ _14d.load=_14d.loaded; } if(!_14d["changeUrl"]&&_14d["changeURL"]){ _14d.changeUrl=_14d.changeURL; } if(!_14d["encoding"]){ if(!dojo.lang.isUndefined(djConfig["bindEncoding"])){ _14d.encoding=djConfig.bindEncoding; }else{ _14d.encoding=""; } } var _14e=dojo.lang.isFunction; for(var x=0;x5)&&(_169[x].indexOf("dojo-")>=0)){ return "dojo:"+_169[x].substr(5).toLowerCase(); } } } } } return _166.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(_16c,_16d){ var node=_16c.firstChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.nextSibling; } if(_16d&&node&&node.tagName&&node.tagName.toLowerCase()!=_16d.toLowerCase()){ node=dojo.dom.nextElement(node,_16d); } return node; }; dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_16f,_170){ var node=_16f.lastChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.previousSibling; } if(_170&&node&&node.tagName&&node.tagName.toLowerCase()!=_170.toLowerCase()){ node=dojo.dom.prevElement(node,_170); } return node; }; dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_173){ if(!node){ return null; } do{ node=node.nextSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_173&&_173.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.nextElement(node,_173); } return node; }; dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_175){ if(!node){ return null; } if(_175){ _175=_175.toLowerCase(); } do{ node=node.previousSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_175&&_175.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.prevElement(node,_175); } return node; }; dojo.dom.moveChildren=function(_176,_177,trim){ var _179=0; if(trim){ while(_176.hasChildNodes()&&_176.firstChild.nodeType==dojo.dom.TEXT_NODE){ _176.removeChild(_176.firstChild); } while(_176.hasChildNodes()&&_176.lastChild.nodeType==dojo.dom.TEXT_NODE){ _176.removeChild(_176.lastChild); } } while(_176.hasChildNodes()){ _177.appendChild(_176.firstChild); _179++; } return _179; }; dojo.dom.copyChildren=function(_17a,_17b,trim){ var _17d=_17a.cloneNode(true); return this.moveChildren(_17d,_17b,trim); }; dojo.dom.removeChildren=function(node){ var _17f=node.childNodes.length; while(node.hasChildNodes()){ node.removeChild(node.firstChild); } return _17f; }; dojo.dom.replaceChildren=function(node,_181){ dojo.dom.removeChildren(node); node.appendChild(_181); }; dojo.dom.removeNode=function(node){ if(node&&node.parentNode){ return node.parentNode.removeChild(node); } }; dojo.dom.getAncestors=function(node,_184,_185){ var _186=[]; var _187=dojo.lang.isFunction(_184); while(node){ if(!_187||_184(node)){ _186.push(node); } if(_185&&_186.length>0){ return _186[0]; } node=node.parentNode; } if(_185){ return null; } return _186; }; dojo.dom.getAncestorsByTag=function(node,tag,_18a){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_18a); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_18f,_190){ if(_190&&node){ node=node.parentNode; } while(node){ if(node==_18f){ 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,_193){ if(!_193){ _193="text/xml"; } if(typeof DOMParser!="undefined"){ var _194=new DOMParser(); return _194.parseFromString(str,_193); }else{ if(typeof ActiveXObject!="undefined"){ var _195=new ActiveXObject("Microsoft.XMLDOM"); if(_195){ _195.async=false; _195.loadXML(str); return _195; }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 _197=document.implementation.createDocument("foo","",null); for(var i=0;i"); } } catch(e){ } dojo.io.checkChildrenForFile=function(node){ var _1b3=false; var _1b4=node.getElementsByTagName("input"); dojo.lang.forEach(_1b4,function(_1b5){ if(_1b3){ return; } if(_1b5.getAttribute("type")=="file"){ _1b3=true; } }); return _1b3; }; dojo.io.formHasFile=function(_1b6){ return dojo.io.checkChildrenForFile(_1b6); }; dojo.io.encodeForm=function(_1b7,_1b8){ if((!_1b7)||(!_1b7.tagName)||(!_1b7.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } var enc=/utf/i.test(_1b8||"")?encodeURIComponent:dojo.string.encodeAscii; var _1ba=[]; for(var i=0;i<_1b7.elements.length;i++){ var elm=_1b7.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){ _1e2=function(){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+lh+"';",1); } _1e5(); }; } this.forwardStack=[]; var _1e8=args["forward"]||args["forwardButton"]; var tfw=function(){ if(window.location.hash!=""){ window.location.href=hash; } if(_1e8){ _1e8(); } }; 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":_1e2,"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,_1ec){ var isp=_1ec.href.split("?"); if(isp.length<2){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } var _1ee=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(_1ee==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 _1f5=dojo.hostenv.getXmlhttpObject()?true:false; this.canHandle=function(_1f6){ return _1f5&&dojo.lang.inArray((_1f6["mimetype"]||"".toLowerCase()),["text/plain","text/html","application/xml","text/xml","text/javascript","text/json"])&&dojo.lang.inArray(_1f6["method"].toLowerCase(),["post","get","head"])&&!(_1f6["formNode"]&&dojo.io.formHasFile(_1f6["formNode"])); }; this.multipartBoundary="45309FFF-BD65-4d50-99C9-36986896A96F"; this.bind=function(_1f7){ if(!_1f7["url"]){ if(!_1f7["formNode"]&&(_1f7["backButton"]||_1f7["back"]||_1f7["changeUrl"]||_1f7["watchForURL"])&&(!djConfig.preventBackButtonFix)){ this.addToHistory(_1f7); return true; } } var url=_1f7.url; var _1f9=""; if(_1f7["formNode"]){ var ta=_1f7.formNode.getAttribute("action"); if((ta)&&(!_1f7["url"])){ url=ta; } var tp=_1f7.formNode.getAttribute("method"); if((tp)&&(!_1f7["method"])){ _1f7.method=tp; } _1f9+=dojo.io.encodeForm(_1f7.formNode,_1f7.encoding); } if(url.indexOf("#")>-1){ dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url); url=url.split("#")[0]; } if(_1f7["file"]){ _1f7.method="post"; } if(!_1f7["method"]){ _1f7.method="get"; } if(_1f7.method.toLowerCase()=="get"){ _1f7.multipart=false; }else{ if(_1f7["file"]){ _1f7.multipart=true; }else{ if(!_1f7["multipart"]){ _1f7.multipart=false; } } } if(_1f7["backButton"]||_1f7["back"]||_1f7["changeUrl"]){ this.addToHistory(_1f7); } do{ if(_1f7.postContent){ _1f9=_1f7.postContent; break; } if(_1f7["content"]){ _1f9+=dojo.io.argsFromMap(_1f7.content,_1f7.encoding); } if(_1f7.method.toLowerCase()=="get"||!_1f7.multipart){ break; } var t=[]; if(_1f9.length){ var q=_1f9.split("&"); for(var i=0;i-1?"&":"?")+_1f9; } if(_202){ _207+=(dojo.string.endsWithAny(_207,"?","&")?"":(_207.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } http.open(_1f7.method.toUpperCase(),_207,_201); setHeaders(http,_1f7); http.send(null); } if(!_201){ doLoad(_1f7,http,url,_1f9,_203); } _1f7.abort=function(){ return http.abort(); }; return; }; dojo.io.transports.addTransport("XMLHTTPTransport"); }; dojo.require("dojo.lang"); dojo.provide("dojo.event"); dojo.event=new function(){ this.canTimeout=dojo.lang.isFunction(dj_global["setTimeout"])||dojo.lang.isAlien(dj_global["setTimeout"]); this.createFunctionPair=function(obj,cb){ var ret=[]; if(typeof obj=="function"){ ret[1]=dojo.lang.nameAnonFunc(obj,dj_global); ret[0]=dj_global; return ret; }else{ if((typeof obj=="object")&&(typeof cb=="string")){ return [obj,cb]; }else{ if((typeof obj=="object")&&(typeof cb=="function")){ ret[1]=dojo.lang.nameAnonFunc(cb,obj); ret[0]=obj; return ret; } } } return null; }; function interpolateArgs(args){ var ao={srcObj:dj_global,srcFunc:null,adviceObj:dj_global,adviceFunc:null,aroundObj:null,aroundFunc:null,adviceType:(args.length>2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false}; switch(args.length){ case 0: return; case 1: return; case 2: ao.srcFunc=args[0]; ao.adviceFunc=args[1]; break; case 3: if((typeof args[0]=="object")&&(typeof args[1]=="string")&&(typeof args[2]=="string")){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((typeof args[1]=="string")&&(typeof args[2]=="string")){ ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((typeof args[0]=="object")&&(typeof args[1]=="string")&&(typeof args[2]=="function")){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; var _20d=dojo.lang.nameAnonFunc(args[2],ao.adviceObj); ao.adviceObj[_20d]=args[2]; ao.adviceFunc=_20d; }else{ if((typeof args[0]=="function")&&(typeof args[1]=="object")&&(typeof args[2]=="string")){ ao.adviceType="after"; ao.srcObj=dj_global; var _20d=dojo.lang.nameAnonFunc(args[0],ao.srcObj); ao.srcObj[_20d]=args[0]; ao.srcFunc=_20d; ao.adviceObj=args[1]; ao.adviceFunc=args[2]; } } } } break; case 4: if((typeof args[0]=="object")&&(typeof args[2]=="object")){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ if((typeof args[1]).toLowerCase()=="object"){ ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=dj_global; ao.adviceFunc=args[3]; }else{ if((typeof args[2]).toLowerCase()=="object"){ 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,_225){ this.object=obj||dj_global; this.methodname=_225; this.methodfunc=this.object[_225]; this.before=[]; this.after=[]; this.around=[]; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_227){ if(!obj){ obj=dj_global; } if(!obj[_227]){ obj[_227]=function(){ }; }else{ if((!dojo.lang.isFunction(obj[_227]))&&(!dojo.lang.isAlien(obj[_227]))){ return null; } } var _228=_227+"$joinpoint"; var _229=_227+"$joinpoint$method"; var _22a=obj[_228]; if(!_22a){ var _22b=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _22b=true; dojo.event.browser.addClobberNodeAttrs(obj,[_228,_229,_227]); } } obj[_229]=obj[_227]; _22a=obj[_228]=new dojo.event.MethodJoinPoint(obj,_229); obj[_227]=function(){ var args=[]; if((_22b)&&(!arguments.length)&&(window.event)){ args.push(dojo.event.browser.fixEvent(window.event)); }else{ for(var x=0;x0){ dojo.lang.forEach(this.before,_232,true); } var _242; if(this.around.length>0){ var mi=new dojo.event.MethodInvocation(this,obj,args); _242=mi.proceed(); }else{ if(this.methodfunc){ _242=this.object[this.methodname].apply(this.object,args); } } if(this.after.length>0){ dojo.lang.forEach(this.after,_232,true); } return (this.methodfunc)?_242: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(_247,_248,_249,_24a,_24b,_24c,once,_24e,rate,_250){ var arr=this.getArr(_24b); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_247,_248,_249,_24a,_24e,rate,_250]; if(once){ if(this.hasAdvice(_247,_248,_24b,arr)>=0){ return; } } if(_24c=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_253,_254,_255,arr){ if(!arr){ arr=this.getArr(_255); } var ind=-1; for(var x=0;x=0;i=i-1){ var el=na[i]; if(el["__clobberAttrs__"]){ for(var j=0;j0&&!(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; } } } } _2b2.path=segs.join("/"); } } } } uri=""; if(_2b2.scheme!=null){ uri+=_2b2.scheme+":"; } if(_2b2.authority!=null){ uri+="//"+_2b2.authority; } uri+=_2b2.path; if(_2b2.query!=null){ uri+="?"+_2b2.query; } if(_2b2.fragment!=null){ uri+="#"+_2b2.fragment; } } this.uri=uri.toString(); var _2b7="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_2b7)); 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){ _2b7="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_2b7)); 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.math"); dojo.math.degToRad=function(x){ return (x*Math.PI)/180; }; dojo.math.radToDeg=function(x){ return (x*180)/Math.PI; }; dojo.math.factorial=function(n){ if(n<1){ return 0; } var _2bc=1; for(var i=1;i<=n;i++){ _2bc*=i; } return _2bc; }; dojo.math.permutations=function(n,k){ if(n==0||k==0){ return 1; } return (dojo.math.factorial(n)/dojo.math.factorial(n-k)); }; dojo.math.combinations=function(n,r){ if(n==0||r==0){ return 1; } return (dojo.math.factorial(n)/(dojo.math.factorial(n-r)*dojo.math.factorial(r))); }; dojo.math.bernstein=function(t,n,i){ return (dojo.math.combinations(n,i)*Math.pow(t,i)*Math.pow(1-t,n-i)); }; dojo.math.gaussianRandom=function(){ var k=2; do{ var i=2*Math.random()-1; var j=2*Math.random()-1; k=i*i+j*j; }while(k>=1); k=Math.sqrt((-2*Math.log(k))/k); return i*k; }; dojo.math.mean=function(){ var _2c8=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0; for(var i=0;i<_2c8.length;i++){ mean+=_2c8[i]; } return mean/_2c8.length; }; dojo.math.round=function(_2cb,_2cc){ if(!_2cc){ var _2cd=1; }else{ var _2cd=Math.pow(10,_2cc); } return Math.round(_2cb*_2cd)/_2cd; }; dojo.math.sd=function(){ var _2ce=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; return Math.sqrt(dojo.math.variance(_2ce)); }; dojo.math.variance=function(){ var _2cf=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0,squares=0; for(var i=0;i<_2cf.length;i++){ mean+=_2cf[i]; squares+=Math.pow(_2cf[i],2); } return (squares/_2cf.length)-Math.pow(mean/_2cf.length,2); }; 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(_2d7){ if(_2d7){ 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(_2d8,_2d9){ return dojo.graphics.color.blend(this.toRgb(),new Color(_2d8).toRgb(),_2d9); }}); 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,_2dc){ if(typeof a=="string"){ return dojo.graphics.color.blendHex(a,b,_2dc); } if(!_2dc){ _2dc=0; }else{ if(_2dc>1){ _2dc=1; }else{ if(_2dc<-1){ _2dc=-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*_2dc)); } return c; }; dojo.graphics.color.blendHex=function(a,b,_2e2){ return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_2e2)); }; dojo.graphics.color.extractRGB=function(_2e3){ var hex="0123456789abcdef"; _2e3=_2e3.toLowerCase(); if(_2e3.indexOf("rgb")==0){ var _2e5=_2e3.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_2e5.splice(1,3); return ret; }else{ var _2e7=dojo.graphics.color.hex2rgb(_2e3); if(_2e7){ return _2e7; }else{ return dojo.graphics.color.named[_2e3]||[255,255,255]; } } }; dojo.graphics.color.hex2rgb=function(hex){ var _2e9="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_2e9+"]","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=_30b/((l<0.5)?(2*l):(2-2*l)); } h=0; if(_30b>0){ if((max==r)&&(max!=g)){ h+=(g-b)/_30b; } if((max==g)&&(max!=b)){ h+=(2+(b-r)/_30b); } if((max==b)&&(max!=r)){ h+=(4+(r-g)/_30b); } 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.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 _311=dojo.style.getStyle(node,"-moz-box-sizing"); if(!_311){ _311=dojo.style.getStyle(node,"box-sizing"); } return (_311?_311:dojo.style.boxSizing.contentBox); } }; dojo.style.isBorderBox=function(node){ return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox); }; dojo.style.getUnitValue=function(_313,_314,_315){ var _316={value:0,units:"px"}; var s=dojo.style.getComputedStyle(_313,_314); if(s==""||(s=="auto"&&_315)){ return _316; } if(dojo.lang.isUndefined(s)){ _316.value=NaN; }else{ var _318=s.match(/([\d.]+)([a-z%]*)/i); if(!_318){ _316.value=NaN; }else{ _316.value=Number(_318[1]); _316.units=_318[2].toLowerCase(); } } return _316; }; dojo.style.getPixelValue=function(_319,_31a,_31b){ var _31c=dojo.style.getUnitValue(_319,_31a,_31b); if(isNaN(_31c.value)||(_31c.value&&_31c.units!="px")){ return NaN; } return _31c.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 _31f=dojo.style.isPositionAbsolute(node); var left=dojo.style.getPixelValue(node,"margin-left",_31f); var _321=dojo.style.getPixelValue(node,"margin-right",_31f); return left+_321; }; dojo.style.getBorderWidth=function(node){ var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width")); var _324=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width")); return left+_324; }; dojo.style.getPaddingWidth=function(node){ var left=dojo.style.getPixelValue(node,"padding-left",true); var _327=dojo.style.getPixelValue(node,"padding-right",true); return left+_327; }; 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,_32c){ if(!dojo.style.isBorderBox(node)){ _32c-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } _32c-=dojo.style.getMarginWidth(node); if(!isNaN(_32c)&&_32c>0){ node.style.width=_32c+"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 _32e=dojo.style.isPositionAbsolute(node); var top=dojo.style.getPixelValue(node,"margin-top",_32e); var _330=dojo.style.getPixelValue(node,"margin-bottom",_32e); return top+_330; }; dojo.style.getBorderHeight=function(node){ var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width")); var _333=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width")); return top+_333; }; dojo.style.getPaddingHeight=function(node){ var top=dojo.style.getPixelValue(node,"padding-top",true); var _336=dojo.style.getPixelValue(node,"padding-bottom",true); return top+_336; }; 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,_33b){ if(!dojo.style.isBorderBox(node)){ _33b-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } _33b-=dojo.style.getMarginHeight(node); if(!isNaN(_33b)&&_33b>0){ node.style.height=_33b+"px"; return true; }else{ return false; } }; dojo.style.setContentWidth=function(node,_33d){ if(dojo.style.isBorderBox(node)){ _33d+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } if(!isNaN(_33d)&&_33d>0){ node.style.width=_33d+"px"; return true; }else{ return false; } }; dojo.style.setContentHeight=function(node,_33f){ if(dojo.style.isBorderBox(node)){ _33f+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } if(!isNaN(_33f)&&_33f>0){ node.style.height=_33f+"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,_342){ var _343=(type=="top")?"offsetTop":"offsetLeft"; var _344=(type=="top")?"scrollTop":"scrollLeft"; var alt=(type=="top")?"y":"x"; var ret=0; if(node["offsetParent"]){ if(_342&&node.parentNode!=document.body){ ret-=dojo.style.sumAncestorProperties(node,_344); } do{ ret+=node[_343]; node=node.offsetParent; }while(node!=document.getElementsByTagName("body")[0].parentNode&&node!=null); }else{ if(node[alt]){ ret+=node[alt]; } } return ret; }; dojo.style.sumAncestorProperties=function(node,prop){ if(!node){ return 0; } var _349=0; while(node){ var val=node[prop]; if(val){ _349+=val-0; } node=node.parentNode; } return _349; }; dojo.style.totalOffsetLeft=function(node,_34c){ return dojo.style.getTotalOffset(node,"left",_34c); }; dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft; dojo.style.totalOffsetTop=function(node,_34e){ return dojo.style.getTotalOffset(node,"top",_34e); }; dojo.style.getAbsoluteY=dojo.style.totalOffsetTop; dojo.style.getAbsolutePosition=function(node,_350){ var _351=[dojo.style.getAbsoluteX(node,_350),dojo.style.getAbsoluteY(node,_350)]; _351.x=_351[0]; _351.y=_351[1]; return _351; }; dojo.style.styleSheet=null; dojo.style.insertCssRule=function(_352,_353,_354){ 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){ _354=dojo.style.styleSheet.cssRules.length; }else{ if(dojo.style.styleSheet.rules){ _354=dojo.style.styleSheet.rules.length; }else{ return null; } } } if(dojo.style.styleSheet.insertRule){ var rule=_352+" { "+_353+" }"; return dojo.style.styleSheet.insertRule(rule,_354); }else{ if(dojo.style.styleSheet.addRule){ return dojo.style.styleSheet.addRule(_352,_353,_354); }else{ return null; } } }; dojo.style.removeCssRule=function(_356){ if(!dojo.style.styleSheet){ dojo.debug("no stylesheet defined for removing rules"); return false; } if(dojo.render.html.ie){ if(!_356){ _356=dojo.style.styleSheet.rules.length; dojo.style.styleSheet.removeRule(_356); } }else{ if(document.styleSheets[0]){ if(!_356){ _356=dojo.style.styleSheet.cssRules.length; } dojo.style.styleSheet.deleteRule(_356); } } return true; }; dojo.style.insertCssFile=function(URI,doc,_359){ if(!URI){ return; } if(!doc){ doc=document; } if(doc.baseURI){ URI=new dojo.uri.Uri(doc.baseURI,URI); } if(_359&&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{ _36d=0.999999; } }else{ if(_36d<0){ _36d=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)&&(document.selection.clear)){ document.selection.clear(); } } return true; } catch(e){ dojo.debug(e); return false; } }; dojo.html.disableSelection=function(_376){ _376=_376||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _376.style.MozUserSelect="none"; }else{ if(h.safari){ _376.style.KhtmlUserSelect="none"; }else{ if(h.ie){ _376.unselectable="on"; }else{ return false; } } } return true; }; dojo.html.enableSelection=function(_378){ _378=_378||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _378.style.MozUserSelect=""; }else{ if(h.safari){ _378.style.KhtmlUserSelect=""; }else{ if(h.ie){ _378.unselectable="off"; }else{ return false; } } } return true; }; dojo.html.selectElement=function(_37a){ if(document.selection&&dojo.html.body().createTextRange){ var _37b=dojo.html.body().createTextRange(); _37b.moveToElementText(_37a); _37b.select(); }else{ if(window["getSelection"]){ var _37c=window.getSelection(); if(_37c["selectAllChildren"]){ _37c.selectAllChildren(_37a); } } } }; dojo.html.isSelectionCollapsed=function(){ if(document["selection"]){ return document.selection.createRange().text==""; }else{ if(window["getSelection"]){ var _37d=window.getSelection(); if(dojo.lang.isString(_37d)){ return _37d==""; }else{ return _37d.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&&_3b9<=_3be&&_3ba>=top&&_3ba<=_3bc); }; dojo.html.renderedTextContent=function(node){ var _3c0=""; if(node==null){ return _3c0; } for(var i=0;i4){ _3d3.pop(); } var ret=_3d3; }else{ var node=dojo.byId(_3d3); var ret=[dojo.html.getAbsoluteX(node,_3d4),dojo.html.getAbsoluteY(node,_3d4),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,_3d8,_3d9,_3da,_3db){ if(dojo.lang.isArray(_3d8)){ _3db=_3da; _3da=_3d9; _3d9=_3d8[1]; _3d8=_3d8[0]; } if(!isNaN(_3da)){ _3da=[Number(_3da),Number(_3da)]; }else{ if(!dojo.lang.isArray(_3da)){ _3da=[0,0]; } } var _3dc=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth+_3da[0]; var h=node.offsetHeight+_3da[1]; if(_3db){ _3d8-=_3dc.x; _3d9-=_3dc.y; } var x=_3d8+w; if(x>view.w){ x=view.w-w; }else{ x=_3d8; } x=Math.max(_3da[0],x)+_3dc.x; var y=_3d9+h; if(y>view.h){ y=view.h-h; }else{ y=_3d9; } y=Math.max(_3da[1],y)+_3dc.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,_3e4,_3e5,_3e6,_3e7){ if(dojo.lang.isArray(_3e4)){ _3e7=_3e6; _3e6=_3e5; _3e5=_3e4[1]; _3e4=_3e4[0]; } var _3e8=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth; var h=node.offsetHeight; if(_3e7){ _3e4-=_3e8.x; _3e5-=_3e8.y; } var x=-1,y=-1; if(_3e4+w<=view.w&&_3e5+h<=view.h){ x=_3e4; y=_3e5; } if((x<0||y<0)&&_3e4<=view.w&&_3e5+h<=view.h){ x=_3e4-w; y=_3e5; } if((x<0||y<0)&&_3e4+w<=view.w&&_3e5<=view.h){ x=_3e4; y=_3e5-h; } if((x<0||y<0)&&_3e4<=view.w&&_3e5<=view.h){ x=_3e4-w; y=_3e5-h; } if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){ return dojo.html.placeOnScreen(node,_3e4,_3e5,_3e6,_3e7); } x+=_3e8.x; y+=_3e8.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("