/*
	Copyright (c) 2004-2011, 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 an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2=dojo._docScroll();return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};};dojo.window.get=function(_3){if(dojo.isIE&&window!==document.parentWindow){_3.parentWindow.execScript("document._parentWindow = window;","Javascript");var _4=_3._parentWindow;_3._parentWindow=null;return _4;}return _3.parentWindow||_3.defaultView;};dojo.window.scrollIntoView=function(_5,_6){try{_5=dojo.byId(_5);var _7=_5.ownerDocument||dojo.doc,_8=_7.body||dojo.body(),_9=_7.documentElement||_8.parentNode,_a=dojo.isIE,_b=dojo.isWebKit;if((!(dojo.isMoz||_a||_b||dojo.isOpera)||_5==_8||_5==_9)&&(typeof _5.scrollIntoView!="undefined")){_5.scrollIntoView(false);return;}var _c=_7.compatMode=="BackCompat",_d=_c?_8:_9,_e=_b?_8:_d,_f=_d.clientWidth,_10=_d.clientHeight,rtl=!dojo._isBodyLtr(),_11=_6||dojo.position(_5),el=_5.parentNode,_12=function(el){return ((_a<=6||(_a&&_c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_12(_5)){return;}while(el){if(el==_8){el=_e;}var _13=dojo.position(el),_14=_12(el);if(el==_e){_13.w=_f;_13.h=_10;if(_e==_9&&_a&&rtl){_13.x+=_e.offsetWidth-_13.w;}if(_13.x<0||!_a){_13.x=0;}if(_13.y<0||!_a){_13.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_13.w-=pb.w;_13.h-=pb.h;_13.x+=pb.l;_13.y+=pb.t;}if(el!=_e){var _15=el.clientWidth,_16=_13.w-_15;if(_15>0&&_16>0){_13.w=_15;if(_a&&rtl){_13.x+=_16;}}_15=el.clientHeight;_16=_13.h-_15;if(_15>0&&_16>0){_13.h=_15;}}if(_14){if(_13.y<0){_13.h+=_13.y;_13.y=0;}if(_13.x<0){_13.w+=_13.x;_13.x=0;}if(_13.y+_13.h>_10){_13.h=_10-_13.y;}if(_13.x+_13.w>_f){_13.w=_f-_13.x;}}var l=_11.x-_13.x,t=_11.y-Math.max(_13.y,0),r=l+_11.w-_13.w,bot=t+_11.h-_13.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_11.x+=el.scrollLeft;el.scrollLeft+=(_a>=8&&!_c&&rtl)?-s:s;_11.x-=el.scrollLeft;}if(bot*t>0){_11.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_11.y-=el.scrollTop;}el=(el!=_e)&&!_14&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_5.scrollIntoView(false);}};}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={};this.length=0;},add:function(_17){if(this._hash[_17.id]){throw new Error("Tried to register widget with id=="+_17.id+" but that id is already registered");}this._hash[_17.id]=_17;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_18,_19){_19=_19||dojo.global;var i=0,id;for(id in this._hash){_18.call(_19,this._hash[id],i++,this._hash);}return this;},filter:function(_1a,_1b){_1b=_1b||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_1a.call(_1b,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_1c;for(id in this._hash){_1c=this._hash[id];if(_1c.declaredClass==cls){res.add(_1c);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_1d,_1e){return dojo.map(this.toArray(),_1d,_1e);},every:function(_1f,_20){_20=_20||dojo.global;var x=0,i;for(i in this._hash){if(!_1f.call(_20,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_21,_22){_22=_22||dojo.global;var x=0,i;for(i in this._hash){if(_21.call(_22,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _23=dijit.registry._hash,_24=dojo.attr,_25=dojo.hasAttr,_26=dojo.style;dijit.byId=function(id){return typeof id=="string"?_23[id]:id;};var _27={};dijit.getUniqueId=function(_28){var id;do{id=_28+"_"+(_28 in _27?++_27[_28]:_27[_28]=0);}while(_23[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_29){var _2a=[];function _2b(_2c){for(var _2d=_2c.firstChild;_2d;_2d=_2d.nextSibling){if(_2d.nodeType==1){var _2e=_2d.getAttribute("widgetId");if(_2e){var _2f=_23[_2e];if(_2f){_2a.push(_2f);}}else{_2b(_2d);}}}};_2b(_29);return _2a;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_30){if(!_30._destroyed){if(_30.destroyRecursive){_30.destroyRecursive();}else{if(_30.destroy){_30.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_31){return _23[_31.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_32){while(_32){var id=_32.getAttribute&&_32.getAttribute("widgetId");if(id){return _23[id];}_32=_32.parentNode;}return null;};var _33=(dijit._isElementShown=function(_34){var s=_26(_34);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_24(_34,"type")!="hidden");});dijit.hasDefaultTabStop=function(_35){switch(_35.nodeName.toLowerCase()){case "a":return _25(_35,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _36;try{var _37=_35.contentDocument;if("designMode" in _37&&_37.designMode=="on"){return true;}_36=_37.body;}catch(e1){try{_36=_35.contentWindow.document.body;}catch(e2){return false;}}return _36.contentEditable=="true"||(_36.firstChild&&_36.firstChild.contentEditable=="true");default:return _35.contentEditable=="true";}};var _38=(dijit.isTabNavigable=function(_39){if(_24(_39,"disabled")){return false;}else{if(_25(_39,"tabIndex")){return _24(_39,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_39);}}});dijit._getTabNavigable=function(_3a){var _3b,_3c,_3d,_3e,_3f,_40,_41={};function _42(_43){return _43&&_43.tagName.toLowerCase()=="input"&&_43.type&&_43.type.toLowerCase()=="radio"&&_43.name&&_43.name.toLowerCase();};var _44=function(_45){dojo.query("> *",_45).forEach(function(_46){if((dojo.isIE&&_46.scopeName!=="HTML")||!_33(_46)){return;}if(_38(_46)){var _47=_24(_46,"tabIndex");if(!_25(_46,"tabIndex")||_47==0){if(!_3b){_3b=_46;}_3c=_46;}else{if(_47>0){if(!_3d||_47<_3e){_3e=_47;_3d=_46;}if(!_3f||_47>=_40){_40=_47;_3f=_46;}}}var rn=_42(_46);if(dojo.attr(_46,"checked")&&rn){_41[rn]=_46;}}if(_46.nodeName.toUpperCase()!="SELECT"){_44(_46);}});};if(_33(_3a)){_44(_3a);}function rs(_48){return _41[_42(_48)]||_48;};return {first:rs(_3b),last:rs(_3c),lowest:rs(_3d),highest:rs(_3f)};};dijit.getFirstInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.lowest?_4a.lowest:_4a.first;};dijit.getLastInTabbingOrder=function(_4b){var _4c=dijit._getTabNavigable(dojo.byId(_4b));return _4c.last?_4c.last:_4c.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}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(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_4d){var _4e=dojo.doc,_4f=_4d.mark;if(_4f){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_4f.pRange){var r=_4f;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_4f);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_4e.selection&&_4f){var rg;if(_4f.pRange){rg=_4f.range;}else{if(dojo.isArray(_4f)){rg=_4e.body.createControlRange();dojo.forEach(_4f,function(n){rg.addElement(n);});}else{rg=_4e.body.createTextRange();rg.moveToBookmark(_4f);}}rg.select();}}}},getFocus:function(_50,_51){var _52=!dijit._curFocus||(_50&&dojo.isDescendant(dijit._curFocus,_50.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_52,bookmark:(_52==dijit._curFocus)&&dojo.withGlobal(_51||dojo.global,dijit.getBookmark),openedForWindow:_51};},focus:function(_53){if(!_53){return;}var _54="node" in _53?_53.node:_53,_55=_53.bookmark,_56=_53.openedForWindow,_57=_55?_55.isCollapsed:false;if(_54){var _58=(_54.tagName.toLowerCase()=="iframe")?_54.contentWindow:_54;if(_58&&_58.focus){try{_58.focus();}catch(e){}}dijit._onFocusNode(_54);}if(_55&&dojo.withGlobal(_56||dojo.global,dijit.isCollapsed)&&!_57){if(_56){_56.focus();}try{dojo.withGlobal(_56||dojo.global,dijit.moveToBookmark,null,[_55]);}catch(e2){}}},_activeStack:[],registerIframe:function(_59){return dijit.registerWin(_59.contentWindow,_59);},unregisterIframe:function(_5a){dijit.unregisterWin(_5a);},registerWin:function(_5b,_5c){var _5d=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_5c||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_5b.document.documentElement:_5b.document;if(doc){if(dojo.isIE){_5b.document.body.attachEvent("onmousedown",_5d);var _5e=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_5c||evt.srcElement);}else{dijit._onTouchNode(_5c||evt.srcElement);}};doc.attachEvent("onactivate",_5e);var _5f=function(evt){dijit._onBlurNode(_5c||evt.srcElement);};doc.attachEvent("ondeactivate",_5f);return function(){_5b.document.detachEvent("onmousedown",_5d);doc.detachEvent("onactivate",_5e);doc.detachEvent("ondeactivate",_5f);doc=null;};}else{doc.body.addEventListener("mousedown",_5d,true);var _60=function(evt){dijit._onFocusNode(_5c||evt.target);};doc.addEventListener("focus",_60,true);var _61=function(evt){dijit._onBlurNode(_5c||evt.target);};doc.addEventListener("blur",_61,true);return function(){doc.body.removeEventListener("mousedown",_5d,true);doc.removeEventListener("focus",_60,true);doc.removeEventListener("blur",_61,true);doc=null;};}}},unregisterWin:function(_62){_62&&_62();},_onBlurNode:function(_63){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(_64,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _65=[];try{while(_64){var _66=dojo.attr(_64,"dijitPopupParent");if(_66){_64=dijit.byId(_66).domNode;}else{if(_64.tagName&&_64.tagName.toLowerCase()=="body"){if(_64===dojo.body()){break;}_64=dojo.window.get(_64.ownerDocument).frameElement;}else{var id=_64.getAttribute&&_64.getAttribute("widgetId"),_67=id&&dijit.byId(id);if(_67&&!(by=="mouse"&&_67.get("disabled"))){_65.unshift(id);}_64=_64.parentNode;}}}}catch(e){}dijit._setStack(_65,by);},_onFocusNode:function(_68){if(!_68){return;}if(_68.nodeType==9){return;}dijit._onTouchNode(_68);if(_68==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_68;dojo.publish("focusNode",[_68]);},_setStack:function(_69,by){var _6a=dijit._activeStack;dijit._activeStack=_69;for(var _6b=0;_6b<Math.min(_6a.length,_69.length);_6b++){if(_6a[_6b]!=_69[_6b]){break;}}var _6c;for(var i=_6a.length-1;i>=_6b;i--){_6c=dijit.byId(_6a[i]);if(_6c){_6c._focused=false;_6c.set("focused",false);_6c._hasBeenBlurred=true;if(_6c._onBlur){_6c._onBlur(by);}dojo.publish("widgetBlur",[_6c,by]);}}for(i=_6b;i<_69.length;i++){_6c=dijit.byId(_69[i]);if(_6c){_6c._focused=true;_6c.set("focused",true);if(_6c._onFocus){_6c._onFocus(by);}dojo.publish("widgetFocus",[_6c,by]);}}}});dojo.addOnLoad(function(){var _6d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_6d);_6d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_6e){this.pairs=[];this.returnWrappers=_6e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_6f,_70,_71,_72,_73){this.pairs[((_73)?"unshift":"push")]([_6f,_70,_71,_72]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _74=this.pairs[i];if(_74[1].apply(this,arguments)){if((_74[3])||(this.returnWrappers)){return _74[2];}else{return _74[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_75){for(var i=0;i<this.pairs.length;i++){var _76=this.pairs[i];if(_76[0]==_75){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(){return dojo.window.getBox();};dijit.placeOnScreen=function(_77,pos,_78,_79){var _7a=dojo.map(_78,function(_7b){var c={corner:_7b,pos:{x:pos.x,y:pos.y}};if(_79){c.pos.x+=_7b.charAt(1)=="L"?_79.x:-_79.x;c.pos.y+=_7b.charAt(0)=="T"?_79.y:-_79.y;}return c;});return dijit._place(_77,_7a);};dijit._place=function(_7c,_7d,_7e,_7f){var _80=dojo.window.getBox();if(!_7c.parentNode||String(_7c.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_7c);}var _81=null;dojo.some(_7d,function(_82){var _83=_82.corner;var pos=_82.pos;var _84=0;var _85={w:_83.charAt(1)=="L"?(_80.l+_80.w)-pos.x:pos.x-_80.l,h:_83.charAt(1)=="T"?(_80.t+_80.h)-pos.y:pos.y-_80.t};if(_7e){var res=_7e(_7c,_82.aroundCorner,_83,_85,_7f);_84=typeof res=="undefined"?0:res;}var _86=_7c.style;var _87=_86.display;var _88=_86.visibility;_86.visibility="hidden";_86.display="";var mb=dojo.marginBox(_7c);_86.display=_87;_86.visibility=_88;var _89=Math.max(_80.l,_83.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_8a=Math.max(_80.t,_83.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_8b=Math.min(_80.l+_80.w,_83.charAt(1)=="L"?(_89+mb.w):pos.x),_8c=Math.min(_80.t+_80.h,_83.charAt(0)=="T"?(_8a+mb.h):pos.y),_8d=_8b-_89,_8e=_8c-_8a;_84+=(mb.w-_8d)+(mb.h-_8e);if(_81==null||_84<_81.overflow){_81={corner:_83,aroundCorner:_82.aroundCorner,x:_89,y:_8a,w:_8d,h:_8e,overflow:_84,spaceAvailable:_85};}return !_84;});if(_81.overflow&&_7e){_7e(_7c,_81.aroundCorner,_81.corner,_81.spaceAvailable,_7f);}var l=dojo._isBodyLtr(),s=_7c.style;s.top=_81.y+"px";s[l?"left":"right"]=(l?_81.x:_80.w-_81.x-_81.w)+"px";return _81;};dijit.placeOnScreenAroundNode=function(_8f,_90,_91,_92){_90=dojo.byId(_90);var _93=dojo.position(_90,true);return dijit._placeOnScreenAroundRect(_8f,_93.x,_93.y,_93.w,_93.h,_91,_92);};dijit.placeOnScreenAroundRectangle=function(_94,_95,_96,_97){return dijit._placeOnScreenAroundRect(_94,_95.x,_95.y,_95.width,_95.height,_96,_97);};dijit._placeOnScreenAroundRect=function(_98,x,y,_99,_9a,_9b,_9c){var _9d=[];for(var _9e in _9b){_9d.push({aroundCorner:_9e,corner:_9b[_9e],pos:{x:x+(_9e.charAt(1)=="L"?0:_99),y:y+(_9e.charAt(0)=="T"?0:_9a)}});}return dijit._place(_98,_9d,_9c,{w:_99,h:_9a});};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(_9f,_a0,_a1,_a2){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_a3,_a4){var _a5={};dojo.forEach(_a3,function(pos){switch(pos){case "after":_a5[_a4?"BR":"BL"]=_a4?"BL":"BR";break;case "before":_a5[_a4?"BL":"BR"]=_a4?"BR":"BL";break;case "below-alt":_a4=!_a4;case "below":_a5[_a4?"BL":"BR"]=_a4?"TL":"TR";_a5[_a4?"BR":"BL"]=_a4?"TR":"TL";break;case "above-alt":_a4=!_a4;case "above":default:_a5[_a4?"TL":"TR"]=_a4?"BL":"BR";_a5[_a4?"TR":"TL"]=_a4?"BR":"BL";break;}});return _a5;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_a6){var _a7=_a6.declaredClass?_a6._popupWrapper:(dojo.hasClass(_a6.parentNode,"dijitPopup")&&_a6.parentNode),_a8=_a6.domNode||_a6;if(!_a7){_a7=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_a7.appendChild(_a8);var s=_a8.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_a6.declaredClass){_a6._popupWrapper=_a7;dojo.connect(_a6,"destroy",function(){dojo.destroy(_a7);delete _a6._popupWrapper;});}}return _a7;},moveOffScreen:function(_a9){var _aa=this._createWrapper(_a9);dojo.style(_aa,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_ab){var _ac=this._createWrapper(_ab);dojo.style(_ac,"display","none");},getTopPopup:function(){var _ad=this._stack;for(var pi=_ad.length-1;pi>0&&_ad[pi].parent===_ad[pi-1].widget;pi--){}return _ad[pi];},open:function(_ae){var _af=this._stack,_b0=_ae.popup,_b1=_ae.orient||((_ae.parent?_ae.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_b2=_ae.around,id=(_ae.around&&_ae.around.id)?(_ae.around.id+"_dropdown"):("popup_"+this._idGen++);while(_af.length&&(!_ae.parent||!dojo.isDescendant(_ae.parent.domNode,_af[_af.length-1].widget.domNode))){dijit.popup.close(_af[_af.length-1].widget);}var _b3=this._createWrapper(_b0);dojo.attr(_b3,{id:id,style:{zIndex:this._beginZIndex+_af.length},"class":"dijitPopup "+(_b0.baseClass||_b0["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_ae.parent?_ae.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_b0.bgIframe){_b0.bgIframe=new dijit.BackgroundIframe(_b3);}}var _b4=_b2?dijit.placeOnScreenAroundElement(_b3,_b2,_b1,_b0.orient?dojo.hitch(_b0,"orient"):null):dijit.placeOnScreen(_b3,_ae,_b1=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_ae.padding);_b3.style.display="";_b3.style.visibility="visible";_b0.domNode.style.visibility="visible";var _b5=[];_b5.push(dojo.connect(_b3,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_ae.onCancel){dojo.stopEvent(evt);_ae.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _b6=this.getTopPopup();if(_b6&&_b6.onCancel){_b6.onCancel();}}}}));if(_b0.onCancel){_b5.push(dojo.connect(_b0,"onCancel",_ae.onCancel));}_b5.push(dojo.connect(_b0,_b0.onExecute?"onExecute":"onChange",this,function(){var _b7=this.getTopPopup();if(_b7&&_b7.onExecute){_b7.onExecute();}}));_af.push({widget:_b0,parent:_ae.parent,onExecute:_ae.onExecute,onCancel:_ae.onCancel,onClose:_ae.onClose,handlers:_b5});if(_b0.onOpen){_b0.onOpen(_b4);}return _b4;},close:function(_b8){var _b9=this._stack;while((_b8&&dojo.some(_b9,function(_ba){return _ba.widget==_b8;}))||(!_b8&&_b9.length)){var top=_b9.pop(),_bb=top.widget,_bc=top.onClose;if(_bb.onClose){_bb.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_bb&&_bb.domNode){this.hide(_bb);}if(_bc){_bc();}}}};dijit._frames=new function(){var _bd=[];this.pop=function(){var _be;if(_bd.length){_be=_bd.pop();_be.style.display="";}else{if(dojo.isIE<9){var _bf=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _c0="<iframe src='"+_bf+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_be=dojo.doc.createElement(_c0);}else{_be=dojo.create("iframe");_be.src="javascript:\"\"";_be.className="dijitBackgroundIframe";dojo.style(_be,"opacity",0.1);}_be.tabIndex=-1;dijit.setWaiRole(_be,"presentation");}return _be;};this.push=function(_c1){_c1.style.display="none";_bd.push(_c1);};}();dijit.BackgroundIframe=function(_c2){if(!_c2.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _c3=(this.iframe=dijit._frames.pop());_c2.appendChild(_c3);if(dojo.isIE<7||dojo.isQuirks){this.resize(_c2);this._conn=dojo.connect(_c2,"onresize",this,function(){this.resize(_c2);});}else{dojo.style(_c3,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(_c4){if(this.iframe){dojo.style(this.iframe,{width:_c4.offsetWidth+"px",height:_c4.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}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(_c5,pos){dojo.window.scrollIntoView(_c5,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,_c6=d.doc.documentElement,ie=d.isIE,_c7=d.isOpera,maj=Math.floor,ff=d.isFF,_c8=d.boxModel.replace(/-/,""),_c9={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_c7,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_c9["dj_"+_c8]=true;var _ca="";for(var clz in _c9){if(_c9[clz]){_ca+=clz+" ";}}_c6.className=d.trim(_c6.className+" "+_ca);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _cb="dj_rtl dijitRtl "+_ca.replace(/ /g,"-rtl ");_c6.className=d.trim(_c6.className+" "+_cb);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}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=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_cc,_cd,_ce,obj,_cf,_d0,_d1){if(obj!=this._obj){this.stop();this._initialDelay=_d0||500;this._subsequentDelay=_cf||0.9;this._minDelay=_d1||10;this._obj=obj;this._evt=evt;this._node=_cd;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_cc,_ce);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},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(_d2,_d3,_d4,_d5,_d6,_d7,_d8){if(_d3.keyCode){_d3.charOrCode=_d3.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_d3.charCode){_d3.charOrCode=String.fromCharCode(_d3.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_d2,"onkeypress",this,function(evt){if(evt.charOrCode==_d3.charOrCode&&(_d3.ctrlKey===undefined||_d3.ctrlKey==evt.ctrlKey)&&(_d3.altKey===undefined||_d3.altKey==evt.altKey)&&(_d3.metaKey===undefined||_d3.metaKey==(evt.metaKey||false))&&(_d3.shiftKey===undefined||_d3.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_d4,_d2,_d5,_d3,_d6,_d7,_d8);}else{if(dijit.typematic._obj==_d3){dijit.typematic.stop();}}}),dojo.connect(_d2,"onkeyup",this,function(evt){if(dijit.typematic._obj==_d3){dijit.typematic.stop();}})];},addMouseListener:function(_d9,_da,_db,_dc,_dd,_de){var dc=dojo.connect;return [dc(_d9,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_da,_d9,_db,_d9,_dc,_dd,_de);}),dc(_d9,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d9,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d9,"mousemove",this,function(evt){evt.preventDefault();}),dc(_d9,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_da,_d9,_db,_d9,_dc,_dd,_de);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_df,_e0,_e1,_e2,_e3,_e4,_e5,_e6){return this.addKeyListener(_e0,_e1,_e2,_e3,_e4,_e5,_e6).concat(this.addMouseListener(_df,_e2,_e3,_e4,_e5,_e6));}};}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 _e7=cs.backgroundImage;var _e8=(cs.borderTopColor==cs.borderRightColor)||(_e7!=null&&(_e7=="none"||_e7=="url(invalid-url:)"));dojo[_e8?"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,{hasWaiRole:function(_e9,_ea){var _eb=this.getWaiRole(_e9);return _ea?(_eb.indexOf(_ea)>-1):(_eb.length>0);},getWaiRole:function(_ec){return dojo.trim((dojo.attr(_ec,"role")||"").replace("wairole:",""));},setWaiRole:function(_ed,_ee){dojo.attr(_ed,"role",_ee);},removeWaiRole:function(_ef,_f0){var _f1=dojo.attr(_ef,"role");if(!_f1){return;}if(_f0){var t=dojo.trim((" "+_f1+" ").replace(" "+_f0+" "," "));dojo.attr(_ef,"role",t);}else{_ef.removeAttribute("role");}},hasWaiState:function(_f2,_f3){return _f2.hasAttribute?_f2.hasAttribute("aria-"+_f3):!!_f2.getAttribute("aria-"+_f3);},getWaiState:function(_f4,_f5){return _f4.getAttribute("aria-"+_f5)||"";},setWaiState:function(_f6,_f7,_f8){_f6.setAttribute("aria-"+_f7,_f8);},removeWaiState:function(_f9,_fa){_f9.removeAttribute("aria-"+_fa);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_fb,_fc){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 _fd=dojo.date.stamp._isoRegExp.exec(_fb),_fe=null;if(_fd){_fd.shift();if(_fd[1]){_fd[1]--;}if(_fd[6]){_fd[6]*=1000;}if(_fc){_fc=new Date(_fc);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_ff){return _fc["get"+_ff]();}),function(_100,_101){_fd[_101]=_fd[_101]||_100;});}_fe=new Date(_fd[0]||1970,_fd[1]||0,_fd[2]||1,_fd[3]||0,_fd[4]||0,_fd[5]||0,_fd[6]||0);if(_fd[0]<100){_fe.setFullYear(_fd[0]||1970);}var _102=0,_103=_fd[7]&&_fd[7].charAt(0);if(_103!="Z"){_102=((_fd[8]||0)*60)+(Number(_fd[9])||0);if(_103!="-"){_102*=-1;}}if(_103){_102-=_fe.getTimezoneOffset();}if(_102){_fe.setTime(_fe.getTime()+_102*60000);}}return _fe;};dojo.date.stamp.toISOString=function(_104,_105){var _106=function(n){return (n<10)?"0"+n:n;};_105=_105||{};var _107=[],_108=_105.zulu?"getUTC":"get",date="";if(_105.selector!="time"){var year=_104[_108+"FullYear"]();date=["0000".substr((year+"").length)+year,_106(_104[_108+"Month"]()+1),_106(_104[_108+"Date"]())].join("-");}_107.push(date);if(_105.selector!="date"){var time=[_106(_104[_108+"Hours"]()),_106(_104[_108+"Minutes"]()),_106(_104[_108+"Seconds"]())].join(":");var _109=_104[_108+"Milliseconds"]();if(_105.milliseconds){time+="."+(_109<100?"0":"")+_106(_109);}if(_105.zulu){time+="Z";}else{if(_105.selector!="time"){var _10a=_104.getTimezoneOffset();var _10b=Math.abs(_10a);time+=(_10a>0?"-":"+")+_106(Math.floor(_10b/60))+":"+_106(_10b%60);}}_107.push(time);}return _107.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _10c(_10d){if(d.isString(_10d)){return "string";}if(typeof _10d=="number"){return "number";}if(typeof _10d=="boolean"){return "boolean";}if(d.isFunction(_10d)){return "function";}if(d.isArray(_10d)){return "array";}if(_10d instanceof Date){return "date";}if(_10d instanceof d._Url){return "url";}return "object";};function _10e(_10f,type){switch(type){case "string":return _10f;case "number":return _10f.length?Number(_10f):NaN;case "boolean":return typeof _10f=="boolean"?_10f:!(_10f.toLowerCase()=="false");case "function":if(d.isFunction(_10f)){_10f=_10f.toString();_10f=d.trim(_10f.substring(_10f.indexOf("{")+1,_10f.length-1));}try{if(_10f===""||_10f.search(/[^\w\.]+/i)!=-1){return new Function(_10f);}else{return d.getObject(_10f,false)||new Function(_10f);}}catch(e){return new Function();}case "array":return _10f?_10f.split(/\s*,\s*/):[];case "date":switch(_10f){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_10f);}case "url":return d.baseUrl+_10f;default:return d.fromJson(_10f);}};var _110={},_111={};d.connect(d,"extend",function(){_111={};});function _112(cls,_113){for(var name in cls){if(name.charAt(0)=="_"){continue;}if(name in _110){continue;}_113[name]=_10c(cls[name]);}return _113;};function _114(_115,_116){var c=_111[_115];if(!c){var cls=d.getObject(_115),_117=null;if(!cls){return null;}if(!_116){_117=_112(cls.prototype,{});}c={cls:cls,params:_117};}else{if(!_116&&!c.params){c.params=_112(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_118,_119){var _11a="";var _11b="";var _11c=(_118.getAttribute(_119+"args")||_118.getAttribute("args"));if(_11c){d.forEach(_11c.split(/\s*,\s*/),function(part,idx){_11a+="var "+part+" = arguments["+idx+"]; ";});}var _11d=_118.getAttribute("with");if(_11d&&_11d.length){d.forEach(_11d.split(/\s*,\s*/),function(part){_11a+="with("+part+"){";_11b+="}";});}return new Function(_11a+_118.innerHTML+_11b);};this.instantiate=function(_11e,_11f,args){var _120=[],_11f=_11f||{};args=args||{};var _121=(args.scope||d._scopeName)+"Type",_122="data-"+(args.scope||d._scopeName)+"-";d.forEach(_11e,function(obj){if(!obj){return;}var node,type,_123,_124,_125,_126;if(obj.node){node=obj.node;type=obj.type;_126=obj.fastpath;_123=obj.clsInfo||(type&&_114(type,_126));_124=_123&&_123.cls;_125=obj.scripts;}else{node=obj;type=_121 in _11f?_11f[_121]:node.getAttribute(_121);_123=type&&_114(type);_124=_123&&_123.cls;_125=(_124&&(_124._noScript||_124.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_123){throw new Error("Could not load class '"+type);}var _127={};if(args.defaults){d._mixin(_127,args.defaults);}if(obj.inherited){d._mixin(_127,obj.inherited);}if(_126){var _128=node.getAttribute(_122+"props");if(_128&&_128.length){try{_128=d.fromJson.call(args.propsThis,"{"+_128+"}");d._mixin(_127,_128);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_128+"'");}}var _129=node.getAttribute(_122+"attach-point");if(_129){_127.dojoAttachPoint=_129;}var _12a=node.getAttribute(_122+"attach-event");if(_12a){_127.dojoAttachEvent=_12a;}dojo.mixin(_127,_11f);}else{var _12b=node.attributes;for(var name in _123.params){var item=name in _11f?{value:_11f[name],specified:true}:_12b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _12c=item.value;switch(name){case "class":_12c="className" in _11f?_11f.className:node.className;break;case "style":_12c="style" in _11f?_11f.style:(node.style&&node.style.cssText);}var _12d=_123.params[name];if(typeof _12c=="string"){_127[name]=_10e(_12c,_12d);}else{_127[name]=_12c;}}}var _12e=[],_12f=[];d.forEach(_125,function(_130){node.removeChild(_130);var _131=(_130.getAttribute(_122+"event")||_130.getAttribute("event")),type=_130.getAttribute("type"),nf=d.parser._functionFromScript(_130,_122);if(_131){if(type=="dojo/connect"){_12e.push({event:_131,func:nf});}else{_127[_131]=nf;}}else{_12f.push(nf);}});var _132=_124.markupFactory||_124.prototype&&_124.prototype.markupFactory;var _133=_132?_132(_127,node,_124):new _124(_127,node);_120.push(_133);var _134=(node.getAttribute(_122+"id")||node.getAttribute("jsId"));if(_134){d.setObject(_134,_133);}d.forEach(_12e,function(_135){d.connect(_133,_135.event,null,_135.func);});d.forEach(_12f,function(func){func.call(_133);});});if(!_11f._started){d.forEach(_120,function(_136){if(!args.noStart&&_136&&dojo.isFunction(_136.startup)&&!_136._started&&(!_136.getParent||!_136.getParent())){_136.startup();}});}return _120;};this.parse=function(_137,args){var root;if(!args&&_137&&_137.rootNode){args=_137;root=args.rootNode;}else{root=_137;}args=args||{};var _138=(args.scope||d._scopeName)+"Type",_139="data-"+(args.scope||d._scopeName)+"-";function scan(_13a,list){var _13b=dojo.clone(_13a.inherited);dojo.forEach(["dir","lang"],function(name){var val=_13a.node.getAttribute(name);if(val){_13b[name]=val;}});var _13c=_13a.clsInfo&&!_13a.clsInfo.cls.prototype._noScript?_13a.scripts:null;var _13d=(!_13a.clsInfo||!_13a.clsInfo.cls.prototype.stopParser)||(args&&args.template);for(var _13e=_13a.node.firstChild;_13e;_13e=_13e.nextSibling){if(_13e.nodeType==1){var type,_13f=_13d&&_13e.getAttribute(_139+"type");if(_13f){type=_13f;}else{type=_13d&&_13e.getAttribute(_138);}var _140=_13f==type;if(type){var _141={"type":type,fastpath:_140,clsInfo:_114(type,_140),node:_13e,scripts:[],inherited:_13b};list.push(_141);scan(_141,list);}else{if(_13c&&_13e.nodeName.toLowerCase()=="script"){type=_13e.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_13c.push(_13e);}}else{if(_13d){scan({node:_13e,inherited:_13b},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);var _142=args&&args.template?{template:true}:null;return this.instantiate(list,_142,args);};}();(function(){var _143=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_143);}else{dojo._loaders.unshift(_143);}})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_144){if(_144){dojo.mixin(this,_144);}},get:function(name){return this[name];},set:function(name,_145){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _146=this[name];this[name]=_145;if(this._watchCallbacks){this._watchCallbacks(name,_146,_145);}return this;},watch:function(name,_147){var _148=this._watchCallbacks;if(!_148){var self=this;_148=this._watchCallbacks=function(name,_149,_14a,_14b){var _14c=function(_14d){if(_14d){_14d=_14d.slice();for(var i=0,l=_14d.length;i<l;i++){try{_14d[i].call(self,name,_149,_14a);}catch(e){console.error(e);}}}};_14c(_148["_"+name]);if(!_14b){_14c(_148["*"]);}};}if(!_147&&typeof name==="function"){_147=name;name="*";}else{name="_"+name;}var _14e=_148[name];if(typeof _14e!=="object"){_14e=_148[name]=[];}_14e.push(_147);return {unwatch:function(){_14e.splice(dojo.indexOf(_14e,_147),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_14f,_150){this.create(_14f,_150);},create:function(_151,_152){this.srcNodeRef=dojo.byId(_152);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_151){this.params=_151;dojo._mixin(this,_151);}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 _153=this.srcNodeRef;if(_153&&_153.parentNode&&this.domNode!==_153){_153.parentNode.replaceChild(this.domNode,_153);}}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 _154=function(attr,_155){if((_155.params&&attr in _155.params)||_155[attr]){_155.set(attr,_155[attr]);}};for(var attr in this.attributeMap){_154(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_154(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_156,_157=ctor.prototype;for(var _158 in _157){if(dojo.isFunction(_157[_158])&&(_156=_158.match(/^_set([a-zA-Z]*)Attr$/))&&_156[1]){r.push(_156[1].charAt(0).toLowerCase()+_156[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _159=this.baseClass.split(" ");if(!this.isLeftToRight()){_159=_159.concat(dojo.map(_159,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_159);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_15a){this._beingDestroyed=true;this.destroyDescendants(_15a);this.destroy(_15a);},destroy:function(_15b){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_15c){dfe(_15c,d.disconnect);});dfe(this._subscribes,function(_15d){dun(_15d);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_15b);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_15e){if(this.bgIframe){this.bgIframe.destroy(_15e);delete this.bgIframe;}if(this.domNode){if(_15e){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_15e){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_15f){dojo.forEach(this.getChildren(),function(_160){if(_160.destroyRecursive){_160.destroyRecursive(_15f);}});},uninitialize:function(){return false;},_setClassAttr:function(_161){var _162=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_162,_161,this["class"]);this._set("class",_161);},_setStyleAttr:function(_163){var _164=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_163)){dojo.style(_164,_163);}else{if(_164.style.cssText){_164.style.cssText+="; "+_163;}else{_164.style.cssText=_163;}}this._set("style",_163);},_attrToDom:function(attr,_165){var _166=this.attributeMap[attr];dojo.forEach(dojo.isArray(_166)?_166:[_166],function(_167){var _168=this[_167.node||_167||"domNode"];var type=_167.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_165)){_165=dojo.hitch(this,_165);}var _169=_167.attribute?_167.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_168,_169,_165);break;case "innerText":_168.innerHTML="";_168.appendChild(dojo.doc.createTextNode(_165));break;case "innerHTML":_168.innerHTML=_165;break;case "class":dojo.replaceClass(_168,_165,this[attr]);break;}},this);},get:function(name){var _16a=this._getAttrNames(name);return this[_16a.g]?this[_16a.g]():this[name];},set:function(name,_16b){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _16c=this._getAttrNames(name);if(this[_16c.s]){var _16d=this[_16c.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_16b);}this._set(name,_16b);}return _16d||this;},_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"});},_set:function(name,_16e){var _16f=this[name];this[name]=_16e;if(this._watchCallbacks&&this._created&&_16e!==_16f){this._watchCallbacks(name,_16f,_16e);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_170,_171){var _172=[dojo._connect(obj,_170,this,_171)];this._connects.push(_172);return _172;},disconnect:function(_173){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_173){dojo.forEach(_173,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_174,_175){var _176=dojo.subscribe(_174,this,_175);this._subscribes.push(_176);return _176;},unsubscribe:function(_177){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_177){dojo.unsubscribe(_177);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_178,_179){if(_178.declaredClass&&_178.addChild){_178.addChild(this,_179);}else{dojo.place(this.domNode,_178,_179);}return this;}});})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_17a,_17b){if(_17a&&dojo.isFunction(_17a._onConnect)){_17a._onConnect(_17b);}});dijit._connectOnUseEventHandler=function(_17c){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _17d=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_17d);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_17d);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_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,create:function(_17e,_17f){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];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_180){if(_180 in this._deferredConnects){var _181=this[this._deferredConnects[_180]||"domNode"];this.connect(_181,_180.toLowerCase(),_180);delete this._deferredConnects[_180];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_182){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_182);},attr:function(name,_183){if(dojo.config.isDebug){var _184=arguments.callee._ach||(arguments.callee._ach={}),_185=(arguments.callee.caller||"unknown caller").toString();if(!_184[_185]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_185,"","2.0");_184[_185]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_186,_187){var d=dojo,dc=d._connect,_188=this.inherited(arguments,[obj,_186=="ondijitclick"?"onclick":_186,_187]);if(_186=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_187);_188.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;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),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);}}));}}return _188;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);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(_189,map,_18a,_18b){_18b=_18b||dojo.global;_18a=_18a?dojo.hitch(_18b,_18a):function(v){return v;};return _189.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_18c,key,_18d){var _18e=dojo.getObject(key,false,map);if(_18d){_18e=dojo.getObject(_18d,false,_18b).call(_18b,_18e,key);}return _18a(_18e,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.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_18f,url,_190){if(typeof _18f=="string"){var _191=dojo.moduleUrl(_18f,url);}else{_191=_18f;_190=url;}var key=_191.toString();var val=_190;if(_190!=undefined&&!dojo.isString(_190)){val=("value" in _190?_190.value:undefined);}var _192=_190&&_190.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_192?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_192?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _193=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_193){val=_193[1];}}else{val="";}return val;};}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,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _194=this.declaredClass,_195=this;return dojo.string.substitute(tmpl,this,function(_196,key){if(key.charAt(0)=="!"){_196=dojo.getObject(key.substr(1),false,_195);}if(typeof _196=="undefined"){throw new Error(_194+" template:"+key);}if(_196==null){return "";}return key.charAt(0)=="!"?_196:_196.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _197=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_197)){node=dojo._toDom(this._stringRepl(_197));if(node.nodeType!=1){throw new Error("Invalid template: "+_197);}}else{node=_197.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_198){var dest=this.containerNode;if(_198&&dest){while(_198.hasChildNodes()){dest.appendChild(_198.firstChild);}}},_attachTemplateNodes:function(_199,_19a){_19a=_19a||function(n,p){return n.getAttribute(p);};var _19b=dojo.isArray(_199)?_199:(_199.all||_199.getElementsByTagName("*"));var x=dojo.isArray(_199)?0:-1;for(;x<_19b.length;x++){var _19c=(x==-1)?_199:_19b[x];if(this.widgetsInTemplate&&(_19a(_19c,"dojoType")||_19a(_19c,"data-dojo-type"))){continue;}var _19d=_19a(_19c,"dojoAttachPoint")||_19a(_19c,"data-dojo-attach-point");if(_19d){var _19e,_19f=_19d.split(/\s*,\s*/);while((_19e=_19f.shift())){if(dojo.isArray(this[_19e])){this[_19e].push(_19c);}else{this[_19e]=_19c;}this._attachPoints.push(_19e);}}var _1a0=_19a(_19c,"dojoAttachEvent")||_19a(_19c,"data-dojo-attach-event");if(_1a0){var _1a1,_1a2=_1a0.split(/\s*,\s*/);var trim=dojo.trim;while((_1a1=_1a2.shift())){if(_1a1){var _1a3=null;if(_1a1.indexOf(":")!=-1){var _1a4=_1a1.split(":");_1a1=trim(_1a4[0]);_1a3=trim(_1a4[1]);}else{_1a1=trim(_1a1);}if(!_1a3){_1a3=_1a1;}this._attachEvents.push(this.connect(_19c,_1a1,_1a3));}}}var role=_19a(_19c,"waiRole");if(role){dijit.setWaiRole(_19c,role);}var _1a5=_19a(_19c,"waiState");if(_1a5){dojo.forEach(_1a5.split(/\s*,\s*/),function(_1a6){if(_1a6.indexOf("-")!=-1){var pair=_1a6.split("-");dijit.setWaiState(_19c,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_1a7){delete this[_1a7];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1a8,_1a9,_1aa){var _1ab=dijit._Templated._templateCache;var key=_1a9||_1a8;var _1ac=_1ab[key];if(_1ac){try{if(!_1ac.ownerDocument||_1ac.ownerDocument==dojo.doc){return _1ac;}}catch(e){}dojo.destroy(_1ac);}if(!_1a9){_1a9=dojo.cache(_1a8,{sanitize:true});}_1a9=dojo.string.trim(_1a9);if(_1aa||_1a9.match(/\$\{([^\}]+)\}/g)){return (_1ab[key]=_1a9);}else{var node=dojo._toDom(_1a9);if(node.nodeType!=1){throw new Error("Invalid template: "+_1a9);}return (_1ab[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1ad=dijit._Templated._templateCache;for(var key in _1ad){var _1ae=_1ad[key];if(typeof _1ae=="object"){dojo.destroy(_1ae);}delete _1ad[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1af,_1b0){var _1b1=this.containerNode;if(_1b0&&typeof _1b0=="number"){var _1b2=this.getChildren();if(_1b2&&_1b2.length>=_1b0){_1b1=_1b2[_1b0-1].domNode;_1b0="after";}}dojo.place(_1af.domNode,_1b1,_1b0);if(this._started&&!_1af._started){_1af.startup();}},removeChild:function(_1b3){if(typeof _1b3=="number"){_1b3=this.getChildren()[_1b3];}if(_1b3){var node=_1b3.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1b4){dojo.forEach(this.getChildren(),function(_1b5){_1b5.destroyRecursive(_1b4);});},_getSiblingOfChild:function(_1b6,dir){var node=_1b6.domNode,_1b7=(dir>0?"nextSibling":"previousSibling");do{node=node[_1b7];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_1b8){return dojo.indexOf(this.getChildren(),_1b8);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1b9){_1b9.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _1ba=dijit.getEnclosingWidget(this.domNode.parentNode);return _1ba&&_1ba.isContainer?_1ba:null;},_getSibling:function(_1bb){var node=this.domNode;do{node=node[_1bb+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},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,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _1bc=this.getParent&&this.getParent();if(!(_1bc&&_1bc.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_1bd,_1be){var node=this.domNode;if(_1bd){dojo.marginBox(node,_1bd);if(_1bd.t){node.style.top=_1bd.t+"px";}if(_1bd.l){node.style.left=_1bd.l+"px";}}var mb=_1be||{};dojo.mixin(mb,_1bd||{});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(_1bf){var cls=this.baseClass+"-child "+(_1bf.baseClass?this.baseClass+"-"+_1bf.baseClass:"");dojo.addClass(_1bf.domNode,cls);},addChild:function(_1c0,_1c1){this.inherited(arguments);if(this._started){this._setupChild(_1c0);}},removeChild:function(_1c2){var cls=this.baseClass+"-child"+(_1c2.baseClass?" "+this.baseClass+"-"+_1c2.baseClass:"");dojo.removeClass(_1c2.domNode,cls);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 _1c3=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1c4,dim){_1c4.resize?_1c4.resize(dim):dojo.marginBox(_1c4.domNode,dim);dojo.mixin(_1c4,dojo.marginBox(_1c4.domNode));dojo.mixin(_1c4,dim);};dijit.layout.layoutChildren=function(_1c5,dim,_1c6,_1c7,_1c8){dim=dojo.mixin({},dim);dojo.addClass(_1c5,"dijitLayoutContainer");_1c6=dojo.filter(_1c6,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_1c6,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_1c6,function(_1c9){var elm=_1c9.domNode,pos=(_1c9.region||_1c9.layoutAlign);var _1ca=elm.style;_1ca.left=dim.l+"px";_1ca.top=dim.t+"px";_1ca.bottom=_1ca.right="auto";dojo.addClass(elm,"dijitAlign"+_1c3(pos));var _1cb={};if(_1c7&&_1c7==_1c9.id){_1cb[_1c9.region=="top"||_1c9.region=="bottom"?"h":"w"]=_1c8;}if(pos=="top"||pos=="bottom"){_1cb.w=dim.w;size(_1c9,_1cb);dim.h-=_1c9.h;if(pos=="top"){dim.t+=_1c9.h;}else{_1ca.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1cb.h=dim.h;size(_1c9,_1cb);dim.w-=_1c9.w;if(pos=="left"){dim.l+=_1c9.w;}else{_1ca.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1c9,dim);}}}});};})();}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1cc){if(!this.disabled){switch(_1cc.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _1cd=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_1cd);});break;}}},_setStateClass:function(){var _1ce=this.baseClass.split(" ");function _1cf(_1d0){_1ce=_1ce.concat(dojo.map(_1ce,function(c){return c+_1d0;}),"dijit"+_1d0);};if(!this.isLeftToRight()){_1cf("Rtl");}if(this.checked){_1cf("Checked");}if(this.state){_1cf(this.state);}if(this.selected){_1cf("Selected");}if(this.disabled){_1cf("Disabled");}else{if(this.readOnly){_1cf("ReadOnly");}else{if(this.active){_1cf("Active");}else{if(this.hovering){_1cf("Hover");}}}}if(this._focused){_1cf("Focused");}var tn=this.stateNode||this.domNode,_1d1={};dojo.forEach(tn.className.split(" "),function(c){_1d1[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1d1[c];});}dojo.forEach(_1ce,function(c){_1d1[c]=true;});var _1d2=[];for(var c in _1d1){_1d2.push(c);}tn.className=_1d2.join(" ");this._stateClasses=_1ce;},_trackMouseState:function(node,_1d3){var _1d4=false,_1d5=false,_1d6=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1d7(){var _1d8=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1d3+"Hover",_1d4&&!_1d5&&!_1d8);dojo.toggleClass(node,_1d3+"Active",_1d5&&!_1d8);dojo.toggleClass(node,_1d3+"Focused",_1d6&&!_1d8);};cn("onmouseenter",function(){_1d4=true;_1d7();});cn("onmouseleave",function(){_1d4=false;_1d5=false;_1d7();});cn("onmousedown",function(){_1d5=true;_1d7();});cn("onmouseup",function(){_1d5=false;_1d7();});cn("onfocus",function(){_1d6=true;_1d7();});cn("onblur",function(){_1d6=false;_1d7();});this.watch("disabled",_1d7);this.watch("readOnly",_1d7);}});}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,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1d9){this._set("disabled",_1d9);dojo.attr(this.focusNode,"disabled",_1d9);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1d9);}dijit.setWaiState(this.focusNode,"disabled",_1d9);if(_1d9){this._set("hovering",false);this._set("active",false);var _1da="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1da)?_1da:[_1da],function(_1db){var node=this[_1db];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_1dc){dojo.deprecated("setDisabled("+_1dc+") is deprecated. Use set('disabled',"+_1dc+") instead.","","2.0");this.set("disabled",_1dc);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},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(_1dd){},_onChangeActive:false,_handleOnChange:function(_1de,_1df){if(this._lastValueReported==undefined&&(_1df===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1de;}this._pendingOnChange=this._pendingOnChange||(typeof _1de!=typeof this._lastValueReported)||(this.compare(_1de,this._lastValueReported)!=0);if((this.intermediateChanges||_1df||_1df===undefined)&&this._pendingOnChange){this._lastValueReported=_1de;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1de);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_1e0){dojo.deprecated("dijit.form._FormWidget:setValue("+_1e0+") is deprecated.  Use set('value',"+_1e0+") instead.","","2.0");this.set("value",_1e0);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _1e1=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1e1);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1e2){dojo.attr(this.focusNode,"readOnly",_1e2);dijit.setWaiState(this.focusNode,"readonly",_1e2);this._set("readOnly",_1e2);},postCreate:function(){this.inherited(arguments);if(dojo.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_1e3,_1e4){this._handleOnChange(_1e3,_1e4);},_handleOnChange:function(_1e5,_1e6){this._set("value",_1e5);this.inherited(arguments);},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||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _1e7=this.domNode;var _1e8=_1e7.parentNode;var _1e9=_1e7.firstChild||_1e7;var _1ea=_1e9.style.filter;var _1eb=this;while(_1e8&&_1e8.clientHeight==0){(function ping(){var _1ec=_1eb.connect(_1e8,"onscroll",function(e){_1eb.disconnect(_1ec);_1e9.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1e9.style.filter=_1ea;},0);});})();_1e8=_1e8.parentNode;}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_1ed,_1ee){var _1ef=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_1ed,function(code){_1ef[code]=prev;});dojo.forEach(_1ee,function(code){_1ef[code]=next;});_1ef[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_1ef[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_1f0,_1f1){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_1f0);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _1f2=this._getFirstFocusableChild();if(_1f2){this.focusChild(_1f2);}},focusLastChild:function(){var _1f3=this._getLastFocusableChild();if(_1f3){this.focusChild(_1f3);}},focusNext:function(){var _1f4=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_1f4);},focusPrev:function(){var _1f5=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_1f5,true);},focusChild:function(_1f6,last){if(this.focusedChild&&_1f6!==this.focusedChild){this._onChildBlur(this.focusedChild);}_1f6.focus(last?"end":"start");this._set("focusedChild",_1f6);},_startupChild:function(_1f7){_1f7.set("tabIndex","-1");this.connect(_1f7,"_onFocus",function(){_1f7.set("tabIndex",this.tabIndex);});this.connect(_1f7,"_onBlur",function(){_1f7.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_1f8){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_1f9,dir){if(_1f9){_1f9=this._getSiblingOfChild(_1f9,dir);}var _1fa=this.getChildren();for(var i=0;i<_1fa.length;i++){if(!_1f9){_1f9=_1fa[(dir>0)?0:(_1fa.length-1)];}if(_1f9.isFocusable()){return _1f9;}_1f9=this._getSiblingOfChild(_1f9,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_1fb){if(_1fb&&!("label" in this.params)){this.set("label",_1fb.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _1fc=this.id+"_text";dojo.attr(this.containerNode,"id",_1fc);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_1fc+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_1fc);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_1fd){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_1fd);},setLabel:function(_1fe){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_1fe);},setDisabled:function(_1ff){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_1ff);},_setDisabledAttr:function(_200){dijit.setWaiState(this.focusNode,"disabled",_200?"true":"false");this._set("disabled",_200);},_setAccelKeyAttr:function(_201){this.accelKeyNode.style.display=_201?"":"none";this.accelKeyNode.innerHTML=_201;dojo.attr(this.containerNode,"colSpan",_201?"1":"2");this._set("accelKey",_201);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _202=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_202[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_203){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_203);dijit.setWaiState(this.domNode,"checked",_203);this._set("checked",_203);},onChange:function(_204){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_205){_205.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_206){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _207=this._getTopMenu();if(_207&&_207._isMenuBar){_207.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _208=this.currentPopup.parentMenu;if(_208.focusedChild){_208.focusedChild._setSelected(false);}_208.focusedChild=this.currentPopup.from_item;_208.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _209=item.popup;if(_209){this._stopPendingCloseTimer(_209);_209._pendingClose_timer=setTimeout(function(){_209._pendingClose_timer=null;if(_209.parentMenu){_209.parentMenu.currentPopup=null;}dijit.popup.close(_209);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_20a){if(_20a._pendingClose_timer){clearTimeout(_20a._pendingClose_timer);_20a._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _20b=this.focusedChild;if(!_20b){return;}var _20c=_20b.popup;if(_20c.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_20c.parentMenu=this;_20c.from_item=_20b;var self=this;dijit.popup.open({parent:this,popup:_20c,around:_20b.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_20b);self._cleanUp();_20b._setSelected(true);self.focusedChild=_20b;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_20c;_20c.connect(_20c.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_20c.focus){_20c._focus_timer=setTimeout(dojo.hitch(_20c,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _20d=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_20e){var win=dojo.window.get(this._iframeContentDocument(_20e))||this._iframeContentDocument(_20e)["__parent__"]||(_20e.name&&dojo.doc.frames[_20e.name])||null;return win;},_iframeContentDocument:function(_20f){var doc=_20f.contentDocument||(_20f.contentWindow&&_20f.contentWindow.document)||(_20f.name&&dojo.doc.frames[_20f.name]&&dojo.doc.frames[_20f.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _210=node,win=this._iframeContentWindow(_210);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _211={node:node,iframe:_210};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_211));var _212=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_210,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_210);}})];});_211.connects=cn?_212(cn):[];if(_210){_211.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_210);cn=dojo.withGlobal(win,dojo.body);_211.connects=_212(cn);});if(_210.addEventListener){_210.addEventListener("load",_211.onloadHandler,false);}else{_210.attachEvent("onload",_211.onloadHandler);}}},unBindDomNode:function(_213){var node;try{node=dojo.byId(_213);}catch(e){return;}var _214="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_214)){var bid=dojo.attr(node,_214)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _215=b.iframe;if(_215){if(_215.removeEventListener){_215.removeEventListener("load",b.onloadHandler,false);}else{_215.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_214);delete this._bindings[bid];}},_scheduleOpen:function(_216,_217,_218){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_216,iframe:_217,coords:_218});}),1);}},_openMyself:function(args){var _219=args.target,_21a=args.iframe,_21b=args.coords;if(_21b){if(_21a){var od=_219.ownerDocument,ifc=dojo.position(_21a,true),win=this._iframeContentWindow(_21a),_21c=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_21a),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_21a,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_21a,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_21a,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_21a,cs.borderTopWidth):0);_21b.x+=ifc.x+left-_21c.x;_21b.y+=ifc.y+top-_21c.y;}}else{_21b=dojo.position(_219,true);_21b.x+=10;_21b.y+=10;}var self=this;var _21d=dijit.getFocus(this);function _21e(){if(self.refocus){dijit.focus(_21d);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_21b.x,y:_21b.y,onExecute:_21e,onCancel:_21e,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _21f={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _21f){ds.fontSize=p;_21f[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _21f;};var _220=null;dhm.getCachedFontMeasurements=function(_221){if(_221||!_220){_220=dhm.getFontMeasurements();}return _220;};var _222=null,_223={};dhm.getTextBox=function(text,_224,_225){var m,s;if(!_222){m=_222=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_222;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_224){for(var i in _224){if(i in _223){continue;}s[i]=_224[i];}}if(arguments.length>2&&_225){m.className=_225;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _226={w:16,h:16};dhm.getScrollbar=function(){return {w:_226.w,h:_226.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_227){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_226.w=n.offsetWidth-n.clientWidth;_226.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_228,_229){if(_229>=0){var s=_228.style;var v=_229+"px";if(_228&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_22a,_22b,_22c,_22d){var evts=(_22d?_22d:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_22b.connect(_22a,"on"+evts[i],_22c);}};dgu.removeNode=function(_22e){_22e=dojo.byId(_22e);_22e&&_22e.parentNode&&_22e.parentNode.removeChild(_22e);return _22e;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_22f,_230,_231){if(_22f.length<=_230){_22f[_230]=_231;}else{_22f.splice(_230,0,_231);}};dgu.arrayRemove=function(_232,_233){_232.splice(_233,1);};dgu.arraySwap=function(_234,inI,inJ){var _235=_234[inI];_234[inI]=_234[inJ];_234[inJ]=_235;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _236=function(_237){var i=0,n,p=_237.parentNode;while((n=p.childNodes[i++])){if(n==_237){return i-1;}}return -1;};var _238=function(_239){if(!_239){return;}var _23a=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_239,true);};var ws=dijit.registry.filter(_23a);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _23b=function(_23c){var node=dojo.byId(_23c);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _23d=function(_23e,_23f){var _240=[];var i=0,n;while((n=_23e.childNodes[i])){i++;if(_23b(n)==_23f){_240.push(n);}}return _240;};var _241=function(_242){return _23d(_242,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_243){this.setContentNodes(_243);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_244,_245,_246){switch(arguments.length){case 3:this.rowsPerPage=_246;case 2:this.keepRows=_245;case 1:this.rowCount=_244;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_247,_248){return _247?(Math.ceil(_247/_248)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_249){this.keepRows=_249;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_24a){this.contentNodes=_24a;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_24b){this.invalidateNodes();this.rowCount=_24b;var _24c=this.pageCount;if(_24c===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_24c){for(var i=_24c-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_24c){this.height+=this.defaultPageHeight*(this.pageCount-_24c-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_24d){return Boolean(this.getDefaultPageNode(_24d));},measurePage:function(_24e){if(this.grid.rowHeight){var _24f=this.grid.rowHeight+1;return ((_24e+1)*this.rowsPerPage>this.rowCount?this.rowCount-_24e*this.rowsPerPage:this.rowsPerPage)*_24f;}var n=this.getDefaultPageNode(_24e);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_250,_251){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_250].style.top=_251+"px";}},repositionPages:function(_252){var _253=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_253[_252];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_252):0);for(var p=_252+1;p<=last;p++){n=_253[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_254){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_254]);}},preparePage:function(_255,_256){var p=(_256?this.popPage():null);for(var i=0;i<this.colCount;i++){var _257=this.pageNodes[i];var _258=(p===null?this.createPageNode():this.invalidatePageNode(p,_257));_258.pageIndex=_255;_257[_255]=_258;}},renderPage:function(_259){var _25a=[];var i,j;for(i=0;i<this.colCount;i++){_25a[i]=this.pageNodes[i][_259];}for(i=0,j=_259*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_25a);}},removePage:function(_25b){for(var i=0,j=_25b*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_25c){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_25c,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_25d){},pacifying:false,pacifyTicks:200,setPacifying:function(_25e){if(this.pacifying!=_25e){this.pacifying=_25e;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _25f=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _25f;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _260=(!this._invalidating);if(!_260){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_260=true;}}if(_260){this.needPage(this.page,this.pageTop);}var _261=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _262=this.getPageHeight(this.page);this.averageRowHeight=(_262>0&&_261>0)?(_262/_261):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _263=this.pageCount-1;var _264=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_263]=_264;return _264;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_265,_266,_267){if(this.pageExists(_265)){var oh=this.getPageHeight(_265);var h=(this.measurePage(_265));if(h===undefined){h=oh;}this.pageHeights[_265]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_266)){if(!_267){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_265);}}else{this.repositionPages(_265);}}return h;}return 0;},rowHeightChanged:function(_268,_269){this.updatePageHeight(Math.floor(_268/this.rowsPerPage),false,_269);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_26a){var ph=this.pageHeights[_26a];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_26b){return this.stack.push(_26b);},popPage:function(){return this.stack.shift();},findPage:function(_26c){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_26c){break;}}this.page=i;this.pageTop=h;},buildPage:function(_26d,_26e,_26f){this.preparePage(_26d,_26e);this.positionPage(_26d,_26f);this.installPage(_26d);this.renderPage(_26d);this.pushPage(_26d);},needPage:function(_270,_271){var h=this.getPageHeight(_270),oh=h;if(!this.pageExists(_270)){this.buildPage(_270,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_271);h=this.updatePageHeight(_270,true);}else{this.positionPage(_270,_271);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_272){this.grid.scrollTop=_272;if(this.colCount){this.startPacify();this.findPage(_272);var h=this.height;var b=this.getScrollBottom(_272);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_272);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_273){return (this.windowHeight>=0?_273+this.windowHeight:-1);},processNodeEvent:function(e,_274){var t=e.target;while(t&&(t!=_274)&&t.parentNode&&(t.parentNode.parentNode!=_274)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_274)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_236(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_275,_276){},removeRow:function(_277){},getDefaultPageNode:function(_278){return this.getDefaultNodes()[_278];},positionPageNode:function(_279,_27a){},getPageNodePosition:function(_27b){return _27b.offsetTop;},invalidatePageNode:function(_27c,_27d){var p=_27d[_27c];if(p){delete _27d[_27c];this.removePage(_27c,p);_238(p);p.innerHTML="";}return p;},getPageRow:function(_27e){return _27e*this.rowsPerPage;},getLastPageRow:function(_27f){return Math.min(this.rowCount,this.getPageRow(_27f+1))-1;},getFirstVisibleRow:function(_280,_281,_282){if(!this.pageExists(_280)){return 0;}var row=this.getPageRow(_280);var _283=this.getDefaultNodes();var rows=_241(_283[_280]);for(var i=0,l=rows.length;i<l&&_281<_282;i++,row++){_281+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_284,_285,_286){if(!this.pageExists(_284)){return 0;}var _287=this.getDefaultNodes();var row=this.getLastPageRow(_284);var rows=_241(_287[_284]);for(var i=rows.length-1;i>=0&&_285>_286;i--,row--){_285-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_288){var _289=this.getDefaultNodes();var rows=_241(_289[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_288){this.offset=h-(t-_288);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_28a){var _28b=Math.floor(_28a/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_28b;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_28b;this.needPage(_28b,this.pageTop);var _28c=this.getDefaultNodes();var rows=_241(_28c[_28b]);var r=_28a-this.rowsPerPage*_28b;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _28d=function(_28e){try{dojox.grid.util.fire(_28e,"focus");dojox.grid.util.fire(_28e,"select");}catch(e){}};var _28f=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_290){this._props=_290||{};dojo.mixin(this,_290);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_291,_292){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_291!=this.defaultValue&&f)?f.apply(s,_292):_291;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_293,_294){var f,i=this.grid.edit.info,d=this.get?this.get(_293,_294):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_293&&i.cell==this))){return this.formatEditing(d,_293);}else{return this._defaultFormat(d,[d,_293,this]);}},formatEditing:function(_295,_296){},getNode:function(_297){return this.view.getCellNode(_297,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_298){return (this.getNode(_298)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_299,_29a){this.grid.edit.applyCellEdit(_299,this,_29a);},cancelEdit:function(_29b){this.grid.doCancelEdit(_29b);},_onEditBlur:function(_29c){if(this.grid.edit.isEditCell(_29c,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_29d,_29e){if(this.commitOnBlur){dojo.connect(_29d,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_29e),250);});}},needFormatNode:function(_29f,_2a0){this._formatPending=true;_28f(this,"_formatNode",_29f,_2a0);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_2a1,_2a2){if(this._formatPending){this._formatPending=false;dojo.setSelectable(this.grid.domNode,true);this.formatNode(this.getEditNode(_2a2),_2a1,_2a2);}},formatNode:function(_2a3,_2a4,_2a5){if(dojo.isIE){_28f(this,"focus",_2a5,_2a3);}else{this.focus(_2a5,_2a3);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_2a6){return this.getEditNode(_2a6)[this._valueProp];},setValue:function(_2a7,_2a8){var n=this.getEditNode(_2a7);if(n){n[this._valueProp]=_2a8;}},focus:function(_2a9,_2aa){_28d(_2aa||this.getEditNode(_2a9));},save:function(_2ab){this.value=this.value||this.getValue(_2ab);},restore:function(_2ac){this.setValue(_2ac,this.value);},_finish:function(_2ad){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_2ae){this.applyEdit(this.getValue(_2ae),_2ae);this._finish(_2ae);},cancel:function(_2af){this.cancelEdit(_2af);this._finish(_2af);}});dgc._Base.markupFactory=function(node,_2b0){var d=dojo;var _2b1=d.trim(d.attr(node,"formatter")||"");if(_2b1){_2b0.formatter=dojo.getObject(_2b1)||_2b1;}var get=d.trim(d.attr(node,"get")||"");if(get){_2b0.get=dojo.getObject(get);}var _2b2=function(attr,cell,_2b3){var _2b4=d.trim(d.attr(node,attr)||"");if(_2b4){cell[_2b3||attr]=!(_2b4.toLowerCase()=="false");}};_2b2("sortDesc",_2b0);_2b2("editable",_2b0);_2b2("alwaysEditing",_2b0);_2b2("noresize",_2b0);_2b2("draggable",_2b0);var _2b5=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_2b5){_2b0.defaultValue=_2b5;}var _2b6=function(attr,cell,_2b7){var _2b8=d.trim(d.attr(node,attr)||"")||undefined;if(_2b8){cell[_2b7||attr]=_2b8;}};_2b6("styles",_2b0);_2b6("headerStyles",_2b0);_2b6("cellStyles",_2b0);_2b6("classes",_2b0);_2b6("headerClasses",_2b0);_2b6("cellClasses",_2b0);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_2b9,_2ba){this.needFormatNode(_2b9,_2ba);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_2b9+"\">";},formatNode:function(_2bb,_2bc,_2bd){this.inherited(arguments);this.registerOnBlur(_2bb,_2bd);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_2be){this.inherited(arguments);var n=this.getEditNode(_2be);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_2bf){dgc._Base.markupFactory(node,_2bf);var d=dojo;var _2c0=d.trim(d.attr(node,"keyFilter")||"");if(_2c0){_2bf.keyFilter=new RegExp(_2c0);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_2c1){return _2c1+1;}});dgc.RowIndex.markupFactory=function(node,_2c2){dgc.Cell.markupFactory(node,_2c2);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_2c3){this.values=this.values||this.options;},formatEditing:function(_2c4,_2c5){this.needFormatNode(_2c4,_2c5);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){h.push("<option",(_2c4==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_2c6){var n=this.getEditNode(_2c6);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _2c7=d.trim(d.attr(node,"options")||"");if(_2c7){var o=_2c7.split(",");if(o[0]!=_2c7){cell.options=o;}}var _2c8=d.trim(d.attr(node,"values")||"");if(_2c8){var v=_2c8.split(",");if(v[0]!=_2c8){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_2c9,_2ca){this.formatNode(this.getEditNode(_2ca),_2c9,_2ca);},applyStaticValue:function(_2cb){var e=this.grid.edit;e.applyCellEdit(this.getValue(_2cb),this,_2cb);e.start(this,_2cb,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_2cc,_2cd){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_2cc?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;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;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;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.window.getBox(),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.position(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 _2ce=n.scrollLeft,_2cf=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_2ce!=n.scrollLeft||_2cf!=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);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;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,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},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,_2d0){this.node=dojo.byId(node);if(!_2d0){_2d0={};}this.handle=_2d0.handle?dojo.byId(_2d0.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_2d0.delay>0?_2d0.delay:0;this.skip=_2d0.skip;this.mover=_2d0.mover?_2d0.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_2d1,node){return new dojo.dnd.Moveable(node,_2d1);},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,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.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(_2d2){dojo.publish("/dnd/move/start",[_2d2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_2d3){dojo.publish("/dnd/move/stop",[_2d3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_2d4,e){},onMove:function(_2d5,_2d6,e){this.onMoving(_2d5,_2d6);var s=_2d5.node.style;s.left=_2d6.l+"px";s.top=_2d6.t+"px";this.onMoved(_2d5,_2d6);},onMoving:function(_2d7,_2d8){},onMoved:function(_2d9,_2da){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _2db=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _2dc=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _2dd=function(_2de,_2df){return _2de&&((_2de.rows||0)[_2df]||_2de.childNodes[_2df]);};var _2e0=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _2e1=function(_2e2,_2e3){for(var n=_2e2;n&&_2e3(n);n=n.parentNode){}return n;};var _2e4=function(_2e5){var name=_2e5.toUpperCase();return function(node){return node.tagName!=name;};};var _2e6=dojox.grid.util.rowIndexTag;var _2e7=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_2e8,_2e9,_2ea,_2eb){var _2ec=[],html;if(_2eb){var _2ed=_2e8.index!=_2e8.grid.getSortIndex()?"":_2e8.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_2e8.id){_2e8.id=this.grid.id+"Hdr"+_2e8.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_2ed,"id=\"",_2e8.id,"\""];}else{var _2ee=this.grid.editable&&!_2e8.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_2ee];}if(_2e8.colSpan){html.push(" colspan=\"",_2e8.colSpan,"\"");}if(_2e8.rowSpan){html.push(" rowspan=\"",_2e8.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_2e8.classes){html.push(_2e8.classes," ");}if(_2ea){html.push(_2ea," ");}_2ec.push(html.join(""));_2ec.push("");html=["\" idx=\"",_2e8.index,"\" style=\""];if(_2e9&&_2e9[_2e9.length-1]!=";"){_2e9+=";";}html.push(_2e8.styles,_2e9||"",_2e8.hidden?"display:none;":"");if(_2e8.unitWidth){html.push("width:",_2e8.unitWidth,";");}_2ec.push(html.join(""));_2ec.push("");html=["\""];if(_2e8.attrs){html.push(" ",_2e8.attrs);}html.push(">");_2ec.push(html.join(""));_2ec.push("");_2ec.push(_2eb?"</th>":"</td>");return _2ec;},isCellNode:function(_2ef){return Boolean(_2ef&&_2ef!=dojo.doc&&dojo.attr(_2ef,"idx"));},getCellNodeIndex:function(_2f0){return _2f0?Number(dojo.attr(_2f0,"idx")):-1;},getCellNode:function(_2f1,_2f2){for(var i=0,row;(row=_2dd(_2f1.firstChild,i));i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_2f2){return cell;}}}return null;},findCellTarget:function(_2f3,_2f4){var n=_2f3;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_2e7 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_2e7]!=this.view.id))&&(n!=_2f4)){n=n.parentNode;}return n!=_2f4?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_2f5,_2f6){var n=_2f5;while(n&&(n!=this.domNode)&&(!(_2f6 in n)||(_2e7 in n&&n[_2e7]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_2f7){return this.findTarget(_2f7,_2e6);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _2f8=this.grid.get,_2f9=this.view.structure.cells;for(var j=0,row;(row=_2f9[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_2f8;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_2fa,_2fb){var html=this.getTableArray(),v=this.view,_2fc=v.structure.cells,item=this.grid.getItem(_2fb);dojox.grid.util.fire(this.view,"onBeforeRow",[_2fb,_2fc]);for(var j=0,row;(row=_2fc[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_2fb,item);m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_2e6];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_2fd,_2fe){var html=this.getTableArray(),_2ff=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_2ff]);for(var j=0,row;(row=_2ff[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_300;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_300=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_300[5]=(_2fe!=undefined?_2fe:_2fd(cell));_300[3]=cell.customStyles.join(";");_300[1]=cell.customClasses.join(" ");html.push(_300.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz){n=_2e1(e.target,_2e4("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_2e1(n,_2e4("table"));x-=(table&&table.offsetLeft)||0;}}n=_2e1(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_2db(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_301){var _302=dojo.contentBox(e.sourceView.headerNode);if(_301){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _303=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_303.h+_302.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _304=[],_305=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_305[i]);i++){_304.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _306=e.grid.views.views;var _307=[];for(var j=view.idx+adj,_308;(_308=_306[j]);j=j+adj){_307.push({node:_308.headerNode,left:window.parseInt(_308.headerNode.style.left)});}var _309=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_302.w,table:_309,tw:dojo.contentBox(_309).w,spanners:_304,followers:_307};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_30a,_30b,_30c){var _30d=_30c.l;var data={deltaX:_30d,w:_30a.w+(dojo._isBodyLtr()?_30d:-_30d),vw:_30a.vw+_30d,tw:_30a.tw+_30d};this.dragRecord={inDrag:_30a,mover:_30b,leftTop:_30c};if(data.w>=this.minColWidth){if(!_30b){this.doResizeNow(_30a,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_30e){if(this.dragRecord){var _30f=this.dragRecord.leftTop;var _310=dojo._isBodyLtr()?_30f.l:-_30f.l;_310+=Math.max(_30e.w+_310,this.minColWidth)-(_30e.w+_310);if(dojo.isWebKit&&_30e.spanners.length){_310+=dojo._getPadBorderExtents(_30e.spanners[0].node).w;}var data={deltaX:_310,w:_30e.w+_310,vw:_30e.vw+_310,tw:_30e.tw+_310};this.doResizeNow(_30e,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_30e.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_30e.index);},doResizeNow:function(_311,data){_311.view.convertColPctToFixed();if(_311.view.flexCells&&!_311.view.testFlexCells()){var t=_2e0(_311.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_311.spanners[i]);i++){sw=s.width+data.deltaX;s.node.style.width=sw+"px";_311.view.setColWidth(s.index,sw);}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_311.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_311.node.style.width=data.w+"px";_311.view.setColWidth(_311.index,data.w);_311.view.headerNode.style.width=data.vw+"px";_311.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_311.view.headerNode.scrollLeft=_311.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_312){var _313=_312.length;if(!_313){return;}this.map=[];var row;for(var k=0;(row=_312[k]);k++){this.map[k]=[];}for(var j=0;(row=_312[j]);j++){for(var i=0,x=0,cell,_314,_315;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_315=cell.rowSpan||1;_314=cell.colSpan||1;for(var y=0;y<_315;y++){for(var s=0;s<_314;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_314;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_316,_317){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_317&&cell.r==_316){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_318,_319,_31a){var row=_318&&_318.rows[_319];return row&&row.cells[_31a];},_findOverlappingNodes:function(_31b,_31c,_31d){var _31e=[];var m=this.getMapCoords(_31c,_31d);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_31b,rw.r,rw.c):null);if(n){_31e.push(n);}}return _31e;},findOverlappingNodes:function(_31f){return this._findOverlappingNodes(_2e0(_31f),_2dc(_31f.parentNode),_2db(_31f));}});})();}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_320){this.node=dojo.byId(node);if(!_320){_320={};}this.creator=_320.creator||null;this.skipForm=_320.skipForm;this.parent=_320.dropParent&&dojo.byId(_320.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_320&&_320._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_321,_322){if(!this.parent.firstChild){_322=null;}else{if(_321){if(!_322){_322=this.parent.firstChild;}}else{if(_322){_322=_322.nextSibling;}}}if(_322){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_322);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_323,node){_323._skipStartup=true;return new dojo.dnd.Container(node,_323);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_324){var _325="dojoDnd"+type;var _326=type.toLowerCase()+"State";dojo.replaceClass(this.node,_325+_324,_325+this[_326]);this[_326]=_324;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _327=node.parentNode;_327;node=_327,_327=node.parentNode){if(_327==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _328=item&&dojo.isObject(item),data,type,n;if(_328&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_328&&item.data)?item.data:item;type=(_328&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_329){if(!_329){_329={};}this.singular=_329.singular;this.autoSync=_329.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_32a,data,_32b,_32c){var _32d=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_32d.call(this,item,hint);if(_32a){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_32b,_32c);this._normalizedCreator=_32d;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_32e,node){_32e._skipStartup=true;return new dojo.dnd.Selector(node,_32e);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_32f){this.manager=_32f;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_330=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_330.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_330.creator){node=_330._normalizedCreator(_330.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _331=dojo.create("table"),_332=dojo.create("tbody",null,_331);_332.appendChild(node);node=_331;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_333){if(this.avatar){this.target=(_333&&_333.targetState!="Disabled")?_333:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_333]);},outSource:function(_334){if(this.avatar){if(this.target==_334){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_335,_336,copy){this.source=_335;this.nodes=_336;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_335,_336,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _337=Boolean(this.target&&flag);if(this.canDropFlag!=_337){this.canDropFlag=_337;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_338=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_338);dojo.publish("/dnd/drop",_338);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_339){dojo.mixin(this,dojo.mixin({},_339));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_33a,_33b){if(this==_33a){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_33b.length;++i){var type=_33a.getItem(_33b[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_33c,self){if(_33c){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_33d,node){_33d._skipStartup=true;return new dojo.dnd.Source(node,_33d);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _33e=this.getSelectedNodes();if(_33e.length){m.startDrag(this,_33e,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _33f=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_33f=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_33f=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_33f!=this.before){this._markTargetAnchor(_33f);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_340){if(this!=_340){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_341,_342,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_341?(copy?"Copied":"Moved"):"");}var _343=this.accept&&this.checkAcceptance(_341,_342);this._changeState("Target",_343?"":"Disabled");if(this==_341){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_344,_345,copy,_346){if(this==_346){this.onDrop(_344,_345,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_347,_348,copy){if(this!=_347){this.onDropExternal(_347,_348,copy);}else{this.onDropInternal(_348,copy);}},onDropExternal:function(_349,_34a,copy){var _34b=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _34b.call(this,_349.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_349.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_349.getItem(node.id);_349.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_349.selectNone();}this.insertNodes(true,_34a,this.before,this.current);if(!copy&&this.creator){_349.deleteSelectedNodes();}this._normalizedCreator=_34b;},onDropInternal:function(_34c,copy){var _34d=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _34d.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_34c,this.before,this.current);this._normalizedCreator=_34d;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_34e){if(this.current==this.targetAnchor&&this.before==_34e){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_34e;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_34f){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_350,node){_350._skipStartup=true;return new dojo.dnd.Target(node,_350);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_351){this.autoSync=true;},markupFactory:function(_352,node){_352._skipStartup=true;return new dojo.dnd.AutoSource(node,_352);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _353=function(_354,_355){return _354.style.cssText==undefined?_354.getAttribute("style"):_354.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_356){var vs=(this.structure=_356);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_357){if(_357){dojo.forEach(dojo.query("[widgetId]",_357).map(dijit.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_358,_359){this._onBeforeRow(_358,_359);if(_358>=0){this._cleanupRowWidgets(this.getRowNode(_358));}},onAfterRow:function(_35a,_35b,_35c){this._onAfterRow(_35a,_35b,_35c);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_35c),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _35d=window.parseInt(dojo.attr(n,"cellIdx"),10);var _35e=g.getCell(_35d);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _35f=this.hasVScrollbar();var _360=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_360||_360=="hidden"){_35f=false;}else{if(_360=="scroll"){_35f=true;}}return (_35f?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?h.firstChild.offsetWidth:0;},setColumnsWidth:function(_361){this.headerContentNode.firstChild.style.width=_361+"px";if(this.viewWidth){this.viewWidth=_361+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _362=this.grid.layout.cells;var _363=dojo.hitch(this,function(node,_364){!dojo._isBodyLtr()&&(_364=!_364);var inc=_364?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_362[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_362[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _365="dojoxGrid_bottomMarker";var _366="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_365);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_366);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_365,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_366,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _367=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_368){var src=this.source;if(src.current==src.targetAnchor&&src.before==_368){return;}if(src.targetAnchor&&_363(src.targetAnchor,src.before)){src._removeItemClass(_363(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_368);var _369=_368?src.targetAnchor:_363(src.targetAnchor,src.before);var _36a=0;if(!_369){_369=src.targetAnchor;_36a=dojo.contentBox(_369).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_369,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_36a);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_367+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_363(src.targetAnchor,src.before)){src._addItemClass(_363(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_363(src.targetAnchor,src.before)){src._removeItemClass(_363(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_36b,_36c,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _36d=this.grid.views.views;var _36e=_36d[_36b.viewIndex];var _36f=_36d[this.index];if(_36f!=_36e){_36e.convertColPctToFixed();_36f.convertColPctToFixed();}},_onDndDrop:function(_370,_371,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _372=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_371[0]).w;if(_370.viewIndex!==this.index){var _373=this.grid.views.views;var _374=_373[_370.viewIndex];var _375=_373[this.index];if(_374.viewWidth&&_374.viewWidth!="auto"){_374.setColumnsWidth(_374.getColumnsWidth()-w);}if(_375.viewWidth&&_375.viewWidth!="auto"){_375.setColumnsWidth(_375.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _376=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_376.moveColumn(_370.viewIndex,idx,_372(_371[0]),_372(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_377){var n=_377.name||_377.grid.getCellName(_377);var ret=["<div class=\"dojoxGridSortNode"];if(_377.index!=_377.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_377.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_377.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_378){var _379=this._hasHScroll||false;if(this._hasHScroll==undefined||_378){if(this.noscroll){this._hasHScroll=false;}else{var _37a=dojo.style(this.scrollboxNode,"overflow");if(_37a=="hidden"){this._hasHScroll=false;}else{if(_37a=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_379!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_37b){var _37c=this._hasVScroll||false;if(this._hasVScroll==undefined||_37b){if(this.noscroll){this._hasVScroll=false;}else{var _37d=dojo.style(this.scrollboxNode,"overflow");if(_37d=="hidden"){this._hasVScroll=false;}else{if(_37d=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_37c!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _37e=false;this.grid.initialWidth="";var _37f=dojo.query("th",this.headerContentNode);var _380=dojo.map(_37f,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_37e=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_37e){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _381=cell.view.getHeaderCellNode(cell.index);if(_381&&dojo.hasAttr(_381,"vIdx")){var vIdx=window.parseInt(dojo.attr(_381,"vIdx"));this.setColWidth(idx,_380[vIdx]);dojo.removeAttr(_381,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_382){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _383=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_382||(this.noscroll&&_383())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_384){var _385=this.createRowNode(_384);this.buildRow(_384,_385);this.grid.edit.restore(this,_384);return _385;},createRowNode:function(_386){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_386;this.rowNodes[_386]=node;return node;},buildRow:function(_387,_388){this.buildRowContent(_387,_388);this.styleRow(_387,_388);},buildRowContent:function(_389,_38a){_38a.innerHTML=this.content.generateHtml(_389,_389);if(this.flexCells&&this.contentWidth){_38a.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_389,this.structure.cells,_38a]);},rowRemoved:function(_38b){if(_38b>=0){this._cleanupRowWidgets(this.getRowNode(_38b));}this.grid.edit.save(this,_38b);delete this.rowNodes[_38b];},getRowNode:function(_38c){return this.rowNodes[_38c];},getCellNode:function(_38d,_38e){var row=this.getRowNode(_38d);if(row){return this.content.getCellNode(row,_38e);}},getHeaderCellNode:function(_38f){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_38f);}},styleRow:function(_390,_391){_391._style=_353(_391);this.styleRowNode(_390,_391);},styleRowNode:function(_392,_393){if(_393){this.doStyleRowNode(_392,_393);}},doStyleRowNode:function(_394,_395){this.grid.styleRowNode(_394,_395);},updateRow:function(_396){var _397=this.getRowNode(_396);if(_397){_397.style.height="";this.buildRow(_396,_397);}return _397;},updateRowStyles:function(_398){this.styleRowNode(_398,this.getRowNode(_398));},lastTop:0,firstScroll:0,doscroll:function(_399){var _39a=dojo._isBodyLtr();if(this.firstScroll<2){if((!_39a&&this.firstScroll==1)||(_39a&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_39a?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}},setScrollTop:function(_39b){this.lastTop=_39b;this.scrollboxNode.scrollTop=_39b;return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_39c,_39d){this.grid.setCellWidth(_39c,_39d+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _39e=this.manager.source,node;if(_39e.creator){node=_39e._normalizedCreator(_39e.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _39f,_3a0;if(node.tagName.toLowerCase()=="tr"){_39f=dd.createElement("table");_3a0=dd.createElement("tbody");_3a0.appendChild(node);_39f.appendChild(_3a0);node=_39f;}else{if(node.tagName.toLowerCase()=="th"){_39f=dd.createElement("table");_3a0=dd.createElement("tbody");var r=dd.createElement("tr");_39f.cellPadding=_39f.cellSpacing="0";r.appendChild(node);_3a0.appendChild(r);_39f.appendChild(_3a0);node=_39f;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _3a1=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _3a1.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_3a2,_3a3){var w=this.contentWidth||0;_3a3.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_3a4,_3a5){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_3a4)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_3a4)){n.push("dojoxGridRowbarSelected");}_3a5.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_3a6){this.grid=_3a6;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_3a7,_3a8,_3a9,_3aa,_3ab){var _3ac=this.structure[_3a7].cells[0];var _3ad=this.structure[_3a8].cells[0];var cell=null;var _3ae=0;var _3af=0;for(var i=0,c;c=_3ac[i];i++){if(c.index==_3a9){_3ae=i;break;}}cell=_3ac.splice(_3ae,1)[0];cell.view=this.grid.views.views[_3a8];for(i=0,c=null;c=_3ad[i];i++){if(c.index==_3aa){_3af=i;break;}}if(!_3ab){_3af+=1;}_3ad.splice(_3af,0,cell);var _3b0=this.grid.getCell(this.grid.getSortIndex());if(_3b0){_3b0._currentlySorted=this.grid.getSortAsc();}this.cells=[];_3a9=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_3a9;this.cells.push(c);if("_currentlySorted" in c){var si=_3a9+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_3a9++;}}}dojo.forEach(this.cells,function(c){var _3b1=c.markup[2].split(" ");var _3b2=parseInt(_3b1[1].substring(5));if(_3b2!=c.index){_3b1[1]="idx=\""+c.index+"\"";c.markup[2]=_3b1.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_3b3,_3b4){var cell=this.cells[_3b3];if(cell.hidden==_3b4){cell.hidden=!_3b4;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_3b5,_3b6,_3b7){var self=this;var _3b8=function(_3b9){var w=0;if(_3b9.colSpan>1){w=0;}else{w=_3b9.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _3ba={grid:this.grid,subrow:_3b5,layoutIndex:_3b6,index:this.cells.length};if(_3b7&&_3b7 instanceof dojox.grid.cells._Base){var _3bb=dojo.clone(_3b7);_3ba.unitWidth=_3b8(_3bb._props);_3bb=dojo.mixin(_3bb,this._defaultCellProps,_3b7._props,_3ba);return _3bb;}var _3bc=_3b7.type||_3b7.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;_3ba.unitWidth=_3b8(_3b7);return new _3bc(dojo.mixin({},this._defaultCellProps,_3b7,_3ba));},addRowDef:function(_3bd,_3be){var _3bf=[];var _3c0=0,_3c1=0,_3c2=true;for(var i=0,def,cell;(def=_3be[i]);i++){cell=this.addCellDef(_3bd,i,def);_3bf.push(cell);this.cells.push(cell);if(_3c2&&cell.relWidth){_3c0+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_3c1+=window.parseInt(w,10);}else{if(w=="auto"){_3c2=false;}}}}}if(_3c0&&_3c2){dojo.forEach(_3bf,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_3c0)*(100-_3c1))+"%";}});}return _3bf;},addRowsDef:function(_3c3){var _3c4=[];if(dojo.isArray(_3c3)){if(dojo.isArray(_3c3[0])){for(var i=0,row;_3c3&&(row=_3c3[i]);i++){_3c4.push(this.addRowDef(i,row));}}else{_3c4.push(this.addRowDef(0,_3c3));}}return _3c4;},addViewDef:function(_3c5){this._defaultCellProps=_3c5.defaultCell||{};if(_3c5.width&&_3c5.width=="auto"){delete _3c5.width;}return dojo.mixin({},_3c5,{cells:this.addRowsDef(_3c5.rows||_3c5.cells)});},setStructure:function(_3c6){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _3c7=this.grid.rowSelector;if(_3c7=="false"){sel=null;}else{if(_3c7!="true"){sel["width"]=_3c7;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _3c8=function(def){return ("name" in def||"field" in def||"get" in def);};var _3c9=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_3c8(def[0])){return true;}}return false;};var _3ca=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_3c8(def))));};if(dojo.isArray(_3c6)){var _3cb=false;for(var i=0,st;(st=_3c6[i]);i++){if(_3ca(st)){_3cb=true;break;}}if(!_3cb){s.push(this.addViewDef({cells:_3c6}));}else{for(i=0;(st=_3c6[i]);i++){if(_3c9(st)){s.push(this.addViewDef({cells:st}));}else{if(_3ca(st)){s.push(this.addViewDef(st));}}}}}else{if(_3ca(_3c6)){s.push(this.addViewDef(_3c6));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_3cc){this.grid=_3cc;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_3cd){_3cd.idx=this.views.length;this.views.push(_3cd);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _3ce=[];for(var i=0,v;v=this.views[i];i++){_3ce.push(v.contentNode);}return _3ce;},forEach:function(_3cf){for(var i=0,v;v=this.views[i];i++){_3cf(v,i);}},onEach:function(_3d0,_3d1){_3d1=_3d1||[];for(var i=0,v;v=this.views[i];i++){if(_3d0 in v){v[_3d0].apply(v,_3d1);}}},normalizeHeaderNodeHeight:function(){var _3d2=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_3d2.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_3d2);},normalizeRowNodeHeights:function(_3d3){var h=0;var _3d4=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_3d3.length<=1){return;}for(var i=0,n;(n=_3d3[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_3d4[i]=n.firstChild.offsetHeight;h=Math.max(h,_3d4[i]);}}h=(h>=0?h:0);if(dojo.isMoz&&h){h++;}}for(i=0;(n=_3d3[i]);i++){if(_3d4[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_3d5){var _3d6=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_3d5));i++){n.firstChild.style.height="";_3d6.push(n);}this.normalizeRowNodeHeights(_3d6);},getViewWidth:function(_3d7){return this.views[_3d7].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_3d8){_3d8.headerContentNode.style.height="";});var h=0;this.forEach(function(_3d9){h=Math.max(_3d9.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_3da){h=Math.max(_3da.domNode.offsetHeight,h);});return h;},findClient:function(_3db){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length;var c=(w<=0?len:this.findClient());var _3dc=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isMoz){hs.right=l+v.getScrollbarWidth()+"px";hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_3dc(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_3dc(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_3dc(v,l);}return l;},renderRow:function(_3dd,_3de,_3df){var _3e0=[];for(var i=0,v,n,_3e1;(v=this.views[i])&&(n=_3de[i]);i++){_3e1=v.renderRow(_3dd);n.appendChild(_3e1);_3e0.push(_3e1);}if(!_3df){this.normalizeRowNodeHeights(_3e0);}},rowRemoved:function(_3e2){this.onEach("rowRemoved",[_3e2]);},updateRow:function(_3e3,_3e4){for(var i=0,v;v=this.views[i];i++){v.updateRow(_3e3);}if(!_3e4){this.renormalizeRow(_3e3);}},updateRowStyles:function(_3e5){this.onEach("updateRowStyles",[_3e5]);},setScrollTop:function(_3e6){var top=_3e6;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_3e6);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _3e7=function(_3e8,_3e9){if(_3e8.style.cssText==undefined){_3e8.setAttribute("style",_3e9);}else{_3e8.style.cssText=_3e9;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_3ea){this.grid=_3ea;},linesToEms:2,overRow:-2,prepareStylingRow:function(_3eb,_3ec){return {index:_3eb,node:_3ec,odd:Boolean(_3eb&1),selected:!!this.grid.selection.isSelected(_3eb),over:this.isOver(_3eb),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_3ed,_3ee){var row=this.prepareStylingRow(_3ed,_3ee);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_3ef){var i=_3ef;i.node.className=i.customClasses;var h=i.node.style.height;_3e7(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_3f0){this.grid.updateRowStyles(_3f0);},setOverRow:function(_3f1){var last=this.overRow;this.overRow=_3f1;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_3f2){return (this.overRow==_3f2&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_3f3){this.grid=_3f3;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_3f4,_3f5){return (this.cell==_3f4)&&(this.rowIndex==_3f5);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_3f6){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_3f6);if(_3f6){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);this.blurHeader();dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _3f7=this._findHeaderCells();for(var i=0;i<_3f7.length;i++){this._headerConnects.push(dojo.connect(_3f7[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_3f7[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _3f8=dojo.query("th",this.grid.viewsHeaderNode);var _3f9=[];for(var i=0;i<_3f8.length;i++){var _3fa=_3f8[i];var _3fb=dojo.hasAttr(_3fa,"tabIndex");var _3fc=dojo.attr(_3fa,"tabIndex");if(_3fb&&_3fc<0){_3f9.push(_3fa);}}return _3f9;},_setActiveColHeader:function(_3fd,_3fe,_3ff){dojo.attr(this.grid.domNode,"aria-activedescendant",_3fd.id);if(_3ff!=null&&_3ff>=0&&_3ff!=_3fe){dojo.toggleClass(this._findHeaderCells()[_3ff],this.focusClass,false);}dojo.toggleClass(_3fd,this.focusClass,true);this._colHeadNode=_3fd;this._colHeadFocusIdx=_3fe;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_400){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_400?_400:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_401){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_401);info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _402=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_402){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _403=this.focusView;if(!_403){for(var i=0,_404;(_404=this.grid.views.views[i]);i++){if(_404.headerNode){_403=_404;break;}}}return (_403&&dojo.getComputedStyle(_403.headerNode).display=="none");},colSizeAdjust:function(e,_405,_406){var _407=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_408;(_408=this.grid.views.views[i]);i++){if(_408.header.tableMap.map){view=_408;break;}}}var _409=_407[_405];if(!view||(_405==_407.length-1&&_405===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_409;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _40a={l:_406};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_40a);view.update();}},styleRow:function(_40b){return;},setFocusIndex:function(_40c,_40d){this.setFocusCell(this.grid.getCell(_40d),_40c);},setFocusCell:function(_40e,_40f){if(_40e&&!this.isFocusCell(_40e,_40f)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_40e;this.rowIndex=_40f;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _410=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_410.editable||this.grid.canEdit&&!this.grid.canEdit(_410,row))){this.cell=_410;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _411=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_411.editable){this.cell=_411;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_412,_413){var _414=_413<0?-1:1;if(this.isNavHeader()){var _415=this._findHeaderCells();var _416=currentIdx=dojo.indexOf(_415,this._colHeadNode);currentIdx+=_413;while(currentIdx>=0&&currentIdx<_415.length&&_415[currentIdx].style.display=="none"){currentIdx+=_414;}if((currentIdx>=0)&&(currentIdx<_415.length)){this._setActiveColHeader(_415[currentIdx],currentIdx,_416);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_412));if(_412){if(_412>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_412<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_413));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_414;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}this.setFocusIndex(row,col);if(_412){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _417=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_418){this.tabbingOut=true;_418.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_419){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _41a=true;var _41b=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_41b){var _41c=0;var cell=this.grid.getCell(_41c);if(cell.hidden){_41c=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_41c);}else{if(this.cell&&!_41b){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_41a=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _41a;},focusHeader:function(){var _41d=this._findHeaderCells();var _41e=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_41d[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_41d.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_41d[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_41e);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _41f=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_41f);this._contextMenuBindNode=_41f;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_420){this.grid=_420;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_421,_422){if(this.grid.singleClickEdit||this.isEditRow(_422)){this.setEditCell(_421,_422);}else{this.apply();}if(this.isEditing()||(_421&&_421.editable&&_421.alwaysEditing)){this._focusEditor(_421,_422);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_423){if(_423.index==this.info.rowIndex){_423.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_424,_425){return (this.info.rowIndex===_424)&&(this.info.cell.index==_425);},isEditRow:function(_426){return this.info.rowIndex===_426;},setEditCell:function(_427,_428){if(!this.isEditCell(_428,_427.index)&&this.grid.canEdit&&this.grid.canEdit(_427,_428)){this.start(_427,_428,this.isEditRow(_428)||_427.editable);}},_focusEditor:function(_429,_42a){dojox.grid.util.fire(_429,"focus",[_42a]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_42b,_42c,_42d){this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_42c)){this.applyRowEdit();this.grid.updateRow(_42c);}if(_42d){this.info={cell:_42b,rowIndex:_42c};this.grid.doStartEdit(_42b,_42c);this.grid.updateRow(_42c);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_42b,_42c);this._doCatchBoomerang();},_editorDo:function(_42e){var c=this.info.cell;if(c&&c.editable){c[_42e](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_42f,_430,_431){if(this.grid.canEdit(_430,_431)){this.grid.doApplyCellEdit(_42f,_431,_430.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_432,_433){var c=this.info.cell;if(this.isEditRow(_432)&&(!_433||c.view==_433)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_434,_435){var c=this.info.cell;if(this.isEditRow(_435)&&c.view==_434&&c.editable){c.restore(c,this.info.rowIndex);}}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_436){this.grid=_436;this.selected=[];this.setMode(_436.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_437){return this.grid.onCanSelect(_437);},onCanDeselect:function(_438){return this.grid.onCanDeselect(_438);},onSelected:function(_439){},onDeselected:function(_43a){},onChanging:function(){},onChanged:function(){},isSelected:function(_43b){if(this.mode=="none"){return false;}return this.selected[_43b];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_43c){if(this.mode=="none"){return -1;}for(var i=_43c+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _43d=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_43d.push(i);}}return _43d;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_43e){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_43e);this.addToSelection(_43e);}else{this.toggleSelect(_43e);}},addToSelection:function(_43f){if(this.mode=="none"){return;}if(dojo.isArray(_43f)){dojo.forEach(_43f,this.addToSelection,this);return;}_43f=Number(_43f);if(this.selected[_43f]){this.selectedIndex=_43f;}else{if(this.onCanSelect(_43f)!==false){this.selectedIndex=_43f;var _440=this.grid.getRowNode(_43f);if(_440){dojo.attr(_440,"aria-selected","true");}this._beginUpdate();this.selected[_43f]=true;this.onSelected(_43f);this._endUpdate();}}},deselect:function(_441){if(this.mode=="none"){return;}if(dojo.isArray(_441)){dojo.forEach(_441,this.deselect,this);return;}_441=Number(_441);if(this.selectedIndex==_441){this.selectedIndex=-1;}if(this.selected[_441]){if(this.onCanDeselect(_441)===false){return;}var _442=this.grid.getRowNode(_441);if(_442){dojo.attr(_442,"aria-selected","false");}this._beginUpdate();delete this.selected[_441];this.onDeselected(_441);this._endUpdate();}},setSelected:function(_443,_444){this[(_444?"addToSelection":"deselect")](_443);},toggleSelect:function(_445){if(dojo.isArray(_445)){dojo.forEach(_445,this.toggleSelect,this);return;}this.setSelected(_445,!this.selected[_445]);},_range:function(_446,inTo,func){var s=(_446>=0?_446:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_447,inTo){this._range(_447,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_448,inTo){this._range(_448,inTo,dojo.hitch(this,"deselect"));},insert:function(_449){this.selected.splice(_449,0,false);if(this.selectedIndex>=_449){this.selectedIndex++;}},remove:function(_44a){this.selected.splice(_44a,1);if(this.selectedIndex>=_44a){this.selectedIndex--;}},deselectAll:function(_44b){for(var i in this.selected){if((i!=_44b)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_44c,_44d,_44e){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_44c);}else{var _44f=this.selectedIndex;if(!_44d){this.deselectAll(_44c);}if(_44e){this.selectRange(_44f,_44c);}else{if(_44d){this.toggleSelect(_44c);}else{this.addToSelection(_44c);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_450){var i=_450;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_450);this.edit.styleRow(_450);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _451;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_451=this.focus.getHeaderIndex();if(_451>=0){this.setSortIndex(_451);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _452=this.edit.isEditing();this.edit.apply();if(!_452){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _453=this.focus.focusView||this.views.views[0];_453.content.decorateEvent(e);this.onRowClick(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_451=this.focus.getHeaderIndex();if(_451>=0){this.setSortIndex(_451);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _454=e.keyCode;dojo.stopEvent(e);_451=this.focus.getHeaderIndex();if(_451>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_451,(_454==dk.LEFT_ARROW?-1:1)*5);}else{var _455=(_454==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_455*=-1;}this.focus.move(0,_455);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}this.onRowClick(e);},onCellDblClick:function(e){if(this._click.length>1&&dojo.isIE){this.edit.setEditCell(this._click[1].cell,this._click[1].rowIndex);}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){this.edit.setEditCell(this._click[0].cell,this._click[0].rowIndex);}else{this.edit.setEditCell(e.cell,e.rowIndex);}}this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_456,_457){this.edit.cellFocus(_456,_457);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},onStartEdit:function(_458,_459){},onApplyCellEdit:function(_45a,_45b,_45c){},onCancelEdit:function(_45d){},onApplyEdit:function(_45e){},onCanSelect:function(_45f){return true;},onCanDeselect:function(_460){return true;},onSelected:function(_461){this.updateRowStyles(_461);},onDeselected:function(_462){this.updateRowStyles(_462);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_463,_464,_465){_465=dojo.i18n.normalizeLocale(_465);var _466=_465.split("-");var _467=[_463,"nls",_464].join(".");var _468=dojo._loadedModules[_467];if(_468){var _469;for(var i=_466.length;i>0;i--){var loc=_466.slice(0,i).join("_");if(_468[loc]){_469=_468[loc];break;}}if(!_469){_469=_468.ROOT;}if(_469){var _46a=function(){};_46a.prototype=_469;return new _46a();}}throw new Error("Bundle not found: "+_464+" in "+_463+" , locale="+_465);};dojo.i18n.normalizeLocale=function(_46b){var _46c=_46b?_46b.toLowerCase():dojo.locale;if(_46c=="root"){_46c="ROOT";}return _46c;};dojo.i18n._requireLocalization=function(_46d,_46e,_46f,_470){var _471=dojo.i18n.normalizeLocale(_46f);var _472=[_46d,"nls",_46e].join(".");var _473="";if(_470){var _474=_470.split(",");for(var i=0;i<_474.length;i++){if(_471["indexOf"](_474[i])==0){if(_474[i].length>_473.length){_473=_474[i];}}}if(!_473){_473="ROOT";}}var _475=_470?_473:_471;var _476=dojo._loadedModules[_472];var _477=null;if(_476){if(dojo.config.localizationComplete&&_476._built){return;}var _478=_475.replace(/-/g,"_");var _479=_472+"."+_478;_477=dojo._loadedModules[_479];}if(!_477){_476=dojo["provide"](_472);var syms=dojo._getModuleSymbols(_46d);var _47a=syms.concat("nls").join("/");var _47b;dojo.i18n._searchLocalePath(_475,_470,function(loc){var _47c=loc.replace(/-/g,"_");var _47d=_472+"."+_47c;var _47e=false;if(!dojo._loadedModules[_47d]){dojo["provide"](_47d);var _47f=[_47a];if(loc!="ROOT"){_47f.push(loc);}_47f.push(_46e);var _480=_47f.join("/")+".js";_47e=dojo._loadPath(_480,null,function(hash){hash=hash.root||hash;var _481=function(){};_481.prototype=_47b;_476[_47c]=new _481();for(var j in hash){_476[_47c][j]=hash[j];}});}else{_47e=true;}if(_47e&&_476[_47c]){_47b=_476[_47c];}else{_476[_47c]=_47b;}if(_470){return true;}});}if(_470&&_471!=_473){_476[_471.replace(/-/g,"_")]=_476[_473.replace(/-/g,"_")];}};(function(){var _482=dojo.config.extraLocale;if(_482){if(!_482 instanceof Array){_482=[_482];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_483,_484){req(m,b,_483,_484);if(_483){return;}for(var i=0;i<_482.length;i++){req(m,b,_482[i],_484);}};}})();dojo.i18n._searchLocalePath=function(_485,down,_486){_485=dojo.i18n.normalizeLocale(_485);var _487=_485.split("-");var _488=[];for(var i=_487.length;i>0;i--){_488.push(_487.slice(0,i).join("-"));}_488.push(false);if(down){_488.reverse();}for(var j=_488.length-1;j>=0;j--){var loc=_488[j]||"ROOT";var stop=_486(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_489,_48a){function _48b(_48c){_48c=dojo.i18n.normalizeLocale(_48c);dojo.i18n._searchLocalePath(_48c,true,function(loc){for(var i=0;i<_48a.length;i++){if(_48a[i]==loc){dojo["require"](_489+"_"+loc);return true;}}return false;});};_48b();var _48d=dojo.config.extraLocale||[];for(var i=0;i<_48d.length;i++){_48b(_48d[i]);}};}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _48e=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_48e);this.errorMessage=dojo.string.substitute(this.errorMessage,_48e);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.scroller){this.scroller.destroy();delete this.scroller;}if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_48f){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_48f){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_490){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_491,idx){var c=dojo.getObject(_491);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_492){var s=_492;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_493){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_493);},getColumnTogglingItems:function(){return dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_494){if(self.layout.setColumnVisibility(this._gridCell.index,_494)){var _495=this._gridCell.menuItems;if(_495.length>1){dojo.forEach(_495,function(item){if(item!==this){item.setAttribute("checked",_494);}},this);}_494=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_494.length==1){dojo.forEach(_494[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _496=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_496,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);return item;},this);},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_497){this.setScrollTop(0);},getItem:function(_498){return null;},showMessage:function(_499){if(_499){this.messagesNode.innerHTML=_499;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_49a,_49b){this._pendingChangeSize=_49a;this._pendingResultSize=_49b;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_49c,_49d){_49c=_49c||this._pendingChangeSize;_49d=_49d||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _49e=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_49e.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_49d){_49c=_49d;}if(_49c){dojo.marginBox(this.domNode,_49c);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _49f=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_49f&&hh===undefined){hh=this._getHeaderHeight();}}if(_49f){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _4a0=(!this.initialWidth&&this.autoWidth);var w=_4a0?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_4a0){this.domNode.style.width=vw+"px";}},adaptHeight:function(_4a1){var t=_4a1===undefined?this._getHeaderHeight():_4a1;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _4a2=0,_4a3=0;var _4a4=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_4a2++;}else{_4a3++;}return (!has);});if(_4a2>0&&_4a3>0){dojo.forEach(_4a4,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();dojo.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_4a5,_4a6){this.views.renderRow(_4a5,_4a6,this._skipRowRenormalize);},rowRemoved:function(_4a7){this.views.rowRemoved(_4a7);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_4a8){_4a8=Number(_4a8);if(this.updating){this.invalidated[_4a8]=true;}else{this.views.updateRow(_4a8);this.scroller.rowHeightChanged(_4a8);}},updateRows:function(_4a9,_4aa){_4a9=Number(_4a9);_4aa=Number(_4aa);var i;if(this.updating){for(i=0;i<_4aa;i++){this.invalidated[i+_4a9]=true;}}else{for(i=0;i<_4aa;i++){this.views.updateRow(i+_4a9,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_4a9);}},updateRowCount:function(_4ab){if(this.updating){this.invalidated.rowCount=_4ab;}else{this.rowCount=_4ab;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_4ab);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_4ac){this.views.updateRowStyles(_4ac);},getRowNode:function(_4ad){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_4ad];}else{for(var i=0,_4ae;(_4ae=this.views.views[i]);i++){if(!(_4ae instanceof dojox.grid._RowSelector)){return _4ae.rowNodes[_4ad];}}}return null;},rowHeightChanged:function(_4af){this.views.renormalizeRow(_4af);this.scroller.rowHeightChanged(_4af);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_4b0){if(!this.fastScroll){this.setScrollTop(_4b0);return;}var _4b1=Math.abs(this.lastScrollTop-_4b0);this.lastScrollTop=_4b0;if(_4b1>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_4b0;this.views.setScrollTop(_4b0);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _4b2=this;this._pendingScroll=window.setTimeout(function(){delete _4b2._pendingScroll;_4b2.finishScrollJob();},200);}else{this.setScrollTop(_4b0);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_4b3){this.scroller.scroll(this.views.setScrollTop(_4b3));},scrollToRow:function(_4b4){this.setScrollTop(this.scroller.findScrollTop(_4b4)+1);},styleRowNode:function(_4b5,_4b6){if(_4b6){this.rows.styleRowNode(_4b5,_4b6);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_4b7){return this.layout.cells[_4b7];},setCellWidth:function(_4b8,_4b9){this.getCell(_4b8).unitWidth=_4b9;},getCellName:function(_4ba){return "Cell "+_4ba.index;},canSort:function(_4bb){},sort:function(){},getSortAsc:function(_4bc){_4bc=_4bc==undefined?this.sortInfo:_4bc;return Boolean(_4bc>0);},getSortIndex:function(_4bd){_4bd=_4bd==undefined?this.sortInfo:_4bd;return Math.abs(_4bd)-1;},setSortIndex:function(_4be,_4bf){var si=_4be+1;if(_4bf!=undefined){si*=(_4bf?1:-1);}else{if(this.getSortIndex()==_4be){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_4c0){if(this.canSort(_4c0)){this.sortInfo=_4c0;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_4c1,_4c2){this.onStartEdit(_4c1,_4c2);},doApplyCellEdit:function(_4c3,_4c4,_4c5){this.onApplyCellEdit(_4c3,_4c4,_4c5);},doCancelEdit:function(_4c6){this.onCancelEdit(_4c6);},doApplyEdit:function(_4c7){this.onApplyEdit(_4c7);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});dojox.grid._Grid.markupFactory=function(_4c8,node,ctor,_4c9){var d=dojo;var _4ca=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_4c8.structure&&node.nodeName.toLowerCase()=="table"){_4c8.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_4ca(cg);}return v;});if(!_4c8.structure.length){_4c8.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_4cb){var _4cc=0;var _4cd=0;var _4ce;var _4cf=null;d.query("> th",tr).map(function(th){if(!_4cf){_4ce=0;_4cf=_4c8.structure[0];}else{if(_4cc>=(_4ce+_4cf.__span)){_4cd++;_4ce+=_4cf.__span;var _4d0=_4cf;_4cf=_4c8.structure[_4cd];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_4cc+=cell.colSpan;var _4d1=d.attr(th,"rowspan");if(_4d1){cell.rowSpan=_4d1;}if(d.hasAttr(th,"width")){cell.width=_4ca(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_4c9){_4c9(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_4cf.cells[_4cb]){_4cf.cells[_4cb]=[];}_4cf.cells[_4cb].push(cell);});});}return new ctor(_4c8,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_4d2){var _4d3=this.grid.getItemIndex(_4d2);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_4d3);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _4d4=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_4d4.push(this.grid.getItem(i));}}return _4d4;},addToSelection:function(_4d5){if(this.mode=="none"){return;}var idx=null;if(typeof _4d5=="number"||typeof _4d5=="string"){idx=_4d5;}else{idx=this.grid.getItemIndex(_4d5);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_4d6){if(this.mode=="none"){return;}var idx=null;if(typeof _4d6=="number"||typeof _4d6=="string"){idx=_4d6;}else{idx=this.grid.getItemIndex(_4d6);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_4d7){var idx=null;if(_4d7||typeof _4d7=="number"){if(typeof _4d7=="number"||typeof _4d7=="string"){idx=_4d7;}else{idx=this.grid.getItemIndex(_4d7);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_4d8,_4d9){if(_4d9&&this.field=="_item"&&!this.fields){return _4d9;}else{if(_4d9&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_4d9,f));});return ret;}else{if(!_4d9&&typeof _4d8==="string"){return this.inherited(arguments);}}}return (!_4d9?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_4d9:this.grid.store.getValue(_4d9,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _4da=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_4da=true;}if(!this.updating){this.beginUpdate();_4da=true;}if(_4da){var _4db=this;this._endUpdateDelay=setTimeout(function(){delete _4db._endUpdateDelay;_4db.endUpdate();},this.updateDelay);}}},_onSet:function(item,_4dc,_4dd,_4de){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_4df){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_4df+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_4e0,_4e1){this._by_idx[_4e0]=this._createItem(item,_4e0);if(!_4e1){this.updateRow(_4e0);}},_onNew:function(item,_4e2){this._checkUpdateStatus();var _4e3=this.get("rowCount");this._addingItem=true;this.updateRowCount(_4e3+1);this._addingItem=false;this._addItem(item,_4e3);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}},_onRevert:function(){this._refresh();},setStore:function(_4e4,_4e5,_4e6){this._setQuery(_4e5,_4e6);this._setStore(_4e4);this._refresh(true);},setQuery:function(_4e7,_4e8){this._setQuery(_4e7,_4e8);this._refresh(true);},setItems:function(_4e9){this.items=_4e9;this._setStore(this.store);this._refresh(true);},_setQuery:function(_4ea,_4eb){this.query=_4ea;this.queryOptions=_4eb||this.queryOptions;},_setStore:function(_4ec){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_4ec;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_4ed,req){if(!this.scroller){return;}if(_4ed&&_4ed.length>0){dojo.forEach(_4ed,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_4ed.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_4ee,_4ef){_4ee=_4ee||0;if(this.store&&!this._pending_requests[_4ee]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_4ee]=true;try{if(this.items){var _4f0=this.items;var _4f1=this.store;this.rowsPerPage=_4f0.length;var req={start:_4ee,count:this.rowsPerPage,isRender:_4ef};this._onFetchBegin(_4f0.length,req);var _4f2=0;dojo.forEach(_4f0,function(i){if(!_4f1.isItemLoaded(i)){_4f2++;}});if(_4f2===0){this._onFetchComplete(_4f0,req);}else{var _4f3=function(item){_4f2--;if(_4f2===0){this._onFetchComplete(_4f0,req);}};dojo.forEach(_4f0,function(i){if(!_4f1.isItemLoaded(i)){_4f1.loadItem({item:i,onItem:_4f3,scope:this});}},this);}}else{this.store.fetch({start:_4ee,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_4ef,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_4ee,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_4f4){if(!_4f4&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_4f5,_4f6){this.query=_4f5;if(_4f6){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_4f7){return this._pending_requests[_4f7];},_rowToPage:function(_4f8){return (this.rowsPerPage?Math.floor(_4f8/this.rowsPerPage):_4f8);},_pageToRow:function(_4f9){return (this.rowsPerPage?this.rowsPerPage*_4f9:_4f9);},_preparePage:function(_4fa){if((_4fa<this._bop||_4fa>=this._eop)&&!this._addingItem){var _4fb=this._rowToPage(_4fa);this._needPage(_4fb);this._bop=_4fb*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_4fc){if(!this._pages[_4fc]){this._pages[_4fc]=true;this._requestPage(_4fc);}},_requestPage:function(_4fd){var row=this._pageToRow(_4fd);var _4fe=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_4fe>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_4ff){return _4ff.field;},_refresh:function(_500){this._clearData();this._fetch(0,_500);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_501){if(this.store&&this.store.getState){var _502=this.store.getState(_501.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_502[s]){c=" dojoxGridRow-"+s;break;}}_501.customClasses+=c;}},onStyleRow:function(_503){this.styleRowState(_503);this.inherited(arguments);},canEdit:function(_504,_505){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _506={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_507,_508){if(!this._cache[_508]){this._cache[_508]=this._copyAttr(_508,_507.field);}this.onStartEdit(_507,_508);},doApplyCellEdit:function(_509,_50a,_50b){this.store.fetchItemByIdentity({identity:this._by_idx[_50a].idty,onItem:dojo.hitch(this,function(item){var _50c=this.store.getValue(item,_50b);if(typeof _50c=="number"){_509=isNaN(_509)?_509:parseFloat(_509);}else{if(typeof _50c=="boolean"){_509=_509=="true"?true:_509=="false"?false:_509;}else{if(_50c instanceof Date){var _50d=new Date(_509);_509=isNaN(_50d.getTime())?_509:_50d;}}}this.store.setValue(item,_50b,_509);this.onApplyCellEdit(_509,_50a,_50b);})});},doCancelEdit:function(_50e){var _50f=this._cache[_50e];if(_50f){this.updateRow(_50e);delete this._cache[_50e];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_510,_511){var _512=this._cache[_510];this.onApplyEdit(_510);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_513){if(_513.length){dojo.forEach(_513,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_514,node,_515){var _516=dojo.trim(dojo.attr(node,"field")||"");if(_516){_515.field=_516;}_515.field=_515.field||_515.name;var _517=dojo.trim(dojo.attr(node,"fields")||"");if(_517){_515.fields=_517.split(",");}if(_514){_514(node,_515);}};dojox.grid.DataGrid.markupFactory=function(_518,node,ctor,_519){return dojox.grid._Grid.markupFactory(_518,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_519));};}dojo.i18n._preloadLocalizations("dojox.grid.nls.DataGrid",["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","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
