/*
	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:0,flag:"",revision:Number("$Rev: 2495 $".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;x<mll.length;x++){ mll[x](); } dojo.loaded(); }; dojo.addOnLoad=function(obj,_41){ if(arguments.length==1){ dojo.hostenv.modulesLoadedListeners.push(obj); }else{ if(arguments.length>1){ 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("<div>"+_72+"</div>"); } 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("<iframe style='border: 0px; width: 1px; height: 1px; position: absolute; bottom: 0px; right: 0px; visibility: visible;' name='djhistory' id='djhistory' src='"+(dojo.hostenv.getBaseScriptUri()+"iframe_history.html")+"'></iframe>"); } if(dojo.render.html.ie){ document.write("<style>v:*{ behavior:url(#default#VML); }</style>"); document.write("<xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>"); } } 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<arguments.length;i++){ if((arguments[i] instanceof Array)||(typeof arguments[i]=="array")){ for(var j=0;j<arguments[i].length;j++){ ids=ids.concat(dojo.hostenv.byIdArray(arguments[i][j])); } }else{ ids.push(dojo.hostenv.byId(arguments[i])); } } return ids; }; dojo.hostenv.conditionalLoadModule=function(_84){ var _85=_84["common"]||[]; var _86=(_84[dojo.hostenv.name_])?_85.concat(_84[dojo.hostenv.name_]||[]):_85.concat(_84["default"]||[]); for(var x=0;x<_86.length;x++){ var _88=_86[x]; if(_88.constructor==Array){ dojo.hostenv.loadModule.apply(dojo.hostenv,_88); }else{ dojo.hostenv.loadModule(_88); } } }; dojo.hostenv.require=dojo.hostenv.loadModule; dojo.require=function(){ dojo.hostenv.loadModule.apply(dojo.hostenv,arguments); }; dojo.requireAfter=dojo.require; dojo.requireIf=function(){ if((arguments[0]===true)||(arguments[0]=="common")||(dojo.render[arguments[0]].capable)){ var _89=[]; for(var i=1;i<arguments.length;i++){ _89.push(arguments[i]); } dojo.require.apply(dojo,_89); } }; dojo.requireAfterIf=dojo.requireIf; dojo.conditionalRequire=dojo.requireIf; dojo.kwCompoundRequire=function(){ dojo.hostenv.conditionalLoadModule.apply(dojo.hostenv,arguments); }; dojo.hostenv.provide=dojo.hostenv.startPackage; dojo.provide=function(){ return dojo.hostenv.startPackage.apply(dojo.hostenv,arguments); }; dojo.setModulePrefix=function(_8b,_8c){ return dojo.hostenv.setModulePrefix(_8b,_8c); }; dojo.profile={start:function(){ },end:function(){ },dump:function(){ }}; dojo.exists=function(obj,_8e){ var p=_8e.split("."); for(var i=0;i<p.length;i++){ if(!(obj[p[i]])){ return false; } obj=obj[p[i]]; } return true; }; dojo.provide("dojo.lang"); dojo.provide("dojo.AdapterRegistry"); dojo.provide("dojo.lang.Lang"); dojo.lang.mixin=function(obj,_92,_93){ if(typeof _93!="object"){ _93={}; } for(var x in _92){ if(typeof _93[x]=="undefined"||_93[x]!=_92[x]){ obj[x]=_92[x]; } } return obj; }; dojo.lang.extend=function(_95,_96){ this.mixin(_95.prototype,_96); }; dojo.lang.extendPrototype=function(obj,_98){ this.extend(obj.constructor,_98); }; dojo.lang.anonCtr=0; dojo.lang.anon={}; dojo.lang.nameAnonFunc=function(_99,_9a){ var nso=(_9a||dojo.lang.anon); if((dj_global["djConfig"])&&(djConfig["slowAnonFuncLookups"]==true)){ for(var x in nso){ if(nso[x]===_99){ return x; } } } var ret="__"+dojo.lang.anonCtr++; while(typeof nso[ret]!="undefined"){ ret="__"+dojo.lang.anonCtr++; } nso[ret]=_99; return ret; }; dojo.lang.hitch=function(_9e,_9f){ if(dojo.lang.isString(_9f)){ var fcn=_9e[_9f]; }else{ var fcn=_9f; } return function(){ return fcn.apply(_9e,arguments); }; }; dojo.lang.setTimeout=function(_a1,_a2){ var _a3=window,argsStart=2; if(!dojo.lang.isFunction(_a1)){ _a3=_a1; _a1=_a2; _a2=arguments[2]; argsStart++; } if(dojo.lang.isString(_a1)){ _a1=_a3[_a1]; } var _a4=[]; for(var i=argsStart;i<arguments.length;i++){ _a4.push(arguments[i]); } return setTimeout(function(){ _a1.apply(_a3,_a4); },_a2); }; dojo.lang.isObject=function(wh){ return typeof wh=="object"||dojo.lang.isArray(wh)||dojo.lang.isFunction(wh); }; dojo.lang.isArray=function(wh){ return (wh instanceof Array||typeof wh=="array"); }; dojo.lang.isArrayLike=function(wh){ if(dojo.lang.isString(wh)){ return false; } if(dojo.lang.isArray(wh)){ return true; } if(dojo.lang.isNumber(wh.length)&&isFinite(wh)){ return true; } return false; }; dojo.lang.isFunction=function(wh){ return (wh instanceof Function||typeof wh=="function"); }; dojo.lang.isString=function(wh){ return (wh instanceof String||typeof wh=="string"); }; dojo.lang.isAlien=function(wh){ return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(wh)); }; dojo.lang.isBoolean=function(wh){ return (wh instanceof Boolean||typeof wh=="boolean"); }; dojo.lang.isNumber=function(wh){ return (wh instanceof Number||typeof wh=="number"); }; dojo.lang.isUndefined=function(wh){ return ((wh==undefined)&&(typeof wh=="undefined")); }; dojo.lang.whatAmI=function(wh){ try{ if(dojo.lang.isArray(wh)){ return "array"; } if(dojo.lang.isFunction(wh)){ return "function"; } if(dojo.lang.isString(wh)){ return "string"; } if(dojo.lang.isNumber(wh)){ return "number"; } if(dojo.lang.isBoolean(wh)){ return "boolean"; } if(dojo.lang.isAlien(wh)){ return "alien"; } if(dojo.lang.isUndefined(wh)){ return "undefined"; } for(var _b0 in dojo.lang.whatAmI.custom){ if(dojo.lang.whatAmI.custom[_b0](wh)){ return _b0; } } if(dojo.lang.isObject(wh)){ return "object"; } } catch(E){ } return "unknown"; }; dojo.lang.whatAmI.custom={}; dojo.lang.find=function(arr,val,_b3){ if(!dojo.lang.isArray(arr)&&dojo.lang.isArray(val)){ var a=arr; arr=val; val=a; } var _b5=dojo.lang.isString(arr); if(_b5){ arr=arr.split(""); } if(_b3){ for(var i=0;i<arr.length;++i){ if(arr[i]===val){ return i; } } }else{ for(var i=0;i<arr.length;++i){ if(arr[i]==val){ return i; } } } return -1; }; dojo.lang.indexOf=dojo.lang.find; dojo.lang.findLast=function(arr,val,_b9){ if(!dojo.lang.isArray(arr)&&dojo.lang.isArray(val)){ var a=arr; arr=val; val=a; } var _bb=dojo.lang.isString(arr); if(_bb){ arr=arr.split(""); } if(_b9){ for(var i=arr.length-1;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<arr.length;++i){ _d3.push(_d0.call(obj,arr[i])); } } if(_d1){ return _d3.join(""); }else{ return _d3; } }; dojo.lang.tryThese=function(){ for(var x=0;x<arguments.length;x++){ try{ if(typeof arguments[x]=="function"){ var ret=(arguments[x]()); if(ret){ return ret; } } } catch(e){ dojo.debug(e); } } }; dojo.lang.delayThese=function(_d7,cb,_d9,_da){ if(!_d7.length){ if(typeof _da=="function"){ _da(); } return; } if((typeof _d9=="undefined")&&(typeof cb=="number")){ _d9=cb; cb=function(){ }; }else{ if(!cb){ cb=function(){ }; if(!_d9){ _d9=0; } } } setTimeout(function(){ (_d7.shift())(); cb(); dojo.lang.delayThese(_d7,cb,_d9,_da); },_d9); }; dojo.lang.shallowCopy=function(obj){ var ret={},key; for(key in obj){ if(dojo.lang.isUndefined(ret[key])){ ret[key]=obj[key]; } } return ret; }; dojo.lang.every=function(arr,_de,_df){ var _e0=dojo.lang.isString(arr); if(_e0){ arr=arr.split(""); } if(Array.every){ return Array.every(arr,_de,_df); }else{ if(!_df){ if(arguments.length>=3){ dojo.raise("thisObject doesn't exist!"); } _df=dj_global; } for(var i=0;i<arr.length;i++){ if(!_de.call(_df,arr[i],i,arr)){ return false; } } return true; } }; dojo.lang.some=function(arr,_e3,_e4){ var _e5=dojo.lang.isString(arr); if(_e5){ arr=arr.split(""); } if(Array.some){ return Array.some(arr,_e3,_e4); }else{ if(!_e4){ if(arguments.length>=3){ dojo.raise("thisObject doesn't exist!"); } _e4=dj_global; } for(var i=0;i<arr.length;i++){ if(_e3.call(_e4,arr[i],i,arr)){ return true; } } return false; } }; dojo.lang.filter=function(arr,_e8,_e9){ var _ea=dojo.lang.isString(arr); if(_ea){ arr=arr.split(""); } if(Array.filter){ var _eb=Array.filter(arr,_e8,_e9); }else{ if(!_e9){ if(arguments.length>=3){ dojo.raise("thisObject doesn't exist!"); } _e9=dj_global; } var _eb=[]; for(var i=0;i<arr.length;i++){ if(_e8.call(_e9,arr[i],i,arr)){ _eb.push(arr[i]); } } } if(_ea){ return _eb.join(""); }else{ return _eb; } }; dojo.AdapterRegistry=function(){ this.pairs=[]; }; dojo.lang.extend(dojo.AdapterRegistry,{register:function(_ed,_ee,_ef,_f0){ if(_f0){ this.pairs.unshift([_ed,_ee,_ef]); }else{ this.pairs.push([_ed,_ee,_ef]); } },match:function(){ for(var i=0;i<this.pairs.length;i++){ var _f2=this.pairs[i]; if(_f2[1].apply(this,arguments)){ return _f2[2].apply(this,arguments); } } dojo.raise("No match found"); },unregister:function(_f3){ for(var i=0;i<this.pairs.length;i++){ var _f5=this.pairs[i]; if(_f5[0]==_f3){ this.pairs.splice(i,1); return true; } } return false; }}); dojo.lang.reprRegistry=new dojo.AdapterRegistry(); dojo.lang.registerRepr=function(_f6,_f7,_f8,_f9){ dojo.lang.reprRegistry.register(_f6,_f7,_f8,_f9); }; dojo.lang.repr=function(obj){ if(typeof (obj)=="undefined"){ return "undefined"; }else{ if(obj===null){ return "null"; } } try{ if(typeof (obj["__repr__"])=="function"){ return obj["__repr__"](); }else{ if((typeof (obj["repr"])=="function")&&(obj.repr!=arguments.callee)){ return obj["repr"](); } } return dojo.lang.reprRegistry.match(obj); } catch(e){ if(typeof (obj.NAME)=="string"&&(obj.toString==Function.prototype.toString||obj.toString==Object.prototype.toString)){ return o.NAME; } } if(typeof (obj)=="function"){ obj=(obj+"").replace(/^\s+/,""); var idx=obj.indexOf("{"); if(idx!=-1){ obj=obj.substr(0,idx)+"{...}"; } } return obj+""; }; dojo.lang.reprArrayLike=function(arr){ try{ var na=dojo.lang.map(arr,dojo.lang.repr); return "["+na.join(", ")+"]"; } catch(e){ } }; dojo.lang.reprString=function(str){ return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r"); }; dojo.lang.reprNumber=function(num){ return num+""; }; (function(){ var m=dojo.lang; m.registerRepr("arrayLike",m.isArrayLike,m.reprArrayLike); m.registerRepr("string",m.isString,m.reprString); m.registerRepr("numbers",m.isNumber,m.reprNumber); m.registerRepr("boolean",m.isBoolean,m.reprNumber); })(); dojo.lang.unnest=function(){ var out=[]; for(var i=0;i<arguments.length;i++){ if(dojo.lang.isArrayLike(arguments[i])){ var add=dojo.lang.unnest.apply(this,arguments[i]); out=out.concat(add); }else{ out.push(arguments[i]); } } return out; }; 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"]); 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 _106=dojo.lang.nameAnonFunc(args[2],ao.adviceObj); ao.adviceObj[_106]=args[2]; ao.adviceFunc=_106; }else{ if((typeof args[0]=="function")&&(typeof args[1]=="object")&&(typeof args[2]=="string")){ ao.adviceType="after"; ao.srcObj=dj_global; var _106=dojo.lang.nameAnonFunc(args[0],ao.srcObj); ao.srcObj[_106]=args[0]; ao.srcFunc=_106; 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<arguments.length;i++){ args.push(arguments[i]); } return this.connect.apply(this,args); }; this.connectAround=function(){ var args=["around"]; for(var i=0;i<arguments.length;i++){ args.push(arguments[i]); } return this.connect.apply(this,args); }; this._kwConnectImpl=function(_10e,_10f){ var fn=(_10f)?"disconnect":"connect"; if(typeof _10e["srcFunc"]=="function"){ _10e.srcObj=_10e["srcObj"]||dj_global; var _111=dojo.lang.nameAnonFunc(_10e.srcFunc,_10e.srcObj); _10e.srcFunc=_111; } if(typeof _10e["adviceFunc"]=="function"){ _10e.adviceObj=_10e["adviceObj"]||dj_global; var _111=dojo.lang.nameAnonFunc(_10e.adviceFunc,_10e.adviceObj); _10e.adviceFunc=_111; } return dojo.event[fn]((_10e["type"]||_10e["adviceType"]||"after"),_10e["srcObj"]||dj_global,_10e["srcFunc"],_10e["adviceObj"]||_10e["targetObj"]||dj_global,_10e["adviceFunc"]||_10e["targetFunc"],_10e["aroundObj"],_10e["aroundFunc"],_10e["once"],_10e["delay"],_10e["rate"],_10e["adviceMsg"]||false); }; this.kwConnect=function(_112){ return this._kwConnectImpl(_112,false); }; this.disconnect=function(){ var ao=interpolateArgs(arguments); if(!ao.adviceFunc){ return; } var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc); return mjp.removeAdvice(ao.adviceObj,ao.adviceFunc,ao.adviceType,ao.once); }; this.kwDisconnect=function(_115){ return this._kwConnectImpl(_115,true); }; }; dojo.event.MethodInvocation=function(_116,obj,args){ this.jp_=_116; this.object=obj; this.args=[]; for(var x=0;x<args.length;x++){ this.args[x]=args[x]; } this.around_index=-1; }; dojo.event.MethodInvocation.prototype.proceed=function(){ this.around_index++; if(this.around_index>=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,_11e){ this.object=obj||dj_global; this.methodname=_11e; this.methodfunc=this.object[_11e]; this.before=[]; this.after=[]; this.around=[]; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_120){ if(!obj){ obj=dj_global; } if(!obj[_120]){ obj[_120]=function(){ }; }else{ if((!dojo.lang.isFunction(obj[_120]))&&(!dojo.lang.isAlien(obj[_120]))){ return null; } } var _121=_120+"$joinpoint"; var _122=_120+"$joinpoint$method"; var _123=obj[_121]; if(!_123){ var _124=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _124=true; dojo.event.browser.addClobberNodeAttrs(obj,[_121,_122,_120]); } } obj[_122]=obj[_120]; _123=obj[_121]=new dojo.event.MethodJoinPoint(obj,_122); obj[_120]=function(){ var args=[]; if((_124)&&(!arguments.length)&&(window.event)){ args.push(dojo.event.browser.fixEvent(window.event)); }else{ for(var x=0;x<arguments.length;x++){ if((x==0)&&(_124)&&(dojo.event.browser.isEvent(arguments[x]))){ args.push(dojo.event.browser.fixEvent(arguments[x])); }else{ args.push(arguments[x]); } } } return _123.run.apply(_123,args); }; } return _123; }; dojo.lang.extend(dojo.event.MethodJoinPoint,{unintercept:function(){ this.object[this.methodname]=this.methodfunc; },run:function(){ var obj=this.object||dj_global; var args=arguments; var _129=[]; for(var x=0;x<args.length;x++){ _129[x]=args[x]; } var _12b=function(marr){ if(!marr){ dojo.debug("Null argument to unrollAdvice()"); return; } var _12d=marr[0]||dj_global; var _12e=marr[1]; if(!_12d[_12e]){ dojo.raise("function \""+_12e+"\" does not exist on \""+_12d+"\""); } var _12f=marr[2]||dj_global; var _130=marr[3]; var msg=marr[6]; var _132; var to={args:[],jp_:this,object:obj,proceed:function(){ return _12d[_12e].apply(_12d,to.args); }}; to.args=_129; var _134=parseInt(marr[4]); var _135=((!isNaN(_134))&&(marr[4]!==null)&&(typeof marr[4]!="undefined")); if(marr[5]){ var rate=parseInt(marr[5]); var cur=new Date(); var _138=false; if((marr["last"])&&((cur-marr.last)<=rate)){ if(dojo.event.canTimeout){ if(marr["delayTimer"]){ clearTimeout(marr.delayTimer); } var tod=parseInt(rate*2); var mcpy=dojo.lang.shallowCopy(marr); marr.delayTimer=setTimeout(function(){ mcpy[5]=0; _12b(mcpy); },tod); } return; }else{ marr.last=cur; } } if(_130){ _12f[_130].call(_12f,to); }else{ if((_135)&&((dojo.render.html)||(dojo.render.svg))){ dj_global["setTimeout"](function(){ if(msg){ _12d[_12e].call(_12d,to); }else{ _12d[_12e].apply(_12d,args); } },_134); }else{ if(msg){ _12d[_12e].call(_12d,to); }else{ _12d[_12e].apply(_12d,args); } } } }; if(this.before.length>0){ dojo.lang.forEach(this.before,_12b,true); } var _13b; if(this.around.length>0){ var mi=new dojo.event.MethodInvocation(this,obj,args); _13b=mi.proceed(); }else{ if(this.methodfunc){ _13b=this.object[this.methodname].apply(this.object,args); } } if(this.after.length>0){ dojo.lang.forEach(this.after,_12b,true); } return (this.methodfunc)?_13b: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(_140,_141,_142,_143,_144,_145,once,_147,rate,_149){ var arr=this.getArr(_144); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_140,_141,_142,_143,_147,rate,_149]; if(once){ if(this.hasAdvice(_140,_141,_144,arr)>=0){ return; } } if(_145=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_14c,_14d,_14e,arr){ if(!arr){ arr=this.getArr(_14e); } var ind=-1; for(var x=0;x<arr.length;x++){ if((arr[x][0]==_14c)&&(arr[x][1]==_14d)){ ind=x; } } return ind; },removeAdvice:function(_152,_153,_154,once){ var arr=this.getArr(_154); var ind=this.hasAdvice(_152,_153,_154,arr); if(ind==-1){ return false; } while(ind!=-1){ arr.splice(ind,1); if(once){ break; } ind=this.hasAdvice(_152,_153,_154,arr); } return true; }}); dojo.provide("dojo.dom"); dojo.require("dojo.lang"); dojo.dom.ELEMENT_NODE=1; dojo.dom.ATTRIBUTE_NODE=2; dojo.dom.TEXT_NODE=3; dojo.dom.CDATA_SECTION_NODE=4; dojo.dom.ENTITY_REFERENCE_NODE=5; dojo.dom.ENTITY_NODE=6; dojo.dom.PROCESSING_INSTRUCTION_NODE=7; dojo.dom.COMMENT_NODE=8; dojo.dom.DOCUMENT_NODE=9; dojo.dom.DOCUMENT_TYPE_NODE=10; dojo.dom.DOCUMENT_FRAGMENT_NODE=11; dojo.dom.NOTATION_NODE=12; dojo.dom.dojoml="http://www.dojotoolkit.org/2004/dojoml"; dojo.dom.xmlns={svg:"http://www.w3.org/2000/svg",smil:"http://www.w3.org/2001/SMIL20/",mml:"http://www.w3.org/1998/Math/MathML",cml:"http://www.xml-cml.org",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml",xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",xbl:"http://www.mozilla.org/xbl",fo:"http://www.w3.org/1999/XSL/Format",xsl:"http://www.w3.org/1999/XSL/Transform",xslt:"http://www.w3.org/1999/XSL/Transform",xi:"http://www.w3.org/2001/XInclude",xforms:"http://www.w3.org/2002/01/xforms",saxon:"http://icl.com/saxon",xalan:"http://xml.apache.org/xslt",xsd:"http://www.w3.org/2001/XMLSchema",dt:"http://www.w3.org/2001/XMLSchema-datatypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",dc:"http://purl.org/dc/elements/1.1/",dcq:"http://purl.org/dc/qualifiers/1.0","soap-env":"http://schemas.xmlsoap.org/soap/envelope/",wsdl:"http://schemas.xmlsoap.org/wsdl/",AdobeExtensions:"http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"}; dojo.dom.isNode=dojo.lang.isDomNode=function(wh){ if(typeof Element=="object"){ try{ return wh instanceof Element; } catch(E){ } }else{ return wh&&!isNaN(wh.nodeType); } }; dojo.lang.whatAmI.custom["node"]=dojo.dom.isNode; dojo.dom.getTagName=function(node){ var _15a=node.tagName; if(_15a.substr(0,5).toLowerCase()!="dojo:"){ if(_15a.substr(0,4).toLowerCase()=="dojo"){ return "dojo:"+_15a.substring(4).toLowerCase(); } var djt=node.getAttribute("dojoType")||node.getAttribute("dojotype"); if(djt){ return "dojo:"+djt.toLowerCase(); } if((node.getAttributeNS)&&(node.getAttributeNS(this.dojoml,"type"))){ return "dojo:"+node.getAttributeNS(this.dojoml,"type").toLowerCase(); } try{ djt=node.getAttribute("dojo:type"); } catch(e){ } if(djt){ return "dojo:"+djt.toLowerCase(); } if((!dj_global["djConfig"])||(!djConfig["ignoreClassNames"])){ var _15c=node.className||node.getAttribute("class"); if((_15c)&&(_15c.indexOf("dojo-")!=-1)){ var _15d=_15c.split(" "); for(var x=0;x<_15d.length;x++){ if((_15d[x].length>5)&&(_15d[x].indexOf("dojo-")>=0)){ return "dojo:"+_15d[x].substr(5).toLowerCase(); } } } } } return _15a.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(_160,_161){ var node=_160.firstChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.nextSibling; } if(_161&&node&&node.tagName&&node.tagName.toLowerCase()!=_161.toLowerCase()){ node=dojo.dom.nextElement(node,_161); } return node; }; dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_163,_164){ var node=_163.lastChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.previousSibling; } if(_164&&node&&node.tagName&&node.tagName.toLowerCase()!=_164.toLowerCase()){ node=dojo.dom.prevElement(node,_164); } return node; }; dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_167){ if(!node){ return null; } do{ node=node.nextSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_167&&_167.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.nextElement(node,_167); } return node; }; dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_169){ if(!node){ return null; } if(_169){ _169=_169.toLowerCase(); } do{ node=node.previousSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_169&&_169.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.prevElement(node,_169); } return node; }; dojo.dom.moveChildren=function(_16a,_16b,trim){ var _16d=0; if(trim){ while(_16a.hasChildNodes()&&_16a.firstChild.nodeType==dojo.dom.TEXT_NODE){ _16a.removeChild(_16a.firstChild); } while(_16a.hasChildNodes()&&_16a.lastChild.nodeType==dojo.dom.TEXT_NODE){ _16a.removeChild(_16a.lastChild); } } while(_16a.hasChildNodes()){ _16b.appendChild(_16a.firstChild); _16d++; } return _16d; }; dojo.dom.copyChildren=function(_16e,_16f,trim){ var _171=_16e.cloneNode(true); return this.moveChildren(_171,_16f,trim); }; dojo.dom.removeChildren=function(node){ var _173=node.childNodes.length; while(node.hasChildNodes()){ node.removeChild(node.firstChild); } return _173; }; dojo.dom.replaceChildren=function(node,_175){ dojo.dom.removeChildren(node); node.appendChild(_175); }; dojo.dom.removeNode=function(node){ if(node&&node.parentNode){ return node.parentNode.removeChild(node); } }; dojo.dom.getAncestors=function(node,_178,_179){ var _17a=[]; var _17b=dojo.lang.isFunction(_178); while(node){ if(!_17b||_178(node)){ _17a.push(node); } if(_179&&_17a.length>0){ return _17a[0]; } node=node.parentNode; } if(_179){ return null; } return _17a; }; dojo.dom.getAncestorsByTag=function(node,tag,_17e){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_17e); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_183,_184){ if(_184&&node){ node=node.parentNode; } while(node){ if(node==_183){ 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,_187){ if(!_187){ _187="text/xml"; } if(typeof DOMParser!="undefined"){ var _188=new DOMParser(); return _188.parseFromString(str,_187); }else{ if(typeof ActiveXObject!="undefined"){ var _189=new ActiveXObject("Microsoft.XMLDOM"); if(_189){ _189.async=false; _189.loadXML(str); return _189; }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 _18b=document.implementation.createDocument("foo","",null); for(var i=0;i<tmp.childNodes.length;i++){ _18b.importNode(tmp.childNodes.item(i),true); } return _18b; } return tmp.document&&tmp.document.firstChild?tmp.document.firstChild:tmp; } } } return null; }; dojo.dom.prependChild=function(node,_18e){ if(_18e.firstChild){ _18e.insertBefore(node,_18e.firstChild); }else{ _18e.appendChild(node); } return true; }; dojo.dom.insertBefore=function(node,ref,_191){ if(_191!=true&&(node===ref||node.nextSibling===ref)){ return false; } var _192=ref.parentNode; _192.insertBefore(node,ref); return true; }; dojo.dom.insertAfter=function(node,ref,_195){ var pn=ref.parentNode; if(ref==pn.lastChild){ if((_195!=true)&&(node===ref)){ return false; } pn.appendChild(node); }else{ return this.insertBefore(node,ref.nextSibling,_195); } return true; }; dojo.dom.insertAtPosition=function(node,ref,_199){ if((!node)||(!ref)||(!_199)){ return false; } switch(_199.toLowerCase()){ case "before": return dojo.dom.insertBefore(node,ref); case "after": return dojo.dom.insertAfter(node,ref); case "first": if(ref.firstChild){ return dojo.dom.insertBefore(node,ref.firstChild); }else{ ref.appendChild(node); return true; } break; default: ref.appendChild(node); return true; } }; dojo.dom.insertAtIndex=function(node,_19b,_19c){ var _19d=_19b.childNodes; if(!_19d.length){ _19b.appendChild(node); return true; } var _19e=null; for(var i=0;i<_19d.length;i++){ var _1a0=_19d.item(i)["getAttribute"]?parseInt(_19d.item(i).getAttribute("dojoinsertionindex")):-1; if(_1a0<_19c){ _19e=_19d.item(i); } } if(_19e){ return dojo.dom.insertAfter(node,_19e); }else{ return dojo.dom.insertBefore(node,_19d.item(0)); } }; dojo.dom.textContent=function(node,text){ if(text){ dojo.dom.replaceChildren(node,document.createTextNode(text)); return text; }else{ var _1a3=""; if(node==null){ return _1a3; } for(var i=0;i<node.childNodes.length;i++){ switch(node.childNodes[i].nodeType){ case 1: case 5: _1a3+=dojo.dom.textContent(node.childNodes[i]); break; case 3: case 2: case 4: _1a3+=node.childNodes[i].nodeValue; break; default: break; } } return _1a3; } }; dojo.dom.collectionToArray=function(_1a5){ var _1a6=new Array(_1a5.length); for(var i=0;i<_1a5.length;i++){ _1a6[i]=_1a5[i]; } return _1a6; }; dojo.provide("dojo.uri.Uri"); dojo.uri=new function(){ this.joinPath=function(){ var arr=[]; for(var i=0;i<arguments.length;i++){ arr.push(arguments[i]); } return arr.join("/").replace(/\/{2,}/g,"/").replace(/((https*|ftps*):)/i,"$1/"); }; this.dojoUri=function(uri){ return new dojo.uri.Uri(dojo.hostenv.getBaseScriptUri(),uri); }; this.Uri=function(){ var uri=arguments[0]; for(var i=1;i<arguments.length;i++){ if(!arguments[i]){ continue; } var _1ad=new dojo.uri.Uri(arguments[i].toString()); var _1ae=new dojo.uri.Uri(uri.toString()); if(_1ad.path==""&&_1ad.scheme==null&&_1ad.authority==null&&_1ad.query==null){ if(_1ad.fragment!=null){ _1ae.fragment=_1ad.fragment; } _1ad=_1ae; }else{ if(_1ad.scheme==null){ _1ad.scheme=_1ae.scheme; if(_1ad.authority==null){ _1ad.authority=_1ae.authority; if(_1ad.path.charAt(0)!="/"){ var path=_1ae.path.substring(0,_1ae.path.lastIndexOf("/")+1)+_1ad.path; var segs=path.split("/"); for(var j=0;j<segs.length;j++){ if(segs[j]=="."){ if(j==segs.length-1){ segs[j]=""; }else{ segs.splice(j,1); j--; } }else{ if(j>0&&!(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; } } } } _1ad.path=segs.join("/"); } } } } uri=""; if(_1ad.scheme!=null){ uri+=_1ad.scheme+":"; } if(_1ad.authority!=null){ uri+="//"+_1ad.authority; } uri+=_1ad.path; if(_1ad.query!=null){ uri+="?"+_1ad.query; } if(_1ad.fragment!=null){ uri+="#"+_1ad.fragment; } } this.uri=uri.toString(); var _1b2="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_1b2)); 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){ _1b2="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_1b2)); 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,_1b9,_1ba){ for(var name in _1b9){ var re=new RegExp("\\%\\{"+name+"\\}","g"); str=str.replace(re,_1b9[name]); } if(_1ba){ 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 _1be=str.split(" "); var _1bf=""; var len=_1be.length; for(var i=0;i<len;i++){ var word=_1be[i]; word=word.charAt(0).toUpperCase()+word.substring(1,word.length); _1bf+=word; if(i<len-1){ _1bf+=" "; } } return new String(_1bf); }; dojo.string.isBlank=function(str){ if(!dojo.lang.isString(str)){ return true; } return (dojo.string.trim(str).length==0); }; dojo.string.encodeAscii=function(str){ if(!dojo.lang.isString(str)){ return str; } var ret=""; var _1c6=escape(str); var _1c7,re=/%u([0-9A-F]{4})/i; while((_1c7=_1c6.match(re))){ var num=Number("0x"+_1c7[1]); var _1c9=escape("&#"+num+";"); ret+=_1c6.substring(0,_1c7.index)+_1c9; _1c6=_1c6.substring(_1c7.index+_1c7[0].length); } ret+=_1c6.replace(/\+/g,"%2B"); return ret; }; dojo.string.summary=function(str,len){ if(!len||str.length<=len){ return str; }else{ return str.substring(0,len).replace(/\.+$/,"")+"..."; } }; dojo.string.escape=function(type,str){ switch(type.toLowerCase()){ case "xml": case "html": case "xhtml": return dojo.string.escapeXml(str); case "sql": return dojo.string.escapeSql(str); case "regexp": case "regex": return dojo.string.escapeRegExp(str); case "javascript": case "jscript": case "js": return dojo.string.escapeJavaScript(str); case "ascii": return dojo.string.encodeAscii(str); default: return str; } }; dojo.string.escapeXml=function(str){ return str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/'/gm,"&#39;"); }; 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,_1d3,_1d4){ var out=""; for(var i=0;i<_1d3;i++){ out+=str; if(_1d4&&i<_1d3-1){ out+=_1d4; } } return out; }; dojo.string.endsWith=function(str,end,_1d9){ if(_1d9){ str=str.toLowerCase(); end=end.toLowerCase(); } return str.lastIndexOf(end)==str.length-end.length; }; dojo.string.endsWithAny=function(str){ for(var i=1;i<arguments.length;i++){ if(dojo.string.endsWith(str,arguments[i])){ return true; } } return false; }; dojo.string.startsWith=function(str,_1dd,_1de){ if(_1de){ str=str.toLowerCase(); _1dd=_1dd.toLowerCase(); } return str.indexOf(_1dd)==0; }; dojo.string.startsWithAny=function(str){ for(var i=1;i<arguments.length;i++){ if(dojo.string.startsWith(str,arguments[i])){ return true; } } return false; }; dojo.string.has=function(str){ for(var i=1;i<arguments.length;i++){ if(str.indexOf(arguments[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.length<len){ if(dir>0){ 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 _1ee in dojo.string){ if(dojo.lang.isFunction(dojo.string[_1ee])){ var func=(function(){ var meth=_1ee; 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<arguments.length;i++){ args.push(arguments[i]); } dojo.debug(args); return dojo.string[meth].apply(dojo.string,args); }; } })(); if(func){ String.prototype[_1ee]=func; } } } }; 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 _1f7=1; for(var i=1;i<=n;i++){ _1f7*=i; } return _1f7; }; 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 _203=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0; for(var i=0;i<_203.length;i++){ mean+=_203[i]; } return mean/_203.length; }; dojo.math.round=function(_206,_207){ if(!_207){ var _208=1; }else{ var _208=Math.pow(10,_207); } return Math.round(_206*_208)/_208; }; dojo.math.sd=function(){ var _209=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; return Math.sqrt(dojo.math.variance(_209)); }; dojo.math.variance=function(){ var _20a=dojo.lang.isArray(arguments[0])?arguments[0]:arguments; var mean=0,squares=0; for(var i=0;i<_20a.length;i++){ mean+=_20a[i]; squares+=Math.pow(_20a[i],2); } return (squares/_20a.length)-Math.pow(mean/_20a.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(_212){ if(_212){ 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(_213,_214){ return dojo.graphics.color.blend(this.toRgb(),new Color(_213).toRgb(),_214); }}); 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,_217){ if(typeof a=="string"){ return dojo.graphics.color.blendHex(a,b,_217); } if(!_217){ _217=0; }else{ if(_217>1){ _217=1; }else{ if(_217<-1){ _217=-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*_217)); } return c; }; dojo.graphics.color.blendHex=function(a,b,_21d){ return dojo.graphics.color.rgb2hex(dojo.graphics.color.blend(dojo.graphics.color.hex2rgb(a),dojo.graphics.color.hex2rgb(b),_21d)); }; dojo.graphics.color.extractRGB=function(_21e){ var hex="0123456789abcdef"; _21e=_21e.toLowerCase(); if(_21e.indexOf("rgb")==0){ var _220=_21e.match(/rgba*\((\d+), *(\d+), *(\d+)/i); var ret=_220.splice(1,3); return ret; }else{ var _222=dojo.graphics.color.hex2rgb(_21e); if(_222){ return _222; }else{ return dojo.graphics.color.named[_21e]||[255,255,255]; } } }; dojo.graphics.color.hex2rgb=function(hex){ var _224="0123456789ABCDEF"; var rgb=new Array(3); if(hex.indexOf("#")==0){ hex=hex.substring(1); } hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_224+"]","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;i<rgb.length;i++){ rgb[i]=_224.indexOf(rgb[i].charAt(0))*16+_224.indexOf(rgb[i].charAt(1)); } return rgb; }; dojo.graphics.color.rgb2hex=function(r,g,b){ if(dojo.lang.isArray(r)){ g=r[1]||0; b=r[2]||0; r=r[0]||0; } return ["#",dojo.string.pad(r.toString(16),2),dojo.string.pad(g.toString(16),2),dojo.string.pad(b.toString(16),2)].join(""); }; dojo.graphics.color.rgb2hsv=function(r,g,b){ if(dojo.lang.isArray(r)){ b=r[2]||0; g=r[1]||0; r=r[0]||0; } var h=null; var s=null; var v=null; var min=Math.min(r,g,b); v=Math.max(r,g,b); var _231=v-min; s=(v==0)?0:_231/v; if(s==0){ h=0; }else{ if(r==v){ h=60*(g-b)/_231; }else{ if(g==v){ h=120+60*(b-r)/_231; }else{ if(b==v){ h=240+60*(r-g)/_231; } } } if(h<0){ h+=360; } } h=(h==0)?360:Math.ceil((h/360)*255); s=Math.ceil(s*255); return [h,s,v]; }; dojo.graphics.color.hsv2rgb=function(h,s,v){ if(dojo.lang.isArray(h)){ v=h[2]||0; s=h[1]||0; h=h[0]||0; } h=(h/255)*360; if(h==360){ h=0; } s=s/255; v=v/255; var r=null; var g=null; var b=null; if(s==0){ r=v; g=v; b=v; }else{ var _238=h/60; var i=Math.floor(_238); var f=_238-i; var p=v*(1-s); var q=v*(1-(s*f)); var t=v*(1-(s*(1-f))); switch(i){ case 0: r=v; g=t; b=p; break; case 1: r=q; g=v; b=p; break; case 2: r=p; g=v; b=t; break; case 3: r=p; g=q; b=v; break; case 4: r=t; g=p; b=v; break; case 5: r=v; g=p; b=q; break; } } r=Math.ceil(r*255); g=Math.ceil(g*255); b=Math.ceil(b*255); return [r,g,b]; }; dojo.graphics.color.rgb2hsl=function(r,g,b){ if(dojo.lang.isArray(r)){ b=r[2]||0; g=r[1]||0; r=r[0]||0; } r/=255; g/=255; b/=255; var h=null; var s=null; var l=null; var min=Math.min(r,g,b); var max=Math.max(r,g,b); var _246=max-min; l=(min+max)/2; s=0; if((l>0)&&(l<1)){ s=_246/((l<0.5)?(2*l):(2-2*l)); } h=0; if(_246>0){ if((max==r)&&(max!=g)){ h+=(g-b)/_246; } if((max==g)&&(max!=b)){ h+=(2+(b-r)/_246); } if((max==b)&&(max!=r)){ h+=(4+(r-g)/_246); } 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 _24c=dojo.style.getStyle(node,"-moz-box-sizing"); if(!_24c){ _24c=dojo.style.getStyle(node,"box-sizing"); } return (_24c?_24c:dojo.style.boxSizing.contentBox); } }; dojo.style.isBorderBox=function(node){ return (dojo.style.getBoxSizing(node)==dojo.style.boxSizing.borderBox); }; dojo.style.getUnitValue=function(_24e,_24f,_250){ var _251={value:0,units:"px"}; var s=dojo.style.getComputedStyle(_24e,_24f); if(s==""||(s=="auto"&&_250)){ return _251; } if(dojo.lang.isUndefined(s)){ _251.value=NaN; }else{ var _253=s.match(/([\d.]+)([a-z%]*)/i); if(!_253){ _251.value=NaN; }else{ _251.value=Number(_253[1]); _251.units=_253[2].toLowerCase(); } } return _251; }; dojo.style.getPixelValue=function(_254,_255,_256){ var _257=dojo.style.getUnitValue(_254,_255,_256); if(isNaN(_257.value)||(_257.value&&_257.units!="px")){ return NaN; } return _257.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 _25a=dojo.style.isPositionAbsolute(node); var left=dojo.style.getPixelValue(node,"margin-left",_25a); var _25c=dojo.style.getPixelValue(node,"margin-right",_25a); return left+_25c; }; dojo.style.getBorderWidth=function(node){ var left=(dojo.style.getStyle(node,"border-left-style")=="none"?0:dojo.style.getPixelValue(node,"border-left-width")); var _25f=(dojo.style.getStyle(node,"border-right-style")=="none"?0:dojo.style.getPixelValue(node,"border-right-width")); return left+_25f; }; dojo.style.getPaddingWidth=function(node){ var left=dojo.style.getPixelValue(node,"padding-left",true); var _262=dojo.style.getPixelValue(node,"padding-right",true); return left+_262; }; 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,_267){ if(!dojo.style.isBorderBox(node)){ _267-=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } _267-=dojo.style.getMarginWidth(node); if(!isNaN(_267)&&_267>0){ node.style.width=_267+"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 _269=dojo.style.isPositionAbsolute(node); var top=dojo.style.getPixelValue(node,"margin-top",_269); var _26b=dojo.style.getPixelValue(node,"margin-bottom",_269); return top+_26b; }; dojo.style.getBorderHeight=function(node){ var top=(dojo.style.getStyle(node,"border-top-style")=="none"?0:dojo.style.getPixelValue(node,"border-top-width")); var _26e=(dojo.style.getStyle(node,"border-bottom-style")=="none"?0:dojo.style.getPixelValue(node,"border-bottom-width")); return top+_26e; }; dojo.style.getPaddingHeight=function(node){ var top=dojo.style.getPixelValue(node,"padding-top",true); var _271=dojo.style.getPixelValue(node,"padding-bottom",true); return top+_271; }; 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,_276){ if(!dojo.style.isBorderBox(node)){ _276-=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } _276-=dojo.style.getMarginHeight(node); if(!isNaN(_276)&&_276>0){ node.style.height=_276+"px"; return true; }else{ return false; } }; dojo.style.setContentWidth=function(node,_278){ if(dojo.style.isBorderBox(node)){ _278+=dojo.style.getPaddingWidth(node)+dojo.style.getBorderWidth(node); } if(!isNaN(_278)&&_278>0){ node.style.width=_278+"px"; return true; }else{ return false; } }; dojo.style.setContentHeight=function(node,_27a){ if(dojo.style.isBorderBox(node)){ _27a+=dojo.style.getPaddingHeight(node)+dojo.style.getBorderHeight(node); } if(!isNaN(_27a)&&_27a>0){ node.style.height=_27a+"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,_27d){ var _27e=(type=="top")?"offsetTop":"offsetLeft"; var _27f=(type=="top")?"scrollTop":"scrollLeft"; var _280=(type=="top")?"y":"x"; var _281=0; if(node["offsetParent"]){ if(dojo.render.html.safari&&node.style.getPropertyValue("position")=="absolute"&&node.parentNode==dojo.html.body()){ var _282=dojo.html.body(); }else{ var _282=dojo.html.body().parentNode; } if(_27d&&node.parentNode!=document.body){ _281-=dojo.style.sumAncestorProperties(node,_27f); } do{ _281+=node[_27e]; node=node.offsetParent; }while(node!=_282&&node!=null); }else{ if(node[_280]){ _281+=node[_280]; } } return _281; }; dojo.style.sumAncestorProperties=function(node,prop){ if(!node){ return 0; } var _285=0; while(node){ var val=node[prop]; if(val){ _285+=val-0; } node=node.parentNode; } return _285; }; dojo.style.totalOffsetLeft=function(node,_288){ return dojo.style.getTotalOffset(node,"left",_288); }; dojo.style.getAbsoluteX=dojo.style.totalOffsetLeft; dojo.style.totalOffsetTop=function(node,_28a){ return dojo.style.getTotalOffset(node,"top",_28a); }; dojo.style.getAbsoluteY=dojo.style.totalOffsetTop; dojo.style.getAbsolutePosition=function(node,_28c){ var _28d=[dojo.style.getAbsoluteX(node,_28c),dojo.style.getAbsoluteY(node,_28c)]; _28d.x=_28d[0]; _28d.y=_28d[1]; return _28d; }; dojo.style.styleSheet=null; dojo.style.insertCssRule=function(_28e,_28f,_290){ 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){ _290=dojo.style.styleSheet.cssRules.length; }else{ if(dojo.style.styleSheet.rules){ _290=dojo.style.styleSheet.rules.length; }else{ return null; } } } if(dojo.style.styleSheet.insertRule){ var rule=_28e+" { "+_28f+" }"; return dojo.style.styleSheet.insertRule(rule,_290); }else{ if(dojo.style.styleSheet.addRule){ return dojo.style.styleSheet.addRule(_28e,_28f,_290); }else{ return null; } } }; dojo.style.removeCssRule=function(_292){ if(!dojo.style.styleSheet){ dojo.debug("no stylesheet defined for removing rules"); return false; } if(dojo.render.html.ie){ if(!_292){ _292=dojo.style.styleSheet.rules.length; dojo.style.styleSheet.removeRule(_292); } }else{ if(document.styleSheets[0]){ if(!_292){ _292=dojo.style.styleSheet.cssRules.length; } dojo.style.styleSheet.deleteRule(_292); } } return true; }; dojo.style.insertCssFile=function(URI,doc,_295){ if(!URI){ return; } if(!doc){ doc=document; } if(doc.baseURI){ URI=new dojo.uri.Uri(doc.baseURI,URI); } if(_295&&doc.styleSheets){ var loc=location.href.split("#")[0].substring(0,location.href.indexOf(location.pathname)); for(var i=0;i<doc.styleSheets.length;i++){ if(doc.styleSheets[i].href&&URI.toString()==new dojo.uri.Uri(doc.styleSheets[i].href.toString())){ return; } } } var file=doc.createElement("link"); file.setAttribute("type","text/css"); file.setAttribute("rel","stylesheet"); file.setAttribute("href",URI); var head=doc.getElementsByTagName("head")[0]; if(head){ head.appendChild(file); } }; dojo.style.getBackgroundColor=function(node){ var _29b; do{ _29b=dojo.style.getStyle(node,"background-color"); if(_29b.toLowerCase()=="rgba(0, 0, 0, 0)"){ _29b="transparent"; } if(node==document.getElementsByTagName("body")[0]){ node=null; break; } node=node.parentNode; }while(node&&dojo.lang.inArray(_29b,["transparent",""])); if(_29b=="transparent"){ _29b=[255,255,255,0]; }else{ _29b=dojo.graphics.color.extractRGB(_29b); } return _29b; }; dojo.style.getComputedStyle=function(_29c,_29d,_29e){ var _29f=_29e; if(_29c.style.getPropertyValue){ _29f=_29c.style.getPropertyValue(_29d); } if(!_29f){ if(document.defaultView){ _29f=document.defaultView.getComputedStyle(_29c,"").getPropertyValue(_29d); }else{ if(_29c.currentStyle){ _29f=_29c.currentStyle[dojo.style.toCamelCase(_29d)]; } } } return _29f; }; dojo.style.getStyle=function(_2a0,_2a1){ var _2a2=dojo.style.toCamelCase(_2a1); var _2a3=_2a0.style[_2a2]; return (_2a3?_2a3:dojo.style.getComputedStyle(_2a0,_2a1,_2a3)); }; dojo.style.toCamelCase=function(_2a4){ var arr=_2a4.split("-"),cc=arr[0]; for(var i=1;i<arr.length;i++){ cc+=arr[i].charAt(0).toUpperCase()+arr[i].substring(1); } return cc; }; dojo.style.toSelectorCase=function(_2a7){ return _2a7.replace(/([A-Z])/g,"-$1").toLowerCase(); }; dojo.style.setOpacity=function setOpacity(node,_2a9,_2aa){ node=dojo.byId(node); var h=dojo.render.html; if(!_2aa){ if(_2a9>=1){ if(h.ie){ dojo.style.clearOpacity(node); return; }else{ _2a9=0.999999; } }else{ if(_2a9<0){ _2a9=0; } } } if(h.ie){ if(node.nodeName.toLowerCase()=="tr"){ var tds=node.getElementsByTagName("td"); for(var x=0;x<tds.length;x++){ tds[x].style.filter="Alpha(Opacity="+_2a9*100+")"; } } node.style.filter="Alpha(Opacity="+_2a9*100+")"; }else{ if(h.moz){ node.style.opacity=_2a9; node.style.MozOpacity=_2a9; }else{ if(h.safari){ node.style.opacity=_2a9; node.style.KhtmlOpacity=_2a9; }else{ node.style.opacity=_2a9; } } } }; dojo.style.getOpacity=function getOpacity(node){ if(dojo.render.html.ie){ var opac=(node.filters&&node.filters.alpha&&typeof node.filters.alpha.opacity=="number"?node.filters.alpha.opacity:100)/100; }else{ var opac=node.style.opacity||node.style.MozOpacity||node.style.KhtmlOpacity||1; } return opac>=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(_2b2){ _2b2=_2b2||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _2b2.style.MozUserSelect="none"; }else{ if(h.safari){ _2b2.style.KhtmlUserSelect="none"; }else{ if(h.ie){ _2b2.unselectable="on"; }else{ return false; } } } return true; }; dojo.html.enableSelection=function(_2b4){ _2b4=_2b4||dojo.html.body(); var h=dojo.render.html; if(h.mozilla){ _2b4.style.MozUserSelect=""; }else{ if(h.safari){ _2b4.style.KhtmlUserSelect=""; }else{ if(h.ie){ _2b4.unselectable="off"; }else{ return false; } } } return true; }; dojo.html.selectElement=function(_2b6){ if(document.selection&&dojo.html.body().createTextRange){ var _2b7=dojo.html.body().createTextRange(); _2b7.moveToElementText(_2b6); _2b7.select(); }else{ if(window["getSelection"]){ var _2b8=window.getSelection(); if(_2b8["selectAllChildren"]){ _2b8.selectAllChildren(_2b6); } } } }; dojo.html.isSelectionCollapsed=function(){ if(document["selection"]){ return document.selection.createRange().text==""; }else{ if(window["getSelection"]){ var _2b9=window.getSelection(); if(dojo.lang.isString(_2b9)){ return _2b9==""; }else{ return _2b9.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<w){ w=w2; } return w; } if(document.body){ return document.body.clientWidth; } return 0; }; dojo.html.getViewportHeight=function(){ if(window.innerHeight){ return window.innerHeight; } if(dojo.exists(document,"documentElement.clientHeight")){ return document.documentElement.clientHeight; } if(document.body){ return document.body.clientHeight; } return 0; }; dojo.html.getViewportSize=function(){ var ret=[dojo.html.getViewportWidth(),dojo.html.getViewportHeight()]; ret.w=ret[0]; ret.h=ret[1]; return ret; }; dojo.html.getScrollOffset=function(){ var ret=[0,0]; if(window.pageYOffset){ ret=[window.pageXOffset,window.pageYOffset]; }else{ if(dojo.exists(document,"documentElement.scrollTop")){ ret=[document.documentElement.scrollLeft,document.documentElement.scrollTop]; }else{ if(document.body){ ret=[document.body.scrollLeft,document.body.scrollTop]; } } } ret.x=ret[0]; ret.y=ret[1]; return ret; }; dojo.html.getParentOfType=function(node,type){ dojo.deprecated("dojo.html.getParentOfType has been deprecated in favor of dojo.html.getParentByType*"); return dojo.html.getParentByType(node,type); }; dojo.html.getParentByType=function(node,type){ var _2c3=node; type=type.toLowerCase(); while((_2c3)&&(_2c3.nodeName.toLowerCase()!=type)){ if(_2c3==(document["body"]||document["documentElement"])){ return null; } _2c3=_2c3.parentNode; } return _2c3; }; dojo.html.getAttribute=function(node,attr){ if((!node)||(!node.getAttribute)){ return null; } var ta=typeof attr=="string"?attr:new String(attr); var v=node.getAttribute(ta.toUpperCase()); if((v)&&(typeof v=="string")&&(v!="")){ return v; } if(v&&v.value){ return v.value; } if((node.getAttributeNode)&&(node.getAttributeNode(ta))){ return (node.getAttributeNode(ta)).value; }else{ if(node.getAttribute(ta)){ return node.getAttribute(ta); }else{ if(node.getAttribute(ta.toLowerCase())){ return node.getAttribute(ta.toLowerCase()); } } } return null; }; dojo.html.hasAttribute=function(node,attr){ return dojo.html.getAttribute(node,attr)?true:false; }; dojo.html.getClass=function(node){ if(!node){ return ""; } var cs=""; if(node.className){ cs=node.className; }else{ if(dojo.html.hasAttribute(node,"class")){ cs=dojo.html.getAttribute(node,"class"); } } return dojo.string.trim(cs); }; dojo.html.getClasses=function(node){ var c=dojo.html.getClass(node); return (c=="")?[]:c.split(/\s+/g); }; dojo.html.hasClass=function(node,_2cf){ return dojo.lang.inArray(dojo.html.getClasses(node),_2cf); }; dojo.html.prependClass=function(node,_2d1){ if(!node){ return false; } _2d1+=" "+dojo.html.getClass(node); return dojo.html.setClass(node,_2d1); }; dojo.html.addClass=function(node,_2d3){ if(!node){ return false; } if(dojo.html.hasClass(node,_2d3)){ return false; } _2d3=dojo.string.trim(dojo.html.getClass(node)+" "+_2d3); return dojo.html.setClass(node,_2d3); }; dojo.html.setClass=function(node,_2d5){ if(!node){ return false; } var cs=new String(_2d5); try{ if(typeof node.className=="string"){ node.className=cs; }else{ if(node.setAttribute){ node.setAttribute("class",_2d5); node.className=cs; }else{ return false; } } } catch(e){ dojo.debug("dojo.html.setClass() failed",e); } return true; }; dojo.html.removeClass=function(node,_2d8,_2d9){ if(!node){ return false; } var _2d8=dojo.string.trim(new String(_2d8)); try{ var cs=dojo.html.getClasses(node); var nca=[]; if(_2d9){ for(var i=0;i<cs.length;i++){ if(cs[i].indexOf(_2d8)==-1){ nca.push(cs[i]); } } }else{ for(var i=0;i<cs.length;i++){ if(cs[i]!=_2d8){ nca.push(cs[i]); } } } dojo.html.setClass(node,nca.join(" ")); } catch(e){ dojo.debug("dojo.html.removeClass() failed",e); } return true; }; dojo.html.replaceClass=function(node,_2de,_2df){ dojo.html.removeClass(node,_2df); dojo.html.addClass(node,_2de); }; dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2}; dojo.html.getElementsByClass=function(_2e0,_2e1,_2e2,_2e3){ if(!_2e1){ _2e1=document; } var _2e4=_2e0.split(/\s+/g); var _2e5=[]; if(_2e3!=1&&_2e3!=2){ _2e3=0; } var _2e6=new RegExp("(\\s|^)(("+_2e4.join(")|(")+"))(\\s|$)"); if(!_2e2){ _2e2="*"; } var _2e7=_2e1.getElementsByTagName(_2e2); outer: for(var i=0;i<_2e7.length;i++){ var node=_2e7[i]; var _2ea=dojo.html.getClasses(node); if(_2ea.length==0){ continue outer; } var _2eb=0; for(var j=0;j<_2ea.length;j++){ if(_2e6.test(_2ea[j])){ if(_2e3==dojo.html.classMatchType.ContainsAny){ _2e5.push(node); continue outer; }else{ _2eb++; } }else{ if(_2e3==dojo.html.classMatchType.IsOnly){ continue outer; } } } if(_2eb==_2e4.length){ if(_2e3==dojo.html.classMatchType.IsOnly&&_2eb==_2ea.length){ _2e5.push(node); }else{ if(_2e3==dojo.html.classMatchType.ContainsAll){ _2e5.push(node); } } } } return _2e5; }; dojo.html.getElementsByClassName=dojo.html.getElementsByClass; dojo.html.gravity=function(node,e){ var _2ef=e.pageX||e.clientX+dojo.html.body().scrollLeft; var _2f0=e.pageY||e.clientY+dojo.html.body().scrollTop; with(dojo.html){ var _2f1=getAbsoluteX(node)+(getInnerWidth(node)/2); var _2f2=getAbsoluteY(node)+(getInnerHeight(node)/2); } with(dojo.html.gravity){ return ((_2ef<_2f1?WEST:EAST)|(_2f0<_2f2?NORTH:SOUTH)); } }; dojo.html.gravity.NORTH=1; dojo.html.gravity.SOUTH=1<<1; dojo.html.gravity.EAST=1<<2; dojo.html.gravity.WEST=1<<3; dojo.html.overElement=function(_2f3,e){ var _2f5=e.pageX||e.clientX+dojo.html.body().scrollLeft; var _2f6=e.pageY||e.clientY+dojo.html.body().scrollTop; with(dojo.html){ var top=getAbsoluteY(_2f3); var _2f8=top+getInnerHeight(_2f3); var left=getAbsoluteX(_2f3); var _2fa=left+getInnerWidth(_2f3); } return (_2f5>=left&&_2f5<=_2fa&&_2f6>=top&&_2f6<=_2f8); }; dojo.html.renderedTextContent=function(node){ var _2fc=""; if(node==null){ return _2fc; } for(var i=0;i<node.childNodes.length;i++){ switch(node.childNodes[i].nodeType){ case 1: case 5: var _2fe="unknown"; try{ _2fe=dojo.style.getStyle(node.childNodes[i],"display"); } catch(E){ } switch(_2fe){ case "block": case "list-item": case "run-in": case "table": case "table-row-group": case "table-header-group": case "table-footer-group": case "table-row": case "table-column-group": case "table-column": case "table-cell": case "table-caption": _2fc+="\n"; _2fc+=dojo.html.renderedTextContent(node.childNodes[i]); _2fc+="\n"; break; case "none": break; default: if(node.childNodes[i].tagName&&node.childNodes[i].tagName.toLowerCase()=="br"){ _2fc+="\n"; }else{ _2fc+=dojo.html.renderedTextContent(node.childNodes[i]); } break; } break; case 3: case 2: case 4: var text=node.childNodes[i].nodeValue; var _300="unknown"; try{ _300=dojo.style.getStyle(node,"text-transform"); } catch(E){ } switch(_300){ case "capitalize": text=dojo.string.capitalize(text); break; case "uppercase": text=text.toUpperCase(); break; case "lowercase": text=text.toLowerCase(); break; default: break; } switch(_300){ case "nowrap": break; case "pre-wrap": break; case "pre-line": break; case "pre": break; default: text=text.replace(/\s+/," "); if(/\s$/.test(_2fc)){ text.replace(/^\s/,""); } break; } _2fc+=text; break; default: break; } } return _2fc; }; dojo.html.setActiveStyleSheet=function(_301){ var i,a,main; for(i=0;(a=document.getElementsByTagName("link")[i]);i++){ if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){ a.disabled=true; if(a.getAttribute("title")==_301){ a.disabled=false; } } } }; dojo.html.getActiveStyleSheet=function(){ var i,a; for(i=0;(a=document.getElementsByTagName("link")[i]);i++){ if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){ return a.getAttribute("title"); } } return null; }; dojo.html.getPreferredStyleSheet=function(){ var i,a; for(i=0;(a=document.getElementsByTagName("link")[i]);i++){ if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){ return a.getAttribute("title"); } } return null; }; dojo.html.body=function(){ return document.body||document.getElementsByTagName("body")[0]; }; dojo.html.createNodesFromText=function(txt,wrap){ var tn=document.createElement("div"); tn.style.visibility="hidden"; document.body.appendChild(tn); tn.innerHTML=txt; tn.normalize(); if(wrap){ var ret=[]; var fc=tn.firstChild; ret[0]=((fc.nodeValue==" ")||(fc.nodeValue=="\t"))?fc.nextSibling:fc; document.body.removeChild(tn); return ret; } var _30a=[]; for(var x=0;x<tn.childNodes.length;x++){ _30a.push(tn.childNodes[x].cloneNode(true)); } tn.style.display="none"; document.body.removeChild(tn); return _30a; }; 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){ return dojo.style.getComputedStyle(node||this.domNode,"display")!="none"; }; dojo.html.show=function(node){ if(node.style){ node.style.display=dojo.lang.inArray(["tr","td","th"],node.tagName.toLowerCase())?"":"block"; } }; dojo.html.hide=function(node){ if(node.style){ node.style.display="none"; } }; dojo.html.toCoordinateArray=function(_30f,_310){ if(dojo.lang.isArray(_30f)){ while(_30f.length<4){ _30f.push(0); } while(_30f.length>4){ _30f.pop(); } var ret=_30f; }else{ var node=dojo.byId(_30f); var ret=[dojo.html.getAbsoluteX(node,_310),dojo.html.getAbsoluteY(node,_310),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,_314,_315,_316,_317){ if(dojo.lang.isArray(_314)){ _317=_316; _316=_315; _315=_314[1]; _314=_314[0]; } if(!isNaN(_316)){ _316=[Number(_316),Number(_316)]; }else{ if(!dojo.lang.isArray(_316)){ _316=[0,0]; } } var _318=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth+_316[0]; var h=node.offsetHeight+_316[1]; if(_317){ _314-=_318.x; _315-=_318.y; } var x=_314+w; if(x>view.w){ x=view.w-w; }else{ x=_314; } x=Math.max(_316[0],x)+_318.x; var y=_315+h; if(y>view.h){ y=view.h-h; }else{ y=_315; } y=Math.max(_316[1],y)+_318.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,_320,_321,_322,_323){ if(dojo.lang.isArray(_320)){ _323=_322; _322=_321; _321=_320[1]; _320=_320[0]; } var _324=dojo.html.getScrollOffset(); var view=dojo.html.getViewportSize(); node=dojo.byId(node); var w=node.offsetWidth; var h=node.offsetHeight; if(_323){ _320-=_324.x; _321-=_324.y; } var x=-1,y=-1; if(_320+w<=view.w&&_321+h<=view.h){ x=_320; y=_321; } if((x<0||y<0)&&_320<=view.w&&_321+h<=view.h){ x=_320-w; y=_321; } if((x<0||y<0)&&_320+w<=view.w&&_321<=view.h){ x=_320; y=_321-h; } if((x<0||y<0)&&_320<=view.w&&_321<=view.h){ x=_320-w; y=_321-h; } if(x<0||y<0||(x+w>view.w)||(y+h>view.h)){ return dojo.html.placeOnScreen(node,_320,_321,_322,_323); } x+=_324.x; y+=_324.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("<iframe frameborder='0' src='about:blank'>"); var s=this.iframe.style; s.position="absolute"; s.left=s.top="0px"; s.zIndex=2; s.display="none"; dojo.style.setOpacity(this.iframe,0); dojo.html.body().appendChild(this.iframe); }else{ this.enabled=false; } }; dojo.lang.extend(dojo.html.BackgroundIframe,{ie:dojo.render.html.ie,enabled:true,visibile:false,iframe:null,sizeNode:null,sizeCoords:null,size:function(node){ if(!this.ie||!this.enabled){ return; } if(dojo.dom.isNode(node)){ this.sizeNode=node; }else{ if(arguments.length>0){ this.sizeNode=null; this.sizeCoords=node; } } this.update(); },update:function(){ if(!this.ie||!this.enabled){ return; } if(this.sizeNode){ this.sizeCoords=dojo.html.toCoordinateArray(this.sizeNode,true); }else{ if(this.sizeCoords){ this.sizeCoords=dojo.html.toCoordinateArray(this.sizeCoords,true); }else{ return; } } var s=this.iframe.style; var dims=this.sizeCoords; s.width=dims.w+"px"; s.height=dims.h+"px"; s.left=dims.x+"px"; s.top=dims.y+"px"; },setZIndex:function(node){ if(!this.ie||!this.enabled){ return; } if(dojo.dom.isNode(node)){ this.iframe.zIndex=dojo.html.getStyle(node,"z-index")-1; }else{ if(!isNaN(node)){ this.iframe.zIndex=node; } } },show:function(node){ if(!this.ie||!this.enabled){ return; } this.size(node); this.iframe.style.display="block"; },hide:function(){ if(!this.ie){ return; } var s=this.iframe.style; s.display="none"; s.width=s.height="1px"; },remove:function(){ dojo.dom.removeNode(this.iframe); }}); dojo.require("dojo.lang"); dojo.provide("dojo.dnd.DragSource"); dojo.provide("dojo.dnd.DropTarget"); dojo.provide("dojo.dnd.DragObject"); dojo.provide("dojo.dnd.DragManager"); dojo.provide("dojo.dnd.DragAndDrop"); dojo.dnd.DragSource=function(){ dojo.dnd.dragManager.registerDragSource(this); }; dojo.lang.extend(dojo.dnd.DragSource,{type:"",onDragEnd:function(){ },onDragStart:function(){ },unregister:function(){ dojo.dnd.dragManager.unregisterDragSource(this); },reregister:function(){ dojo.dnd.dragManager.registerDragSource(this); }}); dojo.dnd.DragObject=function(){ dojo.dnd.dragManager.registerDragObject(this); }; dojo.lang.extend(dojo.dnd.DragObject,{type:"",onDragStart:function(){ },onDragMove:function(){ },onDragOver:function(){ },onDragOut:function(){ },onDragEnd:function(){ },onDragLeave:this.onDragOut,onDragEnter:this.onDragOver,ondragout:this.onDragOut,ondragover:this.onDragOver}); dojo.dnd.DropTarget=function(){ if(this.constructor==dojo.dnd.DropTarget){ return; } dojo.dnd.dragManager.registerDropTarget(this); }; dojo.lang.extend(dojo.dnd.DropTarget,{acceptedTypes:[],onDragOver:function(){ },onDragOut:function(){ },onDragMove:function(){ },onDrop:function(){ }}); dojo.dnd.DragEvent=function(){ this.dragSource=null; this.dragObject=null; this.target=null; this.eventStatus="success"; }; dojo.dnd.DragManager=function(){ }; dojo.lang.extend(dojo.dnd.DragManager,{selectedSources:[],dragObjects:[],dragSources:[],registerDragSource:function(){ },dropTargets:[],registerDropTarget:function(){ },lastDragTarget:null,currentDragTarget:null,onKeyDown:function(){ },onMouseOut:function(){ },onMouseMove:function(){ },onMouseUp:function(){ }}); dojo.dnd.dragManager=null; dojo.require("dojo.event"); dojo.provide("dojo.event.topic"); dojo.event.topic=new function(){ this.topics={}; this.getTopic=function(_331){ if(!this.topics[_331]){ this.topics[_331]=new this.TopicImpl(_331); } return this.topics[_331]; }; this.registerPublisher=function(_332,obj,_334){ var _332=this.getTopic(_332); _332.registerPublisher(obj,_334); }; this.subscribe=function(_335,obj,_337){ var _335=this.getTopic(_335); _335.subscribe(obj,_337); }; this.unsubscribe=function(_338,obj,_33a){ var _338=this.getTopic(_338); _338.unsubscribe(obj,_33a); }; this.publish=function(_33b,_33c){ var _33b=this.getTopic(_33b); var args=[]; if((arguments.length==2)&&(_33c.length)&&(typeof _33c!="string")){ args=_33c; }else{ var args=[]; for(var x=1;x<arguments.length;x++){ args.push(arguments[x]); } } _33b.sendMessage.apply(_33b,args); }; }; dojo.event.topic.TopicImpl=function(_33f){ this.topicName=_33f; var self=this; self.subscribe=function(_341,_342){ dojo.event.connect("before",self,"sendMessage",_341,_342); }; self.unsubscribe=function(_343,_344){ dojo.event.disconnect("before",self,"sendMessage",_343,_344); }; self.registerPublisher=function(_345,_346){ dojo.event.connect(_345,_346,self,"sendMessage"); }; self.sendMessage=function(_347){ }; }; dojo.provide("dojo.event.browser"); dojo.require("dojo.event"); dojo_ie_clobber=new function(){ this.clobberNodes=[]; function nukeProp(node,prop){ try{ node[prop]=null; } catch(e){ } try{ delete node[prop]; } catch(e){ } try{ node.removeAttribute(prop); } catch(e){ } } this.clobber=function(_34a){ var na; var tna; if(_34a){ tna=_34a.getElementsByTagName("*"); na=[_34a]; for(var x=0;x<tna.length;x++){ if(tna[x]["__doClobber__"]){ na.push(tna[x]); } } }else{ try{ window.onload=null; } catch(e){ } na=(this.clobberNodes.length)?this.clobberNodes:document.all; } tna=null; var _34e={}; for(var i=na.length-1;i>=0;i=i-1){ var el=na[i]; if(el["__clobberAttrs__"]){ for(var j=0;j<el.__clobberAttrs__.length;j++){ nukeProp(el,el.__clobberAttrs__[j]); } nukeProp(el,"__clobberAttrs__"); nukeProp(el,"__doClobber__"); } } na=null; }; }; if(dojo.render.html.ie){ window.onunload=function(){ dojo_ie_clobber.clobber(); try{ if((dojo["widget"])&&(dojo.widget["manager"])){ dojo.widget.manager.destroyAll(); } } catch(e){ } try{ window.onload=null; } catch(e){ } try{ window.onunload=null; } catch(e){ } dojo_ie_clobber.clobberNodes=[]; }; } dojo.event.browser=new function(){ var _352=0; this.clean=function(node){ if(dojo.render.html.ie){ dojo_ie_clobber.clobber(node); } }; this.addClobberNode=function(node){ if(!node["__doClobber__"]){ node.__doClobber__=true; dojo_ie_clobber.clobberNodes.push(node); node.__clobberAttrs__=[]; } }; this.addClobberNodeAttrs=function(node,_356){ this.addClobberNode(node); for(var x=0;x<_356.length;x++){ node.__clobberAttrs__.push(_356[x]); } }; this.removeListener=function(node,_359,fp,_35b){ if(!_35b){ var _35b=false; } _359=_359.toLowerCase(); if(_359.substr(0,2)=="on"){ _359=_359.substr(2); } if(node.removeEventListener){ node.removeEventListener(_359,fp,_35b); } }; this.addListener=function(node,_35d,fp,_35f,_360){ if(!node){ return; } if(!_35f){ var _35f=false; } _35d=_35d.toLowerCase(); if(_35d.substr(0,2)!="on"){ _35d="on"+_35d; } if(!_360){ var _361=function(evt){ if(!evt){ evt=window.event; } var ret=fp(dojo.event.browser.fixEvent(evt)); if(_35f){ dojo.event.browser.stopEvent(evt); } return ret; }; }else{ _361=fp; } if(node.addEventListener){ node.addEventListener(_35d.substr(2),_361,_35f); return _361; }else{ if(typeof node[_35d]=="function"){ var _364=node[_35d]; node[_35d]=function(e){ _364(e); return _361(e); }; }else{ node[_35d]=_361; } if(dojo.render.html.ie){ this.addClobberNodeAttrs(node,[_35d]); } return _361; } }; this.isEvent=function(obj){ return (typeof Event!="undefined")&&(obj.eventPhase); }; this.currentEvent=null; this.callListener=function(_367,_368){ if(typeof _367!="function"){ dojo.raise("listener not a function: "+_367); } dojo.event.browser.currentEvent.currentTarget=_368; return _367.call(_368,dojo.event.browser.currentEvent); }; this.stopPropagation=function(){ dojo.event.browser.currentEvent.cancelBubble=true; }; this.preventDefault=function(){ dojo.event.browser.currentEvent.returnValue=false; }; this.keys={KEY_BACKSPACE:8,KEY_TAB:9,KEY_ENTER:13,KEY_SHIFT:16,KEY_CTRL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT_ARROW:37,KEY_UP_ARROW:38,KEY_RIGHT_ARROW:39,KEY_DOWN_ARROW:40,KEY_INSERT:45,KEY_DELETE:46,KEY_LEFT_WINDOW:91,KEY_RIGHT_WINDOW:92,KEY_SELECT:93,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145}; this.revKeys=[]; for(var key in this.keys){ this.revKeys[this.keys[key]]=key; } this.fixEvent=function(evt){ if((!evt)&&(window["event"])){ var evt=window.event; } if((evt["type"])&&(evt["type"].indexOf("key")==0)){ evt.keys=this.revKeys; for(var key in this.keys){ evt[key]=this.keys[key]; } if((dojo.render.html.ie)&&(evt["type"]=="keypress")){ evt.charCode=evt.keyCode; } } if(dojo.render.html.ie){ if(!evt.target){ evt.target=evt.srcElement; } if(!evt.currentTarget){ evt.currentTarget=evt.srcElement; } if(!evt.layerX){ evt.layerX=evt.offsetX; } if(!evt.layerY){ evt.layerY=evt.offsetY; } if(evt.fromElement){ evt.relatedTarget=evt.fromElement; } if(evt.toElement){ evt.relatedTarget=evt.toElement; } this.currentEvent=evt; evt.callListener=this.callListener; evt.stopPropagation=this.stopPropagation; evt.preventDefault=this.preventDefault; } return evt; }; this.stopEvent=function(ev){ if(window.event){ ev.returnValue=false; ev.cancelBubble=true; }else{ ev.preventDefault(); ev.stopPropagation(); } }; }; dojo.hostenv.conditionalLoadModule({common:["dojo.event","dojo.event.topic"],browser:["dojo.event.browser"]}); dojo.hostenv.moduleLoaded("dojo.event.*"); dojo.provide("dojo.dnd.HtmlDragManager"); dojo.require("dojo.event.*"); dojo.require("dojo.lang"); dojo.require("dojo.html"); dojo.require("dojo.style"); dojo.dnd.HtmlDragManager=function(){ }; dojo.inherits(dojo.dnd.HtmlDragManager,dojo.dnd.DragManager); dojo.lang.extend(dojo.dnd.HtmlDragManager,{disabled:false,nestedTargets:false,mouseDownTimer:null,dsCounter:0,dsPrefix:"dojoDragSource",dropTargetDimensions:[],currentDropTarget:null,currentDropTargetPoints:null,previousDropTarget:null,selectedSources:[],dragObjects:[],currentX:null,currentY:null,lastX:null,lastY:null,mouseDownX:null,mouseDownY:null,dropAcceptable:false,registerDragSource:function(ds){ if(ds["domNode"]){ var dp=this.dsPrefix; var _36f=dp+"Idx_"+(this.dsCounter++); ds.dragSourceId=_36f; this.dragSources[_36f]=ds; ds.domNode.setAttribute(dp,_36f); } },unregisterDragSource:function(ds){ if(ds["domNode"]){ var dp=this.dsPrefix; var _372=ds.dragSourceId; delete ds.dragSourceId; delete this.dragSources[_372]; ds.domNode.setAttribute(dp,null); } },registerDropTarget:function(dt){ this.dropTargets.push(dt); },getDragSource:function(e){ var tn=e.target; if(tn===dojo.html.body()){ return; } var ta=dojo.html.getAttribute(tn,this.dsPrefix); while((!ta)&&(tn)){ tn=tn.parentNode; if((!tn)||(tn===dojo.html.body())){ return; } ta=dojo.html.getAttribute(tn,this.dsPrefix); } return this.dragSources[ta]; },onKeyDown:function(e){ },onMouseDown:function(e){ if(this.disabled){ return; } var _379=e.target.nodeType==dojo.dom.TEXT_NODE?e.target.parentNode:e.target; switch(_379.tagName.toLowerCase()){ case "a": case "button": case "textarea": case "input": return; } var ds=this.getDragSource(e); if(!ds){ return; } if(!dojo.lang.inArray(this.selectedSources,ds)){ this.selectedSources.push(ds); } e.preventDefault(); dojo.event.connect(document,"onmousemove",this,"onMouseMove"); },onMouseUp:function(e){ var _37c=this; e.dragSource=this.dragSource; if((!e.shiftKey)&&(!e.ctrlKey)){ dojo.lang.forEach(this.dragObjects,function(_37d){ var ret=null; if(!_37d){ return; } if(_37c.currentDropTarget){ e.dragObject=_37d; var ce=_37c.currentDropTarget.domNode.childNodes; if(ce.length>0){ e.dropTarget=ce[0]; while(e.dropTarget==_37d.domNode){ e.dropTarget=e.dropTarget.nextSibling; } }else{ e.dropTarget=_37c.currentDropTarget.domNode; } if(_37c.dropAcceptable){ ret=_37c.currentDropTarget.onDrop(e); }else{ _37c.currentDropTarget.onDragOut(e); } } e.dragStatus=_37c.dropAcceptable&&ret?"dropSuccess":"dropFailure"; _37d.onDragEnd(e); }); this.selectedSources=[]; this.dragObjects=[]; this.dragSource=null; } dojo.event.disconnect(document,"onmousemove",this,"onMouseMove"); this.currentDropTarget=null; this.currentDropTargetPoints=null; },scrollBy:function(x,y){ for(var i=0;i<this.dragObjects.length;i++){ if(this.dragObjects[i].updateDragOffset){ this.dragObjects[i].updateDragOffset(); } } },onMouseMove:function(e){ var _384=this; if((this.selectedSources.length)&&(!this.dragObjects.length)){ if(this.selectedSources.length==1){ this.dragSource=this.selectedSources[0]; } dojo.lang.forEach(this.selectedSources,function(_385){ if(!_385){ return; } var tdo=_385.onDragStart(e); if(tdo){ tdo.onDragStart(e); _384.dragObjects.push(tdo); } }); this.dropTargetDimensions=[]; dojo.lang.forEach(this.dropTargets,function(_387){ var tn=_387.domNode; if(!tn){ return; } var ttx=dojo.style.getAbsoluteX(tn,true); var tty=dojo.style.getAbsoluteY(tn,true); _384.dropTargetDimensions.push([[ttx,tty],[ttx+dojo.style.getInnerWidth(tn),tty+dojo.style.getInnerHeight(tn)],_387]); }); } for(var i=0;i<this.dragObjects.length;i++){ if(this.dragObjects[i]){ this.dragObjects[i].onDragMove(e); } } var dtp=this.currentDropTargetPoints; if((!this.nestedTargets)&&(dtp)&&(this.isInsideBox(e,dtp))){ if(this.dropAcceptable){ this.currentDropTarget.onDragMove(e,this.dragObjects); } }else{ var _38d=this.findBestTarget(e); if(_38d.target==null){ if(this.currentDropTarget){ this.currentDropTarget.onDragOut(e); this.currentDropTarget=null; this.currentDropTargetPoints=null; } this.dropAcceptable=false; return; } if(this.currentDropTarget!=_38d.target){ if(this.currentDropTarget){ this.currentDropTarget.onDragOut(e); } this.currentDropTarget=_38d.target; this.currentDropTargetPoints=_38d.points; e.dragObjects=this.dragObjects; this.dropAcceptable=this.currentDropTarget.onDragOver(e); }else{ if(this.dropAcceptable){ this.currentDropTarget.onDragMove(e,this.dragObjects); } } } },findBestTarget:function(e){ var _38f=this; var _390=new Object(); _390.target=null; _390.points=null; dojo.lang.forEach(this.dropTargetDimensions,function(_391){ if(_38f.isInsideBox(e,_391)){ _390.target=_391[2]; _390.points=_391; if(!_38f.nestedTargets){ return "break"; } } }); return _390; },isInsideBox:function(e,_393){ if((e.clientX>_393[0][0])&&(e.clientX<_393[1][0])&&(e.clientY>_393[0][1])&&(e.clientY<_393[1][1])){ return true; } return false; },onMouseOver:function(e){ },onMouseOut:function(e){ }}); dojo.dnd.dragManager=new dojo.dnd.HtmlDragManager(); (function(){ var d=document; var dm=dojo.dnd.dragManager; dojo.event.connect(d,"onkeydown",dm,"onKeyDown"); dojo.event.connect(d,"onmouseover",dm,"onMouseOver"); dojo.event.connect(d,"onmouseout",dm,"onMouseOut"); dojo.event.connect(d,"onmousedown",dm,"onMouseDown"); dojo.event.connect(d,"onmouseup",dm,"onMouseUp"); dojo.event.connect(window,"scrollBy",dm,"scrollBy"); })(); dojo.provide("dojo.math.curves"); dojo.require("dojo.math"); dojo.math.curves={Line:function(_398,end){ this.start=_398; this.end=end; this.dimensions=_398.length; for(var i=0;i<_398.length;i++){ _398[i]=Number(_398[i]); } for(var i=0;i<end.length;i++){ end[i]=Number(end[i]); } this.getValue=function(n){ var _39c=new Array(this.dimensions); for(var i=0;i<this.dimensions;i++){ _39c[i]=((this.end[i]-this.start[i])*n)+this.start[i]; } return _39c; }; return this; },Bezier:function(pnts){ this.getValue=function(step){ if(step>=1){ return this.p[this.p.length-1]; } if(step<=0){ return this.p[0]; } var _3a0=new Array(this.p[0].length); for(var k=0;j<this.p[0].length;k++){ _3a0[k]=0; } for(var j=0;j<this.p[0].length;j++){ var C=0; var D=0; for(var i=0;i<this.p.length;i++){ C+=this.p[i][j]*this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,i); } for(var l=0;l<this.p.length;l++){ D+=this.p[this.p.length-1][0]*dojo.math.bernstein(step,this.p.length,l); } _3a0[j]=C/D; } return _3a0; }; this.p=pnts; return this; },CatmullRom:function(pnts,c){ this.getValue=function(step){ var _3aa=step*(this.p.length-1); var node=Math.floor(_3aa); var _3ac=_3aa-node; var i0=node-1; if(i0<0){ i0=0; } var i=node; var i1=node+1; if(i1>=this.p.length){ i1=this.p.length-1; } var i2=node+2; if(i2>=this.p.length){ i2=this.p.length-1; } var u=_3ac; var u2=_3ac*_3ac; var u3=_3ac*_3ac*_3ac; var _3b4=new Array(this.p[0].length); for(var k=0;k<this.p[0].length;k++){ var x1=(-this.c*this.p[i0][k])+((2-this.c)*this.p[i][k])+((this.c-2)*this.p[i1][k])+(this.c*this.p[i2][k]); var x2=(2*this.c*this.p[i0][k])+((this.c-3)*this.p[i][k])+((3-2*this.c)*this.p[i1][k])+(-this.c*this.p[i2][k]); var x3=(-this.c*this.p[i0][k])+(this.c*this.p[i1][k]); var x4=this.p[i][k]; _3b4[k]=x1*u3+x2*u2+x3*u+x4; } return _3b4; }; if(!c){ this.c=0.7; }else{ this.c=c; } this.p=pnts; return this; },Arc:function(_3ba,end,ccw){ var _3bd=dojo.math.points.midpoint(_3ba,end); var _3be=dojo.math.points.translate(dojo.math.points.invert(_3bd),_3ba); var rad=Math.sqrt(Math.pow(_3be[0],2)+Math.pow(_3be[1],2)); var _3c0=dojo.math.radToDeg(Math.atan(_3be[1]/_3be[0])); if(_3be[0]<0){ _3c0-=90; }else{ _3c0+=90; } dojo.math.curves.CenteredArc.call(this,_3bd,rad,_3c0,_3c0+(ccw?-180:180)); },CenteredArc:function(_3c1,_3c2,_3c3,end){ this.center=_3c1; this.radius=_3c2; this.start=_3c3||0; this.end=end; this.getValue=function(n){ var _3c6=new Array(2); var _3c7=dojo.math.degToRad(this.start+((this.end-this.start)*n)); _3c6[0]=this.center[0]+this.radius*Math.sin(_3c7); _3c6[1]=this.center[1]-this.radius*Math.cos(_3c7); return _3c6; }; return this; },Circle:function(_3c8,_3c9){ dojo.math.curves.CenteredArc.call(this,_3c8,_3c9,0,360); return this; },Path:function(){ var _3ca=[]; var _3cb=[]; var _3cc=[]; var _3cd=0; this.add=function(_3ce,_3cf){ if(_3cf<0){ dojo.raise("dojo.math.curves.Path.add: weight cannot be less than 0"); } _3ca.push(_3ce); _3cb.push(_3cf); _3cd+=_3cf; computeRanges(); }; this.remove=function(_3d0){ for(var i=0;i<_3ca.length;i++){ if(_3ca[i]==_3d0){ _3ca.splice(i,1); _3cd-=_3cb.splice(i,1)[0]; break; } } computeRanges(); }; this.removeAll=function(){ _3ca=[]; _3cb=[]; _3cd=0; }; this.getValue=function(n){ var _3d3=false,value=0; for(var i=0;i<_3cc.length;i++){ var r=_3cc[i]; if(n>=r[0]&&n<r[1]){ var subN=(n-r[0])/r[2]; value=_3ca[i].getValue(subN); _3d3=true; break; } } if(!_3d3){ value=_3ca[_3ca.length-1].getValue(1); } for(j=0;j<i;j++){ value=dojo.math.points.translate(value,_3ca[j].getValue(1)); } return value; }; function computeRanges(){ var _3d7=0; for(var i=0;i<_3cb.length;i++){ var end=_3d7+_3cb[i]/_3cd; var len=end-_3d7; _3cc[i]=[_3d7,end,len]; _3d7=end; } } return this; }}; dojo.provide("dojo.animation"); dojo.provide("dojo.animation.Animation"); dojo.require("dojo.lang"); dojo.require("dojo.math"); dojo.require("dojo.math.curves"); dojo.animation.Animation=function(_3db,_3dc,_3dd,_3de,rate){ this.curve=_3db; this.duration=_3dc; this.repeatCount=_3de||0; this.rate=rate||10; if(_3dd){ if(dojo.lang.isFunction(_3dd.getValue)){ this.accel=_3dd; }else{ var i=0.35*_3dd+0.5; this.accel=new dojo.math.curves.CatmullRom([[0],[i],[1]],0.45); } } }; dojo.lang.extend(dojo.animation.Animation,{curve:null,duration:0,repeatCount:0,accel:null,onBegin:null,onAnimate:null,onEnd:null,onPlay:null,onPause:null,onStop:null,handler:null,_animSequence:null,_startTime:null,_endTime:null,_lastFrame:null,_timer:null,_percent:0,_active:false,_paused:false,_startRepeatCount:0,play:function(_3e1){ if(_3e1){ clearTimeout(this._timer); this._active=false; this._paused=false; this._percent=0; }else{ if(this._active&&!this._paused){ return; } } this._startTime=new Date().valueOf(); if(this._paused){ this._startTime-=(this.duration*this._percent/100); } this._endTime=this._startTime+this.duration; this._lastFrame=this._startTime; var e=new dojo.animation.AnimationEvent(this,null,this.curve.getValue(this._percent),this._startTime,this._startTime,this._endTime,this.duration,this._percent,0); this._active=true; this._paused=false; if(this._percent==0){ if(!this._startRepeatCount){ this._startRepeatCount=this.repeatCount; } e.type="begin"; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onBegin=="function"){ this.onBegin(e); } } e.type="play"; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onPlay=="function"){ this.onPlay(e); } if(this._animSequence){ this._animSequence._setCurrent(this); } this._cycle(); },pause:function(){ clearTimeout(this._timer); if(!this._active){ return; } this._paused=true; var e=new dojo.animation.AnimationEvent(this,"pause",this.curve.getValue(this._percent),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,0); if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onPause=="function"){ this.onPause(e); } },playPause:function(){ if(!this._active||this._paused){ this.play(); }else{ this.pause(); } },gotoPercent:function(pct,_3e5){ clearTimeout(this._timer); this._active=true; this._paused=true; this._percent=pct; if(_3e5){ this.play(); } },stop:function(_3e6){ clearTimeout(this._timer); var step=this._percent/100; if(_3e6){ step=1; } var e=new dojo.animation.AnimationEvent(this,"stop",this.curve.getValue(step),this._startTime,new Date().valueOf(),this._endTime,this.duration,this._percent,Math.round(fps)); if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onStop=="function"){ this.onStop(e); } this._active=false; this._paused=false; },status:function(){ if(this._active){ return this._paused?"paused":"playing"; }else{ return "stopped"; } },_cycle:function(){ clearTimeout(this._timer); if(this._active){ var curr=new Date().valueOf(); var step=(curr-this._startTime)/(this._endTime-this._startTime); fps=1000/(curr-this._lastFrame); this._lastFrame=curr; if(step>=1){ step=1; this._percent=100; }else{ this._percent=step*100; } if(this.accel&&this.accel.getValue){ step=this.accel.getValue(step); } var e=new dojo.animation.AnimationEvent(this,"animate",this.curve.getValue(step),this._startTime,curr,this._endTime,this.duration,this._percent,Math.round(fps)); if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onAnimate=="function"){ this.onAnimate(e); } if(step<1){ this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate); }else{ e.type="end"; this._active=false; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onEnd=="function"){ this.onEnd(e); } if(this.repeatCount>0){ this.repeatCount--; this.play(true); }else{ if(this.repeatCount==-1){ this.play(true); }else{ if(this._startRepeatCount){ this.repeatCount=this._startRepeatCount; this._startRepeatCount=0; } if(this._animSequence){ this._animSequence._playNext(); } } } } } }}); dojo.animation.AnimationEvent=function(anim,type,_3ee,_3ef,_3f0,_3f1,dur,pct,fps){ this.type=type; this.animation=anim; this.coords=_3ee; this.x=_3ee[0]; this.y=_3ee[1]; this.z=_3ee[2]; this.startTime=_3ef; this.currentTime=_3f0; this.endTime=_3f1; this.duration=dur; this.percent=pct; this.fps=fps; }; dojo.lang.extend(dojo.animation.AnimationEvent,{coordsAsInts:function(){ var _3f5=new Array(this.coords.length); for(var i=0;i<this.coords.length;i++){ _3f5[i]=Math.round(this.coords[i]); } return _3f5; }}); dojo.animation.AnimationSequence=function(_3f7){ this.repeatCount=_3f7||0; }; dojo.lang.extend(dojo.animation.AnimationSequence,{repeateCount:0,_anims:[],_currAnim:-1,onBegin:null,onEnd:null,onNext:null,handler:null,add:function(){ for(var i=0;i<arguments.length;i++){ this._anims.push(arguments[i]); arguments[i]._animSequence=this; } },remove:function(anim){ for(var i=0;i<this._anims.length;i++){ if(this._anims[i]==anim){ this._anims[i]._animSequence=null; this._anims.splice(i,1); break; } } },removeAll:function(){ for(var i=0;i<this._anims.length;i++){ this._anims[i]._animSequence=null; } this._anims=[]; this._currAnim=-1; },clear:function(){ this.removeAll(); },play:function(_3fc){ if(this._anims.length==0){ return; } if(_3fc||!this._anims[this._currAnim]){ this._currAnim=0; } if(this._anims[this._currAnim]){ if(this._currAnim==0){ var e={type:"begin",animation:this._anims[this._currAnim]}; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onBegin=="function"){ this.onBegin(e); } } this._anims[this._currAnim].play(_3fc); } },pause:function(){ if(this._anims[this._currAnim]){ this._anims[this._currAnim].pause(); } },playPause:function(){ if(this._anims.length==0){ return; } if(this._currAnim==-1){ this._currAnim=0; } if(this._anims[this._currAnim]){ this._anims[this._currAnim].playPause(); } },stop:function(){ if(this._anims[this._currAnim]){ this._anims[this._currAnim].stop(); } },status:function(){ if(this._anims[this._currAnim]){ return this._anims[this._currAnim].status(); }else{ return "stopped"; } },_setCurrent:function(anim){ for(var i=0;i<this._anims.length;i++){ if(this._anims[i]==anim){ this._currAnim=i; break; } } },_playNext:function(){ if(this._currAnim==-1||this._anims.length==0){ return; } this._currAnim++; if(this._anims[this._currAnim]){ var e={type:"next",animation:this._anims[this._currAnim]}; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onNext=="function"){ this.onNext(e); } this._anims[this._currAnim].play(true); }else{ var e={type:"end",animation:this._anims[this._anims.length-1]}; if(typeof this.handler=="function"){ this.handler(e); } if(typeof this.onEnd=="function"){ this.onEnd(e); } if(this.repeatCount>0){ this._currAnim=0; this.repeatCount--; this._anims[this._currAnim].play(true); }else{ if(this.repeatCount==-1){ this._currAnim=0; this._anims[this._currAnim].play(true); }else{ this._currAnim=-1; } } } }}); dojo.hostenv.conditionalLoadModule({common:["dojo.animation.Animation",false,false]}); dojo.hostenv.moduleLoaded("dojo.animation.*"); dojo.provide("dojo.dnd.HtmlDragAndDrop"); dojo.provide("dojo.dnd.HtmlDragSource"); dojo.provide("dojo.dnd.HtmlDropTarget"); dojo.provide("dojo.dnd.HtmlDragObject"); dojo.require("dojo.dnd.HtmlDragManager"); dojo.require("dojo.animation.*"); dojo.require("dojo.dom"); dojo.require("dojo.style"); dojo.require("dojo.html"); dojo.require("dojo.lang"); dojo.dnd.HtmlDragSource=function(node,type){ node=dojo.byId(node); if(node){ this.domNode=node; this.dragObject=node; dojo.dnd.DragSource.call(this); this.type=type||this.domNode.nodeName.toLowerCase(); } }; dojo.lang.extend(dojo.dnd.HtmlDragSource,{onDragStart:function(){ return new dojo.dnd.HtmlDragObject(this.dragObject,this.type); },setDragHandle:function(node){ node=dojo.byId(node); dojo.dnd.dragManager.unregisterDragSource(this); this.domNode=node; dojo.dnd.dragManager.registerDragSource(this); },setDragTarget:function(node){ this.dragObject=node; }}); dojo.dnd.HtmlDragObject=function(node,type){ node=dojo.byId(node); this.type=type; this.domNode=node; }; dojo.lang.extend(dojo.dnd.HtmlDragObject,{onDragStart:function(e){ dojo.html.clearSelection(); this.scrollOffset={top:dojo.html.getScrollTop(),left:dojo.html.getScrollLeft()}; this.dragStartPosition={top:dojo.style.getAbsoluteY(this.domNode,true)+this.scrollOffset.top,left:dojo.style.getAbsoluteX(this.domNode,true)+this.scrollOffset.left}; this.dragOffset={top:this.dragStartPosition.top-e.clientY,left:this.dragStartPosition.left-e.clientX}; this.dragClone=this.domNode.cloneNode(true); with(this.dragClone.style){ position="absolute"; top=this.dragOffset.top+e.clientY+"px"; left=this.dragOffset.left+e.clientX+"px"; } dojo.style.setOpacity(this.dragClone,0.5); dojo.html.body().appendChild(this.dragClone); },updateDragOffset:function(){ var sTop=dojo.html.getScrollTop(); var _409=dojo.html.getScrollLeft(); if(sTop!=this.scrollOffset.top){ var diff=sTop-this.scrollOffset.top; this.dragOffset.top+=diff; this.scrollOffset.top=sTop; } },onDragMove:function(e){ this.dragClone.style.top=this.dragOffset.top+e.clientY+"px"; this.dragClone.style.left=this.dragOffset.left+e.clientX+"px"; },onDragEnd:function(e){ switch(e.dragStatus){ case "dropSuccess": dojo.dom.removeNode(this.dragClone); this.dragClone=null; break; case "dropFailure": var _40d=[dojo.style.getAbsoluteX(this.dragClone),dojo.style.getAbsoluteY(this.dragClone)]; var _40e=[this.dragStartPosition.left+1,this.dragStartPosition.top+1]; var line=new dojo.math.curves.Line(_40d,_40e); var anim=new dojo.animation.Animation(line,300,0,0); var _411=this; dojo.event.connect(anim,"onAnimate",function(e){ _411.dragClone.style.left=e.x+"px"; _411.dragClone.style.top=e.y+"px"; }); dojo.event.connect(anim,"onEnd",function(e){ dojo.lang.setTimeout(dojo.dom.removeNode,200,_411.dragClone); }); anim.play(); break; } }}); dojo.dnd.HtmlDropTarget=function(node,_415){ if(arguments.length==0){ return; } node=dojo.byId(node); this.domNode=node; dojo.dnd.DropTarget.call(this); this.acceptedTypes=_415||[]; }; dojo.inherits(dojo.dnd.HtmlDropTarget,dojo.dnd.DropTarget); dojo.lang.extend(dojo.dnd.HtmlDropTarget,{onDragOver:function(e){ if(!dojo.lang.inArray(this.acceptedTypes,"*")){ for(var i=0;i<e.dragObjects.length;i++){ if(!dojo.lang.inArray(this.acceptedTypes,e.dragObjects[i].type)){ return false; } } } this.childBoxes=[]; for(var i=0,child;i<this.domNode.childNodes.length;i++){ child=this.domNode.childNodes[i]; if(child.nodeType!=dojo.dom.ELEMENT_NODE){ continue; } var top=dojo.style.getAbsoluteY(child); var _419=top+dojo.style.getInnerHeight(child); var left=dojo.style.getAbsoluteX(child); var _41b=left+dojo.style.getInnerWidth(child); this.childBoxes.push({top:top,bottom:_419,left:left,right:_41b,node:child}); } return true; },_getNodeUnderMouse:function(e){ var _41d=e.pageX||e.clientX+dojo.html.body().scrollLeft; var _41e=e.pageY||e.clientY+dojo.html.body().scrollTop; for(var i=0,child;i<this.childBoxes.length;i++){ with(this.childBoxes[i]){ if(_41d>=left&&_41d<=right&&_41e>=top&&_41e<=bottom){ return i; } } } return -1; },onDragMove:function(e){ var i=this._getNodeUnderMouse(e); if(!this.dropIndicator){ this.dropIndicator=document.createElement("div"); with(this.dropIndicator.style){ position="absolute"; zIndex=1; borderTopWidth="1px"; borderTopColor="black"; borderTopStyle="solid"; width=dojo.style.getInnerWidth(this.domNode)+"px"; left=dojo.style.getAbsoluteX(this.domNode)+"px"; } } with(this.dropIndicator.style){ if(i<0){ if(this.childBoxes.length){ top=((dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH)?this.childBoxes[0].top:this.childBoxes[this.childBoxes.length-1].bottom)+"px"; }else{ top=dojo.style.getAbsoluteY(this.domNode)+"px"; } }else{ var _422=this.childBoxes[i]; top=((dojo.html.gravity(_422.node,e)&dojo.html.gravity.NORTH)?_422.top:_422.bottom)+"px"; } } if(!this.dropIndicator.parentNode){ dojo.html.body().appendChild(this.dropIndicator); } },onDragOut:function(e){ dojo.dom.removeNode(this.dropIndicator); delete this.dropIndicator; },onDrop:function(e){ this.onDragOut(e); var i=this._getNodeUnderMouse(e); if(i<0){ if(this.childBoxes.length){ if(dojo.html.gravity(this.childBoxes[0].node,e)&dojo.html.gravity.NORTH){ return dojo.dom.insertBefore(e.dragObject.domNode,this.childBoxes[0].node); }else{ return dojo.dom.insertAfter(e.dragObject.domNode,this.childBoxes[this.childBoxes.length-1].node); } } this.domNode.appendChild(e.dragObject.domNode); return true; } var _426=this.childBoxes[i]; if(dojo.html.gravity(_426.node,e)&dojo.html.gravity.NORTH){ return dojo.dom.insertBefore(e.dragObject.domNode,_426.node); }else{ return dojo.dom.insertAfter(e.dragObject.domNode,_426.node); } }}); dojo.hostenv.conditionalLoadModule({common:["dojo.dnd.DragAndDrop"],browser:["dojo.dnd.HtmlDragAndDrop"]}); dojo.hostenv.moduleLoaded("dojo.dnd.*"); dojo.provide("dojo.dnd.HtmlDragMove"); dojo.provide("dojo.dnd.HtmlDragMoveSource"); dojo.provide("dojo.dnd.HtmlDragMoveObject"); dojo.require("dojo.dnd.*"); dojo.dnd.HtmlDragMoveSource=function(node,type){ dojo.dnd.HtmlDragSource.call(this,node,type); }; dojo.inherits(dojo.dnd.HtmlDragMoveSource,dojo.dnd.HtmlDragSource); dojo.lang.extend(dojo.dnd.HtmlDragMoveSource,{onDragStart:function(){ return new dojo.dnd.HtmlDragMoveObject(this.domNode,this.type); }}); dojo.dnd.HtmlDragMoveObject=function(node,type){ dojo.dnd.HtmlDragObject.call(this,node,type); }; dojo.inherits(dojo.dnd.HtmlDragMoveObject,dojo.dnd.HtmlDragObject); dojo.lang.extend(dojo.dnd.HtmlDragMoveObject,{onDragEnd:function(e){ delete this.dragClone; },onDragStart:function(e){ dojo.html.clearSelection(); this.dragClone=this.domNode; this.dragStartPosition={top:dojo.style.getAbsoluteY(this.domNode),left:dojo.style.getAbsoluteX(this.domNode)}; this.dragOffset={top:this.dragStartPosition.top-e.clientY,left:this.dragStartPosition.left-e.clientX}; this.domNode.style.position="absolute"; }});

