/*
	Copyright (c) 2004-2007, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	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.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id="dojoUnique"+(++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);console.debug(b.l,b.t,t.x,t.y,n.scrollLeft,n.scrollTop);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;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-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _18=n.scrollLeft,_19=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(dx||dy){console.debug(_18+", "+_19+"\n"+dx+", "+dy+"\n"+n.scrollLeft+", "+n.scrollTop);}if(_18!=n.scrollLeft||_19!=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(_1a,e,_1c){this.node=dojo.byId(_1a);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_1c,d=_1a.ownerDocument,_1f=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,"onselectstart",dojo,"stopEvent"),_1f];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});},onMouseUp:function(e){if(this.mouseButton==e.button){this.destroy();}},onFirstMove:function(){this.node.style.position="absolute";var m=dojo.marginBox(this.node);m.l-=this.marginBox.l;m.t-=this.marginBox.t;this.marginBox=m;this.host.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=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(_25,_26){this.node=dojo.byId(_25);if(!_26){_26={};}this.handle=_26.handle?dojo.byId(_26.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_26.delay>0?_26.delay:0;this.skip=_26.skip;this.mover=_26.mover?_26.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(_27,_28){return new dojo.dnd.Moveable(_28,_27);},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"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{new this.mover(this.node,e,this);}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);new this.mover(this.node,e,this);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onMoveStart:function(_2d){dojo.publish("/dnd/move/start",[_2d]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_2e){dojo.publish("/dnd/move/stop",[_2e]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_2f){},onMove:function(_30,_31){this.onMoving(_30,_31);dojo.marginBox(_30.node,_31);this.onMoved(_30,_31);},onMoving:function(_32,_33){},onMoved:function(_34,_35){}});}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(_36,_37){return new dojo.dnd.move.constrainedMoveable(_37,_36);},constructor:function(_38,_39){if(!_39){_39={};}this.constraints=_39.constraints;this.within=_39.within;},onFirstMove:function(_3a){var c=this.constraintBox=this.constraints.call(this,_3a),m=_3a.marginBox;c.r=c.l+c.w-(this.within?m.w:0);c.b=c.t+c.h-(this.within?m.h:0);},onMove:function(_3d,_3e){var c=this.constraintBox;_3e.l=_3e.l<c.l?c.l:c.r<_3e.l?c.r:_3e.l;_3e.t=_3e.t<c.t?c.t:c.b<_3e.t?c.b:_3e.t;dojo.marginBox(_3d.node,_3e);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_40,_41){return new dojo.dnd.move.boxConstrainedMoveable(_41,_40);},constructor:function(_42,_43){var box=_43&&_43.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_45,_46){return new dojo.dnd.move.parentConstrainedMoveable(_46,_45);},constructor:function(_47,_48){var _49=_48&&_48.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_49=="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(_49=="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(_49=="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,_4f){var _50=function(_51,e,_53){dojo.dnd.Mover.call(this,_51,e,_53);};dojo.extend(_50,dojo.dnd.Mover.prototype);dojo.extend(_50,{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),m=this.marginBox;c.r=c.l+c.w-(_4f?m.w:0);c.b=c.t+c.h-(_4f?m.h:0);}});return _50;};dojo.dnd.move.boxConstrainedMover=function(box,_5c){return dojo.dnd.move.constrainedMover(function(){return box;},_5c);};dojo.dnd.move.parentConstrainedMover=function(_5d,_5e){var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_5d=="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(_5d=="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(_5d=="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,_5e);};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.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(_64){var _65=_64.shift();var _66=_65;dojo.forEach(_64,function(_67){dojo.connect(_66,"onEnd",_67,"play");_66=_67;});return _65;};dojo.fx.combine=function(_68){var ctr=new dojo._Animation({curve:[0,1]});if(!_68.length){return ctr;}ctr.duration=_68[0].duration;dojo.forEach(_68,function(_6a){dojo.forEach(["play","pause","stop"],function(e){if(_6a[e]){dojo.connect(ctr,e,_6a,e);}});});return ctr;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(_6c){var _t=this;dojo.mixin(_t,_6c);_t.node=_6c.node;_t._showArgs=dojo.mixin({},_6c);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_6c);_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(_6e){return this.showAnim.play(_6e||0);},hide:function(_6f){return this.hideAnim.play(_6f||0);}});dojo.fx.wipeIn=function(_70){_70.node=dojo.byId(_70.node);var _71=_70.node,s=_71.style;var _73=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _74=dojo.style(_71,"height");return Math.max(_74,1);}},end:function(){return _71.scrollHeight;}}}},_70));dojo.connect(_73,"onEnd",function(){s.height="auto";});return _73;};dojo.fx.wipeOut=function(_75){var _76=_75.node=dojo.byId(_75.node);var s=_76.style;var _78=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_75));dojo.connect(_78,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(_78,"onEnd",function(){s.height="auto";s.display="none";});return _78;};dojo.fx.slideTo=function(_79){var _7a=(_79.node=dojo.byId(_79.node));var top=null;var _7c=null;var _7d=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_7c=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;_7c=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_7c+"px";}};})(_7a);_7d();var _82=dojo.animateProperty(dojo.mixin({properties:{top:{end:_79.top||0},left:{end:_79.left||0}}},_79));dojo.connect(_82,"beforeBegin",_82,_7d);return _82;};}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 _83=dojo.global;var _84=dojo.doc;if(_84.selection){return !_84.selection.createRange().text;}else{if(_83.getSelection){var _85=_83.getSelection();if(dojo.isString(_85)){return !_85;}else{return _85.isCollapsed||!_85.toString();}}}},getBookmark:function(){var _86,_87=dojo.doc.selection;if(_87){var _88=_87.createRange();if(_87.type.toUpperCase()=="CONTROL"){_86=_88.length?dojo._toArray(_88):null;}else{_86=_88.getBookmark();}}else{if(dojo.global.getSelection){_87=dojo.global.getSelection();if(_87){var _88=_87.getRangeAt(0);_86=_88.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _86;},moveToBookmark:function(_89){var _8a=dojo.doc;if(_8a.selection){var _8b;if(dojo.isArray(_89)){_8b=_8a.body.createControlRange();dojo.forEach(_89,_8b.addElement);}else{_8b=_8a.selection.createRange();_8b.moveToBookmark(_89);}_8b.select();}else{var _8c=dojo.global.getSelection&&dojo.global.getSelection();if(_8c&&_8c.removeAllRanges){_8c.removeAllRanges();_8c.addRange(_89);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(_8d,_8e){return {node:_8d&&dojo.isDescendant(dijit._curFocus,_8d.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_8e||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_8e||dojo.global,dijit.getBookmark):null,openedForWindow:_8e};},focus:function(_8f){if(!_8f){return;}var _90="node" in _8f?_8f.node:_8f,_91=_8f.bookmark,_92=_8f.openedForWindow;if(_90){var _93=(_90.tagName.toLowerCase()=="iframe")?_90.contentWindow:_90;if(_93&&_93.focus){try{_93.focus();}catch(e){}}dijit._onFocusNode(_90);}if(_91&&dojo.withGlobal(_92||dojo.global,dijit.isCollapsed)){if(_92){_92.focus();}try{dojo.withGlobal(_92||dojo.global,moveToBookmark,null,[_91]);}catch(e){}}},_activeStack:[],registerWin:function(_94){if(!_94){_94=window;}dojo.connect(_94.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _96=_94.document.body||_94.document.getElementsByTagName("body")[0];if(_96){if(dojo.isIE){_96.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_96.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_96.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_96.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_96=null;},_onBlurNode:function(_9b){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(_9b);if(w&&w._setStateClass){w._focused=false;w._setStateClass();}if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);},100);},_onTouchNode:function(_9d){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _9e=[];try{while(_9d){if(_9d.dijitPopupParent){_9d=dijit.byId(_9d.dijitPopupParent).domNode;}else{if(_9d.tagName&&_9d.tagName.toLowerCase()=="body"){if(_9d===dojo.body()){break;}_9d=dojo.query("iframe").filter(function(_9f){return _9f.contentDocument.body===_9d;})[0];}else{var id=_9d.getAttribute&&_9d.getAttribute("widgetId");if(id){_9e.unshift(id);}_9d=_9d.parentNode;}}}}catch(e){}dijit._setStack(_9e);},_onFocusNode:function(_a1){if(_a1&&_a1.tagName&&_a1.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_a1);if(_a1==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=_a1;dojo.publish("focusNode",[_a1]);var w=dijit.getEnclosingWidget(_a1);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_a3){var _a4=dijit._activeStack;dijit._activeStack=_a3;for(var _a5=0;_a5<Math.min(_a4.length,_a3.length);_a5++){if(_a4[_a5]!=_a3[_a5]){break;}}for(var i=_a4.length-1;i>=_a5;i--){var _a7=dijit.byId(_a4[i]);if(_a7){dojo.publish("widgetBlur",[_a7]);if(_a7._onBlur){_a7._onBlur();}}}for(var i=_a5;i<_a3.length;i++){var _a7=dijit.byId(_a3[i]);if(_a7){dojo.publish("widgetFocus",[_a7]);if(_a7._onFocus){_a7._onFocus();}}}}});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(_a8){if(this._hash[_a8.id]){throw new Error("Tried to register widget with id=="+_a8.id+" but that id is already registered");}this._hash[_a8.id]=_a8;},remove:function(id){delete this._hash[id];},forEach:function(_aa){for(var id in this._hash){_aa(this._hash[id]);}},filter:function(_ac){var res=new dijit.WidgetSet();this.forEach(function(_ae){if(_ac(_ae)){res.add(_ae);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_b1){return _b1.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_b2){var id;do{id=_b2+"_"+(dijit._widgetTypeCtr[_b2]!==undefined?++dijit._widgetTypeCtr[_b2]:dijit._widgetTypeCtr[_b2]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_b4){_b4.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_b6){return dijit.registry.byId(_b6.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_b7){while(_b7){if(_b7.getAttribute&&_b7.getAttribute("widgetId")){return dijit.registry.byId(_b7.getAttribute("widgetId"));}_b7=_b7.parentNode;}return null;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _b8=dojo.global;var _b9=dojo.doc;var w=0,h=0;if(dojo.isMozilla){var _bc,_bd,_be,_bf;if(_b9.body.clientWidth>_b9.documentElement.clientWidth){_bc=_b9.documentElement.clientWidth;_be=_b9.body.clientWidth;}else{_be=_b9.documentElement.clientWidth;_bc=_b9.body.clientWidth;}if(_b9.body.clientHeight>_b9.documentElement.clientHeight){_bd=_b9.documentElement.clientHeight;_bf=_b9.body.clientHeight;}else{_bf=_b9.documentElement.clientHeight;_bd=_b9.body.clientHeight;}w=(_be>_b8.innerWidth)?_bc:_be;h=(_bf>_b8.innerHeight)?_bd:_bf;}else{if(!dojo.isOpera&&_b8.innerWidth){w=_b8.innerWidth;h=_b8.innerHeight;}else{if(dojo.isIE&&_b9.documentElement&&_b9.documentElement.clientHeight){w=_b9.documentElement.clientWidth;h=_b9.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _c0=dojo._docScroll();return {w:w,h:h,l:_c0.x,t:_c0.y};};dijit.placeOnScreen=function(_c1,pos,_c3,_c4){var _c5=dojo.map(_c3,function(_c6){return {corner:_c6,pos:pos};});return dijit._place(_c1,_c5);};dijit._place=function(_c7,_c8,_c9){var _ca=dijit.getViewport();if(!_c7.parentNode||String(_c7.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_c7);}var _cb=null;for(var i=0;i<_c8.length;i++){var _cd=_c8[i].corner;var pos=_c8[i].pos;if(_c9){_c9(_cd);}var _cf=_c7.style.display;var _d0=_c7.style.visibility;_c7.style.visibility="hidden";_c7.style.display="";var mb=dojo.marginBox(_c7);_c7.style.display=_cf;_c7.style.visibility=_d0;var _d2=(_cd.charAt(1)=="L"?pos.x:Math.max(_ca.l,pos.x-mb.w)),_d3=(_cd.charAt(0)=="T"?pos.y:Math.max(_ca.t,pos.y-mb.h)),_d4=(_cd.charAt(1)=="L"?Math.min(_ca.l+_ca.w,_d2+mb.w):pos.x),_d5=(_cd.charAt(0)=="T"?Math.min(_ca.t+_ca.h,_d3+mb.h):pos.y),_d6=_d4-_d2,_d7=_d5-_d3,_d8=(mb.w-_d6)+(mb.h-_d7);if(_cb==null||_d8<_cb.overflow){_cb={corner:_cd,aroundCorner:_c8[i].aroundCorner,x:_d2,y:_d3,w:_d6,h:_d7,overflow:_d8};}if(_d8==0){break;}}_c7.style.left=_cb.x+"px";_c7.style.top=_cb.y+"px";return _cb;};dijit.placeOnScreenAroundElement=function(_d9,_da,_db,_dc){_da=dojo.byId(_da);var _dd=_da.style.display;_da.style.display="";var _de=_da.offsetWidth;var _df=_da.offsetHeight;var _e0=dojo.coords(_da,true);_da.style.display=_dd;var _e1=[];for(var _e2 in _db){_e1.push({aroundCorner:_e2,corner:_db[_e2],pos:{x:_e0.x+(_e2.charAt(1)=="L"?0:_de),y:_e0.y+(_e2.charAt(0)=="T"?0:_df)}});}return dijit._place(_d9,_e1,_dc);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}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 _e8=[],_e9=1000,_ea=1;this.open=function(_eb){var _ec=_eb.popup,_ed=_eb.orient||{"BL":"TL","TL":"BL"},_ee=_eb.around,id=(_eb.around&&_eb.around.id)?(_eb.around.id+"_dropdown"):("popup_"+_ea++);var _f0=dojo.doc.createElement("div");_f0.id=id;_f0.className="dijitPopup";_f0.style.zIndex=_e9+_e8.length;_f0.style.visibility="hidden";if(_eb.parent){_f0.dijitPopupParent=_eb.parent.id;}dojo.body().appendChild(_f0);_ec.domNode.style.display="";_f0.appendChild(_ec.domNode);var _f1=new dijit.BackgroundIframe(_f0);var _f2=_ee?dijit.placeOnScreenAroundElement(_f0,_ee,_ed,_ec.orient?dojo.hitch(_ec,"orient"):null):dijit.placeOnScreen(_f0,_eb,_ed=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_f0.style.visibility="visible";var _f3=[];function getTopPopup(){for(var pi=_e8.length-1;pi>0&&_e8[pi].parent===_e8[pi-1].widget;pi--){}return _e8[pi];};_f3.push(dojo.connect(_f0,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_eb.onCancel){_eb.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _f6=getTopPopup();if(_f6&&_f6.onCancel){_f6.onCancel();}}}}));if(_ec.onCancel){_f3.push(dojo.connect(_ec,"onCancel",null,_eb.onCancel));}_f3.push(dojo.connect(_ec,_ec.onExecute?"onExecute":"onChange",null,function(){var _f7=getTopPopup();if(_f7&&_f7.onExecute){_f7.onExecute();}}));_e8.push({wrapper:_f0,iframe:_f1,widget:_ec,parent:_eb.parent,onExecute:_eb.onExecute,onCancel:_eb.onCancel,onClose:_eb.onClose,handlers:_f3});if(_ec.onOpen){_ec.onOpen(_f2);}return _f2;};this.close=function(_f8){while(dojo.some(_e8,function(_f9){return _f9.widget==_f8;})){var top=_e8.pop(),_fb=top.wrapper,_fc=top.iframe,_fd=top.widget,_fe=top.onClose;if(_fd.onClose){_fd.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_fd||!_fd.domNode){return;}dojo.style(_fd.domNode,"display","none");dojo.body().appendChild(_fd.domNode);_fc.destroy();dojo._destroyElement(_fb);if(_fe){_fe();}}};}();dijit._frames=new function(){var _ff=[];this.pop=function(){var _100;if(_ff.length){_100=_ff.pop();_100.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_100=dojo.doc.createElement(html);}else{var _100=dojo.doc.createElement("iframe");_100.src="javascript:\"\"";_100.className="dijitBackgroundIframe";}_100.tabIndex=-1;dojo.body().appendChild(_100);}return _100;};this.push=function(_102){_102.style.display="";if(dojo.isIE){_102.style.removeExpression("width");_102.style.removeExpression("height");}_ff.push(_102);};}();if(dojo.isIE&&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 _105=dijit._frames.pop();node.appendChild(_105);if(dojo.isIE){_105.style.setExpression("width","document.getElementById('"+node.id+"').offsetWidth");_105.style.setExpression("height","document.getElementById('"+node.id+"').offsetHeight");}this.iframe=_105;}};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){if(dojo.isIE){if(dojo.marginBox(node.parentNode).h<=node.parentNode.scrollHeight){node.scrollIntoView(false);}}else{if(dojo.isMozilla){node.scrollIntoView(false);}else{var _107=node.parentNode;var _108=_107.scrollTop+dojo.marginBox(_107).h;var _109=node.offsetTop+dojo.marginBox(node).h;if(_108<_109){_107.scrollTop+=(_109-_108);}else{if(_107.scrollTop>node.offsetTop){_107.scrollTop-=(_107.scrollTop-node.offsetTop);}}}}};}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 _10c=d.isOpera;var maj=Math.floor;var _10e={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_10c,dj_opera8:maj(_10c)==8,dj_opera9:maj(_10c)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _10e){if(_10e[p]){var html=dojo.doc.documentElement;if(html.className){html.className+=" "+p;}else{html.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}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,_112,node,_114,obj,_116,_117){if(obj!=this._obj){this.stop();this._initialDelay=_117||500;this._subsequentDelay=_116||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_112,_114);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,_119,_11a,_11b,_11c,_11d){return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_119.keyCode&&(!_119.charCode||_119.charCode==evt.charCode)&&(_119.ctrlKey===undefined||_119.ctrlKey==evt.ctrlKey)&&(_119.altKey===undefined||_119.altKey==evt.ctrlKey)&&(_119.shiftKey===undefined||_119.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_119,_11a,node,_11b,_119,_11c,_11d);}else{if(dijit.typematic._obj==_119){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_119){dijit.typematic.stop();}})];},addMouseListener:function(node,_121,_122,_123,_124){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_121,node,_122,node,_123,_124);}),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,_121,node,_122,node,_123,_124);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_12b,_12c,_12d,_12e,_12f,_130,_131){return this.addKeyListener(_12c,_12d,_12e,_12f,_130,_131).concat(this.addMouseListener(_12b,_12e,_12f,_130,_131));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=document.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.moduleUrl("dijit","form/templates/blank.gif")+"\");";dojo.body().appendChild(div);function check(){var cs=dojo.getComputedStyle(div);if(cs){var _134=cs.backgroundImage;var _135=(cs.borderTopColor==cs.borderRightColor)||(_134!=null&&(_134=="none"||_134=="url(invalid-url:)"));dojo[_135?"addClass":"removeClass"](dojo.body(),"dijit_a11y");}};check();if(dojo.isIE){setInterval(check,4000);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem){if(elem.hasAttribute){return elem.hasAttribute("role");}else{return elem.getAttribute("role")?true:false;}},getWaiRole:function(elem){var _138=elem.getAttribute("role");if(_138){var _139=_138.indexOf(":");return _139==-1?_138:_138.substring(_139+1);}else{return "";}},setWaiRole:function(elem,role){if(dojo.isFF&&dojo.isFF<3){elem.setAttribute("role","wairole:"+role);}else{elem.setAttribute("role",role);}},removeWaiRole:function(elem){elem.removeAttribute("role");},hasWaiState:function(elem,_13e){if(dojo.isFF&&dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_13e);}else{if(elem.hasAttribute){return elem.hasAttribute("aria-"+_13e);}else{return elem.getAttribute("aria-"+_13e)?true:false;}}},getWaiState:function(elem,_140){if(dojo.isFF&&dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_140);}else{var _141=elem.getAttribute("aria-"+_140);return _141?_141:"";}},setWaiState:function(elem,_143,_144){if(dojo.isFF&&dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_143,_144);}else{elem.setAttribute("aria-"+_143,_144);}},removeWaiState:function(elem,_146){if(dojo.isFF&&dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_146);}else{elem.removeAttribute("aria-"+_146);}}});}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.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_147,_148){this.create(_147,_148);},create:function(_149,_14a){this.srcNodeRef=dojo.byId(_14a);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_149){dojo.mixin(this,_149);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _14c=this[this.attributeMap[attr]||"domNode"];var _14d=this[attr];if(typeof _14d!="object"&&(_14d!==""||(_149&&_149[attr]))){switch(attr){case "class":dojo.addClass(_14c,_14d);break;case "style":if(_14c.style.cssText){_14c.style.cssText+="; "+_14d;}else{_14c.style.cssText=_14d;}break;default:_14c.setAttribute(attr,_14d);}}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){},destroyRecursive:function(_14e){this.destroyDescendants();this.destroy();},destroy:function(_14f){this.uninitialize();dojo.forEach(this._connects,function(_150){dojo.forEach(_150,dojo.disconnect);});this.destroyRendering(_14f);dijit.registry.remove(this.id);},destroyRendering:function(_151){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_152){_152.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var list=dojo.query("[widgetId]",this.domNode);return list.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_155,_156){var _157=[];if(_155=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_157.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_156))?w[_156](e):_156.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_157.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_156)?w[_156](e):_156.call(w,e);}}));}_155="onclick";}_157.push(dojo.connect(obj,_155,this,_156));this._connects.push(_157);return _157;},disconnect:function(_15b){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_15b){dojo.forEach(_15b,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_162,map,_164,_165){return _162.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_166,key,_168){var _169=dojo.getObject(key,false,map);if(_168){_169=dojo.getObject(_168,false,_165)(_169);}if(_164){_169=_164(_169,key);}return _169.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["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_16c,_16d){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 _16e=dojo.date.stamp._isoRegExp.exec(_16c);var _16f=null;if(_16e){_16e.shift();_16e[1]&&_16e[1]--;_16e[6]&&(_16e[6]*=1000);if(_16d){_16d=new Date(_16d);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _16d["get"+prop]();}).forEach(function(_171,_172){if(_16e[_172]===undefined){_16e[_172]=_171;}});}_16f=new Date(_16e[0]||1970,_16e[1]||0,_16e[2]||0,_16e[3]||0,_16e[4]||0,_16e[5]||0,_16e[6]||0);var _173=0;var _174=_16e[7]&&_16e[7].charAt(0);if(_174!="Z"){_173=((_16e[8]||0)*60)+(Number(_16e[9])||0);if(_174!="-"){_173*=-1;}}if(_174){_173-=_16f.getTimezoneOffset();}if(_173){_16f.setTime(_16f.getTime()+_173*60000);}}return _16f;};dojo.date.stamp.toISOString=function(_175,_176){var _=function(n){return (n<10)?"0"+n:n;};_176=_176||{};var _179=[];var _17a=_176.zulu?"getUTC":"get";var date="";if(_176.selector!="time"){date=[_175[_17a+"FullYear"](),_(_175[_17a+"Month"]()+1),_(_175[_17a+"Date"]())].join("-");}_179.push(date);if(_176.selector!="date"){var time=[_(_175[_17a+"Hours"]()),_(_175[_17a+"Minutes"]()),_(_175[_17a+"Seconds"]())].join(":");var _17d=_175[_17a+"Milliseconds"]();if(_176.milliseconds){time+="."+(_17d<100?"0":"")+_(_17d);}if(_176.zulu){time+="Z";}else{if(_176.selector!="time"){var _17e=_175.getTimezoneOffset();var _17f=Math.abs(_17e);time+=(_17e>0?"-":"+")+_(Math.floor(_17f/60))+":"+_(_17f%60);}}_179.push(time);}return _179.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;function val2type(_181){if(d.isString(_181)){return "string";}if(typeof _181=="number"){return "number";}if(typeof _181=="boolean"){return "boolean";}if(d.isFunction(_181)){return "function";}if(d.isArray(_181)){return "array";}if(_181 instanceof Date){return "date";}if(_181 instanceof d._Url){return "url";}return "object";};function str2obj(_182,type){switch(type){case "string":return _182;case "number":return _182.length?Number(_182):NaN;case "boolean":return typeof _182=="boolean"?_182:!(_182.toLowerCase()=="false");case "function":if(d.isFunction(_182)){_182=_182.toString();_182=d.trim(_182.substring(_182.indexOf("{")+1,_182.length-1));}try{if(_182.search(/[^\w\.]+/i)!=-1){_182=d.parser._nameAnonFunc(new Function(_182),this);}return d.getObject(_182,false);}catch(e){return new Function();}case "array":return _182.split(/\s*,\s*/);case "date":switch(_182){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_182);}case "url":return d.baseUrl+_182;default:return d.fromJson(_182);}};var _184={};function getClassInfo(_185){if(!_184[_185]){var cls=d.getObject(_185);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_185+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _187=cls.prototype;var _188={};for(var name in _187){if(name.charAt(0)=="_"){continue;}var _18a=_187[name];_188[name]=val2type(_18a);}_184[_185]={cls:cls,params:_188};}return _184[_185];};this._functionFromScript=function(_18b){var _18c="";var _18d="";var _18e=_18b.getAttribute("args");if(_18e){d.forEach(_18e.split(/\s*,\s*/),function(part,idx){_18c+="var "+part+" = arguments["+idx+"]; ";});}var _191=_18b.getAttribute("with");if(_191&&_191.length){d.forEach(_191.split(/\s*,\s*/),function(part){_18c+="with("+part+"){";_18d+="}";});}return new Function(_18c+_18b.innerHTML+_18d);};this.instantiate=function(_193){var _194=[];d.forEach(_193,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)){return;}var _197=getClassInfo(type);var _198=_197.cls;var ps=_198._noScript||_198.prototype._noScript;var _19a={};var _19b=node.attributes;for(var name in _197.params){var item=_19b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _19e=item.value;switch(name){case "class":_19e=node.className;break;case "style":_19e=node.style&&node.style.cssText;}var _19f=_197.params[name];_19a[name]=str2obj(_19e,_19f);}if(!ps){var _1a0=[],_1a1=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_1a2){var _1a3=_1a2.getAttribute("event"),type=_1a2.getAttribute("type"),nf=d.parser._functionFromScript(_1a2);if(_1a3){if(type=="dojo/connect"){_1a0.push({event:_1a3,func:nf});}else{_19a[_1a3]=nf;}}else{_1a1.push(nf);}});}var _1a5=_198["markupFactory"];if(!_1a5&&_198["prototype"]){_1a5=_198.prototype["markupFactory"];}var _1a6=_1a5?_1a5(_19a,node,_198):new _198(_19a,node);_194.push(_1a6);var _1a7=node.getAttribute("jsId");if(_1a7){d.setObject(_1a7,_1a6);}if(!ps){dojo.forEach(_1a0,function(_1a8){dojo.connect(_1a6,_1a8.event,null,_1a8.func);});dojo.forEach(_1a1,function(func){func.call(_1a6);});}});d.forEach(_194,function(_1aa){if(_1aa&&(_1aa.startup)&&((!_1aa.getParent)||(!_1aa.getParent()))){_1aa.startup();}});return _194;};this.parse=function(_1ab){var list=d.query("[dojoType]",_1ab);var _1ad=this.instantiate(list);return _1ad;};}();(function(){var _1ae=function(){if(djConfig["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_1ae);}else{dojo._loaders.unshift(_1ae);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_1af,_1b0){var jpn="$joinpoint";var nso=(_1b0||dojo.parser._anon);if(dojo.isIE){var cn=_1af["__dojoNameCache"];if(cn&&nso[cn]===_1af){return _1af["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_1af;return ret;};}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,containerNode:null,_skipNodeCache:false,buildRendering:function(){var _1b5=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1b5)){var _1b7=this.declaredClass,_1b8=this;var tstr=dojo.string.substitute(_1b5,this,function(_1ba,key){if(key.charAt(0)=="!"){_1ba=_1b8[key.substr(1)];}if(typeof _1ba=="undefined"){throw new Error(_1b7+" template:"+key);}if(!_1ba){return "";}return key.charAt(0)=="!"?_1ba:_1ba.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_1b5.cloneNode(true);}this._attachTemplateNodes(node);var _1bc=this.srcNodeRef;if(_1bc&&_1bc.parentNode){_1bc.parentNode.replaceChild(node,_1bc);}this.domNode=node;if(this.widgetsInTemplate){var _1bd=dojo.parser.parse(node);this._attachTemplateNodes(_1bd,function(n,p){return n[p];});}this._fillContent(_1bc);},_fillContent:function(_1c0){var dest=this.containerNode;if(_1c0&&dest){while(_1c0.hasChildNodes()){dest.appendChild(_1c0.firstChild);}}},_attachTemplateNodes:function(_1c2,_1c3){_1c3=_1c3||function(n,p){return n.getAttribute(p);};var _1c6=dojo.isArray(_1c2)?_1c2:(_1c2.all||_1c2.getElementsByTagName("*"));var x=dojo.isArray(_1c2)?0:-1;for(;x<_1c6.length;x++){var _1c8=(x==-1)?_1c2:_1c6[x];if(this.widgetsInTemplate&&_1c3(_1c8,"dojoType")){continue;}var _1c9=_1c3(_1c8,"dojoAttachPoint");if(_1c9){var _1ca,_1cb=_1c9.split(/\s*,\s*/);while(_1ca=_1cb.shift()){if(dojo.isArray(this[_1ca])){this[_1ca].push(_1c8);}else{this[_1ca]=_1c8;}}}var _1cc=_1c3(_1c8,"dojoAttachEvent");if(_1cc){var _1cd,_1ce=_1cc.split(/\s*,\s*/);var trim=dojo.trim;while(_1cd=_1ce.shift()){if(_1cd){var _1d0=null;if(_1cd.indexOf(":")!=-1){var _1d1=_1cd.split(":");_1cd=trim(_1d1[0]);_1d0=trim(_1d1[1]);}else{_1cd=trim(_1cd);}if(!_1d0){_1d0=_1cd;}this.connect(_1c8,_1cd,_1d0);}}}var role=_1c3(_1c8,"waiRole");if(role){dijit.setWaiRole(_1c8,role);}var _1d3=_1c3(_1c8,"waiState");if(_1d3){dojo.forEach(_1d3.split(/\s*,\s*/),function(_1d4){if(_1d4.indexOf("-")!=-1){var pair=_1d4.split("-");dijit.setWaiState(_1c8,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1d6,_1d7,_1d8){var _1d9=dijit._Templated._templateCache;var key=_1d7||_1d6;var _1db=_1d9[key];if(_1db){return _1db;}if(!_1d7){_1d7=dijit._Templated._sanitizeTemplateString(dojo._getText(_1d6));}_1d7=dojo.string.trim(_1d7);if(_1d7.match(/\$\{([^\}]+)\}/g)||_1d8){return (_1d9[key]=_1d7);}else{return (_1d9[key]=dijit._Templated._createNodesFromText(_1d7)[0]);}};dijit._Templated._sanitizeTemplateString=function(_1dc){if(_1dc){_1dc=_1dc.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1dd=_1dc.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1dd){_1dc=_1dd[1];}}else{_1dc="";}return _1dc;};if(dojo.isIE){dojo.addOnUnload(function(){var _1de=dijit._Templated._templateCache;for(var key in _1de){var _1e0=_1de[key];if(!isNaN(_1e0.nodeType)){dojo._destroyElement(_1e0);}_1de[key]=null;}});}(function(){var _1e1={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=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _1e4="none";var _1e5=text.replace(/^\s+/,"");for(var type in _1e1){var map=_1e1[type];if(map.re.test(_1e5)){_1e4=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_1e4];var _1e9=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _1ea=[];while(_1e9.firstChild){_1ea.push(_1e9.removeChild(_1e9.firstChild));}tn.innerHTML="";return _1ea;};})();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 _1ed=dijit.byId(id);return _1ed.isContainer?_1ed:null;}}return null;},_getSibling:function(_1ee){var node=this.domNode;do{node=node[_1ee+"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");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_1f1,_1f2){if(_1f2===undefined){_1f2="last";}var _1f3=this.containerNode||this.domNode;if(_1f2&&typeof _1f2=="number"){var _1f4=dojo.query("> [widgetid]",_1f3);if(_1f4&&_1f4.length>=_1f2){_1f3=_1f4[_1f2-1];_1f2="after";}}dojo.place(_1f1.domNode,_1f3,_1f2);if(this._started&&!_1f1._started){_1f1.startup();}},removeChild:function(_1f5){var node=_1f5.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||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_1fa,dir){var node=_1fa.domNode;var _1fd=(dir>0?"nextSibling":"previousSibling");do{node=node[_1fd];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_1fe,_1ff){var _200=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_1fe,function(code){_200[code]=prev;});dojo.forEach(_1ff,function(code){_200[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");if(dojo.isIE){this.connect(this.domNode,"onactivate","_onContainerFocus");this.connect(this.domNode,"ondeactivate","_onContainerBlur");}else{this.connect(this.domNode,"onfocus","_onContainerFocus");this.connect(this.domNode,"onblur","_onContainerBlur");}},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_setTabIndexMinusOne"));},addChild:function(_205,_206){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_205);},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 _207=this._getNextFocusableChild(this.focusedChild,1);if(_207.getFocalNodes){this.focusChild(_207,_207.getFocalNodes()[0]);}else{this.focusChild(_207);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _208=this._getNextFocusableChild(this.focusedChild,-1);if(_208.getFocalNodes){var _209=_208.getFocalNodes();this.focusChild(_208,_209[_209.length-1]);}else{this.focusChild(_208);}},focusChild:function(_20a,node){if(_20a){if(this.focusedChild&&_20a!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_20a;if(node&&_20a.focusFocalNode){_20a.focusFocalNode(node);}else{_20a.focus();}}},_setTabIndexMinusOne:function(_20c){if(_20c.getFocalNodes){dojo.forEach(_20c.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_20c.focusNode||_20c.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _20f=dijit.getEnclosingWidget(evt.target);if(_20f&&_20f.isFocusable()){this.focusedChild=_20f;}}},_onContainerBlur:function(evt){if(this.tabIndex){this.domNode.setAttribute("tabIndex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_213){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_214,dir){if(_214){_214=this._getSiblingOfChild(_214,dir);}var _216=this.getChildren();for(var i=0;i<_216.length;i++){if(!_214){_214=_216[(dir>0)?0:(_216.length-1)];}if(_214.isFocusable()){return _214;}_214=this._getSiblingOfChild(_214,dir);}}});}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],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this._started=true;if(this.getChildren){dojo.forEach(this.getChildren(),function(_218){_218.startup();});}if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});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 _221=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_224,dim){_224.resize?_224.resize(dim):dojo.marginBox(_224.domNode,dim);dojo.mixin(_224,dojo.marginBox(_224.domNode));dojo.mixin(_224,dim);};dijit.layout.layoutChildren=function(_226,dim,_228){dim=dojo.mixin({},dim);dojo.addClass(_226,"dijitLayoutContainer");_228=dojo.filter(_228,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_228,function(item){return item.layoutAlign=="client";}));dojo.forEach(_228,function(_22b){var elm=_22b.domNode,pos=_22b.layoutAlign;var _22e=elm.style;_22e.left=dim.l+"px";_22e.top=dim.t+"px";_22e.bottom=_22e.right="auto";dojo.addClass(elm,"dijitAlign"+_221(pos));if(pos=="top"||pos=="bottom"){size(_22b,{w:dim.w});dim.h-=_22b.h;if(pos=="top"){dim.t+=_22b.h;}else{_22e.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_22b,{h:dim.h});dim.w-=_22b.w;if(pos=="left"){dim.l+=_22b.w;}else{_22e.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_22b,dim);}}}});};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_22f,_230,_231){_231=dojo.i18n.normalizeLocale(_231);var _232=_231.split("-");var _233=[_22f,"nls",_230].join(".");var _234=dojo._loadedModules[_233];if(_234){var _235;for(var i=_232.length;i>0;i--){var loc=_232.slice(0,i).join("_");if(_234[loc]){_235=_234[loc];break;}}if(!_235){_235=_234.ROOT;}if(_235){var _238=function(){};_238.prototype=_235;return new _238();}}throw new Error("Bundle not found: "+_230+" in "+_22f+" , locale="+_231);};dojo.i18n.normalizeLocale=function(_239){var _23a=_239?_239.toLowerCase():dojo.locale;if(_23a=="root"){_23a="ROOT";}return _23a;};dojo.i18n._requireLocalization=function(_23b,_23c,_23d,_23e){var _23f=dojo.i18n.normalizeLocale(_23d);var _240=[_23b,"nls",_23c].join(".");var _241="";if(_23e){var _242=_23e.split(",");for(var i=0;i<_242.length;i++){if(_23f.indexOf(_242[i])==0){if(_242[i].length>_241.length){_241=_242[i];}}}if(!_241){_241="ROOT";}}var _244=_23e?_241:_23f;var _245=dojo._loadedModules[_240];var _246=null;if(_245){if(djConfig.localizationComplete&&_245._built){return;}var _247=_244.replace(/-/g,"_");var _248=_240+"."+_247;_246=dojo._loadedModules[_248];}if(!_246){_245=dojo["provide"](_240);var syms=dojo._getModuleSymbols(_23b);var _24a=syms.concat("nls").join("/");var _24b;dojo.i18n._searchLocalePath(_244,_23e,function(loc){var _24d=loc.replace(/-/g,"_");var _24e=_240+"."+_24d;var _24f=false;if(!dojo._loadedModules[_24e]){dojo["provide"](_24e);var _250=[_24a];if(loc!="ROOT"){_250.push(loc);}_250.push(_23c);var _251=_250.join("/")+".js";_24f=dojo._loadPath(_251,null,function(hash){var _253=function(){};_253.prototype=_24b;_245[_24d]=new _253();for(var j in hash){_245[_24d][j]=hash[j];}});}else{_24f=true;}if(_24f&&_245[_24d]){_24b=_245[_24d];}else{_245[_24d]=_24b;}if(_23e){return true;}});}if(_23e&&_23f!=_241){_245[_23f.replace(/-/g,"_")]=_245[_241.replace(/-/g,"_")];}};(function(){var _255=djConfig.extraLocale;if(_255){if(!_255 instanceof Array){_255=[_255];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_259,_25a){req(m,b,_259,_25a);if(_259){return;}for(var i=0;i<_255.length;i++){req(m,b,_255[i],_25a);}};}})();dojo.i18n._searchLocalePath=function(_25c,down,_25e){_25c=dojo.i18n.normalizeLocale(_25c);var _25f=_25c.split("-");var _260=[];for(var i=_25f.length;i>0;i--){_260.push(_25f.slice(0,i).join("-"));}_260.push(false);if(down){_260.reverse();}for(var j=_260.length-1;j>=0;j--){var loc=_260[j]||"ROOT";var stop=_25e(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_265,_266){function preload(_267){_267=dojo.i18n.normalizeLocale(_267);dojo.i18n._searchLocalePath(_267,true,function(loc){for(var i=0;i<_266.length;i++){if(_266[i]==loc){dojo["require"](_265+"_"+loc);return true;}}return false;});};preload();var _26a=djConfig.extraLocale||[];for(var i=0;i<_26a.length;i++){preload(_26a[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,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck();}var _26c=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_26c);this.errorMessage=dojo.string.substitute(this.errorMessage,_26c);dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}this._loadCheck();this._started=true;},_checkIfSingleChild:function(){var _26d=dojo.query(">",this.containerNode||this.domNode),_26e=_26d.filter("[widgetId]");if(_26d.length==1&&_26e.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_26e[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_274){this.cancel();this.isLoaded=false;this._loadCheck(_274);},_loadCheck:function(_275){var _276=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_275||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_276&&!this._xhrDfd)||(!this.isLoaded&&_276&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _278={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_278,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_278);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _27f=this.onContentError(e);try{node.innerHTML=_27f;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_282){var _283=this["on"+type+"Error"].call(this,err);if(_282){console.error(_282,err);}else{if(_283){this._setContent.call(this,_283);}}},_createSubWidgets:function(){var _284=this.containerNode||this.domNode;try{dojo.parser.parse(_284,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_287){},onDownloadError:function(_288){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,{action:"",method:"",enctype:"",name:"","accept-charset":"",accept:"",target:"",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",enctype:"","accept-charset":"",accept:"",target:""}),execute:function(_289){},onCancel:function(){},onExecute:function(){},templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' name='${name}' enctype='multipart/form-data'></form>",_onSubmit:function(e){dojo.stopEvent(e);this.onExecute();this.execute(this.getValues());},submit:function(){this.containerNode.submit();},setValues:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_28d){if(!_28d.name){return;}var _28e=map[_28d.name]||(map[_28d.name]=[]);_28e.push(_28d);});for(var name in map){var _290=map[name],_291=dojo.getObject(name,false,obj);if(!dojo.isArray(_291)){_291=[_291];}if(_290[0].setChecked){dojo.forEach(_290,function(w,i){w.setChecked(dojo.indexOf(_291,w.value)!=-1);});}else{dojo.forEach(_290,function(w,i){w.setValue(_291[i]);});}}},getValues:function(){var obj={};dojo.forEach(this.getDescendants(),function(_297){var _298=_297.getValue?_297.getValue():_297.value;var name=_297.name;if(!name){return;}if(_297.setChecked){if(/Radio/.test(_297.declaredClass)){if(_297.checked){dojo.setObject(name,_298,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_297.checked){ary.push(_298);}}}else{dojo.setObject(name,_298,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_29b){return !_29b.isValid||_29b.isValid();});}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],null);}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}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _29c=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_29c.t+"px";os.left=_29c.l+"px";is.width=_29c.w+"px";is.height=_29c.h+"px";var _29f=dijit.getViewport();if(_29c.w!=_29f.w){is.width=_29f.w+"px";}if(_29c.h!=_29f.h){is.height=_29f.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}this._resizeHandler=this.connect(window,"onresize","layout");},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this.disconnect(this._resizeHandler);},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{templateString:null,templateString:"<div class=\"dijitDialog\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\" tabindex=\"0\" waiRole=\"dialog\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\">${title}</span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: hide\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n\t<span dojoAttachPoint=\"tabEnd\" dojoAttachEvent=\"onfocus:_cycleFocus\" tabindex=\"0\"></span>\r\n</div>\r\n",open:false,duration:400,_lastFocusItem:null,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:"titleBar"}),postCreate:function(){dojo.body().appendChild(this.domNode);this.inherited("postCreate",arguments);this.domNode.style.display="none";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");},onLoad:function(){this._position();this.inherited("onLoad",arguments);},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar});}this._underlay=new dijit.DialogUnderlay();var node=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:node,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.display="none";}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})]);},uninitialize:function(){if(this._underlay){this._underlay.destroy();}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _2a1=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _2a3=this.domNode.style;_2a3.left=Math.floor((_2a1.l+(_2a1.w-mb.w)/2))+"px";_2a3.top=Math.floor((_2a1.t+(_2a1.h-mb.h)/2))+"px";},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.titleBar.focus();},_onKey:function(evt){if(evt.keyCode){var node=evt.target;if(node==this.titleBar&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.keyCode==dojo.keys.ESCAPE){this.hide();}else{return;}}node=node.parentNode;}if(evt.keyCode!=dojo.keys.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this.titleBar.focus();}catch(e){}}}}}},show:function(){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(document.documentElement,"onkeypress",this,"_onKey"));var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this._modalconnects.push(dojo.connect(this.containerNode,ev,this,"_findLastFocus"));dojo.style(this.domNode,"opacity",0);this.domNode.style.display="block";this.open=true;this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);setTimeout(dojo.hitch(this,function(){dijit.focus(this.titleBar);}),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=[];this.connect(this._fadeOut,"onEnd",dojo.hitch(this,function(){dijit.focus(this._savedFocus);}));this.open=false;},layout:function(){if(this.domNode.style.display=="block"){this._underlay.layout();this._position();}}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{title:"",_lastFocusItem:null,templateString:null,templateString:"<div class=\"dijitTooltipDialog\" >\r\n\t<div class=\"dijitTooltipContainer\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"0\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<span dojoAttachPoint=\"tabEnd\" tabindex=\"0\" dojoAttachEvent=\"focus:_cycleFocus\"></span>\r\n\t<div class=\"dijitTooltipConnector\" ></div>\r\n</div>\r\n",postCreate:function(){this.inherited("postCreate",arguments);this.connect(this.containerNode,"onkeypress","_onKey");var ev=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this.connect(this.containerNode,ev,"_findLastFocus");this.containerNode.title=this.title;},orient:function(_2aa){this.domNode.className="dijitTooltipDialog "+" dijitTooltipAB"+(_2aa.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_2aa.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(pos.corner);this._loadCheck();this.containerNode.focus();},_onKey:function(evt){if(evt.keyCode==dojo.keys.ESCAPE){this.onCancel();}else{if(evt.target==this.containerNode&&evt.shiftKey&&evt.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus();}dojo.stopEvent(evt);}else{if(evt.keyCode==dojo.keys.TAB){evt.stopPropagation();}}}},_findLastFocus:function(evt){this._lastFocused=evt.target;},_cycleFocus:function(evt){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused;}this.containerNode.focus();}});}dojo.i18n._preloadLocalizations("dojo.nls.fivestardojo_login",["es-es","es","hu","it-it","de","pt-br","pl","fr-fr","zh-cn","pt","en-us","zh","ru","xx","fr","zh-tw","it","cs","en-gb","de-de","ja-jp","ko-kr","ko","en","ROOT","ja"]);
