/*
	Copyright (c) 2004-2009, 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.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;};dojo.dnd._lmb=dojo.isIE?1:0;dojo.dnd._isLmbPressed=dojo.isIE?function(e){return e.button&1;}:function(e){return e.button===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.isWebKit||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 _1a=n.scrollLeft,_1b=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_1a!=n.scrollLeft||_1b!=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(_1c,e,_1e){this.node=dojo.byId(_1c);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=_1e,d=_1c.ownerDocument,_21=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),_21];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.isWebKit&&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(_2f,_30){this.node=dojo.byId(_2f);if(!_30){_30={};}this.handle=_30.handle?dojo.byId(_30.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_30.delay>0?_30.delay:0;this.skip=_30.skip;this.mover=_30.mover?_30.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(_31,_32){return new dojo.dnd.Moveable(_32,_31);},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(_39){dojo.publish("/dnd/move/start",[_39]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3a){dojo.publish("/dnd/move/stop",[_3a]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3b){},onMove:function(_3c,_3d){this.onMoving(_3c,_3d);var s=_3c.node.style;s.left=_3d.l+"px";s.top=_3d.t+"px";this.onMoved(_3c,_3d);},onMoving:function(_3f,_40){},onMoved:function(_41,_42){}});}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(_43,_44){return new dojo.dnd.move.constrainedMoveable(_44,_43);},constructor:function(_45,_46){if(!_46){_46={};}this.constraints=_46.constraints;this.within=_46.within;},onFirstMove:function(_47){var c=this.constraintBox=this.constraints.call(this,_47);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_47.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_4a,_4b){var c=this.constraintBox,s=_4a.node.style;s.left=(_4b.l<c.l?c.l:c.r<_4b.l?c.r:_4b.l)+"px";s.top=(_4b.t<c.t?c.t:c.b<_4b.t?c.b:_4b.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4e,_4f){return new dojo.dnd.move.boxConstrainedMoveable(_4f,_4e);},constructor:function(_50,_51){var box=_51&&_51.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_53,_54){return new dojo.dnd.move.parentConstrainedMoveable(_54,_53);},constructor:function(_55,_56){var _57=_56&&_56.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(_57=="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(_57=="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(_57=="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,_5d){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _5e=function(_5f,e,_61){dojo.dnd.Mover.call(this,_5f,e,_61);};dojo.extend(_5e,dojo.dnd.Mover.prototype);dojo.extend(_5e,{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(_5d){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _5e;};dojo.dnd.move.boxConstrainedMover=function(box,_6a){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_6a);};dojo.dnd.move.parentConstrainedMover=function(_6b,_6c){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(_6b=="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(_6b=="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(_6b=="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,_6c);};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 _72=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_73,_74){if(!_74){_74={};}if(_74.timeout&&typeof _74.timeout=="number"&&_74.timeout>=0){this.timeout=_74.timeout;}},markupFactory:function(_75,_76){return new dojo.dnd.TimedMoveable(_76,_75);},onMoveStop:function(_77){if(_77._timer){clearTimeout(_77._timer);_72.call(this,_77,_77._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_78,_79){_78._leftTop=_79;if(!_78._timer){var _t=this;_78._timer=setTimeout(function(){_78._timer=null;_72.call(_t,_78,_78._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{constructor:function(_7b){var _t=this;dojo.mixin(_t,_7b);_t.node=_7b.node;_t._showArgs=dojo.mixin({},_7b);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_7b);_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(_7d){return this.showAnim.play(_7d||0);},hide:function(_7e){return this.hideAnim.play(_7e||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_80={_fire:function(evt,_82){if(this[evt]){this[evt].apply(this,_82||[]);}return this;}};var _83=function(_84){this._index=-1;this._animations=_84||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_83,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_86,_87){if(!this._current){this._current=this._animations[this._index=0];}if(!_87&&this._current.status()=="playing"){return this;}var _88=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_89=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_8b=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_88);d.disconnect(_89);d.disconnect(_8b);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_8f,_90){this.pause();var _91=this.duration*_8f;this._current=null;d.some(this._animations,function(a){if(a.duration<=_91){this._current=a;return true;}_91-=a.duration;return false;});if(this._current){this._current.gotoPercent(_91/this._current.duration,_90);}return this;},stop:function(_93){if(this._current){if(_93){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_83,_80);dojo.fx.chain=function(_96){return new _83(_96);};var _97=function(_98){this._animations=_98||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_98,function(a){var _9a=a.duration;if(a.delay){_9a+=a.delay;}if(this.duration<_9a){this.duration=_9a;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var _9b=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){_9b._connects.push(d.connect(_9b._pseudoAnimation,evt,function(){_9b._fire(evt,arguments);}));});};d.extend(_97,{_doAction:function(_9d,_9e){d.forEach(this._animations,function(a){a[_9d].apply(a,_9e);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_a0,_a1){var t=this._pseudoAnimation;t[_a0].apply(t,_a1);},play:function(_a3,_a4){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(_a5,_a6){var ms=this.duration*_a5;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_a6);});this._call("gotoPercent",arguments);return this;},stop:function(_a9){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_97,_80);dojo.fx.combine=function(_aa){return new _97(_aa);};dojo.fx.wipeIn=function(_ab){_ab.node=d.byId(_ab.node);var _ac=_ab.node,s=_ac.style,o;var _af=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _b0=d.style(_ac,"height");return Math.max(_b0,1);}},end:function(){return _ac.scrollHeight;}}}},_ab));d.connect(_af,"onEnd",function(){s.height="auto";s.overflow=o;});return _af;};dojo.fx.wipeOut=function(_b1){var _b2=_b1.node=d.byId(_b1.node),s=_b2.style,o;var _b5=d.animateProperty(d.mixin({properties:{height:{end:1}}},_b1));d.connect(_b5,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_b5,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _b5;};dojo.fx.slideTo=function(_b6){var _b7=_b6.node=d.byId(_b6.node),top=null,_b9=null;var _ba=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_b9=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;_b9=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_b9+"px";}};})(_b7);_ba();var _bf=d.animateProperty(d.mixin({properties:{top:_b6.top||0,left:_b6.left||0}},_b6));d.connect(_bf,"beforeBegin",_bf,_ba);return _bf;};})();}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 _c0=dojo.doc;if(_c0.selection){var s=_c0.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _c2=dojo.global;var _c3=_c2.getSelection();if(dojo.isString(_c3)){return !_c3;}else{return !_c3||_c3.isCollapsed||!_c3.toString();}}},getBookmark:function(){var _c4,_c5=dojo.doc.selection;if(_c5){var _c6=_c5.createRange();if(_c5.type.toUpperCase()=="CONTROL"){if(_c6.length){_c4=[];var i=0,len=_c6.length;while(i<len){_c4.push(_c6.item(i++));}}else{_c4=null;}}else{_c4=_c6.getBookmark();}}else{if(window.getSelection){_c5=dojo.global.getSelection();if(_c5){_c6=_c5.getRangeAt(0);_c4=_c6.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _c4;},moveToBookmark:function(_c9){var _ca=dojo.doc;if(_ca.selection){var _cb;if(dojo.isArray(_c9)){_cb=_ca.body.createControlRange();dojo.forEach(_c9,function(n){_cb.addElement(n);});}else{_cb=_ca.selection.createRange();_cb.moveToBookmark(_c9);}_cb.select();}else{var _cd=dojo.global.getSelection&&dojo.global.getSelection();if(_cd&&_cd.removeAllRanges){_cd.removeAllRanges();_cd.addRange(_c9);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_ce,_cf){return {node:_ce&&dojo.isDescendant(dijit._curFocus,_ce.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_cf||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_cf||dojo.global,dijit.getBookmark):null,openedForWindow:_cf};},focus:function(_d0){if(!_d0){return;}var _d1="node" in _d0?_d0.node:_d0,_d2=_d0.bookmark,_d3=_d0.openedForWindow;if(_d1){var _d4=(_d1.tagName.toLowerCase()=="iframe")?_d1.contentWindow:_d1;if(_d4&&_d4.focus){try{_d4.focus();}catch(e){}}dijit._onFocusNode(_d1);}if(_d2&&dojo.withGlobal(_d3||dojo.global,dijit.isCollapsed)){if(_d3){_d3.focus();}try{dojo.withGlobal(_d3||dojo.global,dijit.moveToBookmark,null,[_d2]);}catch(e){}}},_activeStack:[],registerIframe:function(_d5){dijit.registerWin(_d5.contentWindow,_d5);},registerWin:function(_d6,_d7){dojo.connect(_d6.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_d7||evt.target||evt.srcElement);});var doc=_d6.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_d7||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_d7||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_d7||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_d7||evt.target);},true);}}doc=null;},_onBlurNode:function(_de){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(_df){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _e0=[];try{while(_df){if(_df.dijitPopupParent){_df=dijit.byId(_df.dijitPopupParent).domNode;}else{if(_df.tagName&&_df.tagName.toLowerCase()=="body"){if(_df===dojo.body()){break;}_df=dijit.getDocumentWindow(_df.ownerDocument).frameElement;}else{var id=_df.getAttribute&&_df.getAttribute("widgetId");if(id){_e0.unshift(id);}_df=_df.parentNode;}}}}catch(e){}dijit._setStack(_e0);},_onFocusNode:function(_e2){if(!_e2){return;}if(_e2.nodeType==9){return;}dijit._onTouchNode(_e2);if(_e2==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_e2;dojo.publish("focusNode",[_e2]);},_setStack:function(_e3){var _e4=dijit._activeStack;dijit._activeStack=_e3;for(var _e5=0;_e5<Math.min(_e4.length,_e3.length);_e5++){if(_e4[_e5]!=_e3[_e5]){break;}}for(var i=_e4.length-1;i>=_e5;i--){var _e7=dijit.byId(_e4[i]);if(_e7){_e7._focused=false;_e7._hasBeenBlurred=true;if(_e7._onBlur){_e7._onBlur();}if(_e7._setStateClass){_e7._setStateClass();}dojo.publish("widgetBlur",[_e7]);}}for(i=_e5;i<_e3.length;i++){_e7=dijit.byId(_e3[i]);if(_e7){_e7._focused=true;if(_e7._onFocus){_e7._onFocus();}if(_e7._setStateClass){_e7._setStateClass();}dojo.publish("widgetFocus",[_e7]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}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(_e8){if(this._hash[_e8.id]){throw new Error("Tried to register widget with id=="+_e8.id+" but that id is already registered");}this._hash[_e8.id]=_e8;},remove:function(id){delete this._hash[id];},forEach:function(_ea){for(var id in this._hash){_ea(this._hash[id]);}},filter:function(_ec){var res=new dijit.WidgetSet();this.forEach(function(_ee){if(_ec(_ee)){res.add(_ee);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_f1){return _f1.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_f2){var id;do{id=_f2+"_"+(_f2 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_f2]:dijit._widgetTypeCtr[_f2]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_f4){var _f5=[];function _f6(_f7){var _f8=dojo.isIE?_f7.children:_f7.childNodes,i=0,_fa;while(_fa=_f8[i++]){if(_fa.nodeType!=1){continue;}var _fb=_fa.getAttribute("widgetId");if(_fb){var _fc=dijit.byId(_fb);_f5.push(_fc);}else{_f6(_fa);}}};_f6(_f4);return _f5;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_fd){if(_fd.destroyRecursive){_fd.destroyRecursive();}else{if(_fd.destroy){_fd.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_ff){return dijit.registry.byId(_ff.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 _102=dojo.style(elem);return (_102.visibility!="hidden")&&(_102.visibility!="collapsed")&&(_102.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _104=dojo.hasAttr(elem,"tabindex");var _105=dojo.attr(elem,"tabindex");if(_104&&_105>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_104||_105>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _108,last,_10a,_10b,_10c,_10d;var _10e=function(_10f){dojo.query("> *",_10f).forEach(function(_110){var _111=dijit._isElementShown(_110);if(_111&&dijit.isTabNavigable(_110)){var _112=dojo.attr(_110,"tabindex");if(!dojo.hasAttr(_110,"tabindex")||_112==0){if(!_108){_108=_110;}last=_110;}else{if(_112>0){if(!_10a||_112<_10b){_10b=_112;_10a=_110;}if(!_10c||_112>=_10d){_10d=_112;_10c=_110;}}}}if(_111&&_110.nodeName.toUpperCase()!="SELECT"){_10e(_110);}});};if(dijit._isElementShown(root)){_10e(root);}return {first:_108,last:last,lowest:_10a,highest:_10c};};dijit.getFirstInTabbingOrder=function(root){var _114=dijit._getTabNavigable(dojo.byId(root));return _114.lowest?_114.lowest:_114.first;};dijit.getLastInTabbingOrder=function(root){var _116=dijit._getTabNavigable(dojo.byId(root));return _116.last?_116.last:_116.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_117){this.pairs=[];this.returnWrappers=_117||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_119,wrap,_11b,_11c){this.pairs[((_11c)?"unshift":"push")]([name,_119,wrap,_11b]);},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 _122=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _123=dojo._docScroll();return {w:_122.clientWidth,h:_122.clientHeight,l:_123.x,t:_123.y};};dijit.placeOnScreen=function(node,pos,_126,_127){var _128=dojo.map(_126,function(_129){var c={corner:_129,pos:{x:pos.x,y:pos.y}};if(_127){c.pos.x+=_129.charAt(1)=="L"?_127.x:-_127.x;c.pos.y+=_129.charAt(0)=="T"?_127.y:-_127.y;}return c;});return dijit._place(node,_128);};dijit._place=function(node,_12c,_12d){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_12c,function(_130){var _131=_130.corner;var pos=_130.pos;if(_12d){_12d(node,_130.aroundCorner,_131);}var _133=node.style;var _134=_133.display;var _135=_133.visibility;_133.visibility="hidden";_133.display="";var mb=dojo.marginBox(node);_133.display=_134;_133.visibility=_135;var _137=(_131.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_138=(_131.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_131.charAt(1)=="L"?Math.min(view.l+view.w,_137+mb.w):pos.x),endY=(_131.charAt(0)=="T"?Math.min(view.t+view.h,_138+mb.h):pos.y),_13b=endX-_137,_13c=endY-_138,_13d=(mb.w-_13b)+(mb.h-_13c);if(best==null||_13d<best.overflow){best={corner:_131,aroundCorner:_130.aroundCorner,x:_137,y:_138,w:_13b,h:_13c,overflow:_13d};}return !_13d;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_12d){_12d(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_13f,_140,_141){_13f=dojo.byId(_13f);var _142=_13f.style.display;_13f.style.display="";var _143=_13f.offsetWidth;var _144=_13f.offsetHeight;var _145=dojo.coords(_13f,true);_13f.style.display=_142;return dijit._placeOnScreenAroundRect(node,_145.x,_145.y,_143,_144,_140,_141);};dijit.placeOnScreenAroundRectangle=function(node,_147,_148,_149){return dijit._placeOnScreenAroundRect(node,_147.x,_147.y,_147.width,_147.height,_148,_149);};dijit._placeOnScreenAroundRect=function(node,x,y,_14d,_14e,_14f,_150){var _151=[];for(var _152 in _14f){_151.push({aroundCorner:_152,corner:_14f[_152],pos:{x:x+(_152.charAt(1)=="L"?0:_14d),y:y+(_152.charAt(0)=="T"?0:_14e)}});}return dijit._place(node,_151,_150);};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,_158,_159,_15a){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 _15d=[],_15e=1000,_15f=1;this.prepare=function(node){var s=node.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(node);};this.open=function(args){var _163=args.popup,_164=args.orient||{"BL":"TL","TL":"BL"},_165=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_15f++);var _167=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_15e+_15d.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_167,"presentation");_167.style.left=_167.style.top="0px";if(args.parent){_167.dijitPopupParent=args.parent.id;}var s=_163.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_167.appendChild(_163.domNode);var _169=new dijit.BackgroundIframe(_167);var best=_165?dijit.placeOnScreenAroundElement(_167,_165,_164,_163.orient?dojo.hitch(_163,"orient"):null):dijit.placeOnScreen(_167,args,_164=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_167.style.visibility="visible";var _16b=[];var _16c=function(){for(var pi=_15d.length-1;pi>0&&_15d[pi].parent===_15d[pi-1].widget;pi--){}return _15d[pi];};_16b.push(dojo.connect(_167,"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 _16f=_16c();if(_16f&&_16f.onCancel){_16f.onCancel();}}}}));if(_163.onCancel){_16b.push(dojo.connect(_163,"onCancel",null,args.onCancel));}_16b.push(dojo.connect(_163,_163.onExecute?"onExecute":"onChange",null,function(){var _170=_16c();if(_170&&_170.onExecute){_170.onExecute();}}));_15d.push({wrapper:_167,iframe:_169,widget:_163,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_16b});if(_163.onOpen){_163.onOpen(best);}return best;};this.close=function(_171){while(dojo.some(_15d,function(elem){return elem.widget==_171;})){var top=_15d.pop(),_174=top.wrapper,_175=top.iframe,_176=top.widget,_177=top.onClose;if(_176.onClose){_176.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_176||!_176.domNode){return;}this.prepare(_176.domNode);_175.destroy();dojo.destroy(_174);if(_177){_177();}}};}();dijit._frames=new function(){var _178=[];this.pop=function(){var _179;if(_178.length){_179=_178.pop();_179.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\");'>";_179=dojo.doc.createElement(html);}else{_179=dojo.create("iframe");_179.src="javascript:\"\"";_179.className="dijitBackgroundIframe";}_179.tabIndex=-1;dojo.body().appendChild(_179);}return _179;};this.push=function(_17c){_17c.style.display="none";if(dojo.isIE){_17c.style.removeExpression("width");_17c.style.removeExpression("height");}_178.push(_17c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _17e=dijit._frames.pop();node.appendChild(_17e);if(dojo.isIE){_17e.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_17e.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_17e;}};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){try{node=dojo.byId(node);var doc=dojo.doc;var body=dojo.body();var html=body.parentNode;if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){node.scrollIntoView(false);return;}var ltr=dojo._isBodyLtr();var _184=dojo.isIE>=8&&!_185;var rtl=!ltr&&!_184;var _187=body;var _185=doc.compatMode=="BackCompat";if(_185){html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;}else{if(dojo.isWebKit){body._offsetWidth=body._clientWidth=html.clientWidth;body._offsetHeight=body._clientHeight=html.clientHeight;}else{_187=html;}html._offsetHeight=html.clientHeight;html._offsetWidth=html.clientWidth;}function _188(_189){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_185))?false:(dojo.style(_189,"position").toLowerCase()=="fixed"));};function _18b(_18c){var _18d=_18c.parentNode;var _18e=_18c.offsetParent;if(_18e==null||_188(_18c)){_18e=html;_18d=(_18c==body)?html:null;}_18c._offsetParent=_18e;_18c._parent=_18d;var bp=dojo._getBorderExtents(_18c);_18c._borderStart={H:(_184&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_18c._borderSize={H:bp.w,V:bp.h};_18c._scrolledAmount={H:_18c.scrollLeft,V:_18c.scrollTop};_18c._offsetSize={H:_18c._offsetWidth||_18c.offsetWidth,V:_18c._offsetHeight||_18c.offsetHeight};_18c._offsetStart={H:(_184&&!ltr)?_18e.clientWidth-_18c.offsetLeft-_18c._offsetSize.H:_18c.offsetLeft,V:_18c.offsetTop};_18c._clientSize={H:_18c._clientWidth||_18c.clientWidth,V:_18c._clientHeight||_18c.clientHeight};if(_18c!=body&&_18c!=html&&_18c!=node){for(var dir in _18c._offsetSize){var _191=_18c._offsetSize[dir]-_18c._clientSize[dir]-_18c._borderSize[dir];var _192=_18c._clientSize[dir]>0&&_191>0;if(_192){_18c._offsetSize[dir]-=_191;if(dojo.isIE&&rtl&&dir=="H"){_18c._offsetStart[dir]+=_191;}}}}};var _193=node;while(_193!=null){if(_188(_193)){node.scrollIntoView(false);return;}_18b(_193);_193=_193._parent;}if(dojo.isIE&&node._parent){var _194=node._offsetParent;node._offsetStart.H+=_194._borderStart.H;node._offsetStart.V+=_194._borderStart.V;}if(dojo.isIE>=7&&_187==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){var _195=html.scrollWidth-html._offsetSize.H;if(_195>0){body._offsetStart.H=-_195;}}if(dojo.isIE<=6&&!_185){html._offsetSize.H+=html._borderSize.H;html._offsetSize.V+=html._borderSize.V;}if(rtl&&body._offsetStart&&_187==html&&html._scrolledAmount){var ofs=body._offsetStart.H;if(ofs<0){html._scrolledAmount.H+=ofs;body._offsetStart.H=0;}}_193=node;while(_193){var _197=_193._parent;if(!_197){break;}if(_197.tagName=="TD"){var _198=_197._parent._parent._parent;if(_197!=_193._offsetParent&&_197._offsetParent!=_193._offsetParent){_197=_198;}}var _199=_193._offsetParent==_197;for(var dir in _193._offsetStart){var _19b=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_197!=html)&&(_197!=body)&&(dojo.isIE||dojo.isWebKit)&&_197._clientSize.H>0&&_197.scrollWidth>_197._clientSize.H){var _19c=_197.scrollWidth-_197._clientSize.H;if(_19c>0){_197._scrolledAmount.H-=_19c;}}if(_197._offsetParent.tagName=="TABLE"){if(dojo.isIE){_197._offsetStart[dir]-=_197._offsetParent._borderStart[dir];_197._borderStart[dir]=_197._borderSize[dir]=0;}else{_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];}}if(dojo.isIE){_197._offsetStart[dir]+=_197._offsetParent._borderStart[dir];}var _19d=_193._offsetStart[dir]-_197._scrolledAmount[dir]-(_199?0:_197._offsetStart[dir])-_197._borderStart[dir];var _19e=_19d+_193._offsetSize[dir]-_197._offsetSize[dir]+_197._borderSize[dir];var _19f=(dir=="H")?"scrollLeft":"scrollTop";var _1a0=dir=="H"&&rtl;var _1a1=_1a0?-_19e:_19d;var _1a2=_1a0?-_19d:_19e;var _1a3=(_1a1*_1a2<=0)?0:Math[(_1a1<0)?"max":"min"](_1a1,_1a2);if(_1a3!=0){var _1a4=_197[_19f];_197[_19f]+=(_1a0)?-_1a3:_1a3;var _1a5=_197[_19f]-_1a4;}if(_199){_193._offsetStart[dir]+=_197._offsetStart[dir];}_193._offsetStart[dir]-=_197[_19f];}_193._parent=_197._parent;_193._offsetParent=_197._offsetParent;}_197=node;var next;while(_197&&_197.removeAttribute){next=_197.parentNode;_197.removeAttribute("_offsetParent");_197.removeAttribute("_parent");_197=next;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_1aa=d.isOpera,maj=Math.floor,ff=d.isFF,_1ad=d.boxModel.replace(/-/,""),_1ae={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1aa,dj_opera8:maj(_1aa)==8,dj_opera9:maj(_1aa)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_1ae["dj_"+_1ad]=true;for(var p in _1ae){if(_1ae[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 _1ae){if(_1ae[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,_1b2,node,_1b4,obj,_1b6,_1b7){if(obj!=this._obj){this.stop();this._initialDelay=_1b7||500;this._subsequentDelay=_1b6||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1b2,_1b4);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,_1b9,_1ba,_1bb,_1bc,_1bd){if(_1b9.keyCode){_1b9.charOrCode=_1b9.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1b9.charCode){_1b9.charOrCode=String.fromCharCode(_1b9.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==_1b9.charOrCode&&(_1b9.ctrlKey===undefined||_1b9.ctrlKey==evt.ctrlKey)&&(_1b9.altKey===undefined||_1b9.altKey==evt.ctrlKey)&&(_1b9.shiftKey===undefined||_1b9.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_1b9,_1ba,node,_1bb,_1b9,_1bc,_1bd);}else{if(dijit.typematic._obj==_1b9){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1b9){dijit.typematic.stop();}})];},addMouseListener:function(node,_1c1,_1c2,_1c3,_1c4){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1c1,node,_1c2,node,_1c3,_1c4);}),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,_1c1,node,_1c2,node,_1c3,_1c4);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1cb,_1cc,_1cd,_1ce,_1cf,_1d0,_1d1){return this.addKeyListener(_1cc,_1cd,_1ce,_1cf,_1d0,_1d1).concat(this.addMouseListener(_1cb,_1ce,_1cf,_1d0,_1d1));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",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());var cs=dojo.getComputedStyle(div);if(cs){var _1d4=cs.backgroundImage;var _1d5=(cs.borderTopColor==cs.borderRightColor)||(_1d4!=null&&(_1d4=="none"||_1d4=="url(invalid-url:)"));dojo[_1d5?"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 _1d8=this.getWaiRole(elem);return role?(_1d8.indexOf(role)>-1):(_1d8.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _1dc=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_1dc)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_1dc+" ").indexOf(" "+role+" ")<0){var _1dd=dojo.trim(_1dc.replace(this._XhtmlRoles,""));var _1de=dojo.trim(_1dc.replace(_1dd,""));dojo.attr(elem,"role",_1de+(_1de?" ":"")+role);}}},removeWaiRole:function(elem,role){var _1e1=dojo.attr(elem,"role");if(!_1e1){return;}if(role){var _1e2=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_1e1+" ").replace(" "+_1e2+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1e5){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1e5);}return elem.hasAttribute?elem.hasAttribute("aria-"+_1e5):!!elem.getAttribute("aria-"+_1e5);},getWaiState:function(elem,_1e7){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1e7);}return elem.getAttribute("aria-"+_1e7)||"";},setWaiState:function(elem,_1e9,_1ea){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1e9,_1ea);}else{elem.setAttribute("aria-"+_1e9,_1ea);}},removeWaiState:function(elem,_1ec){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1ec);}else{elem.removeAttribute("aria-"+_1ec);}}});}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(_1ed,_1ee){if(_1ed&&dojo.isFunction(_1ed._onConnect)){_1ed._onConnect(_1ee);}});dijit._connectOnUseEventHandler=function(_1ef){};(function(){var _1f0={};var _1f1=function(dc){if(!_1f0[dc]){var r=[];var _1f4;var _1f5=dojo.getObject(dc).prototype;for(var _1f6 in _1f5){if(dojo.isFunction(_1f5[_1f6])&&(_1f4=_1f6.match(/^_set([a-zA-Z]*)Attr$/))&&_1f4[1]){r.push(_1f4[1].charAt(0).toLowerCase()+_1f4[1].substr(1));}}_1f0[dc]=r;}return _1f0[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(_1f7,_1f8){this.create(_1f7,_1f8);},create:function(_1f9,_1fa){this.srcNodeRef=dojo.byId(_1fa);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(_1f9){this.params=_1f9;dojo.mixin(this,_1f9);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _1fc=this.srcNodeRef;if(_1fc&&_1fc.parentNode){_1fc.parentNode.replaceChild(this.domNode,_1fc);}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 _1fd=function(attr,_1ff){if((_1ff.params&&attr in _1ff.params)||_1ff[attr]){_1ff.attr(attr,_1ff[attr]);}};for(var attr in this.attributeMap){_1fd(attr,this);}dojo.forEach(_1f1(this.declaredClass),function(a){if(!(a in this.attributeMap)){_1fd(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_202){this.destroyDescendants(_202);this.destroy(_202);},destroy:function(_203){this.uninitialize();dojo.forEach(this._connects,function(_204){dojo.forEach(_204,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_203);dijit.registry.remove(this.id);},destroyRendering:function(_206){if(this.bgIframe){this.bgIframe.destroy(_206);delete this.bgIframe;}if(this.domNode){if(_206){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_206){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_207){dojo.forEach(this.getChildren(),function(_208){if(_208.destroyRecursive){_208.destroyRecursive(_207);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_20a){if(_20a in this._deferredConnects){var _20b=this[this._deferredConnects[_20a]||"domNode"];this.connect(_20b,_20a.toLowerCase(),_20a);delete this._deferredConnects[_20a];}},_setClassAttr:function(_20c){var _20d=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_20d,this["class"]);this["class"]=_20c;dojo.addClass(_20d,_20c);},_setStyleAttr:function(_20e){var _20f=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_20e)){dojo.style(_20f,_20e);}else{if(_20f.style.cssText){_20f.style.cssText+="; "+_20e;}else{_20f.style.cssText=_20e;}}this["style"]=_20e;},setAttribute:function(attr,_211){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_211);},_attrToDom:function(attr,_213){var _214=this.attributeMap[attr];dojo.forEach(dojo.isArray(_214)?_214:[_214],function(_215){var _216=this[_215.node||_215||"domNode"];var type=_215.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_213)){_213=dojo.hitch(this,_213);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_216,attr,_213);break;case "innerHTML":_216.innerHTML=_213;break;case "class":dojo.removeClass(_216,this[attr]);dojo.addClass(_216,_213);break;}},this);this[attr]=_213;},attr:function(name,_219){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _21c=this._getAttrNames(name);if(args==2){if(this[_21c.s]){return this[_21c.s](_219)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_219);}this[name]=_219;}return this;}else{if(this[_21c.g]){return this[_21c.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 [];}},getChildren:function(){if(this.containerNode){return dijit.findWidgets(this.containerNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_222,_223){var d=dojo;var dc=dojo.connect;var _226=[];if(_222=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_223);_226.push(dc(obj,"onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dc(obj,"onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));if(d.isFF){_226.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_222="onclick";}_226.push(dc(obj,_222,this,_223));this._connects.push(_226);return _226;},disconnect:function(_22b){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_22b){dojo.forEach(_22b,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(_22d,_22e){if(_22d["declaredClass"]&&_22d["addChild"]){_22d.addChild(this,_22e);}else{dojo.place(this.domNode,_22d,_22e);}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(_238,map,_23a,_23b){_23b=_23b||dojo.global;_23a=(!_23a)?function(v){return v;}:dojo.hitch(_23b,_23a);return _238.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_23d,key,_23f){var _240=dojo.getObject(key,false,map);if(_23f){_240=dojo.getObject(_23f,false,_23b).call(_23b,_240,key);}return _23a(_240,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.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(_243,_244){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 _245=dojo.date.stamp._isoRegExp.exec(_243);var _246=null;if(_245){_245.shift();if(_245[1]){_245[1]--;}if(_245[6]){_245[6]*=1000;}if(_244){_244=new Date(_244);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _244["get"+prop]();}).forEach(function(_248,_249){if(_245[_249]===undefined){_245[_249]=_248;}});}_246=new Date(_245[0]||1970,_245[1]||0,_245[2]||1,_245[3]||0,_245[4]||0,_245[5]||0,_245[6]||0);var _24a=0;var _24b=_245[7]&&_245[7].charAt(0);if(_24b!="Z"){_24a=((_245[8]||0)*60)+(Number(_245[9])||0);if(_24b!="-"){_24a*=-1;}}if(_24b){_24a-=_246.getTimezoneOffset();}if(_24a){_246.setTime(_246.getTime()+_24a*60000);}}return _246;};dojo.date.stamp.toISOString=function(_24c,_24d){var _=function(n){return (n<10)?"0"+n:n;};_24d=_24d||{};var _250=[];var _251=_24d.zulu?"getUTC":"get";var date="";if(_24d.selector!="time"){var year=_24c[_251+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_24c[_251+"Month"]()+1),_(_24c[_251+"Date"]())].join("-");}_250.push(date);if(_24d.selector!="date"){var time=[_(_24c[_251+"Hours"]()),_(_24c[_251+"Minutes"]()),_(_24c[_251+"Seconds"]())].join(":");var _255=_24c[_251+"Milliseconds"]();if(_24d.milliseconds){time+="."+(_255<100?"0":"")+_(_255);}if(_24d.zulu){time+="Z";}else{if(_24d.selector!="time"){var _256=_24c.getTimezoneOffset();var _257=Math.abs(_256);time+=(_256>0?"-":"+")+_(Math.floor(_257/60))+":"+_(_257%60);}}_250.push(time);}return _250.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _259=d._scopeName+"Type";var qry="["+_259+"]";var _25b=0,_25c={};var _25d=function(_25e,_25f){var nso=_25f||_25c;if(dojo.isIE){var cn=_25e["__dojoNameCache"];if(cn&&nso[cn]===_25e){return cn;}}var name;do{name="__"+_25b++;}while(name in nso);nso[name]=_25e;return name;};function _263(_264){if(d.isString(_264)){return "string";}if(typeof _264=="number"){return "number";}if(typeof _264=="boolean"){return "boolean";}if(d.isFunction(_264)){return "function";}if(d.isArray(_264)){return "array";}if(_264 instanceof Date){return "date";}if(_264 instanceof d._Url){return "url";}return "object";};function _265(_266,type){switch(type){case "string":return _266;case "number":return _266.length?Number(_266):NaN;case "boolean":return typeof _266=="boolean"?_266:!(_266.toLowerCase()=="false");case "function":if(d.isFunction(_266)){_266=_266.toString();_266=d.trim(_266.substring(_266.indexOf("{")+1,_266.length-1));}try{if(_266.search(/[^\w\.]+/i)!=-1){_266=_25d(new Function(_266),this);}return d.getObject(_266,false);}catch(e){return new Function();}case "array":return _266?_266.split(/\s*,\s*/):[];case "date":switch(_266){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_266);}case "url":return d.baseUrl+_266;default:return d.fromJson(_266);}};var _268={};function _269(_26a){if(!_268[_26a]){var cls=d.getObject(_26a);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_26a+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _26c=cls.prototype;var _26d={},_26e={};for(var name in _26c){if(name.charAt(0)=="_"){continue;}if(name in _26e){continue;}var _270=_26c[name];_26d[name]=_263(_270);}_268[_26a]={cls:cls,params:_26d};}return _268[_26a];};this._functionFromScript=function(_271){var _272="";var _273="";var _274=_271.getAttribute("args");if(_274){d.forEach(_274.split(/\s*,\s*/),function(part,idx){_272+="var "+part+" = arguments["+idx+"]; ";});}var _277=_271.getAttribute("with");if(_277&&_277.length){d.forEach(_277.split(/\s*,\s*/),function(part){_272+="with("+part+"){";_273+="}";});}return new Function(_272+_271.innerHTML+_273);};this.instantiate=function(_279,_27a){var _27b=[];_27a=_27a||{};d.forEach(_279,function(node){if(!node){return;}var type=_259 in _27a?_27a[_259]:node.getAttribute(_259);if(!type||!type.length){return;}var _27e=_269(type),_27f=_27e.cls,ps=_27f._noScript||_27f.prototype._noScript;var _281={},_282=node.attributes;for(var name in _27e.params){var item=name in _27a?{value:_27a[name],specified:true}:_282.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _285=item.value;switch(name){case "class":_285="className" in _27a?_27a.className:node.className;break;case "style":_285="style" in _27a?_27a.style:(node.style&&node.style.cssText);}var _286=_27e.params[name];if(typeof _285=="string"){_281[name]=_265(_285,_286);}else{_281[name]=_285;}}if(!ps){var _287=[],_288=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_289){var _28a=_289.getAttribute("event"),type=_289.getAttribute("type"),nf=d.parser._functionFromScript(_289);if(_28a){if(type=="dojo/connect"){_287.push({event:_28a,func:nf});}else{_281[_28a]=nf;}}else{_288.push(nf);}});}var _28c=_27f["markupFactory"];if(!_28c&&_27f["prototype"]){_28c=_27f.prototype["markupFactory"];}var _28d=_28c?_28c(_281,node,_27f):new _27f(_281,node);_27b.push(_28d);var _28e=node.getAttribute("jsId");if(_28e){d.setObject(_28e,_28d);}if(!ps){d.forEach(_287,function(_28f){d.connect(_28d,_28f.event,null,_28f.func);});d.forEach(_288,function(func){func.call(_28d);});}});d.forEach(_27b,function(_291){if(_291&&_291.startup&&!_291._started&&(!_291.getParent||!_291.getParent())){_291.startup();}});return _27b;};this.parse=function(_292){var list=d.query(qry,_292);var _294=this.instantiate(list);return _294;};}();(function(){var _295=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,_295);}else{dojo._loaders.unshift(_295);}})();}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _297=this.declaredClass,_298=this;return dojo.string.substitute(tmpl,this,function(_299,key){if(key.charAt(0)=="!"){_299=dojo.getObject(key.substr(1),false,_298);}if(typeof _299=="undefined"){throw new Error(_297+" template:"+key);}if(_299==null){return "";}return key.charAt(0)=="!"?_299:_299.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _29b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_29b)){node=dojo._toDom(this._stringRepl(_29b));}else{node=_29b.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_2a0){var dest=this.containerNode;if(_2a0&&dest){while(_2a0.hasChildNodes()){dest.appendChild(_2a0.firstChild);}}},_attachTemplateNodes:function(_2a2,_2a3){_2a3=_2a3||function(n,p){return n.getAttribute(p);};var _2a6=dojo.isArray(_2a2)?_2a2:(_2a2.all||_2a2.getElementsByTagName("*"));var x=dojo.isArray(_2a2)?0:-1;for(;x<_2a6.length;x++){var _2a8=(x==-1)?_2a2:_2a6[x];if(this.widgetsInTemplate&&_2a3(_2a8,"dojoType")){continue;}var _2a9=_2a3(_2a8,"dojoAttachPoint");if(_2a9){var _2aa,_2ab=_2a9.split(/\s*,\s*/);while((_2aa=_2ab.shift())){if(dojo.isArray(this[_2aa])){this[_2aa].push(_2a8);}else{this[_2aa]=_2a8;}}}var _2ac=_2a3(_2a8,"dojoAttachEvent");if(_2ac){var _2ad,_2ae=_2ac.split(/\s*,\s*/);var trim=dojo.trim;while((_2ad=_2ae.shift())){if(_2ad){var _2b0=null;if(_2ad.indexOf(":")!=-1){var _2b1=_2ad.split(":");_2ad=trim(_2b1[0]);_2b0=trim(_2b1[1]);}else{_2ad=trim(_2ad);}if(!_2b0){_2b0=_2ad;}this.connect(_2a8,_2ad,_2b0);}}}var role=_2a3(_2a8,"waiRole");if(role){dijit.setWaiRole(_2a8,role);}var _2b3=_2a3(_2a8,"waiState");if(_2b3){dojo.forEach(_2b3.split(/\s*,\s*/),function(_2b4){if(_2b4.indexOf("-")!=-1){var pair=_2b4.split("-");dijit.setWaiState(_2a8,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2b6,_2b7,_2b8){var _2b9=dijit._Templated._templateCache;var key=_2b7||_2b6;var _2bb=_2b9[key];if(_2bb){if(!_2bb.ownerDocument||_2bb.ownerDocument==dojo.doc){return _2bb;}dojo.destroy(_2bb);}if(!_2b7){_2b7=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_2b6)));}_2b7=dojo.string.trim(_2b7);if(_2b8||_2b7.match(/\$\{([^\}]+)\}/g)){return (_2b9[key]=_2b7);}else{return (_2b9[key]=dojo._toDom(_2b7));}};dijit._Templated._sanitizeTemplateString=function(_2bc){if(_2bc){_2bc=_2bc.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2bd=_2bc.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2bd){_2bc=_2bd[1];}}else{_2bc="";}return _2bc;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2be=dijit._Templated._templateCache;for(var key in _2be){var _2c0=_2be[key];if(!isNaN(_2c0.nodeType)){dojo.destroy(_2c0);}delete _2be[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_2c1){if(_2c1.reset){_2c1.reset();}});},validate:function(){var _2c2=false;return dojo.every(dojo.map(this.getDescendants(),function(_2c3){_2c3._hasBeenBlurred=true;var _2c4=_2c3.disabled||!_2c3.validate||_2c3.validate();if(!_2c4&&!_2c2){dijit.scrollIntoView(_2c3.containerNode||_2c3.domNode);_2c3.focus();_2c2=true;}return _2c4;}),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(_2c9){if(!_2c9.name){return;}var _2ca=map[_2c9.name]||(map[_2c9.name]=[]);_2ca.push(_2c9);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _2cc=map[name],_2cd=dojo.getObject(name,false,obj);if(_2cd===undefined){continue;}if(!dojo.isArray(_2cd)){_2cd=[_2cd];}if(typeof _2cc[0].checked=="boolean"){dojo.forEach(_2cc,function(w,i){w.attr("value",dojo.indexOf(_2cd,w.value)!=-1);});}else{if(_2cc[0]._multiValue){_2cc[0].attr("value",_2cd);}else{dojo.forEach(_2cc,function(w,i){w.attr("value",_2cd[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(_2d3){var name=_2d3.name;if(!name||_2d3.disabled){return;}var _2d5=_2d3.attr("value");if(typeof _2d3.checked=="boolean"){if(/Radio/.test(_2d3.declaredClass)){if(_2d5!==false){dojo.setObject(name,_2d5,obj);}else{_2d5=dojo.getObject(name,false,obj);if(_2d5===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_2d5!==false){ary.push(_2d5);}}}else{dojo.setObject(name,_2d5,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_2d7){return !_2d7.disabled&&_2d7.isValid&&!_2d7.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_2d8){},_widgetChange:function(_2d9){var _2da=this._lastValidState;if(!_2d9||this._lastValidState===undefined){_2da=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_2da;}}else{if(_2d9.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_2d9);},this);if(!_2d9.isValid()&&!_2d9.attr("disabled")){this._invalidWidgets.push(_2d9);}_2da=(this._invalidWidgets.length===0);}}if(_2da!==this._lastValidState){this._lastValidState=_2da;this.onValidStateChange(_2da);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _2dc=this;var _2dd=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_2df){_2dd.push(_2dc.connect(_2df,"validate",dojo.hitch(_2dc,"_widgetChange",_2df)));_2dd.push(_2dc.connect(_2df,"_setDisabledAttr",dojo.hitch(_2dc,"_widgetChange",_2df)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_2e0){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_2e1){var _2e2=dijit._getTabNavigable(dojo.byId(_2e1));this._firstFocusItem=_2e2.lowest||_2e2.first||_2e1;this._lastFocusItem=_2e2.last||_2e2.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_2e1,"tabindex","0");this._firstFocusItem=_2e1;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_2e4){this.node.className="dijitDialogUnderlay "+_2e4;},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _2e7=dijit.getViewport();os.top=_2e7.t+"px";os.left=_2e7.l+"px";is.width=_2e7.w+"px";is.height=_2e7.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){if(this.domNode){this.domNode.style.display="none";}if(this.bgIframe&&this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");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 _2ea=dijit.byId(id);return _2ea.isContainer?_2ea:null;}}return null;},_getSibling:function(_2eb){var node=this.domNode;do{node=node[_2eb+"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);}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_2ef,_2f0){var _2f1=this.containerNode;if(_2f0&&typeof _2f0=="number"){var _2f2=this.getChildren();if(_2f2&&_2f2.length>=_2f0){_2f1=_2f2[_2f0-1].domNode;_2f0="after";}}dojo.place(_2ef.domNode,_2f1,_2f0);if(this._started&&!_2ef._started){_2ef.startup();}},removeChild:function(_2f3){if(typeof _2f3=="number"&&_2f3>0){_2f3=this.getChildren()[_2f3];}if(!_2f3||!_2f3.domNode){return;}var node=_2f3.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(_2f7){dojo.forEach(this.getChildren(),function(_2f8){_2f8.destroyRecursive(_2f7);});},_getSiblingOfChild:function(_2f9,dir){var node=_2f9.domNode;var _2fc=(dir>0?"nextSibling":"previousSibling");do{node=node[_2fc];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_2fd){var _2fe=this.getChildren();for(var i=0,c;c=_2fe[i];i++){if(c==_2fd){return i;}}return -1;}});}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(_301){_301.startup();});if(!this.getParent||!this.getParent()){this.resize();this._viewport=dijit.getViewport();this.connect(dojo.global,"onresize",function(){var _302=dijit.getViewport();if(_302.w!=this._viewport.w||_302.h!=this._viewport.h){this._viewport=_302;this.resize();}});}this.inherited(arguments);},resize:function(_303,_304){var node=this.domNode;if(_303){dojo.marginBox(node,_303);if(_303.t){node.style.top=_303.t+"px";}if(_303.l){node.style.left=_303.l+"px";}}var mb=_304||{};dojo.mixin(mb,_303||{});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(_30c){dojo.addClass(_30c.domNode,this.baseClass+"-child");if(_30c.baseClass){dojo.addClass(_30c.domNode,this.baseClass+"-"+_30c.baseClass);}},addChild:function(_30d,_30e){this.inherited(arguments);if(this._started){this._setupChild(_30d);}},removeChild:function(_30f){dojo.removeClass(_30f.domNode,this.baseClass+"-child");if(_30f.baseClass){dojo.removeClass(_30f.domNode,this.baseClass+"-"+_30f.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 _315=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_318,dim){_318.resize?_318.resize(dim):dojo.marginBox(_318.domNode,dim);dojo.mixin(_318,dojo.marginBox(_318.domNode));dojo.mixin(_318,dim);};dijit.layout.layoutChildren=function(_31a,dim,_31c){dim=dojo.mixin({},dim);dojo.addClass(_31a,"dijitLayoutContainer");_31c=dojo.filter(_31c,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_31c,function(item){return item.layoutAlign=="client";}));dojo.forEach(_31c,function(_31f){var elm=_31f.domNode,pos=_31f.layoutAlign;var _322=elm.style;_322.left=dim.l+"px";_322.top=dim.t+"px";_322.bottom=_322.right="auto";dojo.addClass(elm,"dijitAlign"+_315(pos));if(pos=="top"||pos=="bottom"){size(_31f,{w:dim.w});dim.h-=_31f.h;if(pos=="top"){dim.t+=_31f.h;}else{_322.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_31f,{h:dim.h});dim.w-=_31f.w;if(pos=="left"){dim.l+=_31f.w;}else{_322.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_31f,dim);}}}});};})();}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _323=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont,_327){if(_327){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(_32f,node){dojo.mixin(this,_32f||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_323++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_332){if(undefined!==cont){this.content=cont;}if(_332){this._mixin(_332);}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 _334=this.onContentError(e);try{node.innerHTML=_334;}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 _337=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_337){cont=_337[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(_339){var _33a={},key;for(key in _339){if(key in _33a){continue;}this[key]=_339[key];}},_parse:function(){var _33c=this.node;try{this.parseResults=dojo.parser.parse(_33c,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_33f){var _340=this["on"+type+"Error"].call(this,err);if(_33f){console.error(_33f,err);}else{if(_340){dojo.html._setNodeContent(this.node,_340,true);}}}});dojo.html.set=function(node,cont,_343){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_343){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_343,{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(_345,_346,_347){_347=dojo.i18n.normalizeLocale(_347);var _348=_347.split("-");var _349=[_345,"nls",_346].join(".");var _34a=dojo._loadedModules[_349];if(_34a){var _34b;for(var i=_348.length;i>0;i--){var loc=_348.slice(0,i).join("_");if(_34a[loc]){_34b=_34a[loc];break;}}if(!_34b){_34b=_34a.ROOT;}if(_34b){var _34e=function(){};_34e.prototype=_34b;return new _34e();}}throw new Error("Bundle not found: "+_346+" in "+_345+" , locale="+_347);};dojo.i18n.normalizeLocale=function(_34f){var _350=_34f?_34f.toLowerCase():dojo.locale;if(_350=="root"){_350="ROOT";}return _350;};dojo.i18n._requireLocalization=function(_351,_352,_353,_354){var _355=dojo.i18n.normalizeLocale(_353);var _356=[_351,"nls",_352].join(".");var _357="";if(_354){var _358=_354.split(",");for(var i=0;i<_358.length;i++){if(_355["indexOf"](_358[i])==0){if(_358[i].length>_357.length){_357=_358[i];}}}if(!_357){_357="ROOT";}}var _35a=_354?_357:_355;var _35b=dojo._loadedModules[_356];var _35c=null;if(_35b){if(dojo.config.localizationComplete&&_35b._built){return;}var _35d=_35a.replace(/-/g,"_");var _35e=_356+"."+_35d;_35c=dojo._loadedModules[_35e];}if(!_35c){_35b=dojo["provide"](_356);var syms=dojo._getModuleSymbols(_351);var _360=syms.concat("nls").join("/");var _361;dojo.i18n._searchLocalePath(_35a,_354,function(loc){var _363=loc.replace(/-/g,"_");var _364=_356+"."+_363;var _365=false;if(!dojo._loadedModules[_364]){dojo["provide"](_364);var _366=[_360];if(loc!="ROOT"){_366.push(loc);}_366.push(_352);var _367=_366.join("/")+".js";_365=dojo._loadPath(_367,null,function(hash){var _369=function(){};_369.prototype=_361;_35b[_363]=new _369();for(var j in hash){_35b[_363][j]=hash[j];}});}else{_365=true;}if(_365&&_35b[_363]){_361=_35b[_363];}else{_35b[_363]=_361;}if(_354){return true;}});}if(_354&&_355!=_357){_35b[_355.replace(/-/g,"_")]=_35b[_357.replace(/-/g,"_")];}};(function(){var _36b=dojo.config.extraLocale;if(_36b){if(!_36b instanceof Array){_36b=[_36b];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_36f,_370){req(m,b,_36f,_370);if(_36f){return;}for(var i=0;i<_36b.length;i++){req(m,b,_36b[i],_370);}};}})();dojo.i18n._searchLocalePath=function(_372,down,_374){_372=dojo.i18n.normalizeLocale(_372);var _375=_372.split("-");var _376=[];for(var i=_375.length;i>0;i--){_376.push(_375.slice(0,i).join("-"));}_376.push(false);if(down){_376.reverse();}for(var j=_376.length-1;j>=0;j--){var loc=_376[j]||"ROOT";var stop=_374(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_37b,_37c){function _37d(_37e){return true;};_37d();var _37f=dojo.config.extraLocale||[];for(var i=0;i<_37f.length;i++){_37d(_37f[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,ioArgs:{},isContainer:true,postMixInProperties:function(){this.inherited(arguments);var _381=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_381);this.errorMessage=dojo.string.substitute(this.errorMessage,_381);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.isLoaded){dojo.forEach(this.getChildren(),function(_382){_382.startup();});if(this.doLayout){this._checkIfSingleChild();}if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){this._scheduleLayout();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _383=dojo.query(">",this.containerNode),_384=_383.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_386=dojo.filter(_384.map(dijit.byNode),function(_387){return _387&&_387.domNode&&_387.resize;});if(_383.length==_384.length&&_386.length==1){this._singleChild=_386[0];}else{delete this._singleChild;}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.cancel();this.href=href;if(this._created&&(this.preload||this._isShown())){return this.refresh();}else{this._hrefChanged=true;}},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;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}},destroyRecursive:function(_38c){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});}},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}},_onShow:function(){if(this._needLayout){this._layoutChildren();}this._loadCheck();if(this.onShow){this.onShow();}},_loadCheck:function(){if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){delete this._hrefChanged;this.refresh();}},refresh:function(){this.cancel();this._setContent(this.onDownloadStart(),true);var self=this;var _393={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_393,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_393));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.canceled){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: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _398=this._contentSetter;dojo.forEach(this.getChildren(),function(_399){if(_399.destroyRecursive){_399.destroyRecursive();}});if(_398){dojo.forEach(_398.parseResults,function(_39a){if(_39a.destroyRecursive&&_39a.domNode&&_39a.domNode.parentNode==dojo.body()){_39a.destroyRecursive();}});delete _398.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_39c){this.destroyDescendants();delete this._singleChild;var _39d=this._contentSetter;if(!(_39d&&_39d instanceof dojo.html._ContentSetter)){_39d=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _39f=this.onContentError(e);try{this.containerNode.innerHTML=_39f;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _3a0=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_39d,_3a0);_39d.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_39c){dojo.forEach(this.getChildren(),function(_3a1){_3a1.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_3a4){var _3a5=this["on"+type+"Error"].call(this,err);if(_3a4){console.error(_3a4,err);}else{if(_3a5){this._setContent(_3a5,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_layoutChildren:function(){if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_3a7){if(_3a7.resize){_3a7.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_3a9){},onDownloadError:function(_3aa){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_3ac,_3ad){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_3ad.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3ad.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();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 _3b3=(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(!_3b3){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_3b3){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");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\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:dojo.delegate(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,_fixSizes:true,postMixInProperties:function(){var _3b4=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_3b4);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",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");}var _3b9={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _3bb=dijit._underlay;if(!_3bb){_3bb=dijit._underlay=new dijit.DialogUnderlay(_3b9);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_3bb.attr(_3b9);_3bb.show();},onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";dijit._underlay.hide();}});},uninitialize:function(){var _3bc=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_3bc=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_3bc=true;this._fadeOut.stop();}if(this.open||_3bc){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _3be=dijit.getViewport();if(mb.w>=_3be.w||mb.h>=_3be.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_3be.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_3be.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _3c0=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_3c0.l+(p?p.l:(_3c0.w-mb.w)/2))+"px",top:Math.floor(_3c0.t+(p?p.t:(_3c0.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 _3c6=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_3c6){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_3c6){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,function(){var _3c7=dijit.getViewport();if(!this._oldViewport||_3c7.h!=this._oldViewport.h||_3c7.w!=this._oldViewport.w){this.layout();this._oldViewport=_3c7;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});if(this._fixSizes){dojo.style(this.containerNode,{width:"auto",height:"auto"});}this.open=true;this._onShow();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},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"){dijit._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);},_onCloseEnter:function(){dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");},_onCloseLeave:function(){dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},_setDisabledAttr:function(_3c8){this.disabled=_3c8;dojo.attr(this.focusNode,"disabled",_3c8);dijit.setWaiState(this.focusNode,"disabled",_3c8);if(_3c8){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_3c9){dojo.deprecated("setDisabled("+_3c9+") is deprecated. Use attr('disabled',"+_3c9+") instead.","","2.0");this.attr("disabled",_3c9);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_3cb){var _3cc=_3cb.currentTarget;if(_3cc&&_3cc.getAttribute){this.stateModifier=_3cc.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_3cb.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _3cd=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_3cd);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _3ce=this.baseClass.split(" ");function _3cf(_3d0){_3ce=_3ce.concat(dojo.map(_3ce,function(c){return c+_3d0;}),"dijit"+_3d0);};if(this.checked){_3cf("Checked");}if(this.state){_3cf(this.state);}if(this.selected){_3cf("Selected");}if(this.disabled){_3cf("Disabled");}else{if(this.readOnly){_3cf("ReadOnly");}else{if(this._active){_3cf(this.stateModifier+"Active");}else{if(this._focused){_3cf("Focused");}if(this._hovering){_3cf(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_3d3={};dojo.forEach(tn.className.split(" "),function(c){_3d3[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _3d3[c];});}dojo.forEach(_3ce,function(c){_3d3[c]=true;});var _3d7=[];for(var c in _3d3){_3d7.push(c);}tn.className=_3d7.join(" ");this._stateClasses=_3ce;},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_3db){},_onChangeActive:false,_handleOnChange:function(_3dc,_3dd){this._lastValue=_3dc;if(this._lastValueReported==undefined&&(_3dd===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_3dc;}if((this.intermediateChanges||_3dd||_3dd===undefined)&&((typeof _3dc!=typeof this._lastValueReported)||this.compare(_3dc,this._lastValueReported)!=0)){this._lastValueReported=_3dc;if(this._onChangeActive){this.onChange(_3dc);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_3de){dojo.deprecated("dijit.form._FormWidget:setValue("+_3de+") is deprecated.  Use attr('value',"+_3de+") instead.","","2.0");this.attr("value",_3de);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){if(dojo.isIE||dojo.isWebKit){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_3e1,_3e2){this.value=_3e1;this._handleOnChange(_3e1,_3e2);},_getValueAttr:function(_3e3){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isWebKit){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"&&!(this.type=="submit"||this.type=="reset")){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _3e9=dijit.byNode(node);if(_3e9&&typeof _3e9._onSubmit=="function"){_3e9._onSubmit(e);break;}}}}},_setValueAttr:function(_3ea){var attr=this.attributeMap.value||"";if(this[attr.node||attr||"domNode"].tagName=="BUTTON"){if(_3ea!=this.value){console.debug("Cannot change the value attribute on a Button widget.");}}},_fillContent:function(_3ec){if(_3ec&&!("label" in this.params)){this.attr("label",_3ec.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_3ef){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3ef);},_setLabelAttr:function(_3f0){this.containerNode.innerHTML=this.label=_3f0;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){if(this.srcNodeRef){var _3f1=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_3f1[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _3f2=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_3f2);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _3f5=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_3f5||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _3f9=this.dropDown;if(!_3f9){return;}if(!this._opened){if(_3f9.href&&!_3f9.isLoaded){var self=this;var _3fb=dojo.connect(_3f9,"onLoad",function(){dojo.disconnect(_3fb);self._openDropDown();});_3f9.refresh();return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _3fc=this.dropDown;var _3fd=_3fc.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_3fc,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_3fc.domNode.style.width=_3fd;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_3fc.domNode.offsetWidth){var _3ff=null;if(!this.isLeftToRight()){_3ff=_3fc.domNode.parentNode;var _400=_3ff.offsetLeft+_3ff.offsetWidth;}dojo.marginBox(_3fc.domNode,{w:this.domNode.offsetWidth});if(_3ff){_3ff.style.left=_400-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_3fc.focus){_3fc.focus();}},_closeDropDown:function(_401){if(this._opened){dijit.popup.close(this.dropDown);if(_401){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_409){this.checked=_409;dojo.attr(this.focusNode||this.domNode,"checked",_409);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_409);this._setStateClass();this._handleOnChange(_409,true);},setChecked:function(_40a){dojo.deprecated("setChecked("+_40a+") is deprecated. Use attr('checked',"+_40a+") instead.","","2.0");this.attr("checked",_40a);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_40b,_40c,uri){if(window[_40b]){return window[_40b];}if(window.frames[_40b]){return window.frames[_40b];}var _40e=null;var turi=uri;if(!turi){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");}turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _410=dojo.isIE?"<iframe name=\""+_40b+"\" src=\""+turi+"\" onload=\""+_40c+"\">":"iframe";_40e=dojo.doc.createElement(_410);with(_40e){name=_40b;setAttribute("name",_40b);id=_40b;}dojo.body().appendChild(_40e);window[_40b]=_40e;with(_40e.style){if(!(dojo.isSafari<3)){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_40e,turi,true);_40e.onload=new Function(_40c);}return _40e;},setSrc:function(_411,src,_413){try{if(!_413){if(dojo.isWebKit){_411.location=src;}else{frames[_411.name].location=src;}}else{var idoc;if(dojo.isIE||dojo.isWebKit>521){idoc=_411.contentWindow.document;}else{if(dojo.isSafari){idoc=_411.document;}else{idoc=_411.contentWindow;}}if(!idoc){_411.location=src;return;}else{idoc.location.replace(src);}}}catch(e){console.log("dojo.io.iframe.setSrc: ",e);}},doc:function(_415){var doc=_415.contentDocument||(((_415.name)&&(_415.document)&&(document.getElementsByTagName("iframe")[_415.name].contentWindow)&&(document.getElementsByTagName("iframe")[_415.name].contentWindow.document)))||((_415.name)&&(document.frames[_415.name])&&(document.frames[_415.name].document))||null;return doc;},send:function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _41b=null;try{var _41c=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _41f=_41c.handleAs;_41b=ifd;if(_41f!="html"){if(_41f=="xml"){if(dojo.isIE){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _420=(dii._frame.contentWindow.document).documentElement.innerText;_420=_420.replace(/>\s+</g,"><");_420=dojo.trim(_420);var _421={responseText:_420};_41b=dojo._contentHandlers["xml"](_421);}}else{_41b=ifd.getElementsByTagName("textarea")[0].value;if(_41f=="json"){_41b=dojo.fromJson(_41b);}else{if(_41f=="javascript"){_41b=dojo.eval(_41b);}}}}}catch(e){_41b=e;}finally{_41c._callNext();}return _41b;},function(_422,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _422;});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 _428=dfd.ioArgs;var args=_428.args;_428._contentToClean=[];var fn=dojo.byId(args["form"]);var _42b=args["content"]||{};if(fn){if(_42b){var _42c=function(name,_42e){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+name+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=name;}tn.value=_42e;fn.appendChild(tn);_428._contentToClean.push(name);};for(var x in _42b){var val=_42b[x];if(dojo.isArray(val)&&val.length>1){var i;for(i=0;i<val.length;i++){_42c(x,val[i]);}}else{if(!fn[x]){_42c(x,val);}else{fn[x].value=val;}}}}var _433=fn.getAttributeNode("action");var _434=fn.getAttributeNode("method");var _435=fn.getAttributeNode("target");if(args["url"]){_428._originalAction=_433?_433.value:null;if(_433){_433.value=args.url;}else{fn.setAttribute("action",args.url);}}if(!_434||!_434.value){if(_434){_434.value=(args["method"])?args["method"]:"post";}else{fn.setAttribute("method",(args["method"])?args["method"]:"post");}}_428._originalTarget=_435?_435.value:null;if(_435){_435.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;fn.submit();}else{var _436=args.url+(args.url.indexOf("?")>-1?"&":"?")+_428.query;this.setSrc(this._frame,_436,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _438=dfd.ioArgs;var args=_438.args;var _43a=dojo.byId(args.form);if(_43a){var _43b=_438._contentToClean;for(var i=0;i<_43b.length;i++){var key=_43b[i];for(var j=0;j<_43a.childNodes.length;j++){var _43f=_43a.childNodes[j];if(_43f.name==key){dojo.destroy(_43f);break;}}}if(_438["_originalAction"]){_43a.setAttribute("action",_438._originalAction);}if(_438["_originalTarget"]){_43a.setAttribute("target",_438._originalTarget);_43a.target=_438._originalTarget;}}_438._finished=true;}};}if(!dojo._hasResource["wc.render.Context"]){dojo._hasResource["wc.render.Context"]=true;dojo.provide("wc.render.Context");wc.render.contexts={};wc.render.getContextById=function(id){return wc.render.contexts[id];};wc.render.updateContext=function(id,_442){console.debug("wc.render.updateContext: "+id);wc.render.getContextById(id).update(_442);};wc.render.declareContext=function(id,_444,_445){if(this.contexts[id]!=null&&this.contexts[id]!=""){console.debug("Render context with id =  "+id+" already exits.Please use a different id");return;}var _446=new wc.render.Context(id,_444,_445);this.contexts[id]=_446;return _446;};dojo.declare("wc.render.Context",null,{constructor:function(id,_448,_449){this.id=id;this.properties=_448?_448:{};this.url=_449;this.contextChangedEventName=id+"/RenderContextChanged";},id:undefined,properties:undefined,url:undefined,contextChangedEventName:undefined,update:function(_44a){if(!this.properties){this.properties={};}if(this.url){console.debug("wc.render.updateContext - url : "+this.url);var _44b={};for(var name in _44a){var _44d=_44a[name];if(typeof _44d=="undefined"){if(typeof _44b.clear=="undefined"){_44b.clear=[name];}else{_44b.clear.push(name);}}else{_44b["set_"+name]=_44d;}}dojo.xhrPost({url:this.url,mimetype:"text/json",handleAs:"json",content:_44b,properties:this.properties,successEventName:this.contextChangedEventName,load:function(data){if(dojo.isArray(data.renderContextChanges)){for(var i=0;i<data.renderContextChanges.length;i++){var name=data.renderContextChanges[i];console.debug("updating render context: "+request.properties[name]+" = "+data[name]);request.properties[name]=data[name];}}console.debug("publishing "+this.successEventName+" event");dojo.publish(this.successEventName,[data]);},error:function(_451,_452){var _453=dojo.i18n.getLocalization("wc","common");console.debug("Warning: communication error while updating the context values");}});}else{console.debug("wc.render.updateContext - url not specified");var data={renderContextChanges:[]};for(var name in _44a){var _44d=_44a[name];if(_44d!=this.properties[name]){data.renderContextChanges.push(name);if(typeof _44d=="undefined"){delete this.properties[name];}else{this.properties[name]=_44d;data[name]=_44d;console.debug("updating render context: "+name+" = "+_44d);}}}console.debug("publishing "+this.contextChangedEventName+" event");dojo.publish(this.contextChangedEventName,[data]);}}});}if(!dojo._hasResource["wc.render.RefreshController"]){dojo._hasResource["wc.render.RefreshController"]=true;dojo.provide("wc.render.RefreshController");wc.render.refreshControllers={};wc.render.getRefreshControllerById=function(id){return wc.render.refreshControllers[id];};wc.render.declareRefreshController=function(_456){var _457=new wc.render.RefreshController(_456);this.refreshControllers[_456.id]=_457;return _457;};dojo.declare("wc.render.RefreshController",null,{constructor:function(_458){dojo.mixin(this,_458);this.syncRCProperties();if(dojo.isFunction(this.renderContextChangedHandler)){if(this.renderContext==null||this.renderContext==undefined){console.debug("WARNING from RefreshController - renderContextChangedHandler function cannot be defined when renderContext is null or undefined. Controller id: "+this.id);}else{dojo.subscribe(this.renderContext.contextChangedEventName,this,"renderContextChanged");}}if(dojo.isFunction(this.modelChangedHandler)){dojo.subscribe("modelChanged",this,"modelChanged");}this.widgets={};},id:undefined,renderContext:undefined,url:undefined,mimetype:"text/html",renderContextChangedHandler:undefined,modelChangedHandler:undefined,postRefreshHandler:undefined,currentRCProperties:undefined,widgets:undefined,formId:undefined,addWidget:function(_459){if(this.widgets[_459.id]){console.debug("RefreshController.addWidget: duplicate widget ID "+_459.id);}this.widgets[_459.id]=_459;console.debug("REFRESH CONTROLLER "+this.id+" ADDED THIS WIDGET..."+_459+" with id = "+_459.id);},removeWidget:function(_45a){if(typeof this.widgets=="undefined"){console.debug("this.widgets in RefreshController#removeWidget(widget) is not defined yet. No deletion is needed");return;}delete this.widgets[_45a.id];},syncRCProperties:function(){if(this.renderContext){var _45b={};var rc=this.renderContext.properties;for(var prop in rc){_45b[prop]=rc[prop];}this.currentRCProperties=_45b;}},renderContextChanged:function(_45e){for(var _45f in this.widgets){console.debug("Call renderContext changed handler for the widget..."+this.widgets[_45f]);this.renderContextChangedHandler(_45e,this.widgets[_45f]);}this.syncRCProperties();},modelChanged:function(_460){for(var _461 in this.widgets){this.modelChangedHandler(_460,this.widgets[_461]);}},refreshHandler:function(_462,data){_462.setInnerHTML(data);},refresh:function(_464,_465){var _466=null;if(this.formId){_466=document.getElementById(this.formId);}if(_465){if(!_465.requesttype){_465.requesttype="ajax";}}else{_465=[];_465.requesttype="ajax";}this.url=this.url.replace(/amp;/g,"");dojo.xhrPost({url:this.url,mimetype:this.mimetype,form:_466,content:_465,load:function(data){function _468(_469,_46a){var myId="";if(_465&&_465[_469]){myId=_465[_469];}if(myId==""&&_466!=null&&_466[_469]){myId=_466[_469];if(_466[_469].value!=null){myId=_466[_469].value;}}if(myId==""&&_46a){var temp=_46a;if(temp.indexOf(_469)!=-1){temp=temp.substring(temp.indexOf(_469));var _46d=temp.split("&");var _46e=_46d[0].split("=");myId=_46e[1];}}return myId;};var _46f=_468("storeId",this.url);var _470=_468("catalogId",this.url);var _471=_468("langId",this.url);var _472=data.indexOf("errorCode");if(_472!=-1){var _473=data.indexOf(",",_472);var _474=data.substring(_472,_473);console.debug("error condition encountered - error code: "+_474);if(_474.indexOf("2550")!=-1){console.debug("error type: ERR_DIDNT_LOGON - the customer did not log on to the system.");console.debug("redirecting to URL: "+"AjaxLogonForm?storeId="+_46f+"&catalogId="+_470+"&langId="+_471+"&myAcctMain=1");document.location.href="AjaxLogonForm?storeId="+_46f+"&catalogId="+_470+"&langId="+_471+"&myAcctMain=1";}else{if(_474.indexOf("2510")!=-1){console.debug("error type: ERR_SESSION_TIMEOUT - use session has timed out");console.debug("redirecting to URL: "+"Logoff?URL=ReLogonFormView&storeId="+_46f);document.location.href="Logoff?URL=ReLogonFormView&storeId="+_46f;}else{if(_474.indexOf("2520")!=-1){console.debug("error type: ERR_PROHIBITED_CHAR - detected prohibited characters in request");console.debug("redirecting to URL: "+"ProhibitedCharacterErrorView?storeId="+_46f+"&catalogId="+_470+"&langId="+_471);document.location.href="ProhibitedCharacterErrorView?storeId="+_46f+"&catalogId="+_470+"&langId="+_471;}else{if(serviceResponse.errorCode=="2540"){console.debug("error type: ERR_CSRF - cross site request forgery attempt was detected");console.debug("redirecting to URL: "+"CrossSiteRequestForgeryErrorView?storeId="+_46f+"&catalogId="+_470+"&langId="+_471);document.location.href="CrossSiteRequestForgeryErrorView?storeId="+_46f+"&catalogId="+_470+"&langId="+_471;}}}}}else{var _475=_464.controller;console.debug("RefreshController.refresh - calling refreshHandler for "+_464);_475.refreshHandler(_464,data);if(_475.postRefreshHandler!=null){console.debug("RefreshController.refresh - calling postRefreshHandler for "+_464);_475.postRefreshHandler(_464);}}},error:function(_476){var _477=dojo.i18n.getLocalization("wc","common");console.debug("Warning: communication error while updating the refresh area");}});},testForChangedRC:function(_478){var _479=false;for(var i=0;i<_478.length;i++){var prop=_478[i];if(this.currentRCProperties[prop]!=this.renderContext.properties[prop]){_479=true;break;}}return _479;}});}if(!dojo._hasResource["wc.render.common"]){dojo._hasResource["wc.render.common"]=true;dojo.provide("wc.render.common");}if(!dojo._hasResource["wc.service.common"]){dojo._hasResource["wc.service.common"]=true;dojo.provide("wc.service.common");wc.service.services={};wc.service.getServiceById=function(id){return wc.service.services[id];};wc.service.declare=function(_47d){var _47e=new wc.service.Service(_47d);this.register(_47e);return _47e;};wc.service.register=function(_47f){this.services[_47f.id]=_47f;};wc.service.invoke=function(_480,_481){console.debug(" wc.service.invoke  : "+_481);var _482=this.getServiceById(_480);if(_482){_482.invoke(_481);}else{console.debug("Attempt to invoke an unregistered service: "+_480);}};dojo.declare("wc.service.Service",null,{constructor:function(_483){dojo.mixin(this,_483);},id:undefined,actionId:undefined,url:undefined,formId:undefined,validateParameters:function(_484){return true;},validateForm:function(_485){return true;},successTest:function(_486){return !_486.errorMessage&&!_486.errorMessageKey;},successHandler:function(_487){},failureHandler:function(_488){var _489=_488.errorMessage;if(_489){alert(_489);}else{_489=_488.errorMessageKey;if(_489){alert(_489);}else{alert("Service request error.");}}},invoke:function(_48a){function _48b(_48c,_48d){var myId="";if(_48a&&_48a[_48c]){myId=_48a[_48c];}if(myId==""&&_48f!=null&&_48f[_48c]){myId=_48f[_48c];if(_48f[_48c].value!=null){myId=_48f[_48c].value;}}if(myId==""&&_48d){var temp=_48d;if(temp.indexOf(_48c)!=-1){temp=temp.substring(temp.indexOf(_48c));var _491=temp.split("&");var _492=_491[0].split("=");myId=_492[1];}}return myId;};var _493=true;var _48f=null;if(this.formId){_48f=document.getElementById(this.formId);}if(_48f){_493=this.validateForm(_48f);}if(_493){_493=this.validateParameters(_48a);}if(_48a){if(!_48a.requesttype){_48a.requesttype="ajax";}}else{_48a=[];_48a.requesttype="ajax";}console.debug("service formId = "+this.formId);if(_493){dojo.xhrPost({url:this.url,handleAs:"json-comment-filtered",form:_48f,content:_48a,service:this,load:function(_494,_495){var _496=_495.args.service;_494.serviceId=_496.id;_494.actionId=_496.actionId;console.debug("Service response action id : "+_494.actionId);for(var prop in _494){console.debug("  "+prop+"="+_494[prop]);}if(_496.successTest(_494)){_496.successHandler(_494);console.debug("success: publishing modelChanged event");dojo.publish("modelChanged",[_494]);if(_496.actionId){console.debug("success: publishing modelChanged/"+_496.actionId+" event");dojo.publish("modelChanged/"+_496.actionId,[_494]);}}else{var _498=_48b("storeId",this.url);var _499=_48b("catalogId",this.url);var _49a=_48b("langId",this.url);console.debug("error condition encountered - error code: "+_494.errorCode);if(_494.errorCode=="2500"){var _49b=_494.originatingCommand;_49b=_49b.replace("?","%3F");_49b=_49b.replace(/&/g,"%26");_49b=_49b.replace(/=/g,"%3D");_49b="LogonForm?nextUrl="+_49b+"&storeId="+_498+"&catalogId="+_499+"&langId="+_49a+"&myAcctMain=1";console.debug("error type: ERR_USER_NOT_LOGGED_ON - only registered user can invoke the command");console.debug("redirecting to URL: "+_49b);document.location.href=_49b;}else{if(_494.errorCode=="2550"){var _49b=_494.originatingCommand;_49b=_49b.replace("?","%3F");_49b=_49b.replace(/&/g,"%26");_49b=_49b.replace(/=/g,"%3D");_49b="AjaxLogonForm?nextUrl="+_49b+"&storeId="+_498+"&catalogId="+_499+"&langId="+_49a+"&myAcctMain=1";console.debug("error type: ERR_DIDNT_LOGON - the customer did not log on to the system.");console.debug("redirecting to URL: "+_49b);document.location.href=_49b;}else{if(_494.errorCode=="2530"){var _49b=_494.originatingCommand;_49b=_49b.replace("?","%3F");_49b=_49b.replace(/&/g,"%26");_49b=_49b.replace(/=/g,"%3D");_49b="PasswordReEnterErrorView?nextUrl="+_49b+"&storeId="+_498+"&catalogId="+_499+"&langId="+_49a;console.debug("error type: ERR_PASSWORD_REREQUEST - password is required");console.debug("redirecting to URL: "+_49b);document.location.href=_49b;}else{if(_494.errorCode=="2510"){console.debug("error type: ERR_SESSION_TIMEOUT - use session has timed out");console.debug("redirecting to URL: "+"Logoff?URL=ReLogonFormView&storeId="+_498);document.location.href="Logoff?URL=ReLogonFormView&storeId="+_498;}else{if(_494.errorCode=="2520"){console.debug("error type: ERR_PROHIBITED_CHAR - detected prohibited characters in request");console.debug("redirecting to URL: "+"ProhibitedCharacterErrorView?storeId="+_498+"&catalogId="+_499+"&langId="+_49a);document.location.href="ProhibitedCharacterErrorView?storeId="+_498+"&catalogId="+_499+"&langId="+_49a;}else{if(_494.errorCode=="2540"){console.debug("error type: ERR_CSRF - cross site request forgery attempt was detected");console.debug("redirecting to URL: "+"CrossSiteRequestForgeryErrorView?storeId="+_498+"&catalogId="+_499+"&langId="+_49a);document.location.href="CrossSiteRequestForgeryErrorView?storeId="+_498+"&catalogId="+_499+"&langId="+_49a;}else{console.debug("calling service.failureHandler");_496.failureHandler(_494);}}}}}}}},error:function(_49c,_49d){var _49e=dojo.i18n.getLocalization("wc","common");console.debug("Warning: communication error while making the service call");}});}}});}if(!dojo._hasResource["wc.widget.RefreshArea"]){dojo._hasResource["wc.widget.RefreshArea"]=true;dojo.provide("wc.widget.RefreshArea");dojo.declare("wc.widget.RefreshArea",[dijit._Widget,dijit.layout.ContentPane],{controllerId:"",objectId:"",controller:null,startup:function(){this.controller=wc.render.getRefreshControllerById(this.controllerId);if(!this.controller){throw new Error("Could not locate RefreshController \""+this.controllerId+"\".");}console.debug("Adding.. "+this.id+" to ...."+this.controllerId);this.controller.addWidget(this);this.containerNode=this.domNode;return this.inherited("startup",arguments);},destroy:function(){this.controller.removeWidget(this);return this.inherited("destroy",arguments);},refresh:function(_49f){if(!_49f){_49f={};}_49f.objectId=this.objectId;this.controller.refresh(this,_49f);},setInnerHTML:function(html){this.destroyDescendants();this.containerNode.innerHTML=html;dojo.parser.parse(this.containerNode);}});}if(!dojo._hasResource["bec.util.lang"]){dojo._hasResource["bec.util.lang"]=true;dojo.provide("bec.util.lang");dojo.clone=function(o){if(!o){return o;}if(dojo.isArray(o)){var r=[];for(var i=0;i<o.length;++i){r.push(dojo.clone(o[i]));}return r;}if(!dojo.isObject(o)){return o;}if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}if(o instanceof RegExp){return new RegExp(o);}r=new o.constructor();for(i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}return r;};}if(!dojo._hasResource["bec.util.browser"]){dojo._hasResource["bec.util.browser"]=true;dojo.provide("bec.util.browser");bec.util.browser.gotoURL=function(_4a4){if(dojo.isIE){var _4a5=dojo.create("a",{href:_4a4},dojo.body(),"first").click();}else{window.location.href=_4a4;}};bec.util.browser.gotoURLWithHash=function(_4a6){bec.util.browser.gotoURL(_4a6+window.location.hash);};}if(!dojo._hasResource["bec.widget.PopupDialog"]){dojo._hasResource["bec.widget.PopupDialog"]=true;dojo.provide("bec.widget.PopupDialog");dojo.declare("bec.widget.BECDialog",[dijit.Dialog],{templateString:"<div class=\"dijitDialog dialog\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\"><div class=\"content\"><div class=\"t\"></div><div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\"><span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span><span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\"><span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span></span></div><div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div></div><div class=\"b\"><div></div></div></div>",loadingMessage:"Loading...",titleBarDisplay:true,closeOnBackgroundClick:true,aroundNode:null,position:null,defaultPosition:["after","before"],topFirstTime:true,constructor:function(_4a7){if(_4a7.additionalProps){dojo.mixin(this,_4a7.additionalProps);}dojo.connect(this,"show",this,"_showPosition");},postCreate:function(){this.inherited(arguments);if(typeof addDialogBackground==="function"){try{addDialogBackground(this.id);}catch(error){console.error("ERROR calling addDialogBackground for "+this.id);}}dojo.connect(this,"onLoad",this,function(){dojo.publish(this.id+"-popupLoaded");});},postMixInProperties:function(){this.inherited(arguments);this.buttonCancel="Close";},setPosition:function(_4a8,_4a9){if(_4a8!=null&&_4a8!=this.aroundNode){this.aroundNode=_4a8;}if(_4a9!=null&&_4a9!=this.position){this.position=[_4a9];}},_position:function(){if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _4aa=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _4ac=this.domNode.style;var p=this._relativePosition;var left=Math.floor(_4aa.l+(p?p.l:(_4aa.w-mb.w)/2));_4ac.left=left+"px";if(_4ac.top=="-9999px"){this.topFirstTime=true;}if(this.topFirstTime){var top=Math.floor((_4aa.t+(_4aa.h-mb.h)/2));var _4b0=Math.floor(_4aa.h/30);if(top-_4b0<_4aa.t){top=_4aa.t+_4b0;}_4ac.top=top+"px";}},onLoad:function(data){this._position();this.inherited(arguments);this.topFirstTime=false;},show:function(_4b2){this.inherited(arguments);if(this.closeOnBackgroundClick){this._modalconnects.push(dojo.connect(document.documentElement,"onmousedown",this,"_onMouseClick"));}if(!this.titleBarDisplay){dojo.style(this.titleBar,"display","none");dojo.style(this.titleBar,"visibility","hidden");dojo.style(this.titleNode,"display","none");dojo.style(this.titleNode,"visibility","hidden");dojo.style(this.closeButtonNode,"display","none");dojo.style(this.closeButtonNode,"visibility","hidden");dojo.style(this.closeText,"display","none");dojo.style(this.closeText,"visibility","hidden");}},_showPosition:function(){if(this.aroundNode!=null){var _4b3={};var ltr=this.isLeftToRight();dojo.forEach((this.position&&this.position.length)?this.position:this.defaultPosition,function(pos){switch(pos){case "after":_4b3[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_4b3[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_4b3[ltr?"BL":"BR"]=ltr?"TL":"TR";_4b3[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_4b3[ltr?"TL":"TR"]=ltr?"BL":"BR";_4b3[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,this.aroundNode,_4b3);}},_onMouseClick:function(evt){if(this.closeOnBackgroundClick){var node=evt.target;var _4b9=true;while(node){if(node==this.domNode){_4b9=false;}node=node.parentNode;}if(_4b9){this.hide();}}},uninitialize:function(){try{this.inherited(arguments);}catch(e){console.debug("Error trying to uninitialize popup "+e.message);}}});dojo.declare("bec.widget._InfoDialog",null,{});dojo.declare("bec.widget._ErrorDialog",null,{postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"errorDialog");dojo.publish("_ErrorDialog-postCreate-"+this.id,[this]);}});dojo.declare("bec.widget._FunctionalDialog",null,{postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"functionalDialog");}});dojo.declare("bec.widget.PopupDialog",null,{loadingMessage:"loading ...",constructor:function(_4ba){if(_4ba.loadingMessage){this.loadingMessage=_4ba.loadingMessage;}},getFloatingModal:function(id,_4bc,_4bd,_4be,_4bf,_4c0,_4c1,_4c2){var _4c3=dijit.byId(id);if(!_4c3){_4c3=new bec.widget.BECDialog({id:id,title:_4bc,titleBarDisplay:(_4bd==undefined?true:_4bd),closeOnBackgroundClick:(_4be==undefined?true:_4be),draggable:true,loadingMessage:this.loadingMessage,additionalProps:_4c2});dojo.body().appendChild(_4c3.domNode);_4c3.startup();}if(_4c1){var _4c4=dojo.connect(_4c3,"onLoad",_4c1);if(_4c3&&_4c3._modalconnects){_4c3._modalconnects.push(_4c4);}}_4c3.setPosition(_4bf,_4c0);return _4c3;},doPopup:function(id,_4c6,_4c7,_4c8,_4c9,_4ca,_4cb,_4cc,_4cd,_4ce){var _4cf=this.getFloatingModal(id,_4c6,_4c9,_4ca,_4cb,_4cc,_4cd,_4ce);_4cf.attr(_4c7,_4c8);_4cf.show();return _4cf;},withUrl:function(id,_4d1,_4d2,_4d3,_4d4,_4d5,_4d6,_4d7,_4d8){return this.doPopup(id,_4d1,"href",_4d2,_4d3,_4d4,_4d5,_4d6,_4d7,_4d8);},withContent:function(id,_4da,_4db,_4dc,_4dd,_4de,_4df,_4e0,_4e1){return this.doPopup(id,_4da,"content",_4db,_4dc,_4dd,_4de,_4df,_4e0,_4e1);},errorWithContent:function(id,_4e3,_4e4,_4e5,_4e6,_4e7,_4e8){return this.withContent(id,_4e3,_4e4,true,_4e5,_4e6,_4e7,_4e8,new bec.widget._ErrorDialog());},infoWithUrl:function(id,_4ea,_4eb,_4ec,_4ed,_4ee){return this.withUrl(id,_4ea,_4eb,true,true,_4ec,_4ed,_4ee,new bec.widget._InfoDialog());},infoWithContent:function(id,_4f0,_4f1,_4f2,_4f3,_4f4){return this.withContent(id,_4f0,_4f1,true,true,_4f2,_4f3,_4f4,new bec.widget._InfoDialog());},functionalWithUrl:function(id,_4f6,_4f7,_4f8,_4f9,_4fa,_4fb){return this.withUrl(id,_4f6,_4f7,true,_4f8,_4f9,_4fa,_4fb,new bec.widget._FunctionalDialog());},functinalWithContent:function(id,_4fd,_4fe,_4ff,_500,_501,_502){return this.withContent(id,_4fd,_4fe,true,_4ff,_500,_501,_502,new bec.widget._FunctionalDialog());}});}if(!dojo._hasResource["bec.widget.Button"]){dojo._hasResource["bec.widget.Button"]=true;dojo.provide("bec.widget.Button");dojo.declare("bec.widget.Button",dijit.form.Button,{templateString:"<a class=\"btn\" href=\"${href}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\" dojoAttachPoint=\"containerNode,titleNode,focusNode,stateNode\" "+"dojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" "+">"+"<i class=\"btn-part\"></i>"+"<span class=\"btn-part\">"+"<span class=\"btn-part\"></span>"+"<i class=\"btn-part\"></i>"+"<span id=\"${id}_label\" class=\"btn-label\" dojoAttachPoint=\"containerNode\"></span>"+"</span>"+"</a>",scrollOnFocus:false,href:"#",uniqueSuffix:null,disableClickable:false,hasTooltip:false,toolTipMsg:"",postMixInProperties:function(){if(!this.uniqueSuffix){var _503=dijit.getUniqueId("bec.widget.Button");var idx=_503.indexOf("_");if(idx>0){this.uniqueSuffix=_503.substring(idx);}else{this.uniqueSuffix=_503;}}this.id=this.id+this.uniqueSuffix;this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._initTooltip();},_initTooltip:function(){if(this.hasTooltip&&this.toolTipMsg){new dijit.Tooltip({connectId:[this.id],label:this.toolTipMsg,position:["below"]});}},_onClick:function(e){console.debug("Entering button _onClick");var _506;if(this.disableClickable){console.debug("button disabled, but still need to run click action");this._clicked();_506=this.onClick(e);}else{console.debug("deferring to parent button");_506=this.inherited(arguments);}console.debug("Exiting button _onClick");return _506;},_setDisabledAttr:function(_507){this.inherited(arguments);if((this.disableClickable||(this.hasTooltip&&this.toolTipMsg))&&dojo.isIE){dojo.attr(this.focusNode,"disabled",false);}}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\r\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\r\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_508,_509,_50a){var _50b;if(_508!==undefined){_50b=this.filter(_508);if(typeof _50a!="string"){if(_50b!==null&&((typeof _50b!="number")||!isNaN(_50b))){_50a=this.filter(this.format(_50b,this.constraints));}else{_50a="";}}}if(_50a!=null&&_50a!=undefined&&((typeof _50a)!="number"||!isNaN(_50a))&&this.textbox.value!=_50a){this.textbox.value=_50a;}this.inherited(arguments,[_50b,_509]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_50c){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_50c);},_setDisplayedValueAttr:function(_50d){if(_50d===null||_50d===undefined){_50d="";}else{if(typeof _50d!="string"){_50d=String(_50d);}}this.textbox.value=_50d;this._setValueAttr(this.attr("value"),undefined,_50d);},format:function(_50e,_50f){return ((_50e==null||_50e==undefined)?"":(_50e.toString?_50e.toString():_50e));},parse:function(_510,_511){return _510;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _513=this;setTimeout(function(){_513._handleOnChange(_513.attr("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.attr("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_518,_519,stop){var _51b=dojo.global;var _51c=dojo.doc;_518=dojo.byId(_518);if(isNaN(_519)){_519=0;}if(isNaN(stop)){stop=_518.value?_518.value.length:0;}_518.focus();if(_51c["selection"]&&dojo.body()["createTextRange"]){if(_518.createTextRange){var _51d=_518.createTextRange();with(_51d){collapse(true);moveStart("character",_519);moveEnd("character",stop);select();}}}else{if(_51b["getSelection"]){var _51e=_51b.getSelection();if(_518.setSelectionRange){_518.setSelectionRange(_519,stop);}}}};}if(!dojo._hasResource["bec.widget.TextBox"]){dojo._hasResource["bec.widget.TextBox"]=true;dojo.provide("bec.widget.TextBox");bec.widget._TextBoxSelect={placeHolder:"",scrollOnFocus:false,attributeMap:dojo.mixin(dijit.form.TextBox.prototype.attributeMap,{placeHolder:""}),postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}this._layoutHack();this.connect(this.textbox,"onfocus",function(){this.textbox.select();});var _51f=this.textbox.parentNode;if(_51f&&dojo.hasClass(_51f,"dijitInputField")){dojo.addClass(_51f,"dijitInputContainer");}else{_51f=dojo.create("div",{className:"dijitReset dijitInputField dijitInputContainer"},this.textbox,"before");this.connect(_51f,"onmouseenter",this._onMouse);this.connect(_51f,"onmouseleave",this._onMouse);this.connect(_51f,"onmousedown",this._onMouse);_51f.appendChild(this.textbox);if(this._phspan){_51f.appendChild(this._phspan);}}},_onFocus:function(e){if(this.disabled){return;}this._refreshState();this.inherited(arguments);this._updatePlaceHolder();this.textbox.select();},_onBlur:function(e){if(!this.disabled){this._setBlurValue();this.inherited(arguments);this._updatePlaceHolder();}},_handleOnChange:function(_522,_523){this.inherited(arguments);this._updatePlaceHolder();},_setPlaceHolderAttr:function(v){this.placeHolder=v;if(!this._phspan){this["_phspan"]=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(this.placeHolder));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},validateSubmit:function(_525){var _526;if(_525){_526=this.required;this.required=true;}this._hasBeenBlurred=true;result=this.validate();if(_525){this.required=_526;}return result;}};dijit.form.TextBox.extend(bec.widget._TextBoxSelect);}if(!dojo._hasResource["bec.widget._Container"]){dojo._hasResource["bec.widget._Container"]=true;dojo.provide("bec.widget._Container");bec.widget._Container={getChildren:function(){return dijit._Widget.prototype.getChildren.apply(this,arguments);}};dijit._Container.extend(bec.widget._Container);}if(!dojo._hasResource["bec.render.RefreshController"]){dojo._hasResource["bec.render.RefreshController"]=true;dojo.provide("bec.render.RefreshController");wc.render.declareRefreshController=function(_527){var _528=new bec.render.RefreshController(_527);wc.render.refreshControllers[_527.id]=_528;return _528;};dojo.declare("bec.render.RefreshController",wc.render.RefreshController,{_initialized:false,_init:function(){if(!this._initialized){dojo.connect(this,"refresh",cursor_wait);dojo.connect(this,"refreshHandler",cursor_clear);this._doInit();this._initialized=true;}},_doInit:function(){},addWidget:function(_529){this._init();this.inherited("addWidget",arguments);},_getParentWidget:function(_52a){var _52b;if(_52a.domNode){_52b=dijit.getEnclosingWidget(_52a.domNode.parentNode);}return _52b;},_refreshAllWidgets:function(){for(var _52c in this.widgets){this.widgets[_52c].refresh(this.renderContext.properties);}}});}if(!dojo._hasResource["dojo.NodeList-html"]){dojo._hasResource["dojo.NodeList-html"]=true;dojo.provide("dojo.NodeList-html");dojo.extend(dojo.NodeList,{html:function(_52d,_52e){var dhs=new dojo.html._ContentSetter(_52e||{});this.forEach(function(elm){dhs.node=elm;dhs.set(_52d);dhs.tearDown();});return this;}});}if(!dojo._hasResource["bec.util.searchSLI"]){dojo._hasResource["bec.util.searchSLI"]=true;dojo.provide("bec.util.searchSLI");bec.util.searchSLI.submit=function(){inputVal=(dojo.byId("sli_search_rac"))?dojo.byId("sli_search_rac").value:"";if(inputVal!=""){dojo.byId("search").submit();}else{return false;}};bec.util.searchSLI.updateSLIItemsInCart=function(_531){try{var _532=dojo.byId("sliItemsInCart");var _533=_531.domNode.getElementsByTagName("span")[0];_532.value=_533.innerHTML;}catch(e){console.error("ERROR setting SLI items in cart: "+e);}};}if(!dojo._hasResource["bec.util.searchSLIAutoComplete"]){dojo._hasResource["bec.util.searchSLIAutoComplete"]=true;dojo.provide("bec.util.searchSLIAutoComplete");dojo.addOnLoad(function(){try{if(window.sliAutocomplete&&window.sliAutocomplete.input&&window.sliAutocomplete.input.opts){window.sliAutocomplete.input.opts.base=sliURL;}else{if(window.sliAutocomplete&&window.sliAutocomplete.opts){window.sliAutocomplete.opts.base=sliURL;}else{console.warn("ERROR - SLI auto suggest unable to initialize");}}}catch(e){console.error("ERROR - SLI Rich Auto Suggest init failed due to :: "+e);}});}if(!dojo._hasResource["bec.util.search"]){dojo._hasResource["bec.util.search"]=true;dojo.provide("bec.util.search");}if(!dojo._hasResource["bec.order.CommonCartServices"]){dojo._hasResource["bec.order.CommonCartServices"]=true;dojo.provide("bec.order.CommonCartServices");wc.render.declareContext("currentOrderItem_Context",{workAreaMode:"create","storeId":storeId,"catalogId":catalogId,"langId":langId},"");wc.service.declare({id:"AjaxAddOrderItem",actionId:"AjaxAddOrderItem",url:"AjaxBECOrderItemAdd?URL=AjaxActionResponse&redirectUrl=AjaxActionErrorResponse&storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId,formId:"",successHandler:function(_534){if(_534){var _535={"orderItemId":_534.orderItemId,"addressId":_534.addressId_0,"errorKey":_534.errorKey,"productError":_534.productError};var _536=false;if(_534.expressOrder){var qtys=this._getPropertysStartingWith(_534,"quantity_");if(qtys.length>1){var _538=0;dojo.forEach(qtys,function(qty){_538+=Number(qty.value);});_535["quantity"]=_538;}else{_536=true;}}else{_536=true;}if(_536){_535["productId"]=_534.productId;_535["catEntryId"]=_534.catEntryId;}wc.render.updateContext("currentOrderItem_Context",_535);}else{wc.render.updateContext("currentOrderItem_Context",{"addOrderItemError":"Error"});}cursor_clear();},_getPropertysStartingWith:function(_53a,_53b){var _53c=[];for(prop in _53a){if(prop.startsWith(_53b)){_53c.push({key:prop,value:_53a[prop]});}}return _53c;},failureHandler:function(_53d){var msg="<div class=\"product-unavail-error\"><div class=\"title\">Item Add Error</div>";if(_53d.errorMessage){msg=msg+_53d.errorMessage;}else{if(_53d.errorMessageKey){msg=msg+_53d.errorMessageKey;}}bec.order.CommonCartServices.updateMiniCart(msg+"</div>");dojo.publish("modelChanged/addingOrderItem");cursor_clear();}});wc.render.declareRefreshController({id:"itemAddAreaController",renderContext:wc.render.getContextById("currentOrderItem_Context"),url:"BECItemAddView",_underlay:null,_modalconnects:[],_doInit:function(){dojo.subscribe("modelChanged/addingOrderItem",this,"modelAddingOrderItem");dojo.subscribe("modelChanged/hideAddOrderItem",this,"modelHideAddOrderItem");dojo.subscribe("modelChanged/AjaxAddOrderItem",this,"modelOrderItemAdded");var _53f={dialogId:this.id,"class":"minicart_underlay"};this._underlay=dijit._underlay;if(!this._underlay){this._underlay=dijit._underlay=new dijit.DialogUnderlay(_53f);}this._underlay.attr(_53f);},modelAddingOrderItem:function(_540){for(var _541 in this.widgets){this._showContent(this.widgets[_541],"<div class='add-item'>Adding item...</div>");}},modelHideAddOrderItem:function(_542){for(var _543 in this.widgets){dojo.style(this.widgets[_543].domNode,"display","none");}this._underlay.hide();dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];},modelOrderItemAdded:function(_544){if(this.renderContext.properties.orderItemId){this.url="BECItemAddView";}else{this.url="ProductDisplayErrorView";}this._refreshAllWidgets();},modelChangedHandler:function(_545,_546){if(this.renderContext.properties.addOrderItemError){this.url="ProductDisplayErrorView";_546.refresh(this.renderContext.properties);}},_showContent:function(_547,_548){this._underlay.show();this._modalconnects.push(dojo.connect(this._underlay.domNode,"onmousedown",this,"modelHideAddOrderItem"));this._modalconnects.push(dojo.connect(window,"onscroll",this._underlay,"layout"));var _549=_547.domNode;dojo.query(".content",_549).html(_548,{parseContent:true});dojo.style(_549,"display","block");},refreshHandler:function(_54a,data){try{scroll(0,0);if(data!=""&&data!="sslbug"){this._showContent(_54a,data);}else{this._showError(_54a);}}catch(e){this._showError(_54a);}},_showError:function(_54c){this._showContent(_54c,"<div class='product-unavail-error'>Sorry, An error occurred while adding item to cart.<br/><br/>Please try again.</div>");}});bec.order.CommonCartServices.CONTEXT="currentOrder_Context";wc.render.declareContext(bec.order.CommonCartServices.CONTEXT,{workAreaMode:"create","storeId":storeId,"catalogId":catalogId,"langId":langId},"");wc.render.declareRefreshController({id:"itemsInCartAreaController",renderContext:wc.render.getContextById(bec.order.CommonCartServices.CONTEXT),url:"BECItemsInCartView?storeId="+storeId+"&orderId=.",_doInit:function(){dojo.subscribe("modelChanged/AjaxAddOrderItem",this,"modelChanged");dojo.subscribe("modelChanged/BECOrderItemAddCatalogQuickOrder",this,"modelChanged");dojo.subscribe("modelChanged/AjaxOrderItemUpdate",this,"modelChanged");},modelChanged:function(_54d){for(var _54e in this.widgets){this.refresh(this.widgets[_54e],_54d);break;}},refreshHandler:function(_54f,data){for(var _551 in this.widgets){this.widgets[_551].setInnerHTML(data);}},postRefreshHandler:function(_552){bec.util.searchSLI.updateSLIItemsInCart(_552);}});}if(!dojo._hasResource["bec.util.html"]){dojo._hasResource["bec.util.html"]=true;dojo.provide("bec.util.html");bec.util.html.hideNode=function(_553){var node=dojo.byId(_553);if(node){dojo.removeClass(node,"dijitVisible");dojo.addClass(node,"dijitHidden");}};bec.util.html.showNode=function(_555){var node=dojo.byId(_555);if(node){dojo.removeClass(node,"dijitHidden");dojo.addClass(node,"dijitVisible");}};bec.util.html.set=function(_557,cont,_559){var node=dojo.byId(_557);if(node){dojo.html.set(node,cont,_559);}};}if(!dojo._hasResource["bec.order.CatalogQuickOrder"]){dojo._hasResource["bec.order.CatalogQuickOrder"]=true;dojo.provide("bec.order.CatalogQuickOrder");dojo.declare("bec.order.CatalogQuickOrder",null,{ID:"cqoFrame",productDisplayURL:"",emptyErrorMessage:"",missingRecipMessage:"",unavailableErrorMessage:"",reOpen:"true",setProductDisplayUrl:function(url){this.productDisplayURL=url;},setItemDisplayUrl:function(url){this.productDisplayURL=url;},setEmptyErrorMessage:function(msg){this.emptyErrorMessage=msg;},setMissingRecipMessage:function(msg){this.missingRecipMessage=msg;},setUnavailableErrorMessage:function(msg){this.unavailableErrorMessage=msg;},add2Cart:function(){var _560=true;bec.util.html.hideNode("cqoError");bec.util.html.hideNode("cqoResponse");var _561=dojo.byId("cqoPartNum").value;var _562=dojo.byId("cqoRecipient");if(_561==""){_560=false;this.setCatalogErrorMessage(this.emptyErrorMessage);}else{if(_562&&_562.value==""){var _563=dojo.byId("cqoRecipientInput").value;if(_563==""){_560=false;this.setCatalogErrorMessage(this.missingRecipMessage);}else{_562.value=_563;}}}if(_560){this.setCatalogErrorMessage("");if("-"==_561.charAt(1)){dojo.byId("quickOrderPartNumber").value=_561.substr(2);}else{dojo.byId("quickOrderPartNumber").value=_561;}this.defineService();wc.service.invoke("AjaxCatalogQuickShop");cursor_wait();}},serviceDefined:false,defineService:function(){if(this.serviceDefined==false){wc.service.declare({id:"AjaxCatalogQuickShop",actionId:"BECOrderItemAddCatalogQuickOrder",url:"AjaxBECOrderItemAddCatalogQuickOrder?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId,formId:"cqoForm",successHandler:function(_564){cursor_clear();var pp1=window.location.href;if(pp1.indexOf("OrderItemDisplay")!=-1||pp1.indexOf("BECCardsMessagingView")!=-1||pp1.indexOf("OrderDisplay")!=-1||pp1.indexOf("OrderOKView")!=-1){bec.util.browser.gotoURL("OrderItemDisplay?orderId=*&storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId);}else{var msg=dojo.byId("cqoPartNum").value+" has been added to your cart.";dojo.html.set(dojo.byId("cqoResponse"),msg);bec.util.html.showNode("cqoResponse");bec.util.html.showNode("cqoAddAnother");bec.util.html.showNode("cqoCheckOut");}},failureHandler:function(_567){cursor_clear();if(_567.errorMessageKey&&_567.errorMessageKey=="_ERR_GETTING_SKU"){bec.util.browser.gotoURL(window.location.href=catalogQuickOrder.productDisplayURL+_567.exceptionData.catEntryId);}else{catalogQuickOrder.setCatalogErrorMessage(catalogQuickOrder.unavailableErrorMessage);}}});this.serviceDefined=true;}},setCatalogErrorMessage:function(_568){dojo.byId("cqoError").innerHTML=_568;if(_568==""){bec.util.html.hideNode("cqoError");}else{bec.util.html.showNode("cqoError");}},openCQOFrame:function(){var _569=this.getCQOFrame();bec.util.html.hideNode("cqoError");bec.util.html.hideNode("cqoResponse");bec.util.html.hideNode("cqoAddAnother");bec.util.html.hideNode("cqoCheckOut");_569.show();},getCQOFrame:function(){var _56a=dijit.byId(this.ID);if(!_56a){_56a=new bec.widget.BECDialog({id:catalogQuickOrder.ID,title:"Catalog Quick Shop",href:"BECCatalogQuickOrderView?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId,show:function(_56b){this.inherited("show",arguments);cmInitiatePageViewTag("Catalog Quick Shop","Homepage",null);errorElement=dojo.byId("cqoError");if(errorElement&&dojo.isObject(errorElement)){if(errorElement.type!="hidden"&&errorElement.style.display!="none"&&!errorElement.disabled){try{errorElement.innerHTML="";errorElement.style.display="none";}catch(err){}}}},_onKey:function(_56c){if(_56c.keyCode){if(_56c.keyCode==13){catalogQuickOrder.add2Cart();}}this.inherited("_onKey",arguments);}});dojo.body().appendChild(_56a.domNode);_56a.startup();try{dojo.connect(_56a,"onLoad",function(){button.enhanceAll();});}catch(e){}}return _56a;}});}if(!dojo._hasResource["bec.product.AddToCart"]){dojo._hasResource["bec.product.AddToCart"]=true;dojo.provide("bec.product.AddToCart");dojo.declare("bec.product.AddToCart",null,{submitItem:function(_56d,qty,_56f,_570,_571,_572){var rtn=false;if(submitRequest()){try{var _574;if(typeof cm_merch_cat!="undefined"&&cm_merch_cat!=""){_574=cm_merch_cat+_570;}else{_574=_570;}if(typeof (_572)!="undefined"&&_572&&_572.length==10){_572+=" 00:00:00";}var _575={"catEntryId_0":_56d,"quantity_0":qty,"addressId_0":_56f,"requestedShipDate_0":_572,"field2_0":_574,"specialCode":_571};rtn=this.ajaxAddItem(undefined,_575);}catch(e){requestSubmitted=false;alert("Error adding to cart. Error = "+e.message);}}return rtn;},ajaxAddItem:function(form,_577){var rtn=true;try{if(this._checkQuantity()){scroll(0,0);dojo.publish("modelChanged/addingOrderItem");var _579=wc.service.getServiceById("AjaxAddOrderItem");if(form){_579.formId=form.id;}if(form||_577){_579.invoke(_577);cursor_wait();}else{alert("Unable to add to cart.\n\nInvalid/Missing input detected.\n\nPlease try again.");rtn=false;requestSubmitted=false;panel.close();}}else{rtn=false;}}catch(e){console.error("Error adding to cart: "+e);rtn=false;}return rtn;},_checkQuantity:function(){var _57a=true;try{var qty=dijit.byId("quantity_0");if(qty){_57a=qty.validateSubmit();}else{qty=dojo.byId("quantity_0");if(qty&&(isNaN(qty.value)||qty.value<=0)){_57a=false;qty.value=1;}}if(!_57a){popup.errorWithContent("addToCartErrMsg","NOTE:","Invalid quantity entered. Please try again.");requestSubmitted=false;}}catch(e){requestSubmitted=false;}return _57a;}});}if(!dojo._hasResource["bec.product.AddToCartButton"]){dojo._hasResource["bec.product.AddToCartButton"]=true;dojo.provide("bec.product.AddToCartButton");dojo.declare("bec.product.AddToCartButton",bec.widget.Button,{catEntryId:"",qty:"",addressId:"",urlVirtCat:"",specCode:"",requestShipDate:"",onClick:function(e){return new bec.product.AddToCart().submitItem(this.catEntryId,this.qty,this.addressId,this.urlVirtCat,this.specCode,this.requestShipDate);}});}if(!dojo._hasResource["bec.util.string"]){dojo._hasResource["bec.util.string"]=true;dojo.provide("bec.util.string");String.prototype.startsWith=function(str){return (this.match("^"+str)==str);};bec.util.string.replaceAll=function(str,find,_580){try{str=str.replace(new RegExp(find,"g"),_580);}catch(e){}return str;};}if(!dojo._hasResource["bec.io.iframe"]){dojo._hasResource["bec.io.iframe"]=true;dojo.provide("bec.io.iframe");(function(){dojo.io.iframe.create=function(_581,_582,uri){if(window[_581]){return window[_581];}if(window.frames[_581]){return window.frames[_581];}var _584=null;var turi=uri;if(!turi){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");}turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _584=dojo.place("<iframe id=\""+_581+"\" name=\""+_581+"\" src=\""+turi+"\" onload=\""+_582+"\" style=\"position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden\">",dojo.body());window[_581]=_584;return _584;};dojo.io.iframe.send=function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _58a=null;try{var _58b=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _58e=_58b.handleAs;_58a=ifd;if(_58e!="html"){if(_58e=="xml"){if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _58f=(dii._frame.contentWindow.document).documentElement.innerText;_58f=_58f.replace(/>\s+</g,"><");_58f=dojo.trim(_58f);var _590={responseText:_58f};_58a=dojo._contentHandlers["xml"](_590);}}else{_58a=ifd.getElementsByTagName("textarea")[0].value;if(_58e=="json"){_58a=dojo.fromJson(_58a);}else{if(_58e=="javascript"){_58a=dojo.eval(_58a);}}}}}catch(e){_58a=e;}finally{_58b._callNext();}return _58a;},function(_591,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _591;});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;};})();}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_596,_597,_598){if(this.aroundNode&&this.aroundNode===_597){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_596;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _599={};var ltr=this.isLeftToRight();dojo.forEach((_598&&_598.length)?_598:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_599[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_599[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_599[ltr?"BL":"BR"]=ltr?"TL":"TR";_599[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_599[ltr?"TL":"TR"]=ltr?"BL":"BR";_599[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_597,_599,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_597;},orient:function(node,_59e,_59f){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_59e+"-"+_59f];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_5a0){if(this._onDeck&&this._onDeck[1]==_5a0){this._onDeck=null;}else{if(this.aroundNode===_5a0){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_5a1,_5a2,_5a3){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_5a1,_5a2,_5a3);};dijit.hideTooltip=function(_5a4){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_5a4);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(ids){this._connectNodes=[];this.connectId=dojo.isArrayLike(ids)?ids:[ids];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_5a8){this.connect(node,_5a8.toLowerCase(),"_"+_5a8);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _5ae=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_5ae);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_5b0){_5b0=_5b0||this._connectNodes[0];if(!_5b0){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_5b0,this.position);this._connectNode=_5b0;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\r\n\t\t\t${nameAttrSetting} type='${type}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_5b1){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_5b2,_5b3){return (new RegExp("^(?:"+this.regExpGen(_5b3)+")"+(this.required?"":"?")+"$")).test(_5b2)&&(!this.required||!this._isEmpty(_5b2))&&(this._isEmpty(_5b2)||this.parse(_5b2,_5b3)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_5b4){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_5b5){return /^\s*$/.test(_5b5);},getErrorMessage:function(_5b6){return this.invalidMessage;},getPromptMessage:function(_5b7){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_5b8){var _5b9="";var _5ba=this.disabled||this.isValid(_5b8);if(_5ba){this._maskValidSubsetError=true;}var _5bb=!_5ba&&_5b8&&this._isValidSubset();var _5bc=this._isEmpty(this.textbox.value);this.state=(_5ba||(!this._hasBeenBlurred&&_5bc)||_5bb)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_5ba?"false":"true");if(_5b8){if(_5bc){_5b9=this.getPromptMessage(true);}if(!_5b9&&(this.state=="Error"||(_5bb&&!this._maskValidSubsetError))){_5b9=this.getErrorMessage(true);}}this.displayMessage(_5b9);return _5ba;},_message:"",displayMessage:function(_5bd){if(this._message==_5bd){return;}this._message=_5bd;dijit.hideTooltip(this.domNode);if(_5bd){dijit.showTooltip(_5bd,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _5bf="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_5bf+=re;break;case ")":_5bf+="|$)";break;default:_5bf+="(?:"+re+"|$)";break;}});}try{"".search(_5bf);}catch(e){_5bf=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_5bf+")$";},_setDisabledAttr:function(_5c1){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_5c1;}this._refreshState();},_setRequiredAttr:function(_5c2){this.required=_5c2;dijit.setWaiState(this.focusNode,"required",_5c2);this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_5c6){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.create("input",{style:{display:"none"},type:this.type,name:this.name},this.textbox,"after");},_setDisabledAttr:function(_5c8){this.inherited(arguments);dojo.attr(this.valueNode,"disabled",_5c8);},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_5c9,_5ca){var _5cb="min" in _5ca;var _5cc="max" in _5ca;if(_5cb||_5cc){return (!_5cb||this.compare(_5c9,_5ca.min)>=0)&&(!_5cc||this.compare(_5c9,_5ca.max)<=0);}return true;},isInRange:function(_5cd){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _5cf=false;var _5d0=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_5cf=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_5d0=(typeof val=="number")&&val>0;}return _5cf||_5d0;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_5d3){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_5d3));},getErrorMessage:function(_5d4){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_5d4)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_5d5,_5d6){dijit.setWaiState(this.focusNode,"valuenow",_5d5);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\r\n\t><input\r\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\r\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\r\n\t\tdojoAttachPoint=\"focusNode\"\r\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\r\n/></div>\r\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_5d7){if(typeof _5d7=="string"){this.value=_5d7;dojo.attr(this.focusNode,"value",_5d7);_5d7=true;}if(this._created){this.attr("checked",_5d7);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_5d8){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_5d9){this.inherited(arguments);if(!this._created){return;}if(_5d9){var _5da=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_5db){if(_5db.name==_5da.name&&_5db!=_5da.focusNode&&_5db.form==_5da.focusNode.form){var _5dc=dijit.getEnclosingWidget(_5db);if(_5dc&&_5dc.checked){_5dc.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["bec.user.PasswordStrengthTextBox"]){dojo._hasResource["bec.user.PasswordStrengthTextBox"]=true;dojo.provide("bec.user.PasswordStrengthTextBox");dojo.declare("bec.user.PasswordStrengthTextBox",[dijit.form.ValidationTextBox],{strengthDesc:["weak","weak","secure","very secure","very secure"],postMixInProperties:function(){this.inherited(arguments);this.templateString="<div>"+this.templateString+"<div dojoAttachPoint='strengthMeter' class='strengthWeak'></div>"+"</div>";},buildRendering:function(){this.inherited(arguments);this.stateNode=this.domNode.childNodes[0];},postCreate:function(){this.inherited(arguments);},_updatePasswordStrength:function(){var _5de=0;var _5df=this.attr("value");if(_5df.length>6){_5de++;}if((_5df.match(/[a-z]/)||_5df.match(/[A-Z]/))&&_5df.match(/\d+/)){_5de++;}if(_5df.match(/[a-z]/)&&_5df.match(/[A-Z]/)){_5de++;}if(_5df.length>8){_5de++;}if(_5df.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/)){_5de++;}this.strengthMeter.innerHTML=strengthDesc[_5de];}});}if(!dojo._hasResource["bec.widget.RetypeValidationTextbox"]){dojo._hasResource["bec.widget.RetypeValidationTextbox"]=true;dojo.provide("bec.widget.RetypeValidationTextbox");dojo.declare("bec.widget.RetypeValidationTextbox",dijit.form.ValidationTextBox,{compareFieldId:"",invalidMessage:"Fields do not match",postMixInProperties:function(){this.inherited(arguments);this._partialre="^(?:.*)$";},validator:function(_5e0,_5e1){var rtn=this.inherited(arguments);if(rtn&&this.compareFieldId!=""){try{if(_5e0==""){rtn=false;}if(rtn&&_5e0!=dijit.byId(this.compareFieldId).value){rtn=false;}}catch(e){console.error("Error verifying field "+this.id+". Error =  "+e);rtn=false;}}return rtn;}});}if(!dojo._hasResource["bec.user.ResetPassword"]){dojo._hasResource["bec.user.ResetPassword"]=true;dojo.provide("bec.user.ResetPassword");dojo.declare("bec.user.ResetPassword",null,{_postfix:"",openResetPassword:function(_5e3){bec.util.html.hideNode(dojo.byId("challengeAnswerFormBody"+this._postfix));bec.util.html.showNode(dojo.byId("resetPasswordFormBody"+this._postfix));if(_5e3){dojo.byId("passwordLogonId"+this._postfix).value=_5e3.logonId;}},openChallengeAnswer:function(_5e4){bec.util.html.hideNode(dojo.byId("userNameFormBody"+this._postfix));bec.util.html.showNode(dojo.byId("challengeAnswerFormBody"+this._postfix));if(_5e4){dojo.html.set(dojo.byId("lostPass_challengeQuestion_label"),_5e4.challengeQuestion);var _5e5=dojo.byId("resetLogonId"+this._postfix);if(_5e5){_5e5.value=_5e4.logonId;}}},openUserName:function(){scroll(0,0);dijit.byId("signInContainer").selectChild("forgotPassword");},submitOnEnter:function(_5e6){var rtn=true;_5e6=_5e6||window.event;if(_5e6&&_5e6.keyCode==13){var _5e8=_5e6.target||_5e6.srcElement;if(_5e8){if(_5e8.id==("userName_logonId"+this._postfix)){this.submitUserName();rtn=false;}else{if(_5e8.id==("challengeAnswerId"+this._postfix)){this.submitChallengeAnswer();rtn=false;}else{if(_5e8.id==("ResetPasswordForm"+this._postfix)||_5e8.id=="logonPassword1"||_5e8.id=="logonPasswordVerify1"||_5e8.id=="logonPassword2"||_5e8.id=="logonPasswordVerify2"){this.submitPassword();rtn=false;}}}}}return rtn;},submitPassword:function(){cursor_wait();var form=dojo.byId("ResetPasswordForm"+this._postfix);this.hideResetPassError(form);if(this.checkPasswordFields(form)){dojo.io.iframe.send({url:"ResetPassword?URL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionResponse&reLogonURL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionErrorResponse",method:"post",form:form,handleAs:"json",load:function(_5ea,_5eb){if(_5ea){if(_5ea.errorMessage&&_5ea.errorMessage!=""){if(_5ea.errorMessage){getResetPasswordInstance().showResetPassError(_5ea.errorMessage);}else{if(_5ea.errorMessageKey){getResetPasswordInstance().showResetPassError("Unknown Reset Password Error - "+_5ea.errorMessageKey);}}}else{if(_5ea.forwardURL!=""&&_5ea.forwardURL!="undefined"){var _5ec=bec.util.string.replaceAll(_5ea.forwardURL[0],"&amp;","&");try{bec.util.browser.gotoURL(_5ec);}catch(e){window.location.reload(true);}}else{window.location.reload(true);}}}else{window.location.reload(true);}cursor_clear();},error:function(_5ed,_5ee){if(_5ed&&_5ed.message){getResetPasswordInstance().showResetPassError(_5ed.message);}cursor_clear();}});}else{cursor_clear();}return false;},checkPasswordFields:function(form){var _5f0=false;this.hideResetPassError();var _5f1=dijit.byId("logonPassword2");var _5f2=dijit.byId("logonPasswordVerify2");if(_5f1.isValid()){if(_5f2.isValid()){_5f0=true;}else{this.showResetPassError("Passwords do not match. Please verify passwords");}}else{this.showResetPassError("Please enter both passwords");}return _5f0;},submitUserName:function(){cursor_wait();var form=dojo.byId("UserNameForm"+this._postfix);this.hideUserNameError(form);if(this.checkUserNameFields(form)){var _5f4=wc.service.getServiceById("AjaxBECGetUserName");_5f4.formId=form.id;_5f4.invoke();}else{cursor_clear();}return false;},checkUserNameFields:function(form){this.hideUserNameError();var _5f6=dojo.byId("userName_logonId"+this._postfix);if(form&&_5f6&&_5f6.value!=""){return true;}else{this.showUserNameError("Please enter your email address.");}return false;},submitChallengeAnswer:function(){cursor_wait();var form=dojo.byId("ChallengeAnswerForm"+this._postfix);this.hideChallengeAnswerError(form);if(this.checkChallengeAnswerFields(form)){var _5f8=wc.service.getServiceById("AjaxBECGetChallengeAnswer");_5f8.formId=form.id;_5f8.invoke();}else{cursor_clear();}return false;},checkChallengeAnswerFields:function(form){this.hideChallengeAnswerError();var _5fa=dojo.byId("challengeAnswerId"+this._postfix);if(form&&_5fa&&_5fa.value!=""){return true;}else{this.showChallengeAnswerError("Please enter your challenge answer.");}return false;},showUserNameError:function(_5fb){_5fb=bec.util.string.replaceAll(bec.util.string.replaceAll(_5fb,"&gt;",">"),"&lt;","<");this.showError(_5fb,"userNameError"+this._postfix);},hideUserNameError:function(){this.hideError("userNameError"+this._postfix);},showChallengeAnswerError:function(_5fc){_5fc=bec.util.string.replaceAll(bec.util.string.replaceAll(_5fc,"&gt;",">"),"&lt;","<");this.showError(_5fc,"challengeAnswerError"+this._postfix);},hideChallengeAnswerError:function(){this.hideError("challengeAnswerError"+this._postfix);},showResetPassError:function(_5fd){this.showError(_5fd,"resetPasswordError"+this._postfix);},hideResetPassError:function(){this.hideError("resetPasswordError"+this._postfix);},showError:function(_5fe,id){dojo.html.set(dojo.byId(id),_5fe);bec.util.html.showNode(dojo.byId(id));},hideError:function(id){dojo.html.set(dojo.byId(id),"");bec.util.html.hideNode(dojo.byId(id));},backToSignIn:function(){dijit.byId("signInContainer").selectChild("signInDropDown");}});resetPassword=new bec.user.ResetPassword();dojo.declare("bec.user.ResetPasswordPopup",[bec.user.ResetPassword],{_postfix:"Popup",backToSignIn:function(){if(becLogon){becLogon.backToSignIn();}else{if(becLogonPage){becLogonPage.close();}}},openUserName:function(_601){var url=AJAX_INCLUDE_VIEW+"UserArea/AccountSection/LogonSubsection/BECForgotPassword.jsp&popup=true";if(_601!=""&&_601!="undefined"){url+="&URL="+_601;}return popup.functionalWithUrl("fp-popup","Forgot Password",url,false);},showResetPassError:function(_603){this.showError(_603,"resetPasswordError"+this._postfix);},hideResetPassError:function(){this.hideError("resetPasswordError"+this._postfix);},showUserNameError:function(_604){_604=bec.util.string.replaceAll(bec.util.string.replaceAll(_604,"&gt;",">"),"&lt;","<");this.showError(_604,"userNameError"+this._postfix);},hideUserNameError:function(){this.hideError("userNameError"+this._postfix);},showChallengeAnswerError:function(_605){_605=bec.util.string.replaceAll(bec.util.string.replaceAll(_605,"&gt;",">"),"&lt;","<");this.showError(_605,"challengeAnswerError"+this._postfix);},hideChallengeAnswerError:function(){this.hideError("challengeAnswerError"+this._postfix);}});wc.service.declare({id:"AjaxBECGetUserName",actionId:"AjaxBECGetUserName",url:"AjaxBECGetUserName?URL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionResponse&reLogonURL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionErrorResponse",formId:"",successHandler:function(_606){getResetPasswordInstance().openChallengeAnswer(_606);cursor_clear();},failureHandler:function(_607){getResetPasswordInstance().showUserNameError(_607.errorMessage);cursor_clear();}});wc.service.declare({id:"AjaxBECGetChallengeAnswer",actionId:"AjaxBECGetChallengeAnswer",url:"AjaxBECGetChallengeAnswer?URL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionResponse&reLogonURL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionErrorResponse",formId:"",successHandler:function(_608){getResetPasswordInstance().openResetPassword(_608);cursor_clear();},failureHandler:function(_609){getResetPasswordInstance().showChallengeAnswerError(_609.errorMessage);cursor_clear();}});}if(!dojo._hasResource["bec.user.Logon"]){dojo._hasResource["bec.user.Logon"]=true;dojo.provide("bec.user.Logon");dojo.declare("bec.user.Logon",null,{_thisPopUp:null,_initUrl:null,open:function(url){_initUrl=url;this._thisPopUp=popup.functionalWithUrl("logon-popup","",url,false);},backToSignIn:function(){this.close();this.open(_initUrl);},getForwardUrl:function(){var _60b="";try{var _60c=dojo.byId("forwardURL");if(_60c){_60b=encodeURIComponent(_60c.value);}}catch(e){}return _60b;},close:function(){if(this._thisPopUp){this._thisPopUp.destroyDescendants();this._thisPopUp.destroy();}},showBillingForm:function(){var url="BECLogonBillingForm?storeId="+storeId;var _60e=this.getForwardUrl();if(_60e!=""){url+="&URL="+_60e;}this.close();this._thisPopUp=popup.functionalWithUrl("logon-popup","Enter Billing Info",url,false);},showCreateAccountPopup:function(form){if(addressHelper.validateAddressForm(form,1)){var _610=dojo.byId("email1_1").value;var url="BECCreateAccountForm?storeId="+storeId+"&logonId="+_610;this._thisPopUp=popup.functionalWithUrl("account-popup","Create New Account",url,false);}else{popup.errorWithContent("reg-error","Account Creation Error","<span class='error'>Please enter required address information before creating an account.</span>");}},_subscribed:null,createNewAccount:function(_612){if(!this._subscribed){this._subscribed=dojo.subscribe("createNewAccount",this,"createNewAccount");}var _613=document.BECCreateAccountForm;var _614=document.editAddressForm_1;dojo.byId("acctErrorMessage").innerHTML="";if(this.isValidRegistrationFields(_613)&&addressHelper.validateAddressForm(_614,1)){cursor_wait();dojo.byId("reglogonId").value=dojo.byId("logonId1").value;dojo.byId("reglogonPassword").value=dojo.byId("logonPassword1").value;dojo.byId("reglogonPasswordVerify").value=dojo.byId("logonPasswordVerify1").value;dojo.byId("regchallengeQuestion").value=dojo.byId("challengeQuestion").value;dojo.byId("regchallengeAnswer").value=dojo.byId("challengeAnswer").value;var _615=wc.service.getServiceById("AjaxRegistrationAdd");if(_612){_615.invoke(_612);}_615.invoke();}else{dojo.byId("acctErrorMessage").innerHTML=this._accountCreateErrorMsg;}},_accountCreateErrorMsg:null,isValidRegistrationFields:function(form){var _617=false;if(form){var _618=dijit.byId("logonId1");var _619=dijit.byId("logonPassword1");var _61a=dijit.byId("logonPasswordVerify1");var _61b=dijit.byId("challengeAnswer");var _61c=form.challengeQuestion;if(_618.isValid()&&_619.isValid()&&_61b.isValid()&&_61c.selectedIndex>0){if(_61a.isValid()){_617=true;}else{this._accountCreateErrorMsg="<div class='error'>Passwords do not match. Please verify passwords.</div>";}}else{this._accountCreateErrorMsg="<div class='error'>Please enter all required fields.</div>";}}return _617;},showResetPassword:function(){this.close();showResetPasswordDD();},isValidLogonFields:function(form){var _61e=false;if(form){this.hideError(form.id);var _61f=function(_620){return (_620&&_620.validateSubmit(true));};var sfx=(form.id=="SignInFormDD")?"":"1";_61e=(_61f(dijit.byId("logonId"+sfx))&&_61f(dijit.byId("logonPassword"+sfx)));if(!_61e){this.showError(form.id,"Please fill out the form completely.");}}return _61e;},hideError:function(_622){bec.util.html.hideNode(dojo.byId(_622+"-logonError"));},showError:function(_623,_624){var node=dojo.byId(_623+"-logonError");bec.util.html.set(node,_624);bec.util.html.showNode(node);},submitOnEnter:function(e,form){e=e||window.event;var code=e.keyCode||e.which;if(code==13){if(form&&(form.id=="BECLoginFormPopup"||form.id=="SignInFormDD"||form.id=="BECLoginForm")){this.submitLogon(form);}else{if(form&&form.id=="BECCreateAccountForm"){this.createNewAccount(form);}}}},submitLogon:function(form){cursor_wait();if(this.isValidLogonFields(form)){var _62a="";if(document.domain!=document.location.hostname){_62a=document.domain;}dojo.io.iframe.send({url:"Logon?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId+"&becDomain="+_62a+"&URL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionResponse&reLogonURL="+window.location.protocol+"//"+window.location.hostname+"/gifts/store/AjaxLogonActionErrorResponse",method:"post",form:form,handleAs:"json",load:function(_62b,_62c){if(_62b){if(_62b.errorMessage&&_62b.errorMessage!=""){if(_62b.errorMessage){this.getInstance().showError(form.id,_62b.errorMessage);}else{if(_62b.errorMessageKey){this.getInstance().showError(form.id,"Unknown Logon Error - "+_62b.errorMessageKey);}}try{var sfx=(form.id=="SignInFormDD")?"":"1";dojo.byId("logonPassword"+sfx).value="";}catch(e){}}else{if(_62b.forwardURL!=""){var _62e=bec.util.string.replaceAll(_62b.forwardURL[0],"&amp;","&");try{bec.util.browser.gotoURL(_62e+this.getInstance().getCMRegTag(_62e));}catch(e){bec.util.browser.gotoURL(_62e);}}else{var _62f=window.location.href;if(_62f.indexOf("UserRegistrationUpdate")>=0){bec.util.browser.gotoURL("BECHomePageView?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId);}else{if(_62f.indexOf("OrderDisplay")>=0){bec.util.browser.gotoURL("BECCheckoutDisplay?storeId="+storeId+"&catalogId="+catalogId+"&langId="+langId);}else{var end=_62f.indexOf("#");if(end>=0){_62f=_62f.substring(0,end);}bec.util.browser.gotoURL(_62f+this.getInstance().getCMRegTag(_62f));}}}}}else{window.location.reload(true);}cursor_clear();},error:function(_631,_632){if(_631&&_631.message){this.getInstance().showError(form.id,"An error occured trying to Sign In. Please try again.");}cursor_clear();},getInstance:function(){if(becLogon){return becLogon;}else{if(becLogonPanel){return becLogonPanel;}}}});}else{cursor_clear();}return false;},getCMRegTag:function(_633){var _634="cmCreateRegTag=SignIn";if(_633&&_633.indexOf("&")>0){_634="&"+_634;}else{_634="?"+_634;}return _634;},loadForgotPassword:function(){if(!resetPasswordPopup){resetPasswordPopup=new bec.user.ResetPasswordPopup();resetPassword=null;}this.close();var _635=this.getPswForwardUrl();this._thisPopUp=resetPasswordPopup.openUserName(_635);},getPswForwardUrl:function(){var _636="";try{var _637=dojo.byId("URL");if(_637&&_637.value!="undefined"){_636=encodeURIComponent(_637.value);}}catch(e){}return _636;},showRememberMe:function(url){popup.withUrl("RememberMeDetails","Remember Me Details",url);},showSignInChange:function(){popup.infoWithUrl("deliveryPopup","Delivery Rate Details",eSiteContentIncludePath+"/signInChange.html");}});dojo.declare("bec.user.LogonPanel",[bec.user.Logon],{open:function(){this.init();dijit.byId("signInContainer").selectChild("signInDropDown");},hideError:function(form){var node=dojo.byId("SignInFormDD-logonError");bec.util.html.set(node,"");bec.util.html.hideNode(node);},showError:function(form,_63c){var node=dojo.byId("SignInFormDD-logonError");bec.util.html.set(node,_63c);bec.util.html.showNode(node);dojo.publish("LogonPanel-showError");},init:function(){this.hideError(null);},loadForgotPassword:function(){if(!resetPassword){resetPassword=new bec.user.ResetPassword();resetPasswordPopup=null;}resetPassword.openUserName();},backToSignIn:function(){dijit.byId("signInContainer").selectChild("signInDropDown");},showSignInChange:function(){popup.infoWithUrl("signInChangePopup","Sign In has changed",eSiteContentIncludePath+"/signInChange.html");}});dojo.declare("bec.user.LogonPage",[bec.user.Logon],{submitLogon:function(form){cursor_wait();if(this.isValidLogonFields(form)){form.submit();}cursor_clear();},init:function(form){try{if(form){form.logonId.focus();form.logonId.select();}this.setTabIndex();}catch(e){}},setTabIndex:function(){var _640=1;dojo.forEach(dojo.query("#logonForm input,#logonForm a, #register a"),function(node){if(node.type!="hidden"){dojo.attr(node,"tabindex",_640);_640++;}},this);},showSignInChange:function(){popup.infoWithUrl("signInChangePopup","Sign In has changed",eSiteContentIncludePath+"/signInChange.html");}});}if(!dojo._hasResource["wc.analytics.GenericEventListener"]){dojo._hasResource["wc.analytics.GenericEventListener"]=true;dojo.provide("wc.analytics.GenericEventListener");dojo.declare("wc.analytics.GenericEventListener",null,{_loaded:false,initializer:function(){},load:function(){if(this._loaded==false){dojo.subscribe("/wc/analytics/pageview",this,this.handlePageView);dojo.subscribe("/wc/analytics/productview",this,this.handleProductView);dojo.subscribe("/wc/analytics/cartview",this,this.handleCartView);dojo.subscribe("/wc/analytics/element",this,this.handleElement);dojo.subscribe("/wc/analytics/registration",this,this.handleRegistration);this._loaded=true;}},handlePageView:function(obj){},handleProductView:function(obj){},handleCartView:function(obj){},handleElement:function(obj){},handleRegistration:function(obj){}});}if(!dojo._hasResource["wc.analytics.CoremetricsEventListener"]){dojo._hasResource["wc.analytics.CoremetricsEventListener"]=true;dojo.provide("wc.analytics.CoremetricsEventListener");dojo.declare("wc.analytics.CoremetricsEventListener",wc.analytics.GenericEventListener,{PARAM_STORE_ID:"storeId",handlePageView:function(obj){var _648="pagename";var _649="category";var _64a="searchTerms";var _64b="searchCount";var _64c=document.title;var _64d=null;var _64e=null;var _64f=null;var _650=this._getStoreId();var args=new Array();for(x in obj){if(x==_648){_64c=obj[x];}else{if(x==_649){_64d=obj[x];}else{if(x==_64a){_64e=obj[x];}else{if(x==_64b){_64f=obj[x];}else{if(x==this.PARAM_STORE_ID){_650=obj[x];}else{args.push(obj[x]);}}}}}}args.unshift(_64c,_64d,_64e,_64f,_650);cmCreatePageviewTag.apply({},args);},handleProductView:function(obj){var _653="productId";var _654="name";var _655="category";var _656="masterCategory";var _657=null;var _658=null;var _659=null;var _65a=null;var _65b=this._getStoreId();var args=new Array();for(x in obj){if(x==_653){_657=obj[x];}else{if(x==_654){_658=obj[x];}else{if(x==_655){_659=obj[x];}else{if(x==_656){_65a=obj[x];}else{if(x==this.PARAM_STORE_ID){_65b=obj[x];}else{args.push(obj[x]);}}}}}}if((_657==null)||(_658==null)||(_659==null)||(_65a==null)){}else{args.unshift(null,_657,_658,_659,_65b,"N",_65a);cmCreateProductviewTag.apply({},args);}},handleCartView:function(obj){var _65e="productId";var _65f="name";var _660="category";var _661="masterCategory";var _662="quantity";var _663="price";var _664="currency";var _665=false;if(obj.cart&&dojo.isArrayLike(obj.cart)){var cart=obj.cart;for(var i=0;i<cart.length;i++){var _668=null;var _669=null;var _66a=null;var _66b=null;var _66c=null;var _66d=null;var _66e=null;var _66f=this._getStoreId();var args=new Array();var _671=cart[i];for(x in _671){if(x==_65e){_668=_671[x];}else{if(x==_65f){_669=_671[x];}else{if(x==_660){_66a=_671[x];}else{if(x==_661){_66b=_671[x];}else{if(x==_662){_66c=_671[x];}else{if(x==_663){_66d=_671[x];}else{if(x==_664){_66e=_671[x];}else{if(x==this.PARAM_STORE_ID){_66f=_671[x];}else{args.push(_671[x]);}}}}}}}}}if((_668==null)||(_669==null)||(_66a==null)||(_66b==null)||(_66c==null)||(_66d==null)||(_66e==null)){}else{_665=true;args.unshift(_668,_669,_66c,_66d,_66a,_66f,_66e,_66b);cmCreateShopAction5Tag.apply({},args);}}}else{}if(_665){cmDisplayShop5s();}},handleElement:function(obj){var _673="elementId";var _674="category";var _675="pageId";var _676="pageCategory";var _677="location";var _678=null;var _679=null;var _67a=null;var _67b=null;var _67c=null;var _67d=this._getStoreId();var args=new Array();for(x in obj){if(x==_673){_678=obj[x];}else{if(x==_674){_679=obj[x];}else{if(x==_675){_67a=obj[x];}else{if(x==_676){_67b=obj[x];}else{if(x==_677){_67c=obj[x];}else{if(x==this.PARAM_STORE_ID){_67d=obj[x];}else{args.push(obj[x]);}}}}}}}if(_678==null){}else{args.unshift(_678,_679,_67a,_67b,_67c,_67d);cmCreatePageElementTag.apply({},args);}},handleRegistration:function(obj){var _680="userId";var _681="userEmail";var _682="userCity";var _683="userState";var _684="userZip";var _685="newsletterName";var _686="subscribedFlag";var _687="storeId";var _688="userCountry";var _689="age";var _68a="gender";var _68b="maritalStatus";var _68c="numChildren";var _68d="numInHousehold";var _68e="companyName";var _68f="hobbies";var _690="income";var _691=null;var _692=null;var _693=null;var _694=null;var _695=null;var _696=null;var _697=null;var _698=null;var age=null;var _69a=null;var _69b=null;var _69c=null;var _69d=null;var _69e=null;var _69f=null;var _6a0=null;var _6a1=this._getStoreId();var args=new Array();for(x in obj){if(x==_680){_691=obj[x];}else{if(x==_681){_692=obj[x];}else{if(x==_682){_693=obj[x];}else{if(x==_683){_694=obj[x];}else{if(x==_684){_695=obj[x];}else{if(x==_685){_696=obj[x];}else{if(x==_686){_697=obj[x];}else{if(x==_687){_6a1=obj[x];}else{if(x==_688){_698=obj[x];}else{if(x==_689){age=obj[x];}else{if(x==_68a){_69a=obj[x];}else{if(x==_68b){_69b=obj[x];}else{if(x==_68c){_69c=obj[x];}else{if(x==_68d){_69d=obj[x];}else{if(x==_68e){_69e=obj[x];}else{if(x==_68f){_69f=obj[x];}else{if(x==_690){_6a0=obj[x];}else{args.push(obj[x]);}}}}}}}}}}}}}}}}}}args.unshift(_691,_692,_693,_694,_695,_696,_697,_6a1,_698,age,_69a,_69b,_69c,_69d,_69e,_69f,_6a0);cmCreateRegistrationTag.apply({},args);},_getStoreId:function(){var _6a3=window.location.search.substr(1).split("&");for(var i=0;i<_6a3.length;i++){var nvp=_6a3[i].split("=");if((nvp.length==2)&&(nvp[0]==this.PARAM_STORE_ID)){return nvp[1];}}return null;}});}if(!dojo._hasResource["bec.analytics.CoremetricsEventListener"]){dojo._hasResource["bec.analytics.CoremetricsEventListener"]=true;dojo.provide("bec.analytics.CoremetricsEventListener");dojo.declare("bec.analytics.CoremetricsEventListener",wc.analytics.CoremetricsEventListener,{PARAM_STORE_ID:"attributes",load:function(){var _6a6=new wc.analytics.CoremetricsEventListener();_6a6.PARAM_STORE_ID="attributes";_6a6.load();dojo.subscribe("/bec/analytics/coremetrics/productview",this,this.handleProductView);dojo.subscribe("/bec/analytics/coremetrics/addtocartview",this,this.handleAddToCartView);dojo.subscribe("/bec/analytics/coremetrics/orderokview",this,this.handleOrderOKView);dojo.subscribe("/bec/analytics/coremetrics/registration",this,this.handleRegistration);dojo.subscribe("/bec/analytics/coremetrics/ordertagview",this,this.handleOrderTag);},handleProductView:function(obj){var _6a8="productId";var _6a9="name";var _6aa="category";var _6ab="attributes";var _6ac=null;var _6ad=null;var _6ae=null;var _6af=null;var args=new Array();for(x in obj){if(x==_6a8){_6ac=obj[x];}else{if(x==_6a9){_6ad=clearHTMLTags(obj[x]);}else{if(x==_6aa){_6ae=obj[x];}else{if(x==_6ab){_6af=obj[x];}else{args.push(obj[x]);}}}}}if((_6ac==null)||(_6ad==null)||(_6ae==null)||(_6af==null)){}else{args.unshift(_6ac,_6ad,_6ae,_6af);console.debug(" cmCreateProductviewTag("+args+")");cmCreateProductviewTag.apply({},args);}},handleAddToCartView:function(obj){var _6b2="productId";var _6b3="name";var _6b4="category";var _6b5="masterCategory";var _6b6="quantity";var _6b7="price";var _6b8="currency";var _6b9=false;var _6ba=null;var _6bb=null;var _6bc=null;var _6bd=null;var _6be=null;var _6bf=null;var _6c0=null;var _6c1=this._getStoreId();var args=new Array();for(x in obj){if(x==_6b2){_6ba=obj[x];}else{if(x==_6b3){_6bb=clearHTMLTags(obj[x]);}else{if(x==_6b4){_6bc=obj[x];}else{if(x==_6b5){_6bd=obj[x];}else{if(x==_6b6){_6be=obj[x];}else{if(x==_6b7){_6bf=obj[x];}else{if(x==_6b8){_6c0=obj[x];}else{if(x==this.PARAM_STORE_ID){_6c1=obj[x];}else{args.push(obj[x]);}}}}}}}}}if((_6ba==null)||(_6bb==null)||(_6bc==null)||(_6bd==null)||(_6be==null)||(_6bf==null)||(_6c0==null)){}else{_6b9=true;args.unshift(_6ba,_6bb,_6be,_6bf,_6bc,_6c1,_6c0,_6bd);console.debug(" cmCreateShopAction5Tag("+args+")");cmCreateShopAction5Tag.apply({},args);}if(_6b9){cmDisplayShop5s();}},handleOrderOKView:function(obj){var _6c4="productId";var _6c5="name";var _6c6="category";var _6c7="masterCategory";var _6c8="quantity";var _6c9="price";var _6ca="currency";var _6cb="orderId";var _6cc="orderTotal";var _6cd="customerId";var _6ce=false;if(obj.cart&&dojo.isArrayLike(obj.cart)){var cart=obj.cart;for(var i=0;i<cart.length;i++){var _6d1=null;var _6d2=null;var _6d3=null;var _6d4=null;var _6d5=null;var _6d6=null;var _6d7=null;var _6d8=null;var _6d9=null;var _6da=null;var _6db=this._getStoreId();var args=new Array();var _6dd=cart[i];for(x in _6dd){if(x==_6c4){_6d1=_6dd[x];}else{if(x==_6c5){_6d2=clearHTMLTags(_6dd[x]);}else{if(x==_6c6){_6d3=_6dd[x];}else{if(x==_6c7){_6d4=_6dd[x];}else{if(x==_6c8){_6d5=_6dd[x];}else{if(x==_6c9){_6d6=_6dd[x];}else{if(x==_6ca){_6d7=_6dd[x];}else{if(x==_6cb){_6d8=_6dd[x];}else{if(x==_6cc){_6d9=_6dd[x];}else{if(x==_6cd){_6da=_6dd[x];}else{if(x==this.PARAM_STORE_ID){_6db=_6dd[x];}else{args.push(_6dd[x]);}}}}}}}}}}}}if((_6d1==null)||(_6d2==null)||(_6d3==null)||(_6d4==null)||(_6d5==null)||(_6d6==null)||(_6d7==null)||(_6da==null)||(_6d8==null)||(_6d9==null)){}else{_6ce=true;args.unshift(_6d1,_6d2,_6d5,_6d6,_6da,_6d8,_6d9,_6d3,_6db,_6d7,_6d4);cmCreateShopAction9Tag.apply({},args);}}}else{}if(_6ce){cmDisplayShop9s();}},handleRegistration:function(obj){var _6df="userId";var _6e0="memberId";var _6e1="firstName";var _6e2="userPhone1";var _6e3="userEmail";var _6e4="userCity";var _6e5="userState";var _6e6="userZip";var _6e7="newsletterName";var _6e8="subscribedFlag";var _6e9="storeId";var _6ea="userCountry";var _6eb="age";var _6ec="gender";var _6ed="minIncome";var _6ee="maxIncome";var _6ef="eduLevel";var _6f0="addressType";var _6f1="customerType";var _6f2="customerId";var _6f3=null;var _6f4=null;var _6f5=null;var _6f6=null;var _6f7=null;var _6f8=null;var _6f9=null;var _6fa=null;var _6fb=null;var _6fc=null;var _6fd=null;var age=null;var _6ff=null;var _700=null;var _701=null;var _702=null;var _703=null;var _704=this._getStoreId();var args=new Array();var _706=null;var _707=null;for(x in obj){if(x==_6df){_6f3=obj[x];}else{if(x==_6e0){_6f4=obj[x];}else{if(x==_6e1){_6f5=obj[x];}else{if(x==_6e2){_6f6=obj[x];}else{if(x==_6e3){_6f7=obj[x];}else{if(x==_6e4){_6f8=obj[x];}else{if(x==_6e5){_6f9=obj[x];}else{if(x==_6e6){_6fa=obj[x];}else{if(x==_6e7){_6fb=obj[x];}else{if(x==_6e8){_6fc=obj[x];}else{if(x==_6e9){_704=obj[x];}else{if(x==_6ea){_6fd=obj[x];}else{if(x==_6eb){age=obj[x];}else{if(x==_6ec){_6ff=obj[x];}else{if(x==_6ed){_700=obj[x];}else{if(x==_6ee){_701=obj[x];}else{if(x==_6ef){_702=obj[x];}else{if(x==_6f0){_703=obj[x];}else{if(x==_6f1){_707=obj[x];}else{if(x==_6f2){_706=obj[x];}else{args.push(obj[x]);}}}}}}}}}}}}}}}}}}}}}cmRegAttributes=_6fb+"-_-"+_6fc+"-_-"+_6fd+"-_-"+_6f5+"-_-"+age+"-_-"+_6ff+"-_-"+_700+"-_-"+_701+"-_-"+_702+"-_-"+_703+"-_--_-"+_707+"-_--_--_-";console.debug("cmCreateRegistrationTag"+"\n   cmCustomerId: "+_706+"\n   customerEmail: "+_6f7+"\n   customerCity: "+_6f8+"\n   customerState: "+_6f9+"\n   customerZIP: "+_6fa+"\n   cmRegAttributes: "+cmRegAttributes);args.unshift(_706,_6f7,_6f8,_6f9,_6fa,cmRegAttributes);cmCreateRegistrationTag.apply({},args);},handleOrderTag:function(obj){var _709="orderId";var _70a="orderTotal";var _70b="orderShipping";var _70c="customerId";var _70d="customerCity";var _70e="customerState";var _70f="customerZip";var _710=null;var _711=null;var _712=null;var _713=null;var _714=null;var _715=null;var _716=null;var args=new Array();for(x in obj){if(x==_709){_710=obj[x];}else{if(x==_70a){_711=obj[x];}else{if(x==_70b){_712=obj[x];}else{if(x==_70c){_713=obj[x];}else{if(x==_70d){_714=obj[x];}else{if(x==_70e){_715=obj[x];}else{if(x==_70f){_716=obj[x];}else{if(x==this.PARAM_STORE_ID){attributes=obj[x];}else{args.push(obj[x]);}}}}}}}}}args.unshift(_710,_711,_712,_713,_714,_715,_716,attributes);cmCreateOrderTag.apply({},args);}});}if(!dojo._hasResource["bec.analytics.Coremetrics"]){dojo._hasResource["bec.analytics.Coremetrics"]=true;dojo.provide("bec.analytics.Coremetrics");var analytics=null;dojo.addOnLoad(function(){analytics=new bec.analytics.Coremetrics();});dojo.declare("bec.analytics.Coremetrics",null,{storeId:storeId,catalogId:catalogId,customerId:null,customerType:null,urlPath:null,jsonPageView:"AnalyticsPageView",jsonProductView:"AnalyticsProductView",jsonElementView:"AnalyticsElementView",jsonShopcartView:"AnalyticsShopcartView",jsonRegistrationView:"AnalyticsRegistrationView",jsonAddToCartView:"AnalyticsAddToCartView",jsonOrderOKView:"AnalyticsOrderOkView",jsonOrderTagView:"AnalyticsOrderTagView",wcTopicNamespace:"/wc/analytics/",becTopicNamespace:"/bec/analytics/coremetrics/",pageView:"pageview",productView:"productview",cartView:"cartview",addToCartView:"addtocartview",element:"element",registration:"registration",orderOKView:"orderokview",orderTagView:"ordertagview",productDisplayViewActionIdList:["AjaxAddOrderItem","BECOrderItemAddCatalogQuickOrder"],giftlistElementIdList:[["common",["giftlistSortDate","giftlist_sortByDate"],["giftlistSortName","giftlist_sortByName"],["giftlistShopOOH","giftlist_shopOOH"],["giftlistDownloadFile","giftlist_downloadFile"]],["button",["expressReOrderBtn_","giftlist_expressReOrder"]]],giftlistRecipElementIdList:[["unique",["cmShopOthers_","giftlist_shopOthers"]]],_giftlistDownloadElementIdList:[["button",["downloadFile_","giftlist_downloadFile"]]],cartViewActionIdList:["AjaxOrderItemUpdate","AjaxLTValidateShipChoice","AjaxAddressAdd"],promoActionIdList:["AjaxCouponsAddRemove","AjaxPromotionCodeManage"],checkoutCommonOrderTotalsPageViewList:[["shippingChartPopup","popup_payment-totalShippingDetails"],["additionalChargesPopup","popup_payment-additionalChargeDetails"]],orderDisplayPayMethodPageViewList:[["giftCardPopup","popup_giftCardDetails","Checkout"]],shipDeliveryElementIdList:[["button",["splitAction_","chkout_sendToMultipleLocations"]]],shipDeliveryAddressModuleElementIdList:[["common",["rbHomeAddress","chkOut_firstStep_isHomeAddress"],["rbBusinessAddress","chkOut_firstStep_isBusAddress"]],["button",["btnRecipSave_","chkOut_firstStep_submitAddress"],["btnRecipClose_","chkOut_firstStep_closeAddressSection",true]],["unique",["useAsBillingAddress_","chkOut_firstStep_useAsBillingAddress"]]],shipDeliveryCalendarModuleElementIdList:[["common",["calendarDeliveryRatesPopup","chkOut_calendar_deliveryRatesPopup"]],["button",["btnDeliverSave_","chkOut_submitDelivCalendar"],["btnDeliverClose_","chkOut_closeDelivCalendar",true]],["unique",["arriveBy_","chkOut_calendar_arriveBy"],["overnightDelivery_","chkOut_calendar_overnightDelivery"]]],cardsMessagingElementIdList:[["button",["btnUpdateTaxes_","chkOut_reCalculateTaxes"]]],couponWalletElementIdList:[["common",["couponRadio","chkOut_couponWallet_selectCoupon"],["promoRadio","chkOut_couponWallet_selectPromo"]]],_pageViewCategory:"",handledEvents:[],constructor:function(){try{var _718=new bec.analytics.CoremetricsEventListener();_718.load();this._pageViewCategory=cmCategory;}catch(e){console.error("bec.analytics.Coremetrics constructor Exception: "+e);}},publishAnalyticsView:function(_719,_71a,_71b){var _71c=this;var kw={url:_719,encoding:"utf-8",handleAs:"json",content:dojo.mixin({storeId:_71c.storeId,catalogId:_71c.catalogId},_71a),error:function(type,_71f){},load:function(data,_721){_71b.call(_71c,data);}};dojo.xhrGet(kw);},publishProductView:function(_722,_723,_724){var _725=this;this.publishAnalyticsView(_725.jsonProductView,{productId:_722,productName:_723,category:_724},function(data){_725.publishTopic(_725.becTopicNamespace,_725.productView,data);});},publishCartView:function(){var _727=this;this.publishAnalyticsView(_727.jsonShopcartView,{storeId:_727.storeId},function(data){_727.publishTopic(_727.wcTopicNamespace,_727.cartView,data);});},publishElementTag:function(_729,_72a){var _72b=this;_72b.publishAnalyticsView(_72b.jsonElementView,{elementId:_729,category:_72a,pageId:document.title,pageCategory:_72a},function(data){_72b.publishTopic(_72b.wcTopicNamespace,_72b.element,data);});},publishPageView:function(_72d){var _72e=this;this.publishAnalyticsView(_72e.jsonPageView,_72d,function(data){_72e.publishTopic(_72e.wcTopicNamespace,_72e.pageView,data);});},publishAddToCartView:function(_730){var _731=this;this.publishAnalyticsView(_731.jsonAddToCartView,{storeId:_731.storeId,orderItemId:_730},function(data){_731.publishTopic(_731.becTopicNamespace,_731.addToCartView,data);});},publishOrderOKView:function(_733,_734,_735){var _736=this;this.publishAnalyticsView(_736.jsonOrderOKView,{orderId:_733,orderNum:_734,custNum:_735},function(data){_736.publishTopic(_736.becTopicNamespace,_736.orderOKView,data);});},publishOrderTag:function(_738,_739,_73a,_73b,_73c,_73d){var _73e=this;this.publishAnalyticsView(_73e.jsonOrderTagView,{orderId:_738,orderNum:_739,custNum:_73a,custCity:_73b,custState:_73c,custZip:_73d},function(data){_73e.publishTopic(_73e.becTopicNamespace,_73e.orderTagView,data);});},publishRegistrationView:function(_740,_741){var _742=this;this.publishAnalyticsView(_742.jsonRegistrationView,{orderId:_740},function(data){_742.processCustomerData(data);data[0].customerId=_742.getCustomerId();_742.publishTopic(_742.becTopicNamespace,_742.registration,data);if(_741){_742.publishOrderOKView(cmOrderId,cmOrderNum,_742.getCustomerId());var _744=data[0]["userCity"];var _745=data[0]["userState"];var _746=data[0]["userZip"];_742.publishOrderTag(cmOrderId,cmOrderNum,_742.getCustomerId(),_744,_745,_746);}});},publishTopic:function(_747,_748,_749){var _74a=this.makeTopic(_747,_748);dojo.publish(_74a,_749);},makeTopic:function(_74b,_74c){return [_74b,_74c].join("");},registerProductDisplayView:function(){var _74d=this;dojo.forEach(this.productDisplayViewActionIdList,function(_74e){dojo.subscribe("modelChanged/"+_74e,function(_74f){if(_74f.orderItemId){_74d.publishAddToCartView(_74f.orderItemId);addToCartPageName="ITEMADDEDTOCART";addToCartCatName="ITEM-ADDED-TO-CART";_74d.publishPageView(_74d.getPageViewData(addToCartPageName,addToCartCatName));}});});},registerCartView:function(){var _750=this;dojo.forEach(this.cartViewActionIdList,function(_751){dojo.subscribe("modelChanged/"+_751,function(){_750.publishCartView();});});},registerElementTags:function(_752,_753,_754){var _755=this;var _756="common";var _757="button";var _758="unique";var _759="";if(_752.length>0){var _75a=(_753!=null?_753.containerNode:null);dojo.forEach(_752,function(el){dojo.forEach(el,function(el1,idx){if(idx==0){_759=el1;}else{var _75e=el1[0];var _75f;var _760;var _761;var _762;switch(_759){case _757:_760=dojo.query("a[id^='"+_75e+"']",_75a);break;case _758:_75e=_75e+_753.idx;if(dojo.byId(_75e)){_75f=dojo.byId(_75e);}else{_760=dojo.query("a[id^='"+_75e+"']",_75a);}break;default:_75f=dojo.byId(_75e);break;}_761=el1[1];if(_75f||(typeof _760!="undefined"&&_760.length>0)){if(_760!=undefined&&_760.length>0){dojo.forEach(_760,function(_763){_762=_763.id;_755.handledEvents.push(dojo.connect(_763,"onclick",_755,function(){_755.publishElementTag(_761,_754);}));var _764=el1[2];if(_764){_755.handledEvents.push(dojo.connect(_763,"onclick",_755,function(){_755.cleanUpConnects();}));}});}else{_762=_75f.id;_755.handledEvents.push(dojo.connect(_75f,"onclick",_755,function(){_755.publishElementTag(_761,_754);}));}console.debug("registerElementTags - Element "+_762+" successfully registered.");}else{console.error("registerElementTags - Unable to register "+_75e+" element.");}}});});}},registerPageViews:function(_765){var _766=this;dojo.forEach(_765,function(page){var node=dojo.byId(page[0]);var _769=page[1];var _76a=page[2];if(node){dojo.connect(node,"onclick",_766,function(){var _76b=_766.getPageViewData(_769,_76a);_766.publishPageView(_76b);});console.debug("registerPageViews - PageView "+page[0]+" successfully registered.");}else{console.debug("registerPageViews - Unable to register "+page[0]+" pageView.");}});},getPageViewData:function(_76c,_76d){var _76e=this;_76d=(typeof _76d!=="undefined")?_76d:_76e.pageViewCategory;return {pagename:_76c,category:_76d};},initGiftlistDisplay:function(){try{var _76f=this;var _770="Giftlist";_76f.registerElementTags(_76f.giftlistElementIdList,null,_770);dojo.subscribe("giftlist-recipItemLoaded",function(_771){dojo.subscribe("recipItemSection_"+_771.idx+"-titleSummaryPane-toggled",function(){var _772="giftlist_recipExpandCollapse";_76f.publishElementTag(_772,_770);});});dojo.subscribe("giftlist-displaySelected",function(){var _773="giftlist_chooseGiftlist";_76f.publishElementTag(_773,_770);});dojo.subscribe("modelChanged/AjaxAddOrderItem",function(_774){if(typeof _774.orderItemId!="undefined"&&_774.orderItemId!=""){for(param in _774){if(param.startsWith("orderItemId_")){_76f.publishAddToCartView(_774[param]);}}}});}catch(e){console.error("bec.analytics.Coremetrics initGiftlistDisplay Exception: "+e);}},initGiftlistDownloadDisplay:function(){try{var _775=this;var _776="Giftlist";_775.registerElementTags(_775._giftlistDownloadElementIdList,null,_776);}catch(e){console.error("bec.analytics.Coremetrics initGiftlistDownloadDisplay Exception: "+e);}},initProductDisplay:function(){try{var _777=this;if(typeof cmProductPage!="undefined"&&cmProductPage=="Yes"){_777.publishProductView(cmProductId,cmItemName,cmCategory);_777.registerProductDisplayView();}}catch(e){console.error("bec.analytics.Coremetrics initProductDisplay Exception: "+e);}},initShoppingCart:function(){try{var _778=this;_778.initCommon();_778.registerCartView();_778.applyCheckoutConversionEvent();}catch(e){console.error("bec.analytics.Coremetrics initShoppingCart Exception: "+e);}},initCommon:function(){try{var _779=this;_779.publishCartView();}catch(e){console.error("bec.analytics.Coremetrics initCommon Exception: "+e);}},initShipDelivery:function(){try{var _77a=this;_77a.initCommon();_77a.registerCartView();_77a.registerShipDeliveryElements();}catch(e){console.error("bec.analytics.Coremetrics initShipDelivery Exception: "+e);}},registerShipDeliveryElements:function(){var _77b=this;var _77c="Checkout";_77b.registerElementTags(_77b.shipDeliveryElementIdList,null,_77c);_77b.registerRecipModuleDisplay();_77b.registerDelivModuleDisplay();},registerRecipModuleDisplay:function(){var _77d=this;var _77e="chkOut_firstStep_addAddress";var _77f="chkOut_editRecipAddress";var _780="Checkout";dojo.subscribe("recipientPane-onShow",function(_781){if(_781.addrId=="0"){_77d.publishElementTag(_77e,_780);}else{_77d.publishElementTag(_77f,_780);}});dojo.subscribe("recipientEditPane_Controller-refreshCompleted",function(_782){_77d.registerElementTags(_77d.shipDeliveryAddressModuleElementIdList,_782,_780);});},registerDelivModuleDisplay:function(){var _783=this;var _784="Checkout";dojo.subscribe("deliveryPane-onShow",function(_785){_783.publishElementTag("chkOut_calendar_changeDeliveryDate",_784);});dojo.subscribe("deliveryEditPane_Controller-refreshCompleted",function(_786){_783.registerElementTags(_783.shipDeliveryCalendarModuleElementIdList,_786,_784);dojo.subscribe("DeliveryCalendar-processChange",function(){_783.publishElementTag("chkOut_calendar_dateSelected",_784);});});},initCardsMessaging:function(){try{var _787=this;_787.initCommon();_787.registerCardsMessagingView();}catch(e){console.error("bec.analytics.Coremetrics initCardsMessaging Exception: "+e);}},registerCardsMessagingView:function(){var _788=this;var _789="Checkout";dojo.subscribe("greetingOrderTotalsAreaController-updateTotals",function(_78a,data){_788.registerElementTags(_788.cardsMessagingElementIdList,null,_789);});},initOrderDisplay:function(){try{var _78c=this;var _78d="Checkout";_78c.initCommon();if(cmRegister==true){_78c.publishRegistrationView(cmOrderId,false);}else{var _78e="chkOut_createAccount";dojo.subscribe("createAccount-open",function(){_78c.publishElementTag(_78e,_78d);});}_78c.applyPromotionTracking();dojo.subscribe("fetchItemByIdentity-payment2SectionRendered",function(){_78c.registerPageViews(_78c.orderDisplayPayMethodPageViewList);});}catch(e){console.error("bec.analytics.Coremetrics initOrderDisplay Exception: "+e);}},initOrderOK:function(){try{var _78f=this;_78f.publishRegistrationView(cmOrderId,true);cmCreateConversionEventTag("Checkout","2","Checkout","5");}catch(e){console.error("bec.analytics.Coremetrics initOrderOK Exception: "+e);}},cleanUpConnects:function(){var _790=this;dojo.forEach(_790.handledEvents,function(node){dojo.disconnect(node);});},applyPromotionTracking:function(){var _792=this;var _793="Checkout";dojo.forEach(_792.promoActionIdList,function(_794){dojo.subscribe("modelChanged/"+_794,function(_795){if(_795.taskType[0]=="A"){codeList=(typeof _795.promoCode!="undefined")?_795.promoCode:_795.couponId;dojo.forEach(codeList,function(code,idx){var _798="chkOut_couponWallet_"+code;_792.publishElementTag(_798,_793);});}});});dojo.subscribe("parsePromotionOffers-complete",function(){_792.registerElementTags(_792.couponWalletElementIdList,null,_793);});dojo.subscribe("selectPromoButton-success",function(){var _799="chkOut_couponWallet_selectPromo";_792.publishElementTag(_799,_793);});},applyCheckoutConversionEvent:function(){var _79a="BTN_CONTINUECHECKOUT";var _79b=this;dojo.query("span").forEach(function(node,_79d,arr){if(node.id.indexOf(_79a)>=0){dojo.disconnect(node,"onclick",_79b,"initiateCheckoutConversionEvent");dojo.connect(node,"onclick",_79b,"initiateCheckoutConversionEvent");}});},initiateCheckoutConversionEvent:function(){cmCreateConversionEventTag("Checkout","1","Checkout","1");},isEnabled:function(){var _79f=false;if(cmPassCoremetrics!="OFF"){_79f=true;}return _79f;},setCustomerId:function(_7a0){var _7a1=this;_7a1.customerId=_7a0;},getCustomerId:function(){var _7a2=this;return _7a2.customerId;},setCmMerchCategory:function(cat){},processCustomerData:function(data){var _7a5=this;var _7a6="memberId";var _7a7="firstName";var _7a8="userPhone1";var _7a9="customerType";var _7aa=null;var _7ab=null;var _7ac=null;var _7ad=null;var _7ae=data[0];for(x in _7ae){if(x==_7a6){_7aa=_7ae[x];}else{if(x==_7a7){_7ab=_7ae[x];}else{if(x==_7a8){_7ac=_7ae[x];}else{if(x==_7a9){_7ad=_7ae[x];}}}}}var _7af=null;if(_7ad=="G"){if(_7ac.length>0){_7af=_7ab+_7ac;}else{_7af=_7ab+_7aa;}var _7b0=_7af;var _7b1="";var _7b2=_7b0.length;_7af="";i=0;while(_7b2>0){_7b1=toAscii(_7b0.charAt(i));_7af=_7af+Dec2Hex(_7b1);i=i+1;_7b2=_7b2-1;}}else{_7af=_7aa;}var _7b3=10-_7af.length;while(_7b3>0){_7af=_7af+"X";_7b3=_7b3-1;}_7a5.setCustomerId(_7af);}});}if(!dojo._hasResource["bec.menu.MenuContentPane"]){dojo._hasResource["bec.menu.MenuContentPane"]=true;dojo.provide("bec.menu.MenuContentPane");dojo.declare("bec.menu.MenuContentPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div>"+"<a title='${altMenuName}' alt='${altMenuName}' href='${menuURL}' class='base'>${menuName}</a>"+"<div id='dropdown-${topCatIdentifier}' class='dropdown clearfix ${position}' dojoAttachPoint='containerNode'></div>"+"</div>",menuURL:"",menuName:"",altMenuName:"",topCatIdentifier:"",position:"",_dropdownURL:AJAX_INCLUDE_VIEW+"Snippets/Header/TopNavDropdown.jsp&topCatIdentifier=",_dropdownLoaded:false,_dropdownNode:"",showDelay:400,hideDelay:500,_showTimer:null,_hideTimer:null,postCreate:function(){this.inherited(arguments);this._dropdownNode="dropdown-"+this.topCatIdentifier;this._addMenuHoverClass(this.domNode);if(this.preload){this._loadDropdown();}},_addMenuHoverClass:function(a){dojo.connect(a,"onclick",this,"_menuHoverEvent");dojo.connect(a,"onmouseenter",this,"_menuHoverEvent");dojo.connect(a,"onmouseleave",this,"_menuLeaveEvent");},_menuHoverEvent:function(e){var tgt=e.target;if(!dojo.isIE&&tgt){if(!dojo.hasClass(tgt,"menu")){tgt=tgt.parentNode;}}if(tgt){if(!this._showTimer){this._showTimer=setTimeout(dojo.hitch(this,function(){this._open(tgt);}),this.showDelay);this._hideFacets();}}},_menuLeaveEvent:function(e){var tgt=e.target;while(tgt&&!(tgt===this.domNode)){tgt=tgt.parentNode;}if(tgt&&dojo.hasClass(tgt,"hover")){this._hideTimer=setTimeout(dojo.hitch(this,function(){this._close(tgt);}),this.hideDelay);}clearTimeout(this._showTimer);this._showTimer=null;},_hideFacets:function(){try{var _7b9=dijit.byId("narrowByComponentButton");if(_7b9){_7b9._closeDropDown();}var _7ba=dijit.byId("narrowByPriceButton");if(_7ba){_7ba._closeDropDown();}}catch(e){}},_open:function(tgt){if(tgt&&this._showTimer){if(!this._dropdownLoaded){this._loadDropdown();}this._hideTimer=null;clearTimeout(this._hideTimer);dojo.addClass(tgt,"hover");this._showTimer=null;}},_loadDropdown:function(){this.attr("href",this._dropdownURL+this.topCatIdentifier+"&catalogId="+catalogId);},_close:function(tgt){if(tgt&&this._hideTimer){dojo.removeClass(tgt,"hover");this._hideTimer=null;}},_addEntryHoverClass:function(a){dojo.connect(a,"onmouseenter",function(e){var tgt=e.target;if(!dojo.isIE&&tgt){tgt=tgt.parentNode;}dojo.addClass(tgt,"hover");});dojo.connect(a,"onmouseleave",this,function(e){var tgt=e.target;if(!dojo.isIE&&tgt){tgt=tgt.parentNode;}dojo.removeClass(tgt,"hover");});},onDownloadEnd:function(){this._dropdownLoaded=true;dojo.style(this._dropdownNode,"width","940px");dojo.style(this._dropdownNode,"width","auto");},showFeature:function(_7c2,_7c3,_7c4){this._quickRecActivate(_7c4);var _7c5=(_7c3!="")?"&urlVirtCatIdent="+_7c3:"";var _7c6=dijit.byId("feature-"+this.topCatIdentifier);var url=AJAX_INCLUDE_VIEW+"ShoppingArea/CatalogSection/CatalogEntrySubsection/Snippets/ProductDisplaySection.jsp&catentryId="+_7c2+"&catalogId="+catalogId+_7c5;_7c6.attr("href",url);},_quickRecActivate:function(_7c8){dojo.forEach(dojo.query(".entry.active",this._dropdownNode),function(node){dojo.removeClass(node,"active");},this);var _7ca=dojo.byId(_7c8);if(_7ca){dojo.addClass(_7ca,"active");}}});}if(!dojo._hasResource["bec.widget.PopupPanel"]){dojo._hasResource["bec.widget.PopupPanel"]=true;dojo.provide("bec.widget.PopupPanel");dojo.declare("bec.widget.PopupPanel",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div id='${id}' class='panel dijitHidden' dojoAttachPoint='domNode'>"+"<div class='titlebar clearfix'><span class='titleText'>${titleText}</span><span class='close'><a href='#' dojoAttachEvent='onclick: close' class='sprite-close-small'></a></span></div>"+"<div dojoAttachPoint='containerNode' class='content'></div>"+"</div>",panelURL:"",_panelLoaded:false,_underlay:null,_modalconnects:[],parentId:"",_parent:null,titleText:"",postCreate:function(){this.inherited(arguments);this._initUnderlay();if(this.parentId!=""){this._parent=dijit.byId(this.parentId);}},_initUnderlay:function(){var _7cb={dialogId:this.id,"class":"popupPanel_underlay"};this._underlay=dijit._underlay;if(!this._underlay){this._underlay=dijit._underlay=new dijit.DialogUnderlay(_7cb);}this._underlay.attr(_7cb);},show:function(){dojo.removeClass(this.domNode,"dijitHidden");dojo.addClass(this.domNode,"dijitVisible");this.onShow();},hide:function(){dojo.removeClass(this.domNode,"dijitVisible");dojo.addClass(this.domNode,"dijitHidden");this.onHide();},onShow:function(){this._underlay.show();this._modalconnects.push(dojo.connect(this._underlay.domNode,"onmousedown",this,"close"));this._modalconnects.push(dojo.connect(window,"onscroll",this._underlay,"layout"));if(!this._panelLoaded){this.attr("href",AJAX_INCLUDE_VIEW+this.panelURL);}},onHide:function(){this._underlay.hide();dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];},close:function(){if(this._parent){this._parent.close();}else{this.hide();}},onDownloadEnd:function(){this._panelLoaded=true;}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_7cd){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_7cd&&_7cd.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_7d1){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_7d1);};dojo.regexp.group=function(_7d4,_7d5){return "("+(_7d5?"?:":"")+_7d4+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_7d7,_7d8){var c=document.cookie;if(arguments.length==1){var _7da=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _7da?decodeURIComponent(_7da[1]):undefined;}else{_7d8=_7d8||{};var exp=_7d8.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_7d8.expires=d;}if(exp&&exp.toUTCString){_7d8.expires=exp.toUTCString();}_7d7=encodeURIComponent(_7d7);var _7dd=name+"="+_7d7,_7de;for(_7de in _7d8){_7dd+="; "+_7de;var _7df=_7d8[_7de];if(_7df!==true){_7dd+="="+_7df;}}document.cookie=_7dd;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",[dijit._Container],{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_7e0,_7e1){var _7e2=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_7e0,function(code){_7e2[code]=prev;});dojo.forEach(_7e1,function(code){_7e2[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(_7e7,_7e8){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_7e7);},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 _7e9=this._getNextFocusableChild(this.focusedChild,1);if(_7e9.getFocalNodes){this.focusChild(_7e9,_7e9.getFocalNodes()[0]);}else{this.focusChild(_7e9);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _7ea=this._getNextFocusableChild(this.focusedChild,-1);if(_7ea.getFocalNodes){var _7eb=_7ea.getFocalNodes();this.focusChild(_7ea,_7eb[_7eb.length-1]);}else{this.focusChild(_7ea);}},focusChild:function(_7ec,node){if(_7ec){if(this.focusedChild&&_7ec!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_7ec;if(node&&_7ec.focusFocalNode){_7ec.focusFocalNode(node);}else{_7ec.focus();}}},_startupChild:function(_7ee){if(_7ee.getFocalNodes){dojo.forEach(_7ee.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_7ee.focusNode||_7ee.domNode;if(_7ee.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){return;}this.focusFirstChild();dojo.removeAttr(this.domNode,"tabIndex");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){var _7f7=dijit.getEnclosingWidget(evt.target);if(_7f7&&_7f7.isFocusable()){this.focusedChild=_7f7;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){dojo.stopEvent(evt);},_onChildBlur:function(_7f9){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_7fa,dir){if(_7fa){_7fa=this._getSiblingOfChild(_7fa,dir);}var _7fc=this.getChildren();for(var i=0;i<_7fc.length;i++){if(!_7fa){_7fa=_7fc[(dir>0)?0:(_7fc.length-1)];}if(_7fa.isFocusable()){return _7fa;}_7fa=this._getSiblingOfChild(_7fa,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\r\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\r\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\r\n\t\t</div>\r\n\t</td>\r\n</tr>\r\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_7fe){if(_7fe&&!("label" in this.params)){this.attr("label",_7fe.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemHover(this);},_onUnhover:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);},_setSelected:function(_801){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_801);},setLabel:function(_802){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_802);},setDisabled:function(_803){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_803);},_setDisabledAttr:function(_804){this.disabled=_804;dojo[_804?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_804?"true":"false");},_setAccelKeyAttr:function(_805){this.accelKey=_805;this.accelKeyNode.style.display=_805?"":"none";this.accelKeyNode.innerHTML=_805;dojo.attr(this.containerNode,"colSpan",_805?"1":"2");}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _806=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_806[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\r\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\r\n\t</td>\r\n</tr>\r\n",checked:false,_setCheckedAttr:function(_808){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_808);dijit.setWaiState(this.domNode,"checked",_808);this.checked=_808;},onChange:function(_809){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\">\r\n\t<td colspan=\"4\">\r\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\r\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\r\n\t</td>\r\n</tr>\r\n",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_80b){_80b.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_80c){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _80e=this._getTopMenu();if(_80e&&_80e._isMenuBar){_80e.focusNext();}}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}},_onChildBlur:function(item){item._setSelected(false);dijit.popup.close(item.popup);this._stopPopupTimer();},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}this.focusChild(item);if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _815=this.focusedChild;var _816=_815.popup;if(_816.isShowingNow){return;}_816.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_816,around:_815.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"}),onCancel:function(){dijit.popup.close(_816);_815.focus();self.currentPopup=null;},onExecute:dojo.hitch(this,"_onDescendantExecute")});this.currentPopup=_816;if(_816.focus){setTimeout(dojo.hitch(_816,"focus"),0);}},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_onFocus:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");this.inherited(arguments);},_onBlur:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");this.onClose();this.inherited(arguments);},_onDescendantExecute:function(){this.onClose();}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\r\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\r\n</table>\r\n",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_81c){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_81c))||dijit.Menu._iframeContentDocument(_81c)["__parent__"]||(_81c.name&&dojo.doc.frames[_81c.name])||null;return win;},_iframeContentDocument:function(_81e){var doc=_81e.contentDocument||(_81e.contentWindow&&_81e.contentWindow.document)||(_81e.name&&dojo.doc.frames[_81e.name]&&dojo.doc.frames[_81e.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_823){var node=dojo.byId(_823);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _82d=dojo.coords(e.target,true);x=_82d.x+10;y=_82d.y+10;}var self=this;var _82f=dijit.getFocus(this);function _830(){dijit.focus(_82f);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:_830,onCancel:_830,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_834){var _835=dojo.doc.createElement("span");this.domNode.appendChild(_835);var cls=dojo.getObject(this.buttonWidget);var _837=new cls({label:page.title,closeButton:page.closable},_835);this.addChild(_837,_834);this.pane2button[page]=_837;page.controlButton=_837;var _838=[];_838.push(dojo.connect(_837,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_838.push(dojo.connect(_837,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _839=dojo.i18n.getLocalization("dijit","common");var _83a=new dijit.Menu({targetNodeIds:[_837.id],id:_837.id+"_Menu"});var _83b=new dijit.MenuItem({label:_839.itemClose});_838.push(dojo.connect(_83b,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_83a.addChild(_83b);this.pane2menu[page]=_83a;}this.pane2handles[page]=_838;if(!this._currentChild){_837.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _83e=this.pane2button[page];if(_83e){_83e.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _840=this.pane2button[this._currentChild];_840.attr("checked",false);_840.focusNode.setAttribute("tabIndex","-1");}var _841=this.pane2button[page];_841.attr("checked",true);this._currentChild=page;_841.focusNode.setAttribute("tabIndex","0");var _842=dijit.byId(this.containerId);dijit.setWaiState(_842.containerNode,"labelledby",_841.id);},onButtonClick:function(page){var _844=dijit.byId(this.containerId);_844.selectChild(page);},onCloseButtonClick:function(page){var _846=dijit.byId(this.containerId);_846.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_848){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_848=!_848;}var _849=this.getChildren();var _84a=dojo.indexOf(_849,this.pane2button[this._currentChild]);var _84b=_848?1:_849.length-1;return _849[(_84a+_84b)%_849.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _84d=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_84d=false;}break;case k.PAGE_UP:if(e.ctrlKey){_84d=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_84d=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_84d=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_84d!==null){this.adjacent(_84d).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _853=this.getChildren();dojo.forEach(_853,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_853,function(_854){if(_854.selected){this.selectedChildWidget=_854;}return _854.selected;},this);}var _855=this.selectedChildWidget;if(!_855&&_853[0]){_855=this.selectedChildWidget=_853[0];_855.selected=true;}dojo.publish(this.id+"-startup",[{children:_853,selected:_855}]);if(_855){this._showChild(_855);}this.inherited(arguments);},_setupChild:function(_856){this.inherited(arguments);dojo.removeClass(_856.domNode,"dijitVisible");dojo.addClass(_856.domNode,"dijitHidden");_856.domNode.title="";return _856;},addChild:function(_857,_858){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_857,_858]);this.layout();if(!this.selectedChildWidget){this.selectChild(_857);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _85a=this.getChildren();if(_85a.length){this.selectChild(_85a[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}},_transition:function(_85c,_85d){if(_85d){this._hideChild(_85d);}this._showChild(_85c);if(this.doLayout&&_85c.resize){_85c.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_85e){var _85f=this.getChildren();var _860=dojo.indexOf(_85f,this.selectedChildWidget);_860+=_85e?1:_85f.length-1;return _85f[_860%_85f.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _863=this.getChildren();page.isFirstChild=(page==_863[0]);page.isLastChild=(page==_863[_863.length-1]);page.selected=true;dojo.removeClass(page.domNode,"dijitHidden");dojo.addClass(page.domNode,"dijitVisible");if(page._onShow){page._onShow();}else{if(page.onShow){page.onShow();}}},_hideChild:function(page){page.selected=false;dojo.removeClass(page.domNode,"dijitVisible");dojo.addClass(page.domNode,"dijitHidden");if(page.onHide){page.onHide();}},closeChild:function(page){var _866=page.onClose(this,page);if(_866){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["bec.widget.PopupPanelContainer"]){dojo._hasResource["bec.widget.PopupPanelContainer"]=true;dojo.provide("bec.widget.PopupPanelContainer");dojo.declare("bec.widget.PopupPanelContainer",[dijit.layout.StackContainer],{doLayout:false,close:function(){if(this.selectedChildWidget){this._hideChild(this.selectedChildWidget);this.selectedChildWidget=undefined;}}});}dojo.i18n._preloadLocalizations("bec.nls.beccommon",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nl","nl-nl","no","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
dojo.provide("bec.nls.beccommon_en-us");dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.en_us");dijit.nls.loading.en_us={"loadingState":"Loading...","errorState":"Sorry, an error occurred"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en_us");dijit.nls.common.en_us={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};dojo.provide("wc.nls.common");wc.nls.common._built=true;dojo.provide("wc.nls.common.en_us");wc.nls.common.en_us={"communicationError":"Communication error."};dojo.provide("wc.nls.common");wc.nls.common._built=true;dojo.provide("wc.nls.common.en_us");wc.nls.common.en_us={"communicationError":"Communication error."};dojo.provide("wc.nls.common");wc.nls.common._built=true;dojo.provide("wc.nls.common.en_us");wc.nls.common.en_us={"communicationError":"Communication error."};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.en_us");dijit.form.nls.validate.en_us={"rangeMessage":"This value is out of range.","invalidMessage":"The value entered is not valid.","missingMessage":"This value is required."};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en_us");dijit.nls.common.en_us={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.en_us");dijit.nls.common.en_us={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};

