/*
	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("dijit.dijit");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 _1=dojo.doc;if(_1.selection&&!dojo.isOpera){var s=_1.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _3=dojo.global;var _4=_3.getSelection();if(dojo.isString(_4)){return !_4;}else{return !_4||_4.isCollapsed||!_4.toString();}}},getBookmark:function(){var _5,_6=dojo.doc.selection;if(_6&&!dojo.isOpera){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){if(_7.length){_5=[];var i=0,_9=_7.length;while(i<_9){_5.push(_7.item(i++));}}else{_5=null;}}else{_5=_7.getBookmark();}}else{if(window.getSelection){_6=dojo.global.getSelection();if(_6){_7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_a){var _b=dojo.doc;if(_b.selection&&!dojo.isOpera){var _c;if(dojo.isArray(_a)){_c=_b.body.createControlRange();dojo.forEach(_a,function(n){_c.addElement(n);});}else{_c=_b.selection.createRange();_c.moveToBookmark(_a);}_c.select();}else{var _e=dojo.global.getSelection&&dojo.global.getSelection();if(_e&&_e.removeAllRanges){_e.removeAllRanges();_e.addRange(_a);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_f,_10){return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};},focus:function(_11){if(!_11){return;}var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;if(_12){var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;if(_15&&_15.focus){try{_15.focus();}catch(e){}}dijit._onFocusNode(_12);}if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){if(_14){_14.focus();}try{dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);}catch(e){}}},_activeStack:[],registerIframe:function(_16){dijit.registerWin(_16.contentWindow,_16);},registerWin:function(_17,_18){dojo.connect(_17.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_18||evt.target||evt.srcElement);});var doc=_17.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_18||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_18||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_18||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_18||evt.target);},true);}}doc=null;},_onBlurNode:function(_1f){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(_20){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _21=[];try{while(_20){if(_20.dijitPopupParent){_20=dijit.byId(_20.dijitPopupParent).domNode;}else{if(_20.tagName&&_20.tagName.toLowerCase()=="body"){if(_20===dojo.body()){break;}_20=dijit.getDocumentWindow(_20.ownerDocument).frameElement;}else{var id=_20.getAttribute&&_20.getAttribute("widgetId");if(id){_21.unshift(id);}_20=_20.parentNode;}}}}catch(e){}dijit._setStack(_21);},_onFocusNode:function(_23){if(!_23){return;}if(_23.nodeType==9){return;}dijit._onTouchNode(_23);if(_23==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_23;dojo.publish("focusNode",[_23]);},_setStack:function(_24){var _25=dijit._activeStack;dijit._activeStack=_24;for(var _26=0;_26<Math.min(_25.length,_24.length);_26++){if(_25[_26]!=_24[_26]){break;}}for(var i=_25.length-1;i>=_26;i--){var _28=dijit.byId(_25[i]);if(_28){_28._focused=false;_28._hasBeenBlurred=true;if(_28._onBlur){_28._onBlur();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetBlur",[_28]);}}for(i=_26;i<_24.length;i++){_28=dijit.byId(_24[i]);if(_28){_28._focused=true;if(_28._onFocus){_28._onFocus();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetFocus",[_28]);}}}});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(_29){if(this._hash[_29.id]){throw new Error("Tried to register widget with id=="+_29.id+" but that id is already registered");}this._hash[_29.id]=_29;},remove:function(id){delete this._hash[id];},forEach:function(_2b){for(var id in this._hash){_2b(this._hash[id]);}},filter:function(_2d){var res=new dijit.WidgetSet();this.forEach(function(_2f){if(_2d(_2f)){res.add(_2f);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_32){return _32.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_33){var id;do{id=_33+"_"+(_33 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_33]:dijit._widgetTypeCtr[_33]=0);}while(dijit.byId(id));return id;};dijit.findWidgets=function(_35){var _36=[];function getChildrenHelper(_37){var _38=dojo.isIE?_37.children:_37.childNodes,i=0,_3a;while(_3a=_38[i++]){if(_3a.nodeType!=1){continue;}var _3b=_3a.getAttribute("widgetId");if(_3b){var _3c=dijit.byId(_3b);_36.push(_3c);}else{getChildrenHelper(_3a);}}};getChildrenHelper(_35);return _36;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dojo.forEach(dijit.findWidgets(dojo.body()),function(_3d){if(_3d.destroyRecursive){_3d.destroyRecursive();}else{if(_3d.destroy){_3d.destroy();}}});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_3f){return dijit.registry.byId(_3f.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_40){while(_40){if(_40.getAttribute&&_40.getAttribute("widgetId")){return dijit.registry.byId(_40.getAttribute("widgetId"));}_40=_40.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_41){var _42=dojo.style(_41);return (_42.visibility!="hidden")&&(_42.visibility!="collapsed")&&(_42.display!="none")&&(dojo.attr(_41,"type")!="hidden");};dijit.isTabNavigable=function(_43){if(dojo.hasAttr(_43,"disabled")){return false;}var _44=dojo.hasAttr(_43,"tabindex");var _45=dojo.attr(_43,"tabindex");if(_44&&_45>=0){return true;}var _46=_43.nodeName.toLowerCase();if(((_46=="a"&&dojo.hasAttr(_43,"href"))||dijit._tabElements[_46])&&(!_44||_45>=0)){return true;}return false;};dijit._getTabNavigable=function(_47){var _48,_49,_4a,_4b,_4c,_4d;var _4e=function(_4f){dojo.query("> *",_4f).forEach(function(_50){var _51=dijit._isElementShown(_50);if(_51&&dijit.isTabNavigable(_50)){var _52=dojo.attr(_50,"tabindex");if(!dojo.hasAttr(_50,"tabindex")||_52==0){if(!_48){_48=_50;}_49=_50;}else{if(_52>0){if(!_4a||_52<_4b){_4b=_52;_4a=_50;}if(!_4c||_52>=_4d){_4d=_52;_4c=_50;}}}}if(_51&&_50.nodeName.toUpperCase()!="SELECT"){_4e(_50);}});};if(dijit._isElementShown(_47)){_4e(_47);}return {first:_48,last:_49,lowest:_4a,highest:_4c};};dijit.getFirstInTabbingOrder=function(_53){var _54=dijit._getTabNavigable(dojo.byId(_53));return _54.lowest?_54.lowest:_54.first;};dijit.getLastInTabbingOrder=function(_55){var _56=dijit._getTabNavigable(dojo.byId(_55));return _56.last?_56.last:_56.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_57){this.pairs=[];this.returnWrappers=_57||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_58,_59,_5a,_5b,_5c){this.pairs[((_5c)?"unshift":"push")]([_58,_59,_5a,_5b]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _5e=this.pairs[i];if(_5e[1].apply(this,arguments)){if((_5e[3])||(this.returnWrappers)){return _5e[2];}else{return _5e[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_5f){for(var i=0;i<this.pairs.length;i++){var _61=this.pairs[i];if(_61[0]==_5f){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 _62=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _63=dojo._docScroll();return {w:_62.clientWidth,h:_62.clientHeight,l:_63.x,t:_63.y};};dijit.placeOnScreen=function(_64,pos,_66,_67){var _68=dojo.map(_66,function(_69){var c={corner:_69,pos:{x:pos.x,y:pos.y}};if(_67){c.pos.x+=_69.charAt(1)=="L"?_67.x:-_67.x;c.pos.y+=_69.charAt(0)=="T"?_67.y:-_67.y;}return c;});return dijit._place(_64,_68);};dijit._place=function(_6b,_6c,_6d){var _6e=dijit.getViewport();if(!_6b.parentNode||String(_6b.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_6b);}var _6f=null;dojo.some(_6c,function(_70){var _71=_70.corner;var pos=_70.pos;if(_6d){_6d(_6b,_70.aroundCorner,_71);}var _73=_6b.style;var _74=_73.display;var _75=_73.visibility;_73.visibility="hidden";_73.display="";var mb=dojo.marginBox(_6b);_73.display=_74;_73.visibility=_75;var _77=(_71.charAt(1)=="L"?pos.x:Math.max(_6e.l,pos.x-mb.w)),_78=(_71.charAt(0)=="T"?pos.y:Math.max(_6e.t,pos.y-mb.h)),_79=(_71.charAt(1)=="L"?Math.min(_6e.l+_6e.w,_77+mb.w):pos.x),_7a=(_71.charAt(0)=="T"?Math.min(_6e.t+_6e.h,_78+mb.h):pos.y),_7b=_79-_77,_7c=_7a-_78,_7d=(mb.w-_7b)+(mb.h-_7c);if(_6f==null||_7d<_6f.overflow){_6f={corner:_71,aroundCorner:_70.aroundCorner,x:_77,y:_78,w:_7b,h:_7c,overflow:_7d};}return !_7d;});_6b.style.left=_6f.x+"px";_6b.style.top=_6f.y+"px";if(_6f.overflow&&_6d){_6d(_6b,_6f.aroundCorner,_6f.corner);}return _6f;};dijit.placeOnScreenAroundNode=function(_7e,_7f,_80,_81){_7f=dojo.byId(_7f);var _82=_7f.style.display;_7f.style.display="";var _83=_7f.offsetWidth;var _84=_7f.offsetHeight;var _85=dojo.coords(_7f,true);_7f.style.display=_82;return dijit._placeOnScreenAroundRect(_7e,_85.x,_85.y,_83,_84,_80,_81);};dijit.placeOnScreenAroundRectangle=function(_86,_87,_88,_89){return dijit._placeOnScreenAroundRect(_86,_87.x,_87.y,_87.width,_87.height,_88,_89);};dijit._placeOnScreenAroundRect=function(_8a,x,y,_8d,_8e,_8f,_90){var _91=[];for(var _92 in _8f){_91.push({aroundCorner:_92,corner:_8f[_92],pos:{x:x+(_92.charAt(1)=="L"?0:_8d),y:y+(_92.charAt(0)=="T"?0:_8e)}});}return dijit._place(_8a,_91,_90);};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(_97,_98,_99,_9a){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 _9d=[],_9e=1000,_9f=1;this.prepare=function(_a0){var s=_a0.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(_a0);};this.open=function(_a2){var _a3=_a2.popup,_a4=_a2.orient||{"BL":"TL","TL":"BL"},_a5=_a2.around,id=(_a2.around&&_a2.around.id)?(_a2.around.id+"_dropdown"):("popup_"+_9f++);var _a7=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_9e+_9d.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_a7,"presentation");_a7.style.left=_a7.style.top="0px";if(_a2.parent){_a7.dijitPopupParent=_a2.parent.id;}var s=_a3.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_a7.appendChild(_a3.domNode);var _a9=new dijit.BackgroundIframe(_a7);var _aa=_a5?dijit.placeOnScreenAroundElement(_a7,_a5,_a4,_a3.orient?dojo.hitch(_a3,"orient"):null):dijit.placeOnScreen(_a7,_a2,_a4=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a2.padding);_a7.style.visibility="visible";var _ab=[];var _ac=function(){for(var pi=_9d.length-1;pi>0&&_9d[pi].parent===_9d[pi-1].widget;pi--){}return _9d[pi];};_ab.push(dojo.connect(_a7,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a2.onCancel){dojo.stopEvent(evt);_a2.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _af=_ac();if(_af&&_af.onCancel){_af.onCancel();}}}}));if(_a3.onCancel){_ab.push(dojo.connect(_a3,"onCancel",null,_a2.onCancel));}_ab.push(dojo.connect(_a3,_a3.onExecute?"onExecute":"onChange",null,function(){var _b0=_ac();if(_b0&&_b0.onExecute){_b0.onExecute();}}));_9d.push({wrapper:_a7,iframe:_a9,widget:_a3,parent:_a2.parent,onExecute:_a2.onExecute,onCancel:_a2.onCancel,onClose:_a2.onClose,handlers:_ab});if(_a3.onOpen){_a3.onOpen(_aa);}return _aa;};this.close=function(_b1){while(dojo.some(_9d,function(_b2){return _b2.widget==_b1;})){var top=_9d.pop(),_b4=top.wrapper,_b5=top.iframe,_b6=top.widget,_b7=top.onClose;if(_b6.onClose){_b6.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b6||!_b6.domNode){return;}this.prepare(_b6.domNode);_b5.destroy();dojo.destroy(_b4);if(_b7){_b7();}}};}();dijit._frames=new function(){var _b8=[];this.pop=function(){var _b9;if(_b8.length){_b9=_b8.pop();_b9.style.display="";}else{if(dojo.isIE){var _ba=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bb="<iframe src='"+_ba+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_b9=dojo.doc.createElement(_bb);}else{_b9=dojo.create("iframe");_b9.src="javascript:\"\"";_b9.className="dijitBackgroundIframe";}_b9.tabIndex=-1;dojo.body().appendChild(_b9);}return _b9;};this.push=function(_bc){_bc.style.display="none";if(dojo.isIE){_bc.style.removeExpression("width");_bc.style.removeExpression("height");}_b8.push(_bc);};}();dijit.BackgroundIframe=function(_bd){if(!_bd.id){throw new Error("no id");}if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _be=dijit._frames.pop();_bd.appendChild(_be);if(dojo.isIE){_be.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_bd.id+"').offsetWidth");_be.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_bd.id+"').offsetHeight");}this.iframe=_be;}};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(_bf){try{_bf=dojo.byId(_bf);var doc=_bf.ownerDocument||dojo.doc;var _c1=doc.body||dojo.body();var _c2=doc.documentElement||_c1.parentNode;if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||_bf==_c1||_bf==_c2)&&(typeof _bf.scrollIntoView=="function")){_bf.scrollIntoView(false);return;}var ltr=dojo._isBodyLtr();var _c4=dojo.isIE>=8&&!_c5;var rtl=!ltr&&!_c4;var _c7=_c1;var _c5=doc.compatMode=="BackCompat";if(_c5){_c2._offsetWidth=_c2._clientWidth=_c1._offsetWidth=_c1.clientWidth;_c2._offsetHeight=_c2._clientHeight=_c1._offsetHeight=_c1.clientHeight;}else{if(dojo.isWebKit){_c1._offsetWidth=_c1._clientWidth=_c2.clientWidth;_c1._offsetHeight=_c1._clientHeight=_c2.clientHeight;}else{_c7=_c2;}_c2._offsetHeight=_c2.clientHeight;_c2._offsetWidth=_c2.clientWidth;}function isFixedPosition(_c8){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_c5))?false:(dojo.style(_c8,"position").toLowerCase()=="fixed"));};function addPseudoAttrs(_ca){var _cb=_ca.parentNode;var _cc=_ca.offsetParent;if(_cc==null||isFixedPosition(_ca)){_cc=_c2;_cb=(_ca==_c1)?_c2:null;}_ca._offsetParent=_cc;_ca._parent=_cb;var bp=dojo._getBorderExtents(_ca);_ca._borderStart={H:(_c4&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_ca._borderSize={H:bp.w,V:bp.h};_ca._scrolledAmount={H:_ca.scrollLeft,V:_ca.scrollTop};_ca._offsetSize={H:_ca._offsetWidth||_ca.offsetWidth,V:_ca._offsetHeight||_ca.offsetHeight};_ca._offsetStart={H:(_c4&&!ltr)?_cc.clientWidth-_ca.offsetLeft-_ca._offsetSize.H:_ca.offsetLeft,V:_ca.offsetTop};_ca._clientSize={H:_ca._clientWidth||_ca.clientWidth,V:_ca._clientHeight||_ca.clientHeight};if(_ca!=_c1&&_ca!=_c2&&_ca!=_bf){for(var dir in _ca._offsetSize){var _cf=_ca._offsetSize[dir]-_ca._clientSize[dir]-_ca._borderSize[dir];var _d0=_ca._clientSize[dir]>0&&_cf>0;if(_d0){_ca._offsetSize[dir]-=_cf;if(dojo.isIE&&rtl&&dir=="H"){_ca._offsetStart[dir]+=_cf;}}}}};var _d1=_bf;while(_d1!=null){if(isFixedPosition(_d1)){_bf.scrollIntoView(false);return;}addPseudoAttrs(_d1);_d1=_d1._parent;}if(dojo.isIE&&_bf._parent){var _d2=_bf._offsetParent;_bf._offsetStart.H+=_d2._borderStart.H;_bf._offsetStart.V+=_d2._borderStart.V;}if(dojo.isIE>=7&&_c7==_c2&&rtl&&_c1._offsetStart&&_c1._offsetStart.H==0){var _d3=_c2.scrollWidth-_c2._offsetSize.H;if(_d3>0){_c1._offsetStart.H=-_d3;}}if(dojo.isIE<=6&&!_c5){_c2._offsetSize.H+=_c2._borderSize.H;_c2._offsetSize.V+=_c2._borderSize.V;}if(rtl&&_c1._offsetStart&&_c7==_c2&&_c2._scrolledAmount){var ofs=_c1._offsetStart.H;if(ofs<0){_c2._scrolledAmount.H+=ofs;_c1._offsetStart.H=0;}}_d1=_bf;while(_d1){var _d5=_d1._parent;if(!_d5){break;}if(_d5.tagName=="TD"){var _d6=_d5._parent._parent._parent;if(_d5!=_d1._offsetParent&&_d5._offsetParent!=_d1._offsetParent){_d5=_d6;}}var _d7=_d1._offsetParent==_d5;for(var dir in _d1._offsetStart){var _d9=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_d5!=_c2)&&(_d5!=_c1)&&(dojo.isIE||dojo.isWebKit)&&_d5._clientSize.H>0&&_d5.scrollWidth>_d5._clientSize.H){var _da=_d5.scrollWidth-_d5._clientSize.H;if(_da>0){_d5._scrolledAmount.H-=_da;}}if(_d5._offsetParent.tagName=="TABLE"){if(dojo.isIE){_d5._offsetStart[dir]-=_d5._offsetParent._borderStart[dir];_d5._borderStart[dir]=_d5._borderSize[dir]=0;}else{_d5._offsetStart[dir]+=_d5._offsetParent._borderStart[dir];}}if(dojo.isIE){_d5._offsetStart[dir]+=_d5._offsetParent._borderStart[dir];}var _db=_d1._offsetStart[dir]-_d5._scrolledAmount[dir]-(_d7?0:_d5._offsetStart[dir])-_d5._borderStart[dir];var _dc=_db+_d1._offsetSize[dir]-_d5._offsetSize[dir]+_d5._borderSize[dir];var _dd=(dir=="H")?"scrollLeft":"scrollTop";var _de=dir=="H"&&rtl;var _df=_de?-_dc:_db;var _e0=_de?-_db:_dc;var _e1=(_df*_e0<=0)?0:Math[(_df<0)?"max":"min"](_df,_e0);if(_e1!=0){var _e2=_d5[_dd];_d5[_dd]+=(_de)?-_e1:_e1;var _e3=_d5[_dd]-_e2;}if(_d7){_d1._offsetStart[dir]+=_d5._offsetStart[dir];}_d1._offsetStart[dir]-=_d5[_dd];}_d1._parent=_d5._parent;_d1._offsetParent=_d5._offsetParent;}_d5=_bf;var _e4;while(_d5&&_d5.removeAttribute){_e4=_d5.parentNode;_d5.removeAttribute("_offsetParent");_d5.removeAttribute("_parent");_d5=_e4;}}catch(error){console.error("scrollIntoView: "+error);_bf.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,_e6=d.doc.documentElement,ie=d.isIE,_e8=d.isOpera,maj=Math.floor,ff=d.isFF,_eb=d.boxModel.replace(/-/,""),_ec={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e8,dj_opera8:maj(_e8)==8,dj_opera9:maj(_e8)==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};_ec["dj_"+_eb]=true;for(var p in _ec){if(_ec[p]){if(_e6.className){_e6.className+=" "+p;}else{_e6.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e6.className+=" dijitRtl";for(var p in _ec){if(_ec[p]){_e6.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,_f0,_f1,_f2,obj,_f4,_f5){if(obj!=this._obj){this.stop();this._initialDelay=_f5||500;this._subsequentDelay=_f4||0.9;this._obj=obj;this._evt=evt;this._node=_f1;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_f0,_f2);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(_f6,_f7,_f8,_f9,_fa,_fb){if(_f7.keyCode){_f7.charOrCode=_f7.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_f7.charCode){_f7.charOrCode=String.fromCharCode(_f7.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f6,"onkeypress",this,function(evt){if(evt.charOrCode==_f7.charOrCode&&(_f7.ctrlKey===undefined||_f7.ctrlKey==evt.ctrlKey)&&(_f7.altKey===undefined||_f7.altKey==evt.ctrlKey)&&(_f7.shiftKey===undefined||_f7.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_f7,_f8,_f6,_f9,_f7,_fa,_fb);}else{if(dijit.typematic._obj==_f7){dijit.typematic.stop();}}}),dojo.connect(_f6,"onkeyup",this,function(evt){if(dijit.typematic._obj==_f7){dijit.typematic.stop();}})];},addMouseListener:function(_fe,_ff,_100,_101,_102){var dc=dojo.connect;return [dc(_fe,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_ff,_fe,_100,_fe,_101,_102);}),dc(_fe,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_fe,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_fe,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_fe,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_ff,_fe,_100,_fe,_101,_102);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_109,_10a,_10b,_10c,_10d,_10e,_10f){return this.addKeyListener(_10a,_10b,_10c,_10d,_10e,_10f).concat(this.addMouseListener(_109,_10c,_10d,_10e,_10f));}};}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 _112=cs.backgroundImage;var _113=(cs.borderTopColor==cs.borderRightColor)||(_112!=null&&(_112=="none"||_112=="url(invalid-url:)"));dojo[_113?"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 _116=this.getWaiRole(elem);return role?(_116.indexOf(role)>-1):(_116.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _11a=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_11a)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_11a+" ").indexOf(" "+role+" ")<0){var _11b=dojo.trim(_11a.replace(this._XhtmlRoles,""));var _11c=dojo.trim(_11a.replace(_11b,""));dojo.attr(elem,"role",_11c+(_11c?" ":"")+role);}}},removeWaiRole:function(elem,role){var _11f=dojo.attr(elem,"role");if(!_11f){return;}if(role){var _120=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_11f+" ").replace(" "+_120+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_123){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_123);}return elem.hasAttribute?elem.hasAttribute("aria-"+_123):!!elem.getAttribute("aria-"+_123);},getWaiState:function(elem,_125){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_125);}return elem.getAttribute("aria-"+_125)||"";},setWaiState:function(elem,_127,_128){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_127,_128);}else{elem.setAttribute("aria-"+_127,_128);}},removeWaiState:function(elem,_12a){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_12a);}else{elem.removeAttribute("aria-"+_12a);}}});}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(_12b,_12c){if(_12b&&dojo.isFunction(_12b._onConnect)){_12b._onConnect(_12c);}});dijit._connectOnUseEventHandler=function(_12d){};dijit._lastKeyDownNode=null;if(dojo.isIE){dojo.doc.attachEvent("onkeydown",function(evt){dijit._lastKeyDownNode=evt.srcElement;});}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _130={};var _131=function(dc){if(!_130[dc]){var r=[];var _134;var _135=dojo.getObject(dc).prototype;for(var _136 in _135){if(dojo.isFunction(_135[_136])&&(_134=_136.match(/^_set([a-zA-Z]*)Attr$/))&&_134[1]){r.push(_134[1].charAt(0).toLowerCase()+_134[1].substr(1));}}_130[dc]=r;}return _130[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(_137,_138){this.create(_137,_138);},create:function(_139,_13a){this.srcNodeRef=dojo.byId(_13a);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(_139){this.params=_139;dojo.mixin(this,_139);}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 _13c=this.srcNodeRef;if(_13c&&_13c.parentNode){_13c.parentNode.replaceChild(this.domNode,_13c);}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 _13d=function(attr,_13f){if((_13f.params&&attr in _13f.params)||_13f[attr]){_13f.attr(attr,_13f[attr]);}};for(var attr in this.attributeMap){_13d(attr,this);}dojo.forEach(_131(this.declaredClass),function(a){if(!(a in this.attributeMap)){_13d(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_142){this.destroyDescendants(_142);this.destroy(_142);},destroy:function(_143){this.uninitialize();dojo.forEach(this._connects,function(_144){dojo.forEach(_144,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_143);dijit.registry.remove(this.id);},destroyRendering:function(_146){if(this.bgIframe){this.bgIframe.destroy(_146);delete this.bgIframe;}if(this.domNode){if(_146){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_146){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_147){dojo.forEach(this.getChildren(),function(_148){if(_148.destroyRecursive){_148.destroyRecursive(_147);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_14a){if(_14a in this._deferredConnects){var _14b=this[this._deferredConnects[_14a]||"domNode"];this.connect(_14b,_14a.toLowerCase(),_14a);delete this._deferredConnects[_14a];}},_setClassAttr:function(_14c){var _14d=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_14d,this["class"]);this["class"]=_14c;dojo.addClass(_14d,_14c);},_setStyleAttr:function(_14e){var _14f=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_14e)){dojo.style(_14f,_14e);}else{if(_14f.style.cssText){_14f.style.cssText+="; "+_14e;}else{_14f.style.cssText=_14e;}}this["style"]=_14e;},setAttribute:function(attr,_151){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_151);},_attrToDom:function(attr,_153){var _154=this.attributeMap[attr];dojo.forEach(dojo.isArray(_154)?_154:[_154],function(_155){var _156=this[_155.node||_155||"domNode"];var type=_155.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_153)){_153=dojo.hitch(this,_153);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_156,attr,_153);break;case "innerHTML":_156.innerHTML=_153;break;case "class":dojo.removeClass(_156,this[attr]);dojo.addClass(_156,_153);break;}},this);this[attr]=_153;},attr:function(name,_159){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _15c=this._getAttrNames(name);if(args==2){if(this[_15c.s]){return this[_15c.s](_159)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_159);}this[name]=_159;}return this;}else{if(this[_15c.g]){return this[_15c.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,_162,_163){var d=dojo;var dc=dojo.connect;var _166=[];if(_162=="ondijitclick"){if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){var m=d.hitch(this,_163);_166.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;d.stopEvent(e);}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_162="onclick";}_166.push(dc(obj,_162,this,_163));this._connects.push(_166);return _166;},disconnect:function(_16a){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_16a){dojo.forEach(_16a,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(_16c,_16d){if(_16c["declaredClass"]&&_16c["addChild"]){_16c.addChild(this,_16d);}else{dojo.place(this.domNode,_16c,_16d);}return this;}});})();}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 _16f=this.declaredClass,_170=this;return dojo.string.substitute(tmpl,this,function(_171,key){if(key.charAt(0)=="!"){_171=dojo.getObject(key.substr(1),false,_170);}if(typeof _171=="undefined"){throw new Error(_16f+" template:"+key);}if(_171==null){return "";}return key.charAt(0)=="!"?_171:_171.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _173=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_173)){node=dojo._toDom(this._stringRepl(_173));}else{node=_173.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _175=dojo.parser,qry,attr;if(_175._query!="[dojoType]"){qry=_175._query;attr=_175._attrName;_175._query="[dojoType]";_175._attrName="dojoType";}var cw=(this._supportingWidgets=dojo.parser.parse(node));if(qry){_175._query=qry;_175._attrName=attr;}this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_17b){var dest=this.containerNode;if(_17b&&dest){while(_17b.hasChildNodes()){dest.appendChild(_17b.firstChild);}}},_attachTemplateNodes:function(_17d,_17e){_17e=_17e||function(n,p){return n.getAttribute(p);};var _181=dojo.isArray(_17d)?_17d:(_17d.all||_17d.getElementsByTagName("*"));var x=dojo.isArray(_17d)?0:-1;for(;x<_181.length;x++){var _183=(x==-1)?_17d:_181[x];if(this.widgetsInTemplate&&_17e(_183,"dojoType")){continue;}var _184=_17e(_183,"dojoAttachPoint");if(_184){var _185,_186=_184.split(/\s*,\s*/);while((_185=_186.shift())){if(dojo.isArray(this[_185])){this[_185].push(_183);}else{this[_185]=_183;}}}var _187=_17e(_183,"dojoAttachEvent");if(_187){var _188,_189=_187.split(/\s*,\s*/);var trim=dojo.trim;while((_188=_189.shift())){if(_188){var _18b=null;if(_188.indexOf(":")!=-1){var _18c=_188.split(":");_188=trim(_18c[0]);_18b=trim(_18c[1]);}else{_188=trim(_188);}if(!_18b){_18b=_188;}this.connect(_183,_188,_18b);}}}var role=_17e(_183,"waiRole");if(role){dijit.setWaiRole(_183,role);}var _18e=_17e(_183,"waiState");if(_18e){dojo.forEach(_18e.split(/\s*,\s*/),function(_18f){if(_18f.indexOf("-")!=-1){var pair=_18f.split("-");dijit.setWaiState(_183,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_191,_192,_193){var _194=dijit._Templated._templateCache;var key=_192||_191;var _196=_194[key];if(_196){if(!_196.ownerDocument||_196.ownerDocument==dojo.doc){return _196;}dojo.destroy(_196);}if(!_192){_192=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_191)));}_192=dojo.string.trim(_192);if(_193||_192.match(/\$\{([^\}]+)\}/g)){return (_194[key]=_192);}else{return (_194[key]=dojo._toDom(_192));}};dijit._Templated._sanitizeTemplateString=function(_197){if(_197){_197=_197.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _198=_197.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_198){_197=_198[1];}}else{_197="";}return _197;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _199=dijit._Templated._templateCache;for(var key in _199){var _19b=_199[key];if(!isNaN(_19b.nodeType)){dojo.destroy(_19b);}delete _199[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["com.ibm.widgets.TemplateCleaner"]){dojo._hasResource["com.ibm.widgets.TemplateCleaner"]=true;dojo.provide("com.ibm.widgets.TemplateCleaner");dojo.extend(dijit._Templated,{destroyRecursive:function(_19c){if(this._destroyed){return;}this.inherited("destroyRecursive",arguments);},destroy:function(_19d,_19e){if(this._destroyed){return;}this._destroyed=true;this.inherited("destroy",arguments);dojo.forEach(this._attachPoints,function(_19f){this[_19f]=null;},this);this._attachPoints=[];},_oldAttachTemplateNodes:dijit._Templated.prototype._attachTemplateNodes,_attachTemplateNodes:function(_1a0,func){var res=this._oldAttachTemplateNodes.apply(this,arguments);func=func?func:function(node,attr){return node.getAttribute(attr);};var _1a5=dojo.isArray(_1a0)?_1a0:[_1a0];if(!this._attachPoints){this._attachPoints=[];}dojo.forEach(_1a5,function(node){var _1a7=null;if(node.domNode){_1a7=[node];}else{_1a7=dojo.query("[dojoAttachPoint]",node);}dojo.forEach(_1a7,function(_1a8){var _1a9=func(_1a8,"dojoAttachPoint"),_1aa=_1a9.split(/\s*,\s*/mg);dojo.forEach(_1aa,function(_1ab){this._attachPoints.push(_1ab);},this);},this);},this);return res;}});}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(_1ac,_1ad){var _1ae=this.containerNode;if(_1ad&&typeof _1ad=="number"){var _1af=this.getChildren();if(_1af&&_1af.length>=_1ad){_1ae=_1af[_1ad-1].domNode;_1ad="after";}}dojo.place(_1ac.domNode,_1ae,_1ad);if(this._started&&!_1ac._started){_1ac.startup();}},removeChild:function(_1b0){if(typeof _1b0=="number"&&_1b0>0){_1b0=this.getChildren()[_1b0];}if(!_1b0||!_1b0.domNode){return;}var node=_1b0.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(_1b4){dojo.forEach(this.getChildren(),function(_1b5){_1b5.destroyRecursive(_1b4);});},_getSiblingOfChild:function(_1b6,dir){var node=_1b6.domNode;var _1b9=(dir>0?"nextSibling":"previousSibling");do{node=node[_1b9];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_1ba){var _1bb=this.getChildren();for(var i=0,c;c=_1bb[i];i++){if(c==_1ba){return i;}}return -1;}});}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 _1c0=dijit.byId(id);return _1c0.isContainer?_1c0:null;}}return null;},_getSibling:function(_1c1){var node=this.domNode;do{node=node[_1c1+"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.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(_1c5){_1c5.startup();});if(!this.getParent||!this.getParent()){this.resize();this._viewport=dijit.getViewport();this.connect(dojo.global,"onresize",function(){var _1c6=dijit.getViewport();if(_1c6.w!=this._viewport.w||_1c6.h!=this._viewport.h){this._viewport=_1c6;this.resize();}});}this.inherited(arguments);},resize:function(_1c7,_1c8){var node=this.domNode;if(_1c7){dojo.marginBox(node,_1c7);if(_1c7.t){node.style.top=_1c7.t+"px";}if(_1c7.l){node.style.left=_1c7.l+"px";}}var mb=_1c8||{};dojo.mixin(mb,_1c7||{});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(_1d0){dojo.addClass(_1d0.domNode,this.baseClass+"-child");if(_1d0.baseClass){dojo.addClass(_1d0.domNode,this.baseClass+"-"+_1d0.baseClass);}},addChild:function(_1d1,_1d2){this.inherited(arguments);if(this._started){this._setupChild(_1d1);}},removeChild:function(_1d3){dojo.removeClass(_1d3.domNode,this.baseClass+"-child");if(_1d3.baseClass){dojo.removeClass(_1d3.domNode,this.baseClass+"-"+_1d3.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 _1d9=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1dc,dim){_1dc.resize?_1dc.resize(dim):dojo.marginBox(_1dc.domNode,dim);dojo.mixin(_1dc,dojo.marginBox(_1dc.domNode));dojo.mixin(_1dc,dim);};dijit.layout.layoutChildren=function(_1de,dim,_1e0){dim=dojo.mixin({},dim);dojo.addClass(_1de,"dijitLayoutContainer");_1e0=dojo.filter(_1e0,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1e0,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1e0,function(_1e3){var elm=_1e3.domNode,pos=_1e3.layoutAlign;var _1e6=elm.style;_1e6.left=dim.l+"px";_1e6.top=dim.t+"px";_1e6.bottom=_1e6.right="auto";dojo.addClass(elm,"dijitAlign"+_1d9(pos));if(pos=="top"||pos=="bottom"){size(_1e3,{w:dim.w});dim.h-=_1e3.h;if(pos=="top"){dim.t+=_1e3.h;}else{_1e6.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1e3,{h:dim.h});dim.w-=_1e3.w;if(pos=="left"){dim.l+=_1e3.w;}else{_1e6.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1e3,dim);}}}});};})();}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},_setDisabledAttr:function(_1e7){this.disabled=_1e7;dojo.attr(this.focusNode,"disabled",_1e7);dijit.setWaiState(this.focusNode,"disabled",_1e7);if(_1e7){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_1e8){dojo.deprecated("setDisabled("+_1e8+") is deprecated. Use attr('disabled',"+_1e8+") instead.","","2.0");this.attr("disabled",_1e8);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_1ea){var _1eb=_1ea.currentTarget;if(_1eb&&_1eb.getAttribute){this.stateModifier=_1eb.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1ea.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _1ec=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_1ec);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _1ed=this.baseClass.split(" ");function multiply(_1ee){_1ed=_1ed.concat(dojo.map(_1ed,function(c){return c+_1ee;}),"dijit"+_1ee);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_1f1={};dojo.forEach(tn.className.split(" "),function(c){_1f1[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1f1[c];});}dojo.forEach(_1ed,function(c){_1f1[c]=true;});var _1f5=[];for(var c in _1f1){_1f5.push(c);}tn.className=_1f5.join(" ");this._stateClasses=_1ed;},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_1f9){},_onChangeActive:false,_handleOnChange:function(_1fa,_1fb){this._lastValue=_1fa;if(this._lastValueReported==undefined&&(_1fb===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1fa;}if((this.intermediateChanges||_1fb||_1fb===undefined)&&((typeof _1fa!=typeof this._lastValueReported)||this.compare(_1fa,this._lastValueReported)!=0)){this._lastValueReported=_1fa;if(this._onChangeActive){this.onChange(_1fa);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_1fc){dojo.deprecated("dijit.form._FormWidget:setValue("+_1fc+") is deprecated.  Use attr('value',"+_1fc+") instead.","","2.0");this.attr("value",_1fc);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){if(dojo.isIE||dojo.isWebKit){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_1ff,_200){this.value=_1ff;this._handleOnChange(_1ff,_200);},_getValueAttr:function(_201){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isWebKit){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}

