/*
	Copyright (c) 2004-2012, 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.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){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 _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.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 _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}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(_5f,_60,_61){_61=dojo.i18n.normalizeLocale(_61);var _62=_61.split("-");var _63=[_5f,"nls",_60].join(".");var _64=dojo._loadedModules[_63];if(_64){var _65;for(var i=_62.length;i>0;i--){var loc=_62.slice(0,i).join("_");if(_64[loc]){_65=_64[loc];break;}}if(!_65){_65=_64.ROOT;}if(_65){var _66=function(){};_66.prototype=_65;return new _66();}}throw new Error("Bundle not found: "+_60+" in "+_5f+" , locale="+_61);};dojo.i18n.normalizeLocale=function(_67){var _68=(_67?_67:dojo.locale).toLowerCase();if(_68=="root"){_68="ROOT";}return _68;};dojo.i18n._requireLocalization=function(_69,_6a,_6b,_6c){var _6d=dojo.i18n.normalizeLocale(_6b);var _6e=[_69,"nls",_6a].join(".");var _6f="";if(_6c){var _70=_6c.split(",");for(var i=0;i<_70.length;i++){if(_6d["indexOf"](_70[i])==0){if(_70[i].length>_6f.length){_6f=_70[i];}}}if(!_6f){_6f="ROOT";}}var _71=_6c?_6f:_6d;var _72=dojo._loadedModules[_6e];var _73=null;if(_72){if(dojo.config.localizationComplete&&_72._built){return;}var _74=_71.replace(/-/g,"_");var _75=_6e+"."+_74;_73=dojo._loadedModules[_75];}if(!_73){_72=dojo["provide"](_6e);var _76=dojo._getModuleSymbols(_69);var _77=_76.concat("nls").join("/");var _78;dojo.i18n._searchLocalePath(_71,_6c,function(loc){var _79=loc.replace(/-/g,"_");var _7a=_6e+"."+_79;var _7b=false;if(!dojo._loadedModules[_7a]){dojo["provide"](_7a);var _7c=[_77];if(loc!="ROOT"){_7c.push(loc);}_7c.push(_6a);var _7d=_7c.join("/")+".js";_7b=dojo._loadPath(_7d,null,function(_7e){_7e=_7e.root||_7e;var _7f=function(){};_7f.prototype=_78;_72[_79]=new _7f();for(var j in _7e){_72[_79][j]=_7e[j];}});}else{_7b=true;}if(_7b&&_72[_79]){_78=_72[_79];}else{_72[_79]=_78;}if(_6c){return true;}});}if(_6c&&_6d!=_6f){_72[_6d.replace(/-/g,"_")]=_72[_6f.replace(/-/g,"_")];}};(function(){var _80=dojo.config.extraLocale;if(_80){if(!_80 instanceof Array){_80=[_80];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_81,_82){req(m,b,_81,_82);if(_81){return;}for(var i=0;i<_80.length;i++){req(m,b,_80[i],_82);}};}})();dojo.i18n._searchLocalePath=function(_83,_84,_85){_83=dojo.i18n.normalizeLocale(_83);var _86=_83.split("-");var _87=[];for(var i=_86.length;i>0;i--){_87.push(_86.slice(0,i).join("-"));}_87.push(false);if(_84){_87.reverse();}for(var j=_87.length-1;j>=0;j--){var loc=_87[j]||"ROOT";var _88=_85(loc);if(_88){break;}}};dojo.i18n._preloadLocalizations=function(_89,_8a){function _8b(_8c){_8c=dojo.i18n.normalizeLocale(_8c);dojo.i18n._searchLocalePath(_8c,true,function(loc){for(var i=0;i<_8a.length;i++){if(_8a[i]==loc){dojo["require"](_89+"_"+loc);return true;}}return false;});};_8b();var _8d=dojo.config.extraLocale||[];for(var i=0;i<_8d.length;i++){_8b(_8d[i]);}};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.getObject("cldr.supplemental",true,dojo);dojo.cldr.supplemental.getFirstDayOfWeek=function(_8e){var _8f={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _90=dojo.cldr.supplemental._region(_8e);var dow=_8f[_90];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_91){_91=dojo.i18n.normalizeLocale(_91);var _92=_91.split("-");var _93=_92[1];if(!_93){_93={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[_92[0]];}else{if(_93.length==4){_93=_92[2];}}return _93;};dojo.cldr.supplemental.getWeekend=function(_94){var _95={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _96={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _97=dojo.cldr.supplemental._region(_94);var _98=_95[_97];var end=_96[_97];if(_98===undefined){_98=6;}if(end===undefined){end=0;}return {start:_98,end:end};};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.getObject("date",true,dojo);dojo.date.getDaysInMonth=function(_99){var _9a=_99.getMonth();var _9b=[31,28,31,30,31,30,31,31,30,31,30,31];if(_9a==1&&dojo.date.isLeapYear(_99)){return 29;}return _9b[_9a];};dojo.date.isLeapYear=function(_9c){var _9d=_9c.getFullYear();return !(_9d%400)||(!(_9d%4)&&!!(_9d%100));};dojo.date.getTimezoneName=function(_9e){var str=_9e.toString();var tz="";var _9f;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_9f=str.match(pat))){tz=_9f[1];}else{str=_9e.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_9f=str.match(pat))){tz=_9f[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_a0,_a1,_a2){_a0=new Date(+_a0);_a1=new Date(+(_a1||new Date()));if(_a2=="date"){_a0.setHours(0,0,0,0);_a1.setHours(0,0,0,0);}else{if(_a2=="time"){_a0.setFullYear(0,0,0);_a1.setFullYear(0,0,0);}}if(_a0>_a1){return 1;}if(_a0<_a1){return -1;}return 0;};dojo.date.add=function(_a3,_a4,_a5){var sum=new Date(+_a3);var _a6=false;var _a7="Date";switch(_a4){case "day":break;case "weekday":var _a8,_a9;var mod=_a5%5;if(!mod){_a8=(_a5>0)?5:-5;_a9=(_a5>0)?((_a5-5)/5):((_a5+5)/5);}else{_a8=mod;_a9=parseInt(_a5/5);}var _aa=_a3.getDay();var adj=0;if(_aa==6&&_a5>0){adj=1;}else{if(_aa==0&&_a5<0){adj=-1;}}var _ab=_aa+_a8;if(_ab==0||_ab==6){adj=(_a5>0)?2:-2;}_a5=(7*_a9)+_a8+adj;break;case "year":_a7="FullYear";_a6=true;break;case "week":_a5*=7;break;case "quarter":_a5*=3;case "month":_a6=true;_a7="Month";break;default:_a7="UTC"+_a4.charAt(0).toUpperCase()+_a4.substring(1)+"s";}if(_a7){sum["set"+_a7](sum["get"+_a7]()+_a5);}if(_a6&&(sum.getDate()<_a3.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_ac,_ad,_ae){_ad=_ad||new Date();_ae=_ae||"day";var _af=_ad.getFullYear()-_ac.getFullYear();var _b0=1;switch(_ae){case "quarter":var m1=_ac.getMonth();var m2=_ad.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_af*4);_b0=q2-q1;break;case "weekday":var _b1=Math.round(dojo.date.difference(_ac,_ad,"day"));var _b2=parseInt(dojo.date.difference(_ac,_ad,"week"));var mod=_b1%7;if(mod==0){_b1=_b2*5;}else{var adj=0;var _b3=_ac.getDay();var _b4=_ad.getDay();_b2=parseInt(_b1/7);mod=_b1%7;var _b5=new Date(_ac);_b5.setDate(_b5.getDate()+(_b2*7));var _b6=_b5.getDay();if(_b1>0){switch(true){case _b3==6:adj=-1;break;case _b3==0:adj=0;break;case _b4==6:adj=-1;break;case _b4==0:adj=-2;break;case (_b6+mod)>5:adj=-2;}}else{if(_b1<0){switch(true){case _b3==6:adj=0;break;case _b3==0:adj=1;break;case _b4==6:adj=2;break;case _b4==0:adj=1;break;case (_b6+mod)<0:adj=2;}}}_b1+=adj;_b1-=(_b2*2);}_b0=_b1;break;case "year":_b0=_af;break;case "month":_b0=(_ad.getMonth()-_ac.getMonth())+(_af*12);break;case "week":_b0=parseInt(dojo.date.difference(_ac,_ad,"day")/7);break;case "day":_b0/=24;case "hour":_b0/=60;case "minute":_b0/=60;case "second":_b0/=1000;case "millisecond":_b0*=_ad.getTime()-_ac.getTime();}return Math.round(_b0);};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_b7){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_b7&&_b7.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_b8){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_b8);};dojo.regexp.group=function(_b9,_ba){return "("+(_ba?"?:":"")+_b9+")";};}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(_bb,_bc,ch,end){if(!ch){ch="0";}var out=String(_bb),pad=dojo.string.rep(ch,Math.ceil((_bc-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_bd,map,_be,_bf){_bf=_bf||dojo.global;_be=_be?dojo.hitch(_bf,_be):function(v){return v;};return _bd.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_c0,key,_c1){var _c2=dojo.getObject(key,false,map);if(_c1){_c2=dojo.getObject(_c1,false,_bf).call(_bf,_c2,key);}return _be(_c2,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");dojo.getObject("date.locale",true,dojo);(function(){function _c3(_c4,_c5,_c6,_c7){return _c7.replace(/([a-z])\1*/ig,function(_c8){var s,pad,c=_c8.charAt(0),l=_c8.length,_c9=["abbr","wide","narrow"];switch(c){case "G":s=_c5[(l<4)?"eraAbbr":"eraNames"][_c4.getFullYear()<0?0:1];break;case "y":s=_c4.getFullYear();switch(l){case 1:break;case 2:if(!_c6.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_c4.getMonth()+1)/3);pad=true;break;case "M":var m=_c4.getMonth();if(l<3){s=m+1;pad=true;}else{var _ca=["months","format",_c9[l-3]].join("-");s=_c5[_ca][m];}break;case "w":var _cb=0;s=dojo.date.locale._getWeekOfYear(_c4,_cb);pad=true;break;case "d":s=_c4.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_c4);pad=true;break;case "E":var d=_c4.getDay();if(l<3){s=d+1;pad=true;}else{var _cc=["days","format",_c9[l-3]].join("-");s=_c5[_cc][d];}break;case "a":var _cd=(_c4.getHours()<12)?"am":"pm";s=_c6[_cd]||_c5["dayPeriods-format-wide-"+_cd];break;case "h":case "H":case "K":case "k":var h=_c4.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_c4.getMinutes();pad=true;break;case "s":s=_c4.getSeconds();pad=true;break;case "S":s=Math.round(_c4.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_c4,true,_c6);if(s){break;}l=4;case "Z":var _ce=dojo.date.locale._getZone(_c4,false,_c6);var tz=[(_ce<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_ce)/60),2),dojo.string.pad(Math.abs(_ce)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_c7);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_cf,_d0,_d1){if(_d0){return dojo.date.getTimezoneName(_cf);}else{return _cf.getTimezoneOffset();}};dojo.date.locale.format=function(_d2,_d3){_d3=_d3||{};var _d4=dojo.i18n.normalizeLocale(_d3.locale),_d5=_d3.formatLength||"short",_d6=dojo.date.locale._getGregorianBundle(_d4),str=[],_d7=dojo.hitch(this,_c3,_d2,_d6,_d3);if(_d3.selector=="year"){return _d8(_d6["dateFormatItem-yyyy"]||"yyyy",_d7);}var _d9;if(_d3.selector!="date"){_d9=_d3.timePattern||_d6["timeFormat-"+_d5];if(_d9){str.push(_d8(_d9,_d7));}}if(_d3.selector!="time"){_d9=_d3.datePattern||_d6["dateFormat-"+_d5];if(_d9){str.push(_d8(_d9,_d7));}}return str.length==1?str[0]:_d6["dateTimeFormat-"+_d5].replace(/\{(\d+)\}/g,function(_da,key){return str[key];});};dojo.date.locale.regexp=function(_db){return dojo.date.locale._parseInfo(_db).regexp;};dojo.date.locale._parseInfo=function(_dc){_dc=_dc||{};var _dd=dojo.i18n.normalizeLocale(_dc.locale),_de=dojo.date.locale._getGregorianBundle(_dd),_df=_dc.formatLength||"short",_e0=_dc.datePattern||_de["dateFormat-"+_df],_e1=_dc.timePattern||_de["timeFormat-"+_df],_e2;if(_dc.selector=="date"){_e2=_e0;}else{if(_dc.selector=="time"){_e2=_e1;}else{_e2=_de["dateTimeFormat-"+_df].replace(/\{(\d+)\}/g,function(_e3,key){return [_e1,_e0][key];});}}var _e4=[],re=_d8(_e2,dojo.hitch(this,_e5,_e4,_de,_dc));return {regexp:re,tokens:_e4,bundle:_de};};dojo.date.locale.parse=function(_e6,_e7){var _e8=/[\u200E\u200F\u202A\u202E]/g,_e9=dojo.date.locale._parseInfo(_e7),_ea=_e9.tokens,_eb=_e9.bundle,re=new RegExp("^"+_e9.regexp.replace(_e8,"")+"$",_e9.strict?"":"i"),_ec=re.exec(_e6&&_e6.replace(_e8,""));if(!_ec){return null;}var _ed=["abbr","wide","narrow"],_ee=[1970,0,1,0,0,0,0],_ef="",_f0=dojo.every(_ec,function(v,i){if(!i){return true;}var _f1=_ea[i-1];var l=_f1.length;switch(_f1.charAt(0)){case "y":if(l!=2&&_e7.strict){_ee[0]=v;}else{if(v<100){v=Number(v);var _f2=""+new Date().getFullYear(),_f3=_f2.substring(0,2)*100,_f4=Math.min(Number(_f2.substring(2,4))+20,99),num=(v<_f4)?_f3+v:_f3-100+v;_ee[0]=num;}else{if(_e7.strict){return false;}_ee[0]=v;}}break;case "M":if(l>2){var _f5=_eb["months-format-"+_ed[l-3]].concat();if(!_e7.strict){v=v.replace(".","").toLowerCase();_f5=dojo.map(_f5,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_f5,v);if(v==-1){return false;}}else{v--;}_ee[1]=v;break;case "E":case "e":var _f6=_eb["days-format-"+_ed[l-3]].concat();if(!_e7.strict){v=v.toLowerCase();_f6=dojo.map(_f6,function(d){return d.toLowerCase();});}v=dojo.indexOf(_f6,v);if(v==-1){return false;}break;case "D":_ee[1]=0;case "d":_ee[2]=v;break;case "a":var am=_e7.am||_eb["dayPeriods-format-wide-am"],pm=_e7.pm||_eb["dayPeriods-format-wide-pm"];if(!_e7.strict){var _f7=/\./g;v=v.replace(_f7,"").toLowerCase();am=am.replace(_f7,"").toLowerCase();pm=pm.replace(_f7,"").toLowerCase();}if(_e7.strict&&v!=am&&v!=pm){return false;}_ef=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_ee[3]=v;break;case "m":_ee[4]=v;break;case "s":_ee[5]=v;break;case "S":_ee[6]=v;}return true;});var _f8=+_ee[3];if(_ef==="p"&&_f8<12){_ee[3]=_f8+12;}else{if(_ef==="a"&&_f8==12){_ee[3]=0;}}var _f9=new Date(_ee[0],_ee[1],_ee[2],_ee[3],_ee[4],_ee[5],_ee[6]);if(_e7.strict){_f9.setFullYear(_ee[0]);}var _fa=_ea.join(""),_fb=_fa.indexOf("d")!=-1,_fc=_fa.indexOf("M")!=-1;if(!_f0||(_fc&&_f9.getMonth()>_ee[1])||(_fb&&_f9.getDate()>_ee[2])){return null;}if((_fc&&_f9.getMonth()<_ee[1])||(_fb&&_f9.getDate()<_ee[2])){_f9=dojo.date.add(_f9,"hour",1);}return _f9;};function _d8(_fd,_fe,_ff,_100){var _101=function(x){return x;};_fe=_fe||_101;_ff=_ff||_101;_100=_100||_101;var _102=_fd.match(/(''|[^'])+/g),_103=_fd.charAt(0)=="'";dojo.forEach(_102,function(_104,i){if(!_104){_102[i]="";}else{_102[i]=(_103?_ff:_fe)(_104.replace(/''/g,"'"));_103=!_103;}});return _100(_102.join(""));};function _e5(_105,_106,_107,_108){_108=dojo.regexp.escapeString(_108);if(!_107.strict){_108=_108.replace(" a"," ?a");}return _108.replace(/([a-z])\1*/ig,function(_109){var s,c=_109.charAt(0),l=_109.length,p2="",p3="";if(_107.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p3+"[1-9][0-9]|"+p2+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_107.am||_106["dayPeriods-format-wide-am"],pm=_107.pm||_106["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_107.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_105){_105.push(_109);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _10a=[];dojo.date.locale.addCustomFormats=function(_10b,_10c){_10a.push({pkg:_10b,name:_10c});};dojo.date.locale._getGregorianBundle=function(_10d){var _10e={};dojo.forEach(_10a,function(desc){var _10f=dojo.i18n.getLocalization(desc.pkg,desc.name,_10d);_10e=dojo.mixin(_10e,_10f);},this);return _10e;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_110,_111){var _112,_113=dojo.date.locale._getGregorianBundle(_111),_114=[item,_110,type];if(_110=="standAlone"){var key=_114.join("-");_112=_113[key];if(_112[0]==1){_112=undefined;}}_114[1]="format";return (_112||_113[_114.join("-")]).concat();};dojo.date.locale.isWeekend=function(_115,_116){var _117=dojo.cldr.supplemental.getWeekend(_116),day=(_115||new Date()).getDay();if(_117.end<_117.start){_117.end+=7;if(day<_117.start){day+=7;}}return day>=_117.start&&day<=_117.end;};dojo.date.locale._getDayOfYear=function(_118){return dojo.date.difference(new Date(_118.getFullYear(),0,1,_118.getHours()),_118)+1;};dojo.date.locale._getWeekOfYear=function(_119,_11a){if(arguments.length==1){_11a=0;}var _11b=new Date(_119.getFullYear(),0,1).getDay(),adj=(_11b-_11a+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_119)+adj-1)/7);if(_11b==_11a){week++;}return week;};}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(_11c){if(this._hash[_11c.id]){throw new Error("Tried to register widget with id=="+_11c.id+" but that id is already registered");}this._hash[_11c.id]=_11c;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_11d){_11d=_11d||dojo.global;var i=0,id;for(id in this._hash){func.call(_11d,this._hash[id],i++,this._hash);}return this;},filter:function(_11e,_11f){_11f=_11f||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_11e.call(_11f,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,_120;for(id in this._hash){_120=this._hash[id];if(_120.declaredClass==cls){res.add(_120);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_121){return dojo.map(this.toArray(),func,_121);},every:function(func,_122){_122=_122||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_122,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_123){_123=_123||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_123,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_124=dojo.hasAttr,_125=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _126={};dijit.getUniqueId=function(_127){var id;do{id=_127+"_"+(_127 in _126?++_126[_127]:_126[_127]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _128=[];function _129(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _12a=node.getAttribute("widgetId");if(_12a){var _12b=hash[_12a];if(_12b){_128.push(_12b);}}else{_129(node);}}}};_129(root);return _128;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_12c){if(!_12c._destroyed){if(_12c.destroyRecursive){_12c.destroyRecursive();}else{if(_12c.destroy){_12c.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _12d=(dijit._isElementShown=function(elem){var s=_125(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _124(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _12e=elem.contentDocument;if("designMode" in _12e&&_12e.designMode=="on"){return true;}body=_12e.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");default:return elem.contentEditable=="true";}};var _12f=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_124(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _130,last,_131,_132,_133,_134,_135={};function _136(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _137=function(_138){dojo.query("> *",_138).forEach(function(_139){if((dojo.isIE<=9&&_139.scopeName!=="HTML")||!_12d(_139)){return;}if(_12f(_139)){var _13a=attr(_139,"tabIndex");if(!_124(_139,"tabIndex")||_13a==0){if(!_130){_130=_139;}last=_139;}else{if(_13a>0){if(!_131||_13a<_132){_132=_13a;_131=_139;}if(!_133||_13a>=_134){_134=_13a;_133=_139;}}}var rn=_136(_139);if(dojo.attr(_139,"checked")&&rn){_135[rn]=_139;}}if(_139.nodeName.toUpperCase()!="SELECT"){_137(_139);}});};if(_12d(root)){_137(root);}function rs(node){return _135[_136(node)]||node;};return {first:rs(_130),last:rs(last),lowest:rs(_131),highest:rs(_133)};};dijit.getFirstInTabbingOrder=function(root){var _13b=dijit._getTabNavigable(dojo.byId(root));return _13b.lowest?_13b.lowest:_13b.first;};dijit.getLastInTabbingOrder=function(root){var _13c=dijit._getTabNavigable(dojo.byId(root));return _13c.last?_13c.last:_13c.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_13d){if(_13d){dojo.mixin(this,_13d);}},get:function(name){return this[name];},set:function(name,_13e){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _13f=this[name];this[name]=_13e;if(this._watchCallbacks){this._watchCallbacks(name,_13f,_13e);}return this;},watch:function(name,_140){var _141=this._watchCallbacks;if(!_141){var self=this;_141=this._watchCallbacks=function(name,_142,_143,_144){var _145=function(_146){if(_146){_146=_146.slice();for(var i=0,l=_146.length;i<l;i++){try{_146[i].call(self,name,_142,_143);}catch(e){console.error(e);}}}};_145(_141["_"+name]);if(!_144){_145(_141["*"]);}};}if(!_140&&typeof name==="function"){_140=name;name="*";}else{name="_"+name;}var _147=_141[name];if(typeof _147!=="object"){_147=_141[name]=[];}_147.push(_140);return {unwatch:function(){_147.splice(dojo.indexOf(_147,_140),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){function _148(a,b){return a===b||(a!==a&&b!==b);};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(_149,_14a){this.create(_149,_14a);},create:function(_14b,_14c){this.srcNodeRef=dojo.byId(_14c);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_14b){this.params=_14b;dojo._mixin(this,_14b);}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 _14d=this.srcNodeRef;if(_14d&&_14d.parentNode&&this.domNode!==_14d){_14d.parentNode.replaceChild(this.domNode,_14d);}}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 _14e=function(attr,_14f){if((_14f.params&&attr in _14f.params)||_14f[attr]){_14f.set(attr,_14f[attr]);}};for(var attr in this.attributeMap){_14e(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_14e(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_150,_151=ctor.prototype;for(var _152 in _151){if(dojo.isFunction(_151[_152])&&(_150=_152.match(/^_set([a-zA-Z]*)Attr$/))&&_150[1]){r.push(_150[1].charAt(0).toLowerCase()+_150[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _153=this.baseClass.split(" ");if(!this.isLeftToRight()){_153=_153.concat(dojo.map(_153,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_153);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_154){this._beingDestroyed=true;this.destroyDescendants(_154);this.destroy(_154);},destroy:function(_155){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_156){dfe(_156,d.disconnect);});dfe(this._subscribes,function(_157){dun(_157);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_155);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_158){if(this.bgIframe){this.bgIframe.destroy(_158);delete this.bgIframe;}if(this.domNode){if(_158){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_158){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_159){dojo.forEach(this.getChildren(),function(_15a){if(_15a.destroyRecursive){_15a.destroyRecursive(_159);}});},uninitialize:function(){return false;},_setClassAttr:function(_15b){var _15c=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_15c,_15b,this["class"]);this._set("class",_15b);},_setStyleAttr:function(_15d){var _15e=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_15d)){dojo.style(_15e,_15d);}else{if(_15e.style.cssText){_15e.style.cssText+="; "+_15d;}else{_15e.style.cssText=_15d;}}this._set("style",_15d);},_attrToDom:function(attr,_15f){var _160=this.attributeMap[attr];dojo.forEach(dojo.isArray(_160)?_160:[_160],function(_161){var _162=this[_161.node||_161||"domNode"];var type=_161.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_15f)){_15f=dojo.hitch(this,_15f);}var _163=_161.attribute?_161.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_162,_163,_15f);break;case "innerText":_162.innerHTML="";_162.appendChild(dojo.doc.createTextNode(_15f));break;case "innerHTML":_162.innerHTML=_15f;break;case "class":dojo.replaceClass(_162,_15f,this[attr]);break;}},this);},get:function(name){var _164=this._getAttrNames(name);return this[_164.g]?this[_164.g]():this[name];},set:function(name,_165){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _166=this._getAttrNames(name);if(this[_166.s]){var _167=this[_166.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_165);}this._set(name,_165);}return _167||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,_168){var _169=this[name];this[name]=_168;if(this._watchCallbacks&&this._created&&!_148(_168,_169)){this._watchCallbacks(name,_169,_168);}},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,_16a,_16b){var _16c=[dojo._connect(obj,_16a,this,_16b)];this._connects.push(_16c);return _16c;},disconnect:function(_16d){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_16d){dojo.forEach(_16d,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_16e,_16f){var _170=dojo.subscribe(_16e,this,_16f);this._subscribes.push(_170);return _170;},unsubscribe:function(_171){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_171){dojo.unsubscribe(_171);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_172,_173){if(_172.declaredClass&&_172.addChild){_172.addChild(this,_173);}else{dojo.place(this.domNode,_172,_173);}return this;},defer:function(fcn,_174){var _175=setTimeout(dojo.hitch(this,function(){_175=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_174||0);return {remove:function(){if(_175){clearTimeout(_175);_175=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _176=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _177=dojo._docScroll();return {w:_176.clientWidth,h:_176.clientHeight,l:_177.x,t:_177.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){node=dojo.byId(node);var body,doc=node.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){body=dojo.body();var _178=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_178,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_178.removeChild(div);body.removeChild(_178);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _179=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_17a=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_179,"last");dojo.window.position_fixed_support=dojo.position(_17a).x!=dojo.position(_179).x;_179.removeChild(_17a);body.removeChild(_179);}try{body=doc.body||doc.getElementsByTagName("body")[0];var html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if(node==body||node==html){return;}if(!(dojo.isMozilla||isIE||isWK||dojo.isOpera)&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _17b=doc.compatMode=="BackCompat",_17c=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_17d=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_17e=(isWK||_17b)?body:html,_17f=pos||dojo.position(node),el=node.parentNode,_180=function(el){return (isIE<=6||(isIE==7&&_17b))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_180(node)){return;}while(el){if(el==body){el=_17e;}var _181=dojo.position(el),_182=_180(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_17e){_181.w=_17c;_181.h=_17d;if(_17e==html&&isIE&&rtl){_181.x+=_17e.offsetWidth-_181.w;}if(_181.x<0||!isIE||isIE>=9){_181.x=0;}if(_181.y<0||!isIE||isIE>=9){_181.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_181.w-=pb.w;_181.h-=pb.h;_181.x+=pb.l;_181.y+=pb.t;var _183=el.clientWidth,_184=_181.w-_183;if(_183>0&&_184>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_181.x+=_184;}_181.w=_183;}_183=el.clientHeight;_184=_181.h-_183;if(_183>0&&_184>0){_181.h=_183;}}if(_182){if(_181.y<0){_181.h+=_181.y;_181.y=0;}if(_181.x<0){_181.w+=_181.x;_181.x=0;}if(_181.y+_181.h>_17d){_181.h=_17d-_181.y;}if(_181.x+_181.w>_17c){_181.w=_17c-_181.x;}}var l=_17f.x-_181.x,t=_17f.y-_181.y,r=l+_17f.w-_181.w,bot=t+_17f.h-_181.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_17e||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_17b)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_17f.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_17e||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_17f.y-=s;}el=(el!=_17e)&&!_182&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}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};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}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(_185){var _186=dojo.doc,mark=_185.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_186.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_186.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_186.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_187){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_187||dojo.global,dijit.getBookmark),openedForWindow:_187};},focus:function(_188){if(!_188){return;}var node="node" in _188?_188.node:_188,_189=_188.bookmark,_18a=_188.openedForWindow,_18b=_189?_189.isCollapsed:false;if(node){var _18c=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_18c&&_18c.focus){try{_18c.focus();}catch(e){}}dijit._onFocusNode(node);}if(_189&&dojo.withGlobal(_18a||dojo.global,dijit.isCollapsed)&&!_18b){if(_18a){_18a.focus();}try{dojo.withGlobal(_18a||dojo.global,dijit.moveToBookmark,null,[_189]);}catch(e2){}}},_activeStack:[],registerIframe:function(_18d){return dijit.registerWin(_18d.contentWindow,_18d);},unregisterIframe:function(_18e){dijit.unregisterWin(_18e);},registerWin:function(_18f,_190){var _191=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_190||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_18f.document.documentElement:_18f.document;if(doc){if(dojo.isIE){_18f.document.body.attachEvent("onmousedown",_191);var _192=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_190||evt.srcElement);}else{dijit._onTouchNode(_190||evt.srcElement);}};doc.attachEvent("onactivate",_192);var _193=function(evt){dijit._onBlurNode(_190||evt.srcElement);};doc.attachEvent("ondeactivate",_193);return function(){_18f.document.detachEvent("onmousedown",_191);doc.detachEvent("onactivate",_192);doc.detachEvent("ondeactivate",_193);doc=null;};}else{doc.body.addEventListener("mousedown",_191,true);var _194=function(evt){dijit._onFocusNode(_190||evt.target);};doc.addEventListener("focus",_194,true);var _195=function(evt){dijit._onBlurNode(_190||evt.target);};doc.addEventListener("blur",_195,true);return function(){doc.body.removeEventListener("mousedown",_191,true);doc.removeEventListener("focus",_194,true);doc.removeEventListener("blur",_195,true);doc=null;};}}},unregisterWin:function(_196){_196&&_196();},_onBlurNode:function(node){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(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _197=[];try{while(node){var _198=dojo.attr(node,"dijitPopupParent");if(_198){node=dijit.byId(_198).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_199=id&&dijit.byId(id);if(_199&&!(by=="mouse"&&_199.get("disabled"))){_197.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_197,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_19a,by){var _19b=dijit._activeStack;dijit._activeStack=_19a;for(var _19c=0;_19c<Math.min(_19b.length,_19a.length);_19c++){if(_19b[_19c]!=_19a[_19c]){break;}}var _19d;for(var i=_19b.length-1;i>=_19c;i--){_19d=dijit.byId(_19b[i]);if(_19d){_19d._focused=false;_19d.set("focused",false);_19d._hasBeenBlurred=true;if(_19d._onBlur){_19d._onBlur(by);}dojo.publish("widgetBlur",[_19d,by]);}}for(i=_19c;i<_19a.length;i++){_19d=dijit.byId(_19a[i]);if(_19d){_19d._focused=true;_19d.set("focused",true);if(_19d._onFocus){_19d._onFocus(by);}dojo.publish("widgetFocus",[_19d,by]);}}}});dojo.addOnLoad(function(){var _19e=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_19e);_19e=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_19f){this.pairs=[];this.returnWrappers=_19f||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_1a0,wrap,_1a1,_1a2){this.pairs[((_1a2)?"unshift":"push")]([name,_1a0,wrap,_1a1]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_1a3,_1a4){var _1a5=dojo.map(_1a3,function(_1a6){var c={corner:_1a6,pos:{x:pos.x,y:pos.y}};if(_1a4){c.pos.x+=_1a6.charAt(1)=="L"?_1a4.x:-_1a4.x;c.pos.y+=_1a6.charAt(0)=="T"?_1a4.y:-_1a4.y;}return c;});return dijit._place(node,_1a5);};dijit._place=function(node,_1a7,_1a8,_1a9){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1a7,function(_1aa){var _1ab=_1aa.corner;var pos=_1aa.pos;var _1ac=0;var _1ad={w:_1ab.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_1ab.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_1a8){var res=_1a8(node,_1aa.aroundCorner,_1ab,_1ad,_1a9);_1ac=typeof res=="undefined"?0:res;}var _1ae=node.style;var _1af=_1ae.display;var _1b0=_1ae.visibility;_1ae.visibility="hidden";_1ae.display="";var mb=dojo.marginBox(node);_1ae.display=_1af;_1ae.visibility=_1b0;var _1b1=Math.max(view.l,_1ab.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_1b2=Math.max(view.t,_1ab.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_1ab.charAt(1)=="L"?(_1b1+mb.w):pos.x),endY=Math.min(view.t+view.h,_1ab.charAt(0)=="T"?(_1b2+mb.h):pos.y),_1b3=endX-_1b1,_1b4=endY-_1b2;_1ac+=(mb.w-_1b3)+(mb.h-_1b4);if(best==null||_1ac<best.overflow){best={corner:_1ab,aroundCorner:_1aa.aroundCorner,x:_1b1,y:_1b2,w:_1b3,h:_1b4,overflow:_1ac,spaceAvailable:_1ad};}return !_1ac;});if(best.overflow&&_1a8){_1a8(node,best.aroundCorner,best.corner,best.spaceAvailable,_1a9);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_1b5,_1b6,_1b7){_1b5=dojo.byId(_1b5);var _1b8=dojo.position(_1b5,true);return dijit._placeOnScreenAroundRect(node,_1b8.x,_1b8.y,_1b8.w,_1b8.h,_1b6,_1b7);};dijit.placeOnScreenAroundRectangle=function(node,_1b9,_1ba,_1bb){return dijit._placeOnScreenAroundRect(node,_1b9.x,_1b9.y,_1b9.width,_1b9.height,_1ba,_1bb);};dijit._placeOnScreenAroundRect=function(node,x,y,_1bc,_1bd,_1be,_1bf){var _1c0=[];for(var _1c1 in _1be){_1c0.push({aroundCorner:_1c1,corner:_1be[_1c1],pos:{x:x+(_1c1.charAt(1)=="L"?0:_1bc),y:y+(_1c1.charAt(0)=="T"?0:_1bd)}});}return dijit._place(node,_1c0,_1bf,{w:_1bc,h:_1bd});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_1c2,_1c3,_1c4){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_1c5,_1c6){var _1c7={};dojo.forEach(_1c5,function(pos){switch(pos){case "after":_1c7[_1c6?"BR":"BL"]=_1c6?"BL":"BR";break;case "before":_1c7[_1c6?"BL":"BR"]=_1c6?"BR":"BL";break;case "below-alt":_1c6=!_1c6;case "below":_1c7[_1c6?"BL":"BR"]=_1c6?"TL":"TR";_1c7[_1c6?"BR":"BL"]=_1c6?"TR":"TL";break;case "above-alt":_1c6=!_1c6;case "above":default:_1c7[_1c6?"TL":"TR"]=_1c6?"BL":"BR";_1c7[_1c6?"TR":"TL"]=_1c6?"BR":"BL";break;}});return _1c7;};}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(_1c8){var node=_1c8.domNode||_1c8,_1c9=_1c8.declaredClass?_1c8._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_1c9){_1c9=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_1c9.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_1c8.declaredClass){_1c8._popupWrapper=_1c9;dojo.connect(_1c8,"destroy",function(){dojo.destroy(_1c9);delete _1c8._popupWrapper;});}}return _1c9;},moveOffScreen:function(_1ca){var _1cb=this._createWrapper(_1ca);dojo.style(_1cb,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_1cc){var _1cd=this._createWrapper(_1cc);dojo.style(_1cd,"display","none");},getTopPopup:function(){var _1ce=this._stack;for(var pi=_1ce.length-1;pi>0&&_1ce[pi].parent===_1ce[pi-1].widget;pi--){}return _1ce[pi];},open:function(args){var _1cf=this._stack,_1d0=args.popup,_1d1=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_1d2=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_1cf.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_1cf[_1cf.length-1].widget.domNode))){dijit.popup.close(_1cf[_1cf.length-1].widget);}var _1d3=this._createWrapper(_1d0);dojo.attr(_1d3,{id:id,style:{zIndex:this._beginZIndex+_1cf.length},"class":"dijitPopup "+(_1d0.baseClass||_1d0["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_1d0.bgIframe){_1d0.bgIframe=new dijit.BackgroundIframe(_1d3);}}var best=_1d2?dijit.placeOnScreenAroundElement(_1d3,_1d2,_1d1,_1d0.orient?dojo.hitch(_1d0,"orient"):null):dijit.placeOnScreen(_1d3,args,_1d1=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_1d3.style.display="";_1d3.style.visibility="visible";_1d0.domNode.style.visibility="visible";var _1d4=[];_1d4.push(dojo.connect(_1d3,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _1d5=this.getTopPopup();if(_1d5&&_1d5.onCancel){_1d5.onCancel();}}}}));if(_1d0.onCancel){_1d4.push(dojo.connect(_1d0,"onCancel",args.onCancel));}_1d4.push(dojo.connect(_1d0,_1d0.onExecute?"onExecute":"onChange",this,function(){var _1d6=this.getTopPopup();if(_1d6&&_1d6.onExecute){_1d6.onExecute();}}));_1cf.push({widget:_1d0,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1d4});if(_1d0.onOpen){_1d0.onOpen(best);}return best;},close:function(_1d7){var _1d8=this._stack;while((_1d7&&dojo.some(_1d8,function(elem){return elem.widget==_1d7;}))||(!_1d7&&_1d8.length)){var top=_1d8.pop(),_1d9=top.widget,_1da=top.onClose;if(_1d9.onClose){_1d9.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_1d9&&_1d9.domNode){this.hide(_1d9);}if(_1da){_1da();}}}};dijit._frames=new function(){var _1db=[];this.pop=function(){var _1dc;if(_1db.length){_1dc=_1db.pop();_1dc.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_1dc=dojo.doc.createElement(html);}else{_1dc=dojo.create("iframe");_1dc.src="javascript:\"\"";_1dc.className="dijitBackgroundIframe";dojo.style(_1dc,"opacity",0.1);}_1dc.tabIndex=-1;dijit.setWaiRole(_1dc,"presentation");}return _1dc;};this.push=function(_1dd){_1dd.style.display="none";_1db.push(_1dd);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _1de=(this.iframe=dijit._frames.pop());node.appendChild(_1de);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_1de,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.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(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_1df=d.isOpera,maj=Math.floor,ff=d.isFF,_1e0=d.boxModel.replace(/-/,""),_1e1={dj_quirks:d.isQuirks,dj_opera:_1df,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_1e1["dj_ie"]=true;_1e1["dj_ie"+maj(ie)]=true;_1e1["dj_iequirks"]=d.isQuirks;}if(ff){_1e1["dj_ff"+maj(ff)]=true;}_1e1["dj_"+_1e0]=true;var _1e2="";for(var clz in _1e1){if(_1e1[clz]){_1e2+=clz+" ";}}html.className=d.trim(html.className+" "+_1e2);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _1e3="dj_rtl dijitRtl "+_1e2.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_1e3);}});})();}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,_1e4,node,_1e5,obj,_1e6,_1e7,_1e8){if(obj!=this._obj){this.stop();this._initialDelay=_1e7||500;this._subsequentDelay=_1e6||0.9;this._minDelay=_1e8||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1e4,_1e5);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(node,_1e9,_1ea,_1eb,_1ec,_1ed,_1ee){if(_1e9.keyCode){_1e9.charOrCode=_1e9.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1e9.charCode){_1e9.charOrCode=String.fromCharCode(_1e9.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_1e9.charOrCode&&(_1e9.ctrlKey===undefined||_1e9.ctrlKey==evt.ctrlKey)&&(_1e9.altKey===undefined||_1e9.altKey==evt.altKey)&&(_1e9.metaKey===undefined||_1e9.metaKey==(evt.metaKey||false))&&(_1e9.shiftKey===undefined||_1e9.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1ea,node,_1eb,_1e9,_1ec,_1ed,_1ee);}else{if(dijit.typematic._obj==_1e9){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1e9){dijit.typematic.stop();}})];},addMouseListener:function(node,_1ef,_1f0,_1f1,_1f2,_1f3){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1ef,node,_1f0,node,_1f1,_1f2,_1f3);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_1ef,node,_1f0,node,_1f1,_1f2,_1f3);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1f4,_1f5,_1f6,_1f7,_1f8,_1f9,_1fa,_1fb){return this.addKeyListener(_1f5,_1f6,_1f7,_1f8,_1f9,_1fa,_1fb).concat(this.addMouseListener(_1f4,_1f7,_1f8,_1f9,_1fa,_1fb));}};}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 _1fc=cs.backgroundImage;var _1fd=(cs.borderTopColor==cs.borderRightColor)||(_1fc!=null&&(_1fc=="none"||_1fc=="url(invalid-url:)"));dojo[_1fd?"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(elem,role){var _1fe=this.getWaiRole(elem);return role?(_1fe.indexOf(role)>-1):(_1fe.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _1ff=dojo.attr(elem,"role");if(!_1ff){return;}if(role){var t=dojo.trim((" "+_1ff+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_200){return elem.hasAttribute?elem.hasAttribute("aria-"+_200):!!elem.getAttribute("aria-"+_200);},getWaiState:function(elem,_201){return elem.getAttribute("aria-"+_201)||"";},setWaiState:function(elem,_202,_203){elem.setAttribute("aria-"+_202,_203);},removeWaiState:function(elem,_204){elem.removeAttribute("aria-"+_204);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_205,_206){if(_205&&dojo.isFunction(_205._onConnect)){_205._onConnect(_206);}});dijit._connectOnUseEventHandler=function(_207){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _208=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_208);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_208);});})();}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(_209,_20a){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(_20b){if(_20b in this._deferredConnects){var _20c=this[this._deferredConnects[_20b]||"domNode"];this.connect(_20c,_20b.toLowerCase(),_20b);delete this._deferredConnects[_20b];}},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,_20d){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_20d);},attr:function(name,_20e){if(dojo.config.isDebug){var _20f=arguments.callee._ach||(arguments.callee._ach={}),_210=(arguments.callee.caller||"unknown caller").toString();if(!_20f[_210]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_210,"","2.0");_20f[_210]=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,_211,_212){var d=dojo,dc=d._connect,_213=this.inherited(arguments,[obj,_211=="ondijitclick"?"onclick":_211,_212]);if(_211=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_212);_213.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 _213;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_214,url,_215){if(typeof _214=="string"){var _216=dojo.moduleUrl(_214,url);}else{_216=_214;_215=url;}var key=_216.toString();var val=_215;if(_215!=undefined&&!dojo.isString(_215)){val=("value" in _215?_215.value:undefined);}var _217=_215&&_215.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_217?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_217?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 _218=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_218){val=_218[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 _219=this.declaredClass,_21a=this;return dojo.string.substitute(tmpl,this,function(_21b,key){if(key.charAt(0)=="!"){_21b=dojo.getObject(key.substr(1),false,_21a);}if(typeof _21b=="undefined"){throw new Error(_219+" template:"+key);}if(_21b==null){return "";}return key.charAt(0)=="!"?_21b:_21b.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _21c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_21c)){node=dojo._toDom(this._stringRepl(_21c));if(node.nodeType!=1){throw new Error("Invalid template: "+_21c);}}else{node=_21c.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(_21d){var dest=this.containerNode;if(_21d&&dest){while(_21d.hasChildNodes()){dest.appendChild(_21d.firstChild);}}},_attachTemplateNodes:function(_21e,_21f){_21f=_21f||function(n,p){return n.getAttribute(p);};var _220=dojo.isArray(_21e)?_21e:(_21e.all||_21e.getElementsByTagName("*"));var x=dojo.isArray(_21e)?0:-1;for(;x<_220.length;x++){var _221=(x==-1)?_21e:_220[x];if(this.widgetsInTemplate&&(_21f(_221,"dojoType")||_21f(_221,"data-dojo-type"))){continue;}var _222=_21f(_221,"dojoAttachPoint")||_21f(_221,"data-dojo-attach-point");if(_222){var _223,_224=_222.split(/\s*,\s*/);while((_223=_224.shift())){if(dojo.isArray(this[_223])){this[_223].push(_221);}else{this[_223]=_221;}this._attachPoints.push(_223);}}var _225=_21f(_221,"dojoAttachEvent")||_21f(_221,"data-dojo-attach-event");if(_225){var _226,_227=_225.split(/\s*,\s*/);var trim=dojo.trim;while((_226=_227.shift())){if(_226){var _228=null;if(_226.indexOf(":")!=-1){var _229=_226.split(":");_226=trim(_229[0]);_228=trim(_229[1]);}else{_226=trim(_226);}if(!_228){_228=_226;}this._attachEvents.push(this.connect(_221,_226,_228));}}}var role=_21f(_221,"waiRole");if(role){dijit.setWaiRole(_221,role);}var _22a=_21f(_221,"waiState");if(_22a){dojo.forEach(_22a.split(/\s*,\s*/),function(_22b){if(_22b.indexOf("-")!=-1){var pair=_22b.split("-");dijit.setWaiState(_221,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(_22c){delete this[_22c];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_22d,_22e,_22f){var _230=dijit._Templated._templateCache;var key=_22e||_22d;var _231=_230[key];if(_231){try{if(!_231.ownerDocument||_231.ownerDocument==dojo.doc){return _231;}}catch(e){}dojo.destroy(_231);}if(!_22e){_22e=dojo.cache(_22d,{sanitize:true});}_22e=dojo.string.trim(_22e);if(_22f||_22e.match(/\$\{([^\}]+)\}/g)){return (_230[key]=_22e);}else{var node=dojo._toDom(_22e);if(node.nodeType!=1){throw new Error("Invalid template: "+_22e);}return (_230[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _232=dijit._Templated._templateCache;for(var key in _232){var _233=_232[key];if(typeof _233=="object"){dojo.destroy(_233);}delete _232[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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(_234){if(!this.disabled){switch(_234.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 _235=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_235);});break;}}},_setStateClass:function(){var _236=this.baseClass.split(" ");function _237(_238){_236=_236.concat(dojo.map(_236,function(c){return c+_238;}),"dijit"+_238);};if(!this.isLeftToRight()){_237("Rtl");}if(this.checked){_237("Checked");}if(this.state){_237(this.state);}if(this.selected){_237("Selected");}if(this.disabled){_237("Disabled");}else{if(this.readOnly){_237("ReadOnly");}else{if(this.active){_237("Active");}else{if(this.hovering){_237("Hover");}}}}if(this._focused){_237("Focused");}var tn=this.stateNode||this.domNode,_239={};dojo.forEach(tn.className.split(" "),function(c){_239[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _239[c];});}dojo.forEach(_236,function(c){_239[c]=true;});var _23a=[];for(var c in _239){_23a.push(c);}tn.className=_23a.join(" ");this._stateClasses=_236;},_trackMouseState:function(node,_23b){var _23c=false,_23d=false,_23e=false;var self=this,cn=dojo.hitch(this,"connect",node);function _23f(){var _240=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_23b+"Hover",_23c&&!_23d&&!_240);dojo.toggleClass(node,_23b+"Active",_23d&&!_240);dojo.toggleClass(node,_23b+"Focused",_23e&&!_240);};cn("onmouseenter",function(){_23c=true;_23f();});cn("onmouseleave",function(){_23c=false;_23d=false;_23f();});cn("onmousedown",function(){_23d=true;_23f();});cn("onmouseup",function(){_23d=false;_23f();});cn("onfocus",function(){_23e=true;_23f();});cn("onblur",function(){_23e=false;_23f();});this.watch("disabled",_23f);this.watch("readOnly",_23f);}});}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(_241){this._set("disabled",_241);dojo.attr(this.focusNode,"disabled",_241);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_241);}dijit.setWaiState(this.focusNode,"disabled",_241);if(_241){this._set("hovering",false);this._set("active",false);var _242="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_242)?_242:[_242],function(_243){var node=this[_243];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(_244){dojo.deprecated("setDisabled("+_244+") is deprecated. Use set('disabled',"+_244+") instead.","","2.0");this.set("disabled",_244);},_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(_245){},_onChangeActive:false,_handleOnChange:function(_246,_247){if(this._lastValueReported==undefined&&(_247===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_246;}this._pendingOnChange=this._pendingOnChange||(typeof _246!=typeof this._lastValueReported)||(this.compare(_246,this._lastValueReported)!=0);if((this.intermediateChanges||_247||_247===undefined)&&this._pendingOnChange){this._lastValueReported=_246;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_246);}),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(_248){dojo.deprecated("dijit.form._FormWidget:setValue("+_248+") is deprecated.  Use set('value',"+_248+") instead.","","2.0");this.set("value",_248);},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 _249=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_249);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_24a){dojo.attr(this.focusNode,"readOnly",_24a);dijit.setWaiState(this.focusNode,"readonly",_24a);this._set("readOnly",_24a);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_24b,_24c){this._handleOnChange(_24b,_24c);},_handleOnChange:function(_24d,_24e){this._set("value",_24d);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 _24f=this.domNode;var _250=_24f.parentNode;var _251=_24f.firstChild||_24f;var _252=_251.style.filter;var _253=this;while(_250&&_250.clientHeight==0){(function ping(){var _254=_253.connect(_250,"onscroll",function(e){_253.disconnect(_254);_251.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_251.style.filter=_252;},0);});})();_250=_250.parentNode;}}}});}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(_255,_256){var _257=this.containerNode;if(_256&&typeof _256=="number"){var _258=this.getChildren();if(_258&&_258.length>=_256){_257=_258[_256-1].domNode;_256="after";}}dojo.place(_255.domNode,_257,_256);if(this._started&&!_255._started){_255.startup();}},removeChild:function(_259){if(typeof _259=="number"){_259=this.getChildren()[_259];}if(_259){var node=_259.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_25a){dojo.forEach(this.getChildren(),function(_25b){_25b.destroyRecursive(_25a);});},_getSiblingOfChild:function(_25c,dir){var node=_25c.domNode,_25d=(dir>0?"nextSibling":"previousSibling");do{node=node[_25d];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_25e){return dojo.indexOf(this.getChildren(),_25e);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_25f){_25f.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _260=this.dropDown,_261=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_261){if(dojo.hasClass(t,"dijitPopup")){_261=true;}else{t=t.parentNode;}}if(_261){t=e.target;if(_260.onItemClick){var _262;while(t&&!(_262=dijit.byNode(t))){t=t.parentNode;}if(_262&&_262.onClick&&_262.getParent){_262.getParent().onItemClick(_262,e);}}return;}}}if(this._opened&&_260.focus&&_260.autoFocus!==false){window.setTimeout(dojo.hitch(_260,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _263={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_263+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_264=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_264.tagName||"").toLowerCase()!=="input"||(_264.type&&_264.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _265=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_265);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_266){_266();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _267=this.dropDown,_268=_267.domNode,_269=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_268.style.width){this._explicitDDWidth=true;}if(_268.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _26a={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_26a.width="";}if(!this._explicitDDHeight){_26a.height="";}dojo.style(_268,_26a);var _26b=this.maxHeight;if(_26b==-1){var _26c=dojo.window.getBox(),_26d=dojo.position(_269,false);_26b=Math.floor(Math.max(_26d.y,_26c.h-(_26d.y+_26d.h)));}if(_267.startup&&!_267._started){_267.startup();}dijit.popup.moveOffScreen(_267);var mb=dojo._getMarginSize(_268);var _26e=(_26b&&mb.h>_26b);dojo.style(_268,{overflowX:"hidden",overflowY:_26e?"auto":"hidden"});if(_26e){mb.h=_26b;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_269.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_269.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_267.resize)){_267.resize(mb);}else{dojo.marginBox(_268,mb);}}var _26f=dijit.popup.open({parent:this,popup:_267,around:_269,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _26f;},closeDropDown:function(_270){if(this._opened){if(_270){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _271=dijit.byNode(node);if(_271&&typeof _271._onSubmit=="function"){_271._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_272){if(_272&&(!this.params||!("label" in this.params))){this.set("label",_272.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_273){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_273);},_setLabelAttr:function(_274){this._set("label",_274);this.containerNode.innerHTML=_274;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _275=this.iconClass||"dijitNoIcon",_276=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_276,_275);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _277=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_277[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _278=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_278);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _279=this.dropDown;return (!!_279&&(!_279.href||_279.isLoaded));},loadDropDown:function(){var _27a=this.dropDown;if(!_27a){return;}if(!this.isLoaded()){var _27b=dojo.connect(_27a,"onLoad",this,function(){dojo.disconnect(_27b);this.openDropDown();});_27a.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_27c){if(!this.disabled){dijit.focus(_27c=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_27d,_27e){this._set("checked",_27d);dojo.attr(this.focusNode||this.domNode,"checked",_27d);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_27d);this._handleOnChange(_27d,_27e);},setChecked:function(_27f){dojo.deprecated("setChecked("+_27f+") is deprecated. Use set('checked',"+_27f+") instead.","","2.0");this.set("checked",_27f);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.DropDownButton"]){dojo._hasResource["dijit.form.DropDownButton"]=true;dojo.provide("dijit.form.DropDownButton");}if(!dojo._hasResource["dijit.Calendar"]){dojo._hasResource["dijit.Calendar"]=true;dojo.provide("dijit.Calendar");dojo.declare("dijit.Calendar",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Calendar.html","<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" dojoAttachEvent=\"onkeypress: _onKeyPress\" aria-labelledby=\"${id}_year\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"decrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" role=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\n\t\t\t</th>\n\t\t\t<th class='dijitReset' colspan=\"5\">\n\t\t\t\t<div dojoType=\"dijit.form.DropDownButton\" dojoAttachPoint=\"monthDropDownButton\"\n\t\t\t\t\tid=\"${id}_mddb\" tabIndex=\"-1\">\n\t\t\t\t</div>\n\t\t\t</th>\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"incrementMonth\">\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" role=\"presentation\"/>\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\n\t\t\t</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\n\t\t</tr>\n\t</thead>\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut, onmousedown: _onDayMouseDown, onmouseup: _onDayMouseUp\" class=\"dijitReset dijitCalendarBodyContainer\">\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\n\t\t</tr>\n\t</tbody>\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\n\t\t<tr>\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\" id=\"${id}_year\"></span>\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\n\t\t\t\t</h3>\n\t\t\t</td>\n\t\t</tr>\n\t</tfoot>\n</table>\n"),widgetsInTemplate:true,value:new Date(""),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",currentFocus:new Date(),baseClass:"dijitCalendar",cssStateNodes:{"decrementMonth":"dijitCalendarArrow","incrementMonth":"dijitCalendarArrow","previousYearLabelNode":"dijitCalendarPreviousYear","nextYearLabelNode":"dijitCalendarNextYear"},_isValidDate:function(_280){return _280&&!isNaN(_280)&&typeof _280=="object"&&_280.toString()!=this.constructor.prototype.value.toString();},setValue:function(_281){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_281);},_getValueAttr:function(){var _282=new this.dateClassObj(this.value);_282.setHours(0,0,0,0);if(_282.getDate()<this.value.getDate()){_282=this.dateFuncObj.add(_282,"hour",1);}return _282;},_setValueAttr:function(_283,_284){if(_283){_283=new this.dateClassObj(_283);}if(this._isValidDate(_283)){if(!this._isValidDate(this.value)||this.dateFuncObj.compare(_283,this.value)){_283.setHours(1,0,0,0);if(!this.isDisabledDate(_283,this.lang)){this._set("value",_283);this.set("currentFocus",_283);if(_284||typeof _284=="undefined"){this.onChange(this.get("value"));this.onValueSelected(this.get("value"));}}}}else{this._set("value",null);this.set("currentFocus",this.currentFocus);}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _285=new this.dateClassObj(this.currentFocus);_285.setDate(1);var _286=_285.getDay(),_287=this.dateFuncObj.getDaysInMonth(_285),_288=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_285,"month",-1)),_289=new this.dateClassObj(),_28a=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_28a>_286){_28a-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_28b,i){i+=_28a;var date=new this.dateClassObj(_285),_28c,_28d="dijitCalendar",adj=0;if(i<_286){_28c=_288-_286+i+1;adj=-1;_28d+="Previous";}else{if(i>=(_286+_287)){_28c=i-_286-_287+1;adj=1;_28d+="Next";}else{_28c=i-_286+1;_28d+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_28c);if(!this.dateFuncObj.compare(date,_289,"date")){_28d="dijitCalendarCurrentDate "+_28d;}if(this._isSelectedDate(date,this.lang)){_28d="dijitCalendarSelectedDate "+_28d;}if(this.isDisabledDate(date,this.lang)){_28d="dijitCalendarDisabledDate "+_28d;}var _28e=this.getClassForDate(date,this.lang);if(_28e){_28d=_28e+" "+_28d;}_28b.className=_28d+"Month dijitCalendarDateTemplate";_28b.dijitDateValue=date.valueOf();dojo.attr(_28b,"dijitDateValue",date.valueOf());var _28f=dojo.query(".dijitCalendarDateLabel",_28b)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_28f,text);},this);var _290=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_285);this.monthDropDownButton.dropDown.set("months",_290);this.monthDropDownButton.containerNode.innerHTML=(dojo.isIE==6?"":"<div class='dijitSpacer'>"+this.monthDropDownButton.dropDown.domNode.innerHTML+"</div>")+"<div class='dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'>"+_290[_285.getMonth()]+"</div>";var y=_285.getFullYear()-1;var d=new this.dateClassObj();dojo.forEach(["previous","current","next"],function(name){d.setFullYear(y++);this._setText(this[name+"YearLabelNode"],this.dateLocaleModule.format(d,{selector:"year",locale:this.lang}));},this);},goToToday:function(){this.set("value",new this.dateClassObj());},constructor:function(args){var _291=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_291,false);this.datePackage=args.datePackage||this.datePackage;this.dateFuncObj=dojo.getObject(this.datePackage,false);this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);},postMixInProperties:function(){if(isNaN(this.value)){delete this.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _292=dojo.hitch(this,function(_293,n){var _294=dojo.query(_293,this.domNode)[0];for(var i=0;i<n;i++){_294.parentNode.appendChild(_294.cloneNode(true));}});_292(".dijitCalendarDayLabelTemplate",6);_292(".dijitCalendarDateTemplate",6);_292(".dijitCalendarWeekTemplate",5);var _295=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _296=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_297,i){this._setText(_297,_295[(i+_296)%7]);},this);var _298=new this.dateClassObj(this.currentFocus);this.monthDropDownButton.dropDown=new dijit.Calendar._MonthDropDown({id:this.id+"_mdd",onChange:dojo.hitch(this,"_onMonthSelect")});this.set("currentFocus",_298,false);var _299=this;var _29a=function(_29b,_29c,adj){_299._connects.push(dijit.typematic.addMouseListener(_299[_29b],_299,function(_29d){if(_29d>=0){_299._adjustDisplay(_29c,adj);}},0.8,500));};_29a("incrementMonth","month",1);_29a("decrementMonth","month",-1);_29a("nextYearLabelNode","year",1);_29a("previousYearLabelNode","year",-1);},_adjustDisplay:function(part,_29e){this._setCurrentFocusAttr(this.dateFuncObj.add(this.currentFocus,part,_29e));},_setCurrentFocusAttr:function(date,_29f){var _2a0=this.currentFocus,_2a1=_2a0?dojo.query("[dijitDateValue="+_2a0.valueOf()+"]",this.domNode)[0]:null;date=new this.dateClassObj(date);date.setHours(1,0,0,0);this._set("currentFocus",date);this._populateGrid();var _2a2=dojo.query("[dijitDateValue="+date.valueOf()+"]",this.domNode)[0];_2a2.setAttribute("tabIndex",this.tabIndex);if(this._focused||_29f){_2a2.focus();}if(_2a1&&_2a1!=_2a2){if(dojo.isWebKit){_2a1.setAttribute("tabIndex","-1");}else{_2a1.removeAttribute("tabIndex");}}},focus:function(){this._setCurrentFocusAttr(this.currentFocus,true);},_onMonthSelect:function(_2a3){this.currentFocus=this.dateFuncObj.add(this.currentFocus,"month",_2a3-this.currentFocus.getMonth());this._populateGrid();},_onDayClick:function(evt){dojo.stopEvent(evt);for(var node=evt.target;node&&!node.dijitDateValue;node=node.parentNode){}if(node&&!dojo.hasClass(node,"dijitCalendarDisabledDate")){this.set("value",node.dijitDateValue);}},_onDayMouseOver:function(evt){var node=dojo.hasClass(evt.target,"dijitCalendarDateLabel")?evt.target.parentNode:evt.target;if(node&&(node.dijitDateValue||node==this.previousYearLabelNode||node==this.nextYearLabelNode)){dojo.addClass(node,"dijitCalendarHoveredDate");this._currentNode=node;}},_onDayMouseOut:function(evt){if(!this._currentNode){return;}if(evt.relatedTarget&&evt.relatedTarget.parentNode==this._currentNode){return;}var cls="dijitCalendarHoveredDate";if(dojo.hasClass(this._currentNode,"dijitCalendarActiveDate")){cls+=" dijitCalendarActiveDate";}dojo.removeClass(this._currentNode,cls);this._currentNode=null;},_onDayMouseDown:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){dojo.addClass(node,"dijitCalendarActiveDate");this._currentNode=node;}},_onDayMouseUp:function(evt){var node=evt.target.parentNode;if(node&&node.dijitDateValue){dojo.removeClass(node,"dijitCalendarActiveDate");}},handleKey:function(evt){var dk=dojo.keys,_2a4=-1,_2a5,_2a6=this.currentFocus;switch(evt.keyCode){case dk.RIGHT_ARROW:_2a4=1;case dk.LEFT_ARROW:_2a5="day";if(!this.isLeftToRight()){_2a4*=-1;}break;case dk.DOWN_ARROW:_2a4=1;case dk.UP_ARROW:_2a5="week";break;case dk.PAGE_DOWN:_2a4=1;case dk.PAGE_UP:_2a5=evt.ctrlKey||evt.altKey?"year":"month";break;case dk.END:_2a6=this.dateFuncObj.add(_2a6,"month",1);_2a5="day";case dk.HOME:_2a6=new this.dateClassObj(_2a6);_2a6.setDate(1);break;case dk.ENTER:case dk.SPACE:this.set("value",this.currentFocus);break;default:return true;}if(_2a5){_2a6=this.dateFuncObj.add(_2a6,_2a5,_2a4);}this._setCurrentFocusAttr(_2a6);return false;},_onKeyPress:function(evt){if(!this.handleKey(evt)){dojo.stopEvent(evt);}},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_2a7,_2a8){return this._isValidDate(this.value)&&!this.dateFuncObj.compare(_2a7,this.value,"date");},isDisabledDate:function(_2a9,_2aa){},getClassForDate:function(_2ab,_2ac){}});dojo.declare("dijit.Calendar._MonthDropDown",[dijit._Widget,dijit._Templated],{months:[],templateString:"<div class='dijitCalendarMonthMenu dijitMenu' "+"dojoAttachEvent='onclick:_onClick,onmouseover:_onMenuHover,onmouseout:_onMenuHover'></div>",_setMonthsAttr:function(_2ad){this.domNode.innerHTML=dojo.map(_2ad,function(_2ae,idx){return _2ae?"<div class='dijitCalendarMonthLabel' month='"+idx+"'>"+_2ae+"</div>":"";}).join("");},_onClick:function(evt){this.onChange(dojo.attr(evt.target,"month"));},onChange:function(_2af){},_onMenuHover:function(evt){dojo.toggleClass(evt.target,"dijitCalendarMonthLabelHover",evt.type=="mouseover");}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("dijit.form","templates/TextBox.html","<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_2b0,_2b1,_2b2){var _2b3;if(_2b0!==undefined){_2b3=this.filter(_2b0);if(typeof _2b2!="string"){if(_2b3!==null&&((typeof _2b3!="number")||!isNaN(_2b3))){_2b2=this.filter(this.format(_2b3,this.constraints));}else{_2b2="";}}}if(_2b2!=null&&_2b2!=undefined&&((typeof _2b2)!="number"||!isNaN(_2b2))&&this.textbox.value!=_2b2){this.textbox.value=_2b2;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_2b3,_2b1]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_2b4){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_2b4);},_setDisplayedValueAttr:function(_2b5){if(_2b5===null||_2b5===undefined){_2b5="";}else{if(typeof _2b5!="string"){_2b5=String(_2b5);}}this.textbox.value=_2b5;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_2b6,_2b7){return ((_2b6==null||_2b6==undefined)?"":(_2b6.toString?_2b6.toString():_2b6));},parse:function(_2b8,_2b9){return _2b8;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _2ba=this;setTimeout(function(){_2ba._handleOnChange(_2ba.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(dojo.isIE){setTimeout(dojo.hitch(this,function(){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _2bb=this.domNode.getElementsByTagName("INPUT");if(_2bb){for(var i=0;i<_2bb.length;i++){_2bb[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _2bc;if(dojo.isIE){var _2bd=dojo.doc.selection.createRange();var _2be=_2bd.parentElement();_2bc=_2be==this.textbox&&_2bd.text.length==0;}else{_2bc=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_2bc){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_2bf,_2c0,stop){var _2c1=dojo.global;var _2c2=dojo.doc;_2bf=dojo.byId(_2bf);if(isNaN(_2c0)){_2c0=0;}if(isNaN(stop)){stop=_2bf.value?_2bf.value.length:0;}dijit.focus(_2bf);if(_2c2["selection"]&&dojo.body()["createTextRange"]){if(_2bf.createTextRange){var r=_2bf.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_2c0);r.moveEnd("character",stop-_2c0);r.select();}}else{if(_2c1["getSelection"]){if(_2bf.setSelectionRange){_2bf.setSelectionRange(_2c0,stop);}}}};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_2c3,_2c4,_2c5,rtl){if(this.aroundNode&&this.aroundNode===_2c4){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_2c3;var pos=dijit.placeOnScreenAroundElement(this.domNode,_2c4,dijit.getPopupAroundAlignment((_2c5&&_2c5.length)?_2c5:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_2c4;},orient:function(node,_2c6,_2c7,_2c8,_2c9){this.connectorNode.style.top="";var _2ca=_2c8.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_2c6+"-"+_2c7];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _2cb=Math.min((Math.max(_2ca,1)),size.w);var _2cc=_2cb<size.w;this.domNode.style.width=_2cb+"px";if(_2cc){this.containerNode.style.overflow="auto";var _2cd=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_2cd>_2cb){_2cd=_2cd+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_2cd+"px";}}if(_2c7.charAt(0)=="B"&&_2c6.charAt(0)=="B"){var mb=dojo.marginBox(node);var _2ce=this.connectorNode.offsetHeight;if(mb.h>_2c8.h){var _2cf=_2c8.h-(_2c9.h/2)-(_2ce/2);this.connectorNode.style.top=_2cf+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_2c9.h/2-_2ce/2,0),mb.h-_2ce)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_2ca);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_2d0){if(this._onDeck&&this._onDeck[1]==_2d0){this._onDeck=null;}else{if(this.aroundNode===_2d0){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_2d1,_2d2,_2d3,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_2d1,_2d2,_2d3,rtl);};dijit.hideTooltip=function(_2d4){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_2d4);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_2d5){dojo.forEach(this._connections||[],function(_2d6){dojo.forEach(_2d6,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_2d5)?_2d5:(_2d5?[_2d5]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_2d5);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _2d7=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_2d7);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_2d8){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_2d8,this.position,!this.isLeftToRight());this._connectNode=_2d8;this.onShow(_2d8,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_2d9,_2da){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_2db){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_2dc,_2dd){return (new RegExp("^(?:"+this.regExpGen(_2dd)+")"+(this.required?"":"?")+"$")).test(_2dc)&&(!this.required||!this._isEmpty(_2dc))&&(this._isEmpty(_2dc)||this.parse(_2dc,_2dd)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_2de){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_2df){return (this.trim?/^\s*$/:/^$/).test(_2df);},getErrorMessage:function(_2e0){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_2e1){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_2e2){var _2e3="";var _2e4=this.disabled||this.isValid(_2e2);if(_2e4){this._maskValidSubsetError=true;}var _2e5=this._isEmpty(this.textbox.value);var _2e6=!_2e4&&_2e2&&this._isValidSubset();this._set("state",_2e4?"":(((((!this._hasBeenBlurred||_2e2)&&_2e5)||_2e6)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_2e4?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_2e2&&_2e6;_2e3=this.getErrorMessage(_2e2);}else{if(this.state=="Incomplete"){_2e3=this.getPromptMessage(_2e2);this._maskValidSubsetError=!this._hasBeenBlurred||_2e2;}else{if(_2e5){_2e3=this.getPromptMessage(_2e2);}}}this.set("message",_2e3);return _2e4;},displayMessage:function(_2e7){dijit.hideTooltip(this.domNode);if(_2e7&&this._focused){dijit.showTooltip(_2e7,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_2e8){if(!_2e8.locale&&this.lang){_2e8.locale=this.lang;}this._set("constraints",_2e8);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _2e9="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_2e9+=re;break;case ")":_2e9+="|$)";break;default:_2e9+="(?:"+re+"|$)";break;}});}try{"".search(_2e9);}catch(e){_2e9=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_2e9+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_2ea){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_2eb){this._set("required",_2eb);dijit.setWaiState(this.focusNode,"required",_2eb);this._refreshState();},_setMessageAttr:function(_2ec){this._set("message",_2ec);this.displayMessage(_2ec);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_2ed){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_2ee,_2ef){return ("min" in _2ef?(this.compare(_2ee,_2ef.min)>=0):true)&&("max" in _2ef?(this.compare(_2ee,_2ef.max)<=0):true);},isInRange:function(_2f0){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _2f1=false;var _2f2=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_2f1=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_2f2=(typeof max=="number")&&max>0;}return _2f1||_2f2;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_2f3){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_2f3));},getErrorMessage:function(_2f4){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_2f4)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_2f5){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_2f6,_2f7){dijit.setWaiState(this.focusNode,"valuenow",_2f6);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");new Date("X");dojo.declare("dijit.form._DateTimeTextBox",[dijit.form.RangeBoundTextBox,dijit._HasDropDown],{templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),hasDownArrow:true,openOnClick:true,regExpGen:dojo.date.locale.regexp,datePackage:"dojo.date",compare:function(val1,val2){var _2f8=this._isInvalidDate(val1);var _2f9=this._isInvalidDate(val2);return _2f8?(_2f9?0:-1):(_2f9?1:dojo.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_2fa,_2fb){if(!_2fa){return "";}return this.dateLocaleModule.format(_2fa,_2fb);},"parse":function(_2fc,_2fd){return this.dateLocaleModule.parse(_2fc,_2fd)||(this._isEmpty(_2fc)?null:undefined);},serialize:function(val,_2fe){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_2fe);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _2ff=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_2ff,false);this.value=new this.dateClassObj("");this.datePackage=args.datePackage||this.datePackage;this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);this.regExpGen=this.dateLocaleModule.regexp;this._invalidDate=dijit.form._DateTimeTextBox.prototype.value.toString();},buildRendering:function(){this.inherited(arguments);if(!this.hasDownArrow){this._buttonNode.style.display="none";}if(this.openOnClick||!this.hasDownArrow){this._buttonNode=this.domNode;this.baseClass+=" dijitComboBoxOpenOnClick";}},_setConstraintsAttr:function(_300){_300.selector=this._selector;_300.fullYear=true;var _301=dojo.date.stamp.fromISOString;if(typeof _300.min=="string"){_300.min=_301(_300.min);}if(typeof _300.max=="string"){_300.max=_301(_300.max);}this.inherited(arguments);},_isInvalidDate:function(_302){return !_302||isNaN(_302)||typeof _302!="object"||_302.toString()==this._invalidDate;},_setValueAttr:function(_303,_304,_305){if(_303!==undefined){if(typeof _303=="string"){_303=dojo.date.stamp.fromISOString(_303);}if(this._isInvalidDate(_303)){_303=null;}if(_303 instanceof Date&&!(this.dateClassObj instanceof Date)){_303=new this.dateClassObj(_303);}}this.inherited(arguments);if(this.value instanceof Date){this.filterString="";}if(this.dropDown){this.dropDown.set("value",_303,false);}},_set:function(attr,_306){if(attr=="value"&&this.value instanceof Date&&this.compare(_306,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_307){if(this.dropDown){this.dropDown.destroy();}var _308=dojo.getObject(this.popupClass,false),_309=this,_30a=this.get("value");this.dropDown=new _308({onChange:function(_30b){_309.set("value",_30b,true);},id:this.id+"_popup",dir:_309.dir,lang:_309.lang,value:_30a,currentFocus:!this._isInvalidDate(_30a)?_30a:this.dropDownDefaultValue,constraints:_309.constraints,filterString:_309.filterString,datePackage:_309.datePackage,isDisabledDate:function(date){return !_309.rangeCheck(date,_309.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_30c,_30d){this._setValueAttr(this.parse(_30c,this.constraints),_30d,_30c);}});}if(!dojo._hasResource["dijit.form.DateTextBox"]){dojo._hasResource["dijit.form.DateTextBox"]=true;dojo.provide("dijit.form.DateTextBox");dojo.declare("dijit.form.DateTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});}if(!dojo._hasResource["dijit._TimePicker"]){dojo._hasResource["dijit._TimePicker"]=true;dojo.provide("dijit._TimePicker");dojo.declare("dijit._TimePicker",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/TimePicker.html","<div id=\"widget_${id}\" class=\"dijitMenu\"\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode dijitUpArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div></div\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode dijitDownArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div></div\n></div>\n"),baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",visibleRange:"T05:00:00",value:new Date(),_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:dojo.date.stamp.toISOString,setValue:function(_30e){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_30e);},_setValueAttr:function(date){this._set("value",date);this._showText();},_setFilterStringAttr:function(val){this._set("filterString",val);this._showText();},isDisabledDate:function(_30f,_310){return false;},_getFilteredNodes:function(_311,_312,_313,_314){var _315=[],_316=_314?_314.date:this._refDate,n,i=_311,max=this._maxIncrement+Math.abs(i),chk=_313?-1:1,dec=_313?1:0,inc=1-dec;do{i-=dec;n=this._createOption(i);if(n){if((_313&&n.date>_316)||(!_313&&n.date<_316)){break;}_315[_313?"unshift":"push"](n);_316=n.date;}i+=inc;}while(_315.length<_312&&(i*chk)<max);return _315;},_showText:function(){var _317=dojo.date.stamp.fromISOString;this.timeMenu.innerHTML="";this._clickableIncrementDate=_317(this.clickableIncrement);this._visibleIncrementDate=_317(this.visibleIncrement);this._visibleRangeDate=_317(this.visibleRange);var _318=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();},_319=_318(this._clickableIncrementDate),_31a=_318(this._visibleIncrementDate),_31b=_318(this._visibleRangeDate),time=(this.value||this.currentFocus).getTime();this._refDate=new Date(time-time%(_319*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_31b/_319;this._visibleIncrement=_31a/_319;this._maxIncrement=(60*60*24)/_319;var _31c=Math.min(this._totalIncrements,10),_31d=this._getFilteredNodes(0,(_31c>>1)+1,false),_31e=[],_31f=_31c-_31d.length,_320=this._getFilteredNodes(0,_31f,true,_31d[0]);if(_320.length<_31f&&_31d.length>0){_31e=this._getFilteredNodes(_31d.length,_31f-_320.length,false,_31d[_31d.length-1]);}dojo.forEach(_320.concat(_31d,_31e),function(n){this.timeMenu.appendChild(n);},this);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints);},_setConstraintsAttr:function(_321){dojo.mixin(this,_321);if(!_321.locale){_321.locale=this.lang;}},postCreate:function(){this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addMouseListener(this.upArrow,this,"_onArrowUp",33,250));this._connects.push(dijit.typematic.addMouseListener(this.downArrow,this,"_onArrowDown",33,250));this.inherited(arguments);},_buttonMouse:function(e){dojo.toggleClass(e.currentTarget,e.currentTarget==this.upArrow?"dijitUpArrowHover":"dijitDownArrowHover",e.type=="mouseenter"||e.type=="mouseover");},_createOption:function(_322){var date=new Date(this._refDate);var _323=this._clickableIncrementDate;date.setHours(date.getHours()+_323.getHours()*_322,date.getMinutes()+_323.getMinutes()*_322,date.getSeconds()+_323.getSeconds()*_322);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _324=dojo.date.locale.format(date,this.constraints);if(this.filterString&&_324.toLowerCase().indexOf(this.filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_322;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_324},div);if(_322%this._visibleIncrement<1&&_322%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_322%this._clickableIncrement)){dojo.addClass(div,this.baseClass+"Tick");}}if(this.isDisabledDate(date)){dojo.addClass(div,this.baseClass+"ItemDisabled");}if(this.value&&!dojo.date.compare(this.value,date,this.constraints.selector)){div.selected=true;dojo.addClass(div,this.baseClass+"ItemSelected");if(dojo.hasClass(div,this.baseClass+"Marker")){dojo.addClass(div,this.baseClass+"MarkerSelected");}else{dojo.addClass(div,this.baseClass+"TickSelected");}this._highlightOption(div,true);}return div;},_onOptionSelected:function(tgt){var _325=tgt.target.date||tgt.target.parentNode.date;if(!_325||this.isDisabledDate(_325)){return;}this._highlighted_option=null;this.set("value",_325);this.onChange(_325);},onChange:function(time){},_highlightOption:function(node,_326){if(!node){return;}if(_326){if(this._highlighted_option){this._highlightOption(this._highlighted_option,false);}this._highlighted_option=node;}else{if(this._highlighted_option!==node){return;}else{this._highlighted_option=null;}}dojo.toggleClass(node,this.baseClass+"ItemHover",_326);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_326);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_326);}},onmouseover:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;if(!dojo.hasClass(tgr,this.baseClass+"Item")){return;}this._highlightOption(tgr,true);},onmouseout:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;this._highlightOption(tgr,false);},_mouseWheeled:function(e){this._keyboardSelected=null;dojo.stopEvent(e);var _327=(dojo.isIE?e.wheelDelta:-e.detail);this[(_327>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_328){if(typeof _328=="number"&&_328==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _329=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_329,1,true,this.timeMenu.childNodes[0]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);this.timeMenu.insertBefore(divs[0],this.timeMenu.childNodes[0]);}},_onArrowDown:function(_32a){if(typeof _32a=="number"&&_32a==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _32b=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_32b,1,false,this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[0]);this.timeMenu.appendChild(divs[0]);}},handleKey:function(e){var dk=dojo.keys;if(e.charOrCode==dk.DOWN_ARROW||e.charOrCode==dk.UP_ARROW){dojo.stopEvent(e);if(this._highlighted_option&&!this._highlighted_option.parentNode){this._highlighted_option=null;}var _32c=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_32c)[0];if(!tgt){tgt=_32c.childNodes[0];}else{if(_32c.childNodes.length){if(e.charOrCode==dk.DOWN_ARROW&&!tgt.nextSibling){this._onArrowDown();}else{if(e.charOrCode==dk.UP_ARROW&&!tgt.previousSibling){this._onArrowUp();}}if(e.charOrCode==dk.DOWN_ARROW){tgt=tgt.nextSibling;}else{tgt=tgt.previousSibling;}}}this._highlightOption(tgt,true);this._keyboardSelected=tgt;return false;}else{if(e.charOrCode==dk.ENTER||e.charOrCode===dk.TAB){if(!this._keyboardSelected&&e.charOrCode===dk.TAB){return true;}if(this._highlighted_option){this._onOptionSelected({target:this._highlighted_option});}return e.charOrCode===dk.TAB;}}return undefined;}});}if(!dojo._hasResource["dijit.form.TimeTextBox"]){dojo._hasResource["dijit.form.TimeTextBox"]=true;dojo.provide("dijit.form.TimeTextBox");dojo.declare("dijit.form.TimeTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:"dijit._TimePicker",_selector:"time",value:new Date(""),_onKey:function(evt){this.inherited(arguments);switch(evt.keyCode){case dojo.keys.ENTER:case dojo.keys.TAB:case dojo.keys.ESCAPE:case dojo.keys.DOWN_ARROW:case dojo.keys.UP_ARROW:break;default:setTimeout(dojo.hitch(this,function(){var val=this.get("displayedValue");this.filterString=(val&&!this.parse(val,this.constraints))?val.toLowerCase():"";if(this._opened){this.closeDropDown();}this.openDropDown();}),0);}}});}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_32d,_32e){var _32f=[];function _330(attr,dir,comp,s){return function(_331,_332){var a=s.getValue(_331,attr);var b=s.getValue(_332,attr);return dir*comp(a,b);};};var _333;var map=_32e.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_32d.length;i++){_333=_32d[i];var attr=_333.attribute;if(attr){var dir=(_333.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_32f.push(_330(attr,dir,comp,_32e));}}return function(rowA,rowB){var i=0;while(i<_32f.length){var ret=_32f[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_334){var _335=_334,opts=this.options||[],l=opts.length;if(_335===undefined){return opts;}if(dojo.isArray(_335)){return dojo.map(_335,"return this.getOptions(item);",this);}if(dojo.isObject(_334)){if(!dojo.some(this.options,function(o,idx){if(o===_335||(o.value&&o.value===_335.value)){_335=idx;return true;}return false;})){_335=-1;}}if(typeof _335=="string"){for(var i=0;i<l;i++){if(opts[i].value===_335){_335=i;break;}}}if(typeof _335=="number"&&_335>=0&&_335<l){return this.options[_335];}return null;},addOption:function(_336){if(!dojo.isArray(_336)){_336=[_336];}dojo.forEach(_336,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_337){if(!dojo.isArray(_337)){_337=[_337];}var _338=this.getOptions(_337);dojo.forEach(_338,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_339){if(!dojo.isArray(_339)){_339=[_339];}dojo.forEach(_339,function(i){var _33a=this.getOptions(i),k;if(_33a){for(k in i){_33a[k]=i[k];}}},this);this._loadChildren();},setStore:function(_33b,_33c,_33d){var _33e=this.store;_33d=_33d||{};if(_33e!==_33b){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_33b&&_33b.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_33b,"onNew",this,"_onNewItem"),dojo.connect(_33b,"onDelete",this,"_onDeleteItem"),dojo.connect(_33b,"onSet",this,"_onSetItem")];}this._set("store",_33b);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_33b){this._loadingStore=true;_33b.fetch(dojo.delegate(_33d,{onComplete:function(_33f,opts){if(this.sortByLabel&&!_33d.sort&&_33f.length){_33f.sort(dojo.data.util.sorter.createSortFunction([{attribute:_33b.getLabelAttributes(_33f[0])[0]}],_33b));}if(_33d.onFetch){_33f=_33d.onFetch.call(this,_33f,opts);}dojo.forEach(_33f,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_33c);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_33f);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _33e;},_setValueAttr:function(_340,_341){if(this._loadingStore){this._pendingValue=_340;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_340)){_340=[_340];}dojo.forEach(_340,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_340[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_340=dojo.filter(_340,function(i){return i&&i.value;});if(!this.multiple&&(!_340[0]||!_340[0].value)&&opts.length){_340[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_340,function(v){return v.value===i.value;});});var val=dojo.map(_340,function(i){return i.value;}),disp=dojo.map(_340,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_341);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_342){_342.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_343){var _344=dojo.some(val,function(v){return _343.option&&(v===_343.option.value);});dojo.toggleClass(_343.domNode,this.baseClass+"SelectedOption",_344);dijit.setWaiState(_343.domNode,"selected",_344);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_345){if(!_345||!_345.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _346=this.store;this.removeOption(_346.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _347=this.store,_348=_347.getLabel(item),_349=(_348?_347.getIdentity(item):null);return {value:_349,label:_348,item:item};},_addOptionForItem:function(item){var _34a=this.store;if(!_34a.isItemLoaded(item)){_34a.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _34b=this._getOptionObjForItem(item);this.addOption(_34b);},constructor:function(_34c){this._oValue=(_34c||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _34d=this.store,_34e={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_34e[i]=this[i];}delete this[i];},this);if(_34d&&_34d.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_34d,this._oValue,_34e);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_34f){},_removeOptionItem:function(_350){},_setDisplay:function(_351){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_352){},onSetStore:function(){}});}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(_353,_354){var _355=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_353,function(code){_355[code]=prev;});dojo.forEach(_354,function(code){_355[code]=next;});_355[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_355[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(_356,_357){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_356);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _358=this._getFirstFocusableChild();if(_358){this.focusChild(_358);}},focusLastChild:function(){var _359=this._getLastFocusableChild();if(_359){this.focusChild(_359);}},focusNext:function(){var _35a=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_35a);},focusPrev:function(){var _35b=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_35b,true);},focusChild:function(_35c,last){if(this.focusedChild&&_35c!==this.focusedChild){this._onChildBlur(this.focusedChild);}_35c.set("tabIndex",this.tabIndex);_35c.focus(last?"end":"start");this._set("focusedChild",_35c);},_startupChild:function(_35d){_35d.set("tabIndex","-1");this.connect(_35d,"_onFocus",function(){_35d.set("tabIndex",this.tabIndex);});this.connect(_35d,"_onBlur",function(){_35d.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(_35e){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_35f,dir){if(_35f){_35f=this._getSiblingOfChild(_35f,dir);}var _360=this.getChildren();for(var i=0;i<_360.length;i++){if(!_35f){_35f=_360[(dir>0)?0:(_360.length-1)];}if(_35f.isFocusable()){return _35f;}_35f=this._getSiblingOfChild(_35f,dir);}return null;}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _361=dijit.getEnclosingWidget(this.domNode.parentNode);return _361&&_361.isContainer?_361:null;},_getSibling:function(_362){var node=this.domNode;do{node=node[_362+"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.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(_363){if(_363&&!("label" in this.params)){this.set("label",_363.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _364=this.id+"_text";dojo.attr(this.containerNode,"id",_364);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_364+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_364);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(_365){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_365);},setLabel:function(_366){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_366);},setDisabled:function(_367){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_367);},_setDisabledAttr:function(_368){dijit.setWaiState(this.focusNode,"disabled",_368?"true":"false");this._set("disabled",_368);},_setAccelKeyAttr:function(_369){this.accelKeyNode.style.display=_369?"":"none";this.accelKeyNode.innerHTML=_369;dojo.attr(this.containerNode,"colSpan",_369?"1":"2");this._set("accelKey",_369);}});}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 _36a=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_36a[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(_36b){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_36b);dijit.setWaiState(this.domNode,"checked",_36b);this._set("checked",_36b);},onChange:function(_36c){},_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(_36d){_36d.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_36e){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _36f=this._getTopMenu();if(_36f&&_36f._isMenuBar){_36f.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _370=this.currentPopup.parentMenu;if(_370.focusedChild){_370.focusedChild._setSelected(false);}_370.focusedChild=this.currentPopup.from_item;_370.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 _371=item.popup;if(_371){this._stopPendingCloseTimer(_371);_371._pendingClose_timer=setTimeout(function(){_371._pendingClose_timer=null;if(_371.parentMenu){_371.parentMenu.currentPopup=null;}dijit.popup.close(_371);},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(_372){if(_372._pendingClose_timer){clearTimeout(_372._pendingClose_timer);_372._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 _373=this.focusedChild;if(!_373){return;}var _374=_373.popup;if(_374.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_374.parentMenu=this;_374.from_item=_373;var self=this;dijit.popup.open({parent:this,popup:_374,around:_373.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(_373);self._cleanUp();_373._setSelected(true);self.focusedChild=_373;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_374;_374.connect(_374.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_374.focus){_374._focus_timer=setTimeout(dojo.hitch(_374,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 _375=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(_376){var win=dojo.window.get(this._iframeContentDocument(_376))||this._iframeContentDocument(_376)["__parent__"]||(_376.name&&dojo.doc.frames[_376.name])||null;return win;},_iframeContentDocument:function(_377){var doc=_377.contentDocument||(_377.contentWindow&&_377.contentWindow.document)||(_377.name&&dojo.doc.frames[_377.name]&&dojo.doc.frames[_377.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _378=node,win=this._iframeContentWindow(_378);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _379={node:node,iframe:_378};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_379));var _37a=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_378,{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,_378);}})];});_379.connects=cn?_37a(cn):[];if(_378){_379.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_378);cn=dojo.withGlobal(win,dojo.body);_379.connects=_37a(cn);});if(_378.addEventListener){_378.addEventListener("load",_379.onloadHandler,false);}else{_378.attachEvent("onload",_379.onloadHandler);}}},unBindDomNode:function(_37b){var node;try{node=dojo.byId(_37b);}catch(e){return;}var _37c="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_37c)){var bid=dojo.attr(node,_37c)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _37d=b.iframe;if(_37d){if(_37d.removeEventListener){_37d.removeEventListener("load",b.onloadHandler,false);}else{_37d.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_37c);delete this._bindings[bid];}},_scheduleOpen:function(_37e,_37f,_380){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_37e,iframe:_37f,coords:_380});}),1);}},_openMyself:function(args){var _381=args.target,_382=args.iframe,_383=args.coords;if(_383){if(_382){var od=_381.ownerDocument,ifc=dojo.position(_382,true),win=this._iframeContentWindow(_382),_384=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_382),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_382,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_382,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_382,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_382,cs.borderTopWidth):0);_383.x+=ifc.x+left-_384.x;_383.y+=ifc.y+top-_384.y;}}else{_383=dojo.position(_381,true);_383.x+=10;_383.y+=10;}var self=this;var _385=dijit.getFocus(this);function _386(){if(self.refocus){dijit.focus(_385);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_383.x,y:_383.y,onExecute:_386,onCancel:_386,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["dijit.form.Select"]){dojo._hasResource["dijit.form.Select"]=true;dojo.provide("dijit.form.Select");dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}dojo.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";dijit.setWaiRole(o,"listbox");dijit.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},resize:function(mb){if(mb){dojo.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\n\trole=\"combobox\" aria-haspopup=\"true\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_387){if(!_387.value&&!_387.label){return new dijit.MenuSeparator();}else{var _388=dojo.hitch(this,"_setValueAttr",_387);var item=new dijit.MenuItem({option:_387,label:_387.label||this.emptyLabel,onClick:_388,disabled:_387.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_389){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_389));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_38a){if(_38a===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_38b){_38b.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_38c){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_38d){var lbl=_38d||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_38e){var _38f=this.isValid(_38e);this._set("state",_38f?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_38f?"false":"true");var _390=_38f?"":this._missingMsg;if(this.message!==_390){this._set("message",_390);dijit.hideTooltip(this.domNode);if(_390){dijit.showTooltip(_390,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _38f;},isValid:function(_391){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},_setStyleAttr:function(_392){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_393){this._loadChildren(true);this._isLoaded=true;_393();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_394){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_394);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_395){this._set("readOnly",_395);dojo.attr(this.focusNode,"readOnly",_395);dijit.setWaiState(this.focusNode,"readonly",_395);},_setValueAttr:function(_396,_397){if(typeof _396=="string"){this._set("value",_396);dojo.attr(this.focusNode,"value",_396);_396=true;}if(this._created){this.set("checked",_396,_397);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_398){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){dojo.stopEvent(e);return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_399){this.inherited(arguments);if(!this._created){return;}if(_399){var _39a=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_39b){if(_39b.name==_39a.name&&_39b!=_39a.focusNode&&_39b.form==_39a.focusNode.form){var _39c=dijit.getEnclosingWidget(_39b);if(_39c&&_39c.checked){_39c.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_39d,_39e){var _39f=[];var _3a0,_3a1,_3a2=0;while(_3a0=re.exec(str)){_3a1=str.slice(_3a2,re.lastIndex-_3a0[0].length);if(_3a1.length){_39f.push(_3a1);}if(_39d){if(dojo.isOpera){var copy=_3a0.slice(0);while(copy.length<_3a0.length){copy.push(null);}_3a0=copy;}var _3a3=_39d.apply(_39e,_3a0.slice(1).concat(_39f.length));if(typeof _3a3!="undefined"){_39f.push(_3a3);}}_3a2=re.lastIndex;}_3a1=str.slice(_3a2);if(_3a1.length){_39f.push(_3a1);}return _39f;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_3a4,_3a5){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _3a6=new dojox.string.sprintf.Formatter(_3a4);return _3a6.format.apply(_3a6,args);};dojox.string.sprintf.Formatter=function(_3a7){var _3a8=[];this._mapped=false;this._format=_3a7;this._tokens=dojox.string.tokenize(_3a7,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_3a9,_3aa,_3ab,_3ac,_3ad,_3ae,_3af){if(_3a9){this._mapped=true;}return {mapping:_3a9,intmapping:_3aa,flags:_3ab,_minWidth:_3ac,period:_3ad,_precision:_3ae,specifier:_3af};},_specifiers:{b:{base:2,isInt:true},o:{base:8,isInt:true},x:{base:16,isInt:true},X:{extend:["x"],toUpper:true},d:{base:10,isInt:true},i:{extend:["d"]},u:{extend:["d"],isUnsigned:true},c:{setArg:function(_3b0){if(!isNaN(_3b0.arg)){var num=parseInt(_3b0.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_3b0.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_3b1){_3b1.maxWidth=(_3b1.period==".")?_3b1.precision:-1;}},e:{isDouble:true,doubleNotation:"e"},E:{extend:["e"],toUpper:true},f:{isDouble:true,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:true,doubleNotation:"g"},G:{extend:["g"],toUpper:true}},format:function(_3b2){if(this._mapped&&typeof _3b2!="object"){throw new Error("format requires a mapping");}var str="";var _3b3=0;for(var i=0,_3b4;i<this._tokens.length;i++){_3b4=this._tokens[i];if(typeof _3b4=="string"){str+=_3b4;}else{if(this._mapped){if(typeof _3b2[_3b4.mapping]=="undefined"){throw new Error("missing key "+_3b4.mapping);}_3b4.arg=_3b2[_3b4.mapping];}else{if(_3b4.intmapping){var _3b3=parseInt(_3b4.intmapping)-1;}if(_3b3>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_3b4.arg=arguments[_3b3++];}if(!_3b4.compiled){_3b4.compiled=true;_3b4.sign="";_3b4.zeroPad=false;_3b4.rightJustify=false;_3b4.alternative=false;var _3b5={};for(var fi=_3b4.flags.length;fi--;){var flag=_3b4.flags.charAt(fi);_3b5[flag]=true;switch(flag){case " ":_3b4.sign=" ";break;case "+":_3b4.sign="+";break;case "0":_3b4.zeroPad=(_3b5["-"])?false:true;break;case "-":_3b4.rightJustify=true;_3b4.zeroPad=false;break;case "#":_3b4.alternative=true;break;default:throw Error("bad formatting flag '"+_3b4.flags.charAt(fi)+"'");}}_3b4.minWidth=(_3b4._minWidth)?parseInt(_3b4._minWidth):0;_3b4.maxWidth=-1;_3b4.toUpper=false;_3b4.isUnsigned=false;_3b4.isInt=false;_3b4.isDouble=false;_3b4.precision=1;if(_3b4.period=="."){if(_3b4._precision){_3b4.precision=parseInt(_3b4._precision);}else{_3b4.precision=0;}}var _3b6=this._specifiers[_3b4.specifier];if(typeof _3b6=="undefined"){throw new Error("unexpected specifier '"+_3b4.specifier+"'");}if(_3b6.extend){dojo.mixin(_3b6,this._specifiers[_3b6.extend]);delete _3b6.extend;}dojo.mixin(_3b4,_3b6);}if(typeof _3b4.setArg=="function"){_3b4.setArg(_3b4);}if(typeof _3b4.setMaxWidth=="function"){_3b4.setMaxWidth(_3b4);}if(_3b4._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_3b4.minWidth=parseInt(arguments[_3b3++]);if(isNaN(_3b4.minWidth)){throw new Error("the argument for * width at position "+_3b3+" is not a number in "+this._format);}if(_3b4.minWidth<0){_3b4.rightJustify=true;_3b4.minWidth=-_3b4.minWidth;}}if(_3b4._precision=="*"&&_3b4.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_3b4.precision=parseInt(arguments[_3b3++]);if(isNaN(_3b4.precision)){throw Error("the argument for * precision at position "+_3b3+" is not a number in "+this._format);}if(_3b4.precision<0){_3b4.precision=1;_3b4.period="";}}if(_3b4.isInt){if(_3b4.period=="."){_3b4.zeroPad=false;}this.formatInt(_3b4);}else{if(_3b4.isDouble){if(_3b4.period!="."){_3b4.precision=6;}this.formatDouble(_3b4);}}this.fitField(_3b4);str+=""+_3b4.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_3b7){var i=parseInt(_3b7.arg);if(!isFinite(i)){if(typeof _3b7.arg!="number"){throw new Error("format argument '"+_3b7.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_3b7.isUnsigned||_3b7.base!=10)){i=4294967295+i+1;}if(i<0){_3b7.arg=(-i).toString(_3b7.base);this.zeroPad(_3b7);_3b7.arg="-"+_3b7.arg;}else{_3b7.arg=i.toString(_3b7.base);if(!i&&!_3b7.precision){_3b7.arg="";}else{this.zeroPad(_3b7);}if(_3b7.sign){_3b7.arg=_3b7.sign+_3b7.arg;}}if(_3b7.base==16){if(_3b7.alternative){_3b7.arg="0x"+_3b7.arg;}_3b7.arg=_3b7.toUpper?_3b7.arg.toUpperCase():_3b7.arg.toLowerCase();}if(_3b7.base==8){if(_3b7.alternative&&_3b7.arg.charAt(0)!="0"){_3b7.arg="0"+_3b7.arg;}}},formatDouble:function(_3b8){var f=parseFloat(_3b8.arg);if(!isFinite(f)){if(typeof _3b8.arg!="number"){throw new Error("format argument '"+_3b8.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_3b8.doubleNotation){case "e":_3b8.arg=f.toExponential(_3b8.precision);break;case "f":_3b8.arg=f.toFixed(_3b8.precision);break;case "g":if(Math.abs(f)<0.0001){_3b8.arg=f.toExponential(_3b8.precision>0?_3b8.precision-1:_3b8.precision);}else{_3b8.arg=f.toPrecision(_3b8.precision);}if(!_3b8.alternative){_3b8.arg=_3b8.arg.replace(/(\..*[^0])0*/,"$1");_3b8.arg=_3b8.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_3b8.doubleNotation+"'");}_3b8.arg=_3b8.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_3b8.arg=_3b8.arg.replace(/^\./,"0.");}if(_3b8.alternative){_3b8.arg=_3b8.arg.replace(/^(\d+)$/,"$1.");_3b8.arg=_3b8.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_3b8.sign){_3b8.arg=_3b8.sign+_3b8.arg;}_3b8.arg=_3b8.toUpper?_3b8.arg.toUpperCase():_3b8.arg.toLowerCase();},zeroPad:function(_3b9,_3ba){_3ba=(arguments.length==2)?_3ba:_3b9.precision;if(typeof _3b9.arg!="string"){_3b9.arg=""+_3b9.arg;}var _3bb=_3ba-10;while(_3b9.arg.length<_3bb){_3b9.arg=(_3b9.rightJustify)?_3b9.arg+this._zeros10:this._zeros10+_3b9.arg;}var pad=_3ba-_3b9.arg.length;_3b9.arg=(_3b9.rightJustify)?_3b9.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_3b9.arg;},fitField:function(_3bc){if(_3bc.maxWidth>=0&&_3bc.arg.length>_3bc.maxWidth){return _3bc.arg.substring(0,_3bc.maxWidth);}if(_3bc.zeroPad){this.zeroPad(_3bc,_3bc.minWidth);return;}this.spacePad(_3bc);},spacePad:function(_3bd,_3be){_3be=(arguments.length==2)?_3be:_3bd.minWidth;if(typeof _3bd.arg!="string"){_3bd.arg=""+_3bd.arg;}var _3bf=_3be-10;while(_3bd.arg.length<_3bf){_3bd.arg=(_3bd.rightJustify)?_3bd.arg+this._spaces10:this._spaces10+_3bd.arg;}var pad=_3be-_3bd.arg.length;_3bd.arg=(_3bd.rightJustify)?_3bd.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_3bd.arg;}});}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 _3c0=n.scrollLeft,_3c1=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_3c0!=n.scrollLeft||_3c1!=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,_3c2){this.node=dojo.byId(node);if(!_3c2){_3c2={};}this.handle=_3c2.handle?dojo.byId(_3c2.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_3c2.delay>0?_3c2.delay:0;this.skip=_3c2.skip;this.mover=_3c2.mover?_3c2.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(_3c3,node){return new dojo.dnd.Moveable(node,_3c3);},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(_3c4){dojo.publish("/dnd/move/start",[_3c4]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3c5){dojo.publish("/dnd/move/stop",[_3c5]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3c6,e){},onMove:function(_3c7,_3c8,e){this.onMoving(_3c7,_3c8);var s=_3c7.node.style;s.left=_3c8.l+"px";s.top=_3c8.t+"px";this.onMoved(_3c7,_3c8);},onMoving:function(_3c9,_3ca){},onMoved:function(_3cb,_3cc){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_3cd,node){return new dojo.dnd.move.constrainedMoveable(node,_3cd);},constructor:function(node,_3ce){if(!_3ce){_3ce={};}this.constraints=_3ce.constraints;this.within=_3ce.within;},onFirstMove:function(_3cf){var c=this.constraintBox=this.constraints.call(this,_3cf);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_3cf.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_3d0,_3d1){var c=this.constraintBox,s=_3d0.node.style;this.onMoving(_3d0,_3d1);_3d1.l=_3d1.l<c.l?c.l:c.r<_3d1.l?c.r:_3d1.l;_3d1.t=_3d1.t<c.t?c.t:c.b<_3d1.t?c.b:_3d1.t;s.left=_3d1.l+"px";s.top=_3d1.t+"px";this.onMoved(_3d0,_3d1);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_3d2,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_3d2);},constructor:function(node,_3d3){var box=_3d3&&_3d3.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_3d4,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_3d4);},constructor:function(node,_3d5){var area=_3d5&&_3d5.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _3d6=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_3d7){if(!_3d7){_3d7={};}if(_3d7.timeout&&typeof _3d7.timeout=="number"&&_3d7.timeout>=0){this.timeout=_3d7.timeout;}},markupFactory:function(_3d8,node){return new dojo.dnd.TimedMoveable(node,_3d8);},onMoveStop:function(_3d9){if(_3d9._timer){clearTimeout(_3d9._timer);_3d6.call(this,_3d9,_3d9._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_3da,_3db){_3da._leftTop=_3db;if(!_3da._timer){var _3dc=this;_3da._timer=setTimeout(function(){_3da._timer=null;_3d6.call(_3dc,_3da,_3da._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _3dd=this;dojo.mixin(_3dd,args);_3dd.node=args.node;_3dd._showArgs=dojo.mixin({},args);_3dd._showArgs.node=_3dd.node;_3dd._showArgs.duration=_3dd.showDuration;_3dd.showAnim=_3dd.showFunc(_3dd._showArgs);_3dd._hideArgs=dojo.mixin({},args);_3dd._hideArgs.node=_3dd.node;_3dd._hideArgs.duration=_3dd.hideDuration;_3dd.hideAnim=_3dd.hideFunc(_3dd._hideArgs);dojo.connect(_3dd.showAnim,"beforeBegin",dojo.hitch(_3dd.hideAnim,"stop",true));dojo.connect(_3dd.hideAnim,"beforeBegin",dojo.hitch(_3dd.showAnim,"stop",true));},show:function(_3de){return this.showAnim.play(_3de||0);},hide:function(_3df){return this.hideAnim.play(_3df||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_3e0={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _3e1=function(_3e2){this._index=-1;this._animations=_3e2||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_3e1,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_3e3,_3e4){if(!this._current){this._current=this._animations[this._index=0];}if(!_3e4&&this._current.status()=="playing"){return this;}var _3e5=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_3e6=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_3e7=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_3e5);d.disconnect(_3e6);d.disconnect(_3e7);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_3e8,_3e9){this.pause();var _3ea=this.duration*_3e8;this._current=null;d.some(this._animations,function(a){if(a.duration<=_3ea){this._current=a;return true;}_3ea-=a.duration;return false;});if(this._current){this._current.gotoPercent(_3ea/this._current.duration,_3e9);}return this;},stop:function(_3eb){if(this._current){if(_3eb){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_3e1,_3e0);dojo.fx.chain=function(_3ec){return new _3e1(_3ec);};var _3ed=function(_3ee){this._animations=_3ee||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_3ee,function(a){var _3ef=a.duration;if(a.delay){_3ef+=a.delay;}if(this.duration<_3ef){this.duration=_3ef;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_3ed,{_doAction:function(_3f0,args){d.forEach(this._animations,function(a){a[_3f0].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_3f1,args){var t=this._pseudoAnimation;t[_3f1].apply(t,args);},play:function(_3f2,_3f3){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_3f4,_3f5){var ms=this.duration*_3f4;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_3f5);});this._call("gotoPercent",arguments);return this;},stop:function(_3f6){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_3ed,_3e0);dojo.fx.combine=function(_3f7){return new _3ed(_3f7);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _3f8=d.style(node,"height");return Math.max(_3f8,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_3f9){if(_3f9.reset){_3f9.reset();}});},validate:function(){var _3fa=false;return dojo.every(dojo.map(this.getDescendants(),function(_3fb){_3fb._hasBeenBlurred=true;var _3fc=_3fb.disabled||!_3fb.validate||_3fb.validate();if(!_3fc&&!_3fa){dojo.window.scrollIntoView(_3fb.containerNode||_3fb.domNode);_3fb.focus();_3fa=true;}return _3fc;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_3fd){if(!_3fd.name){return;}var _3fe=map[_3fd.name]||(map[_3fd.name]=[]);_3fe.push(_3fd);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _3ff=map[name],_400=dojo.getObject(name,false,obj);if(_400===undefined){continue;}if(!dojo.isArray(_400)){_400=[_400];}if(typeof _3ff[0].checked=="boolean"){dojo.forEach(_3ff,function(w,i){w.set("value",dojo.indexOf(_400,w.value)!=-1);});}else{if(_3ff[0].multiple){_3ff[0].set("value",_400);}else{dojo.forEach(_3ff,function(w,i){w.set("value",_400[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_401){var name=_401.name;if(!name||_401.disabled){return;}var _402=_401.get("value");if(typeof _401.checked=="boolean"){if(/Radio/.test(_401.declaredClass)){if(_402!==false){dojo.setObject(name,_402,obj);}else{_402=dojo.getObject(name,false,obj);if(_402===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_402!==false){ary.push(_402);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_402);}else{dojo.setObject(name,[prev,_402],obj);}}else{dojo.setObject(name,_402,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_403){},_getState:function(){var _404=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_404,"Error")>=0?"Error":dojo.indexOf(_404,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_405){var _406=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_405?function(name,val){_406[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _407=(this._childConnections=[]),_408=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_409){dojo.forEach(["state","disabled"],function(attr){_408.push(_409.watch(attr,function(attr,_40a,_40b){_406.set("state",_406._getState());}));});});var _40c=function(){if(_406._onChangeDelayTimer){clearTimeout(_406._onChangeDelayTimer);}_406._onChangeDelayTimer=setTimeout(function(){delete _406._onChangeDelayTimer;_406._set("value",_406.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_40d){_407.push(_406.connect(_40d,"onChange",_40c));_408.push(_40d.watch("disabled",_40c));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_40e,_40f){this.onValidStateChange(_40f=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_410){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _411=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_411.lowest||_411.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_411.last||_411.highest||this._firstFocusItem;}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_412){this.node.className="dijitDialogUnderlay "+_412;this._set("class",_412);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _413=dojo.window.getBox();os.top=_413.t+"px";os.left=_413.l+"px";is.width=_413.w+"px";is.height=_413.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}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 _414=this.getParent&&this.getParent();if(!(_414&&_414.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_415,_416){var node=this.domNode;if(_415){dojo.marginBox(node,_415);if(_415.t){node.style.top=_415.t+"px";}if(_415.l){node.style.left=_415.l+"px";}}var mb=_416||{};dojo.mixin(mb,_415||{});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(_417){var cls=this.baseClass+"-child "+(_417.baseClass?this.baseClass+"-"+_417.baseClass:"");dojo.addClass(_417.domNode,cls);},addChild:function(_418,_419){this.inherited(arguments);if(this._started){this._setupChild(_418);}},removeChild:function(_41a){var cls=this.baseClass+"-child"+(_41a.baseClass?" "+this.baseClass+"-"+_41a.baseClass:"");dojo.removeClass(_41a.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 _41b=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_41c,dim){var _41d=_41c.resize?_41c.resize(dim):dojo.marginBox(_41c.domNode,dim);if(_41d){dojo.mixin(_41c,_41d);}else{dojo.mixin(_41c,dojo.marginBox(_41c.domNode));dojo.mixin(_41c,dim);}};dijit.layout.layoutChildren=function(_41e,dim,_41f,_420,_421){dim=dojo.mixin({},dim);dojo.addClass(_41e,"dijitLayoutContainer");_41f=dojo.filter(_41f,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_41f,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_41f,function(_422){var elm=_422.domNode,pos=(_422.region||_422.layoutAlign);var _423=elm.style;_423.left=dim.l+"px";_423.top=dim.t+"px";_423.position="absolute";dojo.addClass(elm,"dijitAlign"+_41b(pos));var _424={};if(_420&&_420==_422.id){_424[_422.region=="top"||_422.region=="bottom"?"h":"w"]=_421;}if(pos=="top"||pos=="bottom"){_424.w=dim.w;size(_422,_424);dim.h-=_422.h;if(pos=="top"){dim.t+=_422.h;}else{_423.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_424.h=dim.h;size(_422,_424);dim.w-=_422.w;if(pos=="left"){dim.l+=_422.w;}else{_423.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_422,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_425){_425.startup();_425._started=true;});},startup:function(){if(this._started){return;}var _426=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_426&&_426.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _427=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_428=_427.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_429=dojo.filter(_428.map(dijit.byNode),function(_42a){return _42a&&_42a.domNode&&_42a.resize;});if(_427.length==_428.length&&_429.length==1){this._singleChild=_429[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_42b,_42c){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_42b,_42c);},_scheduleLayout:function(_42d,_42e){if(this._isShown()){this._layout(_42d,_42e);}else{this._needLayout=true;this._changeSize=_42d;this._resultSize=_42e;}},_layout:function(_42f,_430){if(_42f){dojo.marginBox(this.domNode,_42f);}var cn=this.containerNode;if(cn===this.domNode){var mb=_430||{};dojo.mixin(mb,_42f||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_431){if(_431.resize){_431.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_432=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_432&&_432.style&&(_432.style.display!="none");}}},_onShow:function(){this._wasShown=true;if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _433=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _434=cont.length,i=0;i<cont.length;i=_434==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_435,node){dojo.mixin(this,_435||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_433++].join("_");}},set:function(cont,_436){if(undefined!==cont){this.content=cont;}if(_436){this._mixin(_436);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _437=this.onContentError(e);try{node.innerHTML=_437;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _438=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_438){cont=_438[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_439){var _43a={},key;for(key in _439){if(key in _43a){continue;}this[key]=_439[key];}},_parse:function(){var _43b=this.node;try{var _43c={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_43c[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_43b,noStart:!this.startup,inherited:_43c,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_43d){var _43e=this["on"+type+"Error"].call(this,err);if(_43d){console.error(_43d,err);}else{if(_43e){dojo.html._setNodeContent(this.node,_43e,true);}}}});dojo.html.set=function(node,cont,_43f){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_43f){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_43f,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_440,_441){if((!_440||!_440.template)&&_441&&!("href" in _440)&&!("content" in _440)){var df=dojo.doc.createDocumentFragment();_441=dojo.byId(_441);while(_441.firstChild){df.appendChild(_441.firstChild);}_440=dojo.delegate(_440,{content:df});}this.inherited(arguments,[_440,_441]);},postMixInProperties:function(){this.inherited(arguments);var _442=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_442);this.errorMessage=dojo.string.substitute(this.errorMessage,_442);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_443){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _444={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_444,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_444));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _445=this._contentSetter;dojo.forEach(this.getChildren(),function(_446){if(_446.destroyRecursive){_446.destroyRecursive();}});if(_445){dojo.forEach(_445.parseResults,function(_447){if(_447.destroyRecursive&&_447.domNode&&_447.domNode.parentNode==dojo.body()){_447.destroyRecursive();}});delete _445.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_448){this.destroyDescendants();var _449=this._contentSetter;if(!(_449&&_449 instanceof dojo.html._ContentSetter)){_449=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _44a=this.onContentError(e);try{this.containerNode.innerHTML=_44a;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _44b=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_449.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_44b);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_448){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_44c){this.onLoadDeferred.errback(err);var _44d=this["on"+type+"Error"].call(this,err);if(_44c){console.error(_44c,err);}else{if(_44d){this._setContent(_44d,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_44e){},onDownloadError:function(_44f){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_450){this.containerNode.title=_450;this._set("title",_450);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_451,_452){var newC="dijitTooltipAB"+(_452.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_452.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _453=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_453){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_453){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _454=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_454);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo._getMarginSize(this.domNode);var _455=dojo.window.getBox();if(mb.w>=_455.w||mb.h>=_455.h){var w=Math.min(mb.w,Math.floor(_455.w*0.75)),h=Math.min(mb.h,Math.floor(_455.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_456=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_456.l+(p?p.x:(_456.w-bb.w)/2)),t=Math.floor(_456.t+(p?p.y:(_456.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _457=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_457){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_457){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();dijit._DialogLevelManager.hide(this);}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _458=dojo.window.getBox();if(!this._oldViewport||_458.h!=this._oldViewport.h||_458.w!=this._oldViewport.w){this.layout();this._oldViewport=_458;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _459;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_459.stop();delete this._fadeInDeferred;}));_459=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized||!this.open){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _45a;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_45a.stop();delete this._fadeOutDeferred;}));_45a=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_45b,_45c){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_45b);var _45d=dijit._underlay;if(!_45d||_45d._destroyed){_45d=dijit._underlay=new dijit.DialogUnderlay(_45c);}else{_45d.set(_45b.underlayAttrs);}var _45e=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_45d.show();}dojo.style(dijit._underlay.domNode,"zIndex",_45e-1);dojo.style(_45b.domNode,"zIndex",_45e);ds.push({dialog:_45b,underlayAttrs:_45c,zIndex:_45e});},hide:function(_45f){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_45f){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_45f.refocus){var _460=pd.focus;if(!_460||(pd.dialog&&!dojo.isDescendant(_460.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_460=pd.dialog._firstFocusItem;}try{dijit.focus(_460);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_45f);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_461){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_461;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["vcldojo.HoverTooltip"]){dojo._hasResource["vcldojo.HoverTooltip"]=true;dojo.provide("vcldojo.HoverTooltip");dojo.declare("vcldojo._MasterTooltip",dijit._MasterTooltip,{tooltipobj:"",_saveAroundNode:"",templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onmouseenter:_mouseIn,onmouseleave:_mouseOut\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div>\n</div>\n"),_mouseIn:function(e){this.tooltipobj._hovering=true;},_mouseOut:function(e){this.tooltipobj._hovering=false;this.hide(this._saveAroundNode);if(this.tooltipobj._showTimer){clearTimeout(this.tooltipobj._showTimer);delete this.tooltip._showTimer;}},show:function(_462,_463,_464,rtl,_465){this.tooltipobj=_465;this.tooltipobj._hovering=false;this._saveAroundNode=_463;if(this.aroundNode&&this.aroundNode===_463){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_462;var pos=dijit.placeOnScreenAroundElement(this.domNode,_463,dijit.getPopupAroundAlignment((_464&&_464.length)?_464:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_463;}});dijit.showTooltip=function(_466,_467,_468,rtl,_469){if(!dijit._masterTT){dijit._masterTT=new vcldojo._MasterTooltip();}return dijit._masterTT.show(_466,_467,_468,rtl,_469);};dijit.hideTooltip=function(_46a){if(!dijit._masterTT){dijit._masterTT=new vcldojo._MasterTooltip();}return dijit._masterTT.hide(_46a);};dojo.declare("vcldojo.HoverTooltip",dijit.Tooltip,{_hovering:false,_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}if(!this._hideTimer){this._hideTimer=setTimeout(dojo.hitch(this,function(){this.close();}),500);}},open:function(_46b){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_46b,this.position,!this.isLeftToRight(),this);this._connectNode=_46b;this.onShow(_46b,this.position);},close:function(){if(this._hovering==true){return;}if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _46c=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _46d=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _46e=dojox.html._adjustCssPaths=function(_46f,_470){if(!_470||!_46f){return;}if(_46c){_470=_470.replace(_46c,function(_471,pre,_472,url,post){return pre+(new dojo._Url(_46f,"./"+url).toString())+post;});}return _470.replace(_46d,function(_473,_474,_475,_476,_477,_478){if(_475){return "@import \""+(new dojo._Url(_46f,"./"+_475).toString())+"\""+_478;}else{return "url("+(new dojo._Url(_46f,"./"+_477).toString())+")"+_478;}});};var _479=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _47a=dojox.html._adjustHtmlPaths=function(_47b,cont){var url=_47b||"./";return cont.replace(_479,function(tag,_47c,name,_47d,_47e,_47f,_480,end){return _47c+(name?(name+"="+_47d+(new dojo._Url(url,_47e).toString())+_47d):("style="+_47f+_46e(url,_480)+_47f))+end;});};var _481=dojox.html._snarfStyles=function(_482,cont,_483){_483.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_484,_485,_486,_487,_488,href){var i,attr=(_485||_487||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_486){i=_483.push(_482?_46e(_482,_486):_486);}else{i=_483.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _489={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_489[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_483.attributes[i-1]=_489;}return "";});};var _48a=dojox.html._snarfScripts=function(cont,_48b){_48b.code="";cont=cont.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_48c){return _48c.replace(/<(\/?)script\b/ig,"&lt;$1Script");});function _48d(src){if(_48b.downloadRemote){src=src.replace(/&([a-z0-9#]+);/g,function(m,name){switch(name){case "amp":return "&";case "gt":return ">";case "lt":return "<";default:return name.charAt(0)=="#"?String.fromCharCode(name.substring(1)):"&"+name+";";}});dojo.xhrGet({url:src,sync:true,load:function(code){_48b.code+=code+";";},error:_48b.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_48e,_48f,src,code){if(src){_48d(src);}else{_48b.code+=code;}return "";});};var _490=dojox.html.evalInGlobal=function(code,_491){_491=_491||dojo.doc.body;var n=_491.ownerDocument.createElement("script");n.type="text/javascript";_491.appendChild(n);n.text=code;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_492){this._styleNodes=[];var st,att,_493,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_492.length;i<e;i++){_493=_492[i];att=_492.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);head.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_493;}else{st.appendChild(doc.createTextNode(_493));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _494=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_47a(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_481(this.referencePath,cont,_494);}if(this.executeScripts){var _495=this;var _496={downloadRemote:true,errBack:function(e){_495._onError.call(_495,"Exec","Error downloading remote script in \""+_495.id+"\"",e);}};cont=_48a(cont,_496);this._code=_496.code;}}this.content=cont;},onEnd:function(){var code=this._code,_497=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}if(this.renderStyles&&_497&&_497.length){this._renderStyles(_497);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_490(code,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(node,cont,_498){if(!_498){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_498,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;},onExecError:function(e){},_setContent:function(cont){var _499=this._contentSetter;if(!(_499&&_499 instanceof dojox.html._ContentSetter)){_499=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _49a=this.onContentError(e);try{this.containerNode.innerHTML=_49a;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});}if(!dojo._hasResource["dojox.layout.ResizeHandle"]){dojo._hasResource["dojox.layout.ResizeHandle"]=true;dojo.provide("dojox.layout.ResizeHandle");dojo.experimental("dojox.layout.ResizeHandle");dojo.declare("dojox.layout.ResizeHandle",[dijit._Widget,dijit._Templated],{targetId:"",targetContainer:null,resizeAxis:"xy",activeResize:false,activeResizeClass:"dojoxResizeHandleClone",animateSizing:true,animateMethod:"chain",animateDuration:225,minHeight:100,minWidth:100,constrainMax:false,maxHeight:0,maxWidth:0,fixedAspect:false,intermediateChanges:false,startTopic:"/dojo/resize/start",endTopic:"/dojo/resize/stop",templateString:"<div dojoAttachPoint=\"resizeHandle\" class=\"dojoxResizeHandle\"><div></div></div>",postCreate:function(){this.connect(this.resizeHandle,"onmousedown","_beginSizing");if(!this.activeResize){this._resizeHelper=dijit.byId("dojoxGlobalResizeHelper");if(!this._resizeHelper){this._resizeHelper=new dojox.layout._ResizeHelper({id:"dojoxGlobalResizeHelper"}).placeAt(dojo.body());dojo.addClass(this._resizeHelper.domNode,this.activeResizeClass);}}else{this.animateSizing=false;}if(!this.minSize){this.minSize={w:this.minWidth,h:this.minHeight};}if(this.constrainMax){this.maxSize={w:this.maxWidth,h:this.maxHeight};}this._resizeX=this._resizeY=false;var _49b=dojo.partial(dojo.addClass,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_49b("dojoxResizeNW");break;case "x":this._resizeX=true;_49b("dojoxResizeW");break;case "y":this._resizeY=true;_49b("dojoxResizeN");break;}},_beginSizing:function(e){if(this._isSizing){return false;}dojo.publish(this.startTopic,[this]);this.targetWidget=dijit.byId(this.targetId);this.targetDomNode=this.targetWidget?this.targetWidget.domNode:dojo.byId(this.targetId);if(this.targetContainer){this.targetDomNode=this.targetContainer;}if(!this.targetDomNode){return false;}if(!this.activeResize){var c=dojo.position(this.targetDomNode,true);this._resizeHelper.resize({l:c.x,t:c.y,w:c.w,h:c.h});this._resizeHelper.show();}this._isSizing=true;this.startPoint={x:e.clientX,y:e.clientY};var mb=this.targetWidget?dojo.marginBox(this.targetDomNode):dojo.contentBox(this.targetDomNode);this.startSize={w:mb.w,h:mb.h};if(this.fixedAspect){var max,val;if(mb.w>mb.h){max="w";val=mb.w/mb.h;}else{max="h";val=mb.h/mb.w;}this._aspect={prop:max};this._aspect[max]=val;}this._pconnects=[];this._pconnects.push(dojo.connect(dojo.doc,"onmousemove",this,"_updateSizing"));this._pconnects.push(dojo.connect(dojo.doc,"onmouseup",this,"_endSizing"));dojo.stopEvent(e);},_updateSizing:function(e){if(this.activeResize){this._changeSizing(e);}else{var tmp=this._getNewCoords(e);if(tmp===false){return;}this._resizeHelper.resize(tmp);}e.preventDefault();},_getNewCoords:function(e){try{if(!e.clientX||!e.clientY){return false;}}catch(e){return false;}this._activeResizeLastEvent=e;var dx=(this.isLeftToRight()?this.startPoint.x-e.clientX:e.clientX-this.startPoint.x),dy=this.startPoint.y-e.clientY,newW=this.startSize.w-(this._resizeX?dx:0),newH=this.startSize.h-(this._resizeY?dy:0);return this._checkConstraints(newW,newH);},_checkConstraints:function(newW,newH){if(this.minSize){var tm=this.minSize;if(newW<tm.w){newW=tm.w;}if(newH<tm.h){newH=tm.h;}}if(this.constrainMax&&this.maxSize){var ms=this.maxSize;if(newW>ms.w){newW=ms.w;}if(newH>ms.h){newH=ms.h;}}if(this.fixedAspect){var ta=this._aspect[this._aspect.prop];if(newW<newH){newH=newW*ta;}else{if(newH<newW){newW=newH*ta;}}}return {w:newW,h:newH};},_changeSizing:function(e){var tmp=this._getNewCoords(e);if(tmp===false){return;}if(this.targetWidget&&dojo.isFunction(this.targetWidget.resize)){this.targetWidget.resize(tmp);}else{if(this.animateSizing){var anim=dojo.fx[this.animateMethod]([dojo.animateProperty({node:this.targetDomNode,properties:{width:{start:this.startSize.w,end:tmp.w}},duration:this.animateDuration}),dojo.animateProperty({node:this.targetDomNode,properties:{height:{start:this.startSize.h,end:tmp.h}},duration:this.animateDuration})]);anim.play();}else{dojo.style(this.targetDomNode,{width:tmp.w+"px",height:tmp.h+"px"});}}if(this.intermediateChanges){this.onResize(e);}},_endSizing:function(e){dojo.forEach(this._pconnects,dojo.disconnect);var pub=dojo.partial(dojo.publish,this.endTopic,[this]);if(!this.activeResize){this._resizeHelper.hide();this._changeSizing(e);setTimeout(pub,this.animateDuration+15);}else{pub();}this._isSizing=false;this.onResize(e);},onResize:function(e){}});dojo.declare("dojox.layout._ResizeHelper",dijit._Widget,{show:function(){dojo.fadeIn({node:this.domNode,duration:120,beforeBegin:function(n){dojo.style(n,"display","");}}).play();},hide:function(){dojo.fadeOut({node:this.domNode,duration:250,onEnd:function(n){dojo.style(n,"display","none");}}).play();},resize:function(dim){dojo.marginBox(this.domNode,dim);}});}if(!dojo._hasResource["dojox.layout.FloatingPane"]){dojo._hasResource["dojox.layout.FloatingPane"]=true;dojo.provide("dojox.layout.FloatingPane");dojo.experimental("dojox.layout.FloatingPane");dojo.declare("dojox.layout.FloatingPane",[dojox.layout.ContentPane,dijit._Templated],{closable:true,dockable:true,resizable:false,maxable:false,resizeAxis:"xy",title:"",dockTo:"",duration:400,contentClass:"dojoxFloatingPaneContent",_showAnim:null,_hideAnim:null,_dockNode:null,_restoreState:{},_allFPs:[],_startZ:100,templateString:dojo.cache("dojox.layout","resources/FloatingPane.html","<div class=\"dojoxFloatingPane\" id=\"${id}\">\n\t<div tabindex=\"0\" role=\"button\" class=\"dojoxFloatingPaneTitle\" dojoAttachPoint=\"focusNode\">\n\t\t<span dojoAttachPoint=\"closeNode\" dojoAttachEvent=\"onclick: close\" class=\"dojoxFloatingCloseIcon\"></span>\n\t\t<span dojoAttachPoint=\"maxNode\" dojoAttachEvent=\"onclick: maximize\" class=\"dojoxFloatingMaximizeIcon\">&thinsp;</span>\n\t\t<span dojoAttachPoint=\"restoreNode\" dojoAttachEvent=\"onclick: _restore\" class=\"dojoxFloatingRestoreIcon\">&thinsp;</span>\t\n\t\t<span dojoAttachPoint=\"dockNode\" dojoAttachEvent=\"onclick: minimize\" class=\"dojoxFloatingMinimizeIcon\">&thinsp;</span>\n\t\t<span dojoAttachPoint=\"titleNode\" class=\"dijitInline dijitTitleNode\"></span>\n\t</div>\n\t<div dojoAttachPoint=\"canvas\" class=\"dojoxFloatingPaneCanvas\">\n\t\t<div dojoAttachPoint=\"containerNode\" role=\"region\" tabindex=\"-1\" class=\"${contentClass}\">\n\t\t</div>\n\t\t<span dojoAttachPoint=\"resizeHandle\" class=\"dojoxFloatingResizeHandle\"></span>\n\t</div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:{type:"innerHTML",node:"titleNode"}}),postCreate:function(){this.inherited(arguments);new dojo.dnd.Moveable(this.domNode,{handle:this.focusNode});if(!this.dockable){this.dockNode.style.display="none";}if(!this.closable){this.closeNode.style.display="none";}if(!this.maxable){this.maxNode.style.display="none";this.restoreNode.style.display="none";}if(!this.resizable){this.resizeHandle.style.display="none";}else{this.domNode.style.width=dojo.marginBox(this.domNode).w+"px";}this._allFPs.push(this);this.domNode.style.position="absolute";this.bgIframe=new dijit.BackgroundIframe(this.domNode);this._naturalState=dojo.coords(this.domNode);},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.resizable){if(dojo.isIE){this.canvas.style.overflow="auto";}else{this.containerNode.style.overflow="auto";}this._resizeHandle=new dojox.layout.ResizeHandle({targetId:this.id,resizeAxis:this.resizeAxis},this.resizeHandle);}if(this.dockable){var _49c=this.dockTo;if(this.dockTo){this.dockTo=dijit.byId(this.dockTo);}else{this.dockTo=dijit.byId("dojoxGlobalFloatingDock");}if(!this.dockTo){var _49d,_49e;if(_49c){_49d=_49c;_49e=dojo.byId(_49c);}else{_49e=dojo.create("div",null,dojo.body());dojo.addClass(_49e,"dojoxFloatingDockDefault");_49d="dojoxGlobalFloatingDock";}this.dockTo=new dojox.layout.Dock({id:_49d,autoPosition:"south"},_49e);this.dockTo.startup();}if((this.domNode.style.display=="none")||(this.domNode.style.visibility=="hidden")){this.minimize();}}this.connect(this.focusNode,"onmousedown","bringToTop");this.connect(this.domNode,"onmousedown","bringToTop");this.resize(dojo.coords(this.domNode));this._started=true;},setTitle:function(_49f){dojo.deprecated("pane.setTitle","Use pane.set('title', someTitle)","2.0");this.set("title",_49f);},close:function(){if(!this.closable){return;}dojo.unsubscribe(this._listener);this.hide(dojo.hitch(this,function(){this.destroyRecursive();}));},hide:function(_4a0){dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";this.domNode.style.visibility="hidden";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(_4a0){_4a0();}})}).play();},show:function(_4a1){var anim=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){this.domNode.style.display="";this.domNode.style.visibility="visible";if(this.dockTo&&this.dockable){this.dockTo._positionDock(null);}if(typeof _4a1=="function"){_4a1();}this._isDocked=false;if(this._dockNode){this._dockNode.destroy();this._dockNode=null;}})}).play();this.resize(dojo.coords(this.domNode));this._onShow();},minimize:function(){if(!this._isDocked){this.hide(dojo.hitch(this,"_dock"));}},maximize:function(){if(this._maximized){return;}this._naturalState=dojo.position(this.domNode);if(this._isDocked){this.show();setTimeout(dojo.hitch(this,"maximize"),this.duration);}dojo.addClass(this.focusNode,"floatingPaneMaximized");this.resize(dojo.window.getBox());this._maximized=true;},_restore:function(){if(this._maximized){this.resize(this._naturalState);dojo.removeClass(this.focusNode,"floatingPaneMaximized");this._maximized=false;}},_dock:function(){if(!this._isDocked&&this.dockable){this._dockNode=this.dockTo.addNode(this);this._isDocked=true;}},resize:function(dim){dim=dim||this._naturalState;this._naturalState=dim;var dns=this.domNode.style;if("t" in dim){dns.top=dim.t+"px";}if("l" in dim){dns.left=dim.l+"px";}dns.width=dim.w+"px";dns.height=dim.h+"px";var _4a2={l:0,t:0,w:dim.w,h:(dim.h-this.focusNode.offsetHeight)};dojo.marginBox(this.canvas,_4a2);this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(_4a2);}},bringToTop:function(){var _4a3=dojo.filter(this._allFPs,function(i){return i!==this;},this);_4a3.sort(function(a,b){return a.domNode.style.zIndex-b.domNode.style.zIndex;});_4a3.push(this);dojo.forEach(_4a3,function(w,x){w.domNode.style.zIndex=this._startZ+(x*2);dojo.removeClass(w.domNode,"dojoxFloatingPaneFg");},this);dojo.addClass(this.domNode,"dojoxFloatingPaneFg");},destroy:function(){this._allFPs.splice(dojo.indexOf(this._allFPs,this),1);if(this._resizeHandle){this._resizeHandle.destroy();}this.inherited(arguments);}});dojo.declare("dojox.layout.Dock",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dojoxDock\"><ul dojoAttachPoint=\"containerNode\" class=\"dojoxDockList\"></ul></div>",_docked:[],_inPositioning:false,autoPosition:false,addNode:function(_4a4){var div=dojo.create("li",null,this.containerNode),node=new dojox.layout._DockNode({title:_4a4.title,paneRef:_4a4},div);node.startup();return node;},startup:function(){if(this.id=="dojoxGlobalFloatingDock"||this.isFixedDock){this.connect(window,"onresize","_positionDock");this.connect(window,"onscroll","_positionDock");if(dojo.isIE){this.connect(this.domNode,"onresize","_positionDock");}}this._positionDock(null);this.inherited(arguments);},_positionDock:function(e){if(!this._inPositioning){if(this.autoPosition=="south"){setTimeout(dojo.hitch(this,function(){this._inPositiononing=true;var _4a5=dojo.window.getBox();var s=this.domNode.style;s.left=_4a5.l+"px";s.width=(_4a5.w-2)+"px";s.top=(_4a5.h+_4a5.t)-this.domNode.offsetHeight+"px";this._inPositioning=false;}),125);}}}});dojo.declare("dojox.layout._DockNode",[dijit._Widget,dijit._Templated],{title:"",paneRef:null,templateString:"<li dojoAttachEvent=\"onclick: restore\" class=\"dojoxDockNode\">"+"<span dojoAttachPoint=\"restoreNode\" class=\"dojoxDockRestoreButton\" dojoAttachEvent=\"onclick: restore\"></span>"+"<span class=\"dojoxDockTitleNode\" dojoAttachPoint=\"titleNode\">${title}</span>"+"</li>",restore:function(){this.paneRef.show();this.paneRef.bringToTop();this.destroy();}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}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 _4a6={"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 _4a6){ds.fontSize=p;_4a6[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _4a6;};var _4a7=null;dhm.getCachedFontMeasurements=function(_4a8){if(_4a8||!_4a7){_4a7=dhm.getFontMeasurements();}return _4a7;};var _4a9=null,_4aa={};dhm.getTextBox=function(text,_4ab,_4ac){var m,s;if(!_4a9){m=_4a9=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=_4a9;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_4ab){for(var i in _4ab){if(i in _4aa){continue;}s[i]=_4ab[i];}}if(arguments.length>2&&_4ac){m.className=_4ac;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _4ad={w:16,h:16};dhm.getScrollbar=function(){return {w:_4ad.w,h:_4ad.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_4ae){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);_4ad.w=n.offsetWidth-n.clientWidth;_4ad.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(_4af,_4b0){if(_4b0>=0){var s=_4af.style;var v=_4b0+"px";if(_4af&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_4b1,_4b2,_4b3,_4b4){var evts=(_4b4?_4b4:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_4b2.connect(_4b1,"on"+evts[i],_4b3);}};dgu.removeNode=function(_4b5){_4b5=dojo.byId(_4b5);_4b5&&_4b5.parentNode&&_4b5.parentNode.removeChild(_4b5);return _4b5;};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(_4b6,_4b7,_4b8){if(_4b6.length<=_4b7){_4b6[_4b7]=_4b8;}else{_4b6.splice(_4b7,0,_4b8);}};dgu.arrayRemove=function(_4b9,_4ba){_4b9.splice(_4ba,1);};dgu.arraySwap=function(_4bb,inI,inJ){var _4bc=_4bb[inI];_4bb[inI]=_4bb[inJ];_4bb[inJ]=_4bc;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _4bd=function(_4be){var i=0,n,p=_4be.parentNode;while((n=p.childNodes[i++])){if(n==_4be){return i-1;}}return -1;};var _4bf=function(_4c0){if(!_4c0){return;}var _4c1=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_4c0,true);};var ws=dijit.registry.filter(_4c1);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _4c2=function(_4c3){var node=dojo.byId(_4c3);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _4c4=function(_4c5,_4c6){var _4c7=[];var i=0,n;while((n=_4c5.childNodes[i])){i++;if(_4c2(n)==_4c6){_4c7.push(n);}}return _4c7;};var _4c8=function(_4c9){return _4c4(_4c9,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_4ca){this.setContentNodes(_4ca);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(_4cb,_4cc,_4cd){switch(arguments.length){case 3:this.rowsPerPage=_4cd;case 2:this.keepRows=_4cc;case 1:this.rowCount=_4cb;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(_4ce,_4cf){return _4ce?(Math.ceil(_4ce/_4cf)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_4d0){this.keepRows=_4d0;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_4d1){this.contentNodes=_4d1;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(_4d2){this.invalidateNodes();this.rowCount=_4d2;var _4d3=this.pageCount;if(_4d3===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_4d3){for(var i=_4d3-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_4d3){this.height+=this.defaultPageHeight*(this.pageCount-_4d3-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_4d4){return Boolean(this.getDefaultPageNode(_4d4));},measurePage:function(_4d5){if(this.grid.rowHeight){var _4d6=this.grid.rowHeight+1;return ((_4d5+1)*this.rowsPerPage>this.rowCount?this.rowCount-_4d5*this.rowsPerPage:this.rowsPerPage)*_4d6;}var n=this.getDefaultPageNode(_4d5);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_4d7,_4d8){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_4d7].style.top=_4d8+"px";}},repositionPages:function(_4d9){var _4da=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_4da[_4d9];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_4d9):0);for(var p=_4d9+1;p<=last;p++){n=_4da[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_4db){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_4db]);}},preparePage:function(_4dc,_4dd){var p=(_4dd?this.popPage():null);for(var i=0;i<this.colCount;i++){var _4de=this.pageNodes[i];var _4df=(p===null?this.createPageNode():this.invalidatePageNode(p,_4de));_4df.pageIndex=_4dc;_4de[_4dc]=_4df;}},renderPage:function(_4e0){var _4e1=[];var i,j;for(i=0;i<this.colCount;i++){_4e1[i]=this.pageNodes[i][_4e0];}for(i=0,j=_4e0*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_4e1);}},removePage:function(_4e2){for(var i=0,j=_4e2*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_4e3){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_4e3,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_4e4){},pacifying:false,pacifyTicks:200,setPacifying:function(_4e5){if(this.pacifying!=_4e5){this.pacifying=_4e5;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _4e6=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _4e6;},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 _4e7=(!this._invalidating);if(!_4e7){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_4e7=true;}}if(_4e7){this.needPage(this.page,this.pageTop);}var _4e8=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _4e9=this.getPageHeight(this.page);this.averageRowHeight=(_4e9>0&&_4e8>0)?(_4e9/_4e8):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _4ea=this.pageCount-1;var _4eb=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_4ea]=_4eb;return _4eb;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_4ec,_4ed,_4ee){if(this.pageExists(_4ec)){var oh=this.getPageHeight(_4ec);var h=(this.measurePage(_4ec));if(h===undefined){h=oh;}this.pageHeights[_4ec]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_4ed)){if(!_4ee){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_4ec);}}else{this.repositionPages(_4ec);}}return h;}return 0;},rowHeightChanged:function(_4ef,_4f0){this.updatePageHeight(Math.floor(_4ef/this.rowsPerPage),false,_4f0);},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(_4f1){var ph=this.pageHeights[_4f1];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_4f2){return this.stack.push(_4f2);},popPage:function(){return this.stack.shift();},findPage:function(_4f3){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_4f3){break;}}this.page=i;this.pageTop=h;},buildPage:function(_4f4,_4f5,_4f6){this.preparePage(_4f4,_4f5);this.positionPage(_4f4,_4f6);this.installPage(_4f4);this.renderPage(_4f4);this.pushPage(_4f4);},needPage:function(_4f7,_4f8){var h=this.getPageHeight(_4f7),oh=h;if(!this.pageExists(_4f7)){this.buildPage(_4f7,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_4f8);h=this.updatePageHeight(_4f7,true);}else{this.positionPage(_4f7,_4f8);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_4f9){this.grid.scrollTop=_4f9;if(this.colCount){this.startPacify();this.findPage(_4f9);var h=this.height;var b=this.getScrollBottom(_4f9);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,_4f9);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_4fa){return (this.windowHeight>=0?_4fa+this.windowHeight:-1);},processNodeEvent:function(e,_4fb){var t=e.target;while(t&&(t!=_4fb)&&t.parentNode&&(t.parentNode.parentNode!=_4fb)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_4fb)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_4bd(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_4fc,_4fd){},removeRow:function(_4fe){},getDefaultPageNode:function(_4ff){return this.getDefaultNodes()[_4ff];},positionPageNode:function(_500,_501){},getPageNodePosition:function(_502){return _502.offsetTop;},invalidatePageNode:function(_503,_504){var p=_504[_503];if(p){delete _504[_503];this.removePage(_503,p);_4bf(p);p.innerHTML="";}return p;},getPageRow:function(_505){return _505*this.rowsPerPage;},getLastPageRow:function(_506){return Math.min(this.rowCount,this.getPageRow(_506+1))-1;},getFirstVisibleRow:function(_507,_508,_509){if(!this.pageExists(_507)){return 0;}var row=this.getPageRow(_507);var _50a=this.getDefaultNodes();var rows=_4c8(_50a[_507]);for(var i=0,l=rows.length;i<l&&_508<_509;i++,row++){_508+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_50b,_50c,_50d){if(!this.pageExists(_50b)){return 0;}var _50e=this.getDefaultNodes();var row=this.getLastPageRow(_50b);var rows=_4c8(_50e[_50b]);for(var i=rows.length-1;i>=0&&_50c>_50d;i--,row--){_50c-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_50f){var _510=this.getDefaultNodes();var rows=_4c8(_510[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_50f){this.offset=h-(t-_50f);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_511){var _512=Math.floor(_511/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_512;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_512;this.needPage(_512,this.pageTop);var _513=this.getDefaultNodes();var rows=_4c8(_513[_512]);var r=_511-this.rowsPerPage*_512;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 _514=function(_515){try{dojox.grid.util.fire(_515,"focus");dojox.grid.util.fire(_515,"select");}catch(e){}};var _516=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(_517){this._props=_517||{};dojo.mixin(this,_517);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_518,_519){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_518!=this.defaultValue&&f)?f.apply(s,_519):_518;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(_51a,_51b){var f,i=this.grid.edit.info,d=this.get?this.get(_51a,_51b):(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==_51a&&i.cell==this))){return this.formatEditing(d,_51a);}else{return this._defaultFormat(d,[d,_51a,this]);}},formatEditing:function(_51c,_51d){},getNode:function(_51e){return this.view.getCellNode(_51e,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_51f){return (this.getNode(_51f)||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(_520,_521){this.grid.edit.applyCellEdit(_520,this,_521);},cancelEdit:function(_522){this.grid.doCancelEdit(_522);},_onEditBlur:function(_523){if(this.grid.edit.isEditCell(_523,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_524,_525){if(this.commitOnBlur){dojo.connect(_524,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_525),250);});}},needFormatNode:function(_526,_527){this._formatPending=true;_516(this,"_formatNode",_526,_527);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_528,_529){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_529),_528,_529);}},formatNode:function(_52a,_52b,_52c){if(dojo.isIE){_516(this,"focus",_52c,_52a);}else{this.focus(_52c,_52a);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_52d){return this.getEditNode(_52d)[this._valueProp];},setValue:function(_52e,_52f){var n=this.getEditNode(_52e);if(n){n[this._valueProp]=_52f;}},focus:function(_530,_531){_514(_531||this.getEditNode(_530));},save:function(_532){this.value=this.value||this.getValue(_532);},restore:function(_533){this.setValue(_533,this.value);},_finish:function(_534){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_535){this.applyEdit(this.getValue(_535),_535);this._finish(_535);},cancel:function(_536){this.cancelEdit(_536);this._finish(_536);}});dgc._Base.markupFactory=function(node,_537){var d=dojo;var _538=d.trim(d.attr(node,"formatter")||"");if(_538){_537.formatter=dojo.getObject(_538)||_538;}var get=d.trim(d.attr(node,"get")||"");if(get){_537.get=dojo.getObject(get);}var _539=function(attr,cell,_53a){var _53b=d.trim(d.attr(node,attr)||"");if(_53b){cell[_53a||attr]=!(_53b.toLowerCase()=="false");}};_539("sortDesc",_537);_539("editable",_537);_539("alwaysEditing",_537);_539("noresize",_537);_539("draggable",_537);var _53c=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_53c){_537.defaultValue=_53c;}var _53d=function(attr,cell,_53e){var _53f=d.trim(d.attr(node,attr)||"")||undefined;if(_53f){cell[_53e||attr]=_53f;}};_53d("styles",_537);_53d("headerStyles",_537);_53d("cellStyles",_537);_53d("classes",_537);_53d("headerClasses",_537);_53d("cellClasses",_537);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_540,_541){this.needFormatNode(_540,_541);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_540+"\">";},formatNode:function(_542,_543,_544){this.inherited(arguments);this.registerOnBlur(_542,_544);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_545){this.inherited(arguments);var n=this.getEditNode(_545);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_546){dgc._Base.markupFactory(node,_546);var d=dojo;var _547=d.trim(d.attr(node,"keyFilter")||"");if(_547){_546.keyFilter=new RegExp(_547);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_548){return _548+1;}});dgc.RowIndex.markupFactory=function(node,_549){dgc.Cell.markupFactory(node,_549);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_54a){this.values=this.values||this.options;},formatEditing:function(_54b,_54c){this.needFormatNode(_54b,_54c);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_54b==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_54d){var n=this.getEditNode(_54d);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 _54e=d.trim(d.attr(node,"options")||"");if(_54e){var o=_54e.split(",");if(o[0]!=_54e){cell.options=o;}}var _54f=d.trim(d.attr(node,"values")||"");if(_54f){var v=_54f.split(",");if(v[0]!=_54f){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_550,_551){this.formatNode(this.getEditNode(_551),_550,_551);},applyStaticValue:function(_552){var e=this.grid.edit;e.applyCellEdit(this.getValue(_552),this,_552);e.start(this,_552,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_553,_554){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_553?" 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["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _555=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _556=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _557=function(_558,_559){return _558&&((_558.rows||0)[_559]||_558.childNodes[_559]);};var _55a=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _55b=function(_55c,_55d){for(var n=_55c;n&&_55d(n);n=n.parentNode){}return n;};var _55e=function(_55f){var name=_55f.toUpperCase();return function(node){return node.tagName!=name;};};var _560=dojox.grid.util.rowIndexTag;var _561=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(_562,_563,_564,_565){var _566=[],html;if(_565){var _567=_562.index!=_562.grid.getSortIndex()?"":_562.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_562.id){_562.id=this.grid.id+"Hdr"+_562.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_567,"id=\"",_562.id,"\""];}else{var _568=this.grid.editable&&!_562.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_568];}if(_562.colSpan){html.push(" colspan=\"",_562.colSpan,"\"");}if(_562.rowSpan){html.push(" rowspan=\"",_562.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_562.classes){html.push(_562.classes," ");}if(_564){html.push(_564," ");}_566.push(html.join(""));_566.push("");html=["\" idx=\"",_562.index,"\" style=\""];if(_563&&_563[_563.length-1]!=";"){_563+=";";}html.push(_562.styles,_563||"",_562.hidden?"display:none;":"");if(_562.unitWidth){html.push("width:",_562.unitWidth,";");}_566.push(html.join(""));_566.push("");html=["\""];if(_562.attrs){html.push(" ",_562.attrs);}html.push(">");_566.push(html.join(""));_566.push("");_566.push(_565?"</th>":"</td>");return _566;},isCellNode:function(_569){return Boolean(_569&&_569!=dojo.doc&&dojo.attr(_569,"idx"));},getCellNodeIndex:function(_56a){return _56a?Number(dojo.attr(_56a,"idx")):-1;},getCellNode:function(_56b,_56c){for(var i=0,row;((row=_557(_56b.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_56c){return cell;}}}return null;},findCellTarget:function(_56d,_56e){var n=_56d;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_561 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_561]!=this.view.id))&&(n!=_56e)){n=n.parentNode;}return n!=_56e?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(_56f,_570){var n=_56f;while(n&&(n!=this.domNode)&&(!(_570 in n)||(_561 in n&&n[_561]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_571){return this.findTarget(_571,_560);},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 _572=this.grid.get,_573=this.view.structure.cells;for(var j=0,row;(row=_573[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_572;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_574,_575){var html=this.getTableArray(),v=this.view,_576=v.structure.cells,item=this.grid.getItem(_575);dojox.grid.util.fire(this.view,"onBeforeRow",[_575,_576]);for(var j=0,row;(row=_576[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(_575,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}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[_560];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(_577,_578){var html=this.getTableArray(),_579=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_579]);for(var j=0,row;(row=_579[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_57a;(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+"'";}}_57a=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_57a[5]=(_578!=undefined?_578:_577(cell));_57a[3]=cell.customStyles.join(";");_57a[1]=cell.customClasses.join(" ");html.push(_57a.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_55b(e.target,_55e("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_55b(n,_55e("table"));x-=(table&&table.offsetLeft)||0;}}n=_55b(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=_555(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")||dojo.hasClass(tN,"dojoxGridColCaption")){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")||dojo.hasClass(tN,"dojoxGridColCaption")){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,_57b){var _57c=dojo.contentBox(e.sourceView.headerNode);if(_57b){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _57d=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:(_57d.h+_57c.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _57e=[],_57f=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_57f[i]);i++){_57e.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _580=e.grid.views.views;var _581=[];for(var j=view.idx+adj,_582;(_582=_580[j]);j=j+adj){_581.push({node:_582.headerNode,left:window.parseInt(_582.headerNode.style.left)});}var _583=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:_57c.w,table:_583,tw:dojo.contentBox(_583).w,spanners:_57e,followers:_581};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(_584,_585,_586){var _587=_586.l;var data={deltaX:_587,w:_584.w+(dojo._isBodyLtr()?_587:-_587),vw:_584.vw+_587,tw:_584.tw+_587};this.dragRecord={inDrag:_584,mover:_585,leftTop:_586};if(data.w>=this.minColWidth){if(!_585){this.doResizeNow(_584,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_588){if(this.dragRecord){var _589=this.dragRecord.leftTop;var _58a=dojo._isBodyLtr()?_589.l:-_589.l;_58a+=Math.max(_588.w+_58a,this.minColWidth)-(_588.w+_58a);if(dojo.isWebKit&&_588.spanners.length){_58a+=dojo._getPadBorderExtents(_588.spanners[0].node).w;}var data={deltaX:_58a,w:_588.w+_58a,vw:_588.vw+_58a,tw:_588.tw+_58a};this.doResizeNow(_588,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_588.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_588.index);},doResizeNow:function(_58b,data){_58b.view.convertColPctToFixed();if(_58b.view.flexCells&&!_58b.view.testFlexCells()){var t=_55a(_58b.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_58b.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_58b.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_58b.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_58b.node.style.width=data.w+"px";_58b.view.setColWidth(_58b.index,data.w);_58b.view.headerNode.style.width=data.vw+"px";_58b.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_58b.view.headerNode.scrollLeft=_58b.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_58c){var _58d=_58c.length;if(!_58d){return;}this.map=[];var row;for(var k=0;(row=_58c[k]);k++){this.map[k]=[];}for(var j=0;(row=_58c[j]);j++){for(var i=0,x=0,cell,_58e,_58f;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_58f=cell.rowSpan||1;_58e=cell.colSpan||1;for(var y=0;y<_58f;y++){for(var s=0;s<_58e;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_58e;}}},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(_590,_591){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_591&&cell.r==_590){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_592,_593,_594){var row=_592&&_592.rows[_593];return row&&row.cells[_594];},_findOverlappingNodes:function(_595,_596,_597){var _598=[];var m=this.getMapCoords(_596,_597);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(_595,rw.r,rw.c):null);if(n){_598.push(n);}}return _598;},findOverlappingNodes:function(_599){return this._findOverlappingNodes(_55a(_599),_556(_599.parentNode),_555(_599));}});})();}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,_59a){this.node=dojo.byId(node);if(!_59a){_59a={};}this.creator=_59a.creator||null;this.skipForm=_59a.skipForm;this.parent=_59a.dropParent&&dojo.byId(_59a.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_59a&&_59a._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,_59b,_59c){if(!this.parent.firstChild){_59c=null;}else{if(_59b){if(!_59c){_59c=this.parent.firstChild;}}else{if(_59c){_59c=_59c.nextSibling;}}}if(_59c){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,_59c);}}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(_59d,node){_59d._skipStartup=true;return new dojo.dnd.Container(node,_59d);},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,_59e){var _59f="dojoDnd"+type;var _5a0=type.toLowerCase()+"State";dojo.replaceClass(this.node,_59f+_59e,_59f+this[_5a0]);this[_5a0]=_59e;},_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 _5a1=node.parentNode;_5a1;node=_5a1,_5a1=node.parentNode){if(_5a1==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 _5a2=item&&dojo.isObject(item),data,type,n;if(_5a2&&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=(_5a2&&item.data)?item.data:item;type=(_5a2&&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,_5a3){if(!_5a3){_5a3={};}this.singular=_5a3.singular;this.autoSync=_5a3.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(_5a4,data,_5a5,_5a6){var _5a7=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_5a7.call(this,item,hint);if(_5a4){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,_5a5,_5a6);this._normalizedCreator=_5a7;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_5a8,node){_5a8._skipStartup=true;return new dojo.dnd.Selector(node,_5a8);},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(_5a9){this.manager=_5a9;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"}}),_5aa=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:_5aa.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(_5aa.creator){node=_5aa._normalizedCreator(_5aa.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _5ab=dojo.create("table"),_5ac=dojo.create("tbody",null,_5ab);_5ac.appendChild(node);node=_5ab;}}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(_5ad){if(this.avatar){this.target=(_5ad&&_5ad.targetState!="Disabled")?_5ad:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_5ad]);},outSource:function(_5ae){if(this.avatar){if(this.target==_5ae){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_5af,_5b0,copy){this.source=_5af;this.nodes=_5b0;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_5af,_5b0,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 _5b1=Boolean(this.target&&flag);if(this.canDropFlag!=_5b1){this.canDropFlag=_5b1;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))),_5b2=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_5b2);dojo.publish("/dnd/drop",_5b2);}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,_5b3){dojo.mixin(this,dojo.mixin({},_5b3));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(_5b4,_5b5){if(this==_5b4){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_5b5.length;++i){var type=_5b4.getItem(_5b5[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(_5b6,self){if(_5b6){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(_5b7,node){_5b7._skipStartup=true;return new dojo.dnd.Source(node,_5b7);},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 _5b8=this.getSelectedNodes();if(_5b8.length){m.startDrag(this,_5b8,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _5b9=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_5b9=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_5b9=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_5b9!=this.before){this._markTargetAnchor(_5b9);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(_5ba){if(this!=_5ba){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(_5bb,_5bc,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_5bb?(copy?"Copied":"Moved"):"");}var _5bd=this.accept&&this.checkAcceptance(_5bb,_5bc);this._changeState("Target",_5bd?"":"Disabled");if(this==_5bb){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_5be,_5bf,copy,_5c0){if(this==_5c0){this.onDrop(_5be,_5bf,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(_5c1,_5c2,copy){if(this!=_5c1){this.onDropExternal(_5c1,_5c2,copy);}else{this.onDropInternal(_5c2,copy);}},onDropExternal:function(_5c3,_5c4,copy){var _5c5=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _5c5.call(this,_5c3.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_5c3.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=_5c3.getItem(node.id);_5c3.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_5c3.selectNone();}this.insertNodes(true,_5c4,this.before,this.current);if(!copy&&this.creator){_5c3.deleteSelectedNodes();}this._normalizedCreator=_5c5;},onDropInternal:function(_5c6,copy){var _5c7=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _5c7.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,_5c6,this.before,this.current);this._normalizedCreator=_5c7;},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(_5c8){if(this.current==this.targetAnchor&&this.before==_5c8){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_5c8;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,_5c9){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_5ca,node){_5ca._skipStartup=true;return new dojo.dnd.Target(node,_5ca);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_5cb){this.autoSync=true;},markupFactory:function(_5cc,node){_5cc._skipStartup=true;return new dojo.dnd.AutoSource(node,_5cc);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _5cd=function(_5ce,_5cf){return _5ce.style.cssText==undefined?_5ce.getAttribute("style"):_5ce.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){this._cleanupRowWidgets(this.rowNodes[i]);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(_5d0){var vs=(this.structure=_5d0);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(_5d1){if(_5d1){dojo.forEach(dojo.query("[widgetId]",_5d1).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(_5d2,_5d3){this._onBeforeRow(_5d2,_5d3);if(_5d2>=0){this._cleanupRowWidgets(this.getRowNode(_5d2));}},onAfterRow:function(_5d4,_5d5,_5d6){this._onAfterRow(_5d4,_5d5,_5d6);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_5d6),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5d7=window.parseInt(dojo.attr(n,"cellIdx"),10);var _5d8=g.getCell(_5d7);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}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 _5d9=this.hasVScrollbar();var _5da=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_5da||_5da=="hidden"){_5d9=false;}else{if(_5da=="scroll"){_5d9=true;}}return (_5d9?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_5db){this.headerContentNode.firstChild.style.width=_5db+"px";if(this.viewWidth){this.viewWidth=_5db+"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 _5dc=this.grid.layout.cells;var _5dd=dojo.hitch(this,function(node,_5de){!dojo._isBodyLtr()&&(_5de=!_5de);var inc=_5de?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_5dc[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_5dc[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _5df="dojoxGrid_bottomMarker";var _5e0="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_5df);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_5e0);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_5df,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_5e0,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _5e1=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<9?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(_5e2){var src=this.source;if(src.current==src.targetAnchor&&src.before==_5e2){return;}if(src.targetAnchor&&_5dd(src.targetAnchor,src.before)){src._removeItemClass(_5dd(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_5e2);var _5e3=_5e2?src.targetAnchor:_5dd(src.targetAnchor,src.before);var _5e4=0;if(!_5e3){_5e3=src.targetAnchor;_5e4=dojo.contentBox(_5e3).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_5e3,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_5e4);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_5e1+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_5dd(src.targetAnchor,src.before)){src._addItemClass(_5dd(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_5dd(src.targetAnchor,src.before)){src._removeItemClass(_5dd(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(_5e5,_5e6,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _5e7=this.grid.views.views;var _5e8=_5e7[_5e5.viewIndex];var _5e9=_5e7[this.index];if(_5e9!=_5e8){_5e8.convertColPctToFixed();_5e9.convertColPctToFixed();}},_onDndDrop:function(_5ea,_5eb,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 _5ec=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_5eb[0]).w;if(_5ea.viewIndex!==this.index){var _5ed=this.grid.views.views;var _5ee=_5ed[_5ea.viewIndex];var _5ef=_5ed[this.index];if(_5ee.viewWidth&&_5ee.viewWidth!="auto"){_5ee.setColumnsWidth(_5ee.getColumnsWidth()-w);}if(_5ef.viewWidth&&_5ef.viewWidth!="auto"){_5ef.setColumnsWidth(_5ef.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _5f0=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_5f0.moveColumn(_5ea.viewIndex,idx,_5ec(_5eb[0]),_5ec(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(_5f1){var n=_5f1.name||_5f1.grid.getCellName(_5f1);var ret=["<div class=\"dojoxGridSortNode"];if(_5f1.index!=_5f1.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_5f1.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_5f1.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(_5f2){var _5f3=this._hasHScroll||false;if(this._hasHScroll==undefined||_5f2){if(this.noscroll){this._hasHScroll=false;}else{var _5f4=dojo.style(this.scrollboxNode,"overflow");if(_5f4=="hidden"){this._hasHScroll=false;}else{if(_5f4=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_5f3!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_5f5){var _5f6=this._hasVScroll||false;if(this._hasVScroll==undefined||_5f5){if(this.noscroll){this._hasVScroll=false;}else{var _5f7=dojo.style(this.scrollboxNode,"overflow");if(_5f7=="hidden"){this._hasVScroll=false;}else{if(_5f7=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_5f6!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _5f8=false;this.grid.initialWidth="";var _5f9=dojo.query("th",this.headerContentNode);var _5fa=dojo.map(_5f9,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_5f8=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_5f8){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _5fb=cell.view.getHeaderCellNode(cell.index);if(_5fb&&dojo.hasAttr(_5fb,"vIdx")){var vIdx=window.parseInt(dojo.attr(_5fb,"vIdx"));this.setColWidth(idx,_5fa[vIdx]);dojo.removeAttr(_5fb,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_5fc){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 _5fd=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(_5fc||(this.noscroll&&_5fd())){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(_5fe){var _5ff=this.createRowNode(_5fe);this.buildRow(_5fe,_5ff);return _5ff;},createRowNode:function(_600){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]=_600;this.rowNodes[_600]=node;return node;},buildRow:function(_601,_602){this.buildRowContent(_601,_602);this.styleRow(_601,_602);},buildRowContent:function(_603,_604){_604.innerHTML=this.content.generateHtml(_603,_603);if(this.flexCells&&this.contentWidth){_604.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_603,this.structure.cells,_604]);},rowRemoved:function(_605){if(_605>=0){this._cleanupRowWidgets(this.getRowNode(_605));}this.grid.edit.save(this,_605);delete this.rowNodes[_605];},getRowNode:function(_606){return this.rowNodes[_606];},getCellNode:function(_607,_608){var row=this.getRowNode(_607);if(row){return this.content.getCellNode(row,_608);}},getHeaderCellNode:function(_609){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_609);}},styleRow:function(_60a,_60b){_60b._style=_5cd(_60b);this.styleRowNode(_60a,_60b);},styleRowNode:function(_60c,_60d){if(_60d){this.doStyleRowNode(_60c,_60d);}},doStyleRowNode:function(_60e,_60f){this.grid.styleRowNode(_60e,_60f);},updateRow:function(_610){var _611=this.getRowNode(_610);if(_611){_611.style.height="";this.buildRow(_610,_611);}return _611;},updateRowStyles:function(_612){this.styleRowNode(_612,this.getRowNode(_612));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_613){if(dojo.isFF>=13){this._nativeScroll=true;}var _614=dojo._isBodyLtr();if(this.firstScroll<2){if((!_614&&this.firstScroll==1)||(_614&&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=_614?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);}this._nativeScroll=false;},setScrollTop:function(_615){this.lastTop=_615;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_615;}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(_616,_617){this.grid.setCellWidth(_616,_617+"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 _618=this.manager.source,node;if(_618.creator){node=_618._normalizedCreator(_618.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _619,_61a;if(node.tagName.toLowerCase()=="tr"){_619=dd.createElement("table");_61a=dd.createElement("tbody");_61a.appendChild(node);_619.appendChild(_61a);node=_619;}else{if(node.tagName.toLowerCase()=="th"){_619=dd.createElement("table");_61a=dd.createElement("tbody");var r=dd.createElement("tr");_619.cellPadding=_619.cellSpacing="0";r.appendChild(node);_61a.appendChild(r);_619.appendChild(_61a);node=_619;}}}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 _61b=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 _61b.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(_61c,_61d){var w=this.contentWidth||0;_61d.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(_61e,_61f){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_61e)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_61e)){n.push("dojoxGridRowbarSelected");}_61f.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(_620){this.grid=_620;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_621,_622,_623,_624,_625){var _626=this.structure[_621].cells[0];var _627=this.structure[_622].cells[0];var cell=null;var _628=0;var _629=0;for(var i=0,c;c=_626[i];i++){if(c.index==_623){_628=i;break;}}cell=_626.splice(_628,1)[0];cell.view=this.grid.views.views[_622];for(i=0,c=null;c=_627[i];i++){if(c.index==_624){_629=i;break;}}if(!_625){_629+=1;}_627.splice(_629,0,cell);var _62a=this.grid.getCell(this.grid.getSortIndex());if(_62a){_62a._currentlySorted=this.grid.getSortAsc();}this.cells=[];_623=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=_623;this.cells.push(c);if("_currentlySorted" in c){var si=_623+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_623++;}}}dojo.forEach(this.cells,function(c){var _62b=c.markup[2].split(" ");var _62c=parseInt(_62b[1].substring(5));if(_62c!=c.index){_62b[1]="idx=\""+c.index+"\"";c.markup[2]=_62b.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_62d,_62e){var cell=this.cells[_62d];if(cell.hidden==_62e){cell.hidden=!_62e;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(_62f,_630,_631){var self=this;var _632=function(_633){var w=0;if(_633.colSpan>1){w=0;}else{w=_633.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _634={grid:this.grid,subrow:_62f,layoutIndex:_630,index:this.cells.length};if(_631&&_631 instanceof dojox.grid.cells._Base){var _635=dojo.clone(_631);_634.unitWidth=_632(_635._props);_635=dojo.mixin(_635,this._defaultCellProps,_631._props,_634);return _635;}var _636=_631.type||_631.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_636)){_636=dojo.getObject(_636);}_634.unitWidth=_632(_631);return new _636(dojo.mixin({},this._defaultCellProps,_631,_634));},addRowDef:function(_637,_638){var _639=[];var _63a=0,_63b=0,_63c=true;for(var i=0,def,cell;(def=_638[i]);i++){cell=this.addCellDef(_637,i,def);_639.push(cell);this.cells.push(cell);if(_63c&&cell.relWidth){_63a+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_63b+=window.parseInt(w,10);}else{if(w=="auto"){_63c=false;}}}}}if(_63a&&_63c){dojo.forEach(_639,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_63a)*(100-_63b))+"%";}});}return _639;},addRowsDef:function(_63d){var _63e=[];if(dojo.isArray(_63d)){if(dojo.isArray(_63d[0])){for(var i=0,row;_63d&&(row=_63d[i]);i++){_63e.push(this.addRowDef(i,row));}}else{_63e.push(this.addRowDef(0,_63d));}}return _63e;},addViewDef:function(_63f){this._defaultCellProps=_63f.defaultCell||{};if(_63f.width&&_63f.width=="auto"){delete _63f.width;}return dojo.mixin({},_63f,{cells:this.addRowsDef(_63f.rows||_63f.cells)});},setStructure:function(_640){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 _641=this.grid.rowSelector;if(_641=="false"){sel=null;}else{if(_641!="true"){sel["width"]=_641;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _642=function(def){return ("name" in def||"field" in def||"get" in def);};var _643=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_642(def[0])){return true;}}return false;};var _644=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_642(def))));};if(dojo.isArray(_640)){var _645=false;for(var i=0,st;(st=_640[i]);i++){if(_644(st)){_645=true;break;}}if(!_645){s.push(this.addViewDef({cells:_640}));}else{for(i=0;(st=_640[i]);i++){if(_643(st)){s.push(this.addViewDef({cells:st}));}else{if(_644(st)){s.push(this.addViewDef(st));}}}}}else{if(_644(_640)){s.push(this.addViewDef(_640));}}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(_646){this.grid=_646;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_647){_647.idx=this.views.length;this.views.push(_647);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _648=[];for(var i=0,v;v=this.views[i];i++){_648.push(v.contentNode);}return _648;},forEach:function(_649){for(var i=0,v;v=this.views[i];i++){_649(v,i);}},onEach:function(_64a,_64b){_64b=_64b||[];for(var i=0,v;v=this.views[i];i++){if(_64a in v){v[_64a].apply(v,_64b);}}},normalizeHeaderNodeHeight:function(){var _64c=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_64c.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_64c);},normalizeRowNodeHeights:function(_64d){var h=0;var _64e=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_64d.length<=1){return;}for(var i=0,n;(n=_64d[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_64e[i]=n.firstChild.offsetHeight;h=Math.max(h,_64e[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_64d[i]);i++){if(_64e[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(_64f){var _650=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_64f));i++){n.firstChild.style.height="";_650.push(n);}this.normalizeRowNodeHeights(_650);},getViewWidth:function(_651){return this.views[_651].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_652){_652.headerContentNode.style.height="";});var h=0;this.forEach(function(_653){h=Math.max(_653.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_654){h=Math.max(_654.domNode.offsetHeight,h);});return h;},findClient:function(_655){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 _656=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"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);_656(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;_656(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_656(v,l);}return l;},renderRow:function(_657,_658,_659){var _65a=[];for(var i=0,v,n,_65b;(v=this.views[i])&&(n=_658[i]);i++){_65b=v.renderRow(_657);n.appendChild(_65b);_65a.push(_65b);}if(!_659){this.normalizeRowNodeHeights(_65a);}},rowRemoved:function(_65c){this.onEach("rowRemoved",[_65c]);},updateRow:function(_65d,_65e){for(var i=0,v;v=this.views[i];i++){v.updateRow(_65d);}if(!_65e){this.renormalizeRow(_65d);}},updateRowStyles:function(_65f){this.onEach("updateRowStyles",[_65f]);},setScrollTop:function(_660){var top=_660;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_660);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 _661=function(_662,_663){if(_662.style.cssText==undefined){_662.setAttribute("style",_663);}else{_662.style.cssText=_663;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_664){this.grid=_664;},linesToEms:2,overRow:-2,prepareStylingRow:function(_665,_666){return {index:_665,node:_666,odd:Boolean(_665&1),selected:!!this.grid.selection.isSelected(_665),over:this.isOver(_665),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_667,_668){var row=this.prepareStylingRow(_667,_668);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_669){var i=_669;i.node.className=i.customClasses;var h=i.node.style.height;_661(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_66a){this.grid.updateRowStyles(_66a);},setOverRow:function(_66b){var last=this.overRow;this.overRow=_66b;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_66c){return (this.overRow==_66c&&!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(_66d){this.grid=_66d;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,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));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(_66e,_66f){return (this.cell==_66e)&&(this.rowIndex==_66f);},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(_670){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_670);if(_670){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);if(this._colHeadNode){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 _671=this._findHeaderCells();for(var i=0;i<_671.length;i++){this._headerConnects.push(dojo.connect(_671[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_671[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _672=dojo.query("th",this.grid.viewsHeaderNode);var _673=[];for(var i=0;i<_672.length;i++){var _674=_672[i];var _675=dojo.hasAttr(_674,"tabIndex");var _676=dojo.attr(_674,"tabIndex");if(_675&&_676<0){_673.push(_674);}}return _673;},_setActiveColHeader:function(_677,_678,_679){dojo.attr(this.grid.domNode,"aria-activedescendant",_677.id);if(_679!=null&&_679>=0&&_679!=_678){dojo.toggleClass(this._findHeaderCells()[_679],this.focusClass,false);}dojo.toggleClass(_677,this.focusClass,true);this._colHeadNode=_677;this._colHeadFocusIdx=_678;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,_67a){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:(_67a?_67a:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_67b){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_67b);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _67c=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_67c){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 _67d=this.focusView;if(!_67d){for(var i=0,_67e;(_67e=this.grid.views.views[i]);i++){if(_67e.headerNode){_67d=_67e;break;}}}return (_67d&&dojo.getComputedStyle(_67d.headerNode).display=="none");},colSizeAdjust:function(e,_67f,_680){var _681=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_682;(_682=this.grid.views.views[i]);i++){if(_682.header.tableMap.map){view=_682;break;}}}var _683=_681[_67f];if(!view||(_67f==_681.length-1&&_67f===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_683;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _684={l:_680};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_684);view.update();}},styleRow:function(_685){return;},setFocusIndex:function(_686,_687){this.setFocusCell(this.grid.getCell(_687),_686);},setFocusCell:function(_688,_689){if(_688&&!this.isFocusCell(_688,_689)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_688;this.rowIndex=_689;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 _68a=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_68a.editable||this.grid.canEdit&&!this.grid.canEdit(_68a,row))){this.cell=_68a;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 _68b=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_68b.editable){this.cell=_68b;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_68c,_68d){var _68e=_68d<0?-1:1;if(this.isNavHeader()){var _68f=this._findHeaderCells();var _690=currentIdx=dojo.indexOf(_68f,this._colHeadNode);currentIdx+=_68d;while(currentIdx>=0&&currentIdx<_68f.length&&_68f[currentIdx].style.display=="none"){currentIdx+=_68e;}if((currentIdx>=0)&&(currentIdx<_68f.length)){this._setActiveColHeader(_68f[currentIdx],currentIdx,_690);}}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+_68c));if(_68c){if(_68c>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_68c<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+_68d));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_68e;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_68c){if((row+_68c)>=0&&(row+_68c)<=rc){this.move(_68c>0?++_68c:--_68c,_68d);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_68d){if((col+_68d)>=0&&(col+_68d)<=cc){this.move(_68c,_68d>0?++_68d:--_68d);}return;}}this.setFocusIndex(row,col);if(_68c){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 _691=(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(_692){this.tabbingOut=true;_692.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_693){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _694=true;var _695=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_695){var _696=0;var cell=this.grid.getCell(_696);if(cell.hidden){_696=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_696);}else{if(this.cell&&!_695){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_694=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _694;},focusHeader:function(){var _697=this._findHeaderCells();var _698=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=_697[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_697.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_697[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,_698);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 _699=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_699);this._contextMenuBindNode=_699;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){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);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=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(_69a){this.grid=_69a;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(_69b,_69c){if(this.grid.singleClickEdit||this.isEditRow(_69c)){this.setEditCell(_69b,_69c);}else{this.apply();}if(this.isEditing()||(_69b&&_69b.editable&&_69b.alwaysEditing)){this._focusEditor(_69b,_69c);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_69d){if(_69d.index==this.info.rowIndex){_69d.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(_69e,_69f){return (this.info.rowIndex===_69e)&&(this.info.cell.index==_69f);},isEditRow:function(_6a0){return this.info.rowIndex===_6a0;},setEditCell:function(_6a1,_6a2){if(!this.isEditCell(_6a2,_6a1.index)&&this.grid.canEdit&&this.grid.canEdit(_6a1,_6a2)){this.start(_6a1,_6a2,this.isEditRow(_6a2)||_6a1.editable);}},_focusEditor:function(_6a3,_6a4){dojox.grid.util.fire(_6a3,"focus",[_6a4]);},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(_6a5,_6a6,_6a7){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_6a6)){this.applyRowEdit();this.grid.updateRow(_6a6);}if(_6a7){this.info={cell:_6a5,rowIndex:_6a6};this.grid.doStartEdit(_6a5,_6a6);this.grid.updateRow(_6a6);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_6a5,_6a6);this._doCatchBoomerang();},_editorDo:function(_6a8){var c=this.info.cell;if(c&&c.editable){c[_6a8](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_6a9,_6aa,_6ab){if(this.grid.canEdit(_6aa,_6ab)){this.grid.doApplyCellEdit(_6a9,_6ab,_6aa.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){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(_6ac,_6ad){var c=this.info.cell;if(this.isEditRow(_6ac)&&(!_6ad||c.view==_6ad)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_6ae,_6af){var c=this.info.cell;if(this.isEditRow(_6af)&&c.view==_6ae&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}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(_6b0){this.grid=_6b0;this.selected=[];this.setMode(_6b0.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-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(_6b1){return this.grid.onCanSelect(_6b1);},onCanDeselect:function(_6b2){return this.grid.onCanDeselect(_6b2);},onSelected:function(_6b3){},onDeselected:function(_6b4){},onChanging:function(){},onChanged:function(){},isSelected:function(_6b5){if(this.mode=="none"){return false;}return this.selected[_6b5];},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(_6b6){if(this.mode=="none"){return -1;}for(var i=_6b6+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _6b7=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_6b7.push(i);}}return _6b7;},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(_6b8){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_6b8);this.addToSelection(_6b8);}else{this.toggleSelect(_6b8);}},addToSelection:function(_6b9){if(this.mode=="none"){return;}if(dojo.isArray(_6b9)){dojo.forEach(_6b9,this.addToSelection,this);return;}_6b9=Number(_6b9);if(this.selected[_6b9]){this.selectedIndex=_6b9;}else{if(this.onCanSelect(_6b9)!==false){this.selectedIndex=_6b9;var _6ba=this.grid.getRowNode(_6b9);if(_6ba){dojo.attr(_6ba,"aria-selected","true");}this._beginUpdate();this.selected[_6b9]=true;this.onSelected(_6b9);this._endUpdate();}}},deselect:function(_6bb){if(this.mode=="none"){return;}if(dojo.isArray(_6bb)){dojo.forEach(_6bb,this.deselect,this);return;}_6bb=Number(_6bb);if(this.selectedIndex==_6bb){this.selectedIndex=-1;}if(this.selected[_6bb]){if(this.onCanDeselect(_6bb)===false){return;}var _6bc=this.grid.getRowNode(_6bb);if(_6bc){dojo.attr(_6bc,"aria-selected","false");}this._beginUpdate();delete this.selected[_6bb];this.onDeselected(_6bb);this._endUpdate();}},setSelected:function(_6bd,_6be){this[(_6be?"addToSelection":"deselect")](_6bd);},toggleSelect:function(_6bf){if(dojo.isArray(_6bf)){dojo.forEach(_6bf,this.toggleSelect,this);return;}this.setSelected(_6bf,!this.selected[_6bf]);},_range:function(_6c0,inTo,func){var s=(_6c0>=0?_6c0:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_6c1,inTo){this._range(_6c1,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_6c2,inTo){this._range(_6c2,inTo,dojo.hitch(this,"deselect"));},insert:function(_6c3){this.selected.splice(_6c3,0,false);if(this.selectedIndex>=_6c3){this.selectedIndex++;}},remove:function(_6c4){this.selected.splice(_6c4,1);if(this.selectedIndex>=_6c4){this.selectedIndex--;}},deselectAll:function(_6c5){for(var i in this.selected){if((i!=_6c5)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_6c6,_6c7,_6c8){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_6c6);}else{if(!_6c8||this.rangeStartIndex<0){this.rangeStartIndex=_6c6;}if(!_6c7){this.deselectAll(_6c6);}if(_6c8){this.selectRange(this.rangeStartIndex,_6c6);}else{if(_6c7){this.toggleSelect(_6c6);}else{this.addToSelection(_6c6);}}}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(_6c9){var i=_6c9;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_6c9);this.edit.styleRow(_6c9);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _6ca;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_6ca=this.focus.getHeaderIndex();if(_6ca>=0){this.setSortIndex(_6ca);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _6cb=this.edit.isEditing();this.edit.apply();if(!_6cb){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _6cc=this.focus.focusView||this.views.views[0];_6cc.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_6ca=this.focus.getHeaderIndex();if(_6ca>=0){this.setSortIndex(_6ca);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 _6cd=e.keyCode;dojo.stopEvent(e);_6ca=this.focus.getHeaderIndex();if(_6ca>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_6ca,(_6cd==dk.LEFT_ARROW?-1:1)*5);}else{var _6ce=(_6cd==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_6ce*=-1;}this.focus.move(0,_6ce);}}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);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _6cf;if(this._click.length>1&&dojo.isIE){_6cf=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_6cf=this._click[0];}else{_6cf=e;}}this.focus.setFocusCell(_6cf.cell,_6cf.rowIndex);this.edit.setEditCell(_6cf.cell,_6cf.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_6d0,_6d1){this.edit.cellFocus(_6d0,_6d1);},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(_6d2,_6d3){},onApplyCellEdit:function(_6d4,_6d5,_6d6){},onCancelEdit:function(_6d7){},onApplyEdit:function(_6d8){},onCanSelect:function(_6d9){return true;},onCanDeselect:function(_6da){return true;},onSelected:function(_6db){this.updateRowStyles(_6db);},onDeselected:function(_6dc){this.updateRowStyles(_6dc);},onSelectionChanged:function(){}});}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 _6dd=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_6dd);this.errorMessage=dojo.string.substitute(this.errorMessage,_6dd);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;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();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,_6de){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&&!_6de){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(_6df){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_6e0,idx){var c=dojo.getObject(_6e0);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(_6e1){var s=_6e1;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();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_6e2){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_6e2);},getColumnTogglingItems:function(){var _6e3,_6e4=[];_6e3=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(_6e5){if(self.layout.setColumnVisibility(this._gridCell.index,_6e5)){var _6e6=this._gridCell.menuItems;if(_6e6.length>1){dojo.forEach(_6e6,function(item){if(item!==this){item.setAttribute("checked",_6e5);}},this);}_6e5=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(_6e5.length==1){dojo.forEach(_6e5[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _6e7=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_6e7,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_6e4.push(item);}return item;},this);if(_6e4.length==1){_6e4[0].set("disabled",true);}return _6e3;},_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(_6e8){this.setScrollTop(0);},getItem:function(_6e9){return null;},showMessage:function(_6ea){if(_6ea){this.messagesNode.innerHTML=_6ea;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(_6eb,_6ec){this._pendingChangeSize=_6eb;this._pendingResultSize=_6ec;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(_6ed,_6ee){_6ed=_6ed||this._pendingChangeSize;_6ee=_6ee||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 _6ef=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<=_6ef.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(_6ee){_6ed=_6ee;}if(!this._autoHeight&&_6ed){dojo.marginBox(this.domNode,_6ed);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 _6f0=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(!_6f0&&hh===undefined){hh=this._getHeaderHeight();}}if(_6f0){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _6f1=(!this.initialWidth&&this.autoWidth);var w=_6f1?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_6f1){this.domNode.style.width=vw+"px";}},adaptHeight:function(_6f2){var t=_6f2===undefined?this._getHeaderHeight():_6f2;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 _6f3=0,_6f4=0;var _6f5=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_6f3++;}else{_6f4++;}return (!has);});if(_6f3>0&&_6f4>0){dojo.forEach(_6f5,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(_6f6,_6f7){this.views.renderRow(_6f6,_6f7,this._skipRowRenormalize);},rowRemoved:function(_6f8){this.views.rowRemoved(_6f8);},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||this.edit._noUpdate){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(_6f9){_6f9=Number(_6f9);if(this.updating){this.invalidated[_6f9]=true;}else{this.views.updateRow(_6f9);this.scroller.rowHeightChanged(_6f9);}},updateRows:function(_6fa,_6fb){_6fa=Number(_6fa);_6fb=Number(_6fb);var i;if(this.updating){for(i=0;i<_6fb;i++){this.invalidated[i+_6fa]=true;}}else{for(i=0;i<_6fb;i++){this.views.updateRow(i+_6fa,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_6fa);}},updateRowCount:function(_6fc){if(this.updating){this.invalidated.rowCount=_6fc;}else{this.rowCount=_6fc;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_6fc);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_6fd){this.views.updateRowStyles(_6fd);},getRowNode:function(_6fe){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_6fe];}else{for(var i=0,_6ff;(_6ff=this.views.views[i]);i++){if(!(_6ff instanceof dojox.grid._RowSelector)){return _6ff.rowNodes[_6fe];}}}return null;},rowHeightChanged:function(_700){this.views.renormalizeRow(_700);this.scroller.rowHeightChanged(_700);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_701){if(!this.fastScroll){this.setScrollTop(_701);return;}var _702=Math.abs(this.lastScrollTop-_701);this.lastScrollTop=_701;if(_702>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_701;this.views.setScrollTop(_701);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _703=this;this._pendingScroll=window.setTimeout(function(){delete _703._pendingScroll;_703.finishScrollJob();},200);}else{this.setScrollTop(_701);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_704){this.scroller.scroll(this.views.setScrollTop(_704));},scrollToRow:function(_705){this.setScrollTop(this.scroller.findScrollTop(_705)+1);},styleRowNode:function(_706,_707){if(_707){this.rows.styleRowNode(_706,_707);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_708){return this.layout.cells[_708];},setCellWidth:function(_709,_70a){this.getCell(_709).unitWidth=_70a;},getCellName:function(_70b){return "Cell "+_70b.index;},canSort:function(_70c){},sort:function(){},getSortAsc:function(_70d){_70d=_70d==undefined?this.sortInfo:_70d;return Boolean(_70d>0);},getSortIndex:function(_70e){_70e=_70e==undefined?this.sortInfo:_70e;return Math.abs(_70e)-1;},setSortIndex:function(_70f,_710){var si=_70f+1;if(_710!=undefined){si*=(_710?1:-1);}else{if(this.getSortIndex()==_70f){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_711){if(this.canSort(_711)){this.sortInfo=_711;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(_712,_713){this.onStartEdit(_712,_713);},doApplyCellEdit:function(_714,_715,_716){this.onApplyCellEdit(_714,_715,_716);},doCancelEdit:function(_717){this.onCancelEdit(_717);},doApplyEdit:function(_718){this.onApplyEdit(_718);},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(_719,node,ctor,_71a){var d=dojo;var _71b=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(!_719.structure&&node.nodeName.toLowerCase()=="table"){_719.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=_71b(cg);}return v;});if(!_719.structure.length){_719.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_71c){var _71d=0;var _71e=0;var _71f;var _720=null;d.query("> th",tr).map(function(th){if(!_720){_71f=0;_720=_719.structure[0];}else{if(_71d>=(_71f+_720.__span)){_71e++;_71f+=_720.__span;var _721=_720;_720=_719.structure[_71e];}}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")||"")};_71d+=cell.colSpan;var _722=d.attr(th,"rowspan");if(_722){cell.rowSpan=_722;}if(d.hasAttr(th,"width")){cell.width=_71b(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(_71a){_71a(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(!_720.cells[_71c]){_720.cells[_71c]=[];}_720.cells[_71c].push(cell);});});}return new ctor(_719,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(_723){var _724=this.grid.getItemIndex(_723);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_724);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _725=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_725.push(this.grid.getItem(i));}}return _725;},addToSelection:function(_726){if(this.mode=="none"){return;}var idx=null;if(typeof _726=="number"||typeof _726=="string"){idx=_726;}else{idx=this.grid.getItemIndex(_726);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_727){if(this.mode=="none"){return;}var idx=null;if(typeof _727=="number"||typeof _727=="string"){idx=_727;}else{idx=this.grid.getItemIndex(_727);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_728){var idx=null;if(_728||typeof _728=="number"){if(typeof _728=="number"||typeof _728=="string"){idx=_728;}else{idx=this.grid.getItemIndex(_728);}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(_729,_72a){if(_72a&&this.field=="_item"&&!this.fields){return _72a;}else{if(_72a&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_72a,f));});return ret;}else{if(!_72a&&typeof _729==="string"){return this.inherited(arguments);}}}return (!_72a?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_72a:this.grid.store.getValue(_72a,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _72b=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_72b=true;}if(!this.updating){this.beginUpdate();_72b=true;}if(_72b){var _72c=this;this._endUpdateDelay=setTimeout(function(){delete _72c._endUpdateDelay;_72c.endUpdate();},this.updateDelay);}}},_onSet:function(item,_72d,_72e,_72f){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_730){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_730+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_731,_732){this._by_idx[_731]=this._createItem(item,_731);if(!_732){this.updateRow(_731);}},_onNew:function(item,_733){this._checkUpdateStatus();var _734=this.get("rowCount");this._addingItem=true;this.updateRowCount(_734+1);this._addingItem=false;this._addItem(item,_734);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(_735,_736,_737){this._setQuery(_736,_737);this._setStore(_735);this._refresh(true);},setQuery:function(_738,_739){this._setQuery(_738,_739);this._refresh(true);},setItems:function(_73a){this.items=_73a;this._setStore(this.store);this._refresh(true);},_setQuery:function(_73b,_73c){this.query=_73b;this.queryOptions=_73c||this.queryOptions;},_setStore:function(_73d){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_73d;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(_73e,req){if(!this.scroller){return;}if(_73e&&_73e.length>0){dojo.forEach(_73e,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_73e.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(_73f,_740){_73f=_73f||0;if(this.store&&!this._pending_requests[_73f]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_73f]=true;try{if(this.items){var _741=this.items;var _742=this.store;this.rowsPerPage=_741.length;var req={start:_73f,count:this.rowsPerPage,isRender:_740};this._onFetchBegin(_741.length,req);var _743=0;dojo.forEach(_741,function(i){if(!_742.isItemLoaded(i)){_743++;}});if(_743===0){this._onFetchComplete(_741,req);}else{var _744=function(item){_743--;if(_743===0){this._onFetchComplete(_741,req);}};dojo.forEach(_741,function(i){if(!_742.isItemLoaded(i)){_742.loadItem({item:i,onItem:_744,scope:this});}},this);}}else{this.store.fetch({start:_73f,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_740,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_73f,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,_745){if(!_745&&!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(_746,_747){this.query=_746;if(_747){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(_748){return this._pending_requests[_748];},_rowToPage:function(_749){return (this.rowsPerPage?Math.floor(_749/this.rowsPerPage):_749);},_pageToRow:function(_74a){return (this.rowsPerPage?this.rowsPerPage*_74a:_74a);},_preparePage:function(_74b){if((_74b<this._bop||_74b>=this._eop)&&!this._addingItem){var _74c=this._rowToPage(_74b);this._needPage(_74c);this._bop=_74c*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_74d){if(!this._pages[_74d]){this._pages[_74d]=true;this._requestPage(_74d);}},_requestPage:function(_74e){var row=this._pageToRow(_74e);var _74f=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_74f>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_750){return _750.field;},_refresh:function(_751){this._clearData();this._fetch(0,_751);},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(_752){if(this.store&&this.store.getState){var _753=this.store.getState(_752.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_753[s]){c=" dojoxGridRow-"+s;break;}}_752.customClasses+=c;}},onStyleRow:function(_754){this.styleRowState(_754);this.inherited(arguments);},canEdit:function(_755,_756){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _757={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_758,_759){if(!this._cache[_759]){this._cache[_759]=this._copyAttr(_759,_758.field);}this.onStartEdit(_758,_759);},doApplyCellEdit:function(_75a,_75b,_75c){this.store.fetchItemByIdentity({identity:this._by_idx[_75b].idty,onItem:dojo.hitch(this,function(item){var _75d=this.store.getValue(item,_75c);if(typeof _75d=="number"){_75a=isNaN(_75a)?_75a:parseFloat(_75a);}else{if(typeof _75d=="boolean"){_75a=_75a=="true"?true:_75a=="false"?false:_75a;}else{if(_75d instanceof Date){var _75e=new Date(_75a);_75a=isNaN(_75e.getTime())?_75a:_75e;}}}this.store.setValue(item,_75c,_75a);this.onApplyCellEdit(_75a,_75b,_75c);})});},doCancelEdit:function(_75f){var _760=this._cache[_75f];if(_760){this.updateRow(_75f);delete this._cache[_75f];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_761,_762){var _763=this._cache[_761];this.onApplyEdit(_761);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_764){if(_764.length){dojo.forEach(_764,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(_765,node,_766){var _767=dojo.trim(dojo.attr(node,"field")||"");if(_767){_766.field=_767;}_766.field=_766.field||_766.name;var _768=dojo.trim(dojo.attr(node,"fields")||"");if(_768){_766.fields=_768.split(",");}if(_765){_765(node,_766);}};dojox.grid.DataGrid.markupFactory=function(_769,node,ctor,_76a){return dojox.grid._Grid.markupFactory(_769,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_76a));};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_76b){_76b=_76b||{};if(!_76b.store){_76b.store=this;}var self=this;var _76c=function(_76d,_76e){if(_76e.onError){var _76f=_76e.scope||dojo.global;_76e.onError.call(_76f,_76d,_76e);}};var _770=function(_771,_772){var _773=_772.abort||null;var _774=false;var _775=_772.start?_772.start:0;var _776=(_772.count&&(_772.count!==Infinity))?(_775+_772.count):_771.length;_772.abort=function(){_774=true;if(_773){_773.call(_772);}};var _777=_772.scope||dojo.global;if(!_772.store){_772.store=self;}if(_772.onBegin){_772.onBegin.call(_777,_771.length,_772);}if(_772.sort){_771.sort(dojo.data.util.sorter.createSortFunction(_772.sort,self));}if(_772.onItem){for(var i=_775;(i<_771.length)&&(i<_776);++i){var item=_771[i];if(!_774){_772.onItem.call(_777,item,_772);}}}if(_772.onComplete&&!_774){var _778=null;if(!_772.onItem){_778=_771.slice(_775,_776);}_772.onComplete.call(_777,_778,_772);}};this._fetchItems(_76b,_770,_76c);return _76b;};}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_779,_77a){var rxp="^";var c=null;for(var i=0;i<_779.length;i++){c=_779.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_779.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_77a){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_77b){var pos=0;if(typeof (_77b.selectionStart)=="number"){pos=_77b.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_77b.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_77c,_77d){_77d=parseInt(_77d);dijit.selectInputText(_77c,_77d,_77d);},_setDisabledAttr:function(_77e){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_77e);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _77f=false;var pw=this.dropDown;var dk=dojo.keys;var _780=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_780=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_780);}dojo.stopEvent(evt);break;case dk.ENTER:if(_780){if(_780==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_780==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _781=this.get("displayedValue");if(pw&&(_781==pw._messages["previousMessage"]||_781==pw._messages["nextMessage"])){break;}if(_780){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_780){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_77f=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_77f=true;break;default:_77f=typeof key=="string"||key==229;}if(_77f){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _782=this.ignoreCase?"toLowerCase":"substr";if(text[_782](0).indexOf(this.focusNode.value[_782](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_783,_784){this._fetchHandle=null;if(this.disabled||this.readOnly||(_784.query[this.searchAttr]!=this._lastQuery)){return;}var _785=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_783.length&&!this._maxOptions){this.closeDropDown();return;}_784._maxOptions=this._maxOptions;var _786=this.dropDown.createOptions(_783,_784,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_784.direction){if(1==_784.direction){this.dropDown.highlightFirstOption();}else{if(-1==_784.direction){this.dropDown.highlightLastOption();}}if(_785){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_784.query[this.searchAttr])){this._announceOption(_786[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_787){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _788=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_788==pw._messages["previousMessage"]||_788==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_788);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_789,_78a){if(!_78a){_78a=this.store.getValue(item,this.searchAttr);}var _78b=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_78a;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_78b,_789,_78a);},_announceOption:function(node){if(!node){return;}var _78c;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_78c=node.innerHTML;this.item=undefined;this.value="";}else{_78c=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_78c);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_78c);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _78d=this.id+"_popup",_78e=dojo.getObject(this.dropDownClass,false);this.dropDown=new _78e({onChange:dojo.hitch(this,this._selectOption),id:_78d,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_78d);}var _78f=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_78f[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_790,_791){this.searchTimer=null;var _792={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_790,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_793){_791._fetchHandle=null;console.error("dijit.form.ComboBox: "+_793);_791.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_792,_791.fetchProperties);this._fetchHandle=_791.store.fetch(_792);var _794=function(_795,_796){_795.start+=_795.count*_796;_795.direction=_796;this._fetchHandle=this.store.fetch(_795);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_794,this._fetchHandle);},_78f,this),this.searchDelay);},_setMaxOptions:function(size,_797){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _798=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_798);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _799=this._getValueField();this.value=this.store.getValue(item,_799);}}}this.inherited(arguments);},postCreate:function(){var _79a=dojo.query("label[for=\""+this.id+"\"]");if(_79a.length){_79a[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_79a[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _79b=this.labelFunc(item,this.store),_79c=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_79b=this.doHighlight(_79b,this._escapeHtml(this._lastInput));_79c="html";}return {html:_79c=="html",label:_79b};},doHighlight:function(_79d,find){var _79e=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_79d).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_79e),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_79f){return _79f.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_7a0){this.value=_7a0;this.onChange(_7a0);},onChange:function(_7a1){},onPage:function(_7a2){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_7a3){var _7a4=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _7a5=_7a3(item);if(_7a5.html){_7a4.innerHTML=_7a5.label;}else{_7a4.appendChild(dojo.doc.createTextNode(_7a5.label));}if(_7a4.innerHTML==""){_7a4.innerHTML="&nbsp;";}_7a4.item=item;return _7a4;},createOptions:function(_7a6,_7a7,_7a8){this.previousButton.style.display=(_7a7.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_7a6,function(item,i){var _7a9=this._createOption(item,_7a8);dojo.attr(_7a9,"id",this.id+i);this.domNode.insertBefore(_7a9,this.nextButton);},this);var _7aa=false;if(_7a7._maxOptions&&_7a7._maxOptions!=-1){if((_7a7.start+_7a7.count)<_7a7._maxOptions){_7aa=true;}else{if((_7a7.start+_7a7.count)>_7a7._maxOptions&&_7a7.count==_7a6.length){_7aa=true;}}}else{if(_7a7.count==_7a6.length){_7aa=true;}}this.nextButton.style.display=_7aa?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _7ab=this.domNode.firstChild;var _7ac=_7ab.nextSibling;this._focusOptionNode(_7ac.style.display=="none"?_7ab:_7ac);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _7ad=0;var _7ae=this.domNode.scrollTop;var _7af=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_7ad<_7af){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _7b0=this.domNode.scrollTop;_7ad+=(_7b0-_7ae)*(up?-1:1);_7ae=_7b0;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_7b1,_7b2,_7b3){this._set("item",null);if(!_7b1){_7b1="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_7b1,_7b2,_7b3);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_7b4,_7b5){return (_7b4=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_7b6){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_7b7,_7b8){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _7b9=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_7ba=dojo.query("> option",this.root).filter(function(_7bb){return (_7bb.innerText||_7bb.textContent||"").match(_7b9);});if(args.sort){_7ba.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_7b7(_7ba,args);},close:function(_7bc){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_7bd,_7be,_7bf){if((_7be&&_7be.query[this.searchAttr]!=this._lastQuery)||(!_7be&&_7bd.length&&this.store.getIdentity(_7bd[0])!=this._lastQuery)){return;}if(!_7bd.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7bf||(_7bf===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_7bd[0],_7bf);}},_openResultList:function(_7c0,_7c1){if(_7c1.query[this.searchAttr]!=this._lastQuery){return;}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_7c2,_7c3){if(!this._onChangeActive){_7c3=null;}this._lastQuery=_7c2;if(_7c2===null||_7c2===""){this._setDisplayedValueAttr("",_7c3);return;}var self=this;this.store.fetchItemByIdentity({identity:_7c2,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_7c3);}});},_setItemAttr:function(item,_7c4,_7c5){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_7c6,_7c7){if(_7c6==null){_7c6="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_7c7=false;}if(this.store){this.closeDropDown();var _7c8=dojo.clone(this.query);this._lastQuery=_7c8[this.searchAttr]=this._getDisplayQueryString(_7c6);this.textbox.value=_7c6;this._lastDisplayedValue=_7c6;this._set("displayedValue",_7c6);var _7c9=this;var _7ca={query:_7c8,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7cb,_7cc){_7c9._fetchHandle=null;dojo.hitch(_7c9,"_callbackSetLabel")(_7cb,_7cc,_7c7);},onError:function(_7cd){_7c9._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_7cd);dojo.hitch(_7c9,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_7ca,this.fetchProperties);this._fetchHandle=this.store.fetch(_7ca);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:dojo.cache("dijit.form","templates/Spinner.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\trole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_7ce){return val;},_arrowPressed:function(_7cf,_7d0,_7d1){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_7d0*_7d1),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_7d2,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_7d2==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7d3=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7d3!==0){var node=this[(_7d3>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7d3,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));}});}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.getObject("number",true,dojo);dojo.number.format=function(_7d4,_7d5){_7d5=dojo.mixin({},_7d5||{});var _7d6=dojo.i18n.normalizeLocale(_7d5.locale),_7d7=dojo.i18n.getLocalization("dojo.cldr","number",_7d6);_7d5.customs=_7d7;var _7d8=_7d5.pattern||_7d7[(_7d5.type||"decimal")+"Format"];if(isNaN(_7d4)||Math.abs(_7d4)==Infinity){return null;}return dojo.number._applyPattern(_7d4,_7d8,_7d5);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_7d9,_7da,_7db){_7db=_7db||{};var _7dc=_7db.customs.group,_7dd=_7db.customs.decimal,_7de=_7da.split(";"),_7df=_7de[0];_7da=_7de[(_7d9<0)?1:0]||("-"+_7df);if(_7da.indexOf("%")!=-1){_7d9*=100;}else{if(_7da.indexOf("‰")!=-1){_7d9*=1000;}else{if(_7da.indexOf("¤")!=-1){_7dc=_7db.customs.currencyGroup||_7dc;_7dd=_7db.customs.currencyDecimal||_7dd;_7da=_7da.replace(/\u00a4{1,3}/,function(_7e0){var prop=["symbol","currency","displayName"][_7e0.length-1];return _7db[prop]||_7db.currency||"";});}else{if(_7da.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _7e1=dojo.number._numberPatternRE;var _7e2=_7df.match(_7e1);if(!_7e2){throw new Error("unable to find a number expression in pattern: "+_7da);}if(_7db.fractional===false){_7db.places=0;}return _7da.replace(_7e1,dojo.number._formatAbsolute(_7d9,_7e2[0],{decimal:_7dd,group:_7dc,places:_7db.places,round:_7db.round}));};dojo.number.round=function(_7e3,_7e4,_7e5){var _7e6=10/(_7e5||10);return (_7e6*+_7e3).toFixed(_7e4)/_7e6;};if((0.9).toFixed()==0){(function(){var _7e7=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _7e7(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_7e8,_7e9,_7ea){_7ea=_7ea||{};if(_7ea.places===true){_7ea.places=0;}if(_7ea.places===Infinity){_7ea.places=6;}var _7eb=_7e9.split("."),_7ec=typeof _7ea.places=="string"&&_7ea.places.indexOf(","),_7ed=_7ea.places;if(_7ec){_7ed=_7ea.places.substring(_7ec+1);}else{if(!(_7ed>=0)){_7ed=(_7eb[1]||[]).length;}}if(!(_7ea.round<0)){_7e8=dojo.number.round(_7e8,_7ed,_7ea.round);}var _7ee=String(Math.abs(_7e8)).split("."),_7ef=_7ee[1]||"";if(_7eb[1]||_7ea.places){if(_7ec){_7ea.places=_7ea.places.substring(0,_7ec);}var pad=_7ea.places!==undefined?_7ea.places:(_7eb[1]&&_7eb[1].lastIndexOf("0")+1);if(pad>_7ef.length){_7ee[1]=dojo.string.pad(_7ef,pad,"0",true);}if(_7ed<_7ef.length){_7ee[1]=_7ef.substr(0,_7ed);}}else{if(_7ee[1]){_7ee.pop();}}var _7f0=_7eb[0].replace(",","");pad=_7f0.indexOf("0");if(pad!=-1){pad=_7f0.length-pad;if(pad>_7ee[0].length){_7ee[0]=dojo.string.pad(_7ee[0],pad);}if(_7f0.indexOf("#")==-1){_7ee[0]=_7ee[0].substr(_7ee[0].length-pad);}}var _7f1=_7eb[0].lastIndexOf(","),_7f2,_7f3;if(_7f1!=-1){_7f2=_7eb[0].length-_7f1-1;var _7f4=_7eb[0].substr(0,_7f1);_7f1=_7f4.lastIndexOf(",");if(_7f1!=-1){_7f3=_7f4.length-_7f1-1;}}var _7f5=[];for(var _7f6=_7ee[0];_7f6;){var off=_7f6.length-_7f2;_7f5.push((off>0)?_7f6.substr(off):_7f6);_7f6=(off>0)?_7f6.slice(0,off):"";if(_7f3){_7f2=_7f3;delete _7f3;}}_7ee[0]=_7f5.reverse().join(_7ea.group||",");return _7ee.join(_7ea.decimal||".");};dojo.number.regexp=function(_7f7){return dojo.number._parseInfo(_7f7).regexp;};dojo.number._parseInfo=function(_7f8){_7f8=_7f8||{};var _7f9=dojo.i18n.normalizeLocale(_7f8.locale),_7fa=dojo.i18n.getLocalization("dojo.cldr","number",_7f9),_7fb=_7f8.pattern||_7fa[(_7f8.type||"decimal")+"Format"],_7fc=_7fa.group,_7fd=_7fa.decimal,_7fe=1;if(_7fb.indexOf("%")!=-1){_7fe/=100;}else{if(_7fb.indexOf("‰")!=-1){_7fe/=1000;}else{var _7ff=_7fb.indexOf("¤")!=-1;if(_7ff){_7fc=_7fa.currencyGroup||_7fc;_7fd=_7fa.currencyDecimal||_7fd;}}}var _800=_7fb.split(";");if(_800.length==1){_800.push("-"+_800[0]);}var re=dojo.regexp.buildGroupRE(_800,function(_801){_801="(?:"+dojo.regexp.escapeString(_801,".")+")";return _801.replace(dojo.number._numberPatternRE,function(_802){var _803={signed:false,separator:_7f8.strict?_7fc:[_7fc,""],fractional:_7f8.fractional,decimal:_7fd,exponent:false},_804=_802.split("."),_805=_7f8.places;if(_804.length==1&&_7fe!=1){_804[1]="###";}if(_804.length==1||_805===0){_803.fractional=false;}else{if(_805===undefined){_805=_7f8.pattern?_804[1].lastIndexOf("0")+1:Infinity;}if(_805&&_7f8.fractional==undefined){_803.fractional=true;}if(!_7f8.places&&(_805<_804[1].length)){_805+=","+_804[1].length;}_803.places=_805;}var _806=_804[0].split(",");if(_806.length>1){_803.groupSize=_806.pop().length;if(_806.length>1){_803.groupSize2=_806.pop().length;}}return "("+dojo.number._realNumberRegexp(_803)+")";});},true);if(_7ff){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_807,_808,_809,_80a){var prop=["symbol","currency","displayName"][_809.length-1],_80b=dojo.regexp.escapeString(_7f8[prop]||_7f8.currency||"");_808=_808?"[\\s\\xa0]":"";_80a=_80a?"[\\s\\xa0]":"";if(!_7f8.strict){if(_808){_808+="*";}if(_80a){_80a+="*";}return "(?:"+_808+_80b+_80a+")?";}return _808+_80b+_80a;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_7fc,decimal:_7fd,factor:_7fe};};dojo.number.parse=function(_80c,_80d){var info=dojo.number._parseInfo(_80d),_80e=(new RegExp("^"+info.regexp+"$")).exec(_80c);if(!_80e){return NaN;}var _80f=_80e[1];if(!_80e[1]){if(!_80e[2]){return NaN;}_80f=_80e[2];info.factor*=-1;}_80f=_80f.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _80f*info.factor;};dojo.number._realNumberRegexp=function(_810){_810=_810||{};if(!("places" in _810)){_810.places=Infinity;}if(typeof _810.decimal!="string"){_810.decimal=".";}if(!("fractional" in _810)||/^0/.test(_810.places)){_810.fractional=[true,false];}if(!("exponent" in _810)){_810.exponent=[true,false];}if(!("eSigned" in _810)){_810.eSigned=[true,false];}var _811=dojo.number._integerRegexp(_810),_812=dojo.regexp.buildGroupRE(_810.fractional,function(q){var re="";if(q&&(_810.places!==0)){re="\\"+_810.decimal;if(_810.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_810.places+"}";}}return re;},true);var _813=dojo.regexp.buildGroupRE(_810.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_810.eSigned})+")";}return "";});var _814=_811+_812;if(_812){_814="(?:(?:"+_814+")|(?:"+_812+"))";}return _814+_813;};dojo.number._integerRegexp=function(_815){_815=_815||{};if(!("signed" in _815)){_815.signed=[true,false];}if(!("separator" in _815)){_815.separator="";}else{if(!("groupSize" in _815)){_815.groupSize=3;}}var _816=dojo.regexp.buildGroupRE(_815.signed,function(q){return q?"[-+]":"";},true);var _817=dojo.regexp.buildGroupRE(_815.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_815.groupSize,grp2=_815.groupSize2;if(grp2){var _818="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_818+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_818;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _816+_817;};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_setConstraintsAttr:function(_819){var _81a=typeof _819.places=="number"?_819.places:0;if(_81a){_81a++;}if(typeof _819.max!="number"){_819.max=9*Math.pow(10,15-_81a);}if(typeof _819.min!="number"){_819.min=-9*Math.pow(10,15-_81a);}this.inherited(arguments,[_819]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}},_onFocus:function(){if(this.disabled){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _81b=this.format(val,this.constraints);if(_81b!==undefined){this.textbox.value=_81b;}}this.inherited(arguments);},format:function(_81c,_81d){var _81e=String(_81c);if(typeof _81c!="number"){return _81e;}if(isNaN(_81c)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_81c,_81d))&&_81d.exponent!==false&&/\de[-+]?\d/i.test(_81e)){return _81e;}if(this.editOptions&&this._focused){_81d=dojo.mixin({},_81d,this.editOptions);}return this._formatter(_81c,_81d);},_parser:dojo.number.parse,parse:function(_81f,_820){var v=this._parser(_81f,dojo.mixin({},_820,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_81f,_820);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_821){return (_821===null||_821===""||_821===undefined)?NaN:this.inherited(arguments);},serialize:function(_822,_823){return (typeof _822!="number"||isNaN(_822))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_824,_825,_826){if(_824!==undefined&&_826===undefined){_826=String(_824);if(typeof _824=="number"){if(isNaN(_824)){_826="";}else{if(("rangeCheck" in this&&this.rangeCheck(_824,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_826)){_826=undefined;}}}else{if(!_824){_826="";_824=NaN;}else{_824=undefined;}}}this.inherited(arguments,[_824,_825,_826]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+dojo.number._realNumberRegexp(dojo.mixin({},this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_827){if(!this._focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{baseClass:"dijitTextBox dijitNumberTextBox"});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{adjust:function(val,_828){var tc=this.constraints,v=isNaN(val),_829=!isNaN(tc.max),_82a=!isNaN(tc.min);if(v&&_828!=0){val=(_828>0)?_82a?tc.min:_829?tc.max:0:_829?this.constraints.max:_82a?tc.min:0;}var _82b=val+_828;if(v||isNaN(_82b)){return val;}if(_829&&(_82b>tc.max)){_82b=tc.max;}if(_82a&&(_82b<tc.min)){_82b=tc.min;}return _82b;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!(e.ctrlKey||e.altKey||e.metaKey)&&typeof this.get("value")!="undefined"){var _82c=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _82c=="number"){this._setValueAttr(_82c,false);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_82d){if(_82d){_82d=_82d.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _82e=parseInt(this.maxLength);var _82f=this.textbox.value.replace(/\r/g,"");var _830=_82f.length-_82e;if(_830>0){if(e){dojo.stopEvent(e);}var _831=this.textbox;if(_831.selectionStart){var pos=_831.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82f.substring(0,pos-_830-cr)+_82f.substring(pos-cr);_831.setSelectionRange(pos-_830,pos-_830);}else{if(dojo.doc.selection){_831.focus();var _832=dojo.doc.selection.createRange();_832.moveStart("character",-_830);_832.text="";_832.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]){dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]=true;dojo.provide("dijit.form._ExpandingTextAreaMixin");var needsHelpShrinking;dojo.declare("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);var _833=this.textbox;if(needsHelpShrinking==undefined){var te=dojo.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},dojo.body(),"last");needsHelpShrinking=te.scrollHeight>=te.clientHeight;dojo.body().removeChild(te);}this.connect(_833,"onresize","_resizeLater");this.connect(_833,"onfocus","_resizeLater");_833.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _834=this.textbox;_834.rows=(_834.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _835=this.textbox;function _836(){var _837=false;if(_835.value===""){_835.value=" ";_837=true;}var sh=_835.scrollHeight;if(_837){_835.value="";}return sh;};if(_835.style.overflowY=="hidden"){_835.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_836()||_835.offsetHeight){var newH=_836()+Math.max(_835.offsetHeight-_835.clientHeight,0);var _838=newH+"px";if(_838!=_835.style.height){_835.style.height=_838;_835.rows=1;}if(needsHelpShrinking){var _839=_836(),_83a=_839,_83b=_835.style.minHeight,_83c=4,_83d,_83e=_835.scrollTop;_835.style.minHeight=_838;_835.style.height="auto";while(newH>0){_835.style.minHeight=Math.max(newH-_83c,4)+"px";_83d=_836();var _83f=_83a-_83d;newH-=_83f;if(_83f<_83c){break;}_83a=_83d;_83c<<=1;}_835.style.height=newH+"px";_835.style.minHeight=_83b;_835.scrollTop=_83e;}_835.style.overflowY=_836()>_835.clientHeight?"auto":"hidden";if(_835.style.overflowY=="hidden"){_835.scrollTop=0;}}else{this._estimateHeight();}this.busyResizing=false;}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",[dijit.form.SimpleTextarea,dijit.form._ExpandingTextAreaMixin],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});}});}if(!dojo._hasResource["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.DeferredList=function(list,_840,_841,_842,_843){var _844=[];dojo.Deferred.call(this);var self=this;if(list.length===0&&!_840){this.resolve([0,[]]);}var _845=0;dojo.forEach(list,function(item,i){item.then(function(_846){if(_840){self.resolve([i,_846]);}else{_847(true,_846);}},function(_848){if(_841){self.reject(_848);}else{_847(false,_848);}if(_842){return null;}throw _848;});function _847(_849,_84a){_844[i]=[_849,_84a];_845++;if(_845===list.length){self.resolve(_844);}};});};dojo.DeferredList.prototype=new dojo.Deferred();dojo.DeferredList.prototype.gatherResults=function(_84b){var d=new dojo.DeferredList(_84b,false,true,false);d.addCallback(function(_84c){var ret=[];dojo.forEach(_84c,function(_84d){ret.push(_84d[1]);});return ret;});return d;};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_84e,_84f){var c=document.cookie;if(arguments.length==1){var _850=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _850?decodeURIComponent(_850[1]):undefined;}else{_84f=_84f||{};var exp=_84f.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_84f.expires=d;}if(exp&&exp.toUTCString){_84f.expires=exp.toUTCString();}_84e=encodeURIComponent(_84e);var _851=name+"="+_84e,_852;for(_852 in _84f){_851+="; "+_852;var _853=_84f[_852];if(_853!==true){_851+="="+_853;}}document.cookie=_851;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _854=this.store;if(!_854.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_854.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_854,"onNew",this,"onNewItem"),dojo.connect(_854,"onDelete",this,"onDeleteItem"),dojo.connect(_854,"onSet",this,"onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_855,_856){if(this.root){_855(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_857){if(_857.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_857.length+" items, but must return exactly one item");}this.root=_857[0];_855(this.root);}),onError:_856});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_858,_859,_85a){var _85b=this.store;if(!_85b.isItemLoaded(_858)){var _85c=dojo.hitch(this,arguments.callee);_85b.loadItem({item:_858,onItem:function(_85d){_85c(_85d,_859,_85a);},onError:_85a});return;}var _85e=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_85b.getValues(_858,this.childrenAttrs[i]);_85e=_85e.concat(vals);}var _85f=0;if(!this.deferItemLoadingUntilExpand){dojo.forEach(_85e,function(item){if(!_85b.isItemLoaded(item)){_85f++;}});}if(_85f==0){_859(_85e);}else{dojo.forEach(_85e,function(item,idx){if(!_85b.isItemLoaded(item)){_85b.loadItem({item:item,onItem:function(item){_85e[idx]=item;if(--_85f==0){_859(_85e);}},onError:_85a});}});}},isItem:function(_860){return this.store.isItem(_860);},fetchItemByIdentity:function(_861){this.store.fetchItemByIdentity(_861);},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_862,_863){var _864={parent:_862,attribute:this.childrenAttrs[0]},_865;if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_862,true,_863);}else{_865=this.store.newItem(args,_864);if(_865&&(_863!=undefined)){this.pasteItem(_865,_862,_862,false,_863);}}}});}else{_865=this.store.newItem(args,_864);if(_865&&(_863!=undefined)){this.pasteItem(_865,_862,_862,false,_863);}}},pasteItem:function(_866,_867,_868,_869,_86a){var _86b=this.store,_86c=this.childrenAttrs[0];if(_867){dojo.forEach(this.childrenAttrs,function(attr){if(_86b.containsValue(_867,attr,_866)){if(!_869){var _86d=dojo.filter(_86b.getValues(_867,attr),function(x){return x!=_866;});_86b.setValues(_867,attr,_86d);}_86c=attr;}});}if(_868){if(typeof _86a=="number"){var _86e=_86b.getValues(_868,_86c).slice();_86e.splice(_86a,0,_866);_86b.setValues(_868,_86c,_86e);}else{_86b.setValues(_868,_86c,_86b.getValues(_868,_86c).concat(_866));}}},onChange:function(item){},onChildrenChange:function(_86f,_870){},onDelete:function(_871,_872){},onNewItem:function(item,_873){if(!_873){return;}this.getChildren(_873.item,dojo.hitch(this,function(_874){this.onChildrenChange(_873.item,_874);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_875,_876,_877){if(dojo.indexOf(this.childrenAttrs,_875)!=-1){this.getChildren(item,dojo.hitch(this,function(_878){this.onChildrenChange(item,_878);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_879){this.root={store:this,root:true,id:_879.rootId,label:_879.rootLabel,children:_879.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_87a,_87b,_87c){if(_87a===this.root){if(this.root.children){_87b(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_87d){this.root.children=_87d;_87b(_87d);}),onError:_87c});}}else{this.inherited(arguments);}},isItem:function(_87e){return (_87e===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_87f){if(_87f.identity==this.root.id){var _880=_87f.scope?_87f.scope:dojo.global;if(_87f.onItem){_87f.onItem.call(_880,this.root);}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_881,_882){if(_881===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_883,_884,_885,_886,_887){if(_884===this.root){if(!_886){this.onLeaveRoot(_883);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_883,_884===this.root?null:_884,_885===this.root?null:_885,_886,_887);if(_885===this.root){this.onAddToRoot(_883);}},onAddToRoot:function(item){},onLeaveRoot:function(item){},_requeryTop:function(){var _888=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_889){this.root.children=_889;if(_888.length!=_889.length||dojo.some(_888,function(item,idx){return _889[idx]!=item;})){this.onChildrenChange(this.root,_889);}})});},onNewItem:function(item,_88a){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);},onSetItem:function(item,_88b,_88c,_88d){this._requeryTop();this.inherited(arguments);}});}if(!dojo._hasResource["dijit.tree._dndContainer"]){dojo._hasResource["dijit.tree._dndContainer"]=true;dojo.provide("dijit.tree._dndContainer");dojo.getObject("tree",true,dojo);dijit.tree._compareNodes=function(n1,n2){if(n1===n2){return 0;}if("sourceIndex" in document.documentElement){return n1.sourceIndex-n2.sourceIndex;}else{if("compareDocumentPosition" in document.documentElement){return n1.compareDocumentPosition(n2)&2?1:-1;}else{if(document.createRange){var r1=doc.createRange();r1.setStartBefore(n1);var r2=doc.createRange();r2.setStartBefore(n2);return r1.compareBoundaryPoints(r1.END_TO_END,r2);}else{throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");}}}};dojo.declare("dijit.tree._dndContainer",null,{constructor:function(tree,_88e){this.tree=tree;this.node=tree.domNode;dojo.mixin(this,_88e);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");this.events=[dojo.connect(this.node,"onmouseenter",this,"onOverEvent"),dojo.connect(this.node,"onmouseleave",this,"onOutEvent"),dojo.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),dojo.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",dojo,"stopEvent"),dojo.connect(this.node,"onselectstart",dojo,"stopEvent")];},getItem:function(key){var _88f=this.selection[key],ret={data:_88f,type:["treeNode"]};return ret;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.node=this.parent=null;},onMouseOver:function(_890,evt){this.current=_890;},onMouseOut:function(_891,evt){this.current=null;},_changeState:function(type,_892){var _893="dojoDnd"+type;var _894=type.toLowerCase()+"State";dojo.replaceClass(this.node,_893+_892,_893+this[_894]);this[_894]=_892;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},onOverEvent:function(){this._changeState("Container","Over");},onOutEvent:function(){this._changeState("Container","");}});}if(!dojo._hasResource["dijit.tree._dndSelector"]){dojo._hasResource["dijit.tree._dndSelector"]=true;dojo.provide("dijit.tree._dndSelector");dojo.declare("dijit.tree._dndSelector",dijit.tree._dndContainer,{constructor:function(tree,_895){this.selection={};this.anchor=null;dijit.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(dojo.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),dojo.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),dojo.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"));},singular:false,getSelectedTreeNodes:function(){var _896=[],sel=this.selection;for(var i in sel){_896.push(sel[i]);}return _896;},selectNone:function(){this.setSelection([]);return this;},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null;},addTreeNode:function(node,_897){this.setSelection(this.getSelectedTreeNodes().concat([node]));if(_897){this.anchor=node;}return node;},removeTreeNode:function(node){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[node]));return node;},isTreeNodeSelected:function(node){return node.id&&!!this.selection[node.id];},setSelection:function(_898){var _899=this.getSelectedTreeNodes();dojo.forEach(this._setDifference(_899,_898),dojo.hitch(this,function(node){node.setSelected(false);if(this.anchor==node){delete this.anchor;}delete this.selection[node.id];}));dojo.forEach(this._setDifference(_898,_899),dojo.hitch(this,function(node){node.setSelected(true);this.selection[node.id]=node;}));this._updateSelectionProperties();},_setDifference:function(xs,ys){dojo.forEach(ys,function(y){y.__exclude__=true;});var ret=dojo.filter(xs,function(x){return !x.__exclude__;});dojo.forEach(ys,function(y){delete y["__exclude__"];});return ret;},_updateSelectionProperties:function(){var _89a=this.getSelectedTreeNodes();var _89b=[],_89c=[];dojo.forEach(_89a,function(node){_89c.push(node);_89b.push(node.getTreePath());});var _89d=dojo.map(_89c,function(node){return node.item;});this.tree._set("paths",_89b);this.tree._set("path",_89b[0]||[]);this.tree._set("selectedNodes",_89c);this.tree._set("selectedNode",_89c[0]||null);this.tree._set("selectedItems",_89d);this.tree._set("selectedItem",_89d[0]||null);},onMouseDown:function(e){if(!this.current||this.tree.isExpandoNode(e.target,this.current)){return;}if(e.button==dojo.mouseButtons.RIGHT){return;}dojo.stopEvent(e);var _89e=this.current,copy=dojo.isCopyKey(e),id=_89e.id;if(!this.singular&&!e.shiftKey&&this.selection[id]){this._doDeselect=true;return;}else{this._doDeselect=false;}this.userSelect(_89e,copy,e.shiftKey);},onMouseUp:function(e){if(!this._doDeselect){return;}this._doDeselect=false;this.userSelect(this.current,dojo.isCopyKey(e),e.shiftKey);},onMouseMove:function(e){this._doDeselect=false;},userSelect:function(node,_89f,_8a0){if(this.singular){if(this.anchor==node&&_89f){this.selectNone();}else{this.setSelection([node]);this.anchor=node;}}else{if(_8a0&&this.anchor){var cr=dijit.tree._compareNodes(this.anchor.rowNode,node.rowNode),_8a1,end,_8a2=this.anchor;if(cr<0){_8a1=_8a2;end=node;}else{_8a1=node;end=_8a2;}nodes=[];while(_8a1!=end){nodes.push(_8a1);_8a1=this.tree._getNextNode(_8a1);}nodes.push(end);this.setSelection(nodes);}else{if(this.selection[node.id]&&_89f){this.removeTreeNode(node);}else{if(_89f){this.addTreeNode(node,true);}else{this.setSelection([node]);this.anchor=node;}}}}},forInSelectedItems:function(f,o){o=o||dojo.global;for(var id in this.selection){f.call(o,this.getItem(id),id,this);}}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained,dijit._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:dojo.cache("dijit","templates/TreeNode.html","<div class=\"dijitTreeNode\" role=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" role=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" role=\"presentation\"\n\t\t/><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" role=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" role=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitIcon dijitTreeIcon\" role=\"presentation\"\n\t\t\t/><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" role=\"treeitem\" tabindex=\"-1\" aria-selected=\"false\" dojoAttachEvent=\"onfocus:_onLabelFocus\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" role=\"presentation\" style=\"display: none;\"></div>\n</div>\n"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}this.setSelected(false);},_setIndentAttr:function(_8a3){var _8a4=(Math.max(_8a3,0)*this.tree._nodePixelIndent)+"px";dojo.style(this.domNode,"backgroundPosition",_8a4+" 0px");dojo.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_8a4);dojo.forEach(this.getChildren(),function(_8a5){_8a5.set("indent",_8a3+1);});this._set("indent",_8a3);},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_8a6=tree.model;if(tree._v10Compat&&item===_8a6.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_8a7,_8a8){var _8a9="_"+_8a7+"Class";var _8aa=_8a7+"Node";var _8ab=this[_8a9];this[_8a9]=this.tree["get"+_8a8+"Class"](item,this.isExpanded);dojo.replaceClass(this[_8aa],this[_8a9]||"",_8ab||"");dojo.style(this[_8aa],this.tree["get"+_8a8+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _8ac=this.getParent();if(!_8ac||_8ac.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_8ad){var _8ae=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_8af=["*","-","+","*"],idx=_8ad?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.replaceClass(this.expandoNode,_8ae[idx],_8ae);this.expandoNodeText.innerHTML=_8af[idx];},expand:function(){if(this._expandDeferred){return this._expandDeferred;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");if(this.tree.showRoot||this!==this.tree.rootNode){dijit.setWaiRole(this.containerNode,"group");}dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}var def,_8b0=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new dojo.Deferred(function(){_8b0.stop();}));_8b0.play();return def;},collapse:function(){if(!this.isExpanded){return;}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},indent:0,setChildItems:function(_8b1){var tree=this.tree,_8b2=tree.model,defs=[];dojo.forEach(this.getChildren(),function(_8b3){dijit._Container.prototype.removeChild.call(this,_8b3);},this);this.state="LOADED";if(_8b1&&_8b1.length>0){this.isExpandable=true;dojo.forEach(_8b1,function(item){var id=_8b2.getIdentity(item),_8b4=tree._itemNodesMap[id],node;if(_8b4){for(var i=0;i<_8b4.length;i++){if(_8b4[i]&&!_8b4[i].getParent()){node=_8b4[i];node.set("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_8b2.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),dir:tree.dir,lang:tree.lang,indent:this.indent+1});if(_8b4){_8b4.push(node);}else{tree._itemNodesMap[id]=[node];}}this.addChild(node);if(this.tree.autoExpand||this.tree._state(item)){defs.push(tree._expandNode(node));}},this);dojo.forEach(this.getChildren(),function(_8b5,idx){_8b5._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}this._updateItemClasses(this.item);if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setFocusable(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}return new dojo.DeferredList(defs);},getTreePath:function(){var node=this;var path=[];while(node&&node!==this.tree.rootNode){path.unshift(node.item);node=node.getParent();}path.unshift(this.tree.rootNode.item);return path;},getIdentity:function(){return this.tree.model.getIdentity(this.item);},removeChild:function(node){this.inherited(arguments);var _8b6=this.getChildren();if(_8b6.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_8b6,function(_8b7){_8b7._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){this.tree._onNodeFocus(this);},setSelected:function(_8b8){dijit.setWaiState(this.labelNode,"selected",_8b8);dojo.toggleClass(this.rowNode,"dijitTreeRowSelected",_8b8);},setFocusable:function(_8b9){this.labelNode.setAttribute("tabIndex",_8b9?"0":"-1");},_onClick:function(evt){this.tree._onClick(this,evt);},_onDblClick:function(evt){this.tree._onDblClick(this,evt);},_onMouseEnter:function(evt){this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:dojo.cache("dijit","templates/Tree.html","<div class=\"dijitTree dijitTreeContainer\" role=\"tree\"\n\tdojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" dojoAttachPoint=\"indentDetector\"></div>\n</div>\n"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_8ba,_8bb){dojo.publish(this.id,[dojo.mixin({tree:this,event:_8ba},_8bb||{})]);},postMixInProperties:function(){this.tree=this;if(this.autoExpand){this.persist=false;}this._itemNodesMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}this._loadDeferred=new dojo.Deferred();this.inherited(arguments);},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _8bc={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_8bc[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_8bc);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _8bd={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_8bd.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_8bd.getChildren=dojo.hitch(this,function(item,_8be,_8bf){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_8be,_8bf);});}this.model=new dijit.tree.ForestStoreModel(_8bd);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=(this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";dijit.setWaiRole(this.domNode,"presentation");dijit.setWaiRole(rn.labelNode,"presentation");dijit.setWaiRole(rn.containerNode,"tree");}this.domNode.appendChild(rn.domNode);var _8c0=this.model.getIdentity(item);if(this._itemNodesMap[_8c0]){this._itemNodesMap[_8c0].push(rn);}else{this._itemNodesMap[_8c0]=[rn];}rn._updateLayout();this._expandNode(rn).addCallback(dojo.hitch(this,function(){this._loadDeferred.callback(true);this.onLoad();}));}),function(err){console.error(this,": error loading root: ",err);});},getNodesByItem:function(item){if(!item){return [];}var _8c1=dojo.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_8c1]);},_setSelectedItemAttr:function(item){this.set("selectedItems",[item]);},_setSelectedItemsAttr:function(_8c2){var tree=this;this._loadDeferred.addCallback(dojo.hitch(this,function(){var _8c3=dojo.map(_8c2,function(item){return (!item||dojo.isString(item))?item:tree.model.getIdentity(item);});var _8c4=[];dojo.forEach(_8c3,function(id){_8c4=_8c4.concat(tree._itemNodesMap[id]||[]);});this.set("selectedNodes",_8c4);}));},_setPathAttr:function(path){if(path.length){return this.set("paths",[path]);}else{return this.set("paths",[]);}},_setPathsAttr:function(_8c5){var tree=this;return new dojo.DeferredList(dojo.map(_8c5,function(path){var d=new dojo.Deferred();path=dojo.map(path,function(item){return dojo.isString(item)?item:tree.model.getIdentity(item);});if(path.length){tree._loadDeferred.addCallback(function(){_8c6(path,[tree.rootNode],d);});}else{d.errback("Empty path");}return d;})).addCallback(_8c7);function _8c6(path,_8c8,def){var _8c9=path.shift();var _8ca=dojo.filter(_8c8,function(node){return node.getIdentity()==_8c9;})[0];if(!!_8ca){if(path.length){tree._expandNode(_8ca).addCallback(function(){_8c6(path,_8ca.getChildren(),def);});}else{def.callback(_8ca);}}else{def.errback("Could not expand path at "+_8c9);}};function _8c7(_8cb){tree.set("selectedNodes",dojo.map(dojo.filter(_8cb,function(x){return x[0];}),function(x){return x[1];}));};},_setSelectedNodeAttr:function(node){this.set("selectedNodes",[node]);},_setSelectedNodesAttr:function(_8cc){this._loadDeferred.addCallback(dojo.hitch(this,function(){this.dndController.setSelection(_8cc);}));},mayHaveChildren:function(item){},getItemChildren:function(_8cd,_8ce){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_8cf){return (!item||this.model.mayHaveChildren(item))?(_8cf?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_8d0){},getRowClass:function(item,_8d1){},getIconStyle:function(item,_8d2){},getLabelStyle:function(item,_8d3){},getRowStyle:function(item,_8d4){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _8d5=dijit.getEnclosingWidget(e.target);if(!_8d5){return;}var key=e.charOrCode;if(typeof key=="string"&&key!=" "){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_8d5,key:key.toLowerCase()});dojo.stopEvent(e);}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[dk.SPACE]=map[" "]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_8d5,item:_8d5.item,evt:e});dojo.stopEvent(e);}}},_onEnterKey:function(_8d6){this._publish("execute",{item:_8d6.item,node:_8d6.node});this.dndController.userSelect(_8d6.node,dojo.isCopyKey(_8d6.evt),_8d6.evt.shiftKey);this.onClick(_8d6.item,_8d6.node,_8d6.evt);},_onDownArrow:function(_8d7){var node=this._getNextNode(_8d7.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_8d8){var node=_8d8.node;var _8d9=node.getPreviousSibling();if(_8d9){node=_8d9;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _8da=node.getChildren();node=_8da[_8da.length-1];}}else{var _8db=node.getParent();if(!(!this.showRoot&&_8db===this.rootNode)){node=_8db;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_8dc){var node=_8dc.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_8dd){var node=_8dd.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _8de=node.getParent();if(_8de&&_8de.isTreeNode&&!(!this.showRoot&&_8de===this.rootNode)){this.focusNode(_8de);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_8df){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},multiCharSearchDuration:250,_onLetterKeyNav:function(_8e0){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_8e0.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_8e0.key,startNode:_8e0.node};}var self=this;cs.timer=setTimeout(function(){delete self._curSearch;},this.multiCharSearchDuration);var node=cs.startNode;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==cs.startNode&&(node.label.toLowerCase().substr(0,cs.pattern.length)!=cs.pattern));if(node&&node.isTreeNode){if(node!==cs.startNode){this.focusNode(node);}}},isExpandoNode:function(node,_8e1){return dojo.isDescendant(node,_8e1.expandoNode);},_onClick:function(_8e2,e){var _8e3=e.target,_8e4=this.isExpandoNode(_8e3,_8e2);if((this.openOnClick&&_8e2.isExpandable)||_8e4){if(_8e2.isExpandable){this._onExpandoClick({node:_8e2});}}else{this._publish("execute",{item:_8e2.item,node:_8e2,evt:e});this.onClick(_8e2.item,_8e2,e);this.focusNode(_8e2);}dojo.stopEvent(e);},_onDblClick:function(_8e5,e){var _8e6=e.target,_8e7=(_8e6==_8e5.expandoNode||_8e6==_8e5.expandoNodeText);if((this.openOnDblClick&&_8e5.isExpandable)||_8e7){if(_8e5.isExpandable){this._onExpandoClick({node:_8e5});}}else{this._publish("execute",{item:_8e5.item,node:_8e5,evt:e});this.onDblClick(_8e5.item,_8e5,e);this.focusNode(_8e5);}dojo.stopEvent(e);},_onExpandoClick:function(_8e8){var node=_8e8.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node,evt){},onDblClick:function(item,node,evt){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _8e9=node.getNextSibling();if(_8e9){return _8e9;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node._expandNodeDeferred){delete node._expandNodeDeferred;}if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node,_8ea){if(node._expandNodeDeferred&&!_8ea){return node._expandNodeDeferred;}var _8eb=this.model,item=node.item,_8ec=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new dojo.Deferred());_8eb.getChildren(item,function(_8ed){node.unmarkProcessing();var scid=node.setChildItems(_8ed);var ed=_8ec._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_8ec,": error loading root children: ",err);});break;default:def=(node._expandNodeDeferred=node.expand());this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}return def;},focusNode:function(node){dijit.focus(node.labelNode);},_onNodeFocus:function(node){if(node&&node!=this.lastFocused){if(this.lastFocused&&!this.lastFocused._destroyed){this.lastFocused.setFocusable(false);}node.setFocusable(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _8ee=this.model,_8ef=_8ee.getIdentity(item),_8f0=this._itemNodesMap[_8ef];if(_8f0){var _8f1=this.getLabel(item),_8f2=this.getTooltip(item);dojo.forEach(_8f0,function(node){node.set({item:item,label:_8f1,tooltip:_8f2});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_8f3,_8f4){var _8f5=this.model,_8f6=_8f5.getIdentity(_8f3),_8f7=this._itemNodesMap[_8f6];if(_8f7){dojo.forEach(_8f7,function(_8f8){_8f8.setChildItems(_8f4);});}},_onItemDelete:function(item){var _8f9=this.model,_8fa=_8f9.getIdentity(item),_8fb=this._itemNodesMap[_8fa];if(_8fb){dojo.forEach(_8fb,function(node){this.dndController.removeTreeNode(node);var _8fc=node.getParent();if(_8fc){_8fc.removeChild(node);}node.destroyRecursive();},this);delete this._itemNodesMap[_8fa];}},_initState:function(){if(this.persist){var _8fd=dojo.cookie(this.cookieName);this._openedItemIds={};if(_8fd){dojo.forEach(_8fd.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_8fe){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_8fe){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_8ff){if(_8ff){dojo.marginBox(this.domNode,_8ff);}this._nodePixelIndent=dojo._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode){this.tree.rootNode.set("indent",this.showRoot?0:-1);}},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_900){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_900.url;this._ccUrl=_900.url;this.url=_900.url;this._jsonData=_900.data;this.data=null;this._datatypeMap=_900.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_901){return dojo.date.stamp.fromISOString(_901);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_900.urlPreventCache!==undefined){this.urlPreventCache=_900.urlPreventCache?true:false;}if(_900.hierarchical!==undefined){this.hierarchical=_900.hierarchical?true:false;}if(_900.clearOnClose){this.clearOnClose=true;}if("failOk" in _900){this.failOk=_900.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_902){if(typeof _902!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_903,_904){var _905=this.getValues(item,_903);return (_905.length>0)?_905[0]:_904;},getValues:function(item,_906){this._assertIsItem(item);this._assertIsAttribute(_906);return (item[_906]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _907=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_907.push(key);}}return _907;},hasAttribute:function(item,_908){this._assertIsItem(item);this._assertIsAttribute(_908);return (_908 in item);},containsValue:function(item,_909,_90a){var _90b=undefined;if(typeof _90a==="string"){_90b=dojo.data.util.filter.patternToRegExp(_90a,false);}return this._containsValue(item,_909,_90a,_90b);},_containsValue:function(item,_90c,_90d,_90e){return dojo.some(this.getValues(item,_90c),function(_90f){if(_90f!==null&&!dojo.isObject(_90f)&&_90e){if(_90f.toString().match(_90e)){return true;}}else{if(_90d===_90f){return true;}}});},isItem:function(_910){if(_910&&_910[this._storeRefPropName]===this){if(this._arrayOfAllItems[_910[this._itemNumPropName]]===_910){return true;}}return false;},isItemLoaded:function(_911){return this.isItem(_911);},loadItem:function(_912){this._assertIsItem(_912.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_913,_914,_915){var self=this,_916=function(_917,_918){var _919=[],i,key;if(_917.query){var _91a,_91b=_917.queryOptions?_917.queryOptions.ignoreCase:false;var _91c={};for(key in _917.query){_91a=_917.query[key];if(typeof _91a==="string"){_91c[key]=dojo.data.util.filter.patternToRegExp(_91a,_91b);}else{if(_91a instanceof RegExp){_91c[key]=_91a;}}}for(i=0;i<_918.length;++i){var _91d=true;var _91e=_918[i];if(_91e===null){_91d=false;}else{for(key in _917.query){_91a=_917.query[key];if(!self._containsValue(_91e,key,_91a,_91c[key])){_91d=false;}}}if(_91d){_919.push(_91e);}}_914(_919,_917);}else{for(i=0;i<_918.length;++i){var item=_918[i];if(item!==null){_919.push(item);}}_914(_919,_917);}};if(this._loadFinished){_916(_913,this._getItemsArray(_913.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_913,filter:_916});}else{this._loadInProgress=true;var _91f={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _920=dojo.xhrGet(_91f);_920.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_916(_913,self._getItemsArray(_913.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_915(e,_913);}});_920.addErrback(function(_921){self._loadInProgress=false;_915(_921,_913);});var _922=null;if(_913.abort){_922=_913.abort;}_913.abort=function(){var df=_920;if(df&&df.fired===-1){df.cancel();df=null;}if(_922){_922.call(_913);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_916(_913,this._getItemsArray(_913.queryOptions));}catch(e){_915(e,_913);}}else{_915(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_913);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _923=this._queuedFetches[i],_924=_923.args,_925=_923.filter;if(_925){_925(_924,this._getItemsArray(_924.queryOptions));}else{this.fetchItemByIdentity(_924);}}this._queuedFetches=[];}},_getItemsArray:function(_926){if(_926&&_926.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_927){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_928){var _929=false,self=this;function _92a(_92b){var _92c=((_92b!==null)&&(typeof _92b==="object")&&(!dojo.isArray(_92b)||_929)&&(!dojo.isFunction(_92b))&&(_92b.constructor==Object||dojo.isArray(_92b))&&(typeof _92b._reference==="undefined")&&(typeof _92b._type==="undefined")&&(typeof _92b._value==="undefined")&&self.hierarchical);return _92c;};function _92d(_92e){self._arrayOfAllItems.push(_92e);for(var _92f in _92e){var _930=_92e[_92f];if(_930){if(dojo.isArray(_930)){var _931=_930;for(var k=0;k<_931.length;++k){var _932=_931[k];if(_92a(_932)){_92d(_932);}}}else{if(_92a(_930)){_92d(_930);}}}}};this._labelAttr=_928.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_928.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_929=true;}_92d(item);item[this._rootItemPropName]=true;}var _933={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _934=item[key];if(_934!==null){if(!dojo.isArray(_934)){item[key]=[_934];}}else{item[key]=[null];}}_933[key]=key;}}while(_933[this._storeRefPropName]){this._storeRefPropName+="_";}while(_933[this._itemNumPropName]){this._itemNumPropName+="_";}while(_933[this._reverseRefMap]){this._reverseRefMap+="_";}var _935;var _936=_928.identifier;if(_936){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_936;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_935=item[_936];var _937=_935[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_937)){this._itemsByIdentity[_937]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_936+"].  Value collided: ["+_937+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_936+"].  Value collided: ["+_937+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_935=item[key];for(var j=0;j<_935.length;++j){_934=_935[j];if(_934!==null&&typeof _934=="object"){if(("_type" in _934)&&("_value" in _934)){var type=_934._type;var _938=this._datatypeMap[type];if(!_938){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_938)){_935[j]=new _938(_934._value);}else{if(dojo.isFunction(_938.deserialize)){_935[j]=_938.deserialize(_934._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_934._reference){var _939=_934._reference;if(!dojo.isObject(_939)){_935[j]=this._getItemByIdentity(_939);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _93a=this._arrayOfAllItems[k],_93b=true;for(var _93c in _939){if(_93a[_93c]!=_939[_93c]){_93b=false;}}if(_93b){_935[j]=_93a;}}}if(this.referenceIntegrity){var _93d=_935[j];if(this.isItem(_93d)){this._addReferenceToMap(_93d,item,key);}}}else{if(this.isItem(_934)){if(this.referenceIntegrity){this._addReferenceToMap(_934,item,key);}}}}}}}},_addReferenceToMap:function(_93e,_93f,_940){},getIdentity:function(item){var _941=this._features["dojo.data.api.Identity"];if(_941===Number){return item[this._itemNumPropName];}else{var _942=item[_941];if(_942){return _942[0];}}return null;},fetchItemByIdentity:function(_943){var item,_944;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_943});}else{this._loadInProgress=true;var _945={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _946=dojo.xhrGet(_945);_946.addCallback(function(data){var _947=_943.scope?_943.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_943.identity);if(_943.onItem){_943.onItem.call(_947,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_943.onError){_943.onError.call(_947,error);}}});_946.addErrback(function(_948){self._loadInProgress=false;if(_943.onError){var _949=_943.scope?_943.scope:dojo.global;_943.onError.call(_949,_948);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_943.identity);if(_943.onItem){_944=_943.scope?_943.scope:dojo.global;_943.onItem.call(_944,item);}}}}else{item=this._getItemByIdentity(_943.identity);if(_943.onItem){_944=_943.scope?_943.scope:dojo.global;_943.onItem.call(_944,item);}}},_getItemByIdentity:function(_94a){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_94a)){item=this._itemsByIdentity[_94a];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_94a)){item=this._arrayOfAllItems[_94a];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _94b=this._features["dojo.data.api.Identity"];if(_94b===Number){return null;}else{return [_94b];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _94c={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _94d=dojo.xhrGet(_94c);_94d.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){throw e;}});_94d.addErrback(function(_94e){throw _94e;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;dojo.provide("dojo.data.ItemFileWriteStore");dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_94f){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return dojo.date.stamp.toISOString(obj,{zulu:true});};}if(_94f&&(_94f.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_950){if(!_950){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _951=this.getFeatures()["dojo.data.api.Identity"];return _951;},newItem:function(_952,_953){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _952!="object"&&typeof _952!="undefined"){throw new Error("newItem() was passed something other than an object");}var _954=null;var _955=this._getIdentifierAttribute();if(_955===Number){_954=this._arrayOfAllItems.length;}else{_954=_952[_955];if(typeof _954==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_954)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_954]==="undefined");}this._assert(typeof this._pending._newItems[_954]==="undefined");this._assert(typeof this._pending._deletedItems[_954]==="undefined");var _956={};_956[this._storeRefPropName]=this;_956[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_954]=_956;_956[_955]=[_954];}this._arrayOfAllItems.push(_956);var _957=null;if(_953&&_953.parent&&_953.attribute){_957={item:_953.parent,attribute:_953.attribute,oldValue:undefined};var _958=this.getValues(_953.parent,_953.attribute);if(_958&&_958.length>0){var _959=_958.slice(0,_958.length);if(_958.length===1){_957.oldValue=_958[0];}else{_957.oldValue=_958.slice(0,_958.length);}_959.push(_956);this._setValueOrValues(_953.parent,_953.attribute,_959,false);_957.newValue=this.getValues(_953.parent,_953.attribute);}else{this._setValueOrValues(_953.parent,_953.attribute,_956,false);_957.newValue=_956;}}else{_956[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_956);}this._pending._newItems[_954]=_956;for(var key in _952){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _95a=_952[key];if(!dojo.isArray(_95a)){_95a=[_95a];}_956[key]=_95a;if(this.referenceIntegrity){for(var i=0;i<_95a.length;i++){var val=_95a[i];if(this.isItem(val)){this._addReferenceToMap(val,_956,key);}}}}this.onNew(_956,_957);return _956;},_removeArrayElement:function(_95b,_95c){var _95d=dojo.indexOf(_95b,_95c);if(_95d!=-1){_95b.splice(_95d,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _95e=item[this._itemNumPropName];var _95f=this.getIdentity(item);if(this.referenceIntegrity){var _960=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_960,function(_961){dojo.forEach(this.getValues(item,_961),function(_962){if(this.isItem(_962)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_962),attr:_961});this._removeReferenceFromMap(_962,item,_961);}},this);},this);var _963=item[this._reverseRefMap];if(_963){for(var _964 in _963){var _965=null;if(this._itemsByIdentity){_965=this._itemsByIdentity[_964];}else{_965=this._arrayOfAllItems[_964];}if(_965){for(var _966 in _963[_964]){var _967=this.getValues(_965,_966)||[];var _968=dojo.filter(_967,function(_969){return !(this.isItem(_969)&&this.getIdentity(_969)==_95f);},this);this._removeReferenceFromMap(item,_965,_966);if(_968.length<_967.length){this._setValueOrValues(_965,_966,_968,true);}}}}}}this._arrayOfAllItems[_95e]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_95f];}this._pending._deletedItems[_95f]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_96a,_96b){return this._setValueOrValues(item,_96a,_96b,true);},setValues:function(item,_96c,_96d){return this._setValueOrValues(item,_96c,_96d,true);},unsetAttribute:function(item,_96e){return this._setValueOrValues(item,_96e,[],true);},_setValueOrValues:function(item,_96f,_970,_971){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_96f));this._assert(typeof _970!=="undefined");var _972=this._getIdentifierAttribute();if(_96f==_972){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _973=this._getValueOrValues(item,_96f);var _974=this.getIdentity(item);if(!this._pending._modifiedItems[_974]){var _975={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_975[key]=item[key];}else{if(key===this._reverseRefMap){_975[key]=dojo.clone(item[key]);}else{_975[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_974]=_975;}var _976=false;if(dojo.isArray(_970)&&_970.length===0){_976=delete item[_96f];_970=undefined;if(this.referenceIntegrity&&_973){var _977=_973;if(!dojo.isArray(_977)){_977=[_977];}for(var i=0;i<_977.length;i++){var _978=_977[i];if(this.isItem(_978)){this._removeReferenceFromMap(_978,item,_96f);}}}}else{var _979;if(dojo.isArray(_970)){var _97a=_970;_979=_970.slice(0,_970.length);}else{_979=[_970];}if(this.referenceIntegrity){if(_973){var _977=_973;if(!dojo.isArray(_977)){_977=[_977];}var map={};dojo.forEach(_977,function(_97b){if(this.isItem(_97b)){var id=this.getIdentity(_97b);map[id.toString()]=true;}},this);dojo.forEach(_979,function(_97c){if(this.isItem(_97c)){var id=this.getIdentity(_97c);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_97c,item,_96f);}}},this);for(var rId in map){var _97d;if(this._itemsByIdentity){_97d=this._itemsByIdentity[rId];}else{_97d=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_97d,item,_96f);}}else{for(var i=0;i<_979.length;i++){var _978=_979[i];if(this.isItem(_978)){this._addReferenceToMap(_978,item,_96f);}}}}item[_96f]=_979;_976=true;}if(_971){this.onSet(item,_96f,_973,_970);}return _976;},_addReferenceToMap:function(_97e,_97f,_980){var _981=this.getIdentity(_97f);var _982=_97e[this._reverseRefMap];if(!_982){_982=_97e[this._reverseRefMap]={};}var _983=_982[_981];if(!_983){_983=_982[_981]={};}_983[_980]=true;},_removeReferenceFromMap:function(_984,_985,_986){var _987=this.getIdentity(_985);var _988=_984[this._reverseRefMap];var _989;if(_988){for(_989 in _988){if(_989==_987){delete _988[_989][_986];if(this._isEmpty(_988[_989])){delete _988[_989];}}}if(this._isEmpty(_988)){delete _984[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){}}},_getValueOrValues:function(item,_98a){var _98b=undefined;if(this.hasAttribute(item,_98a)){var _98c=this.getValues(item,_98a);if(_98c.length==1){_98b=_98c[0];}else{_98b=_98c;}}return _98b;},_flatten:function(_98d){if(this.isItem(_98d)){var item=_98d;var _98e=this.getIdentity(item);var _98f={_reference:_98e};return _98f;}else{if(typeof _98d==="object"){for(var type in this._datatypeMap){var _990=this._datatypeMap[type];if(dojo.isObject(_990)&&!dojo.isFunction(_990)){if(_98d instanceof _990.type){if(!_990.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_990.serialize(_98d)};}}else{if(_98d instanceof _990){return {_type:type,_value:_98d.toString()};}}}}return _98d;}},_getNewFileContentString:function(){var _991={};var _992=this._getIdentifierAttribute();if(_992!==Number){_991.identifier=_992;}if(this._labelAttr){_991.label=this._labelAttr;}_991.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _993={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _994=key;var _995=this.getValues(item,_994);if(_995.length==1){_993[_994]=this._flatten(_995[0]);}else{var _996=[];for(var j=0;j<_995.length;++j){_996.push(this._flatten(_995[j]));_993[_994]=_996;}}}}_991.items.push(_993);}}var _997=true;return dojo.toJson(_991,_997);},_isEmpty:function(_998){var _999=true;if(dojo.isObject(_998)){var i;for(i in _998){_999=false;break;}}else{if(dojo.isArray(_998)){if(_998.length>0){_999=false;}}}return _999;},save:function(_99a){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _99b=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_99a&&_99a.onComplete){var _99c=_99a.scope||dojo.global;_99a.onComplete.call(_99c);}};var _99d=function(err){self._saveInProgress=false;if(_99a&&_99a.onError){var _99e=_99a.scope||dojo.global;_99a.onError.call(_99e,err);}};if(this._saveEverything){var _99f=this._getNewFileContentString();this._saveEverything(_99b,_99d,_99f);}if(this._saveCustom){this._saveCustom(_99b,_99d);}if(!this._saveEverything&&!this._saveCustom){_99b();}},revert:function(){this._assert(!this._saveInProgress);var _9a0;for(_9a0 in this._pending._modifiedItems){var _9a1=this._pending._modifiedItems[_9a0];var _9a2=null;if(this._itemsByIdentity){_9a2=this._itemsByIdentity[_9a0];}else{_9a2=this._arrayOfAllItems[_9a0];}_9a1[this._storeRefPropName]=this;for(key in _9a2){delete _9a2[key];}dojo.mixin(_9a2,_9a1);}var _9a3;for(_9a0 in this._pending._deletedItems){_9a3=this._pending._deletedItems[_9a0];_9a3[this._storeRefPropName]=this;var _9a4=_9a3[this._itemNumPropName];if(_9a3["backup_"+this._reverseRefMap]){_9a3[this._reverseRefMap]=_9a3["backup_"+this._reverseRefMap];delete _9a3["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_9a4]=_9a3;if(this._itemsByIdentity){this._itemsByIdentity[_9a0]=_9a3;}if(_9a3[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_9a3);}}for(_9a0 in this._pending._deletedItems){_9a3=this._pending._deletedItems[_9a0];if(_9a3["backupRefs_"+this._reverseRefMap]){dojo.forEach(_9a3["backupRefs_"+this._reverseRefMap],function(_9a5){var _9a6;if(this._itemsByIdentity){_9a6=this._itemsByIdentity[_9a5.id];}else{_9a6=this._arrayOfAllItems[_9a5.id];}this._addReferenceToMap(_9a6,_9a3,_9a5.attr);},this);delete _9a3["backupRefs_"+this._reverseRefMap];}}for(_9a0 in this._pending._newItems){var _9a7=this._pending._newItems[_9a0];_9a7[this._storeRefPropName]=null;this._arrayOfAllItems[_9a7[this._itemNumPropName]]=null;if(_9a7[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_9a7);}if(this._itemsByIdentity){delete this._itemsByIdentity[_9a0];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _9a8=this.getIdentity(item);return new Boolean(this._pending._newItems[_9a8]||this._pending._modifiedItems[_9a8]||this._pending._deletedItems[_9a8]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_9a9,_9aa,_9ab){},onNew:function(_9ac,_9ad){},onDelete:function(_9ae){},close:function(_9af){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}if(!dojo._hasResource["dojo.data.ObjectStore"]){dojo._hasResource["dojo.data.ObjectStore"]=true;dojo.provide("dojo.data.ObjectStore");dojo.declare("dojo.data.ObjectStore",null,{objectStore:null,constructor:function(_9b0){dojo.mixin(this,_9b0);},labelProperty:"label",getValue:function(item,_9b1,_9b2){return typeof item.get==="function"?item.get(_9b1):_9b1 in item?item[_9b1]:_9b2;},getValues:function(item,_9b3){var val=this.getValue(item,_9b3);return val instanceof Array?val:val===undefined?[]:[val];},getAttributes:function(item){var res=[];for(var i in item){if(item.hasOwnProperty(i)&&!(i.charAt(0)=="_"&&i.charAt(1)=="_")){res.push(i);}}return res;},hasAttribute:function(item,_9b4){return _9b4 in item;},containsValue:function(item,_9b5,_9b6){return dojo.indexOf(this.getValues(item,_9b5),_9b6)>-1;},isItem:function(item){return (typeof item=="object")&&item&&!(item instanceof Date);},isItemLoaded:function(item){return item&&typeof item.load!=="function";},loadItem:function(args){var item;if(typeof args.item.load==="function"){dojo.when(args.item.load(),function(_9b7){item=_9b7;var func=_9b7 instanceof Error?args.onError:args.onItem;if(func){func.call(args.scope,_9b7);}});}else{if(args.onItem){args.onItem.call(args.scope,args.item);}}return item;},close:function(_9b8){return _9b8&&_9b8.abort&&_9b8.abort();},fetch:function(args){args=args||{};var self=this;var _9b9=args.scope||self;var _9ba=args.query;if(typeof _9ba=="object"){_9ba=dojo.delegate(_9ba);for(var i in _9ba){var _9bb=_9ba[i];if(typeof _9bb=="string"){_9ba[i]=RegExp("^"+dojo.regexp.escapeString(_9bb,"*?").replace(/\*/g,".*").replace(/\?/g,".")+"$",args.queryOptions&&args.queryOptions.ignoreCase?"mi":"m");_9ba[i].toString=(function(_9bc){return function(){return _9bc;};})(_9bb);}}}var _9bd=this.objectStore.query(_9ba,args);dojo.when(_9bd.total,function(_9be){dojo.when(_9bd,function(_9bf){if(args.onBegin){args.onBegin.call(_9b9,_9be||_9bf.length,args);}if(args.onItem){for(var i=0;i<_9bf.length;i++){args.onItem.call(_9b9,_9bf[i],args);}}if(args.onComplete){args.onComplete.call(_9b9,args.onItem?null:_9bf,args);}return _9bf;},_9c0);},_9c0);function _9c0(_9c1){if(args.onError){args.onError.call(_9b9,_9c1,args);}};args.abort=function(){if(_9bd.cancel){_9bd.cancel();}};args.store=this;return args;},getFeatures:function(){return {"dojo.data.api.Read":!!this.objectStore.get,"dojo.data.api.Identity":true,"dojo.data.api.Write":!!this.objectStore.put,"dojo.data.api.Notification":true};},getLabel:function(item){if(this.isItem(item)){return this.getValue(item,this.labelProperty);}return undefined;},getLabelAttributes:function(item){return [this.labelProperty];},getIdentity:function(item){return item.getId?item.getId():item[this.objectStore.idProperty||"id"];},getIdentityAttributes:function(item){return [this.objectStore.idProperty];},fetchItemByIdentity:function(args){var item;dojo.when(this.objectStore.get(args.identity),function(_9c2){item=_9c2;args.onItem.call(args.scope,_9c2);},function(_9c3){args.onError.call(args.scope,_9c3);});return item;},newItem:function(data,_9c4){if(_9c4){var _9c5=this.getValue(_9c4.parent,_9c4.attribute,[]);_9c5=_9c5.concat([data]);data.__parent=_9c5;this.setValue(_9c4.parent,_9c4.attribute,_9c5);}this._dirtyObjects.push({object:data,save:true});this.onNew(data);return data;},deleteItem:function(item){this.changing(item,true);this.onDelete(item);},setValue:function(item,_9c6,_9c7){var old=item[_9c6];this.changing(item);item[_9c6]=_9c7;this.onSet(item,_9c6,old,_9c7);},setValues:function(item,_9c8,_9c9){if(!dojo.isArray(_9c9)){throw new Error("setValues expects to be passed an Array object as its value");}this.setValue(item,_9c8,_9c9);},unsetAttribute:function(item,_9ca){this.changing(item);var old=item[_9ca];delete item[_9ca];this.onSet(item,_9ca,old,undefined);},_dirtyObjects:[],changing:function(_9cb,_9cc){_9cb.__isDirty=true;for(var i=0;i<this._dirtyObjects.length;i++){var _9cd=this._dirtyObjects[i];if(_9cb==_9cd.object){if(_9cc){_9cd.object=false;if(!this._saveNotNeeded){_9cd.save=true;}}return;}}var old=_9cb instanceof Array?[]:{};for(i in _9cb){if(_9cb.hasOwnProperty(i)){old[i]=_9cb[i];}}this._dirtyObjects.push({object:!_9cc&&_9cb,old:old,save:!this._saveNotNeeded});},save:function(_9ce){_9ce=_9ce||{};var _9cf,_9d0=[];var _9d1={};var _9d2=[];var self;var _9d3=this._dirtyObjects;var left=_9d3.length;try{dojo.connect(_9ce,"onError",function(){if(_9ce.revertOnError!==false){var _9d4=_9d3;_9d3=_9d2;var _9d5=0;jr.revert();self._dirtyObjects=_9d4;}else{self._dirtyObjects=dirtyObject.concat(_9d2);}});if(this.objectStore.transaction){var _9d6=this.objectStore.transaction();}for(var i=0;i<_9d3.length;i++){var _9d7=_9d3[i];var _9d8=_9d7.object;var old=_9d7.old;delete _9d8.__isDirty;if(_9d8){_9cf=this.objectStore.put(_9d8,{overwrite:!!old});}else{_9cf=this.objectStore.remove(this.getIdentity(old));}_9d2.push(_9d7);_9d3.splice(i--,1);dojo.when(_9cf,function(_9d9){if(!(--left)){if(_9ce.onComplete){_9ce.onComplete.call(_9ce.scope,_9d0);}}},function(_9da){left=-1;_9ce.onError.call(_9ce.scope,_9da);});}if(_9d6){_9d6.commit();}}catch(e){_9ce.onError.call(_9ce.scope,value);}},revert:function(_9db){var _9dc=this._dirtyObjects;for(var i=_9dc.length;i>0;){i--;var _9dd=_9dc[i];var _9de=_9dd.object;var old=_9dd.old;if(_9de&&old){for(var j in old){if(old.hasOwnProperty(j)&&_9de[j]!==old[j]){this.onSet(_9de,j,_9de[j],old[j]);_9de[j]=old[j];}}for(j in _9de){if(!old.hasOwnProperty(j)){this.onSet(_9de,j,_9de[j]);delete _9de[j];}}}else{if(!old){this.onDelete(_9de);}else{this.onNew(old);}}delete (_9de||old).__isDirty;_9dc.splice(i,1);}},isDirty:function(item){if(!item){return !!this._dirtyObjects.length;}return item.__isDirty;},onSet:function(){},onNew:function(){},onDelete:function(){}});}if(!dojo._hasResource["dojo.store.util.QueryResults"]){dojo._hasResource["dojo.store.util.QueryResults"]=true;dojo.provide("dojo.store.util.QueryResults");dojo.getObject("store.util",true,dojo);dojo.store.util.QueryResults=function(_9df){if(!_9df){return _9df;}if(_9df.then){_9df=dojo.delegate(_9df);}function _9e0(_9e1){if(!_9df[_9e1]){_9df[_9e1]=function(){var args=arguments;return dojo.when(_9df,function(_9e2){Array.prototype.unshift.call(args,_9e2);return dojo.store.util.QueryResults(dojo[_9e1].apply(dojo,args));});};}};_9e0("forEach");_9e0("filter");_9e0("map");if(!_9df.total){_9df.total=dojo.when(_9df,function(_9e3){return _9e3.length;});}return _9df;};}if(!dojo._hasResource["dojo.store.JsonRest"]){dojo._hasResource["dojo.store.JsonRest"]=true;dojo.provide("dojo.store.JsonRest");dojo.declare("dojo.store.JsonRest",null,{constructor:function(_9e4){dojo.mixin(this,_9e4);},target:"",idProperty:"id",get:function(id,_9e5){var _9e6=_9e5||{};_9e6.Accept="application/javascript, application/json";return dojo.xhrGet({url:this.target+id,handleAs:"json",headers:_9e6});},getIdentity:function(_9e7){return _9e7[this.idProperty];},put:function(_9e8,_9e9){_9e9=_9e9||{};var id=("id" in _9e9)?_9e9.id:this.getIdentity(_9e8);var _9ea=typeof id!="undefined";return dojo.xhr(_9ea&&!_9e9.incremental?"PUT":"POST",{url:_9ea?this.target+id:this.target,postData:dojo.toJson(_9e8),handleAs:"json",headers:{"Content-Type":"application/json","If-Match":_9e9.overwrite===true?"*":null,"If-None-Match":_9e9.overwrite===false?"*":null}});},add:function(_9eb,_9ec){_9ec=_9ec||{};_9ec.overwrite=false;return this.put(_9eb,_9ec);},remove:function(id){return dojo.xhrDelete({url:this.target+id});},query:function(_9ed,_9ee){var _9ef={Accept:"application/javascript, application/json"};_9ee=_9ee||{};if(_9ee.start>=0||_9ee.count>=0){_9ef.Range="items="+(_9ee.start||"0")+"-"+(("count" in _9ee&&_9ee.count!=Infinity)?(_9ee.count+(_9ee.start||0)-1):"");}if(dojo.isObject(_9ed)){_9ed=dojo.objectToQuery(_9ed);_9ed=_9ed?"?"+_9ed:"";}if(_9ee&&_9ee.sort){_9ed+=(_9ed?"&":"?")+"sort(";for(var i=0;i<_9ee.sort.length;i++){var sort=_9ee.sort[i];_9ed+=(i>0?",":"")+(sort.descending?"-":"+")+encodeURIComponent(sort.attribute);}_9ed+=")";}var _9f0=dojo.xhrGet({url:this.target+(_9ed||""),handleAs:"json",headers:_9ef});_9f0.total=_9f0.then(function(){var _9f1=_9f0.ioArgs.xhr.getResponseHeader("Content-Range");return _9f1&&(_9f1=_9f1.match(/\/(.*)/))&&+_9f1[1];});return dojo.store.util.QueryResults(_9f0);}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated,dijit._CssStateMixin],{title:"",open:true,toggleable:true,tabIndex:"0",duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:dojo.cache("dijit","templates/TitlePane.html","<div>\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" role=\"presentation\"\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t\t</div>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" role=\"presentation\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" role=\"presentation\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" role=\"region\" id=\"${id}_pane\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n"),attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _9f2=this.hideNode,_9f3=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_9f2.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_9f2.style.display="none";}});},_setOpenAttr:function(open,_9f4){dojo.forEach([this._wipeIn,this._wipeOut],function(_9f5){if(_9f5&&_9f5.status()=="playing"){_9f5.stop();}});if(_9f4){var anim=this[open?"_wipeIn":"_wipeOut"];anim.play();}else{this.hideNode.style.display=this.wipeNode.style.display=open?"":"none";}if(this._started){if(open){this._onShow();}else{this.onHide();}}this.arrowNodeInner.innerHTML=open?"-":"+";dijit.setWaiState(this.containerNode,"hidden",open?"false":"true");dijit.setWaiState(this.focusNode,"pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_9f6){dijit.setWaiRole(this.focusNode,_9f6?"button":"heading");if(_9f6){dijit.setWaiState(this.focusNode,"controls",this.id+"_pane");dojo.attr(this.focusNode,"tabIndex",this.tabIndex);}else{dojo.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_9f6);this._setCss();},_setContentAttr:function(_9f7){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){this._setOpenAttr(!this.open,true);},_setCss:function(){var node=this.titleBarNode||this.focusNode;var _9f8=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");dojo.replaceClass(node,this._titleBarClass,_9f8||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}dojo.stopEvent(e);}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_9f9){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_9f9);}});}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_9fa){var _9fb=_9fa.region;if(_9fb){this.inherited(arguments);dojo.addClass(_9fa.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_9fb=="leading"){_9fb=ltr?"left":"right";}if(_9fb=="trailing"){_9fb=ltr?"right":"left";}if(_9fb!="center"&&(_9fa.splitter||this.gutters)&&!_9fa._splitterWidget){var _9fc=dojo.getObject(_9fa.splitter?this._splitterClass:"dijit.layout._Gutter");var _9fd=new _9fc({id:_9fa.id+"_splitter",container:this,child:_9fa,region:_9fb,live:this.liveSplitters});_9fd.isSplitter=true;_9fa._splitterWidget=_9fd;dojo.place(_9fd.domNode,_9fa.domNode,"after");_9fd.startup();}_9fa.region=_9fb;}},layout:function(){this._layoutChildren();},addChild:function(_9fe,_9ff){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_a00){var _a01=_a00.region;var _a02=_a00._splitterWidget;if(_a02){_a02.destroy();delete _a00._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_a00.domNode,this.baseClass+"Pane");dojo.style(_a00.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_a00.domNode,_a01=="top"||_a01=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_a03){return !_a03.isSplitter;});},getSplitter:function(_a04){return dojo.filter(this.getChildren(),function(_a05){return _a05.region==_a04;})[0]._splitterWidget;},resize:function(_a06,_a07){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_a08,_a09){if(!this._borderBox||!this._borderBox.h){return;}var _a0a=dojo.map(this.getChildren(),function(_a0b,idx){return {pane:_a0b,weight:[_a0b.region=="center"?Infinity:0,_a0b.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_a0b.region)?1:-1),idx]};},this);_a0a.sort(function(a,b){var aw=a.weight,bw=b.weight;for(var i=0;i<aw.length;i++){if(aw[i]!=bw[i]){return aw[i]-bw[i];}}return 0;});var _a0c=[];dojo.forEach(_a0a,function(_a0d){var pane=_a0d.pane;_a0c.push(pane);if(pane._splitterWidget){_a0c.push(pane._splitterWidget);}});var dim={l:this.pe.l,t:this.pe.t,w:this._borderBox.w-this.pe.w,h:this._borderBox.h-this.pe.h};dijit.layout.layoutChildren(this.domNode,dim,_a0c,_a08,_a09);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_a0e){var _a0f=_a0e._splitterWidget;if(_a0f){_a0f.destroy();}delete _a0e._splitterWidget;});this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",layoutPriority:0,splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse\" tabIndex=\"0\" role=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region;},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var _a10=dojo.cookie(this._cookieName);if(_a10){this.child.domNode.style[this.horizontal?"height":"width"]=_a10;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_a11=dojo.marginBox(this.child.domNode)[dim],_a12=dojo.filter(this.container.getChildren(),function(_a13){return _a13.region=="center";})[0],_a14=dojo.marginBox(_a12.domNode)[dim];return Math.min(this.child.maxSize,_a11+_a14);},_startDrag:function(e){if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}dojo.addClass(this.cover,"dijitSplitterCoverActive");if(this.fake){dojo.destroy(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake){dojo.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");}var _a15=this._factor,_a16=this.horizontal,axis=_a16?"pageY":"pageX",_a17=e[axis],_a18=this.domNode.style,dim=_a16?"h":"w",_a19=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_a1a=this.region,_a1b=_a1a=="top"||_a1a=="bottom"?"top":"left",_a1c=parseInt(_a18[_a1b],10),_a1d=this._resize,_a1e=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_a1f){var _a20=e[axis]-_a17,_a21=_a15*_a20+_a19,_a22=Math.max(Math.min(_a21,max),min);if(_a1d||_a1f){_a1e(_a22);}_a18[_a1b]=_a20+_a1c+_a15*(_a22-_a21)+"px";}),dojo.connect(de,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_onMouse:function(e){var o=(e.type=="mouseover"||e.type=="mouseenter");dojo.toggleClass(this.domNode,"dijitSplitterHover",o);dojo.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",o);},_stopDrag:function(e){try{if(this.cover){dojo.removeClass(this.cover,"dijitSplitterCoverActive");}if(this.fake){dojo.destroy(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365});}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){this._resize=true;var _a23=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _a23?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _a23?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _a24=dojo._getMarginSize(this.child.domNode)[_a23?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_a24,this._computeMaxSize()),this.child.minSize));dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" role=\"presentation\"></div>",postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}if(!dojo._hasResource["dojo.store.util.SimpleQueryEngine"]){dojo._hasResource["dojo.store.util.SimpleQueryEngine"]=true;dojo.provide("dojo.store.util.SimpleQueryEngine");dojo.getObject("store.util",true,dojo);dojo.store.util.SimpleQueryEngine=function(_a25,_a26){switch(typeof _a25){default:throw new Error("Can not query with a "+typeof _a25);case "object":case "undefined":var _a27=_a25;_a25=function(_a28){for(var key in _a27){var _a29=_a27[key];if(_a29&&_a29.test){if(!_a29.test(_a28[key])){return false;}}else{if(_a29!=_a28[key]){return false;}}}return true;};break;case "string":if(!this[_a25]){throw new Error("No filter function "+_a25+" was found in store");}_a25=this[_a25];case "function":}function _a2a(_a2b){var _a2c=dojo.filter(_a2b,_a25);if(_a26&&_a26.sort){_a2c.sort(function(a,b){for(var sort,i=0;sort=_a26.sort[i];i++){var _a2d=a[sort.attribute];var _a2e=b[sort.attribute];if(_a2d!=_a2e){return !!sort.descending==_a2d>_a2e?-1:1;}}return 0;});}if(_a26&&(_a26.start||_a26.count)){var _a2f=_a2c.length;_a2c=_a2c.slice(_a26.start||0,(_a26.start||0)+(_a26.count||Infinity));_a2c.total=_a2f;}return _a2c;};_a2a.matches=_a25;return _a2a;};}if(!dojo._hasResource["dojo.store.Memory"]){dojo._hasResource["dojo.store.Memory"]=true;dojo.provide("dojo.store.Memory");dojo.declare("dojo.store.Memory",null,{constructor:function(_a30){this.index={};dojo.mixin(this,_a30);this.setData(this.data||[]);},data:null,idProperty:"id",index:null,queryEngine:dojo.store.util.SimpleQueryEngine,get:function(id){return this.index[id];},getIdentity:function(_a31){return _a31[this.idProperty];},put:function(_a32,_a33){var id=_a33&&_a33.id||_a32[this.idProperty]||Math.random();this.index[id]=_a32;var data=this.data,_a34=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_a34]==id){data[i]=_a32;return id;}}this.data.push(_a32);return id;},add:function(_a35,_a36){if(this.index[_a36&&_a36.id||_a35[this.idProperty]]){throw new Error("Object already exists");}return this.put(_a35,_a36);},remove:function(id){delete this.index[id];var data=this.data,_a37=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_a37]==id){data.splice(i,1);return;}}},query:function(_a38,_a39){return dojo.store.util.QueryResults(this.queryEngine(_a38,_a39)(this.data));},setData:function(data){if(data.items){this.idProperty=data.identifier;data=this.data=data.items;}else{this.data=data;}for(var i=0,l=data.length;i<l;i++){var _a3a=data[i];this.index[_a3a[this.idProperty]]=_a3a;}}});}dojo.i18n._preloadLocalizations("dojo.nls.vclViewRequests",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
