/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ /* This is a compiled version of Dojo, built for deployment and not for development. To get an editable version, please visit: http://dojotoolkit.org for documentation and information on getting the source. */ if(typeof dojo=="undefined"){ var dj_global=this; var dj_currentContext=this; function dj_undef(_1,_2){ return (typeof (_2||dj_currentContext)[_1]=="undefined"); } if(dj_undef("djConfig",this)){ var djConfig={}; } if(dj_undef("dojo",this)){ var dojo={}; } dojo.global=function(){ return dj_currentContext; }; dojo.locale=djConfig.locale; dojo.version={major:0,minor:4,patch:0,flag:"",revision:Number("$Rev: 6258 $".match(/[0-9]+/)[0]),toString:function(){ with(dojo.version){ return major+"."+minor+"."+patch+flag+" ("+revision+")"; } }}; dojo.evalProp=function(_3,_4,_5){ if((!_4)||(!_3)){ return undefined; } if(!dj_undef(_3,_4)){ return _4[_3]; } return (_5?(_4[_3]={}):undefined); }; dojo.parseObjPath=function(_6,_7,_8){ var _9=(_7||dojo.global()); var _a=_6.split("."); var _b=_a.pop(); for(var i=0,l=_a.length;i1){ dh.modulesLoadedListeners.push(function(){ obj[_3d](); }); } } if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){ dh.callLoaded(); } }; dojo.addOnUnload=function(obj,_40){ var dh=dojo.hostenv; if(arguments.length==1){ dh.unloadListeners.push(obj); }else{ if(arguments.length>1){ dh.unloadListeners.push(function(){ obj[_40](); }); } } }; dojo.hostenv.modulesLoaded=function(){ if(this.post_load_){ return; } if(this.loadUriStack.length==0&&this.getTextStack.length==0){ if(this.inFlightCount>0){ dojo.debug("files still in flight!"); return; } dojo.hostenv.callLoaded(); } }; dojo.hostenv.callLoaded=function(){ if(typeof setTimeout=="object"){ setTimeout("dojo.hostenv.loaded();",0); }else{ dojo.hostenv.loaded(); } }; dojo.hostenv.getModuleSymbols=function(_42){ var _43=_42.split("."); for(var i=_43.length;i>0;i--){ var _45=_43.slice(0,i).join("."); if((i==1)&&!this.moduleHasPrefix(_45)){ _43[0]="../"+_43[0]; }else{ var _46=this.getModulePrefix(_45); if(_46!=_45){ _43.splice(0,i,_46); break; } } } return _43; }; dojo.hostenv._global_omit_module_check=false; dojo.hostenv.loadModule=function(_47,_48,_49){ if(!_47){ return; } _49=this._global_omit_module_check||_49; var _4a=this.findModule(_47,false); if(_4a){ return _4a; } if(dj_undef(_47,this.loading_modules_)){ this.addedToLoadingCount.push(_47); } this.loading_modules_[_47]=1; var _4b=_47.replace(/\./g,"/")+".js"; var _4c=_47.split("."); var _4d=this.getModuleSymbols(_47); var _4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/)); var _4f=_4d[_4d.length-1]; var ok; if(_4f=="*"){ _47=_4c.slice(0,-1).join("."); while(_4d.length){ _4d.pop(); _4d.push(this.pkgFileName); _4b=_4d.join("/")+".js"; if(_4e&&_4b.charAt(0)=="/"){ _4b=_4b.slice(1); } ok=this.loadPath(_4b,!_49?_47:null); if(ok){ break; } _4d.pop(); } }else{ _4b=_4d.join("/")+".js"; _47=_4c.join("."); var _51=!_49?_47:null; ok=this.loadPath(_4b,_51); if(!ok&&!_48){ _4d.pop(); while(_4d.length){ _4b=_4d.join("/")+".js"; ok=this.loadPath(_4b,_51); if(ok){ break; } _4d.pop(); _4b=_4d.join("/")+"/"+this.pkgFileName+".js"; if(_4e&&_4b.charAt(0)=="/"){ _4b=_4b.slice(1); } ok=this.loadPath(_4b,_51); if(ok){ break; } } } if(!ok&&!_49){ dojo.raise("Could not load '"+_47+"'; last tried '"+_4b+"'"); } } if(!_49&&!this["isXDomain"]){ _4a=this.findModule(_47,false); if(!_4a){ dojo.raise("symbol '"+_47+"' is not defined after loading '"+_4b+"'"); } } return _4a; }; dojo.hostenv.startPackage=function(_52){ var _53=String(_52); var _54=_53; var _55=_52.split(/\./); if(_55[_55.length-1]=="*"){ _55.pop(); _54=_55.join("."); } var _56=dojo.evalObjPath(_54,true); this.loaded_modules_[_53]=_56; this.loaded_modules_[_54]=_56; return _56; }; dojo.hostenv.findModule=function(_57,_58){ var lmn=String(_57); if(this.loaded_modules_[lmn]){ return this.loaded_modules_[lmn]; } if(_58){ dojo.raise("no loaded module named '"+_57+"'"); } return null; }; dojo.kwCompoundRequire=function(_5a){ var _5b=_5a["common"]||[]; var _5c=_5a[dojo.hostenv.name_]?_5b.concat(_5a[dojo.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]); for(var x=0;x<_5c.length;x++){ var _5e=_5c[x]; if(_5e.constructor==Array){ dojo.hostenv.loadModule.apply(dojo.hostenv,_5e); }else{ dojo.hostenv.loadModule(_5e); } } }; dojo.require=function(_5f){ dojo.hostenv.loadModule.apply(dojo.hostenv,arguments); }; dojo.requireIf=function(_60,_61){ var _62=arguments[0]; if((_62===true)||(_62=="common")||(_62&&dojo.render[_62].capable)){ var _63=[]; for(var i=1;i0;i--){ _73.push(_72.slice(0,i).join("-")); } _73.push(false); if(_70){ _73.reverse(); } for(var j=_73.length-1;j>=0;j--){ var loc=_73[j]||"ROOT"; var _77=_71(loc); if(_77){ break; } } }; dojo.hostenv.localesGenerated; dojo.hostenv.registerNlsPrefix=function(){ dojo.registerModulePath("nls","nls"); }; dojo.hostenv.preloadLocalizations=function(){ if(dojo.hostenv.localesGenerated){ dojo.hostenv.registerNlsPrefix(); function preload(_78){ _78=dojo.hostenv.normalizeLocale(_78); dojo.hostenv.searchLocalePath(_78,true,function(loc){ for(var i=0;i1){ var _98=_97[1]; var _99=_98.split("&"); for(var x in _99){ var sp=_99[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 _9d=document.getElementsByTagName("script"); var _9e=/(__package__|dojo|bootstrap1)\.js([\?\.]|$)/i; for(var i=0;i<_9d.length;i++){ var src=_9d[i].getAttribute("src"); if(!src){ continue; } var m=src.match(_9e); if(m){ var _a2=src.substring(0,m.index); if(src.indexOf("bootstrap1")>-1){ _a2+="../"; } if(!this["djConfig"]){ djConfig={}; } if(djConfig["baseScriptUri"]==""){ djConfig["baseScriptUri"]=_a2; } if(djConfig["baseRelativePath"]==""){ djConfig["baseRelativePath"]=_a2; } break; } } } var dr=dojo.render; var drh=dojo.render.html; var drs=dojo.render.svg; var dua=(drh.UA=navigator.userAgent); var dav=(drh.AV=navigator.appVersion); var t=true; var f=false; drh.capable=t; drh.support.builtin=t; dr.ver=parseFloat(drh.AV); dr.os.mac=dav.indexOf("Macintosh")>=0; dr.os.win=dav.indexOf("Windows")>=0; dr.os.linux=dav.indexOf("X11")>=0; drh.opera=dua.indexOf("Opera")>=0; drh.khtml=(dav.indexOf("Konqueror")>=0)||(dav.indexOf("Safari")>=0); drh.safari=dav.indexOf("Safari")>=0; var _aa=dua.indexOf("Gecko"); drh.mozilla=drh.moz=(_aa>=0)&&(!drh.khtml); if(drh.mozilla){ drh.geckoVersion=dua.substring(_aa+6,_aa+14); } drh.ie=(document.all)&&(!drh.opera); drh.ie50=drh.ie&&dav.indexOf("MSIE 5.0")>=0; drh.ie55=drh.ie&&dav.indexOf("MSIE 5.5")>=0; drh.ie60=drh.ie&&dav.indexOf("MSIE 6.0")>=0; drh.ie70=drh.ie&&dav.indexOf("MSIE 7.0")>=0; var cm=document["compatMode"]; drh.quirks=(cm=="BackCompat")||(cm=="QuirksMode")||drh.ie55||drh.ie50; dojo.locale=dojo.locale||(drh.ie?navigator.userLanguage:navigator.language).toLowerCase(); dr.vml.capable=drh.ie; drs.capable=f; drs.support.plugin=f; drs.support.builtin=f; var _ac=window["document"]; var tdi=_ac["implementation"]; if((tdi)&&(tdi["hasFeature"])&&(tdi.hasFeature("org.w3c.dom.svg","1.0"))){ drs.capable=t; drs.support.builtin=t; drs.support.plugin=f; } if(drh.safari){ var tmp=dua.split("AppleWebKit/")[1]; var ver=parseFloat(tmp.split(" ")[0]); if(ver>=420){ drs.capable=t; drs.support.builtin=t; drs.support.plugin=f; } } })(); dojo.hostenv.startPackage("dojo.hostenv"); dojo.render.name=dojo.hostenv.name_="browser"; dojo.hostenv.searchIds=[]; dojo.hostenv._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"]; dojo.hostenv.getXmlhttpObject=function(){ var _b0=null; var _b1=null; try{ _b0=new XMLHttpRequest(); } catch(e){ } if(!_b0){ for(var i=0;i<3;++i){ var _b3=dojo.hostenv._XMLHTTP_PROGIDS[i]; try{ _b0=new ActiveXObject(_b3); } catch(e){ _b1=e; } if(_b0){ dojo.hostenv._XMLHTTP_PROGIDS=[_b3]; break; } } } if(!_b0){ return dojo.raise("XMLHTTP not available",_b1); } return _b0; }; dojo.hostenv._blockAsync=false; dojo.hostenv.getText=function(uri,_b5,_b6){ if(!_b5){ this._blockAsync=true; } var _b7=this.getXmlhttpObject(); function isDocumentOk(_b8){ var _b9=_b8["status"]; return Boolean((!_b9)||((200<=_b9)&&(300>_b9))||(_b9==304)); } if(_b5){ var _ba=this,_bb=null,gbl=dojo.global(); var xhr=dojo.evalObjPath("dojo.io.XMLHTTPTransport"); _b7.onreadystatechange=function(){ if(_bb){ gbl.clearTimeout(_bb); _bb=null; } if(_ba._blockAsync||(xhr&&xhr._blockAsync)){ _bb=gbl.setTimeout(function(){ _b7.onreadystatechange.apply(this); },10); }else{ if(4==_b7.readyState){ if(isDocumentOk(_b7)){ _b5(_b7.responseText); } } } }; } _b7.open("GET",uri,_b5?true:false); try{ _b7.send(null); if(_b5){ return null; } if(!isDocumentOk(_b7)){ var err=Error("Unable to load "+uri+" status:"+_b7.status); err.status=_b7.status; err.responseText=_b7.responseText; throw err; } } catch(e){ this._blockAsync=false; if((_b6)&&(!_b5)){ return null; }else{ throw e; } } this._blockAsync=false; return _b7.responseText; }; dojo.hostenv.defaultDebugContainerId="dojoDebug"; dojo.hostenv._println_buffer=[]; dojo.hostenv._println_safe=false; dojo.hostenv.println=function(_bf){ if(!dojo.hostenv._println_safe){ dojo.hostenv._println_buffer.push(_bf); }else{ try{ var _c0=document.getElementById(djConfig.debugContainerId?djConfig.debugContainerId:dojo.hostenv.defaultDebugContainerId); if(!_c0){ _c0=dojo.body(); } var div=document.createElement("div"); div.appendChild(document.createTextNode(_bf)); _c0.appendChild(div); } catch(e){ try{ document.write("
"+_bf+"
"); } catch(e2){ window.status=_bf; } } } }; 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(_c2,_c3,fp,_c5){ var _c6=_c2["on"+_c3]||function(){ }; _c2["on"+_c3]=function(){ fp.apply(_c2,arguments); _c6.apply(_c2,arguments); }; return true; } function dj_load_init(e){ var _c8=(e&&e.type)?e.type.toLowerCase():"load"; if(arguments.callee.initialized||(_c8!="domcontentloaded"&&_c8!="load")){ return; } arguments.callee.initialized=true; if(typeof (_timer)!="undefined"){ clearInterval(_timer); delete _timer; } var _c9=function(){ if(dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }; if(dojo.hostenv.inFlightCount==0){ _c9(); dojo.hostenv.modulesLoaded(); }else{ dojo.addOnLoad(_c9); } } if(document.addEventListener){ if(dojo.render.html.opera||(dojo.render.html.moz&&!djConfig.delayMozLoadingFix)){ document.addEventListener("DOMContentLoaded",dj_load_init,null); } window.addEventListener("load",dj_load_init,null); } if(dojo.render.html.ie&&dojo.render.os.win){ document.attachEvent("onreadystatechange",function(e){ if(document.readyState=="complete"){ dj_load_init(); } }); } if(/(WebKit|khtml)/i.test(navigator.userAgent)){ var _timer=setInterval(function(){ if(/loaded|complete/.test(document.readyState)){ dj_load_init(); } },10); } if(dojo.render.html.ie){ dj_addNodeEvtHdlr(window,"beforeunload",function(){ dojo.hostenv._unloading=true; window.setTimeout(function(){ dojo.hostenv._unloading=false; },0); }); } dj_addNodeEvtHdlr(window,"unload",function(){ dojo.hostenv.unloaded(); if((!dojo.render.html.ie)||(dojo.render.html.ie&&dojo.hostenv._unloading)){ dojo.hostenv.unloaded(); } }); dojo.hostenv.makeWidgets=function(){ var _cb=[]; if(djConfig.searchIds&&djConfig.searchIds.length>0){ _cb=_cb.concat(djConfig.searchIds); } if(dojo.hostenv.searchIds&&dojo.hostenv.searchIds.length>0){ _cb=_cb.concat(dojo.hostenv.searchIds); } if((djConfig.parseWidgets)||(_cb.length>0)){ if(dojo.evalObjPath("dojo.widget.Parse")){ var _cc=new dojo.xml.Parse(); if(_cb.length>0){ for(var x=0;x<_cb.length;x++){ var _ce=document.getElementById(_cb[x]); if(!_ce){ continue; } var _cf=_cc.parseElement(_ce,null,true); dojo.widget.getParser().createComponents(_cf); } }else{ if(djConfig.parseWidgets){ var _cf=_cc.parseElement(dojo.body(),null,true); dojo.widget.getParser().createComponents(_cf); } } } } }; dojo.addOnLoad(function(){ if(!dojo.render.html.ie){ dojo.hostenv.makeWidgets(); } }); try{ if(dojo.render.html.ie){ document.namespaces.add("v","urn:schemas-microsoft-com:vml"); document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)"); } } catch(e){ } dojo.hostenv.writeIncludes=function(){ }; if(!dj_undef("document",this)){ dj_currentDocument=this.document; } dojo.doc=function(){ return dj_currentDocument; }; dojo.body=function(){ return dojo.doc().body||dojo.doc().getElementsByTagName("body")[0]; }; dojo.byId=function(id,doc){ if((id)&&((typeof id=="string")||(id instanceof String))){ if(!doc){ doc=dj_currentDocument; } var ele=doc.getElementById(id); if(ele&&(ele.id!=id)&&doc.all){ ele=null; eles=doc.all[id]; if(eles){ if(eles.length){ for(var i=0;i"); } catch(e){ var _ed=document.createElement("script"); _ed.src=_ec; document.getElementsByTagName("head")[0].appendChild(_ed); } } } })(); dojo.provide("dojo.lang.common"); dojo.lang.inherits=function(_ee,_ef){ if(typeof _ef!="function"){ dojo.raise("dojo.inherits: superclass argument ["+_ef+"] must be a function (subclass: ["+_ee+"']"); } _ee.prototype=new _ef(); _ee.prototype.constructor=_ee; _ee.superclass=_ef.prototype; _ee["super"]=_ef.prototype; }; dojo.lang._mixin=function(obj,_f1){ var _f2={}; for(var x in _f1){ if((typeof _f2[x]=="undefined")||(_f2[x]!=_f1[x])){ obj[x]=_f1[x]; } } if(dojo.render.html.ie&&(typeof (_f1["toString"])=="function")&&(_f1["toString"]!=obj["toString"])&&(_f1["toString"]!=_f2["toString"])){ obj.toString=_f1.toString; } return obj; }; dojo.lang.mixin=function(obj,_f5){ for(var i=1,l=arguments.length;i-1; }; dojo.lang.isObject=function(it){ if(typeof it=="undefined"){ return false; } return (typeof it=="object"||it===null||dojo.lang.isArray(it)||dojo.lang.isFunction(it)); }; dojo.lang.isArray=function(it){ return (it&&it instanceof Array||typeof it=="array"); }; dojo.lang.isArrayLike=function(it){ if((!it)||(dojo.lang.isUndefined(it))){ return false; } if(dojo.lang.isString(it)){ return false; } if(dojo.lang.isFunction(it)){ return false; } if(dojo.lang.isArray(it)){ return true; } if((it.tagName)&&(it.tagName.toLowerCase()=="form")){ return false; } if(dojo.lang.isNumber(it.length)&&isFinite(it.length)){ return true; } return false; }; dojo.lang.isFunction=function(it){ if(!it){ return false; } if((typeof (it)=="function")&&(it=="[object NodeList]")){ return false; } return (it instanceof Function||typeof it=="function"); }; dojo.lang.isString=function(it){ return (typeof it=="string"||it instanceof String); }; dojo.lang.isAlien=function(it){ if(!it){ return false; } return !dojo.lang.isFunction()&&/\{\s*\[native code\]\s*\}/.test(String(it)); }; dojo.lang.isBoolean=function(it){ return (it instanceof Boolean||typeof it=="boolean"); }; dojo.lang.isNumber=function(it){ return (it instanceof Number||typeof it=="number"); }; dojo.lang.isUndefined=function(it){ return ((typeof (it)=="undefined")&&(it==undefined)); }; dojo.provide("dojo.lang"); dojo.deprecated("dojo.lang","replaced by dojo.lang.common","0.5"); dojo.provide("dojo.dom"); 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=function(wh){ if(typeof Element=="function"){ try{ return wh instanceof Element; } catch(E){ } }else{ return wh&&!isNaN(wh.nodeType); } }; dojo.dom.getUniqueId=function(){ var _114=dojo.doc(); do{ var id="dj_unique_"+(++arguments.callee._idIncrement); }while(_114.getElementById(id)); return id; }; dojo.dom.getUniqueId._idIncrement=0; dojo.dom.firstElement=dojo.dom.getFirstChildElement=function(_116,_117){ var node=_116.firstChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.nextSibling; } if(_117&&node&&node.tagName&&node.tagName.toLowerCase()!=_117.toLowerCase()){ node=dojo.dom.nextElement(node,_117); } return node; }; dojo.dom.lastElement=dojo.dom.getLastChildElement=function(_119,_11a){ var node=_119.lastChild; while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE){ node=node.previousSibling; } if(_11a&&node&&node.tagName&&node.tagName.toLowerCase()!=_11a.toLowerCase()){ node=dojo.dom.prevElement(node,_11a); } return node; }; dojo.dom.nextElement=dojo.dom.getNextSiblingElement=function(node,_11d){ if(!node){ return null; } do{ node=node.nextSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_11d&&_11d.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.nextElement(node,_11d); } return node; }; dojo.dom.prevElement=dojo.dom.getPreviousSiblingElement=function(node,_11f){ if(!node){ return null; } if(_11f){ _11f=_11f.toLowerCase(); } do{ node=node.previousSibling; }while(node&&node.nodeType!=dojo.dom.ELEMENT_NODE); if(node&&_11f&&_11f.toLowerCase()!=node.tagName.toLowerCase()){ return dojo.dom.prevElement(node,_11f); } return node; }; dojo.dom.moveChildren=function(_120,_121,trim){ var _123=0; if(trim){ while(_120.hasChildNodes()&&_120.firstChild.nodeType==dojo.dom.TEXT_NODE){ _120.removeChild(_120.firstChild); } while(_120.hasChildNodes()&&_120.lastChild.nodeType==dojo.dom.TEXT_NODE){ _120.removeChild(_120.lastChild); } } while(_120.hasChildNodes()){ _121.appendChild(_120.firstChild); _123++; } return _123; }; dojo.dom.copyChildren=function(_124,_125,trim){ var _127=_124.cloneNode(true); return this.moveChildren(_127,_125,trim); }; dojo.dom.removeChildren=function(node){ var _129=node.childNodes.length; while(node.hasChildNodes()){ node.removeChild(node.firstChild); } return _129; }; dojo.dom.replaceChildren=function(node,_12b){ dojo.dom.removeChildren(node); node.appendChild(_12b); }; dojo.dom.removeNode=function(node){ if(node&&node.parentNode){ return node.parentNode.removeChild(node); } }; dojo.dom.getAncestors=function(node,_12e,_12f){ var _130=[]; var _131=(_12e&&(_12e instanceof Function||typeof _12e=="function")); while(node){ if(!_131||_12e(node)){ _130.push(node); } if(_12f&&_130.length>0){ return _130[0]; } node=node.parentNode; } if(_12f){ return null; } return _130; }; dojo.dom.getAncestorsByTag=function(node,tag,_134){ tag=tag.toLowerCase(); return dojo.dom.getAncestors(node,function(el){ return ((el.tagName)&&(el.tagName.toLowerCase()==tag)); },_134); }; dojo.dom.getFirstAncestorByTag=function(node,tag){ return dojo.dom.getAncestorsByTag(node,tag,true); }; dojo.dom.isDescendantOf=function(node,_139,_13a){ if(_13a&&node){ node=node.parentNode; } while(node){ if(node==_139){ return true; } node=node.parentNode; } return false; }; dojo.dom.innerXML=function(node){ if(node.innerXML){ return node.innerXML; }else{ if(node.xml){ return node.xml; }else{ if(typeof XMLSerializer!="undefined"){ return (new XMLSerializer()).serializeToString(node); } } } }; dojo.dom.createDocument=function(){ var doc=null; var _13d=dojo.doc(); if(!dj_undef("ActiveXObject")){ var _13e=["MSXML2","Microsoft","MSXML","MSXML3"]; for(var i=0;i<_13e.length;i++){ try{ doc=new ActiveXObject(_13e[i]+".XMLDOM"); } catch(e){ } if(doc){ break; } } }else{ if((_13d.implementation)&&(_13d.implementation.createDocument)){ doc=_13d.implementation.createDocument("","",null); } } return doc; }; dojo.dom.createDocumentFromText=function(str,_141){ if(!_141){ _141="text/xml"; } if(!dj_undef("DOMParser")){ var _142=new DOMParser(); return _142.parseFromString(str,_141); }else{ if(!dj_undef("ActiveXObject")){ var _143=dojo.dom.createDocument(); if(_143){ _143.async=false; _143.loadXML(str); return _143; }else{ dojo.debug("toXml didn't work?"); } }else{ var _144=dojo.doc(); if(_144.createElement){ var tmp=_144.createElement("xml"); tmp.innerHTML=str; if(_144.implementation&&_144.implementation.createDocument){ var _146=_144.implementation.createDocument("foo","",null); for(var i=0;i1){ var _15e=dojo.doc(); dojo.dom.replaceChildren(node,_15e.createTextNode(text)); return text; }else{ if(node.textContent!=undefined){ return node.textContent; } var _15f=""; if(node==null){ return _15f; } for(var i=0;i0&&!(j==1&&segs[0]=="")&&segs[j]==".."&&segs[j-1]!=".."){ if(j==segs.length-1){ segs.splice(j,1); segs[j-1]=""; }else{ segs.splice(j-1,2); j-=2; } } } } _196.path=segs.join("/"); } } } } uri=""; if(_196.scheme!=null){ uri+=_196.scheme+":"; } if(_196.authority!=null){ uri+="//"+_196.authority; } uri+=_196.path; if(_196.query!=null){ uri+="?"+_196.query; } if(_196.fragment!=null){ uri+="#"+_196.fragment; } } this.uri=uri.toString(); var _19b="^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"; var r=this.uri.match(new RegExp(_19b)); 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){ _19b="^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$"; r=this.authority.match(new RegExp(_19b)); 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.html.style"); dojo.html.getClass=function(node){ node=dojo.byId(node); if(!node){ return ""; } var cs=""; if(node.className){ cs=node.className; }else{ if(dojo.html.hasAttribute(node,"class")){ cs=dojo.html.getAttribute(node,"class"); } } return cs.replace(/^\s+|\s+$/g,""); }; dojo.html.getClasses=function(node){ var c=dojo.html.getClass(node); return (c=="")?[]:c.split(/\s+/g); }; dojo.html.hasClass=function(node,_1a2){ return (new RegExp("(^|\\s+)"+_1a2+"(\\s+|$)")).test(dojo.html.getClass(node)); }; dojo.html.prependClass=function(node,_1a4){ _1a4+=" "+dojo.html.getClass(node); return dojo.html.setClass(node,_1a4); }; dojo.html.addClass=function(node,_1a6){ if(dojo.html.hasClass(node,_1a6)){ return false; } _1a6=(dojo.html.getClass(node)+" "+_1a6).replace(/^\s+|\s+$/g,""); return dojo.html.setClass(node,_1a6); }; dojo.html.setClass=function(node,_1a8){ node=dojo.byId(node); var cs=new String(_1a8); try{ if(typeof node.className=="string"){ node.className=cs; }else{ if(node.setAttribute){ node.setAttribute("class",_1a8); node.className=cs; }else{ return false; } } } catch(e){ dojo.debug("dojo.html.setClass() failed",e); } return true; }; dojo.html.removeClass=function(node,_1ab,_1ac){ try{ if(!_1ac){ var _1ad=dojo.html.getClass(node).replace(new RegExp("(^|\\s+)"+_1ab+"(\\s+|$)"),"$1$2"); }else{ var _1ad=dojo.html.getClass(node).replace(_1ab,""); } dojo.html.setClass(node,_1ad); } catch(e){ dojo.debug("dojo.html.removeClass() failed",e); } return true; }; dojo.html.replaceClass=function(node,_1af,_1b0){ dojo.html.removeClass(node,_1b0); dojo.html.addClass(node,_1af); }; dojo.html.classMatchType={ContainsAll:0,ContainsAny:1,IsOnly:2}; dojo.html.getElementsByClass=function(_1b1,_1b2,_1b3,_1b4,_1b5){ _1b5=false; var _1b6=dojo.doc(); _1b2=dojo.byId(_1b2)||_1b6; var _1b7=_1b1.split(/\s+/g); var _1b8=[]; if(_1b4!=1&&_1b4!=2){ _1b4=0; } var _1b9=new RegExp("(\\s|^)(("+_1b7.join(")|(")+"))(\\s|$)"); var _1ba=_1b7.join(" ").length; var _1bb=[]; if(!_1b5&&_1b6.evaluate){ var _1bc=".//"+(_1b3||"*")+"[contains("; if(_1b4!=dojo.html.classMatchType.ContainsAny){ _1bc+="concat(' ',@class,' '), ' "+_1b7.join(" ') and contains(concat(' ',@class,' '), ' ")+" ')"; if(_1b4==2){ _1bc+=" and string-length(@class)="+_1ba+"]"; }else{ _1bc+="]"; } }else{ _1bc+="concat(' ',@class,' '), ' "+_1b7.join(" ') or contains(concat(' ',@class,' '), ' ")+" ')]"; } var _1bd=_1b6.evaluate(_1bc,_1b2,null,XPathResult.ANY_TYPE,null); var _1be=_1bd.iterateNext(); while(_1be){ try{ _1bb.push(_1be); _1be=_1bd.iterateNext(); } catch(e){ break; } } return _1bb; }else{ if(!_1b3){ _1b3="*"; } _1bb=_1b2.getElementsByTagName(_1b3); var node,i=0; outer: while(node=_1bb[i++]){ var _1c1=dojo.html.getClasses(node); if(_1c1.length==0){ continue outer; } var _1c2=0; for(var j=0;j<_1c1.length;j++){ if(_1b9.test(_1c1[j])){ if(_1b4==dojo.html.classMatchType.ContainsAny){ _1b8.push(node); continue outer; }else{ _1c2++; } }else{ if(_1b4==dojo.html.classMatchType.IsOnly){ continue outer; } } } if(_1c2==_1b7.length){ if((_1b4==dojo.html.classMatchType.IsOnly)&&(_1c2==_1c1.length)){ _1b8.push(node); }else{ if(_1b4==dojo.html.classMatchType.ContainsAll){ _1b8.push(node); } } } } return _1b8; } }; dojo.html.getElementsByClassName=dojo.html.getElementsByClass; dojo.html.toCamelCase=function(_1c4){ var arr=_1c4.split("-"),cc=arr[0]; for(var i=1;i=1){ if(h.ie){ dojo.html.clearOpacity(node); return; }else{ _229=0.999999; } }else{ if(_229<0){ _229=0; } } } if(h.ie){ if(node.nodeName.toLowerCase()=="tr"){ var tds=node.getElementsByTagName("td"); for(var x=0;x=0.999999?1:Number(opac); }; dojo.provide("dojo.html.layout"); dojo.html.sumAncestorProperties=function(node,prop){ node=dojo.byId(node); if(!node){ return 0; } var _236=0; while(node){ if(dojo.html.getComputedStyle(node,"position")=="fixed"){ return 0; } var val=node[prop]; if(val){ _236+=val-0; if(node==dojo.body()){ break; } } node=node.parentNode; } return _236; }; dojo.html.setStyleAttributes=function(node,_239){ node=dojo.byId(node); var _23a=_239.replace(/(;)?\s*$/,"").split(";"); for(var i=0;i<_23a.length;i++){ var _23c=_23a[i].split(":"); var name=_23c[0].replace(/\s*$/,"").replace(/^\s*/,"").toLowerCase(); var _23e=_23c[1].replace(/\s*$/,"").replace(/^\s*/,""); switch(name){ case "opacity": dojo.html.setOpacity(node,_23e); break; case "content-height": dojo.html.setContentBox(node,{height:_23e}); break; case "content-width": dojo.html.setContentBox(node,{width:_23e}); break; case "outer-height": dojo.html.setMarginBox(node,{height:_23e}); break; case "outer-width": dojo.html.setMarginBox(node,{width:_23e}); break; default: node.style[dojo.html.toCamelCase(name)]=_23e; } } }; dojo.html.boxSizing={MARGIN_BOX:"margin-box",BORDER_BOX:"border-box",PADDING_BOX:"padding-box",CONTENT_BOX:"content-box"}; dojo.html.getAbsolutePosition=dojo.html.abs=function(node,_240,_241){ node=dojo.byId(node,node.ownerDocument); var ret={x:0,y:0}; var bs=dojo.html.boxSizing; if(!_241){ _241=bs.CONTENT_BOX; } var _244=2; var _245; switch(_241){ case bs.MARGIN_BOX: _245=3; break; case bs.BORDER_BOX: _245=2; break; case bs.PADDING_BOX: default: _245=1; break; case bs.CONTENT_BOX: _245=0; break; } var h=dojo.render.html; var db=document["body"]||document["documentElement"]; if(h.ie){ with(node.getBoundingClientRect()){ ret.x=left-2; ret.y=top-2; } }else{ //if(document.getBoxObjectFor){ //_244=1; //try{ //var bo=document.getBoxObjectFor(node); //ret.x=bo.x-dojo.html.sumAncestorProperties(node,"scrollLeft"); //ret.y=bo.y-dojo.html.sumAncestorProperties(node,"scrollTop"); //} //catch(e){ //} //}else{ if(node["offsetParent"]){ var _249; if((h.safari)&&(node.style.getPropertyValue("position")=="absolute")&&(node.parentNode==db)){ _249=db; }else{ _249=db.parentNode; } if(node.parentNode!=db){ var nd=node; if(dojo.render.html.opera){ nd=db; } ret.x-=dojo.html.sumAncestorProperties(nd,"scrollLeft"); ret.y-=dojo.html.sumAncestorProperties(nd,"scrollTop"); } var _24b=node; do{ var n=_24b["offsetLeft"]; if(!h.opera||n>0){ ret.x+=isNaN(n)?0:n; } var m=_24b["offsetTop"]; ret.y+=isNaN(m)?0:m; _24b=_24b.offsetParent; }while((_24b!=_249)&&(_24b!=null)); }else{ if(node["x"]&&node["y"]){ ret.x+=isNaN(node.x)?0:node.x; ret.y+=isNaN(node.y)?0:node.y; } } } //} if(_240){ var _24e=dojo.html.getScroll(); ret.y+=_24e.top; ret.x+=_24e.left; } var _24f=[dojo.html.getPaddingExtent,dojo.html.getBorderExtent,dojo.html.getMarginExtent]; if(_244>_245){ for(var i=_245;i<_244;++i){ ret.y+=_24f[i](node,"top"); ret.x+=_24f[i](node,"left"); } }else{ if(_244<_245){ for(var i=_245;i>_244;--i){ ret.y-=_24f[i-1](node,"top"); ret.x-=_24f[i-1](node,"left"); } } } ret.top=ret.y; ret.left=ret.x; return ret; }; dojo.html.isPositionAbsolute=function(node){ return (dojo.html.getComputedStyle(node,"position")=="absolute"); }; dojo.html._sumPixelValues=function(node,_253,_254){ var _255=0; for(var x=0;x<_253.length;x++){ _255+=dojo.html.getPixelValue(node,_253[x],_254); } return _255; }; dojo.html.getMargin=function(node){ return {width:dojo.html._sumPixelValues(node,["margin-left","margin-right"],(dojo.html.getComputedStyle(node,"position")=="absolute")),height:dojo.html._sumPixelValues(node,["margin-top","margin-bottom"],(dojo.html.getComputedStyle(node,"position")=="absolute"))}; }; dojo.html.getBorder=function(node){ return {width:dojo.html.getBorderExtent(node,"left")+dojo.html.getBorderExtent(node,"right"),height:dojo.html.getBorderExtent(node,"top")+dojo.html.getBorderExtent(node,"bottom")}; }; dojo.html.getBorderExtent=function(node,side){ return (dojo.html.getStyle(node,"border-"+side+"-style")=="none"?0:dojo.html.getPixelValue(node,"border-"+side+"-width")); }; dojo.html.getMarginExtent=function(node,side){ return dojo.html._sumPixelValues(node,["margin-"+side],dojo.html.isPositionAbsolute(node)); }; dojo.html.getPaddingExtent=function(node,side){ return dojo.html._sumPixelValues(node,["padding-"+side],true); }; dojo.html.getPadding=function(node){ return {width:dojo.html._sumPixelValues(node,["padding-left","padding-right"],true),height:dojo.html._sumPixelValues(node,["padding-top","padding-bottom"],true)}; }; dojo.html.getPadBorder=function(node){ var pad=dojo.html.getPadding(node); var _262=dojo.html.getBorder(node); return {width:pad.width+_262.width,height:pad.height+_262.height}; }; dojo.html.getBoxSizing=function(node){ var h=dojo.render.html; var bs=dojo.html.boxSizing; if((h.ie)||(h.opera)){ var cm=document["compatMode"]; if((cm=="BackCompat")||(cm=="QuirksMode")){ return bs.BORDER_BOX; }else{ return bs.CONTENT_BOX; } }else{ if(arguments.length==0){ node=document.documentElement; } var _267=dojo.html.getStyle(node,"-moz-box-sizing"); if(!_267){ _267=dojo.html.getStyle(node,"box-sizing"); } return (_267?_267:bs.CONTENT_BOX); } }; dojo.html.isBorderBox=function(node){ return (dojo.html.getBoxSizing(node)==dojo.html.boxSizing.BORDER_BOX); }; dojo.html.getBorderBox=function(node){ node=dojo.byId(node); return {width:node.offsetWidth,height:node.offsetHeight}; }; dojo.html.getPaddingBox=function(node){ var box=dojo.html.getBorderBox(node); var _26c=dojo.html.getBorder(node); return {width:box.width-_26c.width,height:box.height-_26c.height}; }; dojo.html.getContentBox=function(node){ node=dojo.byId(node); var _26e=dojo.html.getPadBorder(node); return {width:node.offsetWidth-_26e.width,height:node.offsetHeight-_26e.height}; }; dojo.html.setContentBox=function(node,args){ node=dojo.byId(node); var _271=0; var _272=0; var isbb=dojo.html.isBorderBox(node); var _274=(isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var ret={}; if(typeof args.width!="undefined"){ _271=args.width+_274.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_271); } if(typeof args.height!="undefined"){ _272=args.height+_274.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_272); } return ret; }; dojo.html.getMarginBox=function(node){ var _277=dojo.html.getBorderBox(node); var _278=dojo.html.getMargin(node); return {width:_277.width+_278.width,height:_277.height+_278.height}; }; dojo.html.setMarginBox=function(node,args){ node=dojo.byId(node); var _27b=0; var _27c=0; var isbb=dojo.html.isBorderBox(node); var _27e=(!isbb?dojo.html.getPadBorder(node):{width:0,height:0}); var _27f=dojo.html.getMargin(node); var ret={}; if(typeof args.width!="undefined"){ _27b=args.width-_27e.width; _27b-=_27f.width; ret.width=dojo.html.setPositivePixelValue(node,"width",_27b); } if(typeof args.height!="undefined"){ _27c=args.height-_27e.height; _27c-=_27f.height; ret.height=dojo.html.setPositivePixelValue(node,"height",_27c); } return ret; }; dojo.html.getElementBox=function(node,type){ var bs=dojo.html.boxSizing; switch(type){ case bs.MARGIN_BOX: return dojo.html.getMarginBox(node); case bs.BORDER_BOX: return dojo.html.getBorderBox(node); case bs.PADDING_BOX: return dojo.html.getPaddingBox(node); case bs.CONTENT_BOX: default: return dojo.html.getContentBox(node); } }; dojo.html.toCoordinateObject=dojo.html.toCoordinateArray=function(_284,_285,_286){ if(_284 instanceof Array||typeof _284=="array"){ dojo.deprecated("dojo.html.toCoordinateArray","use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead","0.5"); while(_284.length<4){ _284.push(0); } while(_284.length>4){ _284.pop(); } var ret={left:_284[0],top:_284[1],width:_284[2],height:_284[3]}; }else{ if(!_284.nodeType&&!(_284 instanceof String||typeof _284=="string")&&("width" in _284||"height" in _284||"left" in _284||"x" in _284||"top" in _284||"y" in _284)){ var ret={left:_284.left||_284.x||0,top:_284.top||_284.y||0,width:_284.width||0,height:_284.height||0}; }else{ var node=dojo.byId(_284); var pos=dojo.html.abs(node,_285,_286); var _28a=dojo.html.getMarginBox(node); var ret={left:pos.left,top:pos.top,width:_28a.width,height:_28a.height}; } } ret.x=ret.left; ret.y=ret.top; return ret; }; dojo.html.setMarginBoxWidth=dojo.html.setOuterWidth=function(node,_28c){ return dojo.html._callDeprecated("setMarginBoxWidth","setMarginBox",arguments,"width"); }; dojo.html.setMarginBoxHeight=dojo.html.setOuterHeight=function(){ return dojo.html._callDeprecated("setMarginBoxHeight","setMarginBox",arguments,"height"); }; dojo.html.getMarginBoxWidth=dojo.html.getOuterWidth=function(){ return dojo.html._callDeprecated("getMarginBoxWidth","getMarginBox",arguments,null,"width"); }; dojo.html.getMarginBoxHeight=dojo.html.getOuterHeight=function(){ return dojo.html._callDeprecated("getMarginBoxHeight","getMarginBox",arguments,null,"height"); }; dojo.html.getTotalOffset=function(node,type,_28f){ return dojo.html._callDeprecated("getTotalOffset","getAbsolutePosition",arguments,null,type); }; dojo.html.getAbsoluteX=function(node,_291){ return dojo.html._callDeprecated("getAbsoluteX","getAbsolutePosition",arguments,null,"x"); }; dojo.html.getAbsoluteY=function(node,_293){ return dojo.html._callDeprecated("getAbsoluteY","getAbsolutePosition",arguments,null,"y"); }; dojo.html.totalOffsetLeft=function(node,_295){ return dojo.html._callDeprecated("totalOffsetLeft","getAbsolutePosition",arguments,null,"left"); }; dojo.html.totalOffsetTop=function(node,_297){ return dojo.html._callDeprecated("totalOffsetTop","getAbsolutePosition",arguments,null,"top"); }; dojo.html.getMarginWidth=function(node){ return dojo.html._callDeprecated("getMarginWidth","getMargin",arguments,null,"width"); }; dojo.html.getMarginHeight=function(node){ return dojo.html._callDeprecated("getMarginHeight","getMargin",arguments,null,"height"); }; dojo.html.getBorderWidth=function(node){ return dojo.html._callDeprecated("getBorderWidth","getBorder",arguments,null,"width"); }; dojo.html.getBorderHeight=function(node){ return dojo.html._callDeprecated("getBorderHeight","getBorder",arguments,null,"height"); }; dojo.html.getPaddingWidth=function(node){ return dojo.html._callDeprecated("getPaddingWidth","getPadding",arguments,null,"width"); }; dojo.html.getPaddingHeight=function(node){ return dojo.html._callDeprecated("getPaddingHeight","getPadding",arguments,null,"height"); }; dojo.html.getPadBorderWidth=function(node){ return dojo.html._callDeprecated("getPadBorderWidth","getPadBorder",arguments,null,"width"); }; dojo.html.getPadBorderHeight=function(node){ return dojo.html._callDeprecated("getPadBorderHeight","getPadBorder",arguments,null,"height"); }; dojo.html.getBorderBoxWidth=dojo.html.getInnerWidth=function(){ return dojo.html._callDeprecated("getBorderBoxWidth","getBorderBox",arguments,null,"width"); }; dojo.html.getBorderBoxHeight=dojo.html.getInnerHeight=function(){ return dojo.html._callDeprecated("getBorderBoxHeight","getBorderBox",arguments,null,"height"); }; dojo.html.getContentBoxWidth=dojo.html.getContentWidth=function(){ return dojo.html._callDeprecated("getContentBoxWidth","getContentBox",arguments,null,"width"); }; dojo.html.getContentBoxHeight=dojo.html.getContentHeight=function(){ return dojo.html._callDeprecated("getContentBoxHeight","getContentBox",arguments,null,"height"); }; dojo.html.setContentBoxWidth=dojo.html.setContentWidth=function(node,_2a1){ return dojo.html._callDeprecated("setContentBoxWidth","setContentBox",arguments,"width"); }; dojo.html.setContentBoxHeight=dojo.html.setContentHeight=function(node,_2a3){ return dojo.html._callDeprecated("setContentBoxHeight","setContentBox",arguments,"height"); }; dojo.provide("dojo.html.util"); dojo.html.getElementWindow=function(_2a4){ return dojo.html.getDocumentWindow(_2a4.ownerDocument); }; dojo.html.getDocumentWindow=function(doc){ if(dojo.render.html.safari&&!doc._parentWindow){ var fix=function(win){ win.document._parentWindow=win; for(var i=0;i=left&&_2b3.x<=_2b9&&_2b3.y>=top&&_2b3.y<=_2b7); }; dojo.html.renderedTextContent=function(node){ node=dojo.byId(node); var _2bb=""; if(node==null){ return _2bb; } for(var i=0;i]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _2c4="cell"; }else{ if((/^]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _2c4="row"; }else{ if((/^<(thead|tbody|tfoot)[\s\r\n>]/i).test(txt.replace(/^\s+/))){ txt=""+txt+"
"; _2c4="section"; } } } tn.innerHTML=txt; if(tn["normalize"]){ tn.normalize(); } var _2c5=null; switch(_2c4){ case "cell": _2c5=tn.getElementsByTagName("tr")[0]; break; case "row": _2c5=tn.getElementsByTagName("tbody")[0]; break; case "section": _2c5=tn.getElementsByTagName("table")[0]; break; default: _2c5=tn; break; } var _2c6=[]; for(var x=0;x<_2c5.childNodes.length;x++){ _2c6.push(_2c5.childNodes[x].cloneNode(true)); } tn.style.display="none"; dojo.body().removeChild(tn); return _2c6; }; dojo.html.placeOnScreen=function(node,_2c9,_2ca,_2cb,_2cc,_2cd,_2ce){ if(_2c9 instanceof Array||typeof _2c9=="array"){ _2ce=_2cd; _2cd=_2cc; _2cc=_2cb; _2cb=_2ca; _2ca=_2c9[1]; _2c9=_2c9[0]; } if(_2cd instanceof String||typeof _2cd=="string"){ _2cd=_2cd.split(","); } if(!isNaN(_2cb)){ _2cb=[Number(_2cb),Number(_2cb)]; }else{ if(!(_2cb instanceof Array||typeof _2cb=="array")){ _2cb=[0,0]; } } var _2cf=dojo.html.getScroll().offset; var view=dojo.html.getViewport(); node=dojo.byId(node); var _2d1=node.style.display; node.style.display=""; var bb=dojo.html.getBorderBox(node); var w=bb.width; var h=bb.height; node.style.display=_2d1; if(!(_2cd instanceof Array||typeof _2cd=="array")){ _2cd=["TL"]; } var _2d5,_2d6,_2d7=Infinity,_2d8; for(var _2d9=0;_2d9<_2cd.length;++_2d9){ var _2da=_2cd[_2d9]; var _2db=true; var tryX=_2c9-(_2da.charAt(1)=="L"?0:w)+_2cb[0]*(_2da.charAt(1)=="L"?1:-1); var tryY=_2ca-(_2da.charAt(0)=="T"?0:h)+_2cb[1]*(_2da.charAt(0)=="T"?1:-1); if(_2cc){ tryX-=_2cf.x; tryY-=_2cf.y; } if(tryX<0){ tryX=0; _2db=false; } if(tryY<0){ tryY=0; _2db=false; } var x=tryX+w; if(x>view.width){ x=view.width-w; _2db=false; }else{ x=tryX; } x=Math.max(_2cb[0],x)+_2cf.x; var y=tryY+h; if(y>view.height){ y=view.height-h; _2db=false; }else{ y=tryY; } y=Math.max(_2cb[1],y)+_2cf.y; if(_2db){ _2d5=x; _2d6=y; _2d7=0; _2d8=_2da; break; }else{ var dist=Math.pow(x-tryX-_2cf.x,2)+Math.pow(y-tryY-_2cf.y,2); if(_2d7>dist){ _2d7=dist; _2d5=x; _2d6=y; _2d8=_2da; } } } if(!_2ce){ node.style.left=_2d5+"px"; node.style.top=_2d6+"px"; } return {left:_2d5,top:_2d6,x:_2d5,y:_2d6,dist:_2d7,corner:_2d8}; }; dojo.html.placeOnScreenPoint=function(node,_2e2,_2e3,_2e4,_2e5){ dojo.deprecated("dojo.html.placeOnScreenPoint","use dojo.html.placeOnScreen() instead","0.5"); return dojo.html.placeOnScreen(node,_2e2,_2e3,_2e4,_2e5,["TL","TR","BL","BR"]); }; dojo.html.placeOnScreenAroundElement=function(node,_2e7,_2e8,_2e9,_2ea,_2eb){ var best,_2ed=Infinity; _2e7=dojo.byId(_2e7); var _2ee=_2e7.style.display; _2e7.style.display=""; var mb=dojo.html.getElementBox(_2e7,_2e9); var _2f0=mb.width; var _2f1=mb.height; var _2f2=dojo.html.getAbsolutePosition(_2e7,true,_2e9); _2e7.style.display=_2ee; for(var _2f3 in _2ea){ var pos,_2f5,_2f6; var _2f7=_2ea[_2f3]; _2f5=_2f2.x+(_2f3.charAt(1)=="L"?0:_2f0); _2f6=_2f2.y+(_2f3.charAt(0)=="T"?0:_2f1); pos=dojo.html.placeOnScreen(node,_2f5,_2f6,_2e8,true,_2f7,true); if(pos.dist==0){ best=pos; break; }else{ if(_2ed>pos.dist){ _2ed=pos.dist; best=pos; } } } if(!_2eb){ node.style.left=best.left+"px"; node.style.top=best.top+"px"; } return best; }; dojo.html.scrollIntoView=function(node){ if(!node){ return; } if(dojo.render.html.ie){ if(dojo.html.getBorderBox(node.parentNode).heightnode.offsetTop){ _2f9.scrollTop-=(_2f9.scrollTop-node.offsetTop); } } } } }; dojo.provide("dojo.lang.array"); dojo.lang.has=function(obj,name){ try{ return typeof obj[name]!="undefined"; } catch(e){ return false; } }; dojo.lang.isEmpty=function(obj){ if(dojo.lang.isObject(obj)){ var tmp={}; var _300=0; for(var x in obj){ if(obj[x]&&(!tmp[x])){ _300++; break; } } return _300==0; }else{ if(dojo.lang.isArrayLike(obj)||dojo.lang.isString(obj)){ return obj.length==0; } } }; dojo.lang.map=function(arr,obj,_304){ var _305=dojo.lang.isString(arr); if(_305){ arr=arr.split(""); } if(dojo.lang.isFunction(obj)&&(!_304)){ _304=obj; obj=dj_global; }else{ if(dojo.lang.isFunction(obj)&&_304){ var _306=obj; obj=_304; _304=_306; } } if(Array.map){ var _307=Array.map(arr,_304,obj); }else{ var _307=[]; for(var i=0;i=3){ dojo.raise("thisObject doesn't exist!"); } _324=dj_global; } _326=[]; for(var i=0;i0){ this.duration=_389; } if(_38c){ this.repeatCount=_38c; } if(rate){ this.rate=rate; } if(_388){ dojo.lang.forEach(["handler","beforeBegin","onBegin","onEnd","onPlay","onStop","onAnimate"],function(item){ if(_388[item]){ this.connect(item,_388[item]); } },this); } if(_38b&&dojo.lang.isFunction(_38b)){ this.easing=_38b; } }; dojo.inherits(dojo.lfx.Animation,dojo.lfx.IAnimation); dojo.lang.extend(dojo.lfx.Animation,{_startTime:null,_endTime:null,_timer:null,_percent:0,_startRepeatCount:0,play:function(_38f,_390){ if(_390){ clearTimeout(this._timer); this._active=false; this._paused=false; this._percent=0; }else{ if(this._active&&!this._paused){ return this; } } this.fire("handler",["beforeBegin"]); this.fire("beforeBegin"); if(_38f>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_390); }),_38f); return this; } this._startTime=new Date().valueOf(); if(this._paused){ this._startTime-=(this.duration*this._percent/100); } this._endTime=this._startTime+this.duration; this._active=true; this._paused=false; var step=this._percent/100; var _392=this.curve.getValue(step); if(this._percent==0){ if(!this._startRepeatCount){ this._startRepeatCount=this.repeatCount; } this.fire("handler",["begin",_392]); this.fire("onBegin",[_392]); } this.fire("handler",["play",_392]); this.fire("onPlay",[_392]); this._cycle(); return this; },pause:function(){ clearTimeout(this._timer); if(!this._active){ return this; } this._paused=true; var _393=this.curve.getValue(this._percent/100); this.fire("handler",["pause",_393]); this.fire("onPause",[_393]); return this; },gotoPercent:function(pct,_395){ clearTimeout(this._timer); this._active=true; this._paused=true; this._percent=pct; if(_395){ this.play(); } return this; },stop:function(_396){ clearTimeout(this._timer); var step=this._percent/100; if(_396){ step=1; } var _398=this.curve.getValue(step); this.fire("handler",["stop",_398]); this.fire("onStop",[_398]); this._active=false; this._paused=false; return this; },status:function(){ if(this._active){ return this._paused?"paused":"playing"; }else{ return "stopped"; } return this; },_cycle:function(){ clearTimeout(this._timer); if(this._active){ var curr=new Date().valueOf(); var step=(curr-this._startTime)/(this._endTime-this._startTime); if(step>=1){ step=1; this._percent=100; }else{ this._percent=step*100; } if((this.easing)&&(dojo.lang.isFunction(this.easing))){ step=this.easing(step); } var _39b=this.curve.getValue(step); this.fire("handler",["animate",_39b]); this.fire("onAnimate",[_39b]); if(step<1){ this._timer=setTimeout(dojo.lang.hitch(this,"_cycle"),this.rate); }else{ this._active=false; this.fire("handler",["end"]); this.fire("onEnd"); if(this.repeatCount>0){ this.repeatCount--; this.play(null,true); }else{ if(this.repeatCount==-1){ this.play(null,true); }else{ if(this._startRepeatCount){ this.repeatCount=this._startRepeatCount; this._startRepeatCount=0; } } } } } return this; }}); dojo.lfx.Combine=function(_39c){ dojo.lfx.IAnimation.call(this); this._anims=[]; this._animsEnded=0; var _39d=arguments; if(_39d.length==1&&(dojo.lang.isArray(_39d[0])||dojo.lang.isArrayLike(_39d[0]))){ _39d=_39d[0]; } dojo.lang.forEach(_39d,function(anim){ this._anims.push(anim); anim.connect("onEnd",dojo.lang.hitch(this,"_onAnimsEnded")); },this); }; dojo.inherits(dojo.lfx.Combine,dojo.lfx.IAnimation); dojo.lang.extend(dojo.lfx.Combine,{_animsEnded:0,play:function(_39f,_3a0){ if(!this._anims.length){ return this; } this.fire("beforeBegin"); if(_39f>0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_3a0); }),_39f); return this; } if(_3a0||this._anims[0].percent==0){ this.fire("onBegin"); } this.fire("onPlay"); this._animsCall("play",null,_3a0); return this; },pause:function(){ this.fire("onPause"); this._animsCall("pause"); return this; },stop:function(_3a1){ this.fire("onStop"); this._animsCall("stop",_3a1); return this; },_onAnimsEnded:function(){ this._animsEnded++; if(this._animsEnded>=this._anims.length){ this.fire("onEnd"); } return this; },_animsCall:function(_3a2){ var args=[]; if(arguments.length>1){ for(var i=1;i0){ setTimeout(dojo.lang.hitch(this,function(){ this.play(null,_3ae); }),_3ad); return this; } if(_3af){ if(this._currAnim==0){ this.fire("handler",["begin",this._currAnim]); this.fire("onBegin",[this._currAnim]); } this.fire("onPlay",[this._currAnim]); _3af.play(null,_3ae); } return this; },pause:function(){ if(this._anims[this._currAnim]){ this._anims[this._currAnim].pause(); this.fire("onPause",[this._currAnim]); } return this; },playPause:function(){ if(this._anims.length==0){ return this; } if(this._currAnim==-1){ this._currAnim=0; } var _3b0=this._anims[this._currAnim]; if(_3b0){ if(!_3b0._active||_3b0._paused){ this.play(); }else{ this.pause(); } } return this; },stop:function(){ var _3b1=this._anims[this._currAnim]; if(_3b1){ _3b1.stop(); this.fire("onStop",[this._currAnim]); } return _3b1; },_playNext:function(){ if(this._currAnim==-1||this._anims.length==0){ return this; } this._currAnim++; if(this._anims[this._currAnim]){ this._anims[this._currAnim].play(null,true); } return this; }}); dojo.lfx.combine=function(_3b2){ var _3b3=arguments; if(dojo.lang.isArray(arguments[0])){ _3b3=arguments[0]; } if(_3b3.length==1){ return _3b3[0]; } return new dojo.lfx.Combine(_3b3); }; dojo.lfx.chain=function(_3b4){ var _3b5=arguments; if(dojo.lang.isArray(arguments[0])){ _3b5=arguments[0]; } if(_3b5.length==1){ return _3b5[0]; } return new dojo.lfx.Chain(_3b5); }; dojo.provide("dojo.html.color"); dojo.html.getBackgroundColor=function(node){ node=dojo.byId(node); var _3b7; do{ _3b7=dojo.html.getStyle(node,"background-color"); if(_3b7.toLowerCase()=="rgba(0, 0, 0, 0)"){ _3b7="transparent"; } if(node==document.getElementsByTagName("body")[0]){ node=null; break; } node=node.parentNode; }while(node&&dojo.lang.inArray(["transparent",""],_3b7)); if(_3b7=="transparent"){ _3b7=[255,255,255,0]; }else{ _3b7=dojo.gfx.color.extractRGB(_3b7); } return _3b7; }; dojo.provide("dojo.lfx.html"); dojo.lfx.html._byId=function(_3b8){ if(!_3b8){ return []; } if(dojo.lang.isArrayLike(_3b8)){ if(!_3b8.alreadyChecked){ var n=[]; dojo.lang.forEach(_3b8,function(node){ n.push(dojo.byId(node)); }); n.alreadyChecked=true; return n; }else{ return _3b8; } }else{ var n=[]; n.push(dojo.byId(_3b8)); n.alreadyChecked=true; return n; } }; dojo.lfx.html.propertyAnimation=function(_3bb,_3bc,_3bd,_3be,_3bf){ _3bb=dojo.lfx.html._byId(_3bb); var _3c0={"propertyMap":_3bc,"nodes":_3bb,"duration":_3bd,"easing":_3be||dojo.lfx.easeDefault}; var _3c1=function(args){ if(args.nodes.length==1){ var pm=args.propertyMap; if(!dojo.lang.isArray(args.propertyMap)){ var parr=[]; for(var _3c5 in pm){ pm[_3c5].property=_3c5; parr.push(pm[_3c5]); } pm=args.propertyMap=parr; } dojo.lang.forEach(pm,function(prop){ if(dj_undef("start",prop)){ if(prop.property!="opacity"){ prop.start=parseInt(dojo.html.getComputedStyle(args.nodes[0],prop.property)); }else{ prop.start=dojo.html.getOpacity(args.nodes[0]); } } }); } }; var _3c7=function(_3c8){ var _3c9=[]; dojo.lang.forEach(_3c8,function(c){ _3c9.push(Math.round(c)); }); return _3c9; }; var _3cb=function(n,_3cd){ n=dojo.byId(n); if(!n||!n.style){ return; } for(var s in _3cd){ if(s=="opacity"){ dojo.html.setOpacity(n,_3cd[s]); }else{ n.style[s]=_3cd[s]; } } }; var _3cf=function(_3d0){ this._properties=_3d0; this.diffs=new Array(_3d0.length); dojo.lang.forEach(_3d0,function(prop,i){ if(dojo.lang.isFunction(prop.start)){ prop.start=prop.start(prop,i); } if(dojo.lang.isFunction(prop.end)){ prop.end=prop.end(prop,i); } if(dojo.lang.isArray(prop.start)){ this.diffs[i]=null; }else{ if(prop.start instanceof dojo.gfx.color.Color){ prop.startRgb=prop.start.toRgb(); prop.endRgb=prop.end.toRgb(); }else{ this.diffs[i]=prop.end-prop.start; } } },this); this.getValue=function(n){ var ret={}; dojo.lang.forEach(this._properties,function(prop,i){ var _3d7=null; if(dojo.lang.isArray(prop.start)){ }else{ if(prop.start instanceof dojo.gfx.color.Color){ _3d7=(prop.units||"rgb")+"("; for(var j=0;j3){ _448.pop(); } var rgb=new dojo.gfx.color.Color(_442); var _44d=new dojo.gfx.color.Color(_448); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:rgb,end:_44d}},_443,_444,{"beforeBegin":function(){ if(_44a){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+rgb.toRgb().join(",")+")"; },"onEnd":function(){ if(_44a){ node.style.backgroundImage=_44a; } if(_44b){ node.style.backgroundColor="transparent"; } if(_445){ _445(node,anim); } }}); _446.push(anim); }); return dojo.lfx.combine(_446); }; dojo.lfx.html.unhighlight=function(_44f,_450,_451,_452,_453){ _44f=dojo.lfx.html._byId(_44f); var _454=[]; dojo.lang.forEach(_44f,function(node){ var _456=new dojo.gfx.color.Color(dojo.html.getBackgroundColor(node)); var rgb=new dojo.gfx.color.Color(_450); var _458=dojo.html.getStyle(node,"background-image"); var anim=dojo.lfx.propertyAnimation(node,{"background-color":{start:_456,end:rgb}},_451,_452,{"beforeBegin":function(){ if(_458){ node.style.backgroundImage="none"; } node.style.backgroundColor="rgb("+_456.toRgb().join(",")+")"; },"onEnd":function(){ if(_453){ _453(node,anim); } }}); _454.push(anim); }); return dojo.lfx.combine(_454); }; dojo.lang.mixin(dojo.lfx,dojo.lfx.html); dojo.provide("dojo.lfx.*"); dojo.provide("dojo.lang.extras"); dojo.lang.setTimeout=function(func,_45b){ var _45c=window,_45d=2; if(!dojo.lang.isFunction(func)){ _45c=func; func=_45b; _45b=arguments[2]; _45d++; } if(dojo.lang.isString(func)){ func=_45c[func]; } var args=[]; for(var i=_45d;i2)?args[0]:"after",precedence:"last",once:false,delay:null,rate:0,adviceMsg:false}; switch(args.length){ case 0: return; case 1: return; case 2: ao.srcFunc=args[0]; ao.adviceFunc=args[1]; break; case 3: if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isString(args[1]))&&(dl.isString(args[2]))){ ao.srcFunc=args[1]; ao.adviceFunc=args[2]; }else{ if((dl.isObject(args[0]))&&(dl.isString(args[1]))&&(dl.isFunction(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; var _474=dl.nameAnonFunc(args[2],ao.adviceObj,_471); ao.adviceFunc=_474; }else{ if((dl.isFunction(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))){ ao.adviceType="after"; ao.srcObj=dj_global; var _474=dl.nameAnonFunc(args[0],ao.srcObj,_471); ao.srcFunc=_474; ao.adviceObj=args[1]; ao.adviceFunc=args[2]; } } } } break; case 4: if((dl.isObject(args[0]))&&(dl.isObject(args[2]))){ ao.adviceType="after"; ao.srcObj=args[0]; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ if((dl.isString(args[0]))&&(dl.isString(args[1]))&&(dl.isObject(args[2]))){ ao.adviceType=args[0]; ao.srcObj=dj_global; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ if((dl.isString(args[0]))&&(dl.isFunction(args[1]))&&(dl.isObject(args[2]))){ ao.adviceType=args[0]; ao.srcObj=dj_global; var _474=dl.nameAnonFunc(args[1],dj_global,_471); ao.srcFunc=_474; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ if((dl.isString(args[0]))&&(dl.isObject(args[1]))&&(dl.isString(args[2]))&&(dl.isFunction(args[3]))){ ao.srcObj=args[1]; ao.srcFunc=args[2]; var _474=dl.nameAnonFunc(args[3],dj_global,_471); ao.adviceObj=dj_global; ao.adviceFunc=_474; }else{ if(dl.isObject(args[1])){ ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=dj_global; ao.adviceFunc=args[3]; }else{ if(dl.isObject(args[2])){ ao.srcObj=dj_global; ao.srcFunc=args[1]; ao.adviceObj=args[2]; ao.adviceFunc=args[3]; }else{ ao.srcObj=ao.adviceObj=ao.aroundObj=dj_global; ao.srcFunc=args[1]; ao.adviceFunc=args[2]; ao.aroundFunc=args[3]; } } } } } } break; case 6: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundFunc=args[5]; ao.aroundObj=dj_global; break; default: ao.srcObj=args[1]; ao.srcFunc=args[2]; ao.adviceObj=args[3]; ao.adviceFunc=args[4]; ao.aroundObj=args[5]; ao.aroundFunc=args[6]; ao.once=args[7]; ao.delay=args[8]; ao.rate=args[9]; ao.adviceMsg=args[10]; break; } if(dl.isFunction(ao.aroundFunc)){ var _474=dl.nameAnonFunc(ao.aroundFunc,ao.aroundObj,_471); ao.aroundFunc=_474; } if(dl.isFunction(ao.srcFunc)){ ao.srcFunc=dl.getNameInObj(ao.srcObj,ao.srcFunc); } if(dl.isFunction(ao.adviceFunc)){ ao.adviceFunc=dl.getNameInObj(ao.adviceObj,ao.adviceFunc); } if((ao.aroundObj)&&(dl.isFunction(ao.aroundFunc))){ ao.aroundFunc=dl.getNameInObj(ao.aroundObj,ao.aroundFunc); } if(!ao.srcObj){ dojo.raise("bad srcObj for srcFunc: "+ao.srcFunc); } if(!ao.adviceObj){ dojo.raise("bad adviceObj for adviceFunc: "+ao.adviceFunc); } if(!ao.adviceFunc){ dojo.debug("bad adviceFunc for srcFunc: "+ao.srcFunc); dojo.debugShallow(ao); } return ao; } this.connect=function(){ if(arguments.length==1){ var ao=arguments[0]; }else{ var ao=interpolateArgs(arguments,true); } if(dojo.lang.isString(ao.srcFunc)&&(ao.srcFunc.toLowerCase()=="onkey")){ if(dojo.render.html.ie){ ao.srcFunc="onkeydown"; this.connect(ao); } ao.srcFunc="onkeypress"; } if(dojo.lang.isArray(ao.srcObj)&&ao.srcObj!=""){ var _476={}; for(var x in ao){ _476[x]=ao[x]; } var mjps=[]; dojo.lang.forEach(ao.srcObj,function(src){ if((dojo.render.html.capable)&&(dojo.lang.isString(src))){ src=dojo.byId(src); } _476.srcObj=src; mjps.push(dojo.event.connect.call(dojo.event,_476)); }); return mjps; } var mjp=dojo.event.MethodJoinPoint.getForMethod(ao.srcObj,ao.srcFunc); if(ao.adviceFunc){ var mjp2=dojo.event.MethodJoinPoint.getForMethod(ao.adviceObj,ao.adviceFunc); } mjp.kwAddAdvice(ao); return mjp; }; this.log=function(a1,a2){ var _47e; if((arguments.length==1)&&(typeof a1=="object")){ _47e=a1; }else{ _47e={srcObj:a1,srcFunc:a2}; } _47e.adviceFunc=function(){ var _47f=[]; for(var x=0;x=this.jp_.around.length){ return this.jp_.object[this.jp_.methodname].apply(this.jp_.object,this.args); }else{ var ti=this.jp_.around[this.around_index]; var mobj=ti[0]||dj_global; var meth=ti[1]; return mobj[meth].call(mobj,this); } }; dojo.event.MethodJoinPoint=function(obj,_496){ this.object=obj||dj_global; this.methodname=_496; this.methodfunc=this.object[_496]; this.squelch=false; }; dojo.event.MethodJoinPoint.getForMethod=function(obj,_498){ if(!obj){ obj=dj_global; } if(!obj[_498]){ obj[_498]=function(){ }; if(!obj[_498]){ dojo.raise("Cannot set do-nothing method on that object "+_498); } }else{ if((!dojo.lang.isFunction(obj[_498]))&&(!dojo.lang.isAlien(obj[_498]))){ return null; } } var _499=_498+"$joinpoint"; var _49a=_498+"$joinpoint$method"; var _49b=obj[_499]; if(!_49b){ var _49c=false; if(dojo.event["browser"]){ if((obj["attachEvent"])||(obj["nodeType"])||(obj["addEventListener"])){ _49c=true; dojo.event.browser.addClobberNodeAttrs(obj,[_499,_49a,_498]); } } var _49d=obj[_498].length; obj[_49a]=obj[_498]; _49b=obj[_499]=new dojo.event.MethodJoinPoint(obj,_49a); obj[_498]=function(){ var args=[]; if((_49c)&&(!arguments.length)){ var evt=null; try{ if(obj.ownerDocument){ evt=obj.ownerDocument.parentWindow.event; }else{ if(obj.documentElement){ evt=obj.documentElement.ownerDocument.parentWindow.event; }else{ if(obj.event){ evt=obj.event; }else{ evt=window.event; } } } } catch(e){ evt=window.event; } if(evt){ args.push(dojo.event.browser.fixEvent(evt,this)); } }else{ for(var x=0;x0)){ dojo.lang.forEach(this.before.concat(new Array()),_4b5); } var _4b6; try{ if((this["around"])&&(this.around.length>0)){ var mi=new dojo.event.MethodInvocation(this,obj,args); _4b6=mi.proceed(); }else{ if(this.methodfunc){ _4b6=this.object[this.methodname].apply(this.object,args); } } } catch(e){ if(!this.squelch){ dojo.raise(e); } } if((this["after"])&&(this.after.length>0)){ dojo.lang.forEach(this.after.concat(new Array()),_4b5); } return (this.methodfunc)?_4b6:null; },getArr:function(kind){ var type="after"; if((typeof kind=="string")&&(kind.indexOf("before")!=-1)){ type="before"; }else{ if(kind=="around"){ type="around"; } } if(!this[type]){ this[type]=[]; } return this[type]; },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(_4bb,_4bc,_4bd,_4be,_4bf,_4c0,once,_4c2,rate,_4c4){ var arr=this.getArr(_4bf); if(!arr){ dojo.raise("bad this: "+this); } var ao=[_4bb,_4bc,_4bd,_4be,_4c2,rate,_4c4]; if(once){ if(this.hasAdvice(_4bb,_4bc,_4bf,arr)>=0){ return; } } if(_4c0=="first"){ arr.unshift(ao); }else{ arr.push(ao); } },hasAdvice:function(_4c7,_4c8,_4c9,arr){ if(!arr){ arr=this.getArr(_4c9); } var ind=-1; for(var x=0;x=0;i=i-1){ var el=na[i]; try{ if(el&&el["__clobberAttrs__"]){ for(var j=0;j=65&&_519<=90&&evt.shiftKey==false){ _519+=32; } if(_519>=1&&_519<=26&&evt.ctrlKey){ _519+=96; } evt.key=String.fromCharCode(_519); } } }else{ if(evt["type"]=="keypress"){ if(dojo.render.html.opera){ if(evt.which==0){ evt.key=evt.keyCode; }else{ if(evt.which>0){ switch(evt.which){ case evt.KEY_SHIFT: case evt.KEY_CTRL: case evt.KEY_ALT: case evt.KEY_CAPS_LOCK: case evt.KEY_NUM_LOCK: case evt.KEY_SCROLL_LOCK: break; case evt.KEY_PAUSE: case evt.KEY_TAB: case evt.KEY_BACKSPACE: case evt.KEY_ENTER: case evt.KEY_ESCAPE: evt.key=evt.which; break; default: var _519=evt.which; if((evt.ctrlKey||evt.altKey||evt.metaKey)&&(evt.which>=65&&evt.which<=90&&evt.shiftKey==false)){ _519+=32; } evt.key=String.fromCharCode(_519); } } } }else{ if(dojo.render.html.ie){ if(!evt.ctrlKey&&!evt.altKey&&evt.keyCode>=evt.KEY_SPACE){ evt.key=String.fromCharCode(evt.keyCode); } }else{ if(dojo.render.html.safari){ switch(evt.keyCode){ case 63232: evt.key=evt.KEY_UP_ARROW; break; case 63233: evt.key=evt.KEY_DOWN_ARROW; break; case 63234: evt.key=evt.KEY_LEFT_ARROW; break; case 63235: evt.key=evt.KEY_RIGHT_ARROW; break; default: evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode; } }else{ evt.key=evt.charCode>0?String.fromCharCode(evt.charCode):evt.keyCode; } } } } } } if(dojo.render.html.ie){ if(!evt.target){ evt.target=evt.srcElement; } if(!evt.currentTarget){ evt.currentTarget=(_517?_517:evt.srcElement); } if(!evt.layerX){ evt.layerX=evt.offsetX; } if(!evt.layerY){ evt.layerY=evt.offsetY; } var doc=(evt.srcElement&&evt.srcElement.ownerDocument)?evt.srcElement.ownerDocument:document; var _51b=((dojo.render.html.ie55)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement; if(!evt.pageX){ evt.pageX=evt.clientX+(_51b.scrollLeft||0); } if(!evt.pageY){ evt.pageY=evt.clientY+(_51b.scrollTop||0); } if(evt.type=="mouseover"){ evt.relatedTarget=evt.fromElement; } if(evt.type=="mouseout"){ evt.relatedTarget=evt.toElement; } this.currentEvent=evt; evt.callListener=this.callListener; evt.stopPropagation=this._stopPropagation; evt.preventDefault=this._preventDefault; } return evt; }; this.stopEvent=function(evt){ if(window.event){ evt.returnValue=false; evt.cancelBubble=true; }else{ evt.preventDefault(); evt.stopPropagation(); } }; }; dojo.provide("dojo.event.*"); dojo.provide("dojo.logging.Logger"); dojo.logging.Record=function(lvl,msg){ this.level=lvl; this.message=""; this.msgArgs=[]; this.time=new Date(); if(dojo.lang.isArray(msg)){ if(msg.length>0&&dojo.lang.isString(msg[0])){ this.message=msg.shift(); } this.msgArgs=msg; }else{ this.message=msg; } }; dojo.logging.LogFilter=function(_51f){ this.passChain=_51f||""; this.filter=function(_520){ return true; }; }; dojo.logging.Logger=function(){ this.cutOffLevel=0; this.propagate=true; this.parent=null; this.data=[]; this.filters=[]; this.handlers=[]; }; dojo.extend(dojo.logging.Logger,{argsToArr:function(args){ var ret=[]; for(var x=0;x=this.cutOffLevel; },getEffectiveLevel:function(){ if((this.cutOffLevel==0)&&(this.parent)){ return this.parent.getEffectiveLevel(); } return this.cutOffLevel; },addFilter:function(flt){ this.filters.push(flt); return this.filters.length-1; },removeFilterByIndex:function(_527){ if(this.filters[_527]){ delete this.filters[_527]; return true; } return false; },removeFilter:function(_528){ for(var x=0;x=this.cutOffLevel)){ this.parent.log(lvl,msg); return false; } this.handle(new dojo.logging.Record(lvl,msg)); return true; },debug:function(msg){ return this.logType("DEBUG",this.argsToArr(arguments)); },info:function(msg){ return this.logType("INFO",this.argsToArr(arguments)); },warning:function(msg){ return this.logType("WARNING",this.argsToArr(arguments)); },error:function(msg){ return this.logType("ERROR",this.argsToArr(arguments)); },critical:function(msg){ return this.logType("CRITICAL",this.argsToArr(arguments)); },exception:function(msg,e,_538){ if(e){ var _539=[e.name,(e.description||e.message)]; if(e.fileName){ _539.push(e.fileName); _539.push("line "+e.lineNumber); } msg+=" "+_539.join(" : "); } this.logType("ERROR",msg); if(!_538){ throw e; } },logType:function(type,args){ return this.log.apply(this,[dojo.logging.log.getLevel(type),args]); },warn:function(){ this.warning.apply(this,arguments); },err:function(){ this.error.apply(this,arguments); },crit:function(){ this.critical.apply(this,arguments); }}); dojo.logging.LogHandler=function(_53c){ this.cutOffLevel=(_53c)?_53c:0; this.formatter=null; this.data=[]; this.filters=[]; }; dojo.lang.extend(dojo.logging.LogHandler,{setFormatter:function(_53d){ dojo.unimplemented("setFormatter"); },flush:function(){ },close:function(){ },handleError:function(){ },handle:function(_53e){ if((this.filter(_53e))&&(_53e.level>=this.cutOffLevel)){ this.emit(_53e); } },emit:function(_53f){ dojo.unimplemented("emit"); }}); void (function(){ var _540=["setLevel","addFilter","removeFilterByIndex","removeFilter","removeAllFilters","filter"]; var tgt=dojo.logging.LogHandler.prototype; var src=dojo.logging.Logger.prototype; for(var x=0;x<_540.length;x++){ tgt[_540[x]]=src[_540[x]]; } })(); dojo.logging.log=new dojo.logging.Logger(); dojo.logging.log.levels=[{"name":"DEBUG","level":1},{"name":"INFO","level":2},{"name":"WARNING","level":3},{"name":"ERROR","level":4},{"name":"CRITICAL","level":5}]; dojo.logging.log.loggers={}; dojo.logging.log.getLogger=function(name){ if(!this.loggers[name]){ this.loggers[name]=new dojo.logging.Logger(); this.loggers[name].parent=this; } return this.loggers[name]; }; dojo.logging.log.getLevelName=function(lvl){ for(var x=0;xthis.numRecords){ this.data.shift(); } } }}); dojo.logging.logQueueHandler=new dojo.logging.MemoryLogHandler(0,50,0,10000); dojo.logging.log.addHandler(dojo.logging.logQueueHandler); dojo.log=dojo.logging.log; dojo.provide("dojo.logging.*"); dojo.provide("dojo.string.common"); dojo.string.trim=function(str,wh){ if(!str.replace){ return str; } if(!str.length){ return str; } var re=(wh>0)?(/^\s+/):(wh<0)?(/\s+$/):(/^\s+|\s+$/g); return str.replace(re,""); }; dojo.string.trimStart=function(str){ return dojo.string.trim(str,1); }; dojo.string.trimEnd=function(str){ return dojo.string.trim(str,-1); }; dojo.string.repeat=function(str,_557,_558){ var out=""; for(var i=0;i<_557;i++){ out+=str; if(_558&&i<_557-1){ out+=_558; } } return out; }; dojo.string.pad=function(str,len,c,dir){ var out=String(str); if(!c){ c="0"; } if(!dir){ dir=1; } while(out.length0){ out=c+out; }else{ out+=c; } } return out; }; dojo.string.padLeft=function(str,len,c){ return dojo.string.pad(str,len,c,1); }; dojo.string.padRight=function(str,len,c){ return dojo.string.pad(str,len,c,-1); }; dojo.provide("dojo.string"); dojo.provide("dojo.io.common"); dojo.io.transports=[]; dojo.io.hdlrFuncNames=["load","error","timeout"]; dojo.io.Request=function(url,_567,_568,_569){ if((arguments.length==1)&&(arguments[0].constructor==Object)){ this.fromKwArgs(arguments[0]); }else{ this.url=url; if(_567){ this.mimetype=_567; } if(_568){ this.transport=_568; } if(arguments.length>=4){ this.changeUrl=_569; } } }; dojo.lang.extend(dojo.io.Request,{url:"",mimetype:"text/plain",method:"GET",content:undefined,transport:undefined,changeUrl:undefined,formNode:undefined,sync:false,bindSuccess:false,useCache:false,preventCache:false,load:function(type,data,_56c,_56d){ },error:function(type,_56f,_570,_571){ },timeout:function(type,_573,_574,_575){ },handle:function(type,data,_578,_579){ },timeoutSeconds:0,abort:function(){ },fromKwArgs:function(_57a){ if(_57a["url"]){ _57a.url=_57a.url.toString(); } if(_57a["formNode"]){ _57a.formNode=dojo.byId(_57a.formNode); } if(!_57a["method"]&&_57a["formNode"]&&_57a["formNode"].method){ _57a.method=_57a["formNode"].method; } if(!_57a["handle"]&&_57a["handler"]){ _57a.handle=_57a.handler; } if(!_57a["load"]&&_57a["loaded"]){ _57a.load=_57a.loaded; } if(!_57a["changeUrl"]&&_57a["changeURL"]){ _57a.changeUrl=_57a.changeURL; } _57a.encoding=dojo.lang.firstValued(_57a["encoding"],djConfig["bindEncoding"],""); _57a.sendTransport=dojo.lang.firstValued(_57a["sendTransport"],djConfig["ioSendTransport"],false); var _57b=dojo.lang.isFunction; for(var x=0;x0){ dojo.io.bind(dojo.io._bindQueue.shift()); }else{ dojo.io._queueBindInFlight=false; } } }; dojo.io._bindQueue=[]; dojo.io._queueBindInFlight=false; dojo.io.argsFromMap=function(map,_58f,last){ var enc=/utf/i.test(_58f||"")?encodeURIComponent:dojo.string.encodeAscii; var _592=[]; var _593=new Object(); for(var name in map){ var _595=function(elt){ var val=enc(name)+"="+enc(elt); _592[(last==name)?"push":"unshift"](val); }; if(!_593[name]){ var _598=map[name]; if(dojo.lang.isArray(_598)){ dojo.lang.forEach(_598,_595); }else{ _595(_598); } } } return _592.join("&"); }; dojo.io.setIFrameSrc=function(_599,src,_59b){ try{ var r=dojo.render.html; if(!_59b){ if(r.safari){ _599.location=src; }else{ frames[_599.name].location=src; } }else{ var idoc; if(r.ie){ idoc=_599.contentWindow.document; }else{ if(r.safari){ idoc=_599.document; }else{ idoc=_599.contentWindow; } } if(!idoc){ _599.location=src; return; }else{ idoc.location.replace(src); } } } catch(e){ dojo.debug(e); dojo.debug("setIFrameSrc: "+e); } }; dojo.provide("dojo.string.extras"); dojo.string.substituteParams=function(_59e,hash){ var map=(typeof hash=="object")?hash:dojo.lang.toArray(arguments,1); return _59e.replace(/\%\{(\w+)\}/g,function(_5a1,key){ if(typeof (map[key])!="undefined"&&map[key]!=null){ return map[key]; } dojo.raise("Substitution not found: "+key); }); }; dojo.string.capitalize=function(str){ if(!dojo.lang.isString(str)){ return ""; } if(arguments.length==0){ str=this; } var _5a4=str.split(" "); for(var i=0;i<_5a4.length;i++){ _5a4[i]=_5a4[i].charAt(0).toUpperCase()+_5a4[i].substring(1); } return _5a4.join(" "); }; 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 _5a9=escape(str); var _5aa,re=/%u([0-9A-F]{4})/i; while((_5aa=_5a9.match(re))){ var num=Number("0x"+_5aa[1]); var _5ad=escape("&#"+num+";"); ret+=_5a9.substring(0,_5aa.index)+_5ad; _5a9=_5a9.substring(_5aa.index+_5aa[0].length); } ret+=_5a9.replace(/\+/g,"%2B"); return ret; }; dojo.string.escape=function(type,str){ var args=dojo.lang.toArray(arguments,1); switch(type.toLowerCase()){ case "xml": case "html": case "xhtml": return dojo.string.escapeXml.apply(this,args); case "sql": return dojo.string.escapeSql.apply(this,args); case "regexp": case "regex": return dojo.string.escapeRegExp.apply(this,args); case "javascript": case "jscript": case "js": return dojo.string.escapeJavaScript.apply(this,args); case "ascii": return dojo.string.encodeAscii.apply(this,args); default: return str; } }; dojo.string.escapeXml=function(str,_5b2){ str=str.replace(/&/gm,"&").replace(//gm,">").replace(/"/gm,"""); if(!_5b2){ str=str.replace(/'/gm,"'"); } return str; }; dojo.string.escapeSql=function(str){ return str.replace(/'/gm,"''"); }; dojo.string.escapeRegExp=function(str){ return str.replace(/\\/gm,"\\\\").replace(/([\f\b\n\t\r[\^$|?*+(){}])/gm,"\\$1"); }; dojo.string.escapeJavaScript=function(str){ return str.replace(/(["'\f\b\n\t\r])/gm,"\\$1"); }; dojo.string.escapeString=function(str){ return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r"); }; dojo.string.summary=function(str,len){ if(!len||str.length<=len){ return str; } return str.substring(0,len).replace(/\.+$/,"")+"..."; }; dojo.string.endsWith=function(str,end,_5bb){ if(_5bb){ str=str.toLowerCase(); end=end.toLowerCase(); } if((str.length-end.length)<0){ return false; } return str.lastIndexOf(end)==str.length-end.length; }; dojo.string.endsWithAny=function(str){ for(var i=1;i-1){ return true; } } return false; }; dojo.string.normalizeNewlines=function(text,_5c6){ if(_5c6=="\n"){ text=text.replace(/\r\n/g,"\n"); text=text.replace(/\r/g,"\n"); }else{ if(_5c6=="\r"){ text=text.replace(/\r\n/g,"\r"); text=text.replace(/\n/g,"\r"); }else{ text=text.replace(/([^\r])\n/g,"$1\r\n").replace(/\r([^\n])/g,"\r\n$1"); } } return text; }; dojo.string.splitEscaped=function(str,_5c8){ var _5c9=[]; for(var i=0,_5cb=0;i"); } } catch(e){ } if(dojo.render.html.opera){ dojo.debug("Opera is not supported with dojo.undo.browser, so back/forward detection will not work."); } dojo.undo.browser={initialHref:window.location.href,initialHash:window.location.hash,moveForward:false,historyStack:[],forwardStack:[],historyIframe:null,bookmarkAnchor:null,locationTimer:null,setInitialState:function(args){ this.initialState=this._createState(this.initialHref,args,this.initialHash); },addToHistory:function(args){ this.forwardStack=[]; var hash=null; var url=null; if(!this.historyIframe){ this.historyIframe=window.frames["djhistory"]; } if(!this.bookmarkAnchor){ this.bookmarkAnchor=document.createElement("a"); dojo.body().appendChild(this.bookmarkAnchor); this.bookmarkAnchor.style.display="none"; } if(args["changeUrl"]){ hash="#"+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime()); if(this.historyStack.length==0&&this.initialState.urlHash==hash){ this.initialState=this._createState(url,args,hash); return; }else{ if(this.historyStack.length>0&&this.historyStack[this.historyStack.length-1].urlHash==hash){ this.historyStack[this.historyStack.length-1]=this._createState(url,args,hash); return; } } this.changingUrl=true; setTimeout("window.location.href = '"+hash+"'; dojo.undo.browser.changingUrl = false;",1); this.bookmarkAnchor.href=hash; if(dojo.render.html.ie){ url=this._loadIframeHistory(); var _5d0=args["back"]||args["backButton"]||args["handle"]; var tcb=function(_5d2){ if(window.location.hash!=""){ setTimeout("window.location.href = '"+hash+"';",1); } _5d0.apply(this,[_5d2]); }; if(args["back"]){ args.back=tcb; }else{ if(args["backButton"]){ args.backButton=tcb; }else{ if(args["handle"]){ args.handle=tcb; } } } var _5d3=args["forward"]||args["forwardButton"]||args["handle"]; var tfw=function(_5d5){ if(window.location.hash!=""){ window.location.href=hash; } if(_5d3){ _5d3.apply(this,[_5d5]); } }; if(args["forward"]){ args.forward=tfw; }else{ if(args["forwardButton"]){ args.forwardButton=tfw; }else{ if(args["handle"]){ args.handle=tfw; } } } }else{ if(dojo.render.html.moz){ if(!this.locationTimer){ this.locationTimer=setInterval("dojo.undo.browser.checkLocation();",200); } } } }else{ url=this._loadIframeHistory(); } this.historyStack.push(this._createState(url,args,hash)); },checkLocation:function(){ if(!this.changingUrl){ var hsl=this.historyStack.length; if((window.location.hash==this.initialHash||window.location.href==this.initialHref)&&(hsl==1)){ this.handleBackButton(); return; } if(this.forwardStack.length>0){ if(this.forwardStack[this.forwardStack.length-1].urlHash==window.location.hash){ this.handleForwardButton(); return; } } if((hsl>=2)&&(this.historyStack[hsl-2])){ if(this.historyStack[hsl-2].urlHash==window.location.hash){ this.handleBackButton(); return; } } } },iframeLoaded:function(evt,_5d8){ if(!dojo.render.html.opera){ var _5d9=this._getUrlQuery(_5d8.href); if(_5d9==null){ if(this.historyStack.length==1){ this.handleBackButton(); } return; } if(this.moveForward){ this.moveForward=false; return; } if(this.historyStack.length>=2&&_5d9==this._getUrlQuery(this.historyStack[this.historyStack.length-2].url)){ this.handleBackButton(); }else{ if(this.forwardStack.length>0&&_5d9==this._getUrlQuery(this.forwardStack[this.forwardStack.length-1].url)){ this.handleForwardButton(); } } } },handleBackButton:function(){ var _5da=this.historyStack.pop(); if(!_5da){ return; } var last=this.historyStack[this.historyStack.length-1]; if(!last&&this.historyStack.length==0){ last=this.initialState; } if(last){ if(last.kwArgs["back"]){ last.kwArgs["back"](); }else{ if(last.kwArgs["backButton"]){ last.kwArgs["backButton"](); }else{ if(last.kwArgs["handle"]){ last.kwArgs.handle("back"); } } } } this.forwardStack.push(_5da); },handleForwardButton:function(){ var last=this.forwardStack.pop(); if(!last){ return; } if(last.kwArgs["forward"]){ last.kwArgs.forward(); }else{ if(last.kwArgs["forwardButton"]){ last.kwArgs.forwardButton(); }else{ if(last.kwArgs["handle"]){ last.kwArgs.handle("forward"); } } } this.historyStack.push(last); },_createState:function(url,args,hash){ return {"url":url,"kwArgs":args,"urlHash":hash}; },_getUrlQuery:function(url){ var _5e1=url.split("?"); if(_5e1.length<2){ return null; }else{ return _5e1[1]; } },_loadIframeHistory:function(){ var url=dojo.hostenv.getBaseScriptUri()+"iframe_history.html?"+(new Date()).getTime(); this.moveForward=true; dojo.io.setIFrameSrc(this.historyIframe,url,false); return url; }}; dojo.provide("dojo.io.BrowserIO"); dojo.io.checkChildrenForFile=function(node){ var _5e4=false; var _5e5=node.getElementsByTagName("input"); dojo.lang.forEach(_5e5,function(_5e6){ if(_5e4){ return; } if(_5e6.getAttribute("type")=="file"){ _5e4=true; } }); return _5e4; }; dojo.io.formHasFile=function(_5e7){ return dojo.io.checkChildrenForFile(_5e7); }; dojo.io.updateNode=function(node,_5e9){ node=dojo.byId(node); var args=_5e9; if(dojo.lang.isString(_5e9)){ args={url:_5e9}; } args.mimetype="text/html"; args.load=function(t,d,e){ while(node.firstChild){ if(dojo["event"]){ try{ dojo.event.browser.clean(node.firstChild); } catch(e){ } } node.removeChild(node.firstChild); } node.innerHTML=d; }; dojo.io.bind(args); }; dojo.io.formFilter=function(node){ var type=(node.type||"").toLowerCase(); return !node.disabled&&node.name&&!dojo.lang.inArray(["file","submit","image","reset","button"],type); }; dojo.io.encodeForm=function(_5f0,_5f1,_5f2){ if((!_5f0)||(!_5f0.tagName)||(!_5f0.tagName.toLowerCase()=="form")){ dojo.raise("Attempted to encode a non-form element."); } if(!_5f2){ _5f2=dojo.io.formFilter; } var enc=/utf/i.test(_5f1||"")?encodeURIComponent:dojo.string.encodeAscii; var _5f4=[]; for(var i=0;i<_5f0.elements.length;i++){ var elm=_5f0.elements[i]; if(!elm||elm.tagName.toLowerCase()=="fieldset"||!_5f2(elm)){ continue; } var name=enc(elm.name); var type=elm.type.toLowerCase(); if(type=="select-multiple"){ for(var j=0;j=200)&&(http.status<300))||(http.status==304)||(location.protocol=="file:"&&(http.status==0||http.status==undefined))||(location.protocol=="chrome:"&&(http.status==0||http.status==undefined))){ var ret; if(_61b.method.toLowerCase()=="head"){ var _621=http.getAllResponseHeaders(); ret={}; ret.toString=function(){ return _621; }; var _622=_621.split(/[\r\n]+/g); for(var i=0;i<_622.length;i++){ var pair=_622[i].match(/^([^:]+)\s*:\s*(.+)$/i); if(pair){ ret[pair[1]]=pair[2]; } } }else{ if(_61b.mimetype=="text/javascript"){ try{ ret=dj_eval(http.responseText); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=null; } }else{ if(_61b.mimetype=="text/json"||_61b.mimetype=="application/json"){ try{ ret=dj_eval("("+http.responseText+")"); } catch(e){ dojo.debug(e); dojo.debug(http.responseText); ret=false; } }else{ if((_61b.mimetype=="application/xml")||(_61b.mimetype=="text/xml")){ ret=http.responseXML; if(!ret||typeof ret=="string"||!http.getResponseHeader("Content-Type")){ ret=dojo.dom.createDocumentFromText(http.responseText); } }else{ ret=http.responseText; } } } } if(_61f){ addToCache(url,_61e,_61b.method,http); } _61b[(typeof _61b.load=="function")?"load":"handle"]("load",ret,http,_61b); }else{ var _625=new dojo.io.Error("XMLHttpTransport Error: "+http.status+" "+http.statusText); _61b[(typeof _61b.error=="function")?"error":"handle"]("error",_625,http,_61b); } } function setHeaders(http,_627){ if(_627["headers"]){ for(var _628 in _627["headers"]){ if(_628.toLowerCase()=="content-type"&&!_627["contentType"]){ _627["contentType"]=_627["headers"][_628]; }else{ http.setRequestHeader(_628,_627["headers"][_628]); } } } } this.inFlight=[]; this.inFlightTimer=null; this.startWatchingInFlight=function(){ if(!this.inFlightTimer){ this.inFlightTimer=setTimeout("dojo.io.XMLHTTPTransport.watchInFlight();",10); } }; this.watchInFlight=function(){ var now=null; if(!dojo.hostenv._blockAsync&&!_60f._blockAsync){ for(var x=this.inFlight.length-1;x>=0;x--){ try{ var tif=this.inFlight[x]; if(!tif||tif.http._aborted||!tif.http.readyState){ this.inFlight.splice(x,1); continue; } if(4==tif.http.readyState){ this.inFlight.splice(x,1); doLoad(tif.req,tif.http,tif.url,tif.query,tif.useCache); }else{ if(tif.startTime){ if(!now){ now=(new Date()).getTime(); } if(tif.startTime+(tif.req.timeoutSeconds*1000)-1){ dojo.debug("Warning: dojo.io.bind: stripping hash values from url:",url); url=url.split("#")[0]; } if(_62f["file"]){ _62f.method="post"; } if(!_62f["method"]){ _62f.method="get"; } if(_62f.method.toLowerCase()=="get"){ _62f.multipart=false; }else{ if(_62f["file"]){ _62f.multipart=true; }else{ if(!_62f["multipart"]){ _62f.multipart=false; } } } if(_62f["backButton"]||_62f["back"]||_62f["changeUrl"]){ dojo.undo.browser.addToHistory(_62f); } var _634=_62f["content"]||{}; if(_62f.sendTransport){ _634["dojo.transport"]="xmlhttp"; } do{ if(_62f.postContent){ _631=_62f.postContent; break; } if(_634){ _631+=dojo.io.argsFromMap(_634,_62f.encoding); } if(_62f.method.toLowerCase()=="get"||!_62f.multipart){ break; } var t=[]; if(_631.length){ var q=_631.split("&"); for(var i=0;i-1?"&":"?")+_631; } if(_63b){ _641+=(dojo.string.endsWithAny(_641,"?","&")?"":(_641.indexOf("?")>-1?"&":"?"))+"dojo.preventCache="+new Date().valueOf(); } if(!_62f.user){ http.open(_62f.method.toUpperCase(),_641,_63a); }else{ http.open(_62f.method.toUpperCase(),_641,_63a,_62f.user,_62f.password); } setHeaders(http,_62f); try{ http.send(null); } catch(e){ if(typeof http.abort=="function"){ http.abort(); } doLoad(_62f,{status:404},url,_631,_63c); } } if(!_63a){ doLoad(_62f,http,url,_631,_63c); _60f._blockAsync=false; } _62f.abort=function(){ try{ http._aborted=true; } catch(e){ } return http.abort(); }; return; }; dojo.io.transports.addTransport("XMLHTTPTransport"); }; dojo.provide("dojo.io.cookie"); dojo.io.cookie.setCookie=function(name,_643,days,path,_646,_647){ var _648=-1; if(typeof days=="number"&&days>=0){ var d=new Date(); d.setTime(d.getTime()+(days*24*60*60*1000)); _648=d.toGMTString(); } _643=escape(_643); document.cookie=name+"="+_643+";"+(_648!=-1?" expires="+_648+";":"")+(path?"path="+path:"")+(_646?"; domain="+_646:"")+(_647?"; secure":""); }; dojo.io.cookie.set=dojo.io.cookie.setCookie; dojo.io.cookie.getCookie=function(name){ var idx=document.cookie.lastIndexOf(name+"="); if(idx==-1){ return null; } var _64c=document.cookie.substring(idx+name.length+1); var end=_64c.indexOf(";"); if(end==-1){ end=_64c.length; } _64c=_64c.substring(0,end); _64c=unescape(_64c); return _64c; }; dojo.io.cookie.get=dojo.io.cookie.getCookie; dojo.io.cookie.deleteCookie=function(name){ dojo.io.cookie.setCookie(name,"-",0); }; dojo.io.cookie.setObjectCookie=function(name,obj,days,path,_653,_654,_655){ if(arguments.length==5){ _655=_653; _653=null; _654=null; } var _656=[],_657,_658=""; if(!_655){ _657=dojo.io.cookie.getObjectCookie(name); } if(days>=0){ if(!_657){ _657={}; } for(var prop in obj){ if(prop==null){ delete _657[prop]; }else{ if(typeof obj[prop]=="string"||typeof obj[prop]=="number"){ _657[prop]=obj[prop]; } } } prop=null; for(var prop in _657){ _656.push(escape(prop)+"="+escape(_657[prop])); } _658=_656.join("&"); } dojo.io.cookie.setCookie(name,_658,days,path,_653,_654); }; dojo.io.cookie.getObjectCookie=function(name){ var _65b=null,_65c=dojo.io.cookie.getCookie(name); if(_65c){ _65b={}; var _65d=_65c.split("&"); for(var i=0;i<_65d.length;i++){ var pair=_65d[i].split("="); var _660=pair[1]; if(isNaN(_660)){ _660=unescape(pair[1]); } _65b[unescape(pair[0])]=_660; } } return _65b; }; dojo.io.cookie.isSupported=function(){ if(typeof navigator.cookieEnabled!="boolean"){ dojo.io.cookie.setCookie("__TestingYourBrowserForCookieSupport__","CookiesAllowed",90,null); var _661=dojo.io.cookie.getCookie("__TestingYourBrowserForCookieSupport__"); navigator.cookieEnabled=(_661=="CookiesAllowed"); if(navigator.cookieEnabled){ this.deleteCookie("__TestingYourBrowserForCookieSupport__"); } } return navigator.cookieEnabled; }; if(!dojo.io.cookies){ dojo.io.cookies=dojo.io.cookie; } dojo.provide("dojo.io.*"); dojo.provide("dojo.uri.*"); dojo.provide("dojo.io.IframeIO"); dojo.io.createIFrame=function(_662,_663,uri){ if(window[_662]){ return window[_662]; } if(window.frames[_662]){ return window.frames[_662]; } var r=dojo.render.html; var _666=null; var turi=uri||dojo.uri.dojoUri("iframe_history.html?noInit=true"); var _668=((r.ie)&&(dojo.render.os.win))?"