/*
	Copyright (c) 2004-2008, 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 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(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_1,_2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=dojo.date.stamp._isoRegExp.exec(_1);var _4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}).forEach(function(_6,_7){if(_3[_7]===undefined){_3[_7]=_6;}});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);var _8=0;var _9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _e=[];var _f=_b.zulu?"getUTC":"get";var _10="";if(_b.selector!="time"){var _11=_a[_f+"FullYear"]();_10=["0000".substr((_11+"").length)+_11,_(_a[_f+"Month"]()+1),_(_a[_f+"Date"]())].join("-");}_e.push(_10);if(_b.selector!="date"){var _12=[_(_a[_f+"Hours"]()),_(_a[_f+"Minutes"]()),_(_a[_f+"Seconds"]())].join(":");var _13=_a[_f+"Milliseconds"]();if(_b.milliseconds){_12+="."+(_13<100?"0":"")+_(_13);}if(_b.zulu){_12+="Z";}else{if(_b.selector!="time"){var _14=_a.getTimezoneOffset();var _15=Math.abs(_14);_12+=(_14>0?"-":"+")+_(Math.floor(_15/60))+":"+_(_15%60);}}_e.push(_12);}return _e.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _17=d._scopeName+"Type";var qry="["+_17+"]";function val2type(_19){if(d.isString(_19)){return "string";}if(typeof _19=="number"){return "number";}if(typeof _19=="boolean"){return "boolean";}if(d.isFunction(_19)){return "function";}if(d.isArray(_19)){return "array";}if(_19 instanceof Date){return "date";}if(_19 instanceof d._Url){return "url";}return "object";};function str2obj(_1a,_1b){switch(_1b){case "string":return _1a;case "number":return _1a.length?Number(_1a):NaN;case "boolean":return typeof _1a=="boolean"?_1a:!(_1a.toLowerCase()=="false");case "function":if(d.isFunction(_1a)){_1a=_1a.toString();_1a=d.trim(_1a.substring(_1a.indexOf("{")+1,_1a.length-1));}try{if(_1a.search(/[^\w\.]+/i)!=-1){_1a=d.parser._nameAnonFunc(new Function(_1a),this);}return d.getObject(_1a,false);}catch(e){return new Function();}case "array":return _1a?_1a.split(/\s*,\s*/):[];case "date":switch(_1a){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1a);}case "url":return d.baseUrl+_1a;default:return d.fromJson(_1a);}};var _1c={};function getClassInfo(_1d){if(!_1c[_1d]){var cls=d.getObject(_1d);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_1d+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _1f=cls.prototype;var _20={};for(var _21 in _1f){if(_21.charAt(0)=="_"){continue;}var _22=_1f[_21];_20[_21]=val2type(_22);}_1c[_1d]={cls:cls,params:_20};}return _1c[_1d];};this._functionFromScript=function(_23){var _24="";var _25="";var _26=_23.getAttribute("args");if(_26){d.forEach(_26.split(/\s*,\s*/),function(_27,idx){_24+="var "+_27+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_24+="with("+_2a+"){";_25+="}";});}return new Function(_24+_23.innerHTML+_25);};this.instantiate=function(_2b){var _2c=[];d.forEach(_2b,function(_2d){if(!_2d){return;}var _2e=_2d.getAttribute(_17);if((!_2e)||(!_2e.length)){return;}var _2f=getClassInfo(_2e);var _30=_2f.cls;var ps=_30._noScript||_30.prototype._noScript;var _32={};var _33=_2d.attributes;for(var _34 in _2f.params){var _35=_33.getNamedItem(_34);if(!_35||(!_35.specified&&(!dojo.isIE||_34.toLowerCase()!="value"))){continue;}var _36=_35.value;switch(_34){case "class":_36=_2d.className;break;case "style":_36=_2d.style&&_2d.style.cssText;}var _37=_2f.params[_34];_32[_34]=str2obj(_36,_37);}if(!ps){var _38=[],_39=[];d.query("> script[type^='dojo/']",_2d).orphan().forEach(function(_3a){var _3b=_3a.getAttribute("event"),_2e=_3a.getAttribute("type"),nf=d.parser._functionFromScript(_3a);if(_3b){if(_2e=="dojo/connect"){_38.push({event:_3b,func:nf});}else{_32[_3b]=nf;}}else{_39.push(nf);}});}var _3d=_30["markupFactory"];if(!_3d&&_30["prototype"]){_3d=_30.prototype["markupFactory"];}var _3e=_3d?_3d(_32,_2d,_30):new _30(_32,_2d);_2c.push(_3e);var _3f=_2d.getAttribute("jsId");if(_3f){d.setObject(_3f,_3e);}if(!ps){d.forEach(_38,function(_40){d.connect(_3e,_40.event,null,_40.func);});d.forEach(_39,function(_41){_41.call(_3e);});}});d.forEach(_2c,function(_42){if(_42&&_42.startup&&!_42._started&&(!_42.getParent||!_42.getParent())){_42.startup();}});return _2c;};this.parse=function(_43){var _44=d.query(qry,_43);var _45=this.instantiate(_44);return _45;};}();(function(){var _46=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_46);}else{dojo._loaders.unshift(_46);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_47,_48){var jpn="$joinpoint";var nso=(_48||dojo.parser._anon);if(dojo.isIE){var cn=_47["__dojoNameCache"];if(cn&&nso[cn]===_47){return _47["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_47;return ret;};}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_4d,_4e,uri){if(window[_4d]){return window[_4d];}if(window.frames[_4d]){return window.frames[_4d];}var _50=null;var _51=uri;if(!_51){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");}_51=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _52=dojo.isIE?"<iframe name=\""+_4d+"\" src=\""+_51+"\" onload=\""+_4e+"\">":"iframe";_50=dojo.doc.createElement(_52);with(_50){name=_4d;setAttribute("name",_4d);id=_4d;}dojo.body().appendChild(_50);window[_4d]=_50;with(_50.style){if(dojo.isSafari<3){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_50,_51,true);_50.onload=new Function(_4e);}return _50;},setSrc:function(_53,src,_55){try{if(!_55){if(dojo.isSafari){_53.location=src;}else{frames[_53.name].location=src;}}else{var _56;if(dojo.isIE||dojo.isSafari>2){_56=_53.contentWindow.document;}else{if(dojo.isSafari){_56=_53.document;}else{_56=_53.contentWindow;}}if(!_56){_53.location=src;return;}else{_56.location.replace(src);}}}catch(e){}},doc:function(_57){var doc=_57.contentDocument||(((_57.name)&&(_57.document)&&(document.getElementsByTagName("iframe")[_57.name].contentWindow)&&(document.getElementsByTagName("iframe")[_57.name].contentWindow.document)))||((_57.name)&&(document.frames[_57.name])&&(document.frames[_57.name].document))||null;return doc;},send:function(_59){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(_59,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _5d=null;try{var _5e=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _61=_5e.handleAs;_5d=ifd;if(_61!="html"){if(_61=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _62=(dii._frame.contentWindow.document).documentElement.innerText;_62=_62.replace(/>\s+</g,"><");if(!this._ieXmlDom){for(var i=0,a=["MSXML2","Microsoft","MSXML","MSXML3"],l=a.length;i<l;i++){try{var _66=new ActiveXObject(a[i]+".XmlDom");this._ieXmlDom=a[i]+".XmlDom";break;}catch(e){}}if(!this._ieXmlDom){throw new Error("dojo.io.iframe.send (return handler): your copy of Internet Explorer does not support XML documents.");}}var _67=new ActiveXObject(this._ieXmlDom);_67.async=false;_67.loadXML(_62);_5d=_67;}}else{_5d=ifd.getElementsByTagName("textarea")[0].value;if(_61=="json"){_5d=dojo.fromJson(_5d);}else{if(_61=="javascript"){_5d=dojo.eval(_5d);}}}}}catch(e){_5d=e;}finally{_5e._callNext();}return _5d;},function(_68,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _68;});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;}var dfd=this._currentDfd=this._dfdQueue.shift();var _6e=dfd.ioArgs;var _6f=_6e.args;_6e._contentToClean=[];var fn=dojo.byId(_6f["form"]);var _71=_6f["content"]||{};if(fn){if(_71){for(var x in _71){if(!fn[x]){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+x+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=x;}tn.value=_71[x];fn.appendChild(tn);_6e._contentToClean.push(x);}else{fn[x].value=_71[x];}}}var _74=fn.getAttributeNode("action");var _75=fn.getAttributeNode("method");var _76=fn.getAttributeNode("target");if(_6f["url"]){_6e._originalAction=_74?_74.value:null;if(_74){_74.value=_6f.url;}else{fn.setAttribute("action",_6f.url);}}if(!_75||!_75.value){if(_75){_75.value=(_6f["method"])?_6f["method"]:"post";}else{fn.setAttribute("method",(_6f["method"])?_6f["method"]:"post");}}_6e._originalTarget=_76?_76.value:null;if(_76){_76.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;fn.submit();}else{var _77=_6f.url+(_6f.url.indexOf("?")>-1?"&":"?")+_6e.query;this.setSrc(this._frame,_77,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _79=dfd.ioArgs;var _7a=_79.args;var _7b=dojo.byId(_7a.form);if(_7b){var _7c=_79._contentToClean;for(var i=0;i<_7c.length;i++){var key=_7c[i];if(dojo.isSafari<3){for(var j=0;j<_7b.childNodes.length;j++){var _80=_7b.childNodes[j];if(_80.name==key){dojo._destroyElement(_80);break;}}}else{dojo._destroyElement(_7b[key]);_7b[key]=null;}}if(_79["_originalAction"]){_7b.setAttribute("action",_79._originalAction);}if(_79["_originalTarget"]){_7b.setAttribute("target",_79._originalTarget);_7b.target=_79._originalTarget;}}_79._finished=true;}};}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isSafari||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _98=n.scrollLeft,_99=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_98!=n.scrollLeft||_99!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(_9a,e,_9c){this.node=dojo.byId(_9a);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_9c,d=_9a.ownerDocument,_9f=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_9f];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_ad,_ae){this.node=dojo.byId(_ad);if(!_ae){_ae={};}this.handle=_ae.handle?dojo.byId(_ae.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_ae.delay>0?_ae.delay:0;this.skip=_ae.skip;this.mover=_ae.mover?_ae.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_af,_b0){return new dojo.dnd.Moveable(_b0,_af);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_b7){dojo.publish("/dnd/move/start",[_b7]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_b8){dojo.publish("/dnd/move/stop",[_b8]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_b9){},onMove:function(_ba,_bb){this.onMoving(_ba,_bb);var s=_ba.node.style;s.left=_bb.l+"px";s.top=_bb.t+"px";this.onMoved(_ba,_bb);},onMoving:function(_bd,_be){},onMoved:function(_bf,_c0){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_c1,_c2){return new dojo.dnd.move.constrainedMoveable(_c2,_c1);},constructor:function(_c3,_c4){if(!_c4){_c4={};}this.constraints=_c4.constraints;this.within=_c4.within;},onFirstMove:function(_c5){var c=this.constraintBox=this.constraints.call(this,_c5);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_c5.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_c8,_c9){var c=this.constraintBox,s=_c8.node.style;s.left=(_c9.l<c.l?c.l:c.r<_c9.l?c.r:_c9.l)+"px";s.top=(_c9.t<c.t?c.t:c.b<_c9.t?c.b:_c9.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_cc,_cd){return new dojo.dnd.move.boxConstrainedMoveable(_cd,_cc);},constructor:function(_ce,_cf){var box=_cf&&_cf.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_d1,_d2){return new dojo.dnd.move.parentConstrainedMoveable(_d2,_d1);},constructor:function(_d3,_d4){var _d5=_d4&&_d4.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_d5=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_d5=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_d5=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_db){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _dc=function(_dd,e,_df){dojo.dnd.Mover.call(this,_dd,e,_df);};dojo.extend(_dc,dojo.dnd.Mover.prototype);dojo.extend(_dc,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_db){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _dc;};dojo.dnd.move.boxConstrainedMover=function(box,_e8){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_e8);};dojo.dnd.move.parentConstrainedMover=function(_e9,_ea){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_e9=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e9=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(_e9=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_ea);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _f0=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_f1,_f2){if(!_f2){_f2={};}if(_f2.timeout&&typeof _f2.timeout=="number"&&_f2.timeout>=0){this.timeout=_f2.timeout;}},markupFactory:function(_f3,_f4){return new dojo.dnd.TimedMoveable(_f4,_f3);},onMoveStop:function(_f5){if(_f5._timer){clearTimeout(_f5._timer);_f0.call(this,_f5,_f5._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_f6,_f7){_f6._leftTop=_f7;if(!_f6._timer){var _t=this;_f6._timer=setTimeout(function(){_f6._timer=null;_f0.call(_t,_f6,_f6._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _f9={_fire:function(evt,_fb){if(this[evt]){this[evt].apply(this,_fb||[]);}return this;}};var _fc=function(_fd){this._index=-1;this._animations=_fd||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_fc,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.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=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_ff,_100){if(!this._current){this._current=this._animations[this._index=0];}if(!_100&&this._current.status()=="playing"){return this;}var _101=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_102=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_104=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_101);dojo.disconnect(_102);dojo.disconnect(_104);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_108,_109){this.pause();var _10a=this.duration*_108;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_10a){this._current=a;return true;}_10a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_10a/this._current.duration,_109);}return this;},stop:function(_10c){if(this._current){if(_10c){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_fc,_f9);dojo.fx.chain=function(_10f){return new _fc(_10f);};var _110=function(_111){this._animations=_111||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_111,function(a){var _113=a.duration;if(a.delay){_113+=a.delay;}if(this.duration<_113){this.duration=_113;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_110,{_doAction:function(_115,args){dojo.forEach(this._animations,function(a){a[_115].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_118,args){var t=this._pseudoAnimation;t[_118].apply(t,args);},play:function(_11b,_11c){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(_11d,_11e){var ms=this.duration*_11d;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_11e);});this._call("gotoPercent",arguments);return this;},stop:function(_121){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_110,_f9);dojo.fx.combine=function(_122){return new _110(_122);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_125){return this.showAnim.play(_125||0);},hide:function(_126){return this.hideAnim.play(_126||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.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 _12c=dojo.style(node,"height");return Math.max(_12c,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _13c=dojo.doc;if(_13c.selection){var s=_13c.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _13e=dojo.global;var _13f=_13e.getSelection();if(dojo.isString(_13f)){return !_13f;}else{return _13f.isCollapsed||!_13f.toString();}}},getBookmark:function(){var _140,_141=dojo.doc.selection;if(_141){var _142=_141.createRange();if(_141.type.toUpperCase()=="CONTROL"){if(_142.length){_140=[];var i=0,len=_142.length;while(i<len){_140.push(_142.item(i++));}}else{_140=null;}}else{_140=_142.getBookmark();}}else{if(window.getSelection){_141=dojo.global.getSelection();if(_141){_142=_141.getRangeAt(0);_140=_142.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _140;},moveToBookmark:function(_145){var _146=dojo.doc;if(_146.selection){var _147;if(dojo.isArray(_145)){_147=_146.body.createControlRange();dojo.forEach(_145,function(n){_147.addElement(n);});}else{_147=_146.selection.createRange();_147.moveToBookmark(_145);}_147.select();}else{var _149=dojo.global.getSelection&&dojo.global.getSelection();if(_149&&_149.removeAllRanges){_149.removeAllRanges();_149.addRange(_145);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_14b){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_14b||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_14b||dojo.global,dijit.getBookmark):null,openedForWindow:_14b};},focus:function(_14c){if(!_14c){return;}var node="node" in _14c?_14c.node:_14c,_14e=_14c.bookmark,_14f=_14c.openedForWindow;if(node){var _150=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_150&&_150.focus){try{_150.focus();}catch(e){}}dijit._onFocusNode(node);}if(_14e&&dojo.withGlobal(_14f||dojo.global,dijit.isCollapsed)){if(_14f){_14f.focus();}try{dojo.withGlobal(_14f||dojo.global,dijit.moveToBookmark,null,[_14e]);}catch(e){}}},_activeStack:[],registerWin:function(_151){if(!_151){_151=window;}dojo.connect(_151.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_151.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _15a=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_15a.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_15a);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(node.nodeType==9){var _15d=dijit.getDocumentWindow(node).frameElement;if(!_15d){return;}node=_15d;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_15e){var _15f=dijit._activeStack;dijit._activeStack=_15e;for(var _160=0;_160<Math.min(_15f.length,_15e.length);_160++){if(_15f[_160]!=_15e[_160]){break;}}for(var i=_15f.length-1;i>=_160;i--){var _162=dijit.byId(_15f[i]);if(_162){_162._focused=false;_162._hasBeenBlurred=true;if(_162._onBlur){_162._onBlur();}if(_162._setStateClass){_162._setStateClass();}dojo.publish("widgetBlur",[_162]);}}for(i=_160;i<_15e.length;i++){_162=dijit.byId(_15e[i]);if(_162){_162._focused=true;if(_162._onFocus){_162._onFocus();}if(_162._setStateClass){_162._setStateClass();}dojo.publish("widgetFocus",[_162]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_163){if(this._hash[_163.id]){throw new Error("Tried to register widget with id=="+_163.id+" but that id is already registered");}this._hash[_163.id]=_163;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_167){var res=new dijit.WidgetSet();this.forEach(function(_169){if(_167(_169)){res.add(_169);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_16c){return _16c.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_16d){var id;do{id=_16d+"_"+(_16d in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_16d]:dijit._widgetTypeCtr[_16d]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_16f){_16f.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _174=dojo.style(elem);return (_174.visibility!="hidden")&&(_174.visibility!="collapsed")&&(_174.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _176=dojo.hasAttr(elem,"tabindex");var _177=dojo.attr(elem,"tabindex");if(_176&&_177>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_176||_177>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _17a,last,_17c,_17d,_17e,_17f;var _180=function(_181){dojo.query("> *",_181).forEach(function(_182){var _183=dijit._isElementShown(_182);if(_183&&dijit.isTabNavigable(_182)){var _184=dojo.attr(_182,"tabindex");if(!dojo.hasAttr(_182,"tabindex")||_184==0){if(!_17a){_17a=_182;}last=_182;}else{if(_184>0){if(!_17c||_184<_17d){_17d=_184;_17c=_182;}if(!_17e||_184>=_17f){_17f=_184;_17e=_182;}}}}if(_183&&_182.nodeName.toUpperCase()!="SELECT"){_180(_182);}});};if(dijit._isElementShown(root)){_180(root);}return {first:_17a,last:last,lowest:_17c,highest:_17e};};dijit.getFirstInTabbingOrder=function(root){var _186=dijit._getTabNavigable(dojo.byId(root));return _186.lowest?_186.lowest:_186.first;};dijit.getLastInTabbingOrder=function(root){var _188=dijit._getTabNavigable(dojo.byId(root));return _188.last?_188.last:_188.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_189){this.pairs=[];this.returnWrappers=_189||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_18b,wrap,_18d,_18e){this.pairs[((_18e)?"unshift":"push")]([name,_18b,wrap,_18d]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _194=dojo.global;var _195=dojo.doc;var w=0,h=0;var de=_195.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var minw,minh,maxw,maxh;var dbw=_195.body.clientWidth;if(dbw>dew){minw=dew;maxw=dbw;}else{maxw=dew;minw=dbw;}var dbh=_195.body.clientHeight;if(dbh>deh){minh=deh;maxh=dbh;}else{maxh=deh;minh=dbh;}w=(maxw>_194.innerWidth)?minw:maxw;h=(maxh>_194.innerHeight)?minh:maxh;}else{if(!dojo.isOpera&&_194.innerWidth){w=_194.innerWidth;h=_194.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _1a1=dojo._docScroll();return {w:w,h:h,l:_1a1.x,t:_1a1.y};};dijit.placeOnScreen=function(node,pos,_1a4,_1a5){var _1a6=dojo.map(_1a4,function(_1a7){return {corner:_1a7,pos:pos};});return dijit._place(node,_1a6);};dijit._place=function(node,_1a9,_1aa){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1a9,function(_1ad){var _1ae=_1ad.corner;var pos=_1ad.pos;if(_1aa){_1aa(node,_1ad.aroundCorner,_1ae);}var _1b0=node.style;var _1b1=_1b0.display;var _1b2=_1b0.visibility;_1b0.visibility="hidden";_1b0.display="";var mb=dojo.marginBox(node);_1b0.display=_1b1;_1b0.visibility=_1b2;var _1b4=(_1ae.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_1b5=(_1ae.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_1ae.charAt(1)=="L"?Math.min(view.l+view.w,_1b4+mb.w):pos.x),endY=(_1ae.charAt(0)=="T"?Math.min(view.t+view.h,_1b5+mb.h):pos.y),_1b8=endX-_1b4,_1b9=endY-_1b5,_1ba=(mb.w-_1b8)+(mb.h-_1b9);if(best==null||_1ba<best.overflow){best={corner:_1ae,aroundCorner:_1ad.aroundCorner,x:_1b4,y:_1b5,w:_1b8,h:_1b9,overflow:_1ba};}return !_1ba;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_1aa){_1aa(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_1bc,_1bd,_1be){_1bc=dojo.byId(_1bc);var _1bf=_1bc.style.display;_1bc.style.display="";var _1c0=_1bc.offsetWidth;var _1c1=_1bc.offsetHeight;var _1c2=dojo.coords(_1bc,true);_1bc.style.display=_1bf;return dijit._placeOnScreenAroundRect(node,_1c2.x,_1c2.y,_1c0,_1c1,_1bd,_1be);};dijit.placeOnScreenAroundRectangle=function(node,_1c4,_1c5,_1c6){return dijit._placeOnScreenAroundRect(node,_1c4.x,_1c4.y,_1c4.width,_1c4.height,_1c5,_1c6);};dijit._placeOnScreenAroundRect=function(node,x,y,_1ca,_1cb,_1cc,_1cd){var _1ce=[];for(var _1cf in _1cc){_1ce.push({aroundCorner:_1cf,corner:_1cc[_1cf],pos:{x:x+(_1cf.charAt(1)=="L"?0:_1ca),y:y+(_1cf.charAt(0)=="T"?0:_1cb)}});}return dijit._place(node,_1ce,_1cd);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_1d5,_1d6,_1d7){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _1da=[],_1db=1000,_1dc=1;this.prepare=function(node){dojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _1e0=args.popup,_1e1=args.orient||{"BL":"TL","TL":"BL"},_1e2=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_1dc++);var _1e4=dojo.doc.createElement("div");dijit.setWaiRole(_1e4,"presentation");_1e4.id=id;_1e4.className="dijitPopup";_1e4.style.zIndex=_1db+_1da.length;_1e4.style.left=_1e4.style.top="0px";_1e4.style.visibility="hidden";if(args.parent){_1e4.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_1e4);var s=_1e0.domNode.style;s.display="";s.visibility="";s.position="";_1e4.appendChild(_1e0.domNode);var _1e6=new dijit.BackgroundIframe(_1e4);var best=_1e2?dijit.placeOnScreenAroundElement(_1e4,_1e2,_1e1,_1e0.orient?dojo.hitch(_1e0,"orient"):null):dijit.placeOnScreen(_1e4,args,_1e1=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_1e4.style.visibility="visible";var _1e8=[];var _1e9=function(){for(var pi=_1da.length-1;pi>0&&_1da[pi].parent===_1da[pi-1].widget;pi--){}return _1da[pi];};_1e8.push(dojo.connect(_1e4,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _1ec=_1e9();if(_1ec&&_1ec.onCancel){_1ec.onCancel();}}}}));if(_1e0.onCancel){_1e8.push(dojo.connect(_1e0,"onCancel",null,args.onCancel));}_1e8.push(dojo.connect(_1e0,_1e0.onExecute?"onExecute":"onChange",null,function(){var _1ed=_1e9();if(_1ed&&_1ed.onExecute){_1ed.onExecute();}}));_1da.push({wrapper:_1e4,iframe:_1e6,widget:_1e0,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1e8});if(_1e0.onOpen){_1e0.onOpen(best);}return best;};this.close=function(_1ee){while(dojo.some(_1da,function(elem){return elem.widget==_1ee;})){var top=_1da.pop(),_1f1=top.wrapper,_1f2=top.iframe,_1f3=top.widget,_1f4=top.onClose;if(_1f3.onClose){_1f3.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_1f3||!_1f3.domNode){return;}this.prepare(_1f3.domNode);_1f2.destroy();dojo._destroyElement(_1f1);if(_1f4){_1f4();}}};}();dijit._frames=new function(){var _1f5=[];this.pop=function(){var _1f6;if(_1f5.length){_1f6=_1f5.pop();_1f6.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_1f6=dojo.doc.createElement(html);}else{_1f6=dojo.doc.createElement("iframe");_1f6.src="javascript:\"\"";_1f6.className="dijitBackgroundIframe";}_1f6.tabIndex=-1;dojo.body().appendChild(_1f6);}return _1f6;};this.push=function(_1f9){_1f9.style.display="";if(dojo.isIE){_1f9.style.removeExpression("width");_1f9.style.removeExpression("height");}_1f5.push(_1f9);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _1fc=dijit._frames.pop();node.appendChild(_1fc);if(dojo.isIE){_1fc.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_1fc.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_1fc;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){node=dojo.byId(node);var body=node.ownerDocument.body;var html=body.parentNode;if(dojo.isFF==2||node==body||node==html){node.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _201=dojo.doc.compatMode!="BackCompat";var _202=(_201&&!dojo.isSafari)?html:body;function addPseudoAttrs(_203){var _204=_203.parentNode;var _205=_203.offsetParent;if(_205==null){_203=_202;_205=html;_204=null;}_203._offsetParent=(_205==body)?_202:_205;_203._parent=(_204==body)?_202:_204;_203._start={H:_203.offsetLeft,V:_203.offsetTop};_203._scroll={H:_203.scrollLeft,V:_203.scrollTop};_203._renderedSize={H:_203.offsetWidth,V:_203.offsetHeight};var bp=dojo._getBorderExtents(_203);_203._borderStart={H:bp.l,V:bp.t};_203._borderSize={H:bp.w,V:bp.h};_203._clientSize=(_203._offsetParent==html&&dojo.isSafari&&_201)?{H:html.clientWidth,V:html.clientHeight}:{H:_203.clientWidth,V:_203.clientHeight};_203._scrollBarSize={V:null,H:null};for(var dir in _203._scrollBarSize){var _208=_203._renderedSize[dir]-_203._clientSize[dir]-_203._borderSize[dir];_203._scrollBarSize[dir]=(_203._clientSize[dir]>0&&_208>=15&&_208<=17)?_208:0;}_203._isScrollable={V:null,H:null};for(dir in _203._isScrollable){var _209=dir=="H"?"V":"H";_203._isScrollable[dir]=_203==_202||_203._scroll[dir]||_203._scrollBarSize[_209];}};var _20a=node;while(_20a!=null){addPseudoAttrs(_20a);var next=_20a._parent;if(next){next._child=_20a;}_20a=next;}for(var dir in _202._renderedSize){_202._renderedSize[dir]=Math.min(_202._clientSize[dir],_202._renderedSize[dir]);}var _20d=node;while(_20d!=_202){_20a=_20d._parent;if(_20a.tagName=="TD"){var _20e=_20a._parent._parent._parent;if(_20e._offsetParent==_20d._offsetParent&&_20a._offsetParent!=_20d._offsetParent){_20a=_20e;}}var _20f=_20d==_202||(_20a._offsetParent!=_20d._offsetParent);for(dir in _20d._start){var _210=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_20a._clientSize.H>0){var _211=_20a.scrollWidth-_20a._clientSize.H;if(_211>0){_20a._scroll.H-=_211;}}if(dojo.isIE&&_20a._offsetParent.tagName=="TABLE"){_20a._start[dir]-=_20a._offsetParent._borderStart[dir];_20a._borderStart[dir]=_20a._borderSize[dir]=0;}if(_20a._clientSize[dir]==0){_20a._renderedSize[dir]=_20a._clientSize[dir]=_20a._child._clientSize[dir];if(rtl&&dir=="H"){_20a._start[dir]-=_20a._renderedSize[dir];}}else{_20a._renderedSize[dir]-=_20a._borderSize[dir]+_20a._scrollBarSize[dir];}_20a._start[dir]+=_20a._borderStart[dir];var _212=_20d._start[dir]-(_20f?0:_20a._start[dir])-_20a._scroll[dir];var _213=_212+_20d._renderedSize[dir]-_20a._renderedSize[dir];var _214,_215=(dir=="H")?"scrollLeft":"scrollTop";var _216=(dir=="H"&&rtl);var _217=_216?-_213:_212;var _218=_216?-_212:_213;if(_217<=0){_214=_217;}else{if(_218<=0){_214=0;}else{if(_217<_218){_214=_217;}else{_214=_218;}}}var _219=0;if(_214!=0){var _21a=_20a[_215];_20a[_215]+=_216?-_214:_214;_219=_20a[_215]-_21a;_212-=_219;_218-=_216?-_219:_219;}_20a._renderedSize[dir]=_20d._renderedSize[dir]+_20a._scrollBarSize[dir]-((_20a._isScrollable[dir]&&_218>0)?_218:0);_20a._start[dir]+=(_212>=0||!_20a._isScrollable[dir])?_212:0;}_20d=_20a;}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _21d=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _220=d.boxModel.replace(/-/,"");var _221={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_21d,dj_opera8:maj(_21d)==8,dj_opera9:maj(_21d)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_221["dj_"+_220]=true;var html=dojo.doc.documentElement;for(var p in _221){if(_221[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in _221){if(_221[p]){html.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_226,node,_228,obj,_22a,_22b){if(obj!=this._obj){this.stop();this._initialDelay=_22b||500;this._subsequentDelay=_22a||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_226,_228);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_22d,_22e,_22f,_230,_231){if(_22d.keyCode){_22d.charOrCode=_22d.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_22d.charCode){_22d.charOrCode=String.fromCharCode(_22d.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_22d.charOrCode&&(_22d.ctrlKey===undefined||_22d.ctrlKey==evt.ctrlKey)&&(_22d.altKey===undefined||_22d.altKey==evt.ctrlKey)&&(_22d.shiftKey===undefined||_22d.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_22d,_22e,node,_22f,_22d,_230,_231);}else{if(dijit.typematic._obj==_22d){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_22d){dijit.typematic.stop();}})];},addMouseListener:function(node,_235,_236,_237,_238){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_235,node,_236,node,_237,_238);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_235,node,_236,node,_237,_238);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_23f,_240,_241,_242,_243,_244,_245){return this.addKeyListener(_240,_241,_242,_243,_244,_245).concat(this.addMouseListener(_23f,_242,_243,_244,_245));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _248=cs.backgroundImage;var _249=(cs.borderTopColor==cs.borderRightColor)||(_248!=null&&(_248=="none"||_248=="url(invalid-url:)"));dojo[_249?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _24c=this.getWaiRole(elem);if(role){return (_24c.indexOf(role)>-1);}else{return (_24c.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _250=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_250)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_250+" ").indexOf(" "+role+" ")<0){var _251=dojo.trim(_250.replace(this._XhtmlRoles,""));var _252=dojo.trim(_250.replace(_251,""));dojo.attr(elem,"role",_252+(_252?" ":"")+role);}}},removeWaiRole:function(elem,role){var _255=dojo.attr(elem,"role");if(!_255){return;}if(role){var _256=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_255+" ").replace(" "+_256+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_259){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_259);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_259):!!elem.getAttribute("aria-"+_259);}},getWaiState:function(elem,_25b){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_25b);}else{var _25c=elem.getAttribute("aria-"+_25b);return _25c?_25c:"";}},setWaiState:function(elem,_25e,_25f){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_25e,_25f);}else{elem.setAttribute("aria-"+_25e,_25f);}},removeWaiState:function(elem,_261){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_261);}else{elem.removeAttribute("aria-"+_261);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_262,_263){if(_262&&dojo.isFunction(_262._onConnect)){_262._onConnect(_263);}});dijit._connectOnUseEventHandler=function(_264){};(function(){var _265={};var _266=function(dc){if(!_265[dc]){var r=[];var _269;var _26a=dojo.getObject(dc).prototype;for(var _26b in _26a){if(dojo.isFunction(_26a[_26b])&&(_269=_26b.match(/^_set([a-zA-Z]*)Attr$/))&&_269[1]){r.push(_269[1].charAt(0).toLowerCase()+_269[1].substr(1));}}_265[dc]=r;}return _265[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_26c,_26d){this.create(_26c,_26d);},create:function(_26e,_26f){this.srcNodeRef=dojo.byId(_26f);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_26e){this.params=_26e;dojo.mixin(this,_26e);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _271=function(attr,_273){if((_273.params&&attr in _273.params)||_273[attr]){_273.attr(attr,_273[attr]);}};for(var attr in this.attributeMap){_271(attr,this);}dojo.forEach(_266(this.declaredClass),function(a){if(!(a in this.attributeMap)){_271(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_276){this.destroyDescendants(_276);this.destroy(_276);},destroy:function(_277){this.uninitialize();dojo.forEach(this._connects,function(_278){dojo.forEach(_278,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_277);dijit.registry.remove(this.id);},destroyRendering:function(_27a){if(this.bgIframe){this.bgIframe.destroy(_27a);delete this.bgIframe;}if(this.domNode){if(!_27a){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_27a){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_27b){dojo.forEach(this.getDescendants(),function(_27c){if(_27c.destroy){_27c.destroy(_27b);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_27e){if(_27e in this._deferredConnects){var _27f=this[this._deferredConnects[_27e]||"domNode"];this.connect(_27f,_27e.toLowerCase(),this[_27e]);delete this._deferredConnects[_27e];}},_setClassAttr:function(_280){var _281=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_281,this["class"]);this["class"]=_280;dojo.addClass(_281,_280);},_setStyleAttr:function(_282){var _283=this[this.attributeMap["style"]||"domNode"];if(_283.style.cssText){_283.style.cssText+="; "+_282;}else{_283.style.cssText=_282;}this["style"]=_282;},setAttribute:function(attr,_285){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_285);},_attrToDom:function(attr,_287){var _288=this.attributeMap[attr];dojo.forEach(dojo.isArray(_288)?_288:[_288],function(_289){var _28a=this[_289.node||_289||"domNode"];var type=_289.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_287)){_287=dojo.hitch(this,_287);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_28a,attr,_287);break;case "innerHTML":_28a.innerHTML=_287;break;case "class":dojo.removeClass(_28a,this[attr]);dojo.addClass(_28a,_287);break;}},this);this[attr]=_287;},attr:function(name,_28d){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _290=this._getAttrNames(name);if(args==2){if(this[_290.s]){return this[_290.s](_28d)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_28d);}this[name]=_28d;}return this;}else{if(this[_290.g]){return this[_290.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_296,_297){var d=dojo;var dco=d.hitch(d,"connect",obj);var _29a=[];if(_296=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_297);_29a.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_29a.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_296="onclick";}_29a.push(dco(_296,this,_297));this._connects.push(_29a);return _29a;},disconnect:function(_29f){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_29f){dojo.forEach(_29f,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_2a1,_2a2){if(_2a1["declaredClass"]&&_2a1["addChild"]){_2a1.addChild(this,_2a2);}else{dojo.place(this.domNode,_2a1,_2a2);}return this;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_2ac,map,_2ae,_2af){_2af=_2af||dojo.global;_2ae=(!_2ae)?function(v){return v;}:dojo.hitch(_2af,_2ae);return _2ac.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_2b1,key,_2b3){var _2b4=dojo.getObject(key,false,map);if(_2b3){_2b4=dojo.getObject(_2b3,false,_2af).call(_2af,_2b4,key);}return _2ae(_2b4,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _2b8=this.declaredClass,_2b9=this;return dojo.string.substitute(tmpl,this,function(_2ba,key){if(key.charAt(0)=="!"){_2ba=_2b9[key.substr(1)];}if(typeof _2ba=="undefined"){throw new Error(_2b8+" template:"+key);}if(_2ba==null){return "";}return key.charAt(0)=="!"?_2ba:_2ba.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _2bc=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_2bc)){node=dijit._Templated._createNodesFromText(this._stringRepl(_2bc))[0];}else{node=_2bc.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _2be=this.srcNodeRef;if(_2be&&_2be.parentNode){_2be.parentNode.replaceChild(node,_2be);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_2be);},_fillContent:function(_2c2){var dest=this.containerNode;if(_2c2&&dest){while(_2c2.hasChildNodes()){dest.appendChild(_2c2.firstChild);}}},_attachTemplateNodes:function(_2c4,_2c5){_2c5=_2c5||function(n,p){return n.getAttribute(p);};var _2c8=dojo.isArray(_2c4)?_2c4:(_2c4.all||_2c4.getElementsByTagName("*"));var x=dojo.isArray(_2c4)?0:-1;var _2ca={};for(;x<_2c8.length;x++){var _2cb=(x==-1)?_2c4:_2c8[x];if(this.widgetsInTemplate&&_2c5(_2cb,"dojoType")){continue;}var _2cc=_2c5(_2cb,"dojoAttachPoint");if(_2cc){var _2cd,_2ce=_2cc.split(/\s*,\s*/);while((_2cd=_2ce.shift())){if(dojo.isArray(this[_2cd])){this[_2cd].push(_2cb);}else{this[_2cd]=_2cb;}}}var _2cf=_2c5(_2cb,"dojoAttachEvent");if(_2cf){var _2d0,_2d1=_2cf.split(/\s*,\s*/);var trim=dojo.trim;while((_2d0=_2d1.shift())){if(_2d0){var _2d3=null;if(_2d0.indexOf(":")!=-1){var _2d4=_2d0.split(":");_2d0=trim(_2d4[0]);_2d3=trim(_2d4[1]);}else{_2d0=trim(_2d0);}if(!_2d3){_2d3=_2d0;}this.connect(_2cb,_2d0,_2d3);}}}var role=_2c5(_2cb,"waiRole");if(role){dijit.setWaiRole(_2cb,role);}var _2d6=_2c5(_2cb,"waiState");if(_2d6){dojo.forEach(_2d6.split(/\s*,\s*/),function(_2d7){if(_2d7.indexOf("-")!=-1){var pair=_2d7.split("-");dijit.setWaiState(_2cb,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2d9,_2da,_2db){var _2dc=dijit._Templated._templateCache;var key=_2da||_2d9;var _2de=_2dc[key];if(_2de){if(!_2de.ownerDocument||_2de.ownerDocument==dojo.doc){return _2de;}dojo._destroyElement(_2de);}if(!_2da){_2da=dijit._Templated._sanitizeTemplateString(dojo._getText(_2d9));}_2da=dojo.string.trim(_2da);if(_2db||_2da.match(/\$\{([^\}]+)\}/g)){return (_2dc[key]=_2da);}else{return (_2dc[key]=dijit._Templated._createNodesFromText(_2da)[0]);}};dijit._Templated._sanitizeTemplateString=function(_2df){if(_2df){_2df=_2df.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2e0=_2df.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2e0){_2df=_2e0[1];}}else{_2df="";}return _2df;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2e1=dijit._Templated._templateCache;for(var key in _2e1){var _2e3=_2e1[key];if(!isNaN(_2e3.nodeType)){dojo._destroyElement(_2e3);}delete _2e1[key];}});}(function(){var _2e4={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _2e7="none";var _2e8=text.replace(/^\s+/,"");for(var type in _2e4){var map=_2e4[type];if(map.re.test(_2e8)){_2e7=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_2e7];var _2ec=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _2ed=[];while(_2ec.firstChild){_2ed.push(_2ec.removeChild(_2ec.firstChild));}tn.innerHTML="";return _2ed;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _2f0=dijit.byId(id);return _2f0.isContainer?_2f0:null;}}return null;},_getSibling:function(_2f1){var node=this.domNode;do{node=node[_2f1+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_2f5,_2f6){var _2f7=this.containerNode;if(_2f6&&typeof _2f6=="number"){var _2f8=dojo.query("> [widgetId]",_2f7);if(_2f8&&_2f8.length>=_2f6){_2f7=_2f8[_2f6-1];_2f6="after";}}dojo.place(_2f5.domNode,_2f7,_2f6);if(this._started&&!_2f5._started){_2f5.startup();}},removeChild:function(_2f9){if(typeof _2f9=="number"&&_2f9>0){_2f9=this.getChildren()[_2f9];}if(!_2f9||!_2f9.domNode){return;}var node=_2f9.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_2fd){dojo.forEach(this.getChildren(),function(_2fe){_2fe.destroyRecursive(_2fd);});},_getSiblingOfChild:function(_2ff,dir){var node=_2ff.domNode;var _302=(dir>0?"nextSibling":"previousSibling");do{node=node[_302];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_303){var _304=this.getChildren();for(var i=0,c;c=_304[i];i++){if(c==_303){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_307,_308){var _309=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_307,function(code){_309[code]=prev;});dojo.forEach(_308,function(code){_309[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_30e,_30f){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_30e);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _310=this._getNextFocusableChild(this.focusedChild,1);if(_310.getFocalNodes){this.focusChild(_310,_310.getFocalNodes()[0]);}else{this.focusChild(_310);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _311=this._getNextFocusableChild(this.focusedChild,-1);if(_311.getFocalNodes){var _312=_311.getFocalNodes();this.focusChild(_311,_312[_312.length-1]);}else{this.focusChild(_311);}},focusChild:function(_313,node){if(_313){if(this.focusedChild&&_313!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_313;if(node&&_313.focusFocalNode){_313.focusFocalNode(node);}else{_313.focus();}}},_startupChild:function(_315){if(_315.getFocalNodes){dojo.forEach(_315.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_315.focusNode||_315.domNode;if(_315.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _31d=dijit.getEnclosingWidget(evt.target);if(_31d&&_31d.isFocusable()){this.focusedChild=_31d;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_31f){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_320,dir){if(_320){_320=this._getSiblingOfChild(_320,dir);}var _322=this.getChildren();for(var i=0;i<_322.length;i++){if(!_320){_320=_322[(dir>0)?0:(_322.length-1)];}if(_320.isFocusable()){return _320;}_320=this._getSiblingOfChild(_320,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_324){_324.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_325,_326){var node=this.domNode;if(_325){dojo.marginBox(node,_325);if(_325.t){node.style.top=_325.t+"px";}if(_325.l){node.style.left=_325.l+"px";}}var mb=_326||{};dojo.mixin(mb,_325||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_32e){if(_32e.baseClass){dojo.addClass(_32e.domNode,this.baseClass+"-"+_32e.baseClass);}},addChild:function(_32f,_330){this.inherited(arguments);if(this._started){this._setupChild(_32f);}},removeChild:function(_331){if(_331.baseClass){dojo.removeClass(_331.domNode,this.baseClass+"-"+_331.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _337=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_33a,dim){_33a.resize?_33a.resize(dim):dojo.marginBox(_33a.domNode,dim);dojo.mixin(_33a,dojo.marginBox(_33a.domNode));dojo.mixin(_33a,dim);};dijit.layout.layoutChildren=function(_33c,dim,_33e){dim=dojo.mixin({},dim);dojo.addClass(_33c,"dijitLayoutContainer");_33e=dojo.filter(_33e,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_33e,function(item){return item.layoutAlign=="client";}));dojo.forEach(_33e,function(_341){var elm=_341.domNode,pos=_341.layoutAlign;var _344=elm.style;_344.left=dim.l+"px";_344.top=dim.t+"px";_344.bottom=_344.right="auto";dojo.addClass(elm,"dijitAlign"+_337(pos));if(pos=="top"||pos=="bottom"){size(_341,{w:dim.w});dim.h-=_341.h;if(pos=="top"){dim.t+=_341.h;}else{_344.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_341,{h:dim.h});dim.w-=_341.w;if(pos=="left"){dim.l+=_341.w;}else{_344.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_341,dim);}}}});};})();}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _345=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(node){while(node.firstChild){dojo._destroyElement(node.firstChild);}};dojo.html._setNodeContent=function(node,cont,_34a){if(_34a){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_352,node){dojo.mixin(this,_352||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_345++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_355){if(undefined!==cont){this.content=cont;}if(_355){this._mixin(_355);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _357=this.onContentError(e);try{node.innerHTML=_357;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _35a=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_35a){cont=_35a[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_35c){var _35d={},key;for(key in _35c){if(key in _35d){continue;}this[key]=_35c[key];}},_parse:function(){var _35f=this.node;try{this.parseResults=dojo.parser.parse(_35f,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_362){var _363=this["on"+type+"Error"].call(this,err);if(_362){console.error(_362,err);}else{if(_363){dojo.html._setNodeContent(this.node,_363,true);}}}});dojo.html.set=function(node,cont,_366){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_366){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_366,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_368,_369,_36a){_36a=dojo.i18n.normalizeLocale(_36a);var _36b=_36a.split("-");var _36c=[_368,"nls",_369].join(".");var _36d=dojo._loadedModules[_36c];if(_36d){var _36e;for(var i=_36b.length;i>0;i--){var loc=_36b.slice(0,i).join("_");if(_36d[loc]){_36e=_36d[loc];break;}}if(!_36e){_36e=_36d.ROOT;}if(_36e){var _371=function(){};_371.prototype=_36e;return new _371();}}throw new Error("Bundle not found: "+_369+" in "+_368+" , locale="+_36a);};dojo.i18n.normalizeLocale=function(_372){var _373=_372?_372.toLowerCase():dojo.locale;if(_373=="root"){_373="ROOT";}return _373;};dojo.i18n._requireLocalization=function(_374,_375,_376,_377){var _378=dojo.i18n.normalizeLocale(_376);var _379=[_374,"nls",_375].join(".");var _37a="";if(_377){var _37b=_377.split(",");for(var i=0;i<_37b.length;i++){if(_378["indexOf"](_37b[i])==0){if(_37b[i].length>_37a.length){_37a=_37b[i];}}}if(!_37a){_37a="ROOT";}}var _37d=_377?_37a:_378;var _37e=dojo._loadedModules[_379];var _37f=null;if(_37e){if(dojo.config.localizationComplete&&_37e._built){return;}var _380=_37d.replace(/-/g,"_");var _381=_379+"."+_380;_37f=dojo._loadedModules[_381];}if(!_37f){_37e=dojo["provide"](_379);var syms=dojo._getModuleSymbols(_374);var _383=syms.concat("nls").join("/");var _384;dojo.i18n._searchLocalePath(_37d,_377,function(loc){var _386=loc.replace(/-/g,"_");var _387=_379+"."+_386;var _388=false;if(!dojo._loadedModules[_387]){dojo["provide"](_387);var _389=[_383];if(loc!="ROOT"){_389.push(loc);}_389.push(_375);var _38a=_389.join("/")+".js";_388=dojo._loadPath(_38a,null,function(hash){var _38c=function(){};_38c.prototype=_384;_37e[_386]=new _38c();for(var j in hash){_37e[_386][j]=hash[j];}});}else{_388=true;}if(_388&&_37e[_386]){_384=_37e[_386];}else{_37e[_386]=_384;}if(_377){return true;}});}if(_377&&_378!=_37a){_37e[_378.replace(/-/g,"_")]=_37e[_37a.replace(/-/g,"_")];}};(function(){var _38e=dojo.config.extraLocale;if(_38e){if(!_38e instanceof Array){_38e=[_38e];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_392,_393){req(m,b,_392,_393);if(_392){return;}for(var i=0;i<_38e.length;i++){req(m,b,_38e[i],_393);}};}})();dojo.i18n._searchLocalePath=function(_395,down,_397){_395=dojo.i18n.normalizeLocale(_395);var _398=_395.split("-");var _399=[];for(var i=_398.length;i>0;i--){_399.push(_398.slice(0,i).join("-"));}_399.push(false);if(down){_399.reverse();}for(var j=_399.length-1;j>=0;j--){var loc=_399[j]||"ROOT";var stop=_397(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_39e,_39f){function preload(_3a0){_3a0=dojo.i18n.normalizeLocale(_3a0);dojo.i18n._searchLocalePath(_3a0,true,function(loc){for(var i=0;i<_39f.length;i++){if(_39f[i]==loc){dojo["require"](_39e+"_"+loc);return true;}}return false;});};preload();var _3a3=dojo.config.extraLocale||[];for(var i=0;i<_3a3.length;i++){preload(_3a3[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _3a5=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_3a5);this.errorMessage=dojo.string.substitute(this.errorMessage,_3a5);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _3a6=dojo.query(">",this.containerNode),_3a7=_3a6.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_3a9=dojo.filter(_3a7.map(dijit.byNode),function(_3aa){return _3aa&&_3aa.domNode&&_3aa.resize;});if(_3a6.length==_3a7.length&&_3a9.length==1){this.isContainer=true;this._singleChild=_3a9[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.href=href;if(this._created){return this._prepareLoad();}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this._setContent(data||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_3b0){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_3b5){this.cancel();this.isLoaded=false;this._loadCheck(_3b5);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_3b7){var _3b8=this._isShown();if(this.href&&(_3b7||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_3b8&&!this._xhrDfd)||(!this.isLoaded&&_3b8&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _3ba={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_3ba,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_3ba);hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _3bf=this._contentSetter;if(_3bf){_3bf.empty();}else{this.inherited(arguments);dojo.html._emptyNode(this.containerNode);}},_setContent:function(cont,_3c1){this.destroyDescendants();this._isRealContent=!_3c1;var _3c2=this._contentSetter;if(!(_3c2&&_3c2 instanceof dojo.html._ContentSetter)){_3c2=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _3c4=this.onContentError(e);try{this.containerNode.innerHTML=_3c4;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _3c5=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_3c2,_3c5);_3c2.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_3c1){this._onLoadHandler(cont);}},_onError:function(type,err,_3c8){var _3c9=this["on"+type+"Error"].call(this,err);if(_3c8){console.error(_3c8,err);}else{if(_3c9){this._setContent(_3c9,true);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_3cb){},onDownloadError:function(_3cc){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_3cd){if(_3cd.reset){_3cd.reset();}});},validate:function(){var _3ce=false;return dojo.every(dojo.map(this.getDescendants(),function(_3cf){_3cf._hasBeenBlurred=true;var _3d0=_3cf.disabled||!_3cf.validate||_3cf.validate();if(!_3d0&&!_3ce){dijit.scrollIntoView(_3cf.containerNode||_3cf.domNode);_3cf.focus();_3ce=true;}return _3d0;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_3d5){if(!_3d5.name){return;}var _3d6=map[_3d5.name]||(map[_3d5.name]=[]);_3d6.push(_3d5);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _3d8=map[name],_3d9=dojo.getObject(name,false,obj);if(_3d9===undefined){continue;}if(!dojo.isArray(_3d9)){_3d9=[_3d9];}if(typeof _3d8[0].checked=="boolean"){dojo.forEach(_3d8,function(w,i){w.attr("value",dojo.indexOf(_3d9,w.value)!=-1);});}else{if(_3d8[0]._multiValue){_3d8[0].attr("value",_3d9);}else{dojo.forEach(_3d8,function(w,i){w.attr("value",_3d9[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_3df){var name=_3df.name;if(!name||_3df.disabled){return;}var _3e1=_3df.attr("value");if(typeof _3df.checked=="boolean"){if(/Radio/.test(_3df.declaredClass)){if(_3e1!==false){dojo.setObject(name,_3e1,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_3e1!==false){ary.push(_3e1);}}}else{dojo.setObject(name,_3e1,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return dojo.every(this.getDescendants(),function(_3e3){var _3e4=_3e3.disabled||!_3e3.isValid||_3e3.isValid();if(!_3e4){this._invalidWidgets.push(_3e3);}return _3e4;},this);},onValidStateChange:function(_3e5){},_widgetChange:function(_3e6){var _3e7=this._lastValidState;if(!_3e6||this._lastValidState===undefined){_3e7=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_3e7;}}else{if(_3e6.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_3e6);},this);if(!_3e6.isValid()&&!_3e6.attr("disabled")){this._invalidWidgets.push(_3e6);}_3e7=(this._invalidWidgets.length===0);}}if(_3e7!==this._lastValidState){this._lastValidState=_3e7;this.onValidStateChange(_3e7);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _3e9=this;var _3ea=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_3ec){_3ea.push(_3e9.connect(_3ec,"validate",dojo.hitch(_3e9,"_widgetChange",_3ec)));_3ea.push(_3e9.connect(_3ec,"_setDisabledAttr",dojo.hitch(_3e9,"_widgetChange",_3ec)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_3ed){},onExecute:function(){},_setEncTypeAttr:function(_3ee){this.encType=_3ee;dojo.attr(this.domNode,"encType",_3ee);if(dojo.isIE){this.domNode.encoding=_3ee;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _3f6=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_3f6.t+"px";os.left=_3f6.l+"px";is.width=_3f6.w+"px";is.height=_3f6.h+"px";var _3f9=dijit.getViewport();if(_3f6.w!=_3f9.w){is.width=_3f9.w+"px";}if(_3f6.h!=_3f9.h){is.height=_3f9.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_3fa){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_3fb){var _3fc=dijit._getTabNavigable(dojo.byId(_3fb));this._firstFocusItem=_3fc.lowest||_3fc.first||_3fb;this._lastFocusItem=_3fc.last||_3fc.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_3fb,"tabindex","0");this._firstFocusItem=_3fb;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _3fd=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_3fd);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _404=this._underlay;this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_404,"show")});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_404.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _406=dijit.getViewport();if(mb.w>=_406.w||mb.h>=_406.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_406.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_406.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _408=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_408.l+(p?p.l:(_408.w-mb.w)/2))+"px",top:Math.floor(_408.t+(p?p.t:(_408.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _40e=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_40e){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_40e){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);}},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_410,_411){this.domNode.className=this["class"]+" dijitTooltipAB"+(_411.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_411.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _416=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_416){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_416){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}dojo.i18n._preloadLocalizations("dojo.nls.corporate",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","ca","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","sk","da","sl","pl","de","sv","pt","pt-pt","nl-nl","zh-tw","ko-kr","ar","en-us","zh","th","ja-jp"]);
