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

dojo.provide("jazel.util.Misc");dojo.declare("jazel.util.Misc",null,{});jazel.util.Misc.pricingCampaignsStringToArray=function(_1){var _2=[];var _3=_1.split(";");while(_3.length>4){var _4={};_4.labelText=unescape(_3.shift());_4.labelClassName=unescape(_3.shift());_4.priceText=unescape(_3.shift());_4.priceClassName=unescape(_3.shift());_2.push(_4);}return _2;};jazel.util.Misc.setModelDropDownFromPutaside=function(_5,_6,_7){_6=(_6!=null)?_6:"";_7.disabled=false;if(_7.length>0&&_7[0].value!=""){var _8=document.createElement("option");dojo.place(_8,_7,"first");}_7.selectedIndex=0;try{_7.length=1;}catch(e){}var _9=new dojo.NodeList();var _a=dojo.byId(_5.id+"-putaside");if(_a!=null){var _b=_a.length;for(var i=0;i<_b;i++){var _d=_a.options[i];if(dojo.attr(_d,"jazelaux")==_6){_9.push(_d);}}}_9.forEach(function(_e){if(_e.value!=""){var _f=dojo.clone(_e);dojo.place(_f,_7);}});if(_9.length==1){try{_7.remove(0);}catch(e){}}if(_6==""){_7.disabled=true;}};jazel.util.Misc.getRelativeOffset=function(_10,_11){var _12={l:0,t:0};while(_10!=null&&_10!=_11){_12.l+=_10.offsetLeft;_12.t+=_10.offsetTop;_10=_10.offsetParent;}if(_10==null){_12=null;}return _12;};dojo.provide("jazel.util.FormPersist");dojo.declare("jazel.util.FormPersist",null,{_fieldNode:null,constructor:function(_13){this._fieldNode=dojo.byId(_13.fieldId);},get:function(_14){var obj=this.getObject();return (typeof (obj[_14])!="undefined")?obj[_14]:"";},set:function(_16,_17){var obj=this.getObject();obj[_16]=new String(_17);this.setObject(obj);},keys:function(){var obj=this.getObject();var _1a=[];for(var _1b in obj){_1a.push(_1b);}return _1a;},containsKey:function(key){var obj=this.getObject();return (typeof (obj[key])!="undefined");},getObject:function(){var obj={};var _1f=this._fieldNode.value.split(";");while(_1f.length>=2){var key=unescape(_1f.shift());obj[key]=unescape(_1f.shift());}return obj;},setObject:function(obj){var _22="";for(var key in obj){_22+=escape(key)+";"+escape(obj[key])+";";}this._fieldNode.value=_22;}});dojo.provide("jazel.util.HTMLHelper");dojo.declare("jazel.util.HTMLHelper",null,{});dojo.setObject("jazel.util.HTMLHelper.gotoUrl",function(url){document.location.href=url;});dojo.setObject("jazel.util.HTMLHelper.printPage",function(){window.print();});dojo.setObject("jazel.util.HTMLHelper.formatPercent",function(_25){return _25+"%";});dojo.setObject("jazel.util.HTMLHelper.formatInt",function(_26){var _27="";if(_26==0){_27="0";}else{value=(_26>0)?_26:-_26;if(_26<0){_27="-";}var _28=0;for(var q=value;q>0;q=Math.floor(q/10)){if(_28>0&&(_28%3==0)){_27=","+_27;}_27=(q%10)+_27;_28++;}}return _27;});dojo.setObject("jazel.util.HTMLHelper.parse",function(_2a,fn){var _2c=new String(_2a).replace(/[,\s]/,"");var _2d=fn(_2c);_2d=(!isNaN(_2d))?_2d:0;return _2d;});dojo.setObject("jazel.util.HTMLHelper.parseInt",function(_2e){return jazel.util.HTMLHelper.parse(_2e,parseInt);});dojo.setObject("jazel.util.HTMLHelper.parseFloat",function(_2f){return jazel.util.HTMLHelper.parse(_2f,parseFloat);});dojo.setObject("jazel.util.HTMLHelper.trimString",function(_30){return _30.replace(/^\s\s*/,"").replace(/\s\s*$/,"");});dojo.setObject("jazel.util.HTMLHelper.formatDollarValue",function(_31,_32){var _33=Math.floor(_31);var _34=_31-Math.floor(_31);_34=Math.ceil(_34*100);var _35;if(_33==0&&_31==0){_35=_32;}else{_35="$"+jazel.util.HTMLHelper.formatInt(_33);if(_34>=10){_35+="."+_34;}else{if(_34>0){_35+=".0"+_34;}}}return _35;});jazel.util.HTMLHelper.formatDollarValueForPrice=function(_36){return jazel.util.HTMLHelper.formatDollarValue(_36,"CALL");};jazel.util.HTMLHelper.formatDollarValueForMSRP=function(_37){return jazel.util.HTMLHelper.formatDollarValue(_37,"N/A");};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(_38){var _t=this;dojo.mixin(_t,_38);_t.node=_38.node;_t._showArgs=dojo.mixin({},_38);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_38);_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(_3a){return this.showAnim.play(_3a||0);},hide:function(_3b){return this.hideAnim.play(_3b||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_3d={_fire:function(evt,_3f){if(this[evt]){this[evt].apply(this,_3f||[]);}return this;}};var _40=function(_41){this._index=-1;this._animations=_41||[];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(_40,{_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(_43,_44){if(!this._current){this._current=this._animations[this._index=0];}if(!_44&&this._current.status()=="playing"){return this;}var _45=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_46=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_48=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_45);d.disconnect(_46);d.disconnect(_48);});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(_4c,_4d){this.pause();var _4e=this.duration*_4c;this._current=null;d.some(this._animations,function(a){if(a.duration<=_4e){this._current=a;return true;}_4e-=a.duration;return false;});if(this._current){this._current.gotoPercent(_4e/this._current.duration,_4d);}return this;},stop:function(_50){if(this._current){if(_50){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(_40,_3d);dojo.fx.chain=function(_53){return new _40(_53);};var _54=function(_55){this._animations=_55||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_55,function(a){var _57=a.duration;if(a.delay){_57+=a.delay;}if(this.duration<_57){this.duration=_57;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});var _58=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){_58._connects.push(d.connect(_58._pseudoAnimation,evt,function(){_58._fire(evt,arguments);}));});};d.extend(_54,{_doAction:function(_5a,_5b){d.forEach(this._animations,function(a){a[_5a].apply(a,_5b);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_5d,_5e){var t=this._pseudoAnimation;t[_5d].apply(t,_5e);},play:function(_60,_61){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(_62,_63){var ms=this.duration*_62;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_63);});this._call("gotoPercent",arguments);return this;},stop:function(_66){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(_54,_3d);dojo.fx.combine=function(_67){return new _54(_67);};dojo.fx.wipeIn=function(_68){_68.node=d.byId(_68.node);var _69=_68.node,s=_69.style,o;var _6c=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 _6d=d.style(_69,"height");return Math.max(_6d,1);}},end:function(){return _69.scrollHeight;}}}},_68));d.connect(_6c,"onEnd",function(){s.height="auto";s.overflow=o;});return _6c;};dojo.fx.wipeOut=function(_6e){var _6f=_6e.node=d.byId(_6e.node),s=_6f.style,o;var _72=d.animateProperty(d.mixin({properties:{height:{end:1}}},_6e));d.connect(_72,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_72,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _72;};dojo.fx.slideTo=function(_73){var _74=_73.node=d.byId(_73.node),top=null,_76=null;var _77=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_76=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.coords(n,true);top=ret.y;_76=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_76+"px";}};})(_74);_77();var _7c=d.animateProperty(d.mixin({properties:{top:_73.top||0,left:_73.left||0}},_73));d.connect(_7c,"beforeBegin",_7c,_77);return _7c;};})();}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 _7d=dojo.doc;if(_7d.selection){var s=_7d.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _7f=dojo.global;var _80=_7f.getSelection();if(dojo.isString(_80)){return !_80;}else{return !_80||_80.isCollapsed||!_80.toString();}}},getBookmark:function(){var _81,_82=dojo.doc.selection;if(_82){var _83=_82.createRange();if(_82.type.toUpperCase()=="CONTROL"){if(_83.length){_81=[];var i=0,len=_83.length;while(i<len){_81.push(_83.item(i++));}}else{_81=null;}}else{_81=_83.getBookmark();}}else{if(window.getSelection){_82=dojo.global.getSelection();if(_82){_83=_82.getRangeAt(0);_81=_83.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _81;},moveToBookmark:function(_86){var _87=dojo.doc;if(_87.selection){var _88;if(dojo.isArray(_86)){_88=_87.body.createControlRange();dojo.forEach(_86,function(n){_88.addElement(n);});}else{_88=_87.selection.createRange();_88.moveToBookmark(_86);}_88.select();}else{var _8a=dojo.global.getSelection&&dojo.global.getSelection();if(_8a&&_8a.removeAllRanges){_8a.removeAllRanges();_8a.addRange(_86);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_8b,_8c){return {node:_8b&&dojo.isDescendant(dijit._curFocus,_8b.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_8c||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_8c||dojo.global,dijit.getBookmark):null,openedForWindow:_8c};},focus:function(_8d){if(!_8d){return;}var _8e="node" in _8d?_8d.node:_8d,_8f=_8d.bookmark,_90=_8d.openedForWindow;if(_8e){var _91=(_8e.tagName.toLowerCase()=="iframe")?_8e.contentWindow:_8e;if(_91&&_91.focus){try{_91.focus();}catch(e){}}dijit._onFocusNode(_8e);}if(_8f&&dojo.withGlobal(_90||dojo.global,dijit.isCollapsed)){if(_90){_90.focus();}try{dojo.withGlobal(_90||dojo.global,dijit.moveToBookmark,null,[_8f]);}catch(e){}}},_activeStack:[],registerIframe:function(_92){dijit.registerWin(_92.contentWindow,_92);},registerWin:function(_93,_94){dojo.connect(_93.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_94||evt.target||evt.srcElement);});var doc=_93.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_94||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_94||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_94||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_94||evt.target);},true);}}doc=null;},_onBlurNode:function(_9b){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(_9c){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _9d=[];try{while(_9c){if(_9c.dijitPopupParent){_9c=dijit.byId(_9c.dijitPopupParent).domNode;}else{if(_9c.tagName&&_9c.tagName.toLowerCase()=="body"){if(_9c===dojo.body()){break;}_9c=dijit.getDocumentWindow(_9c.ownerDocument).frameElement;}else{var id=_9c.getAttribute&&_9c.getAttribute("widgetId");if(id){_9d.unshift(id);}_9c=_9c.parentNode;}}}}catch(e){}dijit._setStack(_9d);},_onFocusNode:function(_9f){if(!_9f){return;}if(_9f.nodeType==9){return;}dijit._onTouchNode(_9f);if(_9f==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_9f;dojo.publish("focusNode",[_9f]);},_setStack:function(_a0){var _a1=dijit._activeStack;dijit._activeStack=_a0;for(var _a2=0;_a2<Math.min(_a1.length,_a0.length);_a2++){if(_a1[_a2]!=_a0[_a2]){break;}}for(var i=_a1.length-1;i>=_a2;i--){var _a4=dijit.byId(_a1[i]);if(_a4){_a4._focused=false;_a4._hasBeenBlurred=true;if(_a4._onBlur){_a4._onBlur();}if(_a4._setStateClass){_a4._setStateClass();}dojo.publish("widgetBlur",[_a4]);}}for(i=_a2;i<_a0.length;i++){_a4=dijit.byId(_a0[i]);if(_a4){_a4._focused=true;if(_a4._onFocus){_a4._onFocus();}if(_a4._setStateClass){_a4._setStateClass();}dojo.publish("widgetFocus",[_a4]);}}}});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(_a5){if(this._hash[_a5.id]){throw new Error("Tried to register widget with id=="+_a5.id+" but that id is already registered");}this._hash[_a5.id]=_a5;},remove:function(id){delete this._hash[id];},forEach:function(_a7){for(var id in this._hash){_a7(this._hash[id]);}},filter:function(_a9){var res=new dijit.WidgetSet();this.forEach(function(_ab){if(_a9(_ab)){res.add(_ab);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_ae){return _ae.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_af){var id;do{id=_af+"_"+(_af in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_af]:dijit._widgetTypeCtr[_af]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_b1){var _b2=[];function _b3(_b4){var _b5=dojo.isIE?_b4.children:_b4.childNodes,i=0,_b7;while(_b7=_b5[i++]){if(_b7.nodeType!=1){continue;}var _b8=_b7.getAttribute("widgetId");if(_b8){var _b9=dijit.byId(_b8);_b2.push(_b9);}else{_b3(_b7);}}};_b3(_b1);return _b2;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_ba){if(_ba.destroyRecursive){_ba.destroyRecursive();}else{if(_ba.destroy){_ba.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_bc){return dijit.registry.byId(_bc.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_bd){while(_bd){if(_bd.getAttribute&&_bd.getAttribute("widgetId")){return dijit.registry.byId(_bd.getAttribute("widgetId"));}_bd=_bd.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_be){var _bf=dojo.style(_be);return (_bf.visibility!="hidden")&&(_bf.visibility!="collapsed")&&(_bf.display!="none")&&(dojo.attr(_be,"type")!="hidden");};dijit.isTabNavigable=function(_c0){if(dojo.hasAttr(_c0,"disabled")){return false;}var _c1=dojo.hasAttr(_c0,"tabindex");var _c2=dojo.attr(_c0,"tabindex");if(_c1&&_c2>=0){return true;}var _c3=_c0.nodeName.toLowerCase();if(((_c3=="a"&&dojo.hasAttr(_c0,"href"))||dijit._tabElements[_c3])&&(!_c1||_c2>=0)){return true;}return false;};dijit._getTabNavigable=function(_c4){var _c5,_c6,_c7,_c8,_c9,_ca;var _cb=function(_cc){dojo.query("> *",_cc).forEach(function(_cd){var _ce=dijit._isElementShown(_cd);if(_ce&&dijit.isTabNavigable(_cd)){var _cf=dojo.attr(_cd,"tabindex");if(!dojo.hasAttr(_cd,"tabindex")||_cf==0){if(!_c5){_c5=_cd;}_c6=_cd;}else{if(_cf>0){if(!_c7||_cf<_c8){_c8=_cf;_c7=_cd;}if(!_c9||_cf>=_ca){_ca=_cf;_c9=_cd;}}}}if(_ce&&_cd.nodeName.toUpperCase()!="SELECT"){_cb(_cd);}});};if(dijit._isElementShown(_c4)){_cb(_c4);}return {first:_c5,last:_c6,lowest:_c7,highest:_c9};};dijit.getFirstInTabbingOrder=function(_d0){var _d1=dijit._getTabNavigable(dojo.byId(_d0));return _d1.lowest?_d1.lowest:_d1.first;};dijit.getLastInTabbingOrder=function(_d2){var _d3=dijit._getTabNavigable(dojo.byId(_d2));return _d3.last?_d3.last:_d3.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_d4){this.pairs=[];this.returnWrappers=_d4||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_d5,_d6,_d7,_d8,_d9){this.pairs[((_d9)?"unshift":"push")]([_d5,_d6,_d7,_d8]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _db=this.pairs[i];if(_db[1].apply(this,arguments)){if((_db[3])||(this.returnWrappers)){return _db[2];}else{return _db[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_dc){for(var i=0;i<this.pairs.length;i++){var _de=this.pairs[i];if(_de[0]==_dc){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 _df=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _e0=dojo._docScroll();return {w:_df.clientWidth,h:_df.clientHeight,l:_e0.x,t:_e0.y};};dijit.placeOnScreen=function(_e1,pos,_e3,_e4){var _e5=dojo.map(_e3,function(_e6){var c={corner:_e6,pos:{x:pos.x,y:pos.y}};if(_e4){c.pos.x+=_e6.charAt(1)=="L"?_e4.x:-_e4.x;c.pos.y+=_e6.charAt(0)=="T"?_e4.y:-_e4.y;}return c;});return dijit._place(_e1,_e5);};dijit._place=function(_e8,_e9,_ea){var _eb=dijit.getViewport();if(!_e8.parentNode||String(_e8.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_e8);}var _ec=null;dojo.some(_e9,function(_ed){var _ee=_ed.corner;var pos=_ed.pos;if(_ea){_ea(_e8,_ed.aroundCorner,_ee);}var _f0=_e8.style;var _f1=_f0.display;var _f2=_f0.visibility;_f0.visibility="hidden";_f0.display="";var mb=dojo.marginBox(_e8);_f0.display=_f1;_f0.visibility=_f2;var _f4=(_ee.charAt(1)=="L"?pos.x:Math.max(_eb.l,pos.x-mb.w)),_f5=(_ee.charAt(0)=="T"?pos.y:Math.max(_eb.t,pos.y-mb.h)),_f6=(_ee.charAt(1)=="L"?Math.min(_eb.l+_eb.w,_f4+mb.w):pos.x),_f7=(_ee.charAt(0)=="T"?Math.min(_eb.t+_eb.h,_f5+mb.h):pos.y),_f8=_f6-_f4,_f9=_f7-_f5,_fa=(mb.w-_f8)+(mb.h-_f9);if(_ec==null||_fa<_ec.overflow){_ec={corner:_ee,aroundCorner:_ed.aroundCorner,x:_f4,y:_f5,w:_f8,h:_f9,overflow:_fa};}return !_fa;});_e8.style.left=_ec.x+"px";_e8.style.top=_ec.y+"px";if(_ec.overflow&&_ea){_ea(_e8,_ec.aroundCorner,_ec.corner);}return _ec;};dijit.placeOnScreenAroundNode=function(_fb,_fc,_fd,_fe){_fc=dojo.byId(_fc);var _ff=_fc.style.display;_fc.style.display="";var _100=_fc.offsetWidth;var _101=_fc.offsetHeight;var _102=dojo.coords(_fc,true);_fc.style.display=_ff;return dijit._placeOnScreenAroundRect(_fb,_102.x,_102.y,_100,_101,_fd,_fe);};dijit.placeOnScreenAroundRectangle=function(node,_104,_105,_106){return dijit._placeOnScreenAroundRect(node,_104.x,_104.y,_104.width,_104.height,_105,_106);};dijit._placeOnScreenAroundRect=function(node,x,y,_10a,_10b,_10c,_10d){var _10e=[];for(var _10f in _10c){_10e.push({aroundCorner:_10f,corner:_10c[_10f],pos:{x:x+(_10f.charAt(1)=="L"?0:_10a),y:y+(_10f.charAt(0)=="T"?0:_10b)}});}return dijit._place(node,_10e,_10d);};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,_115,_116,_117){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 _11a=[],_11b=1000,_11c=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 _120=args.popup,_121=args.orient||{"BL":"TL","TL":"BL"},_122=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_11c++);var _124=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_11b+_11a.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_124,"presentation");_124.style.left=_124.style.top="0px";if(args.parent){_124.dijitPopupParent=args.parent.id;}var s=_120.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_124.appendChild(_120.domNode);var _126=new dijit.BackgroundIframe(_124);var best=_122?dijit.placeOnScreenAroundElement(_124,_122,_121,_120.orient?dojo.hitch(_120,"orient"):null):dijit.placeOnScreen(_124,args,_121=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_124.style.visibility="visible";var _128=[];var _129=function(){for(var pi=_11a.length-1;pi>0&&_11a[pi].parent===_11a[pi-1].widget;pi--){}return _11a[pi];};_128.push(dojo.connect(_124,"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 _12c=_129();if(_12c&&_12c.onCancel){_12c.onCancel();}}}}));if(_120.onCancel){_128.push(dojo.connect(_120,"onCancel",null,args.onCancel));}_128.push(dojo.connect(_120,_120.onExecute?"onExecute":"onChange",null,function(){var _12d=_129();if(_12d&&_12d.onExecute){_12d.onExecute();}}));_11a.push({wrapper:_124,iframe:_126,widget:_120,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_128});if(_120.onOpen){_120.onOpen(best);}return best;};this.close=function(_12e){while(dojo.some(_11a,function(elem){return elem.widget==_12e;})){var top=_11a.pop(),_131=top.wrapper,_132=top.iframe,_133=top.widget,_134=top.onClose;if(_133.onClose){_133.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_133||!_133.domNode){return;}this.prepare(_133.domNode);_132.destroy();dojo.destroy(_131);if(_134){_134();}}};}();dijit._frames=new function(){var _135=[];this.pop=function(){var _136;if(_135.length){_136=_135.pop();_136.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\");'>";_136=dojo.doc.createElement(html);}else{_136=dojo.create("iframe");_136.src="javascript:\"\"";_136.className="dijitBackgroundIframe";}_136.tabIndex=-1;dojo.body().appendChild(_136);}return _136;};this.push=function(_139){_139.style.display="none";if(dojo.isIE){_139.style.removeExpression("width");_139.style.removeExpression("height");}_135.push(_139);};}();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 _13b=dijit._frames.pop();node.appendChild(_13b);if(dojo.isIE){_13b.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_13b.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_13b;}};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 _141=dojo.isIE>=8&&!_142;var rtl=!ltr&&!_141;var _144=body;var _142=doc.compatMode=="BackCompat";if(_142){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{_144=html;}html._offsetHeight=html.clientHeight;html._offsetWidth=html.clientWidth;}function _145(_146){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_142))?false:(dojo.style(_146,"position").toLowerCase()=="fixed"));};function _148(_149){var _14a=_149.parentNode;var _14b=_149.offsetParent;if(_14b==null||_145(_149)){_14b=html;_14a=(_149==body)?html:null;}_149._offsetParent=_14b;_149._parent=_14a;var bp=dojo._getBorderExtents(_149);_149._borderStart={H:(_141&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_149._borderSize={H:bp.w,V:bp.h};_149._scrolledAmount={H:_149.scrollLeft,V:_149.scrollTop};_149._offsetSize={H:_149._offsetWidth||_149.offsetWidth,V:_149._offsetHeight||_149.offsetHeight};_149._offsetStart={H:(_141&&!ltr)?_14b.clientWidth-_149.offsetLeft-_149._offsetSize.H:_149.offsetLeft,V:_149.offsetTop};_149._clientSize={H:_149._clientWidth||_149.clientWidth,V:_149._clientHeight||_149.clientHeight};if(_149!=body&&_149!=html&&_149!=node){for(var dir in _149._offsetSize){var _14e=_149._offsetSize[dir]-_149._clientSize[dir]-_149._borderSize[dir];var _14f=_149._clientSize[dir]>0&&_14e>0;if(_14f){_149._offsetSize[dir]-=_14e;if(dojo.isIE&&rtl&&dir=="H"){_149._offsetStart[dir]+=_14e;}}}}};var _150=node;while(_150!=null){if(_145(_150)){node.scrollIntoView(false);return;}_148(_150);_150=_150._parent;}if(dojo.isIE&&node._parent){var _151=node._offsetParent;node._offsetStart.H+=_151._borderStart.H;node._offsetStart.V+=_151._borderStart.V;}if(dojo.isIE>=7&&_144==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){var _152=html.scrollWidth-html._offsetSize.H;if(_152>0){body._offsetStart.H=-_152;}}if(dojo.isIE<=6&&!_142){html._offsetSize.H+=html._borderSize.H;html._offsetSize.V+=html._borderSize.V;}if(rtl&&body._offsetStart&&_144==html&&html._scrolledAmount){var ofs=body._offsetStart.H;if(ofs<0){html._scrolledAmount.H+=ofs;body._offsetStart.H=0;}}_150=node;while(_150){var _154=_150._parent;if(!_154){break;}if(_154.tagName=="TD"){var _155=_154._parent._parent._parent;if(_154!=_150._offsetParent&&_154._offsetParent!=_150._offsetParent){_154=_155;}}var _156=_150._offsetParent==_154;for(var dir in _150._offsetStart){var _158=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_154!=html)&&(_154!=body)&&(dojo.isIE||dojo.isWebKit)&&_154._clientSize.H>0&&_154.scrollWidth>_154._clientSize.H){var _159=_154.scrollWidth-_154._clientSize.H;if(_159>0){_154._scrolledAmount.H-=_159;}}if(_154._offsetParent.tagName=="TABLE"){if(dojo.isIE){_154._offsetStart[dir]-=_154._offsetParent._borderStart[dir];_154._borderStart[dir]=_154._borderSize[dir]=0;}else{_154._offsetStart[dir]+=_154._offsetParent._borderStart[dir];}}if(dojo.isIE){_154._offsetStart[dir]+=_154._offsetParent._borderStart[dir];}var _15a=_150._offsetStart[dir]-_154._scrolledAmount[dir]-(_156?0:_154._offsetStart[dir])-_154._borderStart[dir];var _15b=_15a+_150._offsetSize[dir]-_154._offsetSize[dir]+_154._borderSize[dir];var _15c=(dir=="H")?"scrollLeft":"scrollTop";var _15d=dir=="H"&&rtl;var _15e=_15d?-_15b:_15a;var _15f=_15d?-_15a:_15b;var _160=(_15e*_15f<=0)?0:Math[(_15e<0)?"max":"min"](_15e,_15f);if(_160!=0){var _161=_154[_15c];_154[_15c]+=(_15d)?-_160:_160;var _162=_154[_15c]-_161;}if(_156){_150._offsetStart[dir]+=_154._offsetStart[dir];}_150._offsetStart[dir]-=_154[_15c];}_150._parent=_154._parent;_150._offsetParent=_154._offsetParent;}_154=node;var next;while(_154&&_154.removeAttribute){next=_154.parentNode;_154.removeAttribute("_offsetParent");_154.removeAttribute("_parent");_154=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,_167=d.isOpera,maj=Math.floor,ff=d.isFF,_16a=d.boxModel.replace(/-/,""),_16b={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_167,dj_opera8:maj(_167)==8,dj_opera9:maj(_167)==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};_16b["dj_"+_16a]=true;for(var p in _16b){if(_16b[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 _16b){if(_16b[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,_16f,node,_171,obj,_173,_174){if(obj!=this._obj){this.stop();this._initialDelay=_174||500;this._subsequentDelay=_173||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_16f,_171);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,_176,_177,_178,_179,_17a){if(_176.keyCode){_176.charOrCode=_176.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_176.charCode){_176.charOrCode=String.fromCharCode(_176.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==_176.charOrCode&&(_176.ctrlKey===undefined||_176.ctrlKey==evt.ctrlKey)&&(_176.altKey===undefined||_176.altKey==evt.ctrlKey)&&(_176.shiftKey===undefined||_176.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_176,_177,node,_178,_176,_179,_17a);}else{if(dijit.typematic._obj==_176){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_176){dijit.typematic.stop();}})];},addMouseListener:function(node,_17e,_17f,_180,_181){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_17e,node,_17f,node,_180,_181);}),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,_17e,node,_17f,node,_180,_181);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_188,_189,_18a,_18b,_18c,_18d,_18e){return this.addKeyListener(_189,_18a,_18b,_18c,_18d,_18e).concat(this.addMouseListener(_188,_18b,_18c,_18d,_18e));}};}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 _191=cs.backgroundImage;var _192=(cs.borderTopColor==cs.borderRightColor)||(_191!=null&&(_191=="none"||_191=="url(invalid-url:)"));dojo[_192?"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 _195=this.getWaiRole(elem);return role?(_195.indexOf(role)>-1):(_195.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _199=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_199)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_199+" ").indexOf(" "+role+" ")<0){var _19a=dojo.trim(_199.replace(this._XhtmlRoles,""));var _19b=dojo.trim(_199.replace(_19a,""));dojo.attr(elem,"role",_19b+(_19b?" ":"")+role);}}},removeWaiRole:function(elem,role){var _19e=dojo.attr(elem,"role");if(!_19e){return;}if(role){var _19f=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_19e+" ").replace(" "+_19f+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1a2){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1a2);}return elem.hasAttribute?elem.hasAttribute("aria-"+_1a2):!!elem.getAttribute("aria-"+_1a2);},getWaiState:function(elem,_1a4){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1a4);}return elem.getAttribute("aria-"+_1a4)||"";},setWaiState:function(elem,_1a6,_1a7){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_1a6,_1a7);}else{elem.setAttribute("aria-"+_1a6,_1a7);}},removeWaiState:function(elem,_1a9){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_1a9);}else{elem.removeAttribute("aria-"+_1a9);}}});}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(_1aa,_1ab){if(_1aa&&dojo.isFunction(_1aa._onConnect)){_1aa._onConnect(_1ab);}});dijit._connectOnUseEventHandler=function(_1ac){};(function(){var _1ad={};var _1ae=function(dc){if(!_1ad[dc]){var r=[];var _1b1;var _1b2=dojo.getObject(dc).prototype;for(var _1b3 in _1b2){if(dojo.isFunction(_1b2[_1b3])&&(_1b1=_1b3.match(/^_set([a-zA-Z]*)Attr$/))&&_1b1[1]){r.push(_1b1[1].charAt(0).toLowerCase()+_1b1[1].substr(1));}}_1ad[dc]=r;}return _1ad[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(_1b4,_1b5){this.create(_1b4,_1b5);},create:function(_1b6,_1b7){this.srcNodeRef=dojo.byId(_1b7);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(_1b6){this.params=_1b6;dojo.mixin(this,_1b6);}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 _1b9=this.srcNodeRef;if(_1b9&&_1b9.parentNode){_1b9.parentNode.replaceChild(this.domNode,_1b9);}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 _1ba=function(attr,_1bc){if((_1bc.params&&attr in _1bc.params)||_1bc[attr]){_1bc.attr(attr,_1bc[attr]);}};for(var attr in this.attributeMap){_1ba(attr,this);}dojo.forEach(_1ae(this.declaredClass),function(a){if(!(a in this.attributeMap)){_1ba(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_1bf){this.destroyDescendants(_1bf);this.destroy(_1bf);},destroy:function(_1c0){this.uninitialize();dojo.forEach(this._connects,function(_1c1){dojo.forEach(_1c1,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_1c0);dijit.registry.remove(this.id);},destroyRendering:function(_1c3){if(this.bgIframe){this.bgIframe.destroy(_1c3);delete this.bgIframe;}if(this.domNode){if(_1c3){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1c3){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1c4){dojo.forEach(this.getChildren(),function(_1c5){if(_1c5.destroyRecursive){_1c5.destroyRecursive(_1c4);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_1c7){if(_1c7 in this._deferredConnects){var _1c8=this[this._deferredConnects[_1c7]||"domNode"];this.connect(_1c8,_1c7.toLowerCase(),_1c7);delete this._deferredConnects[_1c7];}},_setClassAttr:function(_1c9){var _1ca=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_1ca,this["class"]);this["class"]=_1c9;dojo.addClass(_1ca,_1c9);},_setStyleAttr:function(_1cb){var _1cc=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_1cb)){dojo.style(_1cc,_1cb);}else{if(_1cc.style.cssText){_1cc.style.cssText+="; "+_1cb;}else{_1cc.style.cssText=_1cb;}}this["style"]=_1cb;},setAttribute:function(attr,_1ce){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_1ce);},_attrToDom:function(attr,_1d0){var _1d1=this.attributeMap[attr];dojo.forEach(dojo.isArray(_1d1)?_1d1:[_1d1],function(_1d2){var _1d3=this[_1d2.node||_1d2||"domNode"];var type=_1d2.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_1d0)){_1d0=dojo.hitch(this,_1d0);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_1d3,attr,_1d0);break;case "innerHTML":_1d3.innerHTML=_1d0;break;case "class":dojo.removeClass(_1d3,this[attr]);dojo.addClass(_1d3,_1d0);break;}},this);this[attr]=_1d0;},attr:function(name,_1d6){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _1d9=this._getAttrNames(name);if(args==2){if(this[_1d9.s]){return this[_1d9.s](_1d6)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_1d6);}this[name]=_1d6;}return this;}else{if(this[_1d9.g]){return this[_1d9.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,_1df,_1e0){var d=dojo;var dc=dojo.connect;var _1e3=[];if(_1df=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_1e0);_1e3.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){_1e3.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_1df="onclick";}_1e3.push(dc(obj,_1df,this,_1e0));this._connects.push(_1e3);return _1e3;},disconnect:function(_1e8){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1e8){dojo.forEach(_1e8,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(_1ea,_1eb){if(_1ea["declaredClass"]&&_1ea["addChild"]){_1ea.addChild(this,_1eb);}else{dojo.place(this.domNode,_1ea,_1eb);}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(_1f5,map,_1f7,_1f8){_1f8=_1f8||dojo.global;_1f7=(!_1f7)?function(v){return v;}:dojo.hitch(_1f8,_1f7);return _1f5.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1fa,key,_1fc){var _1fd=dojo.getObject(key,false,map);if(_1fc){_1fd=dojo.getObject(_1fc,false,_1f8).call(_1f8,_1fd,key);}return _1f7(_1fd,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(_200,_201){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 _202=dojo.date.stamp._isoRegExp.exec(_200);var _203=null;if(_202){_202.shift();if(_202[1]){_202[1]--;}if(_202[6]){_202[6]*=1000;}if(_201){_201=new Date(_201);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _201["get"+prop]();}).forEach(function(_205,_206){if(_202[_206]===undefined){_202[_206]=_205;}});}_203=new Date(_202[0]||1970,_202[1]||0,_202[2]||1,_202[3]||0,_202[4]||0,_202[5]||0,_202[6]||0);var _207=0;var _208=_202[7]&&_202[7].charAt(0);if(_208!="Z"){_207=((_202[8]||0)*60)+(Number(_202[9])||0);if(_208!="-"){_207*=-1;}}if(_208){_207-=_203.getTimezoneOffset();}if(_207){_203.setTime(_203.getTime()+_207*60000);}}return _203;};dojo.date.stamp.toISOString=function(_209,_20a){var _=function(n){return (n<10)?"0"+n:n;};_20a=_20a||{};var _20d=[];var _20e=_20a.zulu?"getUTC":"get";var date="";if(_20a.selector!="time"){var year=_209[_20e+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_209[_20e+"Month"]()+1),_(_209[_20e+"Date"]())].join("-");}_20d.push(date);if(_20a.selector!="date"){var time=[_(_209[_20e+"Hours"]()),_(_209[_20e+"Minutes"]()),_(_209[_20e+"Seconds"]())].join(":");var _212=_209[_20e+"Milliseconds"]();if(_20a.milliseconds){time+="."+(_212<100?"0":"")+_(_212);}if(_20a.zulu){time+="Z";}else{if(_20a.selector!="time"){var _213=_209.getTimezoneOffset();var _214=Math.abs(_213);time+=(_213>0?"-":"+")+_(Math.floor(_214/60))+":"+_(_214%60);}}_20d.push(time);}return _20d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _216=d._scopeName+"Type";var qry="["+_216+"]";var _218=0,_219={};var _21a=function(_21b,_21c){var nso=_21c||_219;if(dojo.isIE){var cn=_21b["__dojoNameCache"];if(cn&&nso[cn]===_21b){return cn;}}var name;do{name="__"+_218++;}while(name in nso);nso[name]=_21b;return name;};function _220(_221){if(d.isString(_221)){return "string";}if(typeof _221=="number"){return "number";}if(typeof _221=="boolean"){return "boolean";}if(d.isFunction(_221)){return "function";}if(d.isArray(_221)){return "array";}if(_221 instanceof Date){return "date";}if(_221 instanceof d._Url){return "url";}return "object";};function _222(_223,type){switch(type){case "string":return _223;case "number":return _223.length?Number(_223):NaN;case "boolean":return typeof _223=="boolean"?_223:!(_223.toLowerCase()=="false");case "function":if(d.isFunction(_223)){_223=_223.toString();_223=d.trim(_223.substring(_223.indexOf("{")+1,_223.length-1));}try{if(_223.search(/[^\w\.]+/i)!=-1){_223=_21a(new Function(_223),this);}return d.getObject(_223,false);}catch(e){return new Function();}case "array":return _223?_223.split(/\s*,\s*/):[];case "date":switch(_223){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_223);}case "url":return d.baseUrl+_223;default:return d.fromJson(_223);}};var _225={};function _226(_227){if(!_225[_227]){var cls=d.getObject(_227);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_227+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _229=cls.prototype;var _22a={},_22b={};for(var name in _229){if(name.charAt(0)=="_"){continue;}if(name in _22b){continue;}var _22d=_229[name];_22a[name]=_220(_22d);}_225[_227]={cls:cls,params:_22a};}return _225[_227];};this._functionFromScript=function(_22e){var _22f="";var _230="";var _231=_22e.getAttribute("args");if(_231){d.forEach(_231.split(/\s*,\s*/),function(part,idx){_22f+="var "+part+" = arguments["+idx+"]; ";});}var _234=_22e.getAttribute("with");if(_234&&_234.length){d.forEach(_234.split(/\s*,\s*/),function(part){_22f+="with("+part+"){";_230+="}";});}return new Function(_22f+_22e.innerHTML+_230);};this.instantiate=function(_236,_237){var _238=[];_237=_237||{};d.forEach(_236,function(node){if(!node){return;}var type=_216 in _237?_237[_216]:node.getAttribute(_216);if(!type||!type.length){return;}var _23b=_226(type),_23c=_23b.cls,ps=_23c._noScript||_23c.prototype._noScript;var _23e={},_23f=node.attributes;for(var name in _23b.params){var item=name in _237?{value:_237[name],specified:true}:_23f.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _242=item.value;switch(name){case "class":_242="className" in _237?_237.className:node.className;break;case "style":_242="style" in _237?_237.style:(node.style&&node.style.cssText);}var _243=_23b.params[name];if(typeof _242=="string"){_23e[name]=_222(_242,_243);}else{_23e[name]=_242;}}if(!ps){var _244=[],_245=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_246){var _247=_246.getAttribute("event"),type=_246.getAttribute("type"),nf=d.parser._functionFromScript(_246);if(_247){if(type=="dojo/connect"){_244.push({event:_247,func:nf});}else{_23e[_247]=nf;}}else{_245.push(nf);}});}var _249=_23c["markupFactory"];if(!_249&&_23c["prototype"]){_249=_23c.prototype["markupFactory"];}var _24a=_249?_249(_23e,node,_23c):new _23c(_23e,node);_238.push(_24a);var _24b=node.getAttribute("jsId");if(_24b){d.setObject(_24b,_24a);}if(!ps){d.forEach(_244,function(_24c){d.connect(_24a,_24c.event,null,_24c.func);});d.forEach(_245,function(func){func.call(_24a);});}});d.forEach(_238,function(_24e){if(_24e&&_24e.startup&&!_24e._started&&(!_24e.getParent||!_24e.getParent())){_24e.startup();}});return _238;};this.parse=function(_24f){var list=d.query(qry,_24f);var _251=this.instantiate(list);return _251;};}();(function(){var _252=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,_252);}else{dojo._loaders.unshift(_252);}})();}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 _254=this.declaredClass,_255=this;return dojo.string.substitute(tmpl,this,function(_256,key){if(key.charAt(0)=="!"){_256=dojo.getObject(key.substr(1),false,_255);}if(typeof _256=="undefined"){throw new Error(_254+" template:"+key);}if(_256==null){return "";}return key.charAt(0)=="!"?_256:_256.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _258=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_258)){node=dojo._toDom(this._stringRepl(_258));}else{node=_258.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(_25d){var dest=this.containerNode;if(_25d&&dest){while(_25d.hasChildNodes()){dest.appendChild(_25d.firstChild);}}},_attachTemplateNodes:function(_25f,_260){_260=_260||function(n,p){return n.getAttribute(p);};var _263=dojo.isArray(_25f)?_25f:(_25f.all||_25f.getElementsByTagName("*"));var x=dojo.isArray(_25f)?0:-1;for(;x<_263.length;x++){var _265=(x==-1)?_25f:_263[x];if(this.widgetsInTemplate&&_260(_265,"dojoType")){continue;}var _266=_260(_265,"dojoAttachPoint");if(_266){var _267,_268=_266.split(/\s*,\s*/);while((_267=_268.shift())){if(dojo.isArray(this[_267])){this[_267].push(_265);}else{this[_267]=_265;}}}var _269=_260(_265,"dojoAttachEvent");if(_269){var _26a,_26b=_269.split(/\s*,\s*/);var trim=dojo.trim;while((_26a=_26b.shift())){if(_26a){var _26d=null;if(_26a.indexOf(":")!=-1){var _26e=_26a.split(":");_26a=trim(_26e[0]);_26d=trim(_26e[1]);}else{_26a=trim(_26a);}if(!_26d){_26d=_26a;}this.connect(_265,_26a,_26d);}}}var role=_260(_265,"waiRole");if(role){dijit.setWaiRole(_265,role);}var _270=_260(_265,"waiState");if(_270){dojo.forEach(_270.split(/\s*,\s*/),function(_271){if(_271.indexOf("-")!=-1){var pair=_271.split("-");dijit.setWaiState(_265,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_273,_274,_275){var _276=dijit._Templated._templateCache;var key=_274||_273;var _278=_276[key];if(_278){if(!_278.ownerDocument||_278.ownerDocument==dojo.doc){return _278;}dojo.destroy(_278);}if(!_274){_274=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_273)));}_274=dojo.string.trim(_274);if(_275||_274.match(/\$\{([^\}]+)\}/g)){return (_276[key]=_274);}else{return (_276[key]=dojo._toDom(_274));}};dijit._Templated._sanitizeTemplateString=function(_279){if(_279){_279=_279.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _27a=_279.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_27a){_279=_27a[1];}}else{_279="";}return _279;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _27b=dijit._Templated._templateCache;for(var key in _27b){var _27d=_27b[key];if(!isNaN(_27d.nodeType)){dojo.destroy(_27d);}delete _27b[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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 _280=dijit.byId(id);return _280.isContainer?_280:null;}}return null;},_getSibling:function(_281){var node=this.domNode;do{node=node[_281+"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(_285,_286){var _287=this.containerNode;if(_286&&typeof _286=="number"){var _288=this.getChildren();if(_288&&_288.length>=_286){_287=_288[_286-1].domNode;_286="after";}}dojo.place(_285.domNode,_287,_286);if(this._started&&!_285._started){_285.startup();}},removeChild:function(_289){if(typeof _289=="number"&&_289>0){_289=this.getChildren()[_289];}if(!_289||!_289.domNode){return;}var node=_289.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(_28d){dojo.forEach(this.getChildren(),function(_28e){_28e.destroyRecursive(_28d);});},_getSiblingOfChild:function(_28f,dir){var node=_28f.domNode;var _292=(dir>0?"nextSibling":"previousSibling");do{node=node[_292];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_293){var _294=this.getChildren();for(var i=0,c;c=_294[i];i++){if(c==_293){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(_297){_297.startup();});if(!this.getParent||!this.getParent()){this.resize();this._viewport=dijit.getViewport();this.connect(dojo.global,"onresize",function(){var _298=dijit.getViewport();if(_298.w!=this._viewport.w||_298.h!=this._viewport.h){this._viewport=_298;this.resize();}});}this.inherited(arguments);},resize:function(_299,_29a){var node=this.domNode;if(_299){dojo.marginBox(node,_299);if(_299.t){node.style.top=_299.t+"px";}if(_299.l){node.style.left=_299.l+"px";}}var mb=_29a||{};dojo.mixin(mb,_299||{});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(_2a2){dojo.addClass(_2a2.domNode,this.baseClass+"-child");if(_2a2.baseClass){dojo.addClass(_2a2.domNode,this.baseClass+"-"+_2a2.baseClass);}},addChild:function(_2a3,_2a4){this.inherited(arguments);if(this._started){this._setupChild(_2a3);}},removeChild:function(_2a5){dojo.removeClass(_2a5.domNode,this.baseClass+"-child");if(_2a5.baseClass){dojo.removeClass(_2a5.domNode,this.baseClass+"-"+_2a5.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 _2ab=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_2ae,dim){_2ae.resize?_2ae.resize(dim):dojo.marginBox(_2ae.domNode,dim);dojo.mixin(_2ae,dojo.marginBox(_2ae.domNode));dojo.mixin(_2ae,dim);};dijit.layout.layoutChildren=function(_2b0,dim,_2b2){dim=dojo.mixin({},dim);dojo.addClass(_2b0,"dijitLayoutContainer");_2b2=dojo.filter(_2b2,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_2b2,function(item){return item.layoutAlign=="client";}));dojo.forEach(_2b2,function(_2b5){var elm=_2b5.domNode,pos=_2b5.layoutAlign;var _2b8=elm.style;_2b8.left=dim.l+"px";_2b8.top=dim.t+"px";_2b8.bottom=_2b8.right="auto";dojo.addClass(elm,"dijitAlign"+_2ab(pos));if(pos=="top"||pos=="bottom"){size(_2b5,{w:dim.w});dim.h-=_2b5.h;if(pos=="top"){dim.t+=_2b5.h;}else{_2b8.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_2b5,{h:dim.h});dim.w-=_2b5.w;if(pos=="left"){dim.l+=_2b5.w;}else{_2b8.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_2b5,dim);}}}});};})();}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _2b9=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,_2bd){if(_2bd){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(_2c5,node){dojo.mixin(this,_2c5||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_2b9++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_2c8){if(undefined!==cont){this.content=cont;}if(_2c8){this._mixin(_2c8);}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 _2ca=this.onContentError(e);try{node.innerHTML=_2ca;}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 _2cd=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2cd){cont=_2cd[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(_2cf){var _2d0={},key;for(key in _2cf){if(key in _2d0){continue;}this[key]=_2cf[key];}},_parse:function(){var _2d2=this.node;try{this.parseResults=dojo.parser.parse(_2d2,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_2d5){var _2d6=this["on"+type+"Error"].call(this,err);if(_2d5){console.error(_2d5,err);}else{if(_2d6){dojo.html._setNodeContent(this.node,_2d6,true);}}}});dojo.html.set=function(node,cont,_2d9){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_2d9){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_2d9,{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(_2db,_2dc,_2dd){_2dd=dojo.i18n.normalizeLocale(_2dd);var _2de=_2dd.split("-");var _2df=[_2db,"nls",_2dc].join(".");var _2e0=dojo._loadedModules[_2df];if(_2e0){var _2e1;for(var i=_2de.length;i>0;i--){var loc=_2de.slice(0,i).join("_");if(_2e0[loc]){_2e1=_2e0[loc];break;}}if(!_2e1){_2e1=_2e0.ROOT;}if(_2e1){var _2e4=function(){};_2e4.prototype=_2e1;return new _2e4();}}throw new Error("Bundle not found: "+_2dc+" in "+_2db+" , locale="+_2dd);};dojo.i18n.normalizeLocale=function(_2e5){var _2e6=_2e5?_2e5.toLowerCase():dojo.locale;if(_2e6=="root"){_2e6="ROOT";}return _2e6;};dojo.i18n._requireLocalization=function(_2e7,_2e8,_2e9,_2ea){var _2eb=dojo.i18n.normalizeLocale(_2e9);var _2ec=[_2e7,"nls",_2e8].join(".");var _2ed="";if(_2ea){var _2ee=_2ea.split(",");for(var i=0;i<_2ee.length;i++){if(_2eb["indexOf"](_2ee[i])==0){if(_2ee[i].length>_2ed.length){_2ed=_2ee[i];}}}if(!_2ed){_2ed="ROOT";}}var _2f0=_2ea?_2ed:_2eb;var _2f1=dojo._loadedModules[_2ec];var _2f2=null;if(_2f1){if(dojo.config.localizationComplete&&_2f1._built){return;}var _2f3=_2f0.replace(/-/g,"_");var _2f4=_2ec+"."+_2f3;_2f2=dojo._loadedModules[_2f4];}if(!_2f2){_2f1=dojo["provide"](_2ec);var syms=dojo._getModuleSymbols(_2e7);var _2f6=syms.concat("nls").join("/");var _2f7;dojo.i18n._searchLocalePath(_2f0,_2ea,function(loc){var _2f9=loc.replace(/-/g,"_");var _2fa=_2ec+"."+_2f9;var _2fb=false;if(!dojo._loadedModules[_2fa]){dojo["provide"](_2fa);var _2fc=[_2f6];if(loc!="ROOT"){_2fc.push(loc);}_2fc.push(_2e8);var _2fd=_2fc.join("/")+".js";_2fb=dojo._loadPath(_2fd,null,function(hash){var _2ff=function(){};_2ff.prototype=_2f7;_2f1[_2f9]=new _2ff();for(var j in hash){_2f1[_2f9][j]=hash[j];}});}else{_2fb=true;}if(_2fb&&_2f1[_2f9]){_2f7=_2f1[_2f9];}else{_2f1[_2f9]=_2f7;}if(_2ea){return true;}});}if(_2ea&&_2eb!=_2ed){_2f1[_2eb.replace(/-/g,"_")]=_2f1[_2ed.replace(/-/g,"_")];}};(function(){var _301=dojo.config.extraLocale;if(_301){if(!_301 instanceof Array){_301=[_301];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_305,_306){req(m,b,_305,_306);if(_305){return;}for(var i=0;i<_301.length;i++){req(m,b,_301[i],_306);}};}})();dojo.i18n._searchLocalePath=function(_308,down,_30a){_308=dojo.i18n.normalizeLocale(_308);var _30b=_308.split("-");var _30c=[];for(var i=_30b.length;i>0;i--){_30c.push(_30b.slice(0,i).join("-"));}_30c.push(false);if(down){_30c.reverse();}for(var j=_30c.length-1;j>=0;j--){var loc=_30c[j]||"ROOT";var stop=_30a(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_311,_312){function _313(_314){_314=dojo.i18n.normalizeLocale(_314);dojo.i18n._searchLocalePath(_314,true,function(loc){for(var i=0;i<_312.length;i++){if(_312[i]==loc){dojo["require"](_311+"_"+loc);return true;}}return false;});};_313();var _317=dojo.config.extraLocale||[];for(var i=0;i<_317.length;i++){_313(_317[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 _319=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_319);this.errorMessage=dojo.string.substitute(this.errorMessage,_319);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(_31a){_31a.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 _31b=dojo.query(">",this.containerNode),_31c=_31b.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_31e=dojo.filter(_31c.map(dijit.byNode),function(_31f){return _31f&&_31f.domNode&&_31f.resize;});if(_31b.length==_31c.length&&_31e.length==1){this._singleChild=_31e[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(_324){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 _32b={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_32b,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_32b));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 _330=this._contentSetter;dojo.forEach(this.getChildren(),function(_331){if(_331.destroyRecursive){_331.destroyRecursive();}});if(_330){dojo.forEach(_330.parseResults,function(_332){if(_332.destroyRecursive&&_332.domNode&&_332.domNode.parentNode==dojo.body()){_332.destroyRecursive();}});delete _330.parseResults;}dojo.html._emptyNode(this.containerNode);},_setContent:function(cont,_334){this.destroyDescendants();delete this._singleChild;var _335=this._contentSetter;if(!(_335&&_335 instanceof dojo.html._ContentSetter)){_335=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _337=this.onContentError(e);try{this.containerNode.innerHTML=_337;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _338=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_335,_338);_335.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_334){dojo.forEach(this.getChildren(),function(_339){_339.startup();});if(this.doLayout){this._checkIfSingleChild();}this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_33c){var _33d=this["on"+type+"Error"].call(this,err);if(_33c){console.error(_33c,err);}else{if(_33d){this._setContent(_33d,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(_33f){if(_33f.resize){_33f.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_341){},onDownloadError:function(_342){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:"<div class=\"${baseClass}\">\r\n\t<div dojoAttachEvent=\"onclick:toggle, onkeypress:_onTitleKey, onfocus:_handleFocus, onblur:_handleFocus, onmouseenter:_onTitleEnter, onmouseleave:_onTitleLeave\" tabindex=\"0\"\r\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode,focusNode\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\r\n\t\t><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\r\n\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"}}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _343=this.hideNode,_344=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_343.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_343.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}},_setContentAttr:function(_346){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_347){if(_347&&_347.status()=="playing"){_347.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;this._onShow();this._setCss();},_setCss:function(){var _349=["dijitClosed","dijitOpen"];var _34a=this.open;var node=this.titleBarNode||this.focusNode;dojo.removeClass(node,_349[!_34a+0]);node.className+=" "+_349[_34a+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){this.toggle();}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleEnter:function(){dojo.addClass(this.focusNode,"dijitTitlePaneTitle-hover");},_onTitleLeave:function(){dojo.removeClass(this.focusNode,"dijitTitlePaneTitle-hover");},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_34e){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use attr('title', ...) instead.","","2.0");this.titleNode.innerHTML=_34e;}});}dojo.provide("jazel.widget.TitlePane");dojo.require("dijit.TitlePane");dojo.declare("jazel.widget.TitlePane",[dijit.TitlePane],{locked:false,startup:function(){this.inherited(arguments);dojo.removeAttr(this.titleBarNode,"tabIndex");dojo.removeAttr(this.containerNode,"tabIndex");if(this.locked){dojo.style(this.arrowNode,"display","none");dojo.addClass(this.focusNode,"dijitTitlePaneTitle-locked");}else{this.connect(this.focusNode,"onmouseover",function(_34f){dojo.addClass(this.arrowNode,"dijitArrowNodeHover");});this.connect(this.focusNode,"onmouseout",function(_350){dojo.removeClass(this.arrowNode,"dijitArrowNodeHover");});this.connect(this._wipeIn,"onAnimate","onAnimateIn");this.connect(this._wipeOut,"onAnimate","onAnimateOut");}},toggle:function(e){if(!this.locked){this.inherited(arguments);}},onAnimateIn:function(e){},onAnimateOut:function(e){}});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 _36d=n.scrollLeft,_36e=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_36d!=n.scrollLeft||_36e!=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(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_374=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),_374];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(node,_383){this.node=dojo.byId(node);if(!_383){_383={};}this.handle=_383.handle?dojo.byId(_383.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_383.delay>0?_383.delay:0;this.skip=_383.skip;this.mover=_383.mover?_383.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(_384,node){return new dojo.dnd.Moveable(node,_384);},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(_38c){dojo.publish("/dnd/move/start",[_38c]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_38d){dojo.publish("/dnd/move/stop",[_38d]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_38e){},onMove:function(_38f,_390){this.onMoving(_38f,_390);var s=_38f.node.style;s.left=_390.l+"px";s.top=_390.t+"px";this.onMoved(_38f,_390);},onMoving:function(_392,_393){},onMoved:function(_394,_395){}});}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(_396,node){return new dojo.dnd.move.constrainedMoveable(node,_396);},constructor:function(node,_399){if(!_399){_399={};}this.constraints=_399.constraints;this.within=_399.within;},onFirstMove:function(_39a){var c=this.constraintBox=this.constraints.call(this,_39a);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_39a.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_39d,_39e){var c=this.constraintBox,s=_39d.node.style;s.left=(_39e.l<c.l?c.l:c.r<_39e.l?c.r:_39e.l)+"px";s.top=(_39e.t<c.t?c.t:c.b<_39e.t?c.b:_39e.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_3a1,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_3a1);},constructor:function(node,_3a4){var box=_3a4&&_3a4.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_3a6,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_3a6);},constructor:function(node,_3a9){var area=_3a9&&_3a9.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="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(area=="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(area=="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,_3b0){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _3b1=function(node,e,_3b4){dojo.dnd.Mover.call(this,node,e,_3b4);};dojo.extend(_3b1,dojo.dnd.Mover.prototype);dojo.extend(_3b1,{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(_3b0){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _3b1;};dojo.dnd.move.boxConstrainedMover=function(box,_3bd){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_3bd);};dojo.dnd.move.parentConstrainedMover=function(area,_3bf){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(area=="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(area=="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(area=="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,_3bf);};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 _3c5=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_3c7){if(!_3c7){_3c7={};}if(_3c7.timeout&&typeof _3c7.timeout=="number"&&_3c7.timeout>=0){this.timeout=_3c7.timeout;}},markupFactory:function(_3c8,node){return new dojo.dnd.TimedMoveable(node,_3c8);},onMoveStop:function(_3ca){if(_3ca._timer){clearTimeout(_3ca._timer);_3c5.call(this,_3ca,_3ca._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_3cb,_3cc){_3cb._leftTop=_3cc;if(!_3cb._timer){var _t=this;_3cb._timer=setTimeout(function(){_3cb._timer=null;_3c5.call(_t,_3cb,_3cb._leftTop);},this.timeout);}}});})();}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(_3ce){if(_3ce.reset){_3ce.reset();}});},validate:function(){var _3cf=false;return dojo.every(dojo.map(this.getDescendants(),function(_3d0){_3d0._hasBeenBlurred=true;var _3d1=_3d0.disabled||!_3d0.validate||_3d0.validate();if(!_3d1&&!_3cf){dijit.scrollIntoView(_3d0.containerNode||_3d0.domNode);_3d0.focus();_3cf=true;}return _3d1;}),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(_3d6){if(!_3d6.name){return;}var _3d7=map[_3d6.name]||(map[_3d6.name]=[]);_3d7.push(_3d6);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _3d9=map[name],_3da=dojo.getObject(name,false,obj);if(_3da===undefined){continue;}if(!dojo.isArray(_3da)){_3da=[_3da];}if(typeof _3d9[0].checked=="boolean"){dojo.forEach(_3d9,function(w,i){w.attr("value",dojo.indexOf(_3da,w.value)!=-1);});}else{if(_3d9[0]._multiValue){_3d9[0].attr("value",_3da);}else{dojo.forEach(_3d9,function(w,i){w.attr("value",_3da[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(_3e0){var name=_3e0.name;if(!name||_3e0.disabled){return;}var _3e2=_3e0.attr("value");if(typeof _3e0.checked=="boolean"){if(/Radio/.test(_3e0.declaredClass)){if(_3e2!==false){dojo.setObject(name,_3e2,obj);}else{_3e2=dojo.getObject(name,false,obj);if(_3e2===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_3e2!==false){ary.push(_3e2);}}}else{dojo.setObject(name,_3e2,obj);}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_3e4){return !_3e4.disabled&&_3e4.isValid&&!_3e4.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_3e5){},_widgetChange:function(_3e6){var _3e7=this._lastValidState;if(!_3e6||this._lastValidState===undefined){_3e7=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_3e7;}}else{if(_3e6.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_3e6);},this);if(!_3e6.isValid()&&!_3e6.attr("disabled")){this._invalidWidgets.push(_3e6);}_3e7=(this._invalidWidgets.length===0);}}if(_3e7!==this._lastValidState){this._lastValidState=_3e7;this.onValidStateChange(_3e7);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _3e9=this;var _3ea=this._changeConnections=[];dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_3ec){_3ea.push(_3e9.connect(_3ec,"validate",dojo.hitch(_3e9,"_widgetChange",_3ec)));_3ea.push(_3e9.connect(_3ec,"_setDisabledAttr",dojo.hitch(_3e9,"_widgetChange",_3ec)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}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(_3ed){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_3ee){var _3ef=dijit._getTabNavigable(dojo.byId(_3ee));this._firstFocusItem=_3ef.lowest||_3ef.first||_3ee;this._lastFocusItem=_3ef.last||_3ef.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_3ee,"tabindex","0");this._firstFocusItem=_3ee;}}});}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(_3f1){this.node.className="dijitDialogUnderlay "+_3f1;},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 _3f4=dijit.getViewport();os.top=_3f4.t+"px";os.left=_3f4.l+"px";is.width=_3f4.w+"px";is.height=_3f4.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(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});}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,_3f6,_3f7){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_3f7.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3f7.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 _3fd=(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(!_3fd){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_3fd){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 _3fe=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_3fe);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 _403={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};var _405=dijit._underlay;if(!_405){_405=dijit._underlay=new dijit.DialogUnderlay(_403);}this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){_405.attr(_403);_405.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 _406=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_406=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_406=true;this._fadeOut.stop();}if(this.open||_406){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _408=dijit.getViewport();if(mb.w>=_408.w||mb.h>=_408.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_408.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_408.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _40a=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_40a.l+(p?p.l:(_40a.w-mb.w)/2))+"px",top:Math.floor(_40a.t+(p?p.t:(_40a.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 _410=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_410){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_410){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 _411=dijit.getViewport();if(!this._oldViewport||_411.h!=this._oldViewport.h||_411.w!=this._oldViewport.w){this.layout();this._oldViewport=_411;}}));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");}});}dojo.provide("jazel.widget.FormPane");dojo.require("dijit.Dialog");dojo.declare("jazel.widget.FormPane",null,{node:null,idName:null,formNode:null,actionString:null,timeoutMsecs:null,dialog:null,dialogNode:null,closeHandle:null,hideHandle:null,useAjax:false,constructor:function(id){this.node=dojo.byId(id);this.setTimeout(60);},setDialog:function(_413,_414){this.idName=_413;this.dialog=new dijit.Dialog({"class":_414},dojo.byId(_413));this.dialogNode=this.dialog.domNode;this.formNode=dojo.byId(_413+"-formnode");if(this.closeHandle!=null){dojo.disconnect(this.closeHandle);}this.closeHandle=dojo.connect(dojo.byId(_413+"-closebutton"),"click",this,function(){this.dialog.hide();});if(this.hideHandle!=null){dojo.disconnect(this.hideHandle);}var _415=this;},setSubmitAction:function(_416,_417){this.actionString=_416;this.useAjax=_417;},setTimeout:function(_418){this.timeoutMsecs=_418*1000;},doSubmit:function(){if(this.useAjax){var pane=this;var _41a={form:this.formNode,url:this.actionString,timeout:this.timeoutMsecs,handleAs:"json",load:function(data){pane.onSuccess(data);},error:function(_41c){pane.onError(_41c);}};dojo.xhrPost(_41a);}else{this.formNode.action=this.actionString;this.formNode.method="post";this.formNode.submit();}},onSuccess:function(data){},onError:function(_41e){}});dojo.provide("jazel.widget.VehicleFormPane");dojo.require("jazel.widget.FormPane");dojo.declare("jazel.widget.VehicleFormPane",jazel.widget.FormPane,{yearFieldName:null,makeFieldName:null,modelFieldName:null,surveyRequiredFieldName:null,surveyFieldName:null,messagesNode:null,setDialog:function(_41f,_420){this.inherited(arguments);this.messagesNode=dojo.byId(_41f+"-formmessages");dojo.connect(dojo.byId(_41f+"-cancelbutton"),"click",this,function(){this.dialog.hide();});dojo.connect(dojo.byId(_41f+"-sendbutton"),"click",this,function(){this.doSubmit();});},initializeVehicleForm:function(_421,_422,_423,_424,_425){this.yearFieldName=_421;this.makeFieldName=_422;this.modelFieldName=_423;this.surveyRequiredFieldName=_424;this.surveyFieldName=_425;var form=dojo.byId(this.idName+"-formnode");var _427=(form!=null)?form[_422]:null;if(_427!=null){dojo.connect(_427,"change",this,function(_428){this.prepareModelDropDown(_428.currentTarget.value);});this.prepareModelDropDown(_427.value);}},prepareModelDropDown:function(make){var form=dojo.byId(this.idName+"-formnode");var _42b=(form!=null)?form[this.modelFieldName]:null;if(_42b!=null){jazel.util.Misc.setModelDropDownFromPutaside(this.node,make,_42b);}},openDialog:function(){dojo.addClass(this.messagesNode,"hidden-node");this.dialog.layout();this.dialog.show();},doSubmit:function(){this.normalizeFormData();var _42c=this.validateForm();if(_42c.length==0){this.inherited(arguments);}else{dojo.query(".form-message",this.messagesNode).addClass("hidden-node");dojo.removeClass(this.messagesNode,"hidden-node");var _42d=null;dojo.forEach(_42c,function(item){dojo.query(".form-message-"+item.name,this.messagesNode).removeClass("hidden-node");if(item.type=="class"){_42d=this.getFieldNodeC(item.value);}else{_42d=this.getFieldNode(item.value);}_42d.focus();},this);this.dialog.layout();}},getFieldNode:function(name){return this.formNode[name];},getFieldNodeC:function(name){return dojo.query(".formarea [class='"+name+"']",this.dialogNode)[0];},normalizeFormData:function(){},validateForm:function(){var _431=[];if(this.getFieldNode(this.yearFieldName).value==""){_431.unshift({name:"missing",type:"name",value:this.yearFieldName});}if(this.getFieldNode(this.makeFieldName).value==""){_431.unshift({name:"missing",type:"name",value:this.makeFieldName});}if(this.getFieldNode(this.modelFieldName).value==""){_431.unshift({name:"missing",type:"name",value:this.modelFieldName});}if(this.surveyRequiredFieldName!=null&&this.getFieldNode(this.surveyRequiredFieldName)!=null&&this.getFieldNode(this.surveyRequiredFieldName).value=="yes"){if(this.getFieldNode(this.surveyFieldName).value==""){_431.unshift({name:"missing",type:"name",value:this.surveyFieldName});}}return _431;},checkFormat:function(obj){var _433=true;switch(obj.name){case "email":_433=jazel.widget.VehicleFormPane.reEmail.test(obj.value);break;case "phonenumber":_433=jazel.widget.VehicleFormPane.rePhoneNumber.test(obj.value);break;}return _433;}});jazel.widget.VehicleFormPane.rePhoneNumber=new RegExp(/^[1-9]\d{2}\-[1-9]\d{2}\-\d{4}/);jazel.widget.VehicleFormPane.reEmail=new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/);dojo.i18n._preloadLocalizations("dojo.nls.jazeldojo-jazel",["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"]);
