/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

	http://dojotoolkit.org/license

*/

/*
	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.
*/

dojo.provide("rainbow.layer");if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _1={_fire:function(_2,_3){if(this[_2]){this[_2].apply(this,_3||[]);}return this;}};var _4=function(_5){this._index=-1;this._animations=_5||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_4,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_7,_8){if(!this._current){this._current=this._animations[this._index=0];}if(!_8&&this._current.status()=="playing"){return this;}var _9=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_a=dojo.connect(this._current,"onBegin",this,function(_b){this._fire("onBegin",arguments);}),_c=dojo.connect(this._current,"onPlay",this,function(_d){this._fire("onPlay",arguments);dojo.disconnect(_9);dojo.disconnect(_a);dojo.disconnect(_c);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(_f){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_10,_11){this.pause();var _12=this.duration*_10;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_12){this._current=a;return true;}_12-=a.duration;return false;});if(this._current){this._current.gotoPercent(_12/this._current.duration,_11);}return this;},stop:function(_14){if(this._current){if(_14){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_4,_1);dojo.fx.chain=function(_17){return new _4(_17);};var _18=function(_19){this._animations=_19||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_19,function(a){var _1b=a.duration;if(a.delay){_1b+=a.delay;}if(this.duration<_1b){this.duration=_1b;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_18,{_doAction:function(_1d,_1e){dojo.forEach(this._animations,function(a){a[_1d].apply(a,_1e);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_20,_21){var t=this._pseudoAnimation;t[_20].apply(t,_21);},play:function(_23,_24){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(_25,_26){var ms=this.duration*_25;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_26);});this._call("gotoPercent",arguments);return this;},stop:function(_29){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_18,_1);dojo.fx.combine=function(_2a){return new _18(_2a);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(_2b){var _t=this;dojo.mixin(_t,_2b);_t.node=_2b.node;_t._showArgs=dojo.mixin({},_2b);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_2b);_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(_2d){return this.showAnim.play(_2d||0);},hide:function(_2e){return this.hideAnim.play(_2e||0);}});dojo.fx.wipeIn=function(_2f){_2f.node=dojo.byId(_2f.node);var _30=_2f.node,s=_30.style,o;var _33=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _34=dojo.style(_30,"height");return Math.max(_34,1);}},end:function(){return _30.scrollHeight;}}}},_2f));dojo.connect(_33,"onEnd",function(){s.height="auto";s.overflow=o;});return _33;};dojo.fx.wipeOut=function(_35){var _36=_35.node=dojo.byId(_35.node);var s=_36.style;var o;var _39=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_35));dojo.connect(_39,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(_39,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _39;};dojo.fx.slideTo=function(_3a){var _3b=(_3a.node=dojo.byId(_3a.node));var top=null;var _3d=null;var _3e=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_3d=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;_3d=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_3d+"px";}};})(_3b);_3e();var _43=dojo.animateProperty(dojo.mixin({properties:{top:{end:_3a.top||0},left:{end:_3a.left||0}}},_3a));dojo.connect(_43,"beforeBegin",_43,_3e);return _43;};}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.fx.easing"]){dojo._hasResource["dojox.fx.easing"]=true;dojo.provide("dojox.fx.easing");dojo.deprecated("dojox.fx.easing");dojox.fx.easing=dojo.fx.easing;}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 _6f=dojo.doc;if(_6f.selection){var s=_6f.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _71=dojo.global;var _72=_71.getSelection();if(dojo.isString(_72)){return !_72;}else{return _72.isCollapsed||!_72.toString();}}},getBookmark:function(){var _73,_74=dojo.doc.selection;if(_74){var _75=_74.createRange();if(_74.type.toUpperCase()=="CONTROL"){if(_75.length){_73=[];var i=0,len=_75.length;while(i<len){_73.push(_75.item(i++));}}else{_73=null;}}else{_73=_75.getBookmark();}}else{if(window.getSelection){_74=dojo.global.getSelection();if(_74){_75=_74.getRangeAt(0);_73=_75.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _73;},moveToBookmark:function(_78){var _79=dojo.doc;if(_79.selection){var _7a;if(dojo.isArray(_78)){_7a=_79.body.createControlRange();dojo.forEach(_78,function(n){_7a.addElement(n);});}else{_7a=_79.selection.createRange();_7a.moveToBookmark(_78);}_7a.select();}else{var _7c=dojo.global.getSelection&&dojo.global.getSelection();if(_7c&&_7c.removeAllRanges){_7c.removeAllRanges();_7c.addRange(_78);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_7d,_7e){return {node:_7d&&dojo.isDescendant(dijit._curFocus,_7d.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_7e||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_7e||dojo.global,dijit.getBookmark):null,openedForWindow:_7e};},focus:function(_7f){if(!_7f){return;}var _80="node" in _7f?_7f.node:_7f,_81=_7f.bookmark,_82=_7f.openedForWindow;if(_80){var _83=(_80.tagName.toLowerCase()=="iframe")?_80.contentWindow:_80;if(_83&&_83.focus){try{_83.focus();}catch(e){}}dijit._onFocusNode(_80);}if(_81&&dojo.withGlobal(_82||dojo.global,dijit.isCollapsed)){if(_82){_82.focus();}try{dojo.withGlobal(_82||dojo.global,dijit.moveToBookmark,null,[_81]);}catch(e){}}},_activeStack:[],registerWin:function(_84){if(!_84){_84=window;}dojo.connect(_84.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _86=_84.document.body||_84.document.getElementsByTagName("body")[0];if(_86){if(dojo.isIE){_86.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_86.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_86.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_86.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_86=null;},_onBlurNode:function(_8b){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(_8c){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _8d=[];try{while(_8c){if(_8c.dijitPopupParent){_8c=dijit.byId(_8c.dijitPopupParent).domNode;}else{if(_8c.tagName&&_8c.tagName.toLowerCase()=="body"){if(_8c===dojo.body()){break;}_8c=dijit.getDocumentWindow(_8c.ownerDocument).frameElement;}else{var id=_8c.getAttribute&&_8c.getAttribute("widgetId");if(id){_8d.unshift(id);}_8c=_8c.parentNode;}}}}catch(e){}dijit._setStack(_8d);},_onFocusNode:function(_8f){if(_8f&&_8f.tagName&&_8f.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_8f);if(_8f==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_8f;dojo.publish("focusNode",[_8f]);},_setStack:function(_90){var _91=dijit._activeStack;dijit._activeStack=_90;for(var _92=0;_92<Math.min(_91.length,_90.length);_92++){if(_91[_92]!=_90[_92]){break;}}for(var i=_91.length-1;i>=_92;i--){var _94=dijit.byId(_91[i]);if(_94){_94._focused=false;_94._hasBeenBlurred=true;if(_94._onBlur){_94._onBlur();}if(_94._setStateClass){_94._setStateClass();}dojo.publish("widgetBlur",[_94]);}}for(i=_92;i<_90.length;i++){_94=dijit.byId(_90[i]);if(_94){_94._focused=true;if(_94._onFocus){_94._onFocus();}if(_94._setStateClass){_94._setStateClass();}dojo.publish("widgetFocus",[_94]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_95){if(this._hash[_95.id]){throw new Error("Tried to register widget with id=="+_95.id+" but that id is already registered");}this._hash[_95.id]=_95;},remove:function(id){delete this._hash[id];},forEach:function(_97){for(var id in this._hash){_97(this._hash[id]);}},filter:function(_99){var res=new dijit.WidgetSet();this.forEach(function(_9b){if(_99(_9b)){res.add(_9b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_9e){return _9e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_9f){var id;do{id=_9f+"_"+(_9f in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_9f]:dijit._widgetTypeCtr[_9f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_a1){_a1.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_a3){return dijit.registry.byId(_a3.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_a4){while(_a4){if(_a4.getAttribute&&_a4.getAttribute("widgetId")){return dijit.registry.byId(_a4.getAttribute("widgetId"));}_a4=_a4.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_a5){var _a6=dojo.style(_a5);return (_a6.visibility!="hidden")&&(_a6.visibility!="collapsed")&&(_a6.display!="none")&&(dojo.attr(_a5,"type")!="hidden");};dijit.isTabNavigable=function(_a7){if(dojo.hasAttr(_a7,"disabled")){return false;}var _a8=dojo.hasAttr(_a7,"tabindex");var _a9=dojo.attr(_a7,"tabindex");if(_a8&&_a9>=0){return true;}var _aa=_a7.nodeName.toLowerCase();if(((_aa=="a"&&dojo.hasAttr(_a7,"href"))||dijit._tabElements[_aa])&&(!_a8||_a9>=0)){return true;}return false;};dijit._getTabNavigable=function(_ab){var _ac,_ad,_ae,_af,_b0,_b1;var _b2=function(_b3){dojo.query("> *",_b3).forEach(function(_b4){var _b5=dijit._isElementShown(_b4);if(_b5&&dijit.isTabNavigable(_b4)){var _b6=dojo.attr(_b4,"tabindex");if(!dojo.hasAttr(_b4,"tabindex")||_b6==0){if(!_ac){_ac=_b4;}_ad=_b4;}else{if(_b6>0){if(!_ae||_b6<_af){_af=_b6;_ae=_b4;}if(!_b0||_b6>=_b1){_b1=_b6;_b0=_b4;}}}}if(_b5&&_b4.nodeName.toUpperCase()!="SELECT"){_b2(_b4);}});};if(dijit._isElementShown(_ab)){_b2(_ab);}return {first:_ac,last:_ad,lowest:_ae,highest:_b0};};dijit.getFirstInTabbingOrder=function(_b7){var _b8=dijit._getTabNavigable(dojo.byId(_b7));return _b8.lowest?_b8.lowest:_b8.first;};dijit.getLastInTabbingOrder=function(_b9){var _ba=dijit._getTabNavigable(dojo.byId(_b9));return _ba.last?_ba.last:_ba.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_bb){this.pairs=[];this.returnWrappers=_bb||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_bc,_bd,_be,_bf,_c0){this.pairs[((_c0)?"unshift":"push")]([_bc,_bd,_be,_bf]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _c2=this.pairs[i];if(_c2[1].apply(this,arguments)){if((_c2[3])||(this.returnWrappers)){return _c2[2];}else{return _c2[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_c3){for(var i=0;i<this.pairs.length;i++){var _c5=this.pairs[i];if(_c5[0]==_c3){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 _c6=dojo.global;var _c7=dojo.doc;var w=0,h=0;var de=_c7.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _cd,_ce,_cf,_d0;var dbw=_c7.body.clientWidth;if(dbw>dew){_cd=dew;_cf=dbw;}else{_cf=dew;_cd=dbw;}var dbh=_c7.body.clientHeight;if(dbh>deh){_ce=deh;_d0=dbh;}else{_d0=deh;_ce=dbh;}w=(_cf>_c6.innerWidth)?_cd:_cf;h=(_d0>_c6.innerHeight)?_ce:_d0;}else{if(!dojo.isOpera&&_c6.innerWidth){w=_c6.innerWidth;h=_c6.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _d3=dojo._docScroll();return {w:w,h:h,l:_d3.x,t:_d3.y};};dijit.placeOnScreen=function(_d4,pos,_d6,_d7){var _d8=dojo.map(_d6,function(_d9){return {corner:_d9,pos:pos};});return dijit._place(_d4,_d8);};dijit._place=function(_da,_db,_dc){var _dd=dijit.getViewport();if(!_da.parentNode||String(_da.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_da);}var _de=null;dojo.some(_db,function(_df){var _e0=_df.corner;var pos=_df.pos;if(_dc){_dc(_da,_df.aroundCorner,_e0);}var _e2=_da.style;var _e3=_e2.display;var _e4=_e2.visibility;_e2.visibility="hidden";_e2.display="";var mb=dojo.marginBox(_da);_e2.display=_e3;_e2.visibility=_e4;var _e6=(_e0.charAt(1)=="L"?pos.x:Math.max(_dd.l,pos.x-mb.w)),_e7=(_e0.charAt(0)=="T"?pos.y:Math.max(_dd.t,pos.y-mb.h)),_e8=(_e0.charAt(1)=="L"?Math.min(_dd.l+_dd.w,_e6+mb.w):pos.x),_e9=(_e0.charAt(0)=="T"?Math.min(_dd.t+_dd.h,_e7+mb.h):pos.y),_ea=_e8-_e6,_eb=_e9-_e7,_ec=(mb.w-_ea)+(mb.h-_eb);if(_de==null||_ec<_de.overflow){_de={corner:_e0,aroundCorner:_df.aroundCorner,x:_e6,y:_e7,w:_ea,h:_eb,overflow:_ec};}return !_ec;});_da.style.left=_de.x+"px";_da.style.top=_de.y+"px";if(_de.overflow&&_dc){_dc(_da,_de.aroundCorner,_de.corner);}return _de;};dijit.placeOnScreenAroundNode=function(_ed,_ee,_ef,_f0){_ee=dojo.byId(_ee);var _f1=_ee.style.display;_ee.style.display="";var _f2=_ee.offsetWidth;var _f3=_ee.offsetHeight;var _f4=dojo.coords(_ee,true);_ee.style.display=_f1;return dijit._placeOnScreenAroundRect(_ed,_f4.x,_f4.y,_f2,_f3,_ef,_f0);};dijit.placeOnScreenAroundRectangle=function(_f5,_f6,_f7,_f8){return dijit._placeOnScreenAroundRect(_f5,_f6.x,_f6.y,_f6.width,_f6.height,_f7,_f8);};dijit._placeOnScreenAroundRect=function(_f9,x,y,_fc,_fd,_fe,_ff){var _100=[];for(var _101 in _fe){_100.push({aroundCorner:_101,corner:_fe[_101],pos:{x:x+(_101.charAt(1)=="L"?0:_fc),y:y+(_101.charAt(0)=="T"?0:_fd)}});}return dijit._place(_f9,_100,_ff);};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,_107,_108,_109){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.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _10f=[],_110=1000,_111=1;this.prepare=function(node){dojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _115=args.popup,_116=args.orient||{"BL":"TL","TL":"BL"},_117=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_111++);var _119=dojo.doc.createElement("div");dijit.setWaiRole(_119,"presentation");_119.id=id;_119.className="dijitPopup";_119.style.zIndex=_110+_10f.length;_119.style.left=_119.style.top="0px";_119.style.visibility="hidden";if(args.parent){_119.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_119);var s=_115.domNode.style;s.display="";s.visibility="";s.position="";_119.appendChild(_115.domNode);var _11b=new dijit.BackgroundIframe(_119);var best=_117?dijit.placeOnScreenAroundElement(_119,_117,_116,_115.orient?dojo.hitch(_115,"orient"):null):dijit.placeOnScreen(_119,args,_116=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_119.style.visibility="visible";var _11d=[];var _11e=function(){for(var pi=_10f.length-1;pi>0&&_10f[pi].parent===_10f[pi-1].widget;pi--){}return _10f[pi];};_11d.push(dojo.connect(_119,"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 _121=_11e();if(_121&&_121.onCancel){_121.onCancel();}}}}));if(_115.onCancel){_11d.push(dojo.connect(_115,"onCancel",null,args.onCancel));}_11d.push(dojo.connect(_115,_115.onExecute?"onExecute":"onChange",null,function(){var _122=_11e();if(_122&&_122.onExecute){_122.onExecute();}}));_10f.push({wrapper:_119,iframe:_11b,widget:_115,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_11d});if(_115.onOpen){_115.onOpen(best);}return best;};this.close=function(_123){while(dojo.some(_10f,function(elem){return elem.widget==_123;})){var top=_10f.pop(),_126=top.wrapper,_127=top.iframe,_128=top.widget,_129=top.onClose;if(_128.onClose){_128.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_128||!_128.domNode){return;}this.prepare(_128.domNode);_127.destroy();dojo._destroyElement(_126);if(_129){_129();}}};}();dijit._frames=new function(){var _12a=[];this.pop=function(){var _12b;if(_12a.length){_12b=_12a.pop();_12b.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_12b=dojo.doc.createElement(html);}else{_12b=dojo.doc.createElement("iframe");_12b.src="javascript:\"\"";_12b.className="dijitBackgroundIframe";}_12b.tabIndex=-1;dojo.body().appendChild(_12b);}return _12b;};this.push=function(_12d){_12d.style.display="";if(dojo.isIE){_12d.style.removeExpression("width");_12d.style.removeExpression("height");}_12a.push(_12d);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _130=dijit._frames.pop();node.appendChild(_130);if(dojo.isIE){_130.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_130.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_130;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){node=dojo.byId(node);var body=node.ownerDocument.body;var html=body.parentNode;if(dojo.isFF==2||node==body||node==html){node.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _135=dojo.doc.compatMode!="BackCompat";var _136=(_135&&!dojo.isSafari)?html:body;function addPseudoAttrs(_137){var _138=_137.parentNode;var _139=_137.offsetParent;if(_139==null){_137=_136;_139=html;_138=null;}_137._offsetParent=(_139==body)?_136:_139;_137._parent=(_138==body)?_136:_138;_137._start={H:_137.offsetLeft,V:_137.offsetTop};_137._scroll={H:_137.scrollLeft,V:_137.scrollTop};_137._renderedSize={H:_137.offsetWidth,V:_137.offsetHeight};var bp=dojo._getBorderExtents(_137);_137._borderStart={H:bp.l,V:bp.t};_137._borderSize={H:bp.w,V:bp.h};_137._clientSize=(_137._offsetParent==html&&dojo.isSafari&&_135)?{H:html.clientWidth,V:html.clientHeight}:{H:_137.clientWidth,V:_137.clientHeight};_137._scrollBarSize={V:null,H:null};for(var dir in _137._scrollBarSize){var _13c=_137._renderedSize[dir]-_137._clientSize[dir]-_137._borderSize[dir];_137._scrollBarSize[dir]=(_137._clientSize[dir]>0&&_13c>=15&&_13c<=17)?_13c:0;}_137._isScrollable={V:null,H:null};for(dir in _137._isScrollable){var _13d=dir=="H"?"V":"H";_137._isScrollable[dir]=_137==_136||_137._scroll[dir]||_137._scrollBarSize[_13d];}};var _13e=node;while(_13e!=null){addPseudoAttrs(_13e);var next=_13e._parent;if(next){next._child=_13e;}_13e=next;}for(var dir in _136._renderedSize){_136._renderedSize[dir]=Math.min(_136._clientSize[dir],_136._renderedSize[dir]);}var _141=node;while(_141!=_136){_13e=_141._parent;if(_13e.tagName=="TD"){var _142=_13e._parent._parent._parent;if(_142._offsetParent==_141._offsetParent&&_13e._offsetParent!=_141._offsetParent){_13e=_142;}}var _143=_141==_136||(_13e._offsetParent!=_141._offsetParent);for(dir in _141._start){var _144=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_13e._clientSize.H>0){var _145=_13e.scrollWidth-_13e._clientSize.H;if(_145>0){_13e._scroll.H-=_145;}}if(dojo.isIE&&_13e._offsetParent.tagName=="TABLE"){_13e._start[dir]-=_13e._offsetParent._borderStart[dir];_13e._borderStart[dir]=_13e._borderSize[dir]=0;}if(_13e._clientSize[dir]==0){_13e._renderedSize[dir]=_13e._clientSize[dir]=_13e._child._clientSize[dir];if(rtl&&dir=="H"){_13e._start[dir]-=_13e._renderedSize[dir];}}else{_13e._renderedSize[dir]-=_13e._borderSize[dir]+_13e._scrollBarSize[dir];}_13e._start[dir]+=_13e._borderStart[dir];var _146=_141._start[dir]-(_143?0:_13e._start[dir])-_13e._scroll[dir];var _147=_146+_141._renderedSize[dir]-_13e._renderedSize[dir];var _148,_149=(dir=="H")?"scrollLeft":"scrollTop";var _14a=(dir=="H"&&rtl);var _14b=_14a?-_147:_146;var _14c=_14a?-_146:_147;if(_14b<=0){_148=_14b;}else{if(_14c<=0){_148=0;}else{if(_14b<_14c){_148=_14b;}else{_148=_14c;}}}var _14d=0;if(_148!=0){var _14e=_13e[_149];_13e[_149]+=_14a?-_148:_148;_14d=_13e[_149]-_14e;_146-=_14d;_14c-=_14a?-_14d:_14d;}_13e._renderedSize[dir]=_141._renderedSize[dir]+_13e._scrollBarSize[dir]-((_13e._isScrollable[dir]&&_14c>0)?_14c:0);_13e._start[dir]+=(_146>=0||!_13e._isScrollable[dir])?_146:0;}_141=_13e;}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _151=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _154=d.boxModel.replace(/-/,"");var _155={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_151,dj_opera8:maj(_151)==8,dj_opera9:maj(_151)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_155["dj_"+_154]=true;var html=dojo.doc.documentElement;for(var p in _155){if(_155[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 _155){if(_155[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,_15a,node,_15c,obj,_15e,_15f){if(obj!=this._obj){this.stop();this._initialDelay=_15f||500;this._subsequentDelay=_15e||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_15a,_15c);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,_161,_162,_163,_164,_165){if(_161.keyCode){_161.charOrCode=_161.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_161.charCode){_161.charOrCode=String.fromCharCode(_161.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==_161.charOrCode&&(_161.ctrlKey===undefined||_161.ctrlKey==evt.ctrlKey)&&(_161.altKey===undefined||_161.altKey==evt.ctrlKey)&&(_161.shiftKey===undefined||_161.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_161,_162,node,_163,_161,_164,_165);}else{if(dijit.typematic._obj==_161){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_161){dijit.typematic.stop();}})];},addMouseListener:function(node,_169,_16a,_16b,_16c){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_169,node,_16a,node,_16b,_16c);}),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,_169,node,_16a,node,_16b,_16c);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_173,_174,_175,_176,_177,_178,_179){return this.addKeyListener(_174,_175,_176,_177,_178,_179).concat(this.addMouseListener(_173,_176,_177,_178,_179));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _17c=cs.backgroundImage;var _17d=(cs.borderTopColor==cs.borderRightColor)||(_17c!=null&&(_17c=="none"||_17c=="url(invalid-url:)"));dojo[_17d?"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 _180=this.getWaiRole(elem);if(role){return (_180.indexOf(role)>-1);}else{return (_180.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _184=(theRole=dojo.attr(elem,"role"))?theRole:"";if(dojo.isFF<3||!this._XhtmlRoles.test(_184)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_184+" ").indexOf(" "+role+" ")<0){var _185=dojo.trim(_184.replace(this._XhtmlRoles,""));var _186=dojo.trim(_184.replace(_185,""));dojo.attr(elem,"role",_186+(_186?" ":"")+role);}}},removeWaiRole:function(elem,role){var _189=dojo.attr(elem,"role");if(!_189){return;}if(role){var _18a=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_189+" ").replace(" "+_18a+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_18d){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_18d);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_18d):!!elem.getAttribute("aria-"+_18d);}},getWaiState:function(elem,_18f){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_18f);}else{var _190=elem.getAttribute("aria-"+_18f);return _190?_190:"";}},setWaiState:function(elem,_192,_193){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_192,_193);}else{elem.setAttribute("aria-"+_192,_193);}},removeWaiState:function(elem,_195){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_195);}else{elem.removeAttribute("aria-"+_195);}}});}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(_196,_197){if(_196&&dojo.isFunction(_196._onConnect)){_196._onConnect(_197);}});dijit._connectOnUseEventHandler=function(_198){};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(_199,_19a){this.create(_199,_19a);},create:function(_19b,_19c){this.srcNodeRef=dojo.byId(_19c);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(_19b){this.params=_19b;dojo.mixin(this,_19b);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){for(attr in this.attributeMap){if((this.params&&attr in this.params)||this[attr]){this.attr(attr,this[attr]);}}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_19e){this.destroyDescendants(_19e);this.destroy(_19e);},destroy:function(_19f){this.uninitialize();dojo.forEach(this._connects,function(_1a0){dojo.forEach(_1a0,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_19f);dijit.registry.remove(this.id);},destroyRendering:function(_1a2){if(this.bgIframe){this.bgIframe.destroy(_1a2);delete this.bgIframe;}if(this.domNode){if(!_1a2){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1a2){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1a3){dojo.forEach(this.getDescendants(),function(_1a4){if(_1a4.destroy){_1a4.destroy(_1a3);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_1a6){if(_1a6 in this._deferredConnects){var _1a7=this[this._deferredConnects[_1a6]||"domNode"];this.connect(_1a7,_1a6.toLowerCase(),this[_1a6]);delete this._deferredConnects[_1a6];}},_setClassAttr:function(_1a8){var _1a9=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_1a9,this["class"]);this["class"]=_1a8;dojo.addClass(_1a9,_1a8);},_setStyleAttr:function(_1aa){var _1ab=this[this.attributeMap["style"]||"domNode"];if(_1ab.style.cssText){_1ab.style.cssText+="; "+_1aa;}else{_1ab.style.cssText=_1aa;}this["style"]=_1aa;},setAttribute:function(attr,_1ad){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_1ad);},_attrToDom:function(attr,_1af){var _1b0=this.attributeMap[attr];dojo.forEach(dojo.isArray(_1b0)?_1b0:[_1b0],function(_1b1){var _1b2=this[_1b1.node||_1b1||"domNode"];var type=_1b1.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_1af)){_1af=dojo.hitch(this,_1af);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_1b2,attr,_1af);break;case "innerHTML":_1b2.innerHTML=_1af;break;case "class":dojo.removeClass(_1b2,this[attr]);dojo.addClass(_1b2,_1af);break;}},this);this[attr]=_1af;},attr:function(name,_1b5){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}names=this._getAttrNames(name);if(args==2){if(this[names.s]){return this[names.s](_1b5)||this;}else{if(this.set){return this.set(name,_1b5)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_1b5);}this[name]=_1b5;}}return this;}else{if(this[names.g]){return this[names.g]();}else{if(this.get){return this.get(name);}}return this[name];}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_1bd,_1be){var d=dojo;var dco=d.hitch(d,"connect",obj);var _1c1=[];if(_1bd=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_1be);_1c1.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_1c1.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_1bd="onclick";}_1c1.push(dco(_1bd,this,_1be));this._connects.push(_1c1);return _1c1;},disconnect:function(_1c6){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1c6){dojo.forEach(_1c6,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(_1c8,_1c9){if(_1c8["declaredClass"]&&_1c8["addChild"]){_1c8.addChild(this,_1c9);}else{dojo.place(this.domNode,_1c8,_1c9);}return this;}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _1cc=dijit.byId(id);return _1cc.isContainer?_1cc:null;}}return null;},_getSibling:function(_1cd){var node=this.domNode;do{node=node[_1cd+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1d1,_1d2){if(_1d2===undefined){_1d2="last";}var _1d3=this.containerNode;if(_1d2&&typeof _1d2=="number"){var _1d4=dojo.query("> [widgetId]",_1d3);if(_1d4&&_1d4.length>=_1d2){_1d3=_1d4[_1d2-1];_1d2="after";}}dojo.place(_1d1.domNode,_1d3,_1d2);if(this._started&&!_1d1._started){_1d1.startup();}},removeChild:function(_1d5){if(typeof _1d5=="number"&&_1d5>0){_1d5=this.getChildren()[_1d5];}if(!_1d5||!_1d5.domNode){return;}var node=_1d5.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(_1d9){dojo.forEach(this.getChildren(),function(_1da){_1da.destroyRecursive(_1d9);});},_getSiblingOfChild:function(_1db,dir){var node=_1db.domNode;var _1de=(dir>0?"nextSibling":"previousSibling");do{node=node[_1de];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_1df){var _1e0=this.getChildren();for(var i=0,c;c=_1e0[i];i++){if(c==_1df){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_1e3,_1e4){var _1e5=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_1e3,function(code){_1e5[code]=prev;});dojo.forEach(_1e4,function(code){_1e5[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(_1ea,_1eb){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_1ea);},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 _1ec=this._getNextFocusableChild(this.focusedChild,1);if(_1ec.getFocalNodes){this.focusChild(_1ec,_1ec.getFocalNodes()[0]);}else{this.focusChild(_1ec);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _1ed=this._getNextFocusableChild(this.focusedChild,-1);if(_1ed.getFocalNodes){var _1ee=_1ed.getFocalNodes();this.focusChild(_1ed,_1ee[_1ee.length-1]);}else{this.focusChild(_1ed);}},focusChild:function(_1ef,node){if(_1ef){if(this.focusedChild&&_1ef!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_1ef;if(node&&_1ef.focusFocalNode){_1ef.focusFocalNode(node);}else{_1ef.focus();}}},_startupChild:function(_1f1){if(_1f1.getFocalNodes){dojo.forEach(_1f1.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_1f1.focusNode||_1f1.domNode;if(_1f1.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _1f9=dijit.getEnclosingWidget(evt.target);if(_1f9&&_1f9.isFocusable()){this.focusedChild=_1f9;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_1fb){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_1fc,dir){if(_1fc){_1fc=this._getSiblingOfChild(_1fc,dir);}var _1fe=this.getChildren();for(var i=0;i<_1fe.length;i++){if(!_1fc){_1fc=_1fe[(dir>0)?0:(_1fe.length-1)];}if(_1fc.isFocusable()){return _1fc;}_1fc=this._getSiblingOfChild(_1fc,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_200){_200.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_201,_202){var node=this.domNode;if(_201){dojo.marginBox(node,_201);if(_201.t){node.style.top=_201.t+"px";}if(_201.l){node.style.left=_201.l+"px";}}var mb=_202||{};dojo.mixin(mb,_201||{});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(_20a){if(_20a.baseClass){dojo.addClass(_20a.domNode,this.baseClass+"-"+_20a.baseClass);}},addChild:function(_20b,_20c){this.inherited(arguments);this._setupChild(_20b);},removeChild:function(_20d){if(_20d.baseClass){dojo.removeClass(_20d.domNode,this.baseClass+"-"+_20d.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 _213=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_216,dim){_216.resize?_216.resize(dim):dojo.marginBox(_216.domNode,dim);dojo.mixin(_216,dojo.marginBox(_216.domNode));dojo.mixin(_216,dim);};dijit.layout.layoutChildren=function(_218,dim,_21a){dim=dojo.mixin({},dim);dojo.addClass(_218,"dijitLayoutContainer");_21a=dojo.filter(_21a,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_21a,function(item){return item.layoutAlign=="client";}));dojo.forEach(_21a,function(_21d){var elm=_21d.domNode,pos=_21d.layoutAlign;var _220=elm.style;_220.left=dim.l+"px";_220.top=dim.t+"px";_220.bottom=_220.right="auto";dojo.addClass(elm,"dijitAlign"+_213(pos));if(pos=="top"||pos=="bottom"){size(_21d,{w:dim.w});dim.h-=_21d.h;if(pos=="top"){dim.t+=_21d.h;}else{_220.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_21d,{h:dim.h});dim.w-=_21d.w;if(pos=="left"){dim.l+=_21d.w;}else{_220.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_21d,dim);}}}});};})();}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(_22a,map,_22c,_22d){_22d=_22d||dojo.global;_22c=(!_22c)?function(v){return v;}:dojo.hitch(_22d,_22c);return _22a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_22f,key,_231){var _232=dojo.getObject(key,false,map);if(_231){_232=dojo.getObject(_231,false,_22d).call(_22d,_232,key);}return _22c(_232,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_235,_236){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 _237=dojo.date.stamp._isoRegExp.exec(_235);var _238=null;if(_237){_237.shift();if(_237[1]){_237[1]--;}if(_237[6]){_237[6]*=1000;}if(_236){_236=new Date(_236);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _236["get"+prop]();}).forEach(function(_23a,_23b){if(_237[_23b]===undefined){_237[_23b]=_23a;}});}_238=new Date(_237[0]||1970,_237[1]||0,_237[2]||1,_237[3]||0,_237[4]||0,_237[5]||0,_237[6]||0);var _23c=0;var _23d=_237[7]&&_237[7].charAt(0);if(_23d!="Z"){_23c=((_237[8]||0)*60)+(Number(_237[9])||0);if(_23d!="-"){_23c*=-1;}}if(_23d){_23c-=_238.getTimezoneOffset();}if(_23c){_238.setTime(_238.getTime()+_23c*60000);}}return _238;};dojo.date.stamp.toISOString=function(_23e,_23f){var _=function(n){return (n<10)?"0"+n:n;};_23f=_23f||{};var _242=[];var _243=_23f.zulu?"getUTC":"get";var date="";if(_23f.selector!="time"){var year=_23e[_243+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_23e[_243+"Month"]()+1),_(_23e[_243+"Date"]())].join("-");}_242.push(date);if(_23f.selector!="date"){var time=[_(_23e[_243+"Hours"]()),_(_23e[_243+"Minutes"]()),_(_23e[_243+"Seconds"]())].join(":");var _247=_23e[_243+"Milliseconds"]();if(_23f.milliseconds){time+="."+(_247<100?"0":"")+_(_247);}if(_23f.zulu){time+="Z";}else{if(_23f.selector!="time"){var _248=_23e.getTimezoneOffset();var _249=Math.abs(_248);time+=(_248>0?"-":"+")+_(Math.floor(_249/60))+":"+_(_249%60);}}_242.push(time);}return _242.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _24b=d._scopeName+"Type";var qry="["+_24b+"]";function val2type(_24d){if(d.isString(_24d)){return "string";}if(typeof _24d=="number"){return "number";}if(typeof _24d=="boolean"){return "boolean";}if(d.isFunction(_24d)){return "function";}if(d.isArray(_24d)){return "array";}if(_24d instanceof Date){return "date";}if(_24d instanceof d._Url){return "url";}return "object";};function str2obj(_24e,type){switch(type){case "string":return _24e;case "number":return _24e.length?Number(_24e):NaN;case "boolean":return typeof _24e=="boolean"?_24e:!(_24e.toLowerCase()=="false");case "function":if(d.isFunction(_24e)){_24e=_24e.toString();_24e=d.trim(_24e.substring(_24e.indexOf("{")+1,_24e.length-1));}try{if(_24e.search(/[^\w\.]+/i)!=-1){_24e=d.parser._nameAnonFunc(new Function(_24e),this);}return d.getObject(_24e,false);}catch(e){return new Function();}case "array":return _24e?_24e.split(/\s*,\s*/):[];case "date":switch(_24e){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_24e);}case "url":return d.baseUrl+_24e;default:return d.fromJson(_24e);}};var _250={};function getClassInfo(_251){if(!_250[_251]){var cls=d.getObject(_251);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_251+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _253=cls.prototype;var _254={};for(var name in _253){if(name.charAt(0)=="_"){continue;}var _256=_253[name];_254[name]=val2type(_256);}_250[_251]={cls:cls,params:_254};}return _250[_251];};this._functionFromScript=function(_257){var _258="";var _259="";var _25a=_257.getAttribute("args");if(_25a){d.forEach(_25a.split(/\s*,\s*/),function(part,idx){_258+="var "+part+" = arguments["+idx+"]; ";});}var _25d=_257.getAttribute("with");if(_25d&&_25d.length){d.forEach(_25d.split(/\s*,\s*/),function(part){_258+="with("+part+"){";_259+="}";});}return new Function(_258+_257.innerHTML+_259);};this.instantiate=function(_25f){var _260=[];d.forEach(_25f,function(node){if(!node){return;}var type=node.getAttribute(_24b);if((!type)||(!type.length)){return;}var _263=getClassInfo(type);var _264=_263.cls;var ps=_264._noScript||_264.prototype._noScript;var _266={};var _267=node.attributes;for(var name in _263.params){var item=_267.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _26a=item.value;switch(name){case "class":_26a=node.className;break;case "style":_26a=node.style&&node.style.cssText;}var _26b=_263.params[name];_266[name]=str2obj(_26a,_26b);}if(!ps){var _26c=[],_26d=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_26e){var _26f=_26e.getAttribute("event"),type=_26e.getAttribute("type"),nf=d.parser._functionFromScript(_26e);if(_26f){if(type=="dojo/connect"){_26c.push({event:_26f,func:nf});}else{_266[_26f]=nf;}}else{_26d.push(nf);}});}var _271=_264["markupFactory"];if(!_271&&_264["prototype"]){_271=_264.prototype["markupFactory"];}var _272=_271?_271(_266,node,_264):new _264(_266,node);_260.push(_272);var _273=node.getAttribute("jsId");if(_273){d.setObject(_273,_272);}if(!ps){d.forEach(_26c,function(_274){d.connect(_272,_274.event,null,_274.func);});d.forEach(_26d,function(func){func.call(_272);});}});d.forEach(_260,function(_276){if(_276&&_276.startup&&!_276._started&&(!_276.getParent||!_276.getParent())){_276.startup();}});return _260;};this.parse=function(_277){var list=d.query(qry,_277);var _279=this.instantiate(list);return _279;};}();(function(){var _27a=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,_27a);}else{dojo._loaders.unshift(_27a);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_27b,_27c){var jpn="$joinpoint";var nso=(_27c||dojo.parser._anon);if(dojo.isIE){var cn=_27b["__dojoNameCache"];if(cn&&nso[cn]===_27b){return _27b["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_27b;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _282=this.declaredClass,_283=this;return dojo.string.substitute(tmpl,this,function(_284,key){if(key.charAt(0)=="!"){_284=_283[key.substr(1)];}if(typeof _284=="undefined"){throw new Error(_282+" template:"+key);}if(!_284){return "";}return key.charAt(0)=="!"?_284:_284.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _286=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_286)){node=dijit._Templated._createNodesFromText(this._stringRepl(_286))[0];}else{node=_286.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _288=this.srcNodeRef;if(_288&&_288.parentNode){_288.parentNode.replaceChild(node,_288);}if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_288);},_fillContent:function(_28c){var dest=this.containerNode;if(_28c&&dest){while(_28c.hasChildNodes()){dest.appendChild(_28c.firstChild);}}},_attachTemplateNodes:function(_28e,_28f){_28f=_28f||function(n,p){return n.getAttribute(p);};var _292=dojo.isArray(_28e)?_28e:(_28e.all||_28e.getElementsByTagName("*"));var x=dojo.isArray(_28e)?0:-1;var _294={};for(;x<_292.length;x++){var _295=(x==-1)?_28e:_292[x];if(this.widgetsInTemplate&&_28f(_295,"dojoType")){continue;}var _296=_28f(_295,"dojoAttachPoint");if(_296){var _297,_298=_296.split(/\s*,\s*/);while((_297=_298.shift())){if(dojo.isArray(this[_297])){this[_297].push(_295);}else{this[_297]=_295;}}}var _299=_28f(_295,"dojoAttachEvent");if(_299){var _29a,_29b=_299.split(/\s*,\s*/);var trim=dojo.trim;while((_29a=_29b.shift())){if(_29a){var _29d=null;if(_29a.indexOf(":")!=-1){var _29e=_29a.split(":");_29a=trim(_29e[0]);_29d=trim(_29e[1]);}else{_29a=trim(_29a);}if(!_29d){_29d=_29a;}this.connect(_295,_29a,_29d);}}}var role=_28f(_295,"waiRole");if(role){dijit.setWaiRole(_295,role);}var _2a0=_28f(_295,"waiState");if(_2a0){dojo.forEach(_2a0.split(/\s*,\s*/),function(_2a1){if(_2a1.indexOf("-")!=-1){var pair=_2a1.split("-");dijit.setWaiState(_295,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2a3,_2a4,_2a5){var _2a6=dijit._Templated._templateCache;var key=_2a4||_2a3;var _2a8=_2a6[key];if(_2a8){if(!_2a8.ownerDocument||_2a8.ownerDocument==dojo.doc){return _2a8;}dojo._destroyElement(_2a8);}if(!_2a4){_2a4=dijit._Templated._sanitizeTemplateString(dojo._getText(_2a3));}_2a4=dojo.string.trim(_2a4);if(_2a5||_2a4.match(/\$\{([^\}]+)\}/g)){return (_2a6[key]=_2a4);}else{return (_2a6[key]=dijit._Templated._createNodesFromText(_2a4)[0]);}};dijit._Templated._sanitizeTemplateString=function(_2a9){if(_2a9){_2a9=_2a9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2aa=_2a9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2aa){_2a9=_2aa[1];}}else{_2a9="";}return _2a9;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2ab=dijit._Templated._templateCache;for(var key in _2ab){var _2ad=_2ab[key];if(!isNaN(_2ad.nodeType)){dojo._destroyElement(_2ad);}delete _2ab[key];}});}(function(){var _2ae={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _2b1="none";var _2b2=text.replace(/^\s+/,"");for(var type in _2ae){var map=_2ae[type];if(map.re.test(_2b2)){_2b1=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_2b1];var _2b6=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _2b7=[];while(_2b6.firstChild){_2b7.push(_2b6.removeChild(_2b6.firstChild));}tn.innerHTML="";return _2b7;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dojox.layout.ScrollPane"]){dojo._hasResource["dojox.layout.ScrollPane"]=true;dojo.provide("dojox.layout.ScrollPane");dojo.experimental("dojox.layout.ScrollPane");dojo.declare("dojox.layout.ScrollPane",[dijit.layout._LayoutWidget,dijit._Templated],{_line:null,_lo:null,_offset:15,orientation:"vertical",templateString:"<div class=\"dojoxScrollWindow\" dojoAttachEvent=\"onmouseenter: _enter, onmouseleave: _leave\">\n    <div class=\"dojoxScrollWrapper\" style=\"${style}\" dojoAttachPoint=\"wrapper\" dojoAttachEvent=\"onmousemove: _calc\">\n\t<div class=\"dojoxScrollPane\" dojoAttachPoint=\"containerNode\"></div>\n    </div>\n    <div dojoAttachPoint=\"helper\" class=\"dojoxScrollHelper\"><span class=\"helperInner\">|</span></div>\n</div>\n",layout:function(){var dir=this._dir,vert=this._vertical,val=this.containerNode[(vert?"scrollHeight":"scrollWidth")];dojo.style(this.wrapper,dir,this.domNode.style[dir]);this._lo=dojo.coords(this.wrapper,true);this._size=Math.max(0,val-this._lo[(vert?"h":"w")]);this._line=new dojo._Line(0-this._offset,this._size+(this._offset*2));var u=this._lo[(vert?"h":"w")],r=Math.min(1,u/val),s=u*r,c=Math.floor(u-(u*r));this._helpLine=new dojo._Line(0,c);dojo.style(this.helper,dir,Math.floor(s)+"px");},postCreate:function(){this.inherited(arguments);this._showAnim=dojo._fade({node:this.helper,end:0.5,duration:350});this._hideAnim=dojo.fadeOut({node:this.helper,duration:750});this._vertical=(this.orientation=="vertical");if(!this._vertical){dojo.addClass(this.containerNode,"dijitInline");this._dir="width";this._edge="left";}else{this._dir="height";this._edge="top";}this._hideAnim.play();dojo.style(this.wrapper,"overflow","hidden");},_set:function(n){this.wrapper[(this._vertical?"scrollTop":"scrollLeft")]=Math.floor(this._line.getValue(n));dojo.style(this.helper,this._edge,Math.floor(this._helpLine.getValue(n))+"px");},_calc:function(e){this._set(this._vertical?((e.pageY-this._lo.y)/this._lo.h):((e.pageX-this._lo.x)/this._lo.w));},_enter:function(e){if(this._hideAnim&&this._hideAnim.status()=="playing"){this._hideAnim.stop();}this._showAnim.play();},_leave:function(e){this._hideAnim.play();}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_2c3,_2c4,_2c5){_2c5=dojo.i18n.normalizeLocale(_2c5);var _2c6=_2c5.split("-");var _2c7=[_2c3,"nls",_2c4].join(".");var _2c8=dojo._loadedModules[_2c7];if(_2c8){var _2c9;for(var i=_2c6.length;i>0;i--){var loc=_2c6.slice(0,i).join("_");if(_2c8[loc]){_2c9=_2c8[loc];break;}}if(!_2c9){_2c9=_2c8.ROOT;}if(_2c9){var _2cc=function(){};_2cc.prototype=_2c9;return new _2cc();}}throw new Error("Bundle not found: "+_2c4+" in "+_2c3+" , locale="+_2c5);};dojo.i18n.normalizeLocale=function(_2cd){var _2ce=_2cd?_2cd.toLowerCase():dojo.locale;if(_2ce=="root"){_2ce="ROOT";}return _2ce;};dojo.i18n._requireLocalization=function(_2cf,_2d0,_2d1,_2d2){var _2d3=dojo.i18n.normalizeLocale(_2d1);var _2d4=[_2cf,"nls",_2d0].join(".");var _2d5="";if(_2d2){var _2d6=_2d2.split(",");for(var i=0;i<_2d6.length;i++){if(_2d3["indexOf"](_2d6[i])==0){if(_2d6[i].length>_2d5.length){_2d5=_2d6[i];}}}if(!_2d5){_2d5="ROOT";}}var _2d8=_2d2?_2d5:_2d3;var _2d9=dojo._loadedModules[_2d4];var _2da=null;if(_2d9){if(dojo.config.localizationComplete&&_2d9._built){return;}var _2db=_2d8.replace(/-/g,"_");var _2dc=_2d4+"."+_2db;_2da=dojo._loadedModules[_2dc];}if(!_2da){_2d9=dojo["provide"](_2d4);var syms=dojo._getModuleSymbols(_2cf);var _2de=syms.concat("nls").join("/");var _2df;dojo.i18n._searchLocalePath(_2d8,_2d2,function(loc){var _2e1=loc.replace(/-/g,"_");var _2e2=_2d4+"."+_2e1;var _2e3=false;if(!dojo._loadedModules[_2e2]){dojo["provide"](_2e2);var _2e4=[_2de];if(loc!="ROOT"){_2e4.push(loc);}_2e4.push(_2d0);var _2e5=_2e4.join("/")+".js";_2e3=dojo._loadPath(_2e5,null,function(hash){var _2e7=function(){};_2e7.prototype=_2df;_2d9[_2e1]=new _2e7();for(var j in hash){_2d9[_2e1][j]=hash[j];}});}else{_2e3=true;}if(_2e3&&_2d9[_2e1]){_2df=_2d9[_2e1];}else{_2d9[_2e1]=_2df;}if(_2d2){return true;}});}if(_2d2&&_2d3!=_2d5){_2d9[_2d3.replace(/-/g,"_")]=_2d9[_2d5.replace(/-/g,"_")];}};(function(){var _2e9=dojo.config.extraLocale;if(_2e9){if(!_2e9 instanceof Array){_2e9=[_2e9];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_2ed,_2ee){req(m,b,_2ed,_2ee);if(_2ed){return;}for(var i=0;i<_2e9.length;i++){req(m,b,_2e9[i],_2ee);}};}})();dojo.i18n._searchLocalePath=function(_2f0,down,_2f2){_2f0=dojo.i18n.normalizeLocale(_2f0);var _2f3=_2f0.split("-");var _2f4=[];for(var i=_2f3.length;i>0;i--){_2f4.push(_2f3.slice(0,i).join("-"));}_2f4.push(false);if(down){_2f4.reverse();}for(var j=_2f4.length-1;j>=0;j--){var loc=_2f4[j]||"ROOT";var stop=_2f2(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_2f9,_2fa){function preload(_2fb){_2fb=dojo.i18n.normalizeLocale(_2fb);dojo.i18n._searchLocalePath(_2fb,true,function(loc){for(var i=0;i<_2fa.length;i++){if(_2fa[i]==loc){dojo["require"](_2f9+"_"+loc);return true;}}return false;});};preload();var _2fe=dojo.config.extraLocale||[];for(var i=0;i<_2fe.length;i++){preload(_2fe[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:"auto",postMixInProperties:function(){this.inherited(arguments);var _300=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_300);this.errorMessage=dojo.string.substitute(this.errorMessage,_300);},postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}if(this.content){this.attr("content",this.content);}if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _301=dojo.query(">",this.containerNode),_302=_301.filter("[widgetId]");if(_301.length==1&&_302.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_302[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.  Use attr('href', ...) instead.","","2.0");return this.attr("href",data);},_setHrefAttr:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}this._onLoadHandler();},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_30c){this.cancel();this.isLoaded=false;this._loadCheck(_30c);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_30e){var _30f=this._isShown();if(this.href&&(_30e||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_30f&&!this._xhrDfd)||(!this.isLoaded&&_30f&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _311={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_311,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_311);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.attr.call(self,"content",html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){var _317=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_317){cont=_317[1];}}node.innerHTML=cont;}else{if(cont.domNode){node.appendChild(cont.domNode);}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}}catch(e){var _319=this.onContentError(e);try{node.innerHTML=_319;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_31c){var _31d=this["on"+type+"Error"].call(this,err);if(_31c){console.error(_31c,err);}else{if(_31d){this._setContent.call(this,_31d);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_320){},onDownloadError:function(_321){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");(function(){if(dojo.isIE){var _322=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _323=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;function adjustCssPaths(_324,_325){if(!_325||!_324){return;}if(_322){_325=_325.replace(_322,function(_326,pre,_328,url,post){return pre+(new dojo._Url(_324,"./"+url).toString())+post;});}return _325.replace(_323,function(_32b,_32c,_32d,_32e,_32f,_330){if(_32d){return "@import \""+(new dojo._Url(_324,"./"+_32d).toString())+"\""+_330;}else{return "url("+(new dojo._Url(_324,"./"+_32f).toString())+")"+_330;}});};var _331=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;function adjustHtmlPaths(_332,cont){var url=_332||"./";return cont.replace(_331,function(tag,_336,name,_338,_339,_33a,_33b,end){return _336+(name?(name+"="+_338+(new dojo._Url(url,_339).toString())+_338):("style="+_33a+adjustCssPaths(url,_33b)+_33a))+end;});};function secureForInnerHtml(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};function snarfStyles(_33e,cont,_340){_340.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_341,_342,_343,_344,_345,href){var i,attr=(_342||_344||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_343){i=_340.push(_33e?adjustCssPaths(_33e,_343):_343);}else{i=_340.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _349={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_349[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_340.attributes[i-1]=_349;}return "";});};function snarfScripts(cont,_34e){_34e.code="";function download(src){if(_34e.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_34e.code+=code+";";},error:_34e.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_351,_352,src,code){if(src){download(src);}else{_34e.code+=code;}return "";});};function evalInGlobal(code,_356){_356=_356||dojo.doc.body;var n=_356.ownerDocument.createElement("script");n.type="text/javascript";_356.appendChild(n);n.text=code;};dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;this.onLoadDeferred=new dojo.Deferred();this.onUnloadDeferred=new dojo.Deferred();},postCreate:function(){this._setUpDeferreds();dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments);},onExecError:function(e){},_setContentAttr:function(data){if(!this._isDownloaded){var _35a=this._setUpDeferreds();}this.inherited(arguments);return _35a;},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null;}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);},_setUpDeferreds:function(){var _t=this,_35c=function(){_t.cancel();};var _35d=(_t.onLoadDeferred=new dojo.Deferred());var _35e=(_t._nextUnloadDeferred=new dojo.Deferred());return {cancel:_35c,addOnLoad:function(func){_35d.addCallback(func);},addOnUnload:function(func){_35e.addCallback(func);}};},_onLoadHandler:function(){dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this.onUnloadDeferred){this.onUnloadDeferred.callback(true);}dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);if(this._nextUnloadDeferred){this.onUnloadDeferred=this._nextUnloadDeferred;}},_onError:function(type,err){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(err);}},_prepareLoad:function(_363){var _364=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return _364;},_setContent:function(cont){var _366=[];if(dojo.isString(cont)){if(this.adjustPaths&&this.href){cont=adjustHtmlPaths(this.href,cont);}if(this.cleanContent){cont=secureForInnerHtml(cont);}if(this.renderStyles||this.cleanContent){cont=snarfStyles(this.href,cont,_366);}if(this.executeScripts){var _t=this,code,_369={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};cont=snarfScripts(cont,_369);code=_369.code;}var node=(this.containerNode||this.domNode),post,pre=post="",walk=0;switch(node.nodeName.toLowerCase()){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);cont=n.childNodes;}}dijit.layout.ContentPane.prototype._setContent.call(this,cont);if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}if(this.renderStyles&&_366&&_366.length){this._renderStyles(_366);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,dijit._scopeName+".byId('"+this.id+"')");}try{evalInGlobal(code,(this.containerNode||this.domNode));}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}},_renderStyles:function(_370){this._styleNodes=[];var st,att,_373,doc=this.domNode.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_370.length;i<e;i++){_373=_370[i];att=_370.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_373;}else{st.appendChild(doc.createTextNode(_373));}}}});})();}if(!dojo._hasResource["dojoc.sandbox.rounded.Rounded"]){dojo._hasResource["dojoc.sandbox.rounded.Rounded"]=true;dojo.provide("dojoc.sandbox.rounded.Rounded");dojo.declare("dojoc.sandbox.rounded.Rounded",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"Rounded\" dojoAttachPoint=\"outerNode\" dojoAttachEvent=\"onmouseover: onMouseOver, onmouseout: onMouseOut, onclick: onClick\">\n\t<div class=\"RoundedContent\" dojoAttachPoint=\"roundedContent\">\n\t    <div class=\"RoundedTop\" dojoAttachPoint=\"roundedTop\"></div>\n\t    \t<div dojoAttachPoint=\"contentNode\">\n\t\t\t\t<div dojoAttachPoint=\"containerNode\"></div>\n\t\t\t</div>\n\t\t</div>\n\t<div class=\"RoundedBottom\" dojoAttachPoint=\"roundedBottom\"><div dojoAttachPoint=\"roundedBottomDiv\"></div></div>\n</div>\n",bgImg:"",bgImgAlt:"",radius:10,postCreate:function(){var _379=dojo.style(this.outerNode,"height")-(2*this.radius);if(_379>=0){dojo.style(this.contentNode,{"height":dojo.style(this.outerNode,"height")-(2*this.radius)+"px","width":dojo.style(this.outerNode,"width")-(2*this.radius)+"px"});dojo.style(this.outerNode,{"marginLeft":this.radius+"px","marginBottom":this.radius+"px","width":dojo.style(this.outerNode,"width")-this.radius+"px","height":dojo.style(this.outerNode,"height")-this.radius+"px"});}else{dojo.style(this.contentNode,{"width":dojo.style(this.outerNode,"width")-(2*this.radius)+"px"});dojo.style(this.outerNode,{"marginLeft":this.radius+"px","marginBottom":this.radius+"px","width":dojo.style(this.outerNode,"width")-this.radius+"px"});}var alt=(this.bgImgAlt.length&&dojo.isIE<7);dojo.forEach(["roundedContent","roundedTop","roundedBottom","roundedBottomDiv"],function(_37b){dojo.style(this[_37b],"backgroundImage","url("+(alt?this.bgImgAlt:this.bgImg)+")");if(_37b=="roundedContent"){dojo.style(this[_37b],{"paddingTop":this.radius+"px","paddingRight":this.radius+"px"});}else{if(_37b=="roundedTop"){dojo.style(this[_37b],{"width":this.radius+"px","marginLeft":-this.radius+"px"});}else{if(_37b=="roundedBottom"){dojo.style(this[_37b],"height",this.radius+"px");}else{if(_37b=="roundedBottomDiv"){dojo.style(this[_37b],{"height":this.radius+"px","width":this.radius+"px","marginLeft":-this.radius+"px"});}}}}},this);},setBgImg:function(_37c,_37d){var alt=(_37d.length&&dojo.isIE<7);dojo.forEach(["roundedContent","roundedTop","roundedBottom","roundedBottomDiv"],function(_37f){dojo.style(this[_37f],"backgroundImage","url("+(alt?_37d:_37c)+")");},this);},onMouseOver:function(){},onMouseOut:function(){},onClick:function(){}});}if(!dojo._hasResource["xnadmin.cms.Media.Youtube"]){dojo._hasResource["xnadmin.cms.Media.Youtube"]=true;dojo.provide("xnadmin.cms.Media.Youtube");dojo.declare("xnadmin.cms.Media.Youtube",[dijit._Widget,dijit._Templated],{width:400,height:400,url:"",templateString:"<object width=\"${width}\" height=\"${height}\">\n\t<param name=\"movie\" value=\"${url}\"></param>\n\t<param name=\"wmode\" value=\"transparent\"></param>\n\t<embed src=\"${url}\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"${width}\" height=\"${height}\"></embed>\n</object>\n"});}if(!dojo._hasResource["rainbow.core"]){dojo._hasResource["rainbow.core"]=true;dojo.provide("rainbow.core");dojo.declare("rainbow.core",null,{coords:[],toggle:0,isMoving:false,current:"",connectCache:[],toggleGravity:function(item){items=item.id.split("-");items.shift();item=items.join("-");if(this.current==item){return;}this.current=item;var conn=dojo.connect(this,"contentLoaded",dojo.hitch(this,function(){dojo.disconnect(conn);if(this.toggle==0){this.gravityOn();}}));this.loadContent(item);},contentLoaded:function(){},loadContent:function(slug){dojo.byId("icon-info-content").innerHTML="loading...";dojo.xhrGet({url:"cms/rpc/get?type=json&slug="+slug,handleAs:"json-comment-filtered",load:dojo.hitch(this,function(data,_384){dojo.byId("img-current").src="images/pg-"+slug+".gif";dijit.byId("rainbow-scroller").containerNode.innerHTML="";var _385=slug.replace(/-/g," ");dojo.byId("icon-info-content").innerHTML=_385;this.setContent("",null);for(var i=0;i<this.connectCache.length;i++){dojo.disconnect(this.connectCache[i]);}dojo.forEach(data.items,function(item,cnt){if(cnt==0){this.setContent(item.content,item.id);}var _389=dojo.doc.createElement("div");dojo.addClass(_389,"scroller-item");var node=dojo.doc.createElement("div");dojo.addClass(node,"scroller-content");node.innerHTML=item.name;var _38b=new dojoc.sandbox.rounded.Rounded({bgImg:"images/bg-scroller.gif",style:"position: relative; width: 163px;"},node);this.connectCache[this.connectCache.length]=dojo.connect(_38b,"onMouseOver",function(){_38b.setBgImg("images/bg-scroller-act.gif","images/bg-scroller-act.gif");});this.connectCache[this.connectCache.length]=dojo.connect(_38b,"onMouseOut",dojo.hitch(_38b,"setBgImg","images/bg-scroller.gif","images/bg-scroller.gif"));_389.appendChild(_38b.domNode);var _38c=dojo.connect(_389,"onclick",dojo.hitch(this,function(item){this.setContent(item.content);},item));this.connectCache[this.connectCache.length]=_38c;dijit.byId("rainbow-scroller").containerNode.appendChild(_389);},this);this.contentLoaded();})});},setContent:function(_38e,id){dijit.byId("scroller-view-content").setContent(_38e);},gravityOn:function(){if(this.isMoving){return;}this.isMoving=true;this.toggle=1;var _390=[];dojo.forEach(dojo.query(".menu-item"),function(item,cnt){this.coords[item.id]={l:dojo.style(item,"left"),t:dojo.style(item,"top")};var anim=dojo.fx.slideTo({node:item,duration:600,top:530,left:this.coords[item.id].l,easing:dojox.fx.easing.bounceOut});_390.push(anim);},this);var _394=dojo.fx.combine(_390);dojo.connect(_394,"onEnd",dojo.hitch(this,function(){dojo.fadeIn({beforeBegin:dojo.hitch(this,function(){dojo.style(dojo.byId("content"),"opacity","0");dojo.style(dojo.byId("content"),"display","block");}),node:"content",duration:300,onEnd:dojo.hitch(this,function(){this.isMoving=false;})}).play();}));_394.play();},gravityOff:function(){this.toggle=0;this.current="";if(this.isMoving){return;}this.isMoving=true;var _395=[];dojo.fadeOut({node:dojo.byId("content"),duration:300,onEnd:dojo.hitch(this,function(){dojo.forEach(dojo.query(".menu-item"),function(item,cnt){var anim=dojo.fx.slideTo({node:item,duration:600,top:this.coords[item.id].t,left:this.coords[item.id].l,easing:dojox.fx.easing.bounceOut});_395.push(anim);},this);var _399=dojo.fx.combine(_395);dojo.connect(_399,"onEnd",dojo.hitch(this,function(){this.isMoving=false;dojo.style(dojo.byId("content"),"display","none");}));_399.play();})}).play();}});}if(!dojo._hasResource["rainbow.layer"]){dojo._hasResource["rainbow.layer"]=true;dojo.provide("rainbow.layer");}dojo.i18n._preloadLocalizations("rainbow.nls.layer",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","da","pl","de","sv","pt","zh-tw","pt-pt","nl-nl","ko-kr","ar","en-us","zh","ja-jp"]);
