/*
	Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(_1){var _2=this;dojo.mixin(_2,_1);_2.node=_1.node;_2._showArgs=dojo.mixin({},_1);_2._showArgs.node=_2.node;_2._showArgs.duration=_2.showDuration;_2.showAnim=_2.showFunc(_2._showArgs);_2._hideArgs=dojo.mixin({},_1);_2._hideArgs.node=_2.node;_2._hideArgs.duration=_2.hideDuration;_2.hideAnim=_2.hideFunc(_2._hideArgs);dojo.connect(_2.showAnim,"beforeBegin",dojo.hitch(_2.hideAnim,"stop",true));dojo.connect(_2.hideAnim,"beforeBegin",dojo.hitch(_2.showAnim,"stop",true));},show:function(_3){return this.showAnim.play(_3||0);},hide:function(_4){return this.hideAnim.play(_4||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_5={_fire:function(_6,_7){if(this[_6]){this[_6].apply(this,_7||[]);}return this;}};var _8=function(_9){this._index=-1;this._animations=_9||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_8,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_a,_b){if(!this._current){this._current=this._animations[this._index=0];}if(!_b&&this._current.status()=="playing"){return this;}var _c=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_d=d.connect(this._current,"onBegin",this,function(_e){this._fire("onBegin",arguments);}),_f=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_c);d.disconnect(_d);d.disconnect(_f);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_10,_11){this.pause();var _12=this.duration*_10;this._current=null;d.some(this._animations,function(a){if(a.duration<=_12){this._current=a;return true;}_12-=a.duration;return false;});if(this._current){this._current.gotoPercent(_12/this._current.duration,_11);}return this;},stop:function(_13){if(this._current){if(_13){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_8,_5);dojo.fx.chain=function(_14){return new _8(_14);};var _15=function(_16){this._animations=_16||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_16,function(a){var _17=a.duration;if(a.delay){_17+=a.delay;}if(this.duration<_17){this.duration=_17;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _18=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_18._connects.push(d.connect(_18._pseudoAnimation,evt,function(){_18._fire(evt,arguments);}));});};d.extend(_15,{_doAction:function(_19,_1a){d.forEach(this._animations,function(a){a[_19].apply(a,_1a);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_1b,_1c){var t=this._pseudoAnimation;t[_1b].apply(t,_1c);},play:function(_1d,_1e){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_1f,_20){var ms=this.duration*_1f;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_20);});this._call("gotoPercent",arguments);return this;},stop:function(_21){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_15,_5);dojo.fx.combine=function(_22){return new _15(_22);};dojo.fx.wipeIn=function(_23){var _24=_23.node=d.byId(_23.node),s=_24.style,o;var _25=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _26=d.style(_24,"height");return Math.max(_26,1);}},end:function(){return _24.scrollHeight;}}}},_23));d.connect(_25,"onEnd",function(){s.height="auto";s.overflow=o;});return _25;};dojo.fx.wipeOut=function(_27){var _28=_27.node=d.byId(_27.node),s=_28.style,o;var _29=d.animateProperty(d.mixin({properties:{height:{end:1}}},_27));d.connect(_29,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_29,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _29;};dojo.fx.slideTo=function(_2a){var _2b=_2a.node=d.byId(_2a.node),top=null,_2c=null;var _2d=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_2c=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_2c=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_2c+"px";}};})(_2b);_2d();var _2e=d.animateProperty(d.mixin({properties:{top:_2a.top||0,left:_2a.left||0}},_2a));d.connect(_2e,"beforeBegin",_2e,_2d);return _2e;};})();}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_2f,_30,uri){if(window[_2f]){return window[_2f];}if(window.frames[_2f]){return window.frames[_2f];}var _31=null;var _32=uri;if(!_32){if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}_32=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _33=dojo.isIE?"<iframe name=\""+_2f+"\" src=\""+_32+"\" onload=\""+_30+"\">":"iframe";_31=dojo.doc.createElement(_33);with(_31){name=_2f;setAttribute("name",_2f);id=_2f;}dojo.body().appendChild(_31);window[_2f]=_31;with(_31.style){if(!(dojo.isSafari<3)){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_31,_32,true);_31.onload=new Function(_30);}return _31;},setSrc:function(_34,src,_35){try{if(!_35){if(dojo.isWebKit){_34.location=src;}else{frames[_34.name].location=src;}}else{var _36;if(dojo.isIE||dojo.isWebKit>521){_36=_34.contentWindow.document;}else{if(dojo.isSafari){_36=_34.document;}else{_36=_34.contentWindow;}}if(!_36){_34.location=src;return;}else{_36.location.replace(src);}}}catch(e){console.log("dojo.io.iframe.setSrc: ",e);}},doc:function(_37){var doc=_37.contentDocument||(((_37.name)&&(_37.document)&&(dojo.doc.getElementsByTagName("iframe")[_37.name].contentWindow)&&(dojo.doc.getElementsByTagName("iframe")[_37.name].contentWindow.document)))||((_37.name)&&(dojo.doc.frames[_37.name])&&(dojo.doc.frames[_37.name].document))||null;return doc;},send:function(_38){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(_38,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _39=null;try{var _3a=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _3b=_3a.handleAs;_39=ifd;if(_3b!="html"){if(_3b=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _3c=(dii._frame.contentWindow.document).documentElement.innerText;_3c=_3c.replace(/>\s+</g,"><");_3c=dojo.trim(_3c);var _3d={responseText:_3c};_39=dojo._contentHandlers["xml"](_3d);}}else{_39=ifd.getElementsByTagName("textarea")[0].value;if(_3b=="json"){_39=dojo.fromJson(_39);}else{if(_3b=="javascript"){_39=dojo.eval(_39);}}}}}catch(e){_39=e;}finally{_3a._callNext();}return _39;},function(_3e,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _3e;});dfd.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;dojo.io.iframe._currentDfd=null;dojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(dfd);this._fireNextRequest();dojo._ioWatch(dfd,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid dojo.io.iframe request state"));}});return dfd;},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}do{var dfd=this._currentDfd=this._dfdQueue.shift();}while(dfd&&dfd.canceled&&this._dfdQueue.length);if(!dfd||dfd.canceled){this._currentDfd=null;return;}var _3f=dfd.ioArgs;var _40=_3f.args;_3f._contentToClean=[];var fn=dojo.byId(_40["form"]);var _41=_40["content"]||{};if(fn){if(_41){var _42=function(_43,_44){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+_43+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=_43;}tn.value=_44;fn.appendChild(tn);_3f._contentToClean.push(_43);};for(var x in _41){var val=_41[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i<val.length;i++){_42(x,val[i]);}}else{if(!fn[x]){_42(x,val);}else{fn[x].value=val;}}}}var _45=fn.getAttributeNode("action");var _46=fn.getAttributeNode("method");var _47=fn.getAttributeNode("target");if(_40["url"]){_3f._originalAction=_45?_45.value:null;if(_45){_45.value=_40.url;}else{fn.setAttribute("action",_40.url);}}if(!_46||!_46.value){if(_46){_46.value=(_40["method"])?_40["method"]:"post";}else{fn.setAttribute("method",(_40["method"])?_40["method"]:"post");}}_3f._originalTarget=_47?_47.value:null;if(_47){_47.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;dojo._ioNotifyStart(dfd);fn.submit();}else{var _48=_40.url+(_40.url.indexOf("?")>-1?"&":"?")+_3f.query;dojo._ioNotifyStart(dfd);this.setSrc(this._frame,_48,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _49=dfd.ioArgs;var _4a=_49.args;var _4b=dojo.byId(_4a.form);if(_4b){var _4c=_49._contentToClean;for(var i=0;i<_4c.length;i++){var key=_4c[i];for(var j=0;j<_4b.childNodes.length;j++){var _4d=_4b.childNodes[j];if(_4d.name==key){dojo.destroy(_4d);break;}}}if(_49["_originalAction"]){_4b.setAttribute("action",_49._originalAction);}if(_49["_originalTarget"]){_4b.setAttribute("target",_49._originalTarget);_4b.target=_49._originalTarget;}}_49._finished=true;}};}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");(function(){var _4e=dojo.isIE?"onreadystatechange":"load",_4f=/complete|loaded/;dojo.io.script={get:function(_50){var dfd=this._makeScriptDeferred(_50);var _51=dfd.ioArgs;dojo._ioAddQueryToUrl(_51);dojo._ioNotifyStart(dfd);if(this._canAttach(_51)){var _52=this.attach(_51.id,_51.url,_50.frameDoc);if(!_51.jsonp&&!_51.args.checkString){var _53=dojo.connect(_52,_4e,function(evt){if(evt.type=="load"||_4f.test(_52.readyState)){dojo.disconnect(_53);_51.scriptLoaded=evt;}});}}dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_54){var doc=(_54||dojo.doc);var _55=doc.createElement("script");_55.type="text/javascript";_55.src=url;_55.id=id;_55.charset="utf-8";return doc.getElementsByTagName("head")[0].appendChild(_55);},remove:function(id,_56){dojo.destroy(dojo.byId(id,_56));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(_57){var dfd=dojo._ioSetArgs(_57,this._deferredCancel,this._deferredOk,this._deferredError);var _58=dfd.ioArgs;_58.id=dojo._scopeName+"IoScript"+(this._counter++);_58.canDelete=false;_58.jsonp=_57.callbackParamName||_57.jsonp;if(_58.jsonp){_58.query=_58.query||"";if(_58.query.length>0){_58.query+="&";}_58.query+=_58.jsonp+"="+(_57.frameDoc?"parent.":"")+dojo._scopeName+".io.script.jsonp_"+_58.id+"._jsonpCallback";_58.frameDoc=_57.frameDoc;_58.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_58.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._addDeadScript(dfd.ioArgs);}},_deferredOk:function(dfd){var _59=dfd.ioArgs;if(_59.canDelete){dojo.io.script._addDeadScript(_59);}return _59.json||_59.scriptLoaded||_59;},_deferredError:function(_5a,dfd){if(dfd.ioArgs.canDelete){if(_5a.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc);}else{dojo.io.script._addDeadScript(dfd.ioArgs);}}console.log("dojo.io.script error",_5a);return _5a;},_deadScripts:[],_counter:1,_addDeadScript:function(_5b){dojo.io.script._deadScripts.push({id:_5b.id,frameDoc:_5b.frameDoc});_5b.frameDoc=null;},_validCheck:function(dfd){var _5c=dojo.io.script;var _5d=_5c._deadScripts;if(_5d&&_5d.length>0){for(var i=0;i<_5d.length;i++){_5c.remove(_5d[i].id,_5d[i].frameDoc);_5d[i].frameDoc=null;}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){var _5e=dfd.ioArgs;if(_5e.json||(_5e.scriptLoaded&&!_5e.args.checkString)){return true;}var _5f=_5e.args.checkString;if(_5f&&eval("typeof("+_5f+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_canAttach:function(_60){return true;},_jsonpCallback:function(_61){this.ioArgs.json=_61;}};})();}if(!dojo._hasResource["dojo.NodeList-fx"]){dojo._hasResource["dojo.NodeList-fx"]=true;dojo.provide("dojo.NodeList-fx");dojo.extend(dojo.NodeList,{_anim:function(obj,_62,_63){_63=_63||{};var a=dojo.fx.combine(this.map(function(_64){var _65={node:_64};dojo.mixin(_65,_63);return obj[_62](_65);}));return _63.auto?a.play()&&this:a;},wipeIn:function(_66){return this._anim(dojo.fx,"wipeIn",_66);},wipeOut:function(_67){return this._anim(dojo.fx,"wipeOut",_67);},slideTo:function(_68){return this._anim(dojo.fx,"slideTo",_68);},fadeIn:function(_69){return this._anim(dojo,"fadeIn",_69);},fadeOut:function(_6a){return this._anim(dojo,"fadeOut",_6a);},animateProperty:function(_6b){return this._anim(dojo,"animateProperty",_6b);},anim:function(_6c,_6d,_6e,_6f,_70){var _71=dojo.fx.combine(this.map(function(_72){return dojo.animateProperty({node:_72,properties:_6c,duration:_6d||350,easing:_6e});}));if(_6f){dojo.connect(_71,"onEnd",_6f);}return _71.play(_70||0);}});}if(!dojo._hasResource["dojox.encoding.base64"]){dojo._hasResource["dojox.encoding.base64"]=true;dojo.provide("dojox.encoding.base64");(function(){var p="=";var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var dxe=dojox.encoding;dxe.base64.encode=function(ba){var s=[],l=ba.length;var rm=l%3;var x=l-rm;for(var i=0;i<x;){var t=ba[i++]<<16|ba[i++]<<8|ba[i++];s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(tab.charAt(t&63));}switch(rm){case 2:var t=ba[i++]<<16|ba[i++]<<8;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(p);break;case 1:var t=ba[i++]<<16;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(p);s.push(p);break;}return s.join("");};dxe.base64.decode=function(str){var s=str.split(""),out=[];var l=s.length;while(s[--l]==p){}for(var i=0;i<l;){var t=tab.indexOf(s[i++])<<18;if(i<=l){t|=tab.indexOf(s[i++])<<12;}if(i<=l){t|=tab.indexOf(s[i++])<<6;}if(i<=l){t|=tab.indexOf(s[i++]);}out.push((t>>>16)&255);out.push((t>>>8)&255);out.push(t&255);}while(out[out.length-1]==0){out.pop();}return out;};})();}if(!dojo._hasResource["dojox.fx._core"]){dojo._hasResource["dojox.fx._core"]=true;dojo.provide("dojox.fx._core");dojox.fx._Line=function(_73,end){this.start=_73;this.end=end;var _74=dojo.isArray(_73),d=(_74?[]:end-_73);if(_74){dojo.forEach(this.start,function(s,i){d[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.forEach(this.start,function(s,i){res[i]=(d[i]*n)+s;},this);return res;};}else{this.getValue=function(n){return (d*n)+this.start;};}};}if(!dojo._hasResource["dojox.fx.scroll"]){dojo._hasResource["dojox.fx.scroll"]=true;dojo.provide("dojox.fx.scroll");dojo.experimental("dojox.fx.scroll");dojox.fx.smoothScroll=function(_75){if(!_75.target){_75.target=dojo.position(_75.node,true);}var _76=dojo[(dojo.isIE?"isObject":"isFunction")](_75["win"].scrollTo),_77={x:_75.target.x,y:_75.target.y};if(!_76){var _78=dojo.position(_75.win);_77.x-=_78.x;_77.y-=_78.y;}var _79=(_76)?(function(val){_75.win.scrollTo(val[0],val[1]);}):(function(val){_75.win.scrollLeft=val[0];_75.win.scrollTop=val[1];});var _7a=new dojo.Animation(dojo.mixin({beforeBegin:function(){if(this.curve){delete this.curve;}var _7b=_76?dojo._docScroll():{x:_75.win.scrollLeft,y:_75.win.scrollTop};_7a.curve=new dojox.fx._Line([_7b.x,_7b.y],[_77.x,_77.y]);},onAnimate:_79},_75));return _7a;};}if(!dojo._hasResource["dojox.xml.DomParser"]){dojo._hasResource["dojox.xml.DomParser"]=true;dojo.provide("dojox.xml.DomParser");dojox.xml.DomParser=new (function(){var _7c={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9};var _7d=/<([^>\/\s+]*)([^>]*)>([^<]*)/g;var _7e=/([^=]*)=(("([^"]*)")|('([^']*)'))/g;var _7f=/<!ENTITY\s+([^"]*)\s+"([^"]*)">/g;var _80=/<!\[CDATA\[([\u0001-\uFFFF]*?)\]\]>/g;var _81=/<!--([\u0001-\uFFFF]*?)-->/g;var _82=/^\s+|\s+$/g;var _83=/\s+/g;var egt=/\&gt;/g;var elt=/\&lt;/g;var _84=/\&quot;/g;var _85=/\&apos;/g;var _86=/\&amp;/g;var dNs="_def_";function _87(){return new (function(){var all={};this.nodeType=_7c.DOCUMENT;this.nodeName="#document";this.namespaces={};this._nsPaths={};this.childNodes=[];this.documentElement=null;this._add=function(obj){if(typeof (obj.id)!="undefined"){all[obj.id]=obj;}};this._remove=function(id){if(all[id]){delete all[id];}};this.byId=this.getElementById=function(id){return all[id];};this.byName=this.getElementsByTagName=_88;this.byNameNS=this.getElementsByTagNameNS=_89;this.childrenByName=_8a;this.childrenByNameNS=_8b;})();};function _88(_8c){function _8d(_8e,_8f,arr){dojo.forEach(_8e.childNodes,function(c){if(c.nodeType==_7c.ELEMENT){if(_8f=="*"){arr.push(c);}else{if(c.nodeName==_8f){arr.push(c);}}_8d(c,_8f,arr);}});};var a=[];_8d(this,_8c,a);return a;};function _89(_90,ns){function _91(_92,_93,ns,arr){dojo.forEach(_92.childNodes,function(c){if(c.nodeType==_7c.ELEMENT){if(_93=="*"&&c.ownerDocument._nsPaths[ns]==c.namespace){arr.push(c);}else{if(c.localName==_93&&c.ownerDocument._nsPaths[ns]==c.namespace){arr.push(c);}}_91(c,_93,ns,arr);}});};if(!ns){ns=dNs;}var a=[];_91(this,_90,ns,a);return a;};function _8a(_94){var a=[];dojo.forEach(this.childNodes,function(c){if(c.nodeType==_7c.ELEMENT){if(_94=="*"){a.push(c);}else{if(c.nodeName==_94){a.push(c);}}}});return a;};function _8b(_95,ns){var a=[];dojo.forEach(this.childNodes,function(c){if(c.nodeType==_7c.ELEMENT){if(_95=="*"&&c.ownerDocument._nsPaths[ns]==c.namespace){a.push(c);}else{if(c.localName==_95&&c.ownerDocument._nsPaths[ns]==c.namespace){a.push(c);}}}});return a;};function _96(v){return {nodeType:_7c.TEXT,nodeName:"#text",nodeValue:v.replace(_83," ").replace(egt,">").replace(elt,"<").replace(_85,"'").replace(_84,"\"").replace(_86,"&")};};function _97(_98){for(var i=0;i<this.attributes.length;i++){if(this.attributes[i].nodeName==_98){return this.attributes[i].nodeValue;}}return null;};function _99(_9a,ns){for(var i=0;i<this.attributes.length;i++){if(this.ownerDocument._nsPaths[ns]==this.attributes[i].namespace&&this.attributes[i].localName==_9a){return this.attributes[i].nodeValue;}}return null;};function _9b(_9c,val){var old=null;for(var i=0;i<this.attributes.length;i++){if(this.attributes[i].nodeName==_9c){old=this.attributes[i].nodeValue;this.attributes[i].nodeValue=val;break;}}if(_9c=="id"){if(old!=null){this.ownerDocument._remove(old);}this.ownerDocument._add(this);}};function _9d(_9e,val,ns){for(var i=0;i<this.attributes.length;i++){if(this.ownerDocument._nsPaths[ns]==this.attributes[i].namespace&&this.attributes[i].localName==_9e){this.attributes[i].nodeValue=val;return;}}};function _9f(){var p=this.parentNode;if(p){for(var i=0;i<p.childNodes.length;i++){if(p.childNodes[i]==this&&i>0){return p.childNodes[i-1];}}}return null;};function _a0(){var p=this.parentNode;if(p){for(var i=0;i<p.childNodes.length;i++){if(p.childNodes[i]==this&&(i+1)<p.childNodes.length){return p.childNodes[i+1];}}}return null;};this.parse=function(str){var _a1=_87();if(str==null){return _a1;}if(str.length==0){return _a1;}if(str.indexOf("<!ENTITY")>0){var _a2,eRe=[];if(_7f.test(str)){_7f.lastIndex=0;while((_a2=_7f.exec(str))!=null){eRe.push({entity:"&"+_a2[1].replace(_82,"")+";",expression:_a2[2]});}for(var i=0;i<eRe.length;i++){str=str.replace(new RegExp(eRe[i].entity,"g"),eRe[i].expression);}}}var _a3=[],_a4;while((_a4=_80.exec(str))!=null){_a3.push(_a4[1]);}for(var i=0;i<_a3.length;i++){str=str.replace(_a3[i],i);}var _a5=[],_a6;while((_a6=_81.exec(str))!=null){_a5.push(_a6[1]);}for(i=0;i<_a5.length;i++){str=str.replace(_a5[i],i);}var res,obj=_a1;while((res=_7d.exec(str))!=null){if(res[2].charAt(0)=="/"&&res[2].replace(_82,"").length>1){if(obj.parentNode){obj=obj.parentNode;}var _a7=(res[3]||"").replace(_82,"");if(_a7.length>0){obj.childNodes.push(_96(_a7));}}else{if(res[1].length>0){if(res[1].charAt(0)=="?"){var _a8=res[1].substr(1);var _a9=res[2].substr(0,res[2].length-2);obj.childNodes.push({nodeType:_7c.PROCESSING_INSTRUCTION,nodeName:_a8,nodeValue:_a9});}else{if(res[1].charAt(0)=="!"){if(res[1].indexOf("![CDATA[")==0){var val=parseInt(res[1].replace("![CDATA[","").replace("]]",""));obj.childNodes.push({nodeType:_7c.CDATA_SECTION,nodeName:"#cdata-section",nodeValue:_a3[val]});}else{if(res[1].substr(0,3)=="!--"){var val=parseInt(res[1].replace("!--","").replace("--",""));obj.childNodes.push({nodeType:_7c.COMMENT,nodeName:"#comment",nodeValue:_a5[val]});}}}else{var _a8=res[1].replace(_82,"");var o={nodeType:_7c.ELEMENT,nodeName:_a8,localName:_a8,namespace:dNs,ownerDocument:_a1,attributes:[],parentNode:null,childNodes:[]};if(_a8.indexOf(":")>-1){var t=_a8.split(":");o.namespace=t[0];o.localName=t[1];}o.byName=o.getElementsByTagName=_88;o.byNameNS=o.getElementsByTagNameNS=_89;o.childrenByName=_8a;o.childrenByNameNS=_8b;o.getAttribute=_97;o.getAttributeNS=_99;o.setAttribute=_9b;o.setAttributeNS=_9d;o.previous=o.previousSibling=_9f;o.next=o.nextSibling=_a0;var _aa;while((_aa=_7e.exec(res[2]))!=null){if(_aa.length>0){var _a8=_aa[1].replace(_82,"");var val=(_aa[4]||_aa[6]||"").replace(_83," ").replace(egt,">").replace(elt,"<").replace(_85,"'").replace(_84,"\"").replace(_86,"&");if(_a8.indexOf("xmlns")==0){if(_a8.indexOf(":")>0){var ns=_a8.split(":");_a1.namespaces[ns[1]]=val;_a1._nsPaths[val]=ns[1];}else{_a1.namespaces[dNs]=val;_a1._nsPaths[val]=dNs;}}else{var ln=_a8;var ns=dNs;if(_a8.indexOf(":")>0){var t=_a8.split(":");ln=t[1];ns=t[0];}o.attributes.push({nodeType:_7c.ATTRIBUTE,nodeName:_a8,localName:ln,namespace:ns,nodeValue:val});if(ln=="id"){o.id=val;}}}}_a1._add(o);if(obj){obj.childNodes.push(o);o.parentNode=obj;if(res[2].charAt(res[2].length-1)!="/"){obj=o;}}var _a7=res[3];if(_a7.length>0){obj.childNodes.push(_96(_a7));}}}}}}for(var i=0;i<_a1.childNodes.length;i++){var e=_a1.childNodes[i];if(e.nodeType==_7c.ELEMENT){_a1.documentElement=e;break;}}return _a1;};})();}if(!dojo._hasResource["includes.js"]){dojo._hasResource["includes.js"]=true;dojo.provide("includes.js");}

