/*
	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(){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(_148,_149){this.create(_148,_149);},create:function(_14a,_14b){this.srcNodeRef=dojo.byId(_14b);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_14a){this.params=_14a;dojo._mixin(this,_14a);}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 _14c=this.srcNodeRef;if(_14c&&_14c.parentNode&&this.domNode!==_14c){_14c.parentNode.replaceChild(this.domNode,_14c);}}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 _14d=function(attr,_14e){if((_14e.params&&attr in _14e.params)||_14e[attr]){_14e.set(attr,_14e[attr]);}};for(var attr in this.attributeMap){_14d(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_14d(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_14f,_150=ctor.prototype;for(var _151 in _150){if(dojo.isFunction(_150[_151])&&(_14f=_151.match(/^_set([a-zA-Z]*)Attr$/))&&_14f[1]){r.push(_14f[1].charAt(0).toLowerCase()+_14f[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _152=this.baseClass.split(" ");if(!this.isLeftToRight()){_152=_152.concat(dojo.map(_152,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_152);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_153){this._beingDestroyed=true;this.destroyDescendants(_153);this.destroy(_153);},destroy:function(_154){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_155){dfe(_155,d.disconnect);});dfe(this._subscribes,function(_156){dun(_156);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_154);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_157){if(this.bgIframe){this.bgIframe.destroy(_157);delete this.bgIframe;}if(this.domNode){if(_157){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_157){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_158){dojo.forEach(this.getChildren(),function(_159){if(_159.destroyRecursive){_159.destroyRecursive(_158);}});},uninitialize:function(){return false;},_setClassAttr:function(_15a){var _15b=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_15b,_15a,this["class"]);this._set("class",_15a);},_setStyleAttr:function(_15c){var _15d=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_15c)){dojo.style(_15d,_15c);}else{if(_15d.style.cssText){_15d.style.cssText+="; "+_15c;}else{_15d.style.cssText=_15c;}}this._set("style",_15c);},_attrToDom:function(attr,_15e){var _15f=this.attributeMap[attr];dojo.forEach(dojo.isArray(_15f)?_15f:[_15f],function(_160){var _161=this[_160.node||_160||"domNode"];var type=_160.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_15e)){_15e=dojo.hitch(this,_15e);}var _162=_160.attribute?_160.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_161,_162,_15e);break;case "innerText":_161.innerHTML="";_161.appendChild(dojo.doc.createTextNode(_15e));break;case "innerHTML":_161.innerHTML=_15e;break;case "class":dojo.replaceClass(_161,_15e,this[attr]);break;}},this);},get:function(name){var _163=this._getAttrNames(name);return this[_163.g]?this[_163.g]():this[name];},set:function(name,_164){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _165=this._getAttrNames(name);if(this[_165.s]){var _166=this[_165.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_164);}this._set(name,_164);}return _166||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,_167){var _168=this[name];this[name]=_167;if(this._watchCallbacks&&this._created&&_167!==_168){this._watchCallbacks(name,_168,_167);}},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,_169,_16a){var _16b=[dojo._connect(obj,_169,this,_16a)];this._connects.push(_16b);return _16b;},disconnect:function(_16c){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_16c){dojo.forEach(_16c,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_16d,_16e){var _16f=dojo.subscribe(_16d,this,_16e);this._subscribes.push(_16f);return _16f;},unsubscribe:function(_170){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_170){dojo.unsubscribe(_170);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_171,_172){if(_171.declaredClass&&_171.addChild){_171.addChild(this,_172);}else{dojo.place(this.domNode,_171,_172);}return this;},defer:function(fcn,_173){var _174=setTimeout(dojo.hitch(this,function(){_174=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_173||0);return {remove:function(){if(_174){clearTimeout(_174);_174=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 _175=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _176=dojo._docScroll();return {w:_175.clientWidth,h:_175.clientHeight,l:_176.x,t:_176.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 _177=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"}},_177,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_177.removeChild(div);body.removeChild(_177);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _178=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_179=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_178,"last");dojo.window.position_fixed_support=dojo.position(_179).x!=dojo.position(_178).x;_178.removeChild(_179);body.removeChild(_178);}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 _17a=doc.compatMode=="BackCompat",_17b=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_17c=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_17d=(isWK||_17a)?body:html,_17e=pos||dojo.position(node),el=node.parentNode,_17f=function(el){return (isIE<=6||(isIE==7&&_17a))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_17f(node)){return;}while(el){if(el==body){el=_17d;}var _180=dojo.position(el),_181=_17f(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_17d){_180.w=_17b;_180.h=_17c;if(_17d==html&&isIE&&rtl){_180.x+=_17d.offsetWidth-_180.w;}if(_180.x<0||!isIE||isIE>=9){_180.x=0;}if(_180.y<0||!isIE||isIE>=9){_180.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_180.w-=pb.w;_180.h-=pb.h;_180.x+=pb.l;_180.y+=pb.t;var _182=el.clientWidth,_183=_180.w-_182;if(_182>0&&_183>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_180.x+=_183;}_180.w=_182;}_182=el.clientHeight;_183=_180.h-_182;if(_182>0&&_183>0){_180.h=_182;}}if(_181){if(_180.y<0){_180.h+=_180.y;_180.y=0;}if(_180.x<0){_180.w+=_180.x;_180.x=0;}if(_180.y+_180.h>_17c){_180.h=_17c-_180.y;}if(_180.x+_180.w>_17b){_180.w=_17b-_180.x;}}var l=_17e.x-_180.x,t=_17e.y-_180.y,r=l+_17e.w-_180.w,bot=t+_17e.h-_180.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_17d||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_17a)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_17e.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_17d||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_17e.y-=s;}el=(el!=_17d)&&!_181&&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(_184){var _185=dojo.doc,mark=_184.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(_185.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_185.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_185.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_186){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_186||dojo.global,dijit.getBookmark),openedForWindow:_186};},focus:function(_187){if(!_187){return;}var node="node" in _187?_187.node:_187,_188=_187.bookmark,_189=_187.openedForWindow,_18a=_188?_188.isCollapsed:false;if(node){var _18b=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_18b&&_18b.focus){try{_18b.focus();}catch(e){}}dijit._onFocusNode(node);}if(_188&&dojo.withGlobal(_189||dojo.global,dijit.isCollapsed)&&!_18a){if(_189){_189.focus();}try{dojo.withGlobal(_189||dojo.global,dijit.moveToBookmark,null,[_188]);}catch(e2){}}},_activeStack:[],registerIframe:function(_18c){return dijit.registerWin(_18c.contentWindow,_18c);},unregisterIframe:function(_18d){dijit.unregisterWin(_18d);},registerWin:function(_18e,_18f){var _190=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_18f||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_18e.document.documentElement:_18e.document;if(doc){if(dojo.isIE){_18e.document.body.attachEvent("onmousedown",_190);var _191=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_18f||evt.srcElement);}else{dijit._onTouchNode(_18f||evt.srcElement);}};doc.attachEvent("onactivate",_191);var _192=function(evt){dijit._onBlurNode(_18f||evt.srcElement);};doc.attachEvent("ondeactivate",_192);return function(){_18e.document.detachEvent("onmousedown",_190);doc.detachEvent("onactivate",_191);doc.detachEvent("ondeactivate",_192);doc=null;};}else{doc.body.addEventListener("mousedown",_190,true);var _193=function(evt){dijit._onFocusNode(_18f||evt.target);};doc.addEventListener("focus",_193,true);var _194=function(evt){dijit._onBlurNode(_18f||evt.target);};doc.addEventListener("blur",_194,true);return function(){doc.body.removeEventListener("mousedown",_190,true);doc.removeEventListener("focus",_193,true);doc.removeEventListener("blur",_194,true);doc=null;};}}},unregisterWin:function(_195){_195&&_195();},_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 _196=[];try{while(node){var _197=dojo.attr(node,"dijitPopupParent");if(_197){node=dijit.byId(_197).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"),_198=id&&dijit.byId(id);if(_198&&!(by=="mouse"&&_198.get("disabled"))){_196.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_196,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(_199,by){var _19a=dijit._activeStack;dijit._activeStack=_199;for(var _19b=0;_19b<Math.min(_19a.length,_199.length);_19b++){if(_19a[_19b]!=_199[_19b]){break;}}var _19c;for(var i=_19a.length-1;i>=_19b;i--){_19c=dijit.byId(_19a[i]);if(_19c){_19c._focused=false;_19c.set("focused",false);_19c._hasBeenBlurred=true;if(_19c._onBlur){_19c._onBlur(by);}dojo.publish("widgetBlur",[_19c,by]);}}for(i=_19b;i<_199.length;i++){_19c=dijit.byId(_199[i]);if(_19c){_19c._focused=true;_19c.set("focused",true);if(_19c._onFocus){_19c._onFocus(by);}dojo.publish("widgetFocus",[_19c,by]);}}}});dojo.addOnLoad(function(){var _19d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_19d);_19d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_19e){this.pairs=[];this.returnWrappers=_19e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_19f,wrap,_1a0,_1a1){this.pairs[((_1a1)?"unshift":"push")]([name,_19f,wrap,_1a0]);},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,_1a2,_1a3){var _1a4=dojo.map(_1a2,function(_1a5){var c={corner:_1a5,pos:{x:pos.x,y:pos.y}};if(_1a3){c.pos.x+=_1a5.charAt(1)=="L"?_1a3.x:-_1a3.x;c.pos.y+=_1a5.charAt(0)=="T"?_1a3.y:-_1a3.y;}return c;});return dijit._place(node,_1a4);};dijit._place=function(node,_1a6,_1a7,_1a8){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1a6,function(_1a9){var _1aa=_1a9.corner;var pos=_1a9.pos;var _1ab=0;var _1ac={w:_1aa.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_1aa.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_1a7){var res=_1a7(node,_1a9.aroundCorner,_1aa,_1ac,_1a8);_1ab=typeof res=="undefined"?0:res;}var _1ad=node.style;var _1ae=_1ad.display;var _1af=_1ad.visibility;_1ad.visibility="hidden";_1ad.display="";var mb=dojo.marginBox(node);_1ad.display=_1ae;_1ad.visibility=_1af;var _1b0=Math.max(view.l,_1aa.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_1b1=Math.max(view.t,_1aa.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_1aa.charAt(1)=="L"?(_1b0+mb.w):pos.x),endY=Math.min(view.t+view.h,_1aa.charAt(0)=="T"?(_1b1+mb.h):pos.y),_1b2=endX-_1b0,_1b3=endY-_1b1;_1ab+=(mb.w-_1b2)+(mb.h-_1b3);if(best==null||_1ab<best.overflow){best={corner:_1aa,aroundCorner:_1a9.aroundCorner,x:_1b0,y:_1b1,w:_1b2,h:_1b3,overflow:_1ab,spaceAvailable:_1ac};}return !_1ab;});if(best.overflow&&_1a7){_1a7(node,best.aroundCorner,best.corner,best.spaceAvailable,_1a8);}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,_1b4,_1b5,_1b6){_1b4=dojo.byId(_1b4);var _1b7=dojo.position(_1b4,true);return dijit._placeOnScreenAroundRect(node,_1b7.x,_1b7.y,_1b7.w,_1b7.h,_1b5,_1b6);};dijit.placeOnScreenAroundRectangle=function(node,_1b8,_1b9,_1ba){return dijit._placeOnScreenAroundRect(node,_1b8.x,_1b8.y,_1b8.width,_1b8.height,_1b9,_1ba);};dijit._placeOnScreenAroundRect=function(node,x,y,_1bb,_1bc,_1bd,_1be){var _1bf=[];for(var _1c0 in _1bd){_1bf.push({aroundCorner:_1c0,corner:_1bd[_1c0],pos:{x:x+(_1c0.charAt(1)=="L"?0:_1bb),y:y+(_1c0.charAt(0)=="T"?0:_1bc)}});}return dijit._place(node,_1bf,_1be,{w:_1bb,h:_1bc});};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,_1c1,_1c2,_1c3){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_1c4,_1c5){var _1c6={};dojo.forEach(_1c4,function(pos){switch(pos){case "after":_1c6[_1c5?"BR":"BL"]=_1c5?"BL":"BR";break;case "before":_1c6[_1c5?"BL":"BR"]=_1c5?"BR":"BL";break;case "below-alt":_1c5=!_1c5;case "below":_1c6[_1c5?"BL":"BR"]=_1c5?"TL":"TR";_1c6[_1c5?"BR":"BL"]=_1c5?"TR":"TL";break;case "above-alt":_1c5=!_1c5;case "above":default:_1c6[_1c5?"TL":"TR"]=_1c5?"BL":"BR";_1c6[_1c5?"TR":"TL"]=_1c5?"BR":"BL";break;}});return _1c6;};}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(_1c7){var node=_1c7.domNode||_1c7,_1c8=_1c7.declaredClass?_1c7._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_1c8){_1c8=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_1c8.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_1c7.declaredClass){_1c7._popupWrapper=_1c8;dojo.connect(_1c7,"destroy",function(){dojo.destroy(_1c8);delete _1c7._popupWrapper;});}}return _1c8;},moveOffScreen:function(_1c9){var _1ca=this._createWrapper(_1c9);dojo.style(_1ca,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_1cb){var _1cc=this._createWrapper(_1cb);dojo.style(_1cc,"display","none");},getTopPopup:function(){var _1cd=this._stack;for(var pi=_1cd.length-1;pi>0&&_1cd[pi].parent===_1cd[pi-1].widget;pi--){}return _1cd[pi];},open:function(args){var _1ce=this._stack,_1cf=args.popup,_1d0=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"}),_1d1=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_1ce.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_1ce[_1ce.length-1].widget.domNode))){dijit.popup.close(_1ce[_1ce.length-1].widget);}var _1d2=this._createWrapper(_1cf);dojo.attr(_1d2,{id:id,style:{zIndex:this._beginZIndex+_1ce.length},"class":"dijitPopup "+(_1cf.baseClass||_1cf["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_1cf.bgIframe){_1cf.bgIframe=new dijit.BackgroundIframe(_1d2);}}var best=_1d1?dijit.placeOnScreenAroundElement(_1d2,_1d1,_1d0,_1cf.orient?dojo.hitch(_1cf,"orient"):null):dijit.placeOnScreen(_1d2,args,_1d0=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_1d2.style.display="";_1d2.style.visibility="visible";_1cf.domNode.style.visibility="visible";var _1d3=[];_1d3.push(dojo.connect(_1d2,"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 _1d4=this.getTopPopup();if(_1d4&&_1d4.onCancel){_1d4.onCancel();}}}}));if(_1cf.onCancel){_1d3.push(dojo.connect(_1cf,"onCancel",args.onCancel));}_1d3.push(dojo.connect(_1cf,_1cf.onExecute?"onExecute":"onChange",this,function(){var _1d5=this.getTopPopup();if(_1d5&&_1d5.onExecute){_1d5.onExecute();}}));_1ce.push({widget:_1cf,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1d3});if(_1cf.onOpen){_1cf.onOpen(best);}return best;},close:function(_1d6){var _1d7=this._stack;while((_1d6&&dojo.some(_1d7,function(elem){return elem.widget==_1d6;}))||(!_1d6&&_1d7.length)){var top=_1d7.pop(),_1d8=top.widget,_1d9=top.onClose;if(_1d8.onClose){_1d8.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_1d8&&_1d8.domNode){this.hide(_1d8);}if(_1d9){_1d9();}}}};dijit._frames=new function(){var _1da=[];this.pop=function(){var _1db;if(_1da.length){_1db=_1da.pop();_1db.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\");'>";_1db=dojo.doc.createElement(html);}else{_1db=dojo.create("iframe");_1db.src="javascript:\"\"";_1db.className="dijitBackgroundIframe";dojo.style(_1db,"opacity",0.1);}_1db.tabIndex=-1;dijit.setWaiRole(_1db,"presentation");}return _1db;};this.push=function(_1dc){_1dc.style.display="none";_1da.push(_1dc);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _1dd=(this.iframe=dijit._frames.pop());node.appendChild(_1dd);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_1dd,{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,_1de=d.isOpera,maj=Math.floor,ff=d.isFF,_1df=d.boxModel.replace(/-/,""),_1e0={dj_quirks:d.isQuirks,dj_opera:_1de,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_1e0["dj_ie"]=true;_1e0["dj_ie"+maj(ie)]=true;_1e0["dj_iequirks"]=d.isQuirks;}if(ff){_1e0["dj_ff"+maj(ff)]=true;}_1e0["dj_"+_1df]=true;var _1e1="";for(var clz in _1e0){if(_1e0[clz]){_1e1+=clz+" ";}}html.className=d.trim(html.className+" "+_1e1);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _1e2="dj_rtl dijitRtl "+_1e1.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_1e2);}});})();}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,_1e3,node,_1e4,obj,_1e5,_1e6,_1e7){if(obj!=this._obj){this.stop();this._initialDelay=_1e6||500;this._subsequentDelay=_1e5||0.9;this._minDelay=_1e7||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1e3,_1e4);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,_1e8,_1e9,_1ea,_1eb,_1ec,_1ed){if(_1e8.keyCode){_1e8.charOrCode=_1e8.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1e8.charCode){_1e8.charOrCode=String.fromCharCode(_1e8.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==_1e8.charOrCode&&(_1e8.ctrlKey===undefined||_1e8.ctrlKey==evt.ctrlKey)&&(_1e8.altKey===undefined||_1e8.altKey==evt.altKey)&&(_1e8.metaKey===undefined||_1e8.metaKey==(evt.metaKey||false))&&(_1e8.shiftKey===undefined||_1e8.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1e9,node,_1ea,_1e8,_1eb,_1ec,_1ed);}else{if(dijit.typematic._obj==_1e8){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1e8){dijit.typematic.stop();}})];},addMouseListener:function(node,_1ee,_1ef,_1f0,_1f1,_1f2){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1ee,node,_1ef,node,_1f0,_1f1,_1f2);}),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,_1ee,node,_1ef,node,_1f0,_1f1,_1f2);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1f3,_1f4,_1f5,_1f6,_1f7,_1f8,_1f9,_1fa){return this.addKeyListener(_1f4,_1f5,_1f6,_1f7,_1f8,_1f9,_1fa).concat(this.addMouseListener(_1f3,_1f6,_1f7,_1f8,_1f9,_1fa));}};}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 _1fb=cs.backgroundImage;var _1fc=(cs.borderTopColor==cs.borderRightColor)||(_1fb!=null&&(_1fb=="none"||_1fb=="url(invalid-url:)"));dojo[_1fc?"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 _1fd=this.getWaiRole(elem);return role?(_1fd.indexOf(role)>-1):(_1fd.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 _1fe=dojo.attr(elem,"role");if(!_1fe){return;}if(role){var t=dojo.trim((" "+_1fe+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1ff){return elem.hasAttribute?elem.hasAttribute("aria-"+_1ff):!!elem.getAttribute("aria-"+_1ff);},getWaiState:function(elem,_200){return elem.getAttribute("aria-"+_200)||"";},setWaiState:function(elem,_201,_202){elem.setAttribute("aria-"+_201,_202);},removeWaiState:function(elem,_203){elem.removeAttribute("aria-"+_203);}});}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(_204,_205){if(_204&&dojo.isFunction(_204._onConnect)){_204._onConnect(_205);}});dijit._connectOnUseEventHandler=function(_206){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _207=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_207);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_207);});})();}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(_208,_209){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(_20a){if(_20a in this._deferredConnects){var _20b=this[this._deferredConnects[_20a]||"domNode"];this.connect(_20b,_20a.toLowerCase(),_20a);delete this._deferredConnects[_20a];}},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,_20c){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_20c);},attr:function(name,_20d){if(dojo.config.isDebug){var _20e=arguments.callee._ach||(arguments.callee._ach={}),_20f=(arguments.callee.caller||"unknown caller").toString();if(!_20e[_20f]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_20f,"","2.0");_20e[_20f]=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,_210,_211){var d=dojo,dc=d._connect,_212=this.inherited(arguments,[obj,_210=="ondijitclick"?"onclick":_210,_211]);if(_210=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_211);_212.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 _212;},_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(_213,url,_214){if(typeof _213=="string"){var _215=dojo.moduleUrl(_213,url);}else{_215=_213;_214=url;}var key=_215.toString();var val=_214;if(_214!=undefined&&!dojo.isString(_214)){val=("value" in _214?_214.value:undefined);}var _216=_214&&_214.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_216?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_216?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 _217=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_217){val=_217[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 _218=this.declaredClass,_219=this;return dojo.string.substitute(tmpl,this,function(_21a,key){if(key.charAt(0)=="!"){_21a=dojo.getObject(key.substr(1),false,_219);}if(typeof _21a=="undefined"){throw new Error(_218+" template:"+key);}if(_21a==null){return "";}return key.charAt(0)=="!"?_21a:_21a.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _21b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_21b)){node=dojo._toDom(this._stringRepl(_21b));if(node.nodeType!=1){throw new Error("Invalid template: "+_21b);}}else{node=_21b.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(_21c){var dest=this.containerNode;if(_21c&&dest){while(_21c.hasChildNodes()){dest.appendChild(_21c.firstChild);}}},_attachTemplateNodes:function(_21d,_21e){_21e=_21e||function(n,p){return n.getAttribute(p);};var _21f=dojo.isArray(_21d)?_21d:(_21d.all||_21d.getElementsByTagName("*"));var x=dojo.isArray(_21d)?0:-1;for(;x<_21f.length;x++){var _220=(x==-1)?_21d:_21f[x];if(this.widgetsInTemplate&&(_21e(_220,"dojoType")||_21e(_220,"data-dojo-type"))){continue;}var _221=_21e(_220,"dojoAttachPoint")||_21e(_220,"data-dojo-attach-point");if(_221){var _222,_223=_221.split(/\s*,\s*/);while((_222=_223.shift())){if(dojo.isArray(this[_222])){this[_222].push(_220);}else{this[_222]=_220;}this._attachPoints.push(_222);}}var _224=_21e(_220,"dojoAttachEvent")||_21e(_220,"data-dojo-attach-event");if(_224){var _225,_226=_224.split(/\s*,\s*/);var trim=dojo.trim;while((_225=_226.shift())){if(_225){var _227=null;if(_225.indexOf(":")!=-1){var _228=_225.split(":");_225=trim(_228[0]);_227=trim(_228[1]);}else{_225=trim(_225);}if(!_227){_227=_225;}this._attachEvents.push(this.connect(_220,_225,_227));}}}var role=_21e(_220,"waiRole");if(role){dijit.setWaiRole(_220,role);}var _229=_21e(_220,"waiState");if(_229){dojo.forEach(_229.split(/\s*,\s*/),function(_22a){if(_22a.indexOf("-")!=-1){var pair=_22a.split("-");dijit.setWaiState(_220,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(_22b){delete this[_22b];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_22c,_22d,_22e){var _22f=dijit._Templated._templateCache;var key=_22d||_22c;var _230=_22f[key];if(_230){try{if(!_230.ownerDocument||_230.ownerDocument==dojo.doc){return _230;}}catch(e){}dojo.destroy(_230);}if(!_22d){_22d=dojo.cache(_22c,{sanitize:true});}_22d=dojo.string.trim(_22d);if(_22e||_22d.match(/\$\{([^\}]+)\}/g)){return (_22f[key]=_22d);}else{var node=dojo._toDom(_22d);if(node.nodeType!=1){throw new Error("Invalid template: "+_22d);}return (_22f[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _231=dijit._Templated._templateCache;for(var key in _231){var _232=_231[key];if(typeof _232=="object"){dojo.destroy(_232);}delete _231[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(_233){if(!this.disabled){switch(_233.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 _234=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_234);});break;}}},_setStateClass:function(){var _235=this.baseClass.split(" ");function _236(_237){_235=_235.concat(dojo.map(_235,function(c){return c+_237;}),"dijit"+_237);};if(!this.isLeftToRight()){_236("Rtl");}if(this.checked){_236("Checked");}if(this.state){_236(this.state);}if(this.selected){_236("Selected");}if(this.disabled){_236("Disabled");}else{if(this.readOnly){_236("ReadOnly");}else{if(this.active){_236("Active");}else{if(this.hovering){_236("Hover");}}}}if(this._focused){_236("Focused");}var tn=this.stateNode||this.domNode,_238={};dojo.forEach(tn.className.split(" "),function(c){_238[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _238[c];});}dojo.forEach(_235,function(c){_238[c]=true;});var _239=[];for(var c in _238){_239.push(c);}tn.className=_239.join(" ");this._stateClasses=_235;},_trackMouseState:function(node,_23a){var _23b=false,_23c=false,_23d=false;var self=this,cn=dojo.hitch(this,"connect",node);function _23e(){var _23f=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_23a+"Hover",_23b&&!_23c&&!_23f);dojo.toggleClass(node,_23a+"Active",_23c&&!_23f);dojo.toggleClass(node,_23a+"Focused",_23d&&!_23f);};cn("onmouseenter",function(){_23b=true;_23e();});cn("onmouseleave",function(){_23b=false;_23c=false;_23e();});cn("onmousedown",function(){_23c=true;_23e();});cn("onmouseup",function(){_23c=false;_23e();});cn("onfocus",function(){_23d=true;_23e();});cn("onblur",function(){_23d=false;_23e();});this.watch("disabled",_23e);this.watch("readOnly",_23e);}});}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(_240){this._set("disabled",_240);dojo.attr(this.focusNode,"disabled",_240);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_240);}dijit.setWaiState(this.focusNode,"disabled",_240);if(_240){this._set("hovering",false);this._set("active",false);var _241="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_241)?_241:[_241],function(_242){var node=this[_242];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(_243){dojo.deprecated("setDisabled("+_243+") is deprecated. Use set('disabled',"+_243+") instead.","","2.0");this.set("disabled",_243);},_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(_244){},_onChangeActive:false,_handleOnChange:function(_245,_246){if(this._lastValueReported==undefined&&(_246===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_245;}this._pendingOnChange=this._pendingOnChange||(typeof _245!=typeof this._lastValueReported)||(this.compare(_245,this._lastValueReported)!=0);if((this.intermediateChanges||_246||_246===undefined)&&this._pendingOnChange){this._lastValueReported=_245;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_245);}),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(_247){dojo.deprecated("dijit.form._FormWidget:setValue("+_247+") is deprecated.  Use set('value',"+_247+") instead.","","2.0");this.set("value",_247);},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 _248=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_248);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_249){dojo.attr(this.focusNode,"readOnly",_249);dijit.setWaiState(this.focusNode,"readonly",_249);this._set("readOnly",_249);},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(_24a,_24b){this._handleOnChange(_24a,_24b);},_handleOnChange:function(_24c,_24d){this._set("value",_24c);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 _24e=this.domNode;var _24f=_24e.parentNode;var _250=_24e.firstChild||_24e;var _251=_250.style.filter;var _252=this;while(_24f&&_24f.clientHeight==0){(function ping(){var _253=_252.connect(_24f,"onscroll",function(e){_252.disconnect(_253);_250.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_250.style.filter=_251;},0);});})();_24f=_24f.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(_254,_255){var _256=this.containerNode;if(_255&&typeof _255=="number"){var _257=this.getChildren();if(_257&&_257.length>=_255){_256=_257[_255-1].domNode;_255="after";}}dojo.place(_254.domNode,_256,_255);if(this._started&&!_254._started){_254.startup();}},removeChild:function(_258){if(typeof _258=="number"){_258=this.getChildren()[_258];}if(_258){var node=_258.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_259){dojo.forEach(this.getChildren(),function(_25a){_25a.destroyRecursive(_259);});},_getSiblingOfChild:function(_25b,dir){var node=_25b.domNode,_25c=(dir>0?"nextSibling":"previousSibling");do{node=node[_25c];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_25d){return dojo.indexOf(this.getChildren(),_25d);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_25e){_25e.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 _25f=this.dropDown,_260=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&&!_260){if(dojo.hasClass(t,"dijitPopup")){_260=true;}else{t=t.parentNode;}}if(_260){t=e.target;if(_25f.onItemClick){var _261;while(t&&!(_261=dijit.byNode(t))){t=t.parentNode;}if(_261&&_261.onClick&&_261.getParent){_261.getParent().onItemClick(_261,e);}}return;}}}if(this._opened&&_25f.focus&&_25f.autoFocus!==false){window.setTimeout(dojo.hitch(_25f,"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 _262={"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"+_262+"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,_263=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==" ")&&((_263.tagName||"").toLowerCase()!=="input"||(_263.type&&_263.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 _264=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_264);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_265){_265();},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 _266=this.dropDown,_267=_266.domNode,_268=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_267.style.width){this._explicitDDWidth=true;}if(_267.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _269={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_269.width="";}if(!this._explicitDDHeight){_269.height="";}dojo.style(_267,_269);var _26a=this.maxHeight;if(_26a==-1){var _26b=dojo.window.getBox(),_26c=dojo.position(_268,false);_26a=Math.floor(Math.max(_26c.y,_26b.h-(_26c.y+_26c.h)));}if(_266.startup&&!_266._started){_266.startup();}dijit.popup.moveOffScreen(_266);var mb=dojo._getMarginSize(_267);var _26d=(_26a&&mb.h>_26a);dojo.style(_267,{overflowX:"hidden",overflowY:_26d?"auto":"hidden"});if(_26d){mb.h=_26a;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_268.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_268.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_266.resize)){_266.resize(mb);}else{dojo.marginBox(_267,mb);}}var _26e=dijit.popup.open({parent:this,popup:_266,around:_268,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 _26e;},closeDropDown:function(_26f){if(this._opened){if(_26f){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 _270=dijit.byNode(node);if(_270&&typeof _270._onSubmit=="function"){_270._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_271){if(_271&&(!this.params||!("label" in this.params))){this.set("label",_271.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(_272){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_272);},_setLabelAttr:function(_273){this._set("label",_273);this.containerNode.innerHTML=_273;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _274=this.iconClass||"dijitNoIcon",_275=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_275,_274);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 _276=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_276[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _277=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_277);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _278=this.dropDown;return (!!_278&&(!_278.href||_278.isLoaded));},loadDropDown:function(){var _279=this.dropDown;if(!_279){return;}if(!this.isLoaded()){var _27a=dojo.connect(_279,"onLoad",this,function(){dojo.disconnect(_27a);this.openDropDown();});_279.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(_27b){if(!this.disabled){dijit.focus(_27b=="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(_27c,_27d){this._set("checked",_27c);dojo.attr(this.focusNode||this.domNode,"checked",_27c);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_27c);this._handleOnChange(_27c,_27d);},setChecked:function(_27e){dojo.deprecated("setChecked("+_27e+") is deprecated. Use set('checked',"+_27e+") instead.","","2.0");this.set("checked",_27e);},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(_27f){return _27f&&!isNaN(_27f)&&typeof _27f=="object"&&_27f.toString()!=this.constructor.prototype.value.toString();},setValue:function(_280){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_280);},_getValueAttr:function(){var _281=new this.dateClassObj(this.value);_281.setHours(0,0,0,0);if(_281.getDate()<this.value.getDate()){_281=this.dateFuncObj.add(_281,"hour",1);}return _281;},_setValueAttr:function(_282,_283){if(_282){_282=new this.dateClassObj(_282);}if(this._isValidDate(_282)){if(!this._isValidDate(this.value)||this.dateFuncObj.compare(_282,this.value)){_282.setHours(1,0,0,0);if(!this.isDisabledDate(_282,this.lang)){this._set("value",_282);this.set("currentFocus",_282);if(_283||typeof _283=="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 _284=new this.dateClassObj(this.currentFocus);_284.setDate(1);var _285=_284.getDay(),_286=this.dateFuncObj.getDaysInMonth(_284),_287=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_284,"month",-1)),_288=new this.dateClassObj(),_289=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_289>_285){_289-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_28a,i){i+=_289;var date=new this.dateClassObj(_284),_28b,_28c="dijitCalendar",adj=0;if(i<_285){_28b=_287-_285+i+1;adj=-1;_28c+="Previous";}else{if(i>=(_285+_286)){_28b=i-_285-_286+1;adj=1;_28c+="Next";}else{_28b=i-_285+1;_28c+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_28b);if(!this.dateFuncObj.compare(date,_288,"date")){_28c="dijitCalendarCurrentDate "+_28c;}if(this._isSelectedDate(date,this.lang)){_28c="dijitCalendarSelectedDate "+_28c;}if(this.isDisabledDate(date,this.lang)){_28c="dijitCalendarDisabledDate "+_28c;}var _28d=this.getClassForDate(date,this.lang);if(_28d){_28c=_28d+" "+_28c;}_28a.className=_28c+"Month dijitCalendarDateTemplate";_28a.dijitDateValue=date.valueOf();dojo.attr(_28a,"dijitDateValue",date.valueOf());var _28e=dojo.query(".dijitCalendarDateLabel",_28a)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_28e,text);},this);var _28f=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_284);this.monthDropDownButton.dropDown.set("months",_28f);this.monthDropDownButton.containerNode.innerHTML=(dojo.isIE==6?"":"<div class='dijitSpacer'>"+this.monthDropDownButton.dropDown.domNode.innerHTML+"</div>")+"<div class='dijitCalendarMonthLabel dijitCalendarCurrentMonthLabel'>"+_28f[_284.getMonth()]+"</div>";var y=_284.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 _290=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_290,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 _291=dojo.hitch(this,function(_292,n){var _293=dojo.query(_292,this.domNode)[0];for(var i=0;i<n;i++){_293.parentNode.appendChild(_293.cloneNode(true));}});_291(".dijitCalendarDayLabelTemplate",6);_291(".dijitCalendarDateTemplate",6);_291(".dijitCalendarWeekTemplate",5);var _294=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _295=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_296,i){this._setText(_296,_294[(i+_295)%7]);},this);var _297=new this.dateClassObj(this.currentFocus);this.monthDropDownButton.dropDown=new dijit.Calendar._MonthDropDown({id:this.id+"_mdd",onChange:dojo.hitch(this,"_onMonthSelect")});this.set("currentFocus",_297,false);var _298=this;var _299=function(_29a,_29b,adj){_298._connects.push(dijit.typematic.addMouseListener(_298[_29a],_298,function(_29c){if(_29c>=0){_298._adjustDisplay(_29b,adj);}},0.8,500));};_299("incrementMonth","month",1);_299("decrementMonth","month",-1);_299("nextYearLabelNode","year",1);_299("previousYearLabelNode","year",-1);},_adjustDisplay:function(part,_29d){this._setCurrentFocusAttr(this.dateFuncObj.add(this.currentFocus,part,_29d));},_setCurrentFocusAttr:function(date,_29e){var _29f=this.currentFocus,_2a0=_29f?dojo.query("[dijitDateValue="+_29f.valueOf()+"]",this.domNode)[0]:null;date=new this.dateClassObj(date);date.setHours(1,0,0,0);this._set("currentFocus",date);this._populateGrid();var _2a1=dojo.query("[dijitDateValue="+date.valueOf()+"]",this.domNode)[0];_2a1.setAttribute("tabIndex",this.tabIndex);if(this._focused||_29e){_2a1.focus();}if(_2a0&&_2a0!=_2a1){if(dojo.isWebKit){_2a0.setAttribute("tabIndex","-1");}else{_2a0.removeAttribute("tabIndex");}}},focus:function(){this._setCurrentFocusAttr(this.currentFocus,true);},_onMonthSelect:function(_2a2){this.currentFocus=this.dateFuncObj.add(this.currentFocus,"month",_2a2-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,_2a3=-1,_2a4,_2a5=this.currentFocus;switch(evt.keyCode){case dk.RIGHT_ARROW:_2a3=1;case dk.LEFT_ARROW:_2a4="day";if(!this.isLeftToRight()){_2a3*=-1;}break;case dk.DOWN_ARROW:_2a3=1;case dk.UP_ARROW:_2a4="week";break;case dk.PAGE_DOWN:_2a3=1;case dk.PAGE_UP:_2a4=evt.ctrlKey||evt.altKey?"year":"month";break;case dk.END:_2a5=this.dateFuncObj.add(_2a5,"month",1);_2a4="day";case dk.HOME:_2a5=new this.dateClassObj(_2a5);_2a5.setDate(1);break;case dk.ENTER:case dk.SPACE:this.set("value",this.currentFocus);break;default:return true;}if(_2a4){_2a5=this.dateFuncObj.add(_2a5,_2a4,_2a3);}this._setCurrentFocusAttr(_2a5);return false;},_onKeyPress:function(evt){if(!this.handleKey(evt)){dojo.stopEvent(evt);}},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_2a6,_2a7){return this._isValidDate(this.value)&&!this.dateFuncObj.compare(_2a6,this.value,"date");},isDisabledDate:function(_2a8,_2a9){},getClassForDate:function(_2aa,_2ab){}});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(_2ac){this.domNode.innerHTML=dojo.map(_2ac,function(_2ad,idx){return _2ad?"<div class='dijitCalendarMonthLabel' month='"+idx+"'>"+_2ad+"</div>":"";}).join("");},_onClick:function(evt){this.onChange(dojo.attr(evt.target,"month"));},onChange:function(_2ae){},_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(_2af,_2b0,_2b1){var _2b2;if(_2af!==undefined){_2b2=this.filter(_2af);if(typeof _2b1!="string"){if(_2b2!==null&&((typeof _2b2!="number")||!isNaN(_2b2))){_2b1=this.filter(this.format(_2b2,this.constraints));}else{_2b1="";}}}if(_2b1!=null&&_2b1!=undefined&&((typeof _2b1)!="number"||!isNaN(_2b1))&&this.textbox.value!=_2b1){this.textbox.value=_2b1;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_2b2,_2b0]);},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(_2b3){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_2b3);},_setDisplayedValueAttr:function(_2b4){if(_2b4===null||_2b4===undefined){_2b4="";}else{if(typeof _2b4!="string"){_2b4=String(_2b4);}}this.textbox.value=_2b4;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_2b5,_2b6){return ((_2b5==null||_2b5==undefined)?"":(_2b5.toString?_2b5.toString():_2b5));},parse:function(_2b7,_2b8){return _2b7;},_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 _2b9=this;setTimeout(function(){_2b9._handleOnChange(_2b9.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 _2ba=this.domNode.getElementsByTagName("INPUT");if(_2ba){for(var i=0;i<_2ba.length;i++){_2ba[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 _2bb;if(dojo.isIE){var _2bc=dojo.doc.selection.createRange();var _2bd=_2bc.parentElement();_2bb=_2bd==this.textbox&&_2bc.text.length==0;}else{_2bb=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_2bb){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_2be,_2bf,stop){var _2c0=dojo.global;var _2c1=dojo.doc;_2be=dojo.byId(_2be);if(isNaN(_2bf)){_2bf=0;}if(isNaN(stop)){stop=_2be.value?_2be.value.length:0;}dijit.focus(_2be);if(_2c1["selection"]&&dojo.body()["createTextRange"]){if(_2be.createTextRange){var r=_2be.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_2bf);r.moveEnd("character",stop-_2bf);r.select();}}else{if(_2c0["getSelection"]){if(_2be.setSelectionRange){_2be.setSelectionRange(_2bf,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(_2c2,_2c3,_2c4,rtl){if(this.aroundNode&&this.aroundNode===_2c3){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_2c2;var pos=dijit.placeOnScreenAroundElement(this.domNode,_2c3,dijit.getPopupAroundAlignment((_2c4&&_2c4.length)?_2c4:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_2c3;},orient:function(node,_2c5,_2c6,_2c7,_2c8){this.connectorNode.style.top="";var _2c9=_2c7.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"}[_2c5+"-"+_2c6];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _2ca=Math.min((Math.max(_2c9,1)),size.w);var _2cb=_2ca<size.w;this.domNode.style.width=_2ca+"px";if(_2cb){this.containerNode.style.overflow="auto";var _2cc=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_2cc>_2ca){_2cc=_2cc+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_2cc+"px";}}if(_2c6.charAt(0)=="B"&&_2c5.charAt(0)=="B"){var mb=dojo.marginBox(node);var _2cd=this.connectorNode.offsetHeight;if(mb.h>_2c7.h){var _2ce=_2c7.h-(_2c8.h/2)-(_2cd/2);this.connectorNode.style.top=_2ce+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_2c8.h/2-_2cd/2,0),mb.h-_2cd)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_2c9);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_2cf){if(this._onDeck&&this._onDeck[1]==_2cf){this._onDeck=null;}else{if(this.aroundNode===_2cf){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(_2d0,_2d1,_2d2,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_2d0,_2d1,_2d2,rtl);};dijit.hideTooltip=function(_2d3){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_2d3);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_2d4){dojo.forEach(this._connections||[],function(_2d5){dojo.forEach(_2d5,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_2d4)?_2d4:(_2d4?[_2d4]:[]);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",_2d4);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 _2d6=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_2d6);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_2d7){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_2d7,this.position,!this.isLeftToRight());this._connectNode=_2d7;this.onShow(_2d7,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(_2d8,_2d9){},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(_2da){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_2db,_2dc){return (new RegExp("^(?:"+this.regExpGen(_2dc)+")"+(this.required?"":"?")+"$")).test(_2db)&&(!this.required||!this._isEmpty(_2db))&&(this._isEmpty(_2db)||this.parse(_2db,_2dc)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_2dd){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_2de){return (this.trim?/^\s*$/:/^$/).test(_2de);},getErrorMessage:function(_2df){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_2e0){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_2e1){var _2e2="";var _2e3=this.disabled||this.isValid(_2e1);if(_2e3){this._maskValidSubsetError=true;}var _2e4=this._isEmpty(this.textbox.value);var _2e5=!_2e3&&_2e1&&this._isValidSubset();this._set("state",_2e3?"":(((((!this._hasBeenBlurred||_2e1)&&_2e4)||_2e5)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_2e3?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_2e1&&_2e5;_2e2=this.getErrorMessage(_2e1);}else{if(this.state=="Incomplete"){_2e2=this.getPromptMessage(_2e1);this._maskValidSubsetError=!this._hasBeenBlurred||_2e1;}else{if(_2e4){_2e2=this.getPromptMessage(_2e1);}}}this.set("message",_2e2);return _2e3;},displayMessage:function(_2e6){dijit.hideTooltip(this.domNode);if(_2e6&&this._focused){dijit.showTooltip(_2e6,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_2e7){if(!_2e7.locale&&this.lang){_2e7.locale=this.lang;}this._set("constraints",_2e7);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _2e8="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_2e8+=re;break;case ")":_2e8+="|$)";break;default:_2e8+="(?:"+re+"|$)";break;}});}try{"".search(_2e8);}catch(e){_2e8=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_2e8+")$";},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(_2e9){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_2ea){this._set("required",_2ea);dijit.setWaiState(this.focusNode,"required",_2ea);this._refreshState();},_setMessageAttr:function(_2eb){this._set("message",_2eb);this.displayMessage(_2eb);},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,_2ec){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(_2ed,_2ee){return ("min" in _2ee?(this.compare(_2ed,_2ee.min)>=0):true)&&("max" in _2ee?(this.compare(_2ed,_2ee.max)<=0):true);},isInRange:function(_2ef){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _2f0=false;var _2f1=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_2f0=(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);_2f1=(typeof max=="number")&&max>0;}return _2f0||_2f1;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_2f2){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_2f2));},getErrorMessage:function(_2f3){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_2f3)){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(_2f4){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(_2f5,_2f6){dijit.setWaiState(this.focusNode,"valuenow",_2f5);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 _2f7=this._isInvalidDate(val1);var _2f8=this._isInvalidDate(val2);return _2f7?(_2f8?0:-1):(_2f8?1:dojo.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_2f9,_2fa){if(!_2f9){return "";}return this.dateLocaleModule.format(_2f9,_2fa);},"parse":function(_2fb,_2fc){return this.dateLocaleModule.parse(_2fb,_2fc)||(this._isEmpty(_2fb)?null:undefined);},serialize:function(val,_2fd){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_2fd);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _2fe=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_2fe,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(_2ff){_2ff.selector=this._selector;_2ff.fullYear=true;var _300=dojo.date.stamp.fromISOString;if(typeof _2ff.min=="string"){_2ff.min=_300(_2ff.min);}if(typeof _2ff.max=="string"){_2ff.max=_300(_2ff.max);}this.inherited(arguments);},_isInvalidDate:function(_301){return !_301||isNaN(_301)||typeof _301!="object"||_301.toString()==this._invalidDate;},_setValueAttr:function(_302,_303,_304){if(_302!==undefined){if(typeof _302=="string"){_302=dojo.date.stamp.fromISOString(_302);}if(this._isInvalidDate(_302)){_302=null;}if(_302 instanceof Date&&!(this.dateClassObj instanceof Date)){_302=new this.dateClassObj(_302);}}this.inherited(arguments);if(this.value instanceof Date){this.filterString="";}if(this.dropDown){this.dropDown.set("value",_302,false);}},_set:function(attr,_305){if(attr=="value"&&this.value instanceof Date&&this.compare(_305,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_306){if(this.dropDown){this.dropDown.destroy();}var _307=dojo.getObject(this.popupClass,false),_308=this,_309=this.get("value");this.dropDown=new _307({onChange:function(_30a){_308.set("value",_30a,true);},id:this.id+"_popup",dir:_308.dir,lang:_308.lang,value:_309,currentFocus:!this._isInvalidDate(_309)?_309:this.dropDownDefaultValue,constraints:_308.constraints,filterString:_308.filterString,datePackage:_308.datePackage,isDisabledDate:function(date){return !_308.rangeCheck(date,_308.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_30b,_30c){this._setValueAttr(this.parse(_30b,this.constraints),_30c,_30b);}});}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(_30d){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_30d);},_setValueAttr:function(date){this._set("value",date);this._showText();},_setFilterStringAttr:function(val){this._set("filterString",val);this._showText();},isDisabledDate:function(_30e,_30f){return false;},_getFilteredNodes:function(_310,_311,_312,_313){var _314=[],_315=_313?_313.date:this._refDate,n,i=_310,max=this._maxIncrement+Math.abs(i),chk=_312?-1:1,dec=_312?1:0,inc=1-dec;do{i-=dec;n=this._createOption(i);if(n){if((_312&&n.date>_315)||(!_312&&n.date<_315)){break;}_314[_312?"unshift":"push"](n);_315=n.date;}i+=inc;}while(_314.length<_311&&(i*chk)<max);return _314;},_showText:function(){var _316=dojo.date.stamp.fromISOString;this.timeMenu.innerHTML="";this._clickableIncrementDate=_316(this.clickableIncrement);this._visibleIncrementDate=_316(this.visibleIncrement);this._visibleRangeDate=_316(this.visibleRange);var _317=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();},_318=_317(this._clickableIncrementDate),_319=_317(this._visibleIncrementDate),_31a=_317(this._visibleRangeDate),time=(this.value||this.currentFocus).getTime();this._refDate=new Date(time-time%(_318*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_31a/_318;this._visibleIncrement=_319/_318;this._maxIncrement=(60*60*24)/_318;var _31b=Math.min(this._totalIncrements,10),_31c=this._getFilteredNodes(0,(_31b>>1)+1,false),_31d=[],_31e=_31b-_31c.length,_31f=this._getFilteredNodes(0,_31e,true,_31c[0]);if(_31f.length<_31e&&_31c.length>0){_31d=this._getFilteredNodes(_31c.length,_31e-_31f.length,false,_31c[_31c.length-1]);}dojo.forEach(_31f.concat(_31c,_31d),function(n){this.timeMenu.appendChild(n);},this);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints);},_setConstraintsAttr:function(_320){dojo.mixin(this,_320);if(!_320.locale){_320.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(_321){var date=new Date(this._refDate);var _322=this._clickableIncrementDate;date.setHours(date.getHours()+_322.getHours()*_321,date.getMinutes()+_322.getMinutes()*_321,date.getSeconds()+_322.getSeconds()*_321);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _323=dojo.date.locale.format(date,this.constraints);if(this.filterString&&_323.toLowerCase().indexOf(this.filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_321;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_323},div);if(_321%this._visibleIncrement<1&&_321%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_321%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 _324=tgt.target.date||tgt.target.parentNode.date;if(!_324||this.isDisabledDate(_324)){return;}this._highlighted_option=null;this.set("value",_324);this.onChange(_324);},onChange:function(time){},_highlightOption:function(node,_325){if(!node){return;}if(_325){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",_325);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_325);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_325);}},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 _326=(dojo.isIE?e.wheelDelta:-e.detail);this[(_326>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_327){if(typeof _327=="number"&&_327==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _328=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_328,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(_329){if(typeof _329=="number"&&_329==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _32a=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_32a,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 _32b=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_32b)[0];if(!tgt){tgt=_32b.childNodes[0];}else{if(_32b.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(_32c,_32d){var _32e=[];function _32f(attr,dir,comp,s){return function(_330,_331){var a=s.getValue(_330,attr);var b=s.getValue(_331,attr);return dir*comp(a,b);};};var _332;var map=_32d.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_32c.length;i++){_332=_32c[i];var attr=_332.attribute;if(attr){var dir=(_332.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_32e.push(_32f(attr,dir,comp,_32d));}}return function(rowA,rowB){var i=0;while(i<_32e.length){var ret=_32e[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(_333){var _334=_333,opts=this.options||[],l=opts.length;if(_334===undefined){return opts;}if(dojo.isArray(_334)){return dojo.map(_334,"return this.getOptions(item);",this);}if(dojo.isObject(_333)){if(!dojo.some(this.options,function(o,idx){if(o===_334||(o.value&&o.value===_334.value)){_334=idx;return true;}return false;})){_334=-1;}}if(typeof _334=="string"){for(var i=0;i<l;i++){if(opts[i].value===_334){_334=i;break;}}}if(typeof _334=="number"&&_334>=0&&_334<l){return this.options[_334];}return null;},addOption:function(_335){if(!dojo.isArray(_335)){_335=[_335];}dojo.forEach(_335,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_336){if(!dojo.isArray(_336)){_336=[_336];}var _337=this.getOptions(_336);dojo.forEach(_337,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(_338){if(!dojo.isArray(_338)){_338=[_338];}dojo.forEach(_338,function(i){var _339=this.getOptions(i),k;if(_339){for(k in i){_339[k]=i[k];}}},this);this._loadChildren();},setStore:function(_33a,_33b,_33c){var _33d=this.store;_33c=_33c||{};if(_33d!==_33a){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_33a&&_33a.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_33a,"onNew",this,"_onNewItem"),dojo.connect(_33a,"onDelete",this,"_onDeleteItem"),dojo.connect(_33a,"onSet",this,"_onSetItem")];}this._set("store",_33a);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_33a){this._loadingStore=true;_33a.fetch(dojo.delegate(_33c,{onComplete:function(_33e,opts){if(this.sortByLabel&&!_33c.sort&&_33e.length){_33e.sort(dojo.data.util.sorter.createSortFunction([{attribute:_33a.getLabelAttributes(_33e[0])[0]}],_33a));}if(_33c.onFetch){_33e=_33c.onFetch.call(this,_33e,opts);}dojo.forEach(_33e,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_33b);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_33e);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _33d;},_setValueAttr:function(_33f,_340){if(this._loadingStore){this._pendingValue=_33f;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_33f)){_33f=[_33f];}dojo.forEach(_33f,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_33f[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_33f=dojo.filter(_33f,function(i){return i&&i.value;});if(!this.multiple&&(!_33f[0]||!_33f[0].value)&&opts.length){_33f[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_33f,function(v){return v.value===i.value;});});var val=dojo.map(_33f,function(i){return i.value;}),disp=dojo.map(_33f,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,_340);},_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(_341){_341.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(_342){var _343=dojo.some(val,function(v){return _342.option&&(v===_342.option.value);});dojo.toggleClass(_342.domNode,this.baseClass+"SelectedOption",_343);dijit.setWaiState(_342.domNode,"selected",_343);},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,_344){if(!_344||!_344.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _345=this.store;this.removeOption(_345.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _346=this.store,_347=_346.getLabel(item),_348=(_347?_346.getIdentity(item):null);return {value:_348,label:_347,item:item};},_addOptionForItem:function(item){var _349=this.store;if(!_349.isItemLoaded(item)){_349.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _34a=this._getOptionObjForItem(item);this.addOption(_34a);},constructor:function(_34b){this._oValue=(_34b||{}).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 _34c=this.store,_34d={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_34d[i]=this[i];}delete this[i];},this);if(_34c&&_34c.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_34c,this._oValue,_34d);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_34e){},_removeOptionItem:function(_34f){},_setDisplay:function(_350){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_351){},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(_352,_353){var _354=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_352,function(code){_354[code]=prev;});dojo.forEach(_353,function(code){_354[code]=next;});_354[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_354[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(_355,_356){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_355);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _357=this._getFirstFocusableChild();if(_357){this.focusChild(_357);}},focusLastChild:function(){var _358=this._getLastFocusableChild();if(_358){this.focusChild(_358);}},focusNext:function(){var _359=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_359);},focusPrev:function(){var _35a=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_35a,true);},focusChild:function(_35b,last){if(this.focusedChild&&_35b!==this.focusedChild){this._onChildBlur(this.focusedChild);}_35b.set("tabIndex",this.tabIndex);_35b.focus(last?"end":"start");this._set("focusedChild",_35b);},_startupChild:function(_35c){_35c.set("tabIndex","-1");this.connect(_35c,"_onFocus",function(){_35c.set("tabIndex",this.tabIndex);});this.connect(_35c,"_onBlur",function(){_35c.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(_35d){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_35e,dir){if(_35e){_35e=this._getSiblingOfChild(_35e,dir);}var _35f=this.getChildren();for(var i=0;i<_35f.length;i++){if(!_35e){_35e=_35f[(dir>0)?0:(_35f.length-1)];}if(_35e.isFocusable()){return _35e;}_35e=this._getSiblingOfChild(_35e,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 _360=dijit.getEnclosingWidget(this.domNode.parentNode);return _360&&_360.isContainer?_360:null;},_getSibling:function(_361){var node=this.domNode;do{node=node[_361+"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(_362){if(_362&&!("label" in this.params)){this.set("label",_362.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _363=this.id+"_text";dojo.attr(this.containerNode,"id",_363);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_363+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_363);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(_364){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_364);},setLabel:function(_365){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_365);},setDisabled:function(_366){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_366);},_setDisabledAttr:function(_367){dijit.setWaiState(this.focusNode,"disabled",_367?"true":"false");this._set("disabled",_367);},_setAccelKeyAttr:function(_368){this.accelKeyNode.style.display=_368?"":"none";this.accelKeyNode.innerHTML=_368;dojo.attr(this.containerNode,"colSpan",_368?"1":"2");this._set("accelKey",_368);}});}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 _369=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_369[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(_36a){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_36a);dijit.setWaiState(this.domNode,"checked",_36a);this._set("checked",_36a);},onChange:function(_36b){},_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(_36c){_36c.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_36d){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _36e=this._getTopMenu();if(_36e&&_36e._isMenuBar){_36e.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _36f=this.currentPopup.parentMenu;if(_36f.focusedChild){_36f.focusedChild._setSelected(false);}_36f.focusedChild=this.currentPopup.from_item;_36f.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 _370=item.popup;if(_370){this._stopPendingCloseTimer(_370);_370._pendingClose_timer=setTimeout(function(){_370._pendingClose_timer=null;if(_370.parentMenu){_370.parentMenu.currentPopup=null;}dijit.popup.close(_370);},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(_371){if(_371._pendingClose_timer){clearTimeout(_371._pendingClose_timer);_371._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 _372=this.focusedChild;if(!_372){return;}var _373=_372.popup;if(_373.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_373.parentMenu=this;_373.from_item=_372;var self=this;dijit.popup.open({parent:this,popup:_373,around:_372.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(_372);self._cleanUp();_372._setSelected(true);self.focusedChild=_372;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_373;_373.connect(_373.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_373.focus){_373._focus_timer=setTimeout(dojo.hitch(_373,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 _374=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(_375){var win=dojo.window.get(this._iframeContentDocument(_375))||this._iframeContentDocument(_375)["__parent__"]||(_375.name&&dojo.doc.frames[_375.name])||null;return win;},_iframeContentDocument:function(_376){var doc=_376.contentDocument||(_376.contentWindow&&_376.contentWindow.document)||(_376.name&&dojo.doc.frames[_376.name]&&dojo.doc.frames[_376.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _377=node,win=this._iframeContentWindow(_377);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _378={node:node,iframe:_377};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_378));var _379=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_377,{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,_377);}})];});_378.connects=cn?_379(cn):[];if(_377){_378.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_377);cn=dojo.withGlobal(win,dojo.body);_378.connects=_379(cn);});if(_377.addEventListener){_377.addEventListener("load",_378.onloadHandler,false);}else{_377.attachEvent("onload",_378.onloadHandler);}}},unBindDomNode:function(_37a){var node;try{node=dojo.byId(_37a);}catch(e){return;}var _37b="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_37b)){var bid=dojo.attr(node,_37b)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _37c=b.iframe;if(_37c){if(_37c.removeEventListener){_37c.removeEventListener("load",b.onloadHandler,false);}else{_37c.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_37b);delete this._bindings[bid];}},_scheduleOpen:function(_37d,_37e,_37f){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_37d,iframe:_37e,coords:_37f});}),1);}},_openMyself:function(args){var _380=args.target,_381=args.iframe,_382=args.coords;if(_382){if(_381){var od=_380.ownerDocument,ifc=dojo.position(_381,true),win=this._iframeContentWindow(_381),_383=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_381),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_381,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_381,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_381,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_381,cs.borderTopWidth):0);_382.x+=ifc.x+left-_383.x;_382.y+=ifc.y+top-_383.y;}}else{_382=dojo.position(_380,true);_382.x+=10;_382.y+=10;}var self=this;var _384=dijit.getFocus(this);function _385(){if(self.refocus){dijit.focus(_384);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_382.x,y:_382.y,onExecute:_385,onCancel:_385,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(_386){if(!_386.value&&!_386.label){return new dijit.MenuSeparator();}else{var _387=dojo.hitch(this,"_setValueAttr",_386);var item=new dijit.MenuItem({option:_386,label:_386.label||this.emptyLabel,onClick:_387,disabled:_386.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_388){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_388));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_389){if(_389===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_38a){_38a.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(_38b){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_38c){var lbl=_38c||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_38d){var _38e=this.isValid(_38d);this._set("state",_38e?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_38e?"false":"true");var _38f=_38e?"":this._missingMsg;if(this.message!==_38f){this._set("message",_38f);dijit.hideTooltip(this.domNode);if(_38f){dijit.showTooltip(_38f,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _38e;},isValid:function(_390){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(_391){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_392){this._loadChildren(true);this._isLoaded=true;_392();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_393){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_393);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(_394){this._set("readOnly",_394);dojo.attr(this.focusNode,"readOnly",_394);dijit.setWaiState(this.focusNode,"readonly",_394);},_setValueAttr:function(_395,_396){if(typeof _395=="string"){this._set("value",_395);dojo.attr(this.focusNode,"value",_395);_395=true;}if(this._created){this.set("checked",_395,_396);}},_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(_397){},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(_398){this.inherited(arguments);if(!this._created){return;}if(_398){var _399=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_39a){if(_39a.name==_399.name&&_39a!=_399.focusNode&&_39a.form==_399.focusNode.form){var _39b=dijit.getEnclosingWidget(_39a);if(_39b&&_39b.checked){_39b.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,_39c,_39d){var _39e=[];var _39f,_3a0,_3a1=0;while(_39f=re.exec(str)){_3a0=str.slice(_3a1,re.lastIndex-_39f[0].length);if(_3a0.length){_39e.push(_3a0);}if(_39c){if(dojo.isOpera){var copy=_39f.slice(0);while(copy.length<_39f.length){copy.push(null);}_39f=copy;}var _3a2=_39c.apply(_39d,_39f.slice(1).concat(_39e.length));if(typeof _3a2!="undefined"){_39e.push(_3a2);}}_3a1=re.lastIndex;}_3a0=str.slice(_3a1);if(_3a0.length){_39e.push(_3a0);}return _39e;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_3a3,_3a4){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _3a5=new dojox.string.sprintf.Formatter(_3a3);return _3a5.format.apply(_3a5,args);};dojox.string.sprintf.Formatter=function(_3a6){var _3a7=[];this._mapped=false;this._format=_3a6;this._tokens=dojox.string.tokenize(_3a6,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_3a8,_3a9,_3aa,_3ab,_3ac,_3ad,_3ae){if(_3a8){this._mapped=true;}return {mapping:_3a8,intmapping:_3a9,flags:_3aa,_minWidth:_3ab,period:_3ac,_precision:_3ad,specifier:_3ae};},_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(_3af){if(!isNaN(_3af.arg)){var num=parseInt(_3af.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_3af.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_3b0){_3b0.maxWidth=(_3b0.period==".")?_3b0.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(_3b1){if(this._mapped&&typeof _3b1!="object"){throw new Error("format requires a mapping");}var str="";var _3b2=0;for(var i=0,_3b3;i<this._tokens.length;i++){_3b3=this._tokens[i];if(typeof _3b3=="string"){str+=_3b3;}else{if(this._mapped){if(typeof _3b1[_3b3.mapping]=="undefined"){throw new Error("missing key "+_3b3.mapping);}_3b3.arg=_3b1[_3b3.mapping];}else{if(_3b3.intmapping){var _3b2=parseInt(_3b3.intmapping)-1;}if(_3b2>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_3b3.arg=arguments[_3b2++];}if(!_3b3.compiled){_3b3.compiled=true;_3b3.sign="";_3b3.zeroPad=false;_3b3.rightJustify=false;_3b3.alternative=false;var _3b4={};for(var fi=_3b3.flags.length;fi--;){var flag=_3b3.flags.charAt(fi);_3b4[flag]=true;switch(flag){case " ":_3b3.sign=" ";break;case "+":_3b3.sign="+";break;case "0":_3b3.zeroPad=(_3b4["-"])?false:true;break;case "-":_3b3.rightJustify=true;_3b3.zeroPad=false;break;case "#":_3b3.alternative=true;break;default:throw Error("bad formatting flag '"+_3b3.flags.charAt(fi)+"'");}}_3b3.minWidth=(_3b3._minWidth)?parseInt(_3b3._minWidth):0;_3b3.maxWidth=-1;_3b3.toUpper=false;_3b3.isUnsigned=false;_3b3.isInt=false;_3b3.isDouble=false;_3b3.precision=1;if(_3b3.period=="."){if(_3b3._precision){_3b3.precision=parseInt(_3b3._precision);}else{_3b3.precision=0;}}var _3b5=this._specifiers[_3b3.specifier];if(typeof _3b5=="undefined"){throw new Error("unexpected specifier '"+_3b3.specifier+"'");}if(_3b5.extend){dojo.mixin(_3b5,this._specifiers[_3b5.extend]);delete _3b5.extend;}dojo.mixin(_3b3,_3b5);}if(typeof _3b3.setArg=="function"){_3b3.setArg(_3b3);}if(typeof _3b3.setMaxWidth=="function"){_3b3.setMaxWidth(_3b3);}if(_3b3._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_3b3.minWidth=parseInt(arguments[_3b2++]);if(isNaN(_3b3.minWidth)){throw new Error("the argument for * width at position "+_3b2+" is not a number in "+this._format);}if(_3b3.minWidth<0){_3b3.rightJustify=true;_3b3.minWidth=-_3b3.minWidth;}}if(_3b3._precision=="*"&&_3b3.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_3b3.precision=parseInt(arguments[_3b2++]);if(isNaN(_3b3.precision)){throw Error("the argument for * precision at position "+_3b2+" is not a number in "+this._format);}if(_3b3.precision<0){_3b3.precision=1;_3b3.period="";}}if(_3b3.isInt){if(_3b3.period=="."){_3b3.zeroPad=false;}this.formatInt(_3b3);}else{if(_3b3.isDouble){if(_3b3.period!="."){_3b3.precision=6;}this.formatDouble(_3b3);}}this.fitField(_3b3);str+=""+_3b3.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_3b6){var i=parseInt(_3b6.arg);if(!isFinite(i)){if(typeof _3b6.arg!="number"){throw new Error("format argument '"+_3b6.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_3b6.isUnsigned||_3b6.base!=10)){i=4294967295+i+1;}if(i<0){_3b6.arg=(-i).toString(_3b6.base);this.zeroPad(_3b6);_3b6.arg="-"+_3b6.arg;}else{_3b6.arg=i.toString(_3b6.base);if(!i&&!_3b6.precision){_3b6.arg="";}else{this.zeroPad(_3b6);}if(_3b6.sign){_3b6.arg=_3b6.sign+_3b6.arg;}}if(_3b6.base==16){if(_3b6.alternative){_3b6.arg="0x"+_3b6.arg;}_3b6.arg=_3b6.toUpper?_3b6.arg.toUpperCase():_3b6.arg.toLowerCase();}if(_3b6.base==8){if(_3b6.alternative&&_3b6.arg.charAt(0)!="0"){_3b6.arg="0"+_3b6.arg;}}},formatDouble:function(_3b7){var f=parseFloat(_3b7.arg);if(!isFinite(f)){if(typeof _3b7.arg!="number"){throw new Error("format argument '"+_3b7.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_3b7.doubleNotation){case "e":_3b7.arg=f.toExponential(_3b7.precision);break;case "f":_3b7.arg=f.toFixed(_3b7.precision);break;case "g":if(Math.abs(f)<0.0001){_3b7.arg=f.toExponential(_3b7.precision>0?_3b7.precision-1:_3b7.precision);}else{_3b7.arg=f.toPrecision(_3b7.precision);}if(!_3b7.alternative){_3b7.arg=_3b7.arg.replace(/(\..*[^0])0*/,"$1");_3b7.arg=_3b7.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_3b7.doubleNotation+"'");}_3b7.arg=_3b7.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_3b7.arg=_3b7.arg.replace(/^\./,"0.");}if(_3b7.alternative){_3b7.arg=_3b7.arg.replace(/^(\d+)$/,"$1.");_3b7.arg=_3b7.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_3b7.sign){_3b7.arg=_3b7.sign+_3b7.arg;}_3b7.arg=_3b7.toUpper?_3b7.arg.toUpperCase():_3b7.arg.toLowerCase();},zeroPad:function(_3b8,_3b9){_3b9=(arguments.length==2)?_3b9:_3b8.precision;if(typeof _3b8.arg!="string"){_3b8.arg=""+_3b8.arg;}var _3ba=_3b9-10;while(_3b8.arg.length<_3ba){_3b8.arg=(_3b8.rightJustify)?_3b8.arg+this._zeros10:this._zeros10+_3b8.arg;}var pad=_3b9-_3b8.arg.length;_3b8.arg=(_3b8.rightJustify)?_3b8.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_3b8.arg;},fitField:function(_3bb){if(_3bb.maxWidth>=0&&_3bb.arg.length>_3bb.maxWidth){return _3bb.arg.substring(0,_3bb.maxWidth);}if(_3bb.zeroPad){this.zeroPad(_3bb,_3bb.minWidth);return;}this.spacePad(_3bb);},spacePad:function(_3bc,_3bd){_3bd=(arguments.length==2)?_3bd:_3bc.minWidth;if(typeof _3bc.arg!="string"){_3bc.arg=""+_3bc.arg;}var _3be=_3bd-10;while(_3bc.arg.length<_3be){_3bc.arg=(_3bc.rightJustify)?_3bc.arg+this._spaces10:this._spaces10+_3bc.arg;}var pad=_3bd-_3bc.arg.length;_3bc.arg=(_3bc.rightJustify)?_3bc.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_3bc.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 _3bf=n.scrollLeft,_3c0=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_3bf!=n.scrollLeft||_3c0!=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,_3c1){this.node=dojo.byId(node);if(!_3c1){_3c1={};}this.handle=_3c1.handle?dojo.byId(_3c1.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_3c1.delay>0?_3c1.delay:0;this.skip=_3c1.skip;this.mover=_3c1.mover?_3c1.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(_3c2,node){return new dojo.dnd.Moveable(node,_3c2);},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(_3c3){dojo.publish("/dnd/move/start",[_3c3]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3c4){dojo.publish("/dnd/move/stop",[_3c4]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3c5,e){},onMove:function(_3c6,_3c7,e){this.onMoving(_3c6,_3c7);var s=_3c6.node.style;s.left=_3c7.l+"px";s.top=_3c7.t+"px";this.onMoved(_3c6,_3c7);},onMoving:function(_3c8,_3c9){},onMoved:function(_3ca,_3cb){}});}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(_3cc,node){return new dojo.dnd.move.constrainedMoveable(node,_3cc);},constructor:function(node,_3cd){if(!_3cd){_3cd={};}this.constraints=_3cd.constraints;this.within=_3cd.within;},onFirstMove:function(_3ce){var c=this.constraintBox=this.constraints.call(this,_3ce);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_3ce.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_3cf,_3d0){var c=this.constraintBox,s=_3cf.node.style;this.onMoving(_3cf,_3d0);_3d0.l=_3d0.l<c.l?c.l:c.r<_3d0.l?c.r:_3d0.l;_3d0.t=_3d0.t<c.t?c.t:c.b<_3d0.t?c.b:_3d0.t;s.left=_3d0.l+"px";s.top=_3d0.t+"px";this.onMoved(_3cf,_3d0);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_3d1,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_3d1);},constructor:function(node,_3d2){var box=_3d2&&_3d2.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_3d3,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_3d3);},constructor:function(node,_3d4){var area=_3d4&&_3d4.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 _3d5=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_3d6){if(!_3d6){_3d6={};}if(_3d6.timeout&&typeof _3d6.timeout=="number"&&_3d6.timeout>=0){this.timeout=_3d6.timeout;}},markupFactory:function(_3d7,node){return new dojo.dnd.TimedMoveable(node,_3d7);},onMoveStop:function(_3d8){if(_3d8._timer){clearTimeout(_3d8._timer);_3d5.call(this,_3d8,_3d8._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_3d9,_3da){_3d9._leftTop=_3da;if(!_3d9._timer){var _3db=this;_3d9._timer=setTimeout(function(){_3d9._timer=null;_3d5.call(_3db,_3d9,_3d9._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 _3dc=this;dojo.mixin(_3dc,args);_3dc.node=args.node;_3dc._showArgs=dojo.mixin({},args);_3dc._showArgs.node=_3dc.node;_3dc._showArgs.duration=_3dc.showDuration;_3dc.showAnim=_3dc.showFunc(_3dc._showArgs);_3dc._hideArgs=dojo.mixin({},args);_3dc._hideArgs.node=_3dc.node;_3dc._hideArgs.duration=_3dc.hideDuration;_3dc.hideAnim=_3dc.hideFunc(_3dc._hideArgs);dojo.connect(_3dc.showAnim,"beforeBegin",dojo.hitch(_3dc.hideAnim,"stop",true));dojo.connect(_3dc.hideAnim,"beforeBegin",dojo.hitch(_3dc.showAnim,"stop",true));},show:function(_3dd){return this.showAnim.play(_3dd||0);},hide:function(_3de){return this.hideAnim.play(_3de||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_3df={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _3e0=function(_3e1){this._index=-1;this._animations=_3e1||[];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(_3e0,{_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(_3e2,_3e3){if(!this._current){this._current=this._animations[this._index=0];}if(!_3e3&&this._current.status()=="playing"){return this;}var _3e4=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_3e5=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_3e6=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_3e4);d.disconnect(_3e5);d.disconnect(_3e6);});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(_3e7,_3e8){this.pause();var _3e9=this.duration*_3e7;this._current=null;d.some(this._animations,function(a){if(a.duration<=_3e9){this._current=a;return true;}_3e9-=a.duration;return false;});if(this._current){this._current.gotoPercent(_3e9/this._current.duration,_3e8);}return this;},stop:function(_3ea){if(this._current){if(_3ea){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(_3e0,_3df);dojo.fx.chain=function(_3eb){return new _3e0(_3eb);};var _3ec=function(_3ed){this._animations=_3ed||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_3ed,function(a){var _3ee=a.duration;if(a.delay){_3ee+=a.delay;}if(this.duration<_3ee){this.duration=_3ee;}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(_3ec,{_doAction:function(_3ef,args){d.forEach(this._animations,function(a){a[_3ef].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_3f0,args){var t=this._pseudoAnimation;t[_3f0].apply(t,args);},play:function(_3f1,_3f2){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(_3f3,_3f4){var ms=this.duration*_3f3;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_3f4);});this._call("gotoPercent",arguments);return this;},stop:function(_3f5){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(_3ec,_3df);dojo.fx.combine=function(_3f6){return new _3ec(_3f6);};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 _3f7=d.style(node,"height");return Math.max(_3f7,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(_3f8){if(_3f8.reset){_3f8.reset();}});},validate:function(){var _3f9=false;return dojo.every(dojo.map(this.getDescendants(),function(_3fa){_3fa._hasBeenBlurred=true;var _3fb=_3fa.disabled||!_3fa.validate||_3fa.validate();if(!_3fb&&!_3f9){dojo.window.scrollIntoView(_3fa.containerNode||_3fa.domNode);_3fa.focus();_3f9=true;}return _3fb;}),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(_3fc){if(!_3fc.name){return;}var _3fd=map[_3fc.name]||(map[_3fc.name]=[]);_3fd.push(_3fc);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _3fe=map[name],_3ff=dojo.getObject(name,false,obj);if(_3ff===undefined){continue;}if(!dojo.isArray(_3ff)){_3ff=[_3ff];}if(typeof _3fe[0].checked=="boolean"){dojo.forEach(_3fe,function(w,i){w.set("value",dojo.indexOf(_3ff,w.value)!=-1);});}else{if(_3fe[0].multiple){_3fe[0].set("value",_3ff);}else{dojo.forEach(_3fe,function(w,i){w.set("value",_3ff[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(_400){var name=_400.name;if(!name||_400.disabled){return;}var _401=_400.get("value");if(typeof _400.checked=="boolean"){if(/Radio/.test(_400.declaredClass)){if(_401!==false){dojo.setObject(name,_401,obj);}else{_401=dojo.getObject(name,false,obj);if(_401===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_401!==false){ary.push(_401);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_401);}else{dojo.setObject(name,[prev,_401],obj);}}else{dojo.setObject(name,_401,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_402){},_getState:function(){var _403=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_403,"Error")>=0?"Error":dojo.indexOf(_403,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_404){var _405=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_404?function(name,val){_405[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _406=(this._childConnections=[]),_407=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_408){dojo.forEach(["state","disabled"],function(attr){_407.push(_408.watch(attr,function(attr,_409,_40a){_405.set("state",_405._getState());}));});});var _40b=function(){if(_405._onChangeDelayTimer){clearTimeout(_405._onChangeDelayTimer);}_405._onChangeDelayTimer=setTimeout(function(){delete _405._onChangeDelayTimer;_405._set("value",_405.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_40c){_406.push(_405.connect(_40c,"onChange",_40b));_407.push(_40c.watch("disabled",_40b));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_40d,_40e){this.onValidStateChange(_40e=="");});},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(_40f){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _410=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_410.lowest||_410.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_410.last||_410.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(_411){this.node.className="dijitDialogUnderlay "+_411;this._set("class",_411);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _412=dojo.window.getBox();os.top=_412.t+"px";os.left=_412.l+"px";is.width=_412.w+"px";is.height=_412.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 _413=this.getParent&&this.getParent();if(!(_413&&_413.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_414,_415){var node=this.domNode;if(_414){dojo.marginBox(node,_414);if(_414.t){node.style.top=_414.t+"px";}if(_414.l){node.style.left=_414.l+"px";}}var mb=_415||{};dojo.mixin(mb,_414||{});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(_416){var cls=this.baseClass+"-child "+(_416.baseClass?this.baseClass+"-"+_416.baseClass:"");dojo.addClass(_416.domNode,cls);},addChild:function(_417,_418){this.inherited(arguments);if(this._started){this._setupChild(_417);}},removeChild:function(_419){var cls=this.baseClass+"-child"+(_419.baseClass?" "+this.baseClass+"-"+_419.baseClass:"");dojo.removeClass(_419.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 _41a=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_41b,dim){var _41c=_41b.resize?_41b.resize(dim):dojo.marginBox(_41b.domNode,dim);if(_41c){dojo.mixin(_41b,_41c);}else{dojo.mixin(_41b,dojo.marginBox(_41b.domNode));dojo.mixin(_41b,dim);}};dijit.layout.layoutChildren=function(_41d,dim,_41e,_41f,_420){dim=dojo.mixin({},dim);dojo.addClass(_41d,"dijitLayoutContainer");_41e=dojo.filter(_41e,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_41e,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_41e,function(_421){var elm=_421.domNode,pos=(_421.region||_421.layoutAlign);var _422=elm.style;_422.left=dim.l+"px";_422.top=dim.t+"px";_422.position="absolute";dojo.addClass(elm,"dijitAlign"+_41a(pos));var _423={};if(_41f&&_41f==_421.id){_423[_421.region=="top"||_421.region=="bottom"?"h":"w"]=_420;}if(pos=="top"||pos=="bottom"){_423.w=dim.w;size(_421,_423);dim.h-=_421.h;if(pos=="top"){dim.t+=_421.h;}else{_422.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_423.h=dim.h;size(_421,_423);dim.w-=_421.w;if(pos=="left"){dim.l+=_421.w;}else{_422.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_421,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(_424){_424.startup();_424._started=true;});},startup:function(){if(this._started){return;}var _425=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_425&&_425.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 _426=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_427=_426.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_428=dojo.filter(_427.map(dijit.byNode),function(_429){return _429&&_429.domNode&&_429.resize;});if(_426.length==_427.length&&_428.length==1){this._singleChild=_428[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_42a,_42b){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_42a,_42b);},_scheduleLayout:function(_42c,_42d){if(this._isShown()){this._layout(_42c,_42d);}else{this._needLayout=true;this._changeSize=_42c;this._resultSize=_42d;}},_layout:function(_42e,_42f){if(_42e){dojo.marginBox(this.domNode,_42e);}var cn=this.containerNode;if(cn===this.domNode){var mb=_42f||{};dojo.mixin(mb,_42e||{});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(_430){if(_430.resize){_430.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,_431=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_431&&_431.style&&(_431.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _432=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 _433=cont.length,i=0;i<cont.length;i=_433==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(_434,node){dojo.mixin(this,_434||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_432++].join("_");}},set:function(cont,_435){if(undefined!==cont){this.content=cont;}if(_435){this._mixin(_435);}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 _436=this.onContentError(e);try{node.innerHTML=_436;}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 _437=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_437){cont=_437[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(_438){var _439={},key;for(key in _438){if(key in _439){continue;}this[key]=_438[key];}},_parse:function(){var _43a=this.node;try{var _43b={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_43b[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_43a,noStart:!this.startup,inherited:_43b,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_43c){var _43d=this["on"+type+"Error"].call(this,err);if(_43c){console.error(_43c,err);}else{if(_43d){dojo.html._setNodeContent(this.node,_43d,true);}}}});dojo.html.set=function(node,cont,_43e){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_43e){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_43e,{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(_43f,_440){if((!_43f||!_43f.template)&&_440&&!("href" in _43f)&&!("content" in _43f)){var df=dojo.doc.createDocumentFragment();_440=dojo.byId(_440);while(_440.firstChild){df.appendChild(_440.firstChild);}_43f=dojo.delegate(_43f,{content:df});}this.inherited(arguments,[_43f,_440]);},postMixInProperties:function(){this.inherited(arguments);var _441=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_441);this.errorMessage=dojo.string.substitute(this.errorMessage,_441);},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(_442){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 _443={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_443,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_443));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 _444=this._contentSetter;dojo.forEach(this.getChildren(),function(_445){if(_445.destroyRecursive){_445.destroyRecursive();}});if(_444){dojo.forEach(_444.parseResults,function(_446){if(_446.destroyRecursive&&_446.domNode&&_446.domNode.parentNode==dojo.body()){_446.destroyRecursive();}});delete _444.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_447){this.destroyDescendants();var _448=this._contentSetter;if(!(_448&&_448 instanceof dojo.html._ContentSetter)){_448=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _449=this.onContentError(e);try{this.containerNode.innerHTML=_449;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _44a=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_448.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_44a);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_447){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_44b){this.onLoadDeferred.errback(err);var _44c=this["on"+type+"Error"].call(this,err);if(_44b){console.error(_44b,err);}else{if(_44c){this._setContent(_44c,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_44d){},onDownloadError:function(_44e){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(_44f){this.containerNode.title=_44f;this._set("title",_44f);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_450,_451){var newC="dijitTooltipAB"+(_451.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_451.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 _452=(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(!_452){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_452){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 _453=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_453);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 _454=dojo.window.getBox();if(mb.w>=_454.w||mb.h>=_454.h){var w=Math.min(mb.w,Math.floor(_454.w*0.75)),h=Math.min(mb.h,Math.floor(_454.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,_455=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_455.l+(p?p.x:(_455.w-bb.w)/2)),t=Math.floor(_455.t+(p?p.y:(_455.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 _456=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_456){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_456){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();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _457=dojo.window.getBox();if(!this._oldViewport||_457.h!=this._oldViewport.h||_457.w!=this._oldViewport.w){this.layout();this._oldViewport=_457;}}));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 _458;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_458.stop();delete this._fadeInDeferred;}));_458=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){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _459;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_459.stop();delete this._fadeOutDeferred;}));_459=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(_45a,_45b){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_45a);var _45c=dijit._underlay;if(!_45c||_45c._destroyed){_45c=dijit._underlay=new dijit.DialogUnderlay(_45b);}else{_45c.set(_45a.underlayAttrs);}var _45d=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_45c.show();}dojo.style(dijit._underlay.domNode,"zIndex",_45d-1);dojo.style(_45a.domNode,"zIndex",_45d);ds.push({dialog:_45a,underlayAttrs:_45b,zIndex:_45d});},hide:function(_45e){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_45e){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(_45e.refocus){var _45f=pd.focus;if(!_45f||(pd.dialog&&!dojo.isDescendant(_45f.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_45f=pd.dialog._firstFocusItem;}try{dijit.focus(_45f);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_45e);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_460){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_460;}};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(_461,_462,_463,rtl,_464){this.tooltipobj=_464;this.tooltipobj._hovering=false;this._saveAroundNode=_462;if(this.aroundNode&&this.aroundNode===_462){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_461;var pos=dijit.placeOnScreenAroundElement(this.domNode,_462,dijit.getPopupAroundAlignment((_463&&_463.length)?_463:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_462;}});dijit.showTooltip=function(_465,_466,_467,rtl,_468){if(!dijit._masterTT){dijit._masterTT=new vcldojo._MasterTooltip();}return dijit._masterTT.show(_465,_466,_467,rtl,_468);};dijit.hideTooltip=function(_469){if(!dijit._masterTT){dijit._masterTT=new vcldojo._MasterTooltip();}return dijit._masterTT.hide(_469);};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(_46a){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_46a,this.position,!this.isLeftToRight(),this);this._connectNode=_46a;this.onShow(_46a,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 _46b=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _46c=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _46d=dojox.html._adjustCssPaths=function(_46e,_46f){if(!_46f||!_46e){return;}if(_46b){_46f=_46f.replace(_46b,function(_470,pre,_471,url,post){return pre+(new dojo._Url(_46e,"./"+url).toString())+post;});}return _46f.replace(_46c,function(_472,_473,_474,_475,_476,_477){if(_474){return "@import \""+(new dojo._Url(_46e,"./"+_474).toString())+"\""+_477;}else{return "url("+(new dojo._Url(_46e,"./"+_476).toString())+")"+_477;}});};var _478=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _479=dojox.html._adjustHtmlPaths=function(_47a,cont){var url=_47a||"./";return cont.replace(_478,function(tag,_47b,name,_47c,_47d,_47e,_47f,end){return _47b+(name?(name+"="+_47c+(new dojo._Url(url,_47d).toString())+_47c):("style="+_47e+_46d(url,_47f)+_47e))+end;});};var _480=dojox.html._snarfStyles=function(_481,cont,_482){_482.attributes=[];return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_483,_484,_485,_486,_487,href){var i,attr=(_484||_486||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_485){i=_482.push(_481?_46d(_481,_485):_485);}else{i=_482.push("@import \""+href+"\";");attr=attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(attr){attr=attr.split(/\s+/);var _488={},tmp;for(var j=0,e=attr.length;j<e;j++){tmp=attr[j].split("=");_488[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_482.attributes[i-1]=_488;}return "";});};var _489=dojox.html._snarfScripts=function(cont,_48a){_48a.code="";cont=cont.replace(/<[!][-][-](.|\s)*?[-][-]>/g,function(_48b){return _48b.replace(/<(\/?)script\b/ig,"&lt;$1Script");});function _48c(src){if(_48a.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){_48a.code+=code+";";},error:_48a.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?(?:dojo\/|text\/html\b))(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_48d,_48e,src,code){if(src){_48c(src);}else{_48a.code+=code;}return "";});};var _48f=dojox.html.evalInGlobal=function(code,_490){_490=_490||dojo.doc.body;var n=_490.ownerDocument.createElement("script");n.type="text/javascript";_490.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(_491){this._styleNodes=[];var st,att,_492,doc=this.node.ownerDocument;var head=doc.getElementsByTagName("head")[0];for(var i=0,e=_491.length;i<e;i++){_492=_491[i];att=_491.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=_492;}else{st.appendChild(doc.createTextNode(_492));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var cont=this.content,node=this.node;var _493=this._styles;if(dojo.isString(cont)){if(this.adjustPaths&&this.referencePath){cont=_479(this.referencePath,cont);}if(this.renderStyles||this.cleanContent){cont=_480(this.referencePath,cont,_493);}if(this.executeScripts){var _494=this;var _495={downloadRemote:true,errBack:function(e){_494._onError.call(_494,"Exec","Error downloading remote script in \""+_494.id+"\"",e);}};cont=_489(cont,_495);this._code=_495.code;}}this.content=cont;},onEnd:function(){var code=this._code,_496=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo.destroy(this._styleNodes.pop());}}if(this.renderStyles&&_496&&_496.length){this._renderStyles(_496);}if(this.executeScripts&&code){if(this.cleanContent){code=code.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){code=code.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_48f(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,_497){if(!_497){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_497,{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 _498=this._contentSetter;if(!(_498&&_498 instanceof dojox.html._ContentSetter)){_498=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _499=this.onContentError(e);try{this.containerNode.innerHTML=_499;}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 _49a=dojo.partial(dojo.addClass,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_49a("dojoxResizeNW");break;case "x":this._resizeX=true;_49a("dojoxResizeW");break;case "y":this._resizeY=true;_49a("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);console.log(c);console.log(dojo.window.getBox());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 _49b=this.dockTo;if(this.dockTo){this.dockTo=dijit.byId(this.dockTo);}else{this.dockTo=dijit.byId("dojoxGlobalFloatingDock");}if(!this.dockTo){var _49c,_49d;if(_49b){_49c=_49b;_49d=dojo.byId(_49b);}else{_49d=dojo.create("div",null,dojo.body());dojo.addClass(_49d,"dojoxFloatingDockDefault");_49c="dojoxGlobalFloatingDock";}this.dockTo=new dojox.layout.Dock({id:_49c,autoPosition:"south"},_49d);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(_49e){dojo.deprecated("pane.setTitle","Use pane.set('title', someTitle)","2.0");this.set("title",_49e);},close:function(){if(!this.closable){return;}dojo.unsubscribe(this._listener);this.hide(dojo.hitch(this,function(){this.destroyRecursive();}));},hide:function(_49f){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(_49f){_49f();}})}).play();},show:function(_4a0){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 _4a0=="function"){_4a0();}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._currentState=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 _4a1={l:0,t:0,w:dim.w,h:(dim.h-this.focusNode.offsetHeight)};dojo.marginBox(this.canvas,_4a1);this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(_4a1);}},bringToTop:function(){var _4a2=dojo.filter(this._allFPs,function(i){return i!==this;},this);_4a2.sort(function(a,b){return a.domNode.style.zIndex-b.domNode.style.zIndex;});_4a2.push(this);dojo.forEach(_4a2,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(_4a3){var div=dojo.create("li",null,this.containerNode),node=new dojox.layout._DockNode({title:_4a3.title,paneRef:_4a3},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 _4a4=dojo.window.getBox();var s=this.domNode.style;s.left=_4a4.l+"px";s.width=(_4a4.w-2)+"px";s.top=(_4a4.h+_4a4.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 _4a5={"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 _4a5){ds.fontSize=p;_4a5[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _4a5;};var _4a6=null;dhm.getCachedFontMeasurements=function(_4a7){if(_4a7||!_4a6){_4a6=dhm.getFontMeasurements();}return _4a6;};var _4a8=null,_4a9={};dhm.getTextBox=function(text,_4aa,_4ab){var m,s;if(!_4a8){m=_4a8=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=_4a8;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_4aa){for(var i in _4aa){if(i in _4a9){continue;}s[i]=_4aa[i];}}if(arguments.length>2&&_4ab){m.className=_4ab;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _4ac={w:16,h:16};dhm.getScrollbar=function(){return {w:_4ac.w,h:_4ac.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_4ad){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);_4ac.w=n.offsetWidth-n.clientWidth;_4ac.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(_4ae,_4af){if(_4af>=0){var s=_4ae.style;var v=_4af+"px";if(_4ae&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_4b0,_4b1,_4b2,_4b3){var evts=(_4b3?_4b3:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_4b1.connect(_4b0,"on"+evts[i],_4b2);}};dgu.removeNode=function(_4b4){_4b4=dojo.byId(_4b4);_4b4&&_4b4.parentNode&&_4b4.parentNode.removeChild(_4b4);return _4b4;};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(_4b5,_4b6,_4b7){if(_4b5.length<=_4b6){_4b5[_4b6]=_4b7;}else{_4b5.splice(_4b6,0,_4b7);}};dgu.arrayRemove=function(_4b8,_4b9){_4b8.splice(_4b9,1);};dgu.arraySwap=function(_4ba,inI,inJ){var _4bb=_4ba[inI];_4ba[inI]=_4ba[inJ];_4ba[inJ]=_4bb;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _4bc=function(_4bd){var i=0,n,p=_4bd.parentNode;while((n=p.childNodes[i++])){if(n==_4bd){return i-1;}}return -1;};var _4be=function(_4bf){if(!_4bf){return;}var _4c0=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_4bf,true);};var ws=dijit.registry.filter(_4c0);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _4c1=function(_4c2){var node=dojo.byId(_4c2);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _4c3=function(_4c4,_4c5){var _4c6=[];var i=0,n;while((n=_4c4.childNodes[i])){i++;if(_4c1(n)==_4c5){_4c6.push(n);}}return _4c6;};var _4c7=function(_4c8){return _4c3(_4c8,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_4c9){this.setContentNodes(_4c9);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(_4ca,_4cb,_4cc){switch(arguments.length){case 3:this.rowsPerPage=_4cc;case 2:this.keepRows=_4cb;case 1:this.rowCount=_4ca;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(_4cd,_4ce){return _4cd?(Math.ceil(_4cd/_4ce)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_4cf){this.keepRows=_4cf;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_4d0){this.contentNodes=_4d0;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(_4d1){this.invalidateNodes();this.rowCount=_4d1;var _4d2=this.pageCount;if(_4d2===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_4d2){for(var i=_4d2-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_4d2){this.height+=this.defaultPageHeight*(this.pageCount-_4d2-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_4d3){return Boolean(this.getDefaultPageNode(_4d3));},measurePage:function(_4d4){if(this.grid.rowHeight){var _4d5=this.grid.rowHeight+1;return ((_4d4+1)*this.rowsPerPage>this.rowCount?this.rowCount-_4d4*this.rowsPerPage:this.rowsPerPage)*_4d5;}var n=this.getDefaultPageNode(_4d4);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_4d6,_4d7){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_4d6].style.top=_4d7+"px";}},repositionPages:function(_4d8){var _4d9=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_4d9[_4d8];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_4d8):0);for(var p=_4d8+1;p<=last;p++){n=_4d9[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_4da){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_4da]);}},preparePage:function(_4db,_4dc){var p=(_4dc?this.popPage():null);for(var i=0;i<this.colCount;i++){var _4dd=this.pageNodes[i];var _4de=(p===null?this.createPageNode():this.invalidatePageNode(p,_4dd));_4de.pageIndex=_4db;_4dd[_4db]=_4de;}},renderPage:function(_4df){var _4e0=[];var i,j;for(i=0;i<this.colCount;i++){_4e0[i]=this.pageNodes[i][_4df];}for(i=0,j=_4df*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_4e0);}},removePage:function(_4e1){for(var i=0,j=_4e1*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_4e2){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_4e2,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_4e3){},pacifying:false,pacifyTicks:200,setPacifying:function(_4e4){if(this.pacifying!=_4e4){this.pacifying=_4e4;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _4e5=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _4e5;},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 _4e6=(!this._invalidating);if(!_4e6){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_4e6=true;}}if(_4e6){this.needPage(this.page,this.pageTop);}var _4e7=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _4e8=this.getPageHeight(this.page);this.averageRowHeight=(_4e8>0&&_4e7>0)?(_4e8/_4e7):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _4e9=this.pageCount-1;var _4ea=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_4e9]=_4ea;return _4ea;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_4eb,_4ec,_4ed){if(this.pageExists(_4eb)){var oh=this.getPageHeight(_4eb);var h=(this.measurePage(_4eb));if(h===undefined){h=oh;}this.pageHeights[_4eb]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_4ec)){if(!_4ed){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_4eb);}}else{this.repositionPages(_4eb);}}return h;}return 0;},rowHeightChanged:function(_4ee,_4ef){this.updatePageHeight(Math.floor(_4ee/this.rowsPerPage),false,_4ef);},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(_4f0){var ph=this.pageHeights[_4f0];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_4f1){return this.stack.push(_4f1);},popPage:function(){return this.stack.shift();},findPage:function(_4f2){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_4f2){break;}}this.page=i;this.pageTop=h;},buildPage:function(_4f3,_4f4,_4f5){this.preparePage(_4f3,_4f4);this.positionPage(_4f3,_4f5);this.installPage(_4f3);this.renderPage(_4f3);this.pushPage(_4f3);},needPage:function(_4f6,_4f7){var h=this.getPageHeight(_4f6),oh=h;if(!this.pageExists(_4f6)){this.buildPage(_4f6,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_4f7);h=this.updatePageHeight(_4f6,true);}else{this.positionPage(_4f6,_4f7);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_4f8){this.grid.scrollTop=_4f8;if(this.colCount){this.startPacify();this.findPage(_4f8);var h=this.height;var b=this.getScrollBottom(_4f8);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,_4f8);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_4f9){return (this.windowHeight>=0?_4f9+this.windowHeight:-1);},processNodeEvent:function(e,_4fa){var t=e.target;while(t&&(t!=_4fa)&&t.parentNode&&(t.parentNode.parentNode!=_4fa)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_4fa)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_4bc(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_4fb,_4fc){},removeRow:function(_4fd){},getDefaultPageNode:function(_4fe){return this.getDefaultNodes()[_4fe];},positionPageNode:function(_4ff,_500){},getPageNodePosition:function(_501){return _501.offsetTop;},invalidatePageNode:function(_502,_503){var p=_503[_502];if(p){delete _503[_502];this.removePage(_502,p);_4be(p);p.innerHTML="";}return p;},getPageRow:function(_504){return _504*this.rowsPerPage;},getLastPageRow:function(_505){return Math.min(this.rowCount,this.getPageRow(_505+1))-1;},getFirstVisibleRow:function(_506,_507,_508){if(!this.pageExists(_506)){return 0;}var row=this.getPageRow(_506);var _509=this.getDefaultNodes();var rows=_4c7(_509[_506]);for(var i=0,l=rows.length;i<l&&_507<_508;i++,row++){_507+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_50a,_50b,_50c){if(!this.pageExists(_50a)){return 0;}var _50d=this.getDefaultNodes();var row=this.getLastPageRow(_50a);var rows=_4c7(_50d[_50a]);for(var i=rows.length-1;i>=0&&_50b>_50c;i--,row--){_50b-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_50e){var _50f=this.getDefaultNodes();var rows=_4c7(_50f[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_50e){this.offset=h-(t-_50e);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_510){var _511=Math.floor(_510/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_511;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_511;this.needPage(_511,this.pageTop);var _512=this.getDefaultNodes();var rows=_4c7(_512[_511]);var r=_510-this.rowsPerPage*_511;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 _513=function(_514){try{dojox.grid.util.fire(_514,"focus");dojox.grid.util.fire(_514,"select");}catch(e){}};var _515=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(_516){this._props=_516||{};dojo.mixin(this,_516);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_517,_518){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_517!=this.defaultValue&&f)?f.apply(s,_518):_517;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(_519,_51a){var f,i=this.grid.edit.info,d=this.get?this.get(_519,_51a):(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==_519&&i.cell==this))){return this.formatEditing(d,_519);}else{return this._defaultFormat(d,[d,_519,this]);}},formatEditing:function(_51b,_51c){},getNode:function(_51d){return this.view.getCellNode(_51d,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_51e){return (this.getNode(_51e)||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(_51f,_520){this.grid.edit.applyCellEdit(_51f,this,_520);},cancelEdit:function(_521){this.grid.doCancelEdit(_521);},_onEditBlur:function(_522){if(this.grid.edit.isEditCell(_522,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_523,_524){if(this.commitOnBlur){dojo.connect(_523,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_524),250);});}},needFormatNode:function(_525,_526){this._formatPending=true;_515(this,"_formatNode",_525,_526);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_527,_528){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_528),_527,_528);}},formatNode:function(_529,_52a,_52b){if(dojo.isIE){_515(this,"focus",_52b,_529);}else{this.focus(_52b,_529);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_52c){return this.getEditNode(_52c)[this._valueProp];},setValue:function(_52d,_52e){var n=this.getEditNode(_52d);if(n){n[this._valueProp]=_52e;}},focus:function(_52f,_530){_513(_530||this.getEditNode(_52f));},save:function(_531){this.value=this.value||this.getValue(_531);},restore:function(_532){this.setValue(_532,this.value);},_finish:function(_533){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_534){this.applyEdit(this.getValue(_534),_534);this._finish(_534);},cancel:function(_535){this.cancelEdit(_535);this._finish(_535);}});dgc._Base.markupFactory=function(node,_536){var d=dojo;var _537=d.trim(d.attr(node,"formatter")||"");if(_537){_536.formatter=dojo.getObject(_537)||_537;}var get=d.trim(d.attr(node,"get")||"");if(get){_536.get=dojo.getObject(get);}var _538=function(attr,cell,_539){var _53a=d.trim(d.attr(node,attr)||"");if(_53a){cell[_539||attr]=!(_53a.toLowerCase()=="false");}};_538("sortDesc",_536);_538("editable",_536);_538("alwaysEditing",_536);_538("noresize",_536);_538("draggable",_536);var _53b=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_53b){_536.defaultValue=_53b;}var _53c=function(attr,cell,_53d){var _53e=d.trim(d.attr(node,attr)||"")||undefined;if(_53e){cell[_53d||attr]=_53e;}};_53c("styles",_536);_53c("headerStyles",_536);_53c("cellStyles",_536);_53c("classes",_536);_53c("headerClasses",_536);_53c("cellClasses",_536);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_53f,_540){this.needFormatNode(_53f,_540);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_53f+"\">";},formatNode:function(_541,_542,_543){this.inherited(arguments);this.registerOnBlur(_541,_543);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_544){this.inherited(arguments);var n=this.getEditNode(_544);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_545){dgc._Base.markupFactory(node,_545);var d=dojo;var _546=d.trim(d.attr(node,"keyFilter")||"");if(_546){_545.keyFilter=new RegExp(_546);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_547){return _547+1;}});dgc.RowIndex.markupFactory=function(node,_548){dgc.Cell.markupFactory(node,_548);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_549){this.values=this.values||this.options;},formatEditing:function(_54a,_54b){this.needFormatNode(_54a,_54b);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",(_54a==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_54c){var n=this.getEditNode(_54c);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 _54d=d.trim(d.attr(node,"options")||"");if(_54d){var o=_54d.split(",");if(o[0]!=_54d){cell.options=o;}}var _54e=d.trim(d.attr(node,"values")||"");if(_54e){var v=_54e.split(",");if(v[0]!=_54e){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_54f,_550){this.formatNode(this.getEditNode(_550),_54f,_550);},applyStaticValue:function(_551){var e=this.grid.edit;e.applyCellEdit(this.getValue(_551),this,_551);e.start(this,_551,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_552,_553){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_552?" 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 _554=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _555=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _556=function(_557,_558){return _557&&((_557.rows||0)[_558]||_557.childNodes[_558]);};var _559=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _55a=function(_55b,_55c){for(var n=_55b;n&&_55c(n);n=n.parentNode){}return n;};var _55d=function(_55e){var name=_55e.toUpperCase();return function(node){return node.tagName!=name;};};var _55f=dojox.grid.util.rowIndexTag;var _560=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(_561,_562,_563,_564){var _565=[],html;if(_564){var _566=_561.index!=_561.grid.getSortIndex()?"":_561.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_561.id){_561.id=this.grid.id+"Hdr"+_561.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_566,"id=\"",_561.id,"\""];}else{var _567=this.grid.editable&&!_561.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_567];}if(_561.colSpan){html.push(" colspan=\"",_561.colSpan,"\"");}if(_561.rowSpan){html.push(" rowspan=\"",_561.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_561.classes){html.push(_561.classes," ");}if(_563){html.push(_563," ");}_565.push(html.join(""));_565.push("");html=["\" idx=\"",_561.index,"\" style=\""];if(_562&&_562[_562.length-1]!=";"){_562+=";";}html.push(_561.styles,_562||"",_561.hidden?"display:none;":"");if(_561.unitWidth){html.push("width:",_561.unitWidth,";");}_565.push(html.join(""));_565.push("");html=["\""];if(_561.attrs){html.push(" ",_561.attrs);}html.push(">");_565.push(html.join(""));_565.push("");_565.push(_564?"</th>":"</td>");return _565;},isCellNode:function(_568){return Boolean(_568&&_568!=dojo.doc&&dojo.attr(_568,"idx"));},getCellNodeIndex:function(_569){return _569?Number(dojo.attr(_569,"idx")):-1;},getCellNode:function(_56a,_56b){for(var i=0,row;((row=_556(_56a.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_56b){return cell;}}}return null;},findCellTarget:function(_56c,_56d){var n=_56c;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_560 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_560]!=this.view.id))&&(n!=_56d)){n=n.parentNode;}return n!=_56d?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(_56e,_56f){var n=_56e;while(n&&(n!=this.domNode)&&(!(_56f in n)||(_560 in n&&n[_560]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_570){return this.findTarget(_570,_55f);},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 _571=this.grid.get,_572=this.view.structure.cells;for(var j=0,row;(row=_572[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_571;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_573,_574){var html=this.getTableArray(),v=this.view,_575=v.structure.cells,item=this.grid.getItem(_574);dojox.grid.util.fire(this.view,"onBeforeRow",[_574,_575]);for(var j=0,row;(row=_575[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(_574,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[_55f];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(_576,_577){var html=this.getTableArray(),_578=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_578]);for(var j=0,row;(row=_578[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_579;(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+"'";}}_579=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_579[5]=(_577!=undefined?_577:_576(cell));_579[3]=cell.customStyles.join(";");_579[1]=cell.customClasses.join(" ");html.push(_579.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=_55a(e.target,_55d("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_55a(n,_55d("table"));x-=(table&&table.offsetLeft)||0;}}n=_55a(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=_554(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,_57a){var _57b=dojo.contentBox(e.sourceView.headerNode);if(_57a){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _57c=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:(_57c.h+_57b.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _57d=[],_57e=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_57e[i]);i++){_57d.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _57f=e.grid.views.views;var _580=[];for(var j=view.idx+adj,_581;(_581=_57f[j]);j=j+adj){_580.push({node:_581.headerNode,left:window.parseInt(_581.headerNode.style.left)});}var _582=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:_57b.w,table:_582,tw:dojo.contentBox(_582).w,spanners:_57d,followers:_580};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(_583,_584,_585){var _586=_585.l;var data={deltaX:_586,w:_583.w+(dojo._isBodyLtr()?_586:-_586),vw:_583.vw+_586,tw:_583.tw+_586};this.dragRecord={inDrag:_583,mover:_584,leftTop:_585};if(data.w>=this.minColWidth){if(!_584){this.doResizeNow(_583,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_587){if(this.dragRecord){var _588=this.dragRecord.leftTop;var _589=dojo._isBodyLtr()?_588.l:-_588.l;_589+=Math.max(_587.w+_589,this.minColWidth)-(_587.w+_589);if(dojo.isWebKit&&_587.spanners.length){_589+=dojo._getPadBorderExtents(_587.spanners[0].node).w;}var data={deltaX:_589,w:_587.w+_589,vw:_587.vw+_589,tw:_587.tw+_589};this.doResizeNow(_587,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_587.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_587.index);},doResizeNow:function(_58a,data){_58a.view.convertColPctToFixed();if(_58a.view.flexCells&&!_58a.view.testFlexCells()){var t=_559(_58a.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_58a.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_58a.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_58a.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_58a.node.style.width=data.w+"px";_58a.view.setColWidth(_58a.index,data.w);_58a.view.headerNode.style.width=data.vw+"px";_58a.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_58a.view.headerNode.scrollLeft=_58a.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_58b){var _58c=_58b.length;if(!_58c){return;}this.map=[];var row;for(var k=0;(row=_58b[k]);k++){this.map[k]=[];}for(var j=0;(row=_58b[j]);j++){for(var i=0,x=0,cell,_58d,_58e;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_58e=cell.rowSpan||1;_58d=cell.colSpan||1;for(var y=0;y<_58e;y++){for(var s=0;s<_58d;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_58d;}}},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(_58f,_590){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_590&&cell.r==_58f){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_591,_592,_593){var row=_591&&_591.rows[_592];return row&&row.cells[_593];},_findOverlappingNodes:function(_594,_595,_596){var _597=[];var m=this.getMapCoords(_595,_596);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(_594,rw.r,rw.c):null);if(n){_597.push(n);}}return _597;},findOverlappingNodes:function(_598){return this._findOverlappingNodes(_559(_598),_555(_598.parentNode),_554(_598));}});})();}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,_599){this.node=dojo.byId(node);if(!_599){_599={};}this.creator=_599.creator||null;this.skipForm=_599.skipForm;this.parent=_599.dropParent&&dojo.byId(_599.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_599&&_599._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,_59a,_59b){if(!this.parent.firstChild){_59b=null;}else{if(_59a){if(!_59b){_59b=this.parent.firstChild;}}else{if(_59b){_59b=_59b.nextSibling;}}}if(_59b){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,_59b);}}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(_59c,node){_59c._skipStartup=true;return new dojo.dnd.Container(node,_59c);},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,_59d){var _59e="dojoDnd"+type;var _59f=type.toLowerCase()+"State";dojo.replaceClass(this.node,_59e+_59d,_59e+this[_59f]);this[_59f]=_59d;},_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 _5a0=node.parentNode;_5a0;node=_5a0,_5a0=node.parentNode){if(_5a0==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 _5a1=item&&dojo.isObject(item),data,type,n;if(_5a1&&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=(_5a1&&item.data)?item.data:item;type=(_5a1&&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,_5a2){if(!_5a2){_5a2={};}this.singular=_5a2.singular;this.autoSync=_5a2.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(_5a3,data,_5a4,_5a5){var _5a6=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_5a6.call(this,item,hint);if(_5a3){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,_5a4,_5a5);this._normalizedCreator=_5a6;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_5a7,node){_5a7._skipStartup=true;return new dojo.dnd.Selector(node,_5a7);},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(_5a8){this.manager=_5a8;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"}}),_5a9=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:_5a9.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(_5a9.creator){node=_5a9._normalizedCreator(_5a9.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _5aa=dojo.create("table"),_5ab=dojo.create("tbody",null,_5aa);_5ab.appendChild(node);node=_5aa;}}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(_5ac){if(this.avatar){this.target=(_5ac&&_5ac.targetState!="Disabled")?_5ac:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_5ac]);},outSource:function(_5ad){if(this.avatar){if(this.target==_5ad){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_5ae,_5af,copy){this.source=_5ae;this.nodes=_5af;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_5ae,_5af,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 _5b0=Boolean(this.target&&flag);if(this.canDropFlag!=_5b0){this.canDropFlag=_5b0;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))),_5b1=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_5b1);dojo.publish("/dnd/drop",_5b1);}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,_5b2){dojo.mixin(this,dojo.mixin({},_5b2));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(_5b3,_5b4){if(this==_5b3){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_5b4.length;++i){var type=_5b3.getItem(_5b4[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(_5b5,self){if(_5b5){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(_5b6,node){_5b6._skipStartup=true;return new dojo.dnd.Source(node,_5b6);},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 _5b7=this.getSelectedNodes();if(_5b7.length){m.startDrag(this,_5b7,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _5b8=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_5b8=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_5b8=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_5b8!=this.before){this._markTargetAnchor(_5b8);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(_5b9){if(this!=_5b9){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(_5ba,_5bb,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_5ba?(copy?"Copied":"Moved"):"");}var _5bc=this.accept&&this.checkAcceptance(_5ba,_5bb);this._changeState("Target",_5bc?"":"Disabled");if(this==_5ba){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_5bd,_5be,copy,_5bf){if(this==_5bf){this.onDrop(_5bd,_5be,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(_5c0,_5c1,copy){if(this!=_5c0){this.onDropExternal(_5c0,_5c1,copy);}else{this.onDropInternal(_5c1,copy);}},onDropExternal:function(_5c2,_5c3,copy){var _5c4=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _5c4.call(this,_5c2.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_5c2.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=_5c2.getItem(node.id);_5c2.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_5c2.selectNone();}this.insertNodes(true,_5c3,this.before,this.current);if(!copy&&this.creator){_5c2.deleteSelectedNodes();}this._normalizedCreator=_5c4;},onDropInternal:function(_5c5,copy){var _5c6=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _5c6.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,_5c5,this.before,this.current);this._normalizedCreator=_5c6;},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(_5c7){if(this.current==this.targetAnchor&&this.before==_5c7){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_5c7;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,_5c8){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_5c9,node){_5c9._skipStartup=true;return new dojo.dnd.Target(node,_5c9);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_5ca){this.autoSync=true;},markupFactory:function(_5cb,node){_5cb._skipStartup=true;return new dojo.dnd.AutoSource(node,_5cb);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _5cc=function(_5cd,_5ce){return _5cd.style.cssText==undefined?_5cd.getAttribute("style"):_5cd.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(_5cf){var vs=(this.structure=_5cf);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(_5d0){if(_5d0){dojo.forEach(dojo.query("[widgetId]",_5d0).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(_5d1,_5d2){this._onBeforeRow(_5d1,_5d2);if(_5d1>=0){this._cleanupRowWidgets(this.getRowNode(_5d1));}},onAfterRow:function(_5d3,_5d4,_5d5){this._onAfterRow(_5d3,_5d4,_5d5);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_5d5),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _5d6=window.parseInt(dojo.attr(n,"cellIdx"),10);var _5d7=g.getCell(_5d6);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 _5d8=this.hasVScrollbar();var _5d9=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_5d9||_5d9=="hidden"){_5d8=false;}else{if(_5d9=="scroll"){_5d8=true;}}return (_5d8?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(_5da){this.headerContentNode.firstChild.style.width=_5da+"px";if(this.viewWidth){this.viewWidth=_5da+"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 _5db=this.grid.layout.cells;var _5dc=dojo.hitch(this,function(node,_5dd){!dojo._isBodyLtr()&&(_5dd=!_5dd);var inc=_5dd?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_5db[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_5db[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _5de="dojoxGrid_bottomMarker";var _5df="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_5de);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_5df);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_5de,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_5df,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _5e0=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(_5e1){var src=this.source;if(src.current==src.targetAnchor&&src.before==_5e1){return;}if(src.targetAnchor&&_5dc(src.targetAnchor,src.before)){src._removeItemClass(_5dc(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_5e1);var _5e2=_5e1?src.targetAnchor:_5dc(src.targetAnchor,src.before);var _5e3=0;if(!_5e2){_5e2=src.targetAnchor;_5e3=dojo.contentBox(_5e2).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_5e2,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_5e3);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_5e0+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_5dc(src.targetAnchor,src.before)){src._addItemClass(_5dc(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_5dc(src.targetAnchor,src.before)){src._removeItemClass(_5dc(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(_5e4,_5e5,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _5e6=this.grid.views.views;var _5e7=_5e6[_5e4.viewIndex];var _5e8=_5e6[this.index];if(_5e8!=_5e7){_5e7.convertColPctToFixed();_5e8.convertColPctToFixed();}},_onDndDrop:function(_5e9,_5ea,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 _5eb=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_5ea[0]).w;if(_5e9.viewIndex!==this.index){var _5ec=this.grid.views.views;var _5ed=_5ec[_5e9.viewIndex];var _5ee=_5ec[this.index];if(_5ed.viewWidth&&_5ed.viewWidth!="auto"){_5ed.setColumnsWidth(_5ed.getColumnsWidth()-w);}if(_5ee.viewWidth&&_5ee.viewWidth!="auto"){_5ee.setColumnsWidth(_5ee.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _5ef=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_5ef.moveColumn(_5e9.viewIndex,idx,_5eb(_5ea[0]),_5eb(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(_5f0){var n=_5f0.name||_5f0.grid.getCellName(_5f0);var ret=["<div class=\"dojoxGridSortNode"];if(_5f0.index!=_5f0.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_5f0.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_5f0.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(_5f1){var _5f2=this._hasHScroll||false;if(this._hasHScroll==undefined||_5f1){if(this.noscroll){this._hasHScroll=false;}else{var _5f3=dojo.style(this.scrollboxNode,"overflow");if(_5f3=="hidden"){this._hasHScroll=false;}else{if(_5f3=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_5f2!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_5f4){var _5f5=this._hasVScroll||false;if(this._hasVScroll==undefined||_5f4){if(this.noscroll){this._hasVScroll=false;}else{var _5f6=dojo.style(this.scrollboxNode,"overflow");if(_5f6=="hidden"){this._hasVScroll=false;}else{if(_5f6=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_5f5!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _5f7=false;this.grid.initialWidth="";var _5f8=dojo.query("th",this.headerContentNode);var _5f9=dojo.map(_5f8,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_5f7=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_5f7){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _5fa=cell.view.getHeaderCellNode(cell.index);if(_5fa&&dojo.hasAttr(_5fa,"vIdx")){var vIdx=window.parseInt(dojo.attr(_5fa,"vIdx"));this.setColWidth(idx,_5f9[vIdx]);dojo.removeAttr(_5fa,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_5fb){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 _5fc=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(_5fb||(this.noscroll&&_5fc())){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(_5fd){var _5fe=this.createRowNode(_5fd);this.buildRow(_5fd,_5fe);return _5fe;},createRowNode:function(_5ff){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]=_5ff;this.rowNodes[_5ff]=node;return node;},buildRow:function(_600,_601){this.buildRowContent(_600,_601);this.styleRow(_600,_601);},buildRowContent:function(_602,_603){_603.innerHTML=this.content.generateHtml(_602,_602);if(this.flexCells&&this.contentWidth){_603.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_602,this.structure.cells,_603]);},rowRemoved:function(_604){if(_604>=0){this._cleanupRowWidgets(this.getRowNode(_604));}this.grid.edit.save(this,_604);delete this.rowNodes[_604];},getRowNode:function(_605){return this.rowNodes[_605];},getCellNode:function(_606,_607){var row=this.getRowNode(_606);if(row){return this.content.getCellNode(row,_607);}},getHeaderCellNode:function(_608){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_608);}},styleRow:function(_609,_60a){_60a._style=_5cc(_60a);this.styleRowNode(_609,_60a);},styleRowNode:function(_60b,_60c){if(_60c){this.doStyleRowNode(_60b,_60c);}},doStyleRowNode:function(_60d,_60e){this.grid.styleRowNode(_60d,_60e);},updateRow:function(_60f){var _610=this.getRowNode(_60f);if(_610){_610.style.height="";this.buildRow(_60f,_610);}return _610;},updateRowStyles:function(_611){this.styleRowNode(_611,this.getRowNode(_611));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_612){if(dojo.isFF>=13){this._nativeScroll=true;}var _613=dojo._isBodyLtr();if(this.firstScroll<2){if((!_613&&this.firstScroll==1)||(_613&&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=_613?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(_614){this.lastTop=_614;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_614;}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(_615,_616){this.grid.setCellWidth(_615,_616+"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 _617=this.manager.source,node;if(_617.creator){node=_617._normalizedCreator(_617.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _618,_619;if(node.tagName.toLowerCase()=="tr"){_618=dd.createElement("table");_619=dd.createElement("tbody");_619.appendChild(node);_618.appendChild(_619);node=_618;}else{if(node.tagName.toLowerCase()=="th"){_618=dd.createElement("table");_619=dd.createElement("tbody");var r=dd.createElement("tr");_618.cellPadding=_618.cellSpacing="0";r.appendChild(node);_619.appendChild(r);_618.appendChild(_619);node=_618;}}}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 _61a=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 _61a.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(_61b,_61c){var w=this.contentWidth||0;_61c.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(_61d,_61e){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_61d)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_61d)){n.push("dojoxGridRowbarSelected");}_61e.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(_61f){this.grid=_61f;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_620,_621,_622,_623,_624){var _625=this.structure[_620].cells[0];var _626=this.structure[_621].cells[0];var cell=null;var _627=0;var _628=0;for(var i=0,c;c=_625[i];i++){if(c.index==_622){_627=i;break;}}cell=_625.splice(_627,1)[0];cell.view=this.grid.views.views[_621];for(i=0,c=null;c=_626[i];i++){if(c.index==_623){_628=i;break;}}if(!_624){_628+=1;}_626.splice(_628,0,cell);var _629=this.grid.getCell(this.grid.getSortIndex());if(_629){_629._currentlySorted=this.grid.getSortAsc();}this.cells=[];_622=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=_622;this.cells.push(c);if("_currentlySorted" in c){var si=_622+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_622++;}}}dojo.forEach(this.cells,function(c){var _62a=c.markup[2].split(" ");var _62b=parseInt(_62a[1].substring(5));if(_62b!=c.index){_62a[1]="idx=\""+c.index+"\"";c.markup[2]=_62a.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_62c,_62d){var cell=this.cells[_62c];if(cell.hidden==_62d){cell.hidden=!_62d;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(_62e,_62f,_630){var self=this;var _631=function(_632){var w=0;if(_632.colSpan>1){w=0;}else{w=_632.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _633={grid:this.grid,subrow:_62e,layoutIndex:_62f,index:this.cells.length};if(_630&&_630 instanceof dojox.grid.cells._Base){var _634=dojo.clone(_630);_633.unitWidth=_631(_634._props);_634=dojo.mixin(_634,this._defaultCellProps,_630._props,_633);return _634;}var _635=_630.type||_630.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_635)){_635=dojo.getObject(_635);}_633.unitWidth=_631(_630);return new _635(dojo.mixin({},this._defaultCellProps,_630,_633));},addRowDef:function(_636,_637){var _638=[];var _639=0,_63a=0,_63b=true;for(var i=0,def,cell;(def=_637[i]);i++){cell=this.addCellDef(_636,i,def);_638.push(cell);this.cells.push(cell);if(_63b&&cell.relWidth){_639+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_63a+=window.parseInt(w,10);}else{if(w=="auto"){_63b=false;}}}}}if(_639&&_63b){dojo.forEach(_638,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_639)*(100-_63a))+"%";}});}return _638;},addRowsDef:function(_63c){var _63d=[];if(dojo.isArray(_63c)){if(dojo.isArray(_63c[0])){for(var i=0,row;_63c&&(row=_63c[i]);i++){_63d.push(this.addRowDef(i,row));}}else{_63d.push(this.addRowDef(0,_63c));}}return _63d;},addViewDef:function(_63e){this._defaultCellProps=_63e.defaultCell||{};if(_63e.width&&_63e.width=="auto"){delete _63e.width;}return dojo.mixin({},_63e,{cells:this.addRowsDef(_63e.rows||_63e.cells)});},setStructure:function(_63f){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 _640=this.grid.rowSelector;if(_640=="false"){sel=null;}else{if(_640!="true"){sel["width"]=_640;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _641=function(def){return ("name" in def||"field" in def||"get" in def);};var _642=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_641(def[0])){return true;}}return false;};var _643=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_641(def))));};if(dojo.isArray(_63f)){var _644=false;for(var i=0,st;(st=_63f[i]);i++){if(_643(st)){_644=true;break;}}if(!_644){s.push(this.addViewDef({cells:_63f}));}else{for(i=0;(st=_63f[i]);i++){if(_642(st)){s.push(this.addViewDef({cells:st}));}else{if(_643(st)){s.push(this.addViewDef(st));}}}}}else{if(_643(_63f)){s.push(this.addViewDef(_63f));}}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(_645){this.grid=_645;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_646){_646.idx=this.views.length;this.views.push(_646);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _647=[];for(var i=0,v;v=this.views[i];i++){_647.push(v.contentNode);}return _647;},forEach:function(_648){for(var i=0,v;v=this.views[i];i++){_648(v,i);}},onEach:function(_649,_64a){_64a=_64a||[];for(var i=0,v;v=this.views[i];i++){if(_649 in v){v[_649].apply(v,_64a);}}},normalizeHeaderNodeHeight:function(){var _64b=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_64b.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_64b);},normalizeRowNodeHeights:function(_64c){var h=0;var _64d=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_64c.length<=1){return;}for(var i=0,n;(n=_64c[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_64d[i]=n.firstChild.offsetHeight;h=Math.max(h,_64d[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_64c[i]);i++){if(_64d[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(_64e){var _64f=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_64e));i++){n.firstChild.style.height="";_64f.push(n);}this.normalizeRowNodeHeights(_64f);},getViewWidth:function(_650){return this.views[_650].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_651){_651.headerContentNode.style.height="";});var h=0;this.forEach(function(_652){h=Math.max(_652.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_653){h=Math.max(_653.domNode.offsetHeight,h);});return h;},findClient:function(_654){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 _655=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);_655(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;_655(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_655(v,l);}return l;},renderRow:function(_656,_657,_658){var _659=[];for(var i=0,v,n,_65a;(v=this.views[i])&&(n=_657[i]);i++){_65a=v.renderRow(_656);n.appendChild(_65a);_659.push(_65a);}if(!_658){this.normalizeRowNodeHeights(_659);}},rowRemoved:function(_65b){this.onEach("rowRemoved",[_65b]);},updateRow:function(_65c,_65d){for(var i=0,v;v=this.views[i];i++){v.updateRow(_65c);}if(!_65d){this.renormalizeRow(_65c);}},updateRowStyles:function(_65e){this.onEach("updateRowStyles",[_65e]);},setScrollTop:function(_65f){var top=_65f;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_65f);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 _660=function(_661,_662){if(_661.style.cssText==undefined){_661.setAttribute("style",_662);}else{_661.style.cssText=_662;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_663){this.grid=_663;},linesToEms:2,overRow:-2,prepareStylingRow:function(_664,_665){return {index:_664,node:_665,odd:Boolean(_664&1),selected:!!this.grid.selection.isSelected(_664),over:this.isOver(_664),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_666,_667){var row=this.prepareStylingRow(_666,_667);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_668){var i=_668;i.node.className=i.customClasses;var h=i.node.style.height;_660(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_669){this.grid.updateRowStyles(_669);},setOverRow:function(_66a){var last=this.overRow;this.overRow=_66a;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_66b){return (this.overRow==_66b&&!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(_66c){this.grid=_66c;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(_66d,_66e){return (this.cell==_66d)&&(this.rowIndex==_66e);},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(_66f){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_66f);if(_66f){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 _670=this._findHeaderCells();for(var i=0;i<_670.length;i++){this._headerConnects.push(dojo.connect(_670[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_670[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _671=dojo.query("th",this.grid.viewsHeaderNode);var _672=[];for(var i=0;i<_671.length;i++){var _673=_671[i];var _674=dojo.hasAttr(_673,"tabIndex");var _675=dojo.attr(_673,"tabIndex");if(_674&&_675<0){_672.push(_673);}}return _672;},_setActiveColHeader:function(_676,_677,_678){dojo.attr(this.grid.domNode,"aria-activedescendant",_676.id);if(_678!=null&&_678>=0&&_678!=_677){dojo.toggleClass(this._findHeaderCells()[_678],this.focusClass,false);}dojo.toggleClass(_676,this.focusClass,true);this._colHeadNode=_676;this._colHeadFocusIdx=_677;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,_679){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:(_679?_679:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_67a){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_67a);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _67b=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_67b){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 _67c=this.focusView;if(!_67c){for(var i=0,_67d;(_67d=this.grid.views.views[i]);i++){if(_67d.headerNode){_67c=_67d;break;}}}return (_67c&&dojo.getComputedStyle(_67c.headerNode).display=="none");},colSizeAdjust:function(e,_67e,_67f){var _680=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_681;(_681=this.grid.views.views[i]);i++){if(_681.header.tableMap.map){view=_681;break;}}}var _682=_680[_67e];if(!view||(_67e==_680.length-1&&_67e===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_682;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _683={l:_67f};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_683);view.update();}},styleRow:function(_684){return;},setFocusIndex:function(_685,_686){this.setFocusCell(this.grid.getCell(_686),_685);},setFocusCell:function(_687,_688){if(_687&&!this.isFocusCell(_687,_688)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_687;this.rowIndex=_688;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 _689=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_689.editable||this.grid.canEdit&&!this.grid.canEdit(_689,row))){this.cell=_689;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 _68a=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_68a.editable){this.cell=_68a;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_68b,_68c){var _68d=_68c<0?-1:1;if(this.isNavHeader()){var _68e=this._findHeaderCells();var _68f=currentIdx=dojo.indexOf(_68e,this._colHeadNode);currentIdx+=_68c;while(currentIdx>=0&&currentIdx<_68e.length&&_68e[currentIdx].style.display=="none"){currentIdx+=_68d;}if((currentIdx>=0)&&(currentIdx<_68e.length)){this._setActiveColHeader(_68e[currentIdx],currentIdx,_68f);}}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+_68b));if(_68b){if(_68b>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_68b<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+_68c));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_68d;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_68b){if((row+_68b)>=0&&(row+_68b)<=rc){this.move(_68b>0?++_68b:--_68b,_68c);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_68c){if((col+_68c)>=0&&(col+_68c)<=cc){this.move(_68b,_68c>0?++_68c:--_68c);}return;}}this.setFocusIndex(row,col);if(_68b){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 _690=(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(_691){this.tabbingOut=true;_691.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_692){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _693=true;var _694=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_694){var _695=0;var cell=this.grid.getCell(_695);if(cell.hidden){_695=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_695);}else{if(this.cell&&!_694){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_693=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _693;},focusHeader:function(){var _696=this._findHeaderCells();var _697=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=_696[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_696.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_696[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,_697);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 _698=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_698);this._contextMenuBindNode=_698;}},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(_699){this.grid=_699;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(_69a,_69b){if(this.grid.singleClickEdit||this.isEditRow(_69b)){this.setEditCell(_69a,_69b);}else{this.apply();}if(this.isEditing()||(_69a&&_69a.editable&&_69a.alwaysEditing)){this._focusEditor(_69a,_69b);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_69c){if(_69c.index==this.info.rowIndex){_69c.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(_69d,_69e){return (this.info.rowIndex===_69d)&&(this.info.cell.index==_69e);},isEditRow:function(_69f){return this.info.rowIndex===_69f;},setEditCell:function(_6a0,_6a1){if(!this.isEditCell(_6a1,_6a0.index)&&this.grid.canEdit&&this.grid.canEdit(_6a0,_6a1)){this.start(_6a0,_6a1,this.isEditRow(_6a1)||_6a0.editable);}},_focusEditor:function(_6a2,_6a3){dojox.grid.util.fire(_6a2,"focus",[_6a3]);},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(_6a4,_6a5,_6a6){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_6a5)){this.applyRowEdit();this.grid.updateRow(_6a5);}if(_6a6){this.info={cell:_6a4,rowIndex:_6a5};this.grid.doStartEdit(_6a4,_6a5);this.grid.updateRow(_6a5);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_6a4,_6a5);this._doCatchBoomerang();},_editorDo:function(_6a7){var c=this.info.cell;if(c&&c.editable){c[_6a7](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_6a8,_6a9,_6aa){if(this.grid.canEdit(_6a9,_6aa)){this.grid.doApplyCellEdit(_6a8,_6aa,_6a9.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(_6ab,_6ac){var c=this.info.cell;if(this.isEditRow(_6ab)&&(!_6ac||c.view==_6ac)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_6ad,_6ae){var c=this.info.cell;if(this.isEditRow(_6ae)&&c.view==_6ad&&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(_6af){this.grid=_6af;this.selected=[];this.setMode(_6af.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(_6b0){return this.grid.onCanSelect(_6b0);},onCanDeselect:function(_6b1){return this.grid.onCanDeselect(_6b1);},onSelected:function(_6b2){},onDeselected:function(_6b3){},onChanging:function(){},onChanged:function(){},isSelected:function(_6b4){if(this.mode=="none"){return false;}return this.selected[_6b4];},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(_6b5){if(this.mode=="none"){return -1;}for(var i=_6b5+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _6b6=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_6b6.push(i);}}return _6b6;},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(_6b7){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_6b7);this.addToSelection(_6b7);}else{this.toggleSelect(_6b7);}},addToSelection:function(_6b8){if(this.mode=="none"){return;}if(dojo.isArray(_6b8)){dojo.forEach(_6b8,this.addToSelection,this);return;}_6b8=Number(_6b8);if(this.selected[_6b8]){this.selectedIndex=_6b8;}else{if(this.onCanSelect(_6b8)!==false){this.selectedIndex=_6b8;var _6b9=this.grid.getRowNode(_6b8);if(_6b9){dojo.attr(_6b9,"aria-selected","true");}this._beginUpdate();this.selected[_6b8]=true;this.onSelected(_6b8);this._endUpdate();}}},deselect:function(_6ba){if(this.mode=="none"){return;}if(dojo.isArray(_6ba)){dojo.forEach(_6ba,this.deselect,this);return;}_6ba=Number(_6ba);if(this.selectedIndex==_6ba){this.selectedIndex=-1;}if(this.selected[_6ba]){if(this.onCanDeselect(_6ba)===false){return;}var _6bb=this.grid.getRowNode(_6ba);if(_6bb){dojo.attr(_6bb,"aria-selected","false");}this._beginUpdate();delete this.selected[_6ba];this.onDeselected(_6ba);this._endUpdate();}},setSelected:function(_6bc,_6bd){this[(_6bd?"addToSelection":"deselect")](_6bc);},toggleSelect:function(_6be){if(dojo.isArray(_6be)){dojo.forEach(_6be,this.toggleSelect,this);return;}this.setSelected(_6be,!this.selected[_6be]);},_range:function(_6bf,inTo,func){var s=(_6bf>=0?_6bf:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_6c0,inTo){this._range(_6c0,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_6c1,inTo){this._range(_6c1,inTo,dojo.hitch(this,"deselect"));},insert:function(_6c2){this.selected.splice(_6c2,0,false);if(this.selectedIndex>=_6c2){this.selectedIndex++;}},remove:function(_6c3){this.selected.splice(_6c3,1);if(this.selectedIndex>=_6c3){this.selectedIndex--;}},deselectAll:function(_6c4){for(var i in this.selected){if((i!=_6c4)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_6c5,_6c6,_6c7){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_6c5);}else{if(!_6c7||this.rangeStartIndex<0){this.rangeStartIndex=_6c5;}if(!_6c6){this.deselectAll(_6c5);}if(_6c7){this.selectRange(this.rangeStartIndex,_6c5);}else{if(_6c6){this.toggleSelect(_6c5);}else{this.addToSelection(_6c5);}}}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(_6c8){var i=_6c8;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_6c8);this.edit.styleRow(_6c8);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _6c9;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_6c9=this.focus.getHeaderIndex();if(_6c9>=0){this.setSortIndex(_6c9);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _6ca=this.edit.isEditing();this.edit.apply();if(!_6ca){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _6cb=this.focus.focusView||this.views.views[0];_6cb.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_6c9=this.focus.getHeaderIndex();if(_6c9>=0){this.setSortIndex(_6c9);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 _6cc=e.keyCode;dojo.stopEvent(e);_6c9=this.focus.getHeaderIndex();if(_6c9>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_6c9,(_6cc==dk.LEFT_ARROW?-1:1)*5);}else{var _6cd=(_6cc==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_6cd*=-1;}this.focus.move(0,_6cd);}}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 _6ce;if(this._click.length>1&&dojo.isIE){_6ce=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_6ce=this._click[0];}else{_6ce=e;}}this.focus.setFocusCell(_6ce.cell,_6ce.rowIndex);this.edit.setEditCell(_6ce.cell,_6ce.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_6cf,_6d0){this.edit.cellFocus(_6cf,_6d0);},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(_6d1,_6d2){},onApplyCellEdit:function(_6d3,_6d4,_6d5){},onCancelEdit:function(_6d6){},onApplyEdit:function(_6d7){},onCanSelect:function(_6d8){return true;},onCanDeselect:function(_6d9){return true;},onSelected:function(_6da){this.updateRowStyles(_6da);},onDeselected:function(_6db){this.updateRowStyles(_6db);},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 _6dc=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_6dc);this.errorMessage=dojo.string.substitute(this.errorMessage,_6dc);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,_6dd){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&&!_6dd){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(_6de){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_6df,idx){var c=dojo.getObject(_6df);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(_6e0){var s=_6e0;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(_6e1){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_6e1);},getColumnTogglingItems:function(){var _6e2,_6e3=[];_6e2=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(_6e4){if(self.layout.setColumnVisibility(this._gridCell.index,_6e4)){var _6e5=this._gridCell.menuItems;if(_6e5.length>1){dojo.forEach(_6e5,function(item){if(item!==this){item.setAttribute("checked",_6e4);}},this);}_6e4=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(_6e4.length==1){dojo.forEach(_6e4[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _6e6=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_6e6,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_6e3.push(item);}return item;},this);if(_6e3.length==1){_6e3[0].set("disabled",true);}return _6e2;},_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(_6e7){this.setScrollTop(0);},getItem:function(_6e8){return null;},showMessage:function(_6e9){if(_6e9){this.messagesNode.innerHTML=_6e9;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(_6ea,_6eb){this._pendingChangeSize=_6ea;this._pendingResultSize=_6eb;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(_6ec,_6ed){_6ec=_6ec||this._pendingChangeSize;_6ed=_6ed||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 _6ee=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<=_6ee.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(_6ed){_6ec=_6ed;}if(!this._autoHeight&&_6ec){dojo.marginBox(this.domNode,_6ec);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 _6ef=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(!_6ef&&hh===undefined){hh=this._getHeaderHeight();}}if(_6ef){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _6f0=(!this.initialWidth&&this.autoWidth);var w=_6f0?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_6f0){this.domNode.style.width=vw+"px";}},adaptHeight:function(_6f1){var t=_6f1===undefined?this._getHeaderHeight():_6f1;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 _6f2=0,_6f3=0;var _6f4=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_6f2++;}else{_6f3++;}return (!has);});if(_6f2>0&&_6f3>0){dojo.forEach(_6f4,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(_6f5,_6f6){this.views.renderRow(_6f5,_6f6,this._skipRowRenormalize);},rowRemoved:function(_6f7){this.views.rowRemoved(_6f7);},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(_6f8){_6f8=Number(_6f8);if(this.updating){this.invalidated[_6f8]=true;}else{this.views.updateRow(_6f8);this.scroller.rowHeightChanged(_6f8);}},updateRows:function(_6f9,_6fa){_6f9=Number(_6f9);_6fa=Number(_6fa);var i;if(this.updating){for(i=0;i<_6fa;i++){this.invalidated[i+_6f9]=true;}}else{for(i=0;i<_6fa;i++){this.views.updateRow(i+_6f9,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_6f9);}},updateRowCount:function(_6fb){if(this.updating){this.invalidated.rowCount=_6fb;}else{this.rowCount=_6fb;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_6fb);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_6fc){this.views.updateRowStyles(_6fc);},getRowNode:function(_6fd){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_6fd];}else{for(var i=0,_6fe;(_6fe=this.views.views[i]);i++){if(!(_6fe instanceof dojox.grid._RowSelector)){return _6fe.rowNodes[_6fd];}}}return null;},rowHeightChanged:function(_6ff){this.views.renormalizeRow(_6ff);this.scroller.rowHeightChanged(_6ff);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_700){if(!this.fastScroll){this.setScrollTop(_700);return;}var _701=Math.abs(this.lastScrollTop-_700);this.lastScrollTop=_700;if(_701>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_700;this.views.setScrollTop(_700);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _702=this;this._pendingScroll=window.setTimeout(function(){delete _702._pendingScroll;_702.finishScrollJob();},200);}else{this.setScrollTop(_700);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_703){this.scroller.scroll(this.views.setScrollTop(_703));},scrollToRow:function(_704){this.setScrollTop(this.scroller.findScrollTop(_704)+1);},styleRowNode:function(_705,_706){if(_706){this.rows.styleRowNode(_705,_706);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_707){return this.layout.cells[_707];},setCellWidth:function(_708,_709){this.getCell(_708).unitWidth=_709;},getCellName:function(_70a){return "Cell "+_70a.index;},canSort:function(_70b){},sort:function(){},getSortAsc:function(_70c){_70c=_70c==undefined?this.sortInfo:_70c;return Boolean(_70c>0);},getSortIndex:function(_70d){_70d=_70d==undefined?this.sortInfo:_70d;return Math.abs(_70d)-1;},setSortIndex:function(_70e,_70f){var si=_70e+1;if(_70f!=undefined){si*=(_70f?1:-1);}else{if(this.getSortIndex()==_70e){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_710){if(this.canSort(_710)){this.sortInfo=_710;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(_711,_712){this.onStartEdit(_711,_712);},doApplyCellEdit:function(_713,_714,_715){this.onApplyCellEdit(_713,_714,_715);},doCancelEdit:function(_716){this.onCancelEdit(_716);},doApplyEdit:function(_717){this.onApplyEdit(_717);},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(_718,node,ctor,_719){var d=dojo;var _71a=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(!_718.structure&&node.nodeName.toLowerCase()=="table"){_718.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=_71a(cg);}return v;});if(!_718.structure.length){_718.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_71b){var _71c=0;var _71d=0;var _71e;var _71f=null;d.query("> th",tr).map(function(th){if(!_71f){_71e=0;_71f=_718.structure[0];}else{if(_71c>=(_71e+_71f.__span)){_71d++;_71e+=_71f.__span;var _720=_71f;_71f=_718.structure[_71d];}}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")||"")};_71c+=cell.colSpan;var _721=d.attr(th,"rowspan");if(_721){cell.rowSpan=_721;}if(d.hasAttr(th,"width")){cell.width=_71a(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(_719){_719(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(!_71f.cells[_71b]){_71f.cells[_71b]=[];}_71f.cells[_71b].push(cell);});});}return new ctor(_718,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(_722){var _723=this.grid.getItemIndex(_722);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_723);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _724=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_724.push(this.grid.getItem(i));}}return _724;},addToSelection:function(_725){if(this.mode=="none"){return;}var idx=null;if(typeof _725=="number"||typeof _725=="string"){idx=_725;}else{idx=this.grid.getItemIndex(_725);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect: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.deselect.call(this,idx);},deselectAll:function(_727){var idx=null;if(_727||typeof _727=="number"){if(typeof _727=="number"||typeof _727=="string"){idx=_727;}else{idx=this.grid.getItemIndex(_727);}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(_728,_729){if(_729&&this.field=="_item"&&!this.fields){return _729;}else{if(_729&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_729,f));});return ret;}else{if(!_729&&typeof _728==="string"){return this.inherited(arguments);}}}return (!_729?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_729:this.grid.store.getValue(_729,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _72a=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_72a=true;}if(!this.updating){this.beginUpdate();_72a=true;}if(_72a){var _72b=this;this._endUpdateDelay=setTimeout(function(){delete _72b._endUpdateDelay;_72b.endUpdate();},this.updateDelay);}}},_onSet:function(item,_72c,_72d,_72e){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_72f){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_72f+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_730,_731){this._by_idx[_730]=this._createItem(item,_730);if(!_731){this.updateRow(_730);}},_onNew:function(item,_732){this._checkUpdateStatus();var _733=this.get("rowCount");this._addingItem=true;this.updateRowCount(_733+1);this._addingItem=false;this._addItem(item,_733);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(_734,_735,_736){this._setQuery(_735,_736);this._setStore(_734);this._refresh(true);},setQuery:function(_737,_738){this._setQuery(_737,_738);this._refresh(true);},setItems:function(_739){this.items=_739;this._setStore(this.store);this._refresh(true);},_setQuery:function(_73a,_73b){this.query=_73a;this.queryOptions=_73b||this.queryOptions;},_setStore:function(_73c){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_73c;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(_73d,req){if(!this.scroller){return;}if(_73d&&_73d.length>0){dojo.forEach(_73d,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_73d.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){console.log(err);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(_73e,_73f){_73e=_73e||0;if(this.store&&!this._pending_requests[_73e]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_73e]=true;try{if(this.items){var _740=this.items;var _741=this.store;this.rowsPerPage=_740.length;var req={start:_73e,count:this.rowsPerPage,isRender:_73f};this._onFetchBegin(_740.length,req);var _742=0;dojo.forEach(_740,function(i){if(!_741.isItemLoaded(i)){_742++;}});if(_742===0){this._onFetchComplete(_740,req);}else{var _743=function(item){_742--;if(_742===0){this._onFetchComplete(_740,req);}};dojo.forEach(_740,function(i){if(!_741.isItemLoaded(i)){_741.loadItem({item:i,onItem:_743,scope:this});}},this);}}else{this.store.fetch({start:_73e,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_73f,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_73e,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,_744){if(!_744&&!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(_745,_746){this.query=_745;if(_746){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(_747){return this._pending_requests[_747];},_rowToPage:function(_748){return (this.rowsPerPage?Math.floor(_748/this.rowsPerPage):_748);},_pageToRow:function(_749){return (this.rowsPerPage?this.rowsPerPage*_749:_749);},_preparePage:function(_74a){if((_74a<this._bop||_74a>=this._eop)&&!this._addingItem){var _74b=this._rowToPage(_74a);this._needPage(_74b);this._bop=_74b*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_74c){if(!this._pages[_74c]){this._pages[_74c]=true;this._requestPage(_74c);}},_requestPage:function(_74d){var row=this._pageToRow(_74d);var _74e=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_74e>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_74f){return _74f.field;},_refresh:function(_750){this._clearData();this._fetch(0,_750);},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(_751){if(this.store&&this.store.getState){var _752=this.store.getState(_751.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_752[s]){c=" dojoxGridRow-"+s;break;}}_751.customClasses+=c;}},onStyleRow:function(_753){this.styleRowState(_753);this.inherited(arguments);},canEdit:function(_754,_755){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _756={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_757,_758){if(!this._cache[_758]){this._cache[_758]=this._copyAttr(_758,_757.field);}this.onStartEdit(_757,_758);},doApplyCellEdit:function(_759,_75a,_75b){this.store.fetchItemByIdentity({identity:this._by_idx[_75a].idty,onItem:dojo.hitch(this,function(item){var _75c=this.store.getValue(item,_75b);if(typeof _75c=="number"){_759=isNaN(_759)?_759:parseFloat(_759);}else{if(typeof _75c=="boolean"){_759=_759=="true"?true:_759=="false"?false:_759;}else{if(_75c instanceof Date){var _75d=new Date(_759);_759=isNaN(_75d.getTime())?_759:_75d;}}}this.store.setValue(item,_75b,_759);this.onApplyCellEdit(_759,_75a,_75b);})});},doCancelEdit:function(_75e){var _75f=this._cache[_75e];if(_75f){this.updateRow(_75e);delete this._cache[_75e];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_760,_761){var _762=this._cache[_760];this.onApplyEdit(_760);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_763){if(_763.length){dojo.forEach(_763,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(_764,node,_765){var _766=dojo.trim(dojo.attr(node,"field")||"");if(_766){_765.field=_766;}_765.field=_765.field||_765.name;var _767=dojo.trim(dojo.attr(node,"fields")||"");if(_767){_765.fields=_767.split(",");}if(_764){_764(node,_765);}};dojox.grid.DataGrid.markupFactory=function(_768,node,ctor,_769){return dojox.grid._Grid.markupFactory(_768,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_769));};}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(_76a){_76a=_76a||{};if(!_76a.store){_76a.store=this;}var self=this;var _76b=function(_76c,_76d){if(_76d.onError){var _76e=_76d.scope||dojo.global;_76d.onError.call(_76e,_76c,_76d);}};var _76f=function(_770,_771){var _772=_771.abort||null;var _773=false;var _774=_771.start?_771.start:0;var _775=(_771.count&&(_771.count!==Infinity))?(_774+_771.count):_770.length;_771.abort=function(){_773=true;if(_772){_772.call(_771);}};var _776=_771.scope||dojo.global;if(!_771.store){_771.store=self;}if(_771.onBegin){_771.onBegin.call(_776,_770.length,_771);}if(_771.sort){_770.sort(dojo.data.util.sorter.createSortFunction(_771.sort,self));}if(_771.onItem){for(var i=_774;(i<_770.length)&&(i<_775);++i){var item=_770[i];if(!_773){_771.onItem.call(_776,item,_771);}}}if(_771.onComplete&&!_773){var _777=null;if(!_771.onItem){_777=_770.slice(_774,_775);}_771.onComplete.call(_776,_777,_771);}};this._fetchItems(_76a,_76f,_76b);return _76a;};}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(_778,_779){var rxp="^";var c=null;for(var i=0;i<_778.length;i++){c=_778.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_778.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(_779){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(_77a){var pos=0;if(typeof (_77a.selectionStart)=="number"){pos=_77a.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_77a.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(_77b,_77c){_77c=parseInt(_77c);dijit.selectInputText(_77b,_77c,_77c);},_setDisabledAttr:function(_77d){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_77d);},_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 _77e=false;var pw=this.dropDown;var dk=dojo.keys;var _77f=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_77f=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(_77f);}dojo.stopEvent(evt);break;case dk.ENTER:if(_77f){if(_77f==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_77f==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 _780=this.get("displayedValue");if(pw&&(_780==pw._messages["previousMessage"]||_780==pw._messages["nextMessage"])){break;}if(_77f){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_77f){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_77e=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_77e=true;break;default:_77e=typeof key=="string"||key==229;}if(_77e){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 _781=this.ignoreCase?"toLowerCase":"substr";if(text[_781](0).indexOf(this.focusNode.value[_781](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(_782,_783){this._fetchHandle=null;if(this.disabled||this.readOnly||(_783.query[this.searchAttr]!=this._lastQuery)){return;}var _784=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_782.length&&!this._maxOptions){this.closeDropDown();return;}_783._maxOptions=this._maxOptions;var _785=this.dropDown.createOptions(_782,_783,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_783.direction){if(1==_783.direction){this.dropDown.highlightFirstOption();}else{if(-1==_783.direction){this.dropDown.highlightLastOption();}}if(_784){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_783.query[this.searchAttr])){this._announceOption(_785[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_786){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 _787=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_787==pw._messages["previousMessage"]||_787==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_787);}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,_788,_789){if(!_789){_789=this.store.getValue(item,this.searchAttr);}var _78a=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_789;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_78a,_788,_789);},_announceOption:function(node){if(!node){return;}var _78b;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_78b=node.innerHTML;this.item=undefined;this.value="";}else{_78b=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_78b);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_78b);},_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 _78c=this.id+"_popup",_78d=dojo.getObject(this.dropDownClass,false);this.dropDown=new _78d({onChange:dojo.hitch(this,this._selectOption),id:_78c,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_78c);}var _78e=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_78e[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_78f,_790){this.searchTimer=null;var _791={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_78f,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_792){_790._fetchHandle=null;console.error("dijit.form.ComboBox: "+_792);_790.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_791,_790.fetchProperties);this._fetchHandle=_790.store.fetch(_791);var _793=function(_794,_795){_794.start+=_794.count*_795;_794.direction=_795;this._fetchHandle=this.store.fetch(_794);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_793,this._fetchHandle);},_78e,this),this.searchDelay);},_setMaxOptions:function(size,_796){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _797=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_797);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _798=this._getValueField();this.value=this.store.getValue(item,_798);}}}this.inherited(arguments);},postCreate:function(){var _799=dojo.query("label[for=\""+this.id+"\"]");if(_799.length){_799[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_799[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _79a=this.labelFunc(item,this.store),_79b=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_79a=this.doHighlight(_79a,this._escapeHtml(this._lastInput));_79b="html";}return {html:_79b=="html",label:_79a};},doHighlight:function(_79c,find){var _79d=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_79c).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_79d),"<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,_79e){return _79e.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(_79f){this.value=_79f;this.onChange(_79f);},onChange:function(_7a0){},onPage:function(_7a1){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_7a2){var _7a3=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _7a4=_7a2(item);if(_7a4.html){_7a3.innerHTML=_7a4.label;}else{_7a3.appendChild(dojo.doc.createTextNode(_7a4.label));}if(_7a3.innerHTML==""){_7a3.innerHTML="&nbsp;";}_7a3.item=item;return _7a3;},createOptions:function(_7a5,_7a6,_7a7){this.previousButton.style.display=(_7a6.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_7a5,function(item,i){var _7a8=this._createOption(item,_7a7);dojo.attr(_7a8,"id",this.id+i);this.domNode.insertBefore(_7a8,this.nextButton);},this);var _7a9=false;if(_7a6._maxOptions&&_7a6._maxOptions!=-1){if((_7a6.start+_7a6.count)<_7a6._maxOptions){_7a9=true;}else{if((_7a6.start+_7a6.count)>_7a6._maxOptions&&_7a6.count==_7a5.length){_7a9=true;}}}else{if(_7a6.count==_7a5.length){_7a9=true;}}this.nextButton.style.display=_7a9?"":"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 _7aa=this.domNode.firstChild;var _7ab=_7aa.nextSibling;this._focusOptionNode(_7ab.style.display=="none"?_7aa:_7ab);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 _7ac=0;var _7ad=this.domNode.scrollTop;var _7ae=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_7ac<_7ae){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 _7af=this.domNode.scrollTop;_7ac+=(_7af-_7ad)*(up?-1:1);_7ad=_7af;}},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(_7b0,_7b1,_7b2){this._set("item",null);if(!_7b0){_7b0="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_7b0,_7b1,_7b2);}});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,_7b3,_7b4){return (_7b3=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_7b5){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_7b6,_7b7){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _7b8=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_7b9=dojo.query("> option",this.root).filter(function(_7ba){return (_7ba.innerText||_7ba.textContent||"").match(_7b8);});if(args.sort){_7b9.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_7b6(_7b9,args);},close:function(_7bb){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(_7bc,_7bd,_7be){if((_7bd&&_7bd.query[this.searchAttr]!=this._lastQuery)||(!_7bd&&_7bc.length&&this.store.getIdentity(_7bc[0])!=this._lastQuery)){return;}if(!_7bc.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_7be||(_7be===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_7bc[0],_7be);}},_openResultList:function(_7bf,_7c0){if(_7c0.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(_7c1,_7c2){if(!this._onChangeActive){_7c2=null;}this._lastQuery=_7c1;if(_7c1===null||_7c1===""){this._setDisplayedValueAttr("",_7c2);return;}var self=this;this.store.fetchItemByIdentity({identity:_7c1,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_7c2);}});},_setItemAttr:function(item,_7c3,_7c4){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_7c5,_7c6){if(_7c5==null){_7c5="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_7c6=false;}if(this.store){this.closeDropDown();var _7c7=dojo.clone(this.query);this._lastQuery=_7c7[this.searchAttr]=this._getDisplayQueryString(_7c5);this.textbox.value=_7c5;this._lastDisplayedValue=_7c5;this._set("displayedValue",_7c5);var _7c8=this;var _7c9={query:_7c7,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_7ca,_7cb){_7c8._fetchHandle=null;dojo.hitch(_7c8,"_callbackSetLabel")(_7ca,_7cb,_7c6);},onError:function(_7cc){_7c8._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_7cc);dojo.hitch(_7c8,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_7c9,this.fetchProperties);this._fetchHandle=this.store.fetch(_7c9);}},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,_7cd){return val;},_arrowPressed:function(_7ce,_7cf,_7d0){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_7cf*_7d0),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_7d1,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(_7d1==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _7d2=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_7d2!==0){var node=this[(_7d2>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_7d2,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(_7d3,_7d4){_7d4=dojo.mixin({},_7d4||{});var _7d5=dojo.i18n.normalizeLocale(_7d4.locale),_7d6=dojo.i18n.getLocalization("dojo.cldr","number",_7d5);_7d4.customs=_7d6;var _7d7=_7d4.pattern||_7d6[(_7d4.type||"decimal")+"Format"];if(isNaN(_7d3)||Math.abs(_7d3)==Infinity){return null;}return dojo.number._applyPattern(_7d3,_7d7,_7d4);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_7d8,_7d9,_7da){_7da=_7da||{};var _7db=_7da.customs.group,_7dc=_7da.customs.decimal,_7dd=_7d9.split(";"),_7de=_7dd[0];_7d9=_7dd[(_7d8<0)?1:0]||("-"+_7de);if(_7d9.indexOf("%")!=-1){_7d8*=100;}else{if(_7d9.indexOf("‰")!=-1){_7d8*=1000;}else{if(_7d9.indexOf("¤")!=-1){_7db=_7da.customs.currencyGroup||_7db;_7dc=_7da.customs.currencyDecimal||_7dc;_7d9=_7d9.replace(/\u00a4{1,3}/,function(_7df){var prop=["symbol","currency","displayName"][_7df.length-1];return _7da[prop]||_7da.currency||"";});}else{if(_7d9.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _7e0=dojo.number._numberPatternRE;var _7e1=_7de.match(_7e0);if(!_7e1){throw new Error("unable to find a number expression in pattern: "+_7d9);}if(_7da.fractional===false){_7da.places=0;}return _7d9.replace(_7e0,dojo.number._formatAbsolute(_7d8,_7e1[0],{decimal:_7dc,group:_7db,places:_7da.places,round:_7da.round}));};dojo.number.round=function(_7e2,_7e3,_7e4){var _7e5=10/(_7e4||10);return (_7e5*+_7e2).toFixed(_7e3)/_7e5;};if((0.9).toFixed()==0){(function(){var _7e6=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 _7e6(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_7e7,_7e8,_7e9){_7e9=_7e9||{};if(_7e9.places===true){_7e9.places=0;}if(_7e9.places===Infinity){_7e9.places=6;}var _7ea=_7e8.split("."),_7eb=typeof _7e9.places=="string"&&_7e9.places.indexOf(","),_7ec=_7e9.places;if(_7eb){_7ec=_7e9.places.substring(_7eb+1);}else{if(!(_7ec>=0)){_7ec=(_7ea[1]||[]).length;}}if(!(_7e9.round<0)){_7e7=dojo.number.round(_7e7,_7ec,_7e9.round);}var _7ed=String(Math.abs(_7e7)).split("."),_7ee=_7ed[1]||"";if(_7ea[1]||_7e9.places){if(_7eb){_7e9.places=_7e9.places.substring(0,_7eb);}var pad=_7e9.places!==undefined?_7e9.places:(_7ea[1]&&_7ea[1].lastIndexOf("0")+1);if(pad>_7ee.length){_7ed[1]=dojo.string.pad(_7ee,pad,"0",true);}if(_7ec<_7ee.length){_7ed[1]=_7ee.substr(0,_7ec);}}else{if(_7ed[1]){_7ed.pop();}}var _7ef=_7ea[0].replace(",","");pad=_7ef.indexOf("0");if(pad!=-1){pad=_7ef.length-pad;if(pad>_7ed[0].length){_7ed[0]=dojo.string.pad(_7ed[0],pad);}if(_7ef.indexOf("#")==-1){_7ed[0]=_7ed[0].substr(_7ed[0].length-pad);}}var _7f0=_7ea[0].lastIndexOf(","),_7f1,_7f2;if(_7f0!=-1){_7f1=_7ea[0].length-_7f0-1;var _7f3=_7ea[0].substr(0,_7f0);_7f0=_7f3.lastIndexOf(",");if(_7f0!=-1){_7f2=_7f3.length-_7f0-1;}}var _7f4=[];for(var _7f5=_7ed[0];_7f5;){var off=_7f5.length-_7f1;_7f4.push((off>0)?_7f5.substr(off):_7f5);_7f5=(off>0)?_7f5.slice(0,off):"";if(_7f2){_7f1=_7f2;delete _7f2;}}_7ed[0]=_7f4.reverse().join(_7e9.group||",");return _7ed.join(_7e9.decimal||".");};dojo.number.regexp=function(_7f6){return dojo.number._parseInfo(_7f6).regexp;};dojo.number._parseInfo=function(_7f7){_7f7=_7f7||{};var _7f8=dojo.i18n.normalizeLocale(_7f7.locale),_7f9=dojo.i18n.getLocalization("dojo.cldr","number",_7f8),_7fa=_7f7.pattern||_7f9[(_7f7.type||"decimal")+"Format"],_7fb=_7f9.group,_7fc=_7f9.decimal,_7fd=1;if(_7fa.indexOf("%")!=-1){_7fd/=100;}else{if(_7fa.indexOf("‰")!=-1){_7fd/=1000;}else{var _7fe=_7fa.indexOf("¤")!=-1;if(_7fe){_7fb=_7f9.currencyGroup||_7fb;_7fc=_7f9.currencyDecimal||_7fc;}}}var _7ff=_7fa.split(";");if(_7ff.length==1){_7ff.push("-"+_7ff[0]);}var re=dojo.regexp.buildGroupRE(_7ff,function(_800){_800="(?:"+dojo.regexp.escapeString(_800,".")+")";return _800.replace(dojo.number._numberPatternRE,function(_801){var _802={signed:false,separator:_7f7.strict?_7fb:[_7fb,""],fractional:_7f7.fractional,decimal:_7fc,exponent:false},_803=_801.split("."),_804=_7f7.places;if(_803.length==1&&_7fd!=1){_803[1]="###";}if(_803.length==1||_804===0){_802.fractional=false;}else{if(_804===undefined){_804=_7f7.pattern?_803[1].lastIndexOf("0")+1:Infinity;}if(_804&&_7f7.fractional==undefined){_802.fractional=true;}if(!_7f7.places&&(_804<_803[1].length)){_804+=","+_803[1].length;}_802.places=_804;}var _805=_803[0].split(",");if(_805.length>1){_802.groupSize=_805.pop().length;if(_805.length>1){_802.groupSize2=_805.pop().length;}}return "("+dojo.number._realNumberRegexp(_802)+")";});},true);if(_7fe){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_806,_807,_808,_809){var prop=["symbol","currency","displayName"][_808.length-1],_80a=dojo.regexp.escapeString(_7f7[prop]||_7f7.currency||"");_807=_807?"[\\s\\xa0]":"";_809=_809?"[\\s\\xa0]":"";if(!_7f7.strict){if(_807){_807+="*";}if(_809){_809+="*";}return "(?:"+_807+_80a+_809+")?";}return _807+_80a+_809;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_7fb,decimal:_7fc,factor:_7fd};};dojo.number.parse=function(_80b,_80c){var info=dojo.number._parseInfo(_80c),_80d=(new RegExp("^"+info.regexp+"$")).exec(_80b);if(!_80d){return NaN;}var _80e=_80d[1];if(!_80d[1]){if(!_80d[2]){return NaN;}_80e=_80d[2];info.factor*=-1;}_80e=_80e.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _80e*info.factor;};dojo.number._realNumberRegexp=function(_80f){_80f=_80f||{};if(!("places" in _80f)){_80f.places=Infinity;}if(typeof _80f.decimal!="string"){_80f.decimal=".";}if(!("fractional" in _80f)||/^0/.test(_80f.places)){_80f.fractional=[true,false];}if(!("exponent" in _80f)){_80f.exponent=[true,false];}if(!("eSigned" in _80f)){_80f.eSigned=[true,false];}var _810=dojo.number._integerRegexp(_80f),_811=dojo.regexp.buildGroupRE(_80f.fractional,function(q){var re="";if(q&&(_80f.places!==0)){re="\\"+_80f.decimal;if(_80f.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_80f.places+"}";}}return re;},true);var _812=dojo.regexp.buildGroupRE(_80f.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_80f.eSigned})+")";}return "";});var _813=_810+_811;if(_811){_813="(?:(?:"+_813+")|(?:"+_811+"))";}return _813+_812;};dojo.number._integerRegexp=function(_814){_814=_814||{};if(!("signed" in _814)){_814.signed=[true,false];}if(!("separator" in _814)){_814.separator="";}else{if(!("groupSize" in _814)){_814.groupSize=3;}}var _815=dojo.regexp.buildGroupRE(_814.signed,function(q){return q?"[-+]":"";},true);var _816=dojo.regexp.buildGroupRE(_814.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_814.groupSize,grp2=_814.groupSize2;if(grp2){var _817="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_817+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_817;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _815+_816;};}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(_818){var _819=typeof _818.places=="number"?_818.places:0;if(_819){_819++;}if(typeof _818.max!="number"){_818.max=9*Math.pow(10,15-_819);}if(typeof _818.min!="number"){_818.min=-9*Math.pow(10,15-_819);}this.inherited(arguments,[_818]);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 _81a=this.format(val,this.constraints);if(_81a!==undefined){this.textbox.value=_81a;}}this.inherited(arguments);},format:function(_81b,_81c){var _81d=String(_81b);if(typeof _81b!="number"){return _81d;}if(isNaN(_81b)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_81b,_81c))&&_81c.exponent!==false&&/\de[-+]?\d/i.test(_81d)){return _81d;}if(this.editOptions&&this._focused){_81c=dojo.mixin({},_81c,this.editOptions);}return this._formatter(_81b,_81c);},_parser:dojo.number.parse,parse:function(_81e,_81f){var v=this._parser(_81e,dojo.mixin({},_81f,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_81e,_81f);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_820){return (_820===null||_820===""||_820===undefined)?NaN:this.inherited(arguments);},serialize:function(_821,_822){return (typeof _821!="number"||isNaN(_821))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_823,_824,_825){if(_823!==undefined&&_825===undefined){_825=String(_823);if(typeof _823=="number"){if(isNaN(_823)){_825="";}else{if(("rangeCheck" in this&&this.rangeCheck(_823,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_825)){_825=undefined;}}}else{if(!_823){_825="";_823=NaN;}else{_823=undefined;}}}this.inherited(arguments,[_823,_824,_825]);},_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(_826){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,_827){var tc=this.constraints,v=isNaN(val),_828=!isNaN(tc.max),_829=!isNaN(tc.min);if(v&&_827!=0){val=(_827>0)?_829?tc.min:_828?tc.max:0:_828?this.constraints.max:_829?tc.min:0;}var _82a=val+_827;if(v||isNaN(_82a)){return val;}if(_828&&(_82a>tc.max)){_82a=tc.max;}if(_829&&(_82a<tc.min)){_82a=tc.min;}return _82a;},_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 _82b=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _82b=="number"){this._setValueAttr(_82b,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(_82c){if(_82c){_82c=_82c.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _82d=parseInt(this.maxLength);var _82e=this.textbox.value.replace(/\r/g,"");var _82f=_82e.length-_82d;if(_82f>0){if(e){dojo.stopEvent(e);}var _830=this.textbox;if(_830.selectionStart){var pos=_830.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_82e.substring(0,pos-_82f-cr)+_82e.substring(pos-cr);_830.setSelectionRange(pos-_82f,pos-_82f);}else{if(dojo.doc.selection){_830.focus();var _831=dojo.doc.selection.createRange();_831.moveStart("character",-_82f);_831.text="";_831.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 _832=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(_832,"onresize","_resizeLater");this.connect(_832,"onfocus","_resizeLater");_832.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _833=this.textbox;_833.rows=(_833.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _834=this.textbox;function _835(){var _836=false;if(_834.value===""){_834.value=" ";_836=true;}var sh=_834.scrollHeight;if(_836){_834.value="";}return sh;};if(_834.style.overflowY=="hidden"){_834.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_835()||_834.offsetHeight){var newH=_835()+Math.max(_834.offsetHeight-_834.clientHeight,0);var _837=newH+"px";if(_837!=_834.style.height){_834.style.height=_837;_834.rows=1;}if(needsHelpShrinking){var _838=_835(),_839=_838,_83a=_834.style.minHeight,_83b=4,_83c,_83d=_834.scrollTop;_834.style.minHeight=_837;_834.style.height="auto";while(newH>0){_834.style.minHeight=Math.max(newH-_83b,4)+"px";_83c=_835();var _83e=_839-_83c;newH-=_83e;if(_83e<_83b){break;}_839=_83c;_83b<<=1;}_834.style.height=newH+"px";_834.style.minHeight=_83a;_834.scrollTop=_83d;}_834.style.overflowY=_835()>_834.clientHeight?"auto":"hidden";if(_834.style.overflowY=="hidden"){_834.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,_83f,_840,_841,_842){var _843=[];dojo.Deferred.call(this);var self=this;if(list.length===0&&!_83f){this.resolve([0,[]]);}var _844=0;dojo.forEach(list,function(item,i){item.then(function(_845){if(_83f){self.resolve([i,_845]);}else{_846(true,_845);}},function(_847){if(_840){self.reject(_847);}else{_846(false,_847);}if(_841){return null;}throw _847;});function _846(_848,_849){_843[i]=[_848,_849];_844++;if(_844===list.length){self.resolve(_843);}};});};dojo.DeferredList.prototype=new dojo.Deferred();dojo.DeferredList.prototype.gatherResults=function(_84a){var d=new dojo.DeferredList(_84a,false,true,false);d.addCallback(function(_84b){var ret=[];dojo.forEach(_84b,function(_84c){ret.push(_84c[1]);});return ret;});return d;};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_84d,_84e){var c=document.cookie;if(arguments.length==1){var _84f=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _84f?decodeURIComponent(_84f[1]):undefined;}else{_84e=_84e||{};var exp=_84e.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_84e.expires=d;}if(exp&&exp.toUTCString){_84e.expires=exp.toUTCString();}_84d=encodeURIComponent(_84d);var _850=name+"="+_84d,_851;for(_851 in _84e){_850+="; "+_851;var _852=_84e[_851];if(_852!==true){_850+="="+_852;}}document.cookie=_850;}};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 _853=this.store;if(!_853.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_853.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_853,"onNew",this,"onNewItem"),dojo.connect(_853,"onDelete",this,"onDeleteItem"),dojo.connect(_853,"onSet",this,"onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_854,_855){if(this.root){_854(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_856){if(_856.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_856.length+" items, but must return exactly one item");}this.root=_856[0];_854(this.root);}),onError:_855});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_857,_858,_859){var _85a=this.store;if(!_85a.isItemLoaded(_857)){var _85b=dojo.hitch(this,arguments.callee);_85a.loadItem({item:_857,onItem:function(_85c){_85b(_85c,_858,_859);},onError:_859});return;}var _85d=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_85a.getValues(_857,this.childrenAttrs[i]);_85d=_85d.concat(vals);}var _85e=0;if(!this.deferItemLoadingUntilExpand){dojo.forEach(_85d,function(item){if(!_85a.isItemLoaded(item)){_85e++;}});}if(_85e==0){_858(_85d);}else{dojo.forEach(_85d,function(item,idx){if(!_85a.isItemLoaded(item)){_85a.loadItem({item:item,onItem:function(item){_85d[idx]=item;if(--_85e==0){_858(_85d);}},onError:_859});}});}},isItem:function(_85f){return this.store.isItem(_85f);},fetchItemByIdentity:function(_860){this.store.fetchItemByIdentity(_860);},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,_861,_862){var _863={parent:_861,attribute:this.childrenAttrs[0]},_864;if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_861,true,_862);}else{_864=this.store.newItem(args,_863);if(_864&&(_862!=undefined)){this.pasteItem(_864,_861,_861,false,_862);}}}});}else{_864=this.store.newItem(args,_863);if(_864&&(_862!=undefined)){this.pasteItem(_864,_861,_861,false,_862);}}},pasteItem:function(_865,_866,_867,_868,_869){var _86a=this.store,_86b=this.childrenAttrs[0];if(_866){dojo.forEach(this.childrenAttrs,function(attr){if(_86a.containsValue(_866,attr,_865)){if(!_868){var _86c=dojo.filter(_86a.getValues(_866,attr),function(x){return x!=_865;});_86a.setValues(_866,attr,_86c);}_86b=attr;}});}if(_867){if(typeof _869=="number"){var _86d=_86a.getValues(_867,_86b).slice();_86d.splice(_869,0,_865);_86a.setValues(_867,_86b,_86d);}else{_86a.setValues(_867,_86b,_86a.getValues(_867,_86b).concat(_865));}}},onChange:function(item){},onChildrenChange:function(_86e,_86f){},onDelete:function(_870,_871){},onNewItem:function(item,_872){if(!_872){return;}this.getChildren(_872.item,dojo.hitch(this,function(_873){this.onChildrenChange(_872.item,_873);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_874,_875,_876){if(dojo.indexOf(this.childrenAttrs,_874)!=-1){this.getChildren(item,dojo.hitch(this,function(_877){this.onChildrenChange(item,_877);}));}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(_878){this.root={store:this,root:true,id:_878.rootId,label:_878.rootLabel,children:_878.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_879,_87a,_87b){if(_879===this.root){if(this.root.children){_87a(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_87c){this.root.children=_87c;_87a(_87c);}),onError:_87b});}}else{this.inherited(arguments);}},isItem:function(_87d){return (_87d===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_87e){if(_87e.identity==this.root.id){var _87f=_87e.scope?_87e.scope:dojo.global;if(_87e.onItem){_87e.onItem.call(_87f,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,_880,_881){if(_880===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_882,_883,_884,_885,_886){if(_883===this.root){if(!_885){this.onLeaveRoot(_882);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_882,_883===this.root?null:_883,_884===this.root?null:_884,_885,_886);if(_884===this.root){this.onAddToRoot(_882);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _887=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_888){this.root.children=_888;if(_887.length!=_888.length||dojo.some(_887,function(item,idx){return _888[idx]!=item;})){this.onChildrenChange(this.root,_888);}})});},onNewItem:function(item,_889){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);},onSetItem:function(item,_88a,_88b,_88c){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,_88d){this.tree=tree;this.node=tree.domNode;dojo.mixin(this,_88d);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 _88e=this.selection[key],ret={data:_88e,type:["treeNode"]};return ret;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.node=this.parent=null;},onMouseOver:function(_88f,evt){this.current=_88f;},onMouseOut:function(_890,evt){this.current=null;},_changeState:function(type,_891){var _892="dojoDnd"+type;var _893=type.toLowerCase()+"State";dojo.replaceClass(this.node,_892+_891,_892+this[_893]);this[_893]=_891;},_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,_894){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 _895=[],sel=this.selection;for(var i in sel){_895.push(sel[i]);}return _895;},selectNone:function(){this.setSelection([]);return this;},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null;},addTreeNode:function(node,_896){this.setSelection(this.getSelectedTreeNodes().concat([node]));if(_896){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(_897){var _898=this.getSelectedTreeNodes();dojo.forEach(this._setDifference(_898,_897),dojo.hitch(this,function(node){node.setSelected(false);if(this.anchor==node){delete this.anchor;}delete this.selection[node.id];}));dojo.forEach(this._setDifference(_897,_898),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 _899=this.getSelectedTreeNodes();var _89a=[],_89b=[];dojo.forEach(_899,function(node){_89b.push(node);_89a.push(node.getTreePath());});var _89c=dojo.map(_89b,function(node){return node.item;});this.tree._set("paths",_89a);this.tree._set("path",_89a[0]||[]);this.tree._set("selectedNodes",_89b);this.tree._set("selectedNode",_89b[0]||null);this.tree._set("selectedItems",_89c);this.tree._set("selectedItem",_89c[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 _89d=this.current,copy=dojo.isCopyKey(e),id=_89d.id;if(!this.singular&&!e.shiftKey&&this.selection[id]){this._doDeselect=true;return;}else{this._doDeselect=false;}this.userSelect(_89d,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,_89e,_89f){if(this.singular){if(this.anchor==node&&_89e){this.selectNone();}else{this.setSelection([node]);this.anchor=node;}}else{if(_89f&&this.anchor){var cr=dijit.tree._compareNodes(this.anchor.rowNode,node.rowNode),_8a0,end,_8a1=this.anchor;if(cr<0){_8a0=_8a1;end=node;}else{_8a0=node;end=_8a1;}nodes=[];while(_8a0!=end){nodes.push(_8a0);_8a0=this.tree._getNextNode(_8a0);}nodes.push(end);this.setSelection(nodes);}else{if(this.selection[node.id]&&_89e){this.removeTreeNode(node);}else{if(_89e){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(_8a2){var _8a3=(Math.max(_8a2,0)*this.tree._nodePixelIndent)+"px";dojo.style(this.domNode,"backgroundPosition",_8a3+" 0px");dojo.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_8a3);dojo.forEach(this.getChildren(),function(_8a4){_8a4.set("indent",_8a2+1);});this._set("indent",_8a2);},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_8a5=tree.model;if(tree._v10Compat&&item===_8a5.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_8a6,_8a7){var _8a8="_"+_8a6+"Class";var _8a9=_8a6+"Node";var _8aa=this[_8a8];this[_8a8]=this.tree["get"+_8a7+"Class"](item,this.isExpanded);dojo.replaceClass(this[_8a9],this[_8a8]||"",_8aa||"");dojo.style(this[_8a9],this.tree["get"+_8a7+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _8ab=this.getParent();if(!_8ab||_8ab.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_8ac){var _8ad=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_8ae=["*","-","+","*"],idx=_8ac?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.replaceClass(this.expandoNode,_8ad[idx],_8ad);this.expandoNodeText.innerHTML=_8ae[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,_8af=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new dojo.Deferred(function(){_8af.stop();}));_8af.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(_8b0){var tree=this.tree,_8b1=tree.model,defs=[];dojo.forEach(this.getChildren(),function(_8b2){dijit._Container.prototype.removeChild.call(this,_8b2);},this);this.state="LOADED";if(_8b0&&_8b0.length>0){this.isExpandable=true;dojo.forEach(_8b0,function(item){var id=_8b1.getIdentity(item),_8b3=tree._itemNodesMap[id],node;if(_8b3){for(var i=0;i<_8b3.length;i++){if(_8b3[i]&&!_8b3[i].getParent()){node=_8b3[i];node.set("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_8b1.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),dir:tree.dir,lang:tree.lang,indent:this.indent+1});if(_8b3){_8b3.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(_8b4,idx){_8b4._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 _8b5=this.getChildren();if(_8b5.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_8b5,function(_8b6){_8b6._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){this.tree._onNodeFocus(this);},setSelected:function(_8b7){dijit.setWaiState(this.labelNode,"selected",_8b7);dojo.toggleClass(this.rowNode,"dijitTreeRowSelected",_8b7);},setFocusable:function(_8b8){this.labelNode.setAttribute("tabIndex",_8b8?"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(_8b9,_8ba){dojo.publish(this.id,[dojo.mixin({tree:this,event:_8b9},_8ba||{})]);},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 _8bb={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_8bb[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_8bb);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _8bc={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_8bc.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_8bc.getChildren=dojo.hitch(this,function(item,_8bd,_8be){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_8bd,_8be);});}this.model=new dijit.tree.ForestStoreModel(_8bc);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 _8bf=this.model.getIdentity(item);if(this._itemNodesMap[_8bf]){this._itemNodesMap[_8bf].push(rn);}else{this._itemNodesMap[_8bf]=[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 _8c0=dojo.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_8c0]);},_setSelectedItemAttr:function(item){this.set("selectedItems",[item]);},_setSelectedItemsAttr:function(_8c1){var tree=this;this._loadDeferred.addCallback(dojo.hitch(this,function(){var _8c2=dojo.map(_8c1,function(item){return (!item||dojo.isString(item))?item:tree.model.getIdentity(item);});var _8c3=[];dojo.forEach(_8c2,function(id){_8c3=_8c3.concat(tree._itemNodesMap[id]||[]);});this.set("selectedNodes",_8c3);}));},_setPathAttr:function(path){if(path.length){return this.set("paths",[path]);}else{return this.set("paths",[]);}},_setPathsAttr:function(_8c4){var tree=this;return new dojo.DeferredList(dojo.map(_8c4,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(){_8c5(path,[tree.rootNode],d);});}else{d.errback("Empty path");}return d;})).addCallback(_8c6);function _8c5(path,_8c7,def){var _8c8=path.shift();var _8c9=dojo.filter(_8c7,function(node){return node.getIdentity()==_8c8;})[0];if(!!_8c9){if(path.length){tree._expandNode(_8c9).addCallback(function(){_8c5(path,_8c9.getChildren(),def);});}else{def.callback(_8c9);}}else{def.errback("Could not expand path at "+_8c8);}};function _8c6(_8ca){tree.set("selectedNodes",dojo.map(dojo.filter(_8ca,function(x){return x[0];}),function(x){return x[1];}));};},_setSelectedNodeAttr:function(node){this.set("selectedNodes",[node]);},_setSelectedNodesAttr:function(_8cb){this._loadDeferred.addCallback(dojo.hitch(this,function(){this.dndController.setSelection(_8cb);}));},mayHaveChildren:function(item){},getItemChildren:function(_8cc,_8cd){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_8ce){return (!item||this.model.mayHaveChildren(item))?(_8ce?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_8cf){},getRowClass:function(item,_8d0){},getIconStyle:function(item,_8d1){},getLabelStyle:function(item,_8d2){},getRowStyle:function(item,_8d3){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _8d4=dijit.getEnclosingWidget(e.target);if(!_8d4){return;}var key=e.charOrCode;if(typeof key=="string"&&key!=" "){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_8d4,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:_8d4,item:_8d4.item,evt:e});dojo.stopEvent(e);}}},_onEnterKey:function(_8d5){this._publish("execute",{item:_8d5.item,node:_8d5.node});this.dndController.userSelect(_8d5.node,dojo.isCopyKey(_8d5.evt),_8d5.evt.shiftKey);this.onClick(_8d5.item,_8d5.node,_8d5.evt);},_onDownArrow:function(_8d6){var node=this._getNextNode(_8d6.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_8d7){var node=_8d7.node;var _8d8=node.getPreviousSibling();if(_8d8){node=_8d8;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _8d9=node.getChildren();node=_8d9[_8d9.length-1];}}else{var _8da=node.getParent();if(!(!this.showRoot&&_8da===this.rootNode)){node=_8da;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_8db){var node=_8db.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(_8dc){var node=_8dc.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _8dd=node.getParent();if(_8dd&&_8dd.isTreeNode&&!(!this.showRoot&&_8dd===this.rootNode)){this.focusNode(_8dd);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_8de){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(_8df){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_8df.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_8df.key,startNode:_8df.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,_8e0){return dojo.isDescendant(node,_8e0.expandoNode);},_onClick:function(_8e1,e){var _8e2=e.target,_8e3=this.isExpandoNode(_8e2,_8e1);if((this.openOnClick&&_8e1.isExpandable)||_8e3){if(_8e1.isExpandable){this._onExpandoClick({node:_8e1});}}else{this._publish("execute",{item:_8e1.item,node:_8e1,evt:e});this.onClick(_8e1.item,_8e1,e);this.focusNode(_8e1);}dojo.stopEvent(e);},_onDblClick:function(_8e4,e){var _8e5=e.target,_8e6=(_8e5==_8e4.expandoNode||_8e5==_8e4.expandoNodeText);if((this.openOnDblClick&&_8e4.isExpandable)||_8e6){if(_8e4.isExpandable){this._onExpandoClick({node:_8e4});}}else{this._publish("execute",{item:_8e4.item,node:_8e4,evt:e});this.onDblClick(_8e4.item,_8e4,e);this.focusNode(_8e4);}dojo.stopEvent(e);},_onExpandoClick:function(_8e7){var node=_8e7.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 _8e8=node.getNextSibling();if(_8e8){return _8e8;}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,_8e9){if(node._expandNodeDeferred&&!_8e9){return node._expandNodeDeferred;}var _8ea=this.model,item=node.item,_8eb=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new dojo.Deferred());_8ea.getChildren(item,function(_8ec){node.unmarkProcessing();var scid=node.setChildItems(_8ec);var ed=_8eb._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_8eb,": 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 _8ed=this.model,_8ee=_8ed.getIdentity(item),_8ef=this._itemNodesMap[_8ee];if(_8ef){var _8f0=this.getLabel(item),_8f1=this.getTooltip(item);dojo.forEach(_8ef,function(node){node.set({item:item,label:_8f0,tooltip:_8f1});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_8f2,_8f3){var _8f4=this.model,_8f5=_8f4.getIdentity(_8f2),_8f6=this._itemNodesMap[_8f5];if(_8f6){dojo.forEach(_8f6,function(_8f7){_8f7.setChildItems(_8f3);});}},_onItemDelete:function(item){var _8f8=this.model,_8f9=_8f8.getIdentity(item),_8fa=this._itemNodesMap[_8f9];if(_8fa){dojo.forEach(_8fa,function(node){this.dndController.removeTreeNode(node);var _8fb=node.getParent();if(_8fb){_8fb.removeChild(node);}node.destroyRecursive();},this);delete this._itemNodesMap[_8f9];}},_initState:function(){if(this.persist){var _8fc=dojo.cookie(this.cookieName);this._openedItemIds={};if(_8fc){dojo.forEach(_8fc.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_8fd){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_8fd){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(_8fe){if(_8fe){dojo.marginBox(this.domNode,_8fe);}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(_8ff){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_8ff.url;this._ccUrl=_8ff.url;this.url=_8ff.url;this._jsonData=_8ff.data;this.data=null;this._datatypeMap=_8ff.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_900){return dojo.date.stamp.fromISOString(_900);}};}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(_8ff.urlPreventCache!==undefined){this.urlPreventCache=_8ff.urlPreventCache?true:false;}if(_8ff.hierarchical!==undefined){this.hierarchical=_8ff.hierarchical?true:false;}if(_8ff.clearOnClose){this.clearOnClose=true;}if("failOk" in _8ff){this.failOk=_8ff.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(_901){if(typeof _901!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_902,_903){var _904=this.getValues(item,_902);return (_904.length>0)?_904[0]:_903;},getValues:function(item,_905){this._assertIsItem(item);this._assertIsAttribute(_905);return (item[_905]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _906=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_906.push(key);}}return _906;},hasAttribute:function(item,_907){this._assertIsItem(item);this._assertIsAttribute(_907);return (_907 in item);},containsValue:function(item,_908,_909){var _90a=undefined;if(typeof _909==="string"){_90a=dojo.data.util.filter.patternToRegExp(_909,false);}return this._containsValue(item,_908,_909,_90a);},_containsValue:function(item,_90b,_90c,_90d){return dojo.some(this.getValues(item,_90b),function(_90e){if(_90e!==null&&!dojo.isObject(_90e)&&_90d){if(_90e.toString().match(_90d)){return true;}}else{if(_90c===_90e){return true;}}});},isItem:function(_90f){if(_90f&&_90f[this._storeRefPropName]===this){if(this._arrayOfAllItems[_90f[this._itemNumPropName]]===_90f){return true;}}return false;},isItemLoaded:function(_910){return this.isItem(_910);},loadItem:function(_911){this._assertIsItem(_911.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(_912,_913,_914){var self=this,_915=function(_916,_917){var _918=[],i,key;if(_916.query){var _919,_91a=_916.queryOptions?_916.queryOptions.ignoreCase:false;var _91b={};for(key in _916.query){_919=_916.query[key];if(typeof _919==="string"){_91b[key]=dojo.data.util.filter.patternToRegExp(_919,_91a);}else{if(_919 instanceof RegExp){_91b[key]=_919;}}}for(i=0;i<_917.length;++i){var _91c=true;var _91d=_917[i];if(_91d===null){_91c=false;}else{for(key in _916.query){_919=_916.query[key];if(!self._containsValue(_91d,key,_919,_91b[key])){_91c=false;}}}if(_91c){_918.push(_91d);}}_913(_918,_916);}else{for(i=0;i<_917.length;++i){var item=_917[i];if(item!==null){_918.push(item);}}_913(_918,_916);}};if(this._loadFinished){_915(_912,this._getItemsArray(_912.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:_912,filter:_915});}else{this._loadInProgress=true;var _91e={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _91f=dojo.xhrGet(_91e);_91f.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_915(_912,self._getItemsArray(_912.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_914(e,_912);}});_91f.addErrback(function(_920){self._loadInProgress=false;_914(_920,_912);});var _921=null;if(_912.abort){_921=_912.abort;}_912.abort=function(){var df=_91f;if(df&&df.fired===-1){df.cancel();df=null;}if(_921){_921.call(_912);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_915(_912,this._getItemsArray(_912.queryOptions));}catch(e){_914(e,_912);}}else{_914(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_912);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _922=this._queuedFetches[i],_923=_922.args,_924=_922.filter;if(_924){_924(_923,this._getItemsArray(_923.queryOptions));}else{this.fetchItemByIdentity(_923);}}this._queuedFetches=[];}},_getItemsArray:function(_925){if(_925&&_925.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_926){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_927){var _928=false,self=this;function _929(_92a){var _92b=((_92a!==null)&&(typeof _92a==="object")&&(!dojo.isArray(_92a)||_928)&&(!dojo.isFunction(_92a))&&(_92a.constructor==Object||dojo.isArray(_92a))&&(typeof _92a._reference==="undefined")&&(typeof _92a._type==="undefined")&&(typeof _92a._value==="undefined")&&self.hierarchical);return _92b;};function _92c(_92d){self._arrayOfAllItems.push(_92d);for(var _92e in _92d){var _92f=_92d[_92e];if(_92f){if(dojo.isArray(_92f)){var _930=_92f;for(var k=0;k<_930.length;++k){var _931=_930[k];if(_929(_931)){_92c(_931);}}}else{if(_929(_92f)){_92c(_92f);}}}}};this._labelAttr=_927.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_927.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_928=true;}_92c(item);item[this._rootItemPropName]=true;}var _932={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _933=item[key];if(_933!==null){if(!dojo.isArray(_933)){item[key]=[_933];}}else{item[key]=[null];}}_932[key]=key;}}while(_932[this._storeRefPropName]){this._storeRefPropName+="_";}while(_932[this._itemNumPropName]){this._itemNumPropName+="_";}while(_932[this._reverseRefMap]){this._reverseRefMap+="_";}var _934;var _935=_927.identifier;if(_935){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_935;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_934=item[_935];var _936=_934[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_936)){this._itemsByIdentity[_936]=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: ["+_935+"].  Value collided: ["+_936+"]");}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: ["+_935+"].  Value collided: ["+_936+"]");}}}}}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){_934=item[key];for(var j=0;j<_934.length;++j){_933=_934[j];if(_933!==null&&typeof _933=="object"){if(("_type" in _933)&&("_value" in _933)){var type=_933._type;var _937=this._datatypeMap[type];if(!_937){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_937)){_934[j]=new _937(_933._value);}else{if(dojo.isFunction(_937.deserialize)){_934[j]=_937.deserialize(_933._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(_933._reference){var _938=_933._reference;if(!dojo.isObject(_938)){_934[j]=this._getItemByIdentity(_938);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _939=this._arrayOfAllItems[k],_93a=true;for(var _93b in _938){if(_939[_93b]!=_938[_93b]){_93a=false;}}if(_93a){_934[j]=_939;}}}if(this.referenceIntegrity){var _93c=_934[j];if(this.isItem(_93c)){this._addReferenceToMap(_93c,item,key);}}}else{if(this.isItem(_933)){if(this.referenceIntegrity){this._addReferenceToMap(_933,item,key);}}}}}}}},_addReferenceToMap:function(_93d,_93e,_93f){},getIdentity:function(item){var _940=this._features["dojo.data.api.Identity"];if(_940===Number){return item[this._itemNumPropName];}else{var _941=item[_940];if(_941){return _941[0];}}return null;},fetchItemByIdentity:function(_942){var item,_943;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:_942});}else{this._loadInProgress=true;var _944={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _945=dojo.xhrGet(_944);_945.addCallback(function(data){var _946=_942.scope?_942.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_942.identity);if(_942.onItem){_942.onItem.call(_946,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_942.onError){_942.onError.call(_946,error);}}});_945.addErrback(function(_947){self._loadInProgress=false;if(_942.onError){var _948=_942.scope?_942.scope:dojo.global;_942.onError.call(_948,_947);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_942.identity);if(_942.onItem){_943=_942.scope?_942.scope:dojo.global;_942.onItem.call(_943,item);}}}}else{item=this._getItemByIdentity(_942.identity);if(_942.onItem){_943=_942.scope?_942.scope:dojo.global;_942.onItem.call(_943,item);}}},_getItemByIdentity:function(_949){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_949)){item=this._itemsByIdentity[_949];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_949)){item=this._arrayOfAllItems[_949];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _94a=this._features["dojo.data.api.Identity"];if(_94a===Number){return null;}else{return [_94a];}},_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 _94b={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _94c=dojo.xhrGet(_94b);_94c.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){console.log(e);throw e;}});_94c.addErrback(function(_94d){throw _94d;});}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(_94e){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(_94e&&(_94e.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_94f){if(!_94f){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _950=this.getFeatures()["dojo.data.api.Identity"];return _950;},newItem:function(_951,_952){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _951!="object"&&typeof _951!="undefined"){throw new Error("newItem() was passed something other than an object");}var _953=null;var _954=this._getIdentifierAttribute();if(_954===Number){_953=this._arrayOfAllItems.length;}else{_953=_951[_954];if(typeof _953==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_953)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_953]==="undefined");}this._assert(typeof this._pending._newItems[_953]==="undefined");this._assert(typeof this._pending._deletedItems[_953]==="undefined");var _955={};_955[this._storeRefPropName]=this;_955[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_953]=_955;_955[_954]=[_953];}this._arrayOfAllItems.push(_955);var _956=null;if(_952&&_952.parent&&_952.attribute){_956={item:_952.parent,attribute:_952.attribute,oldValue:undefined};var _957=this.getValues(_952.parent,_952.attribute);if(_957&&_957.length>0){var _958=_957.slice(0,_957.length);if(_957.length===1){_956.oldValue=_957[0];}else{_956.oldValue=_957.slice(0,_957.length);}_958.push(_955);this._setValueOrValues(_952.parent,_952.attribute,_958,false);_956.newValue=this.getValues(_952.parent,_952.attribute);}else{this._setValueOrValues(_952.parent,_952.attribute,_955,false);_956.newValue=_955;}}else{_955[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_955);}this._pending._newItems[_953]=_955;for(var key in _951){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _959=_951[key];if(!dojo.isArray(_959)){_959=[_959];}_955[key]=_959;if(this.referenceIntegrity){for(var i=0;i<_959.length;i++){var val=_959[i];if(this.isItem(val)){this._addReferenceToMap(val,_955,key);}}}}this.onNew(_955,_956);return _955;},_removeArrayElement:function(_95a,_95b){var _95c=dojo.indexOf(_95a,_95b);if(_95c!=-1){_95a.splice(_95c,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _95d=item[this._itemNumPropName];var _95e=this.getIdentity(item);if(this.referenceIntegrity){var _95f=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_95f,function(_960){dojo.forEach(this.getValues(item,_960),function(_961){if(this.isItem(_961)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_961),attr:_960});this._removeReferenceFromMap(_961,item,_960);}},this);},this);var _962=item[this._reverseRefMap];if(_962){for(var _963 in _962){var _964=null;if(this._itemsByIdentity){_964=this._itemsByIdentity[_963];}else{_964=this._arrayOfAllItems[_963];}if(_964){for(var _965 in _962[_963]){var _966=this.getValues(_964,_965)||[];var _967=dojo.filter(_966,function(_968){return !(this.isItem(_968)&&this.getIdentity(_968)==_95e);},this);this._removeReferenceFromMap(item,_964,_965);if(_967.length<_966.length){this._setValueOrValues(_964,_965,_967,true);}}}}}}this._arrayOfAllItems[_95d]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_95e];}this._pending._deletedItems[_95e]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_969,_96a){return this._setValueOrValues(item,_969,_96a,true);},setValues:function(item,_96b,_96c){return this._setValueOrValues(item,_96b,_96c,true);},unsetAttribute:function(item,_96d){return this._setValueOrValues(item,_96d,[],true);},_setValueOrValues:function(item,_96e,_96f,_970){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_96e));this._assert(typeof _96f!=="undefined");var _971=this._getIdentifierAttribute();if(_96e==_971){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _972=this._getValueOrValues(item,_96e);var _973=this.getIdentity(item);if(!this._pending._modifiedItems[_973]){var _974={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_974[key]=item[key];}else{if(key===this._reverseRefMap){_974[key]=dojo.clone(item[key]);}else{_974[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_973]=_974;}var _975=false;if(dojo.isArray(_96f)&&_96f.length===0){_975=delete item[_96e];_96f=undefined;if(this.referenceIntegrity&&_972){var _976=_972;if(!dojo.isArray(_976)){_976=[_976];}for(var i=0;i<_976.length;i++){var _977=_976[i];if(this.isItem(_977)){this._removeReferenceFromMap(_977,item,_96e);}}}}else{var _978;if(dojo.isArray(_96f)){var _979=_96f;_978=_96f.slice(0,_96f.length);}else{_978=[_96f];}if(this.referenceIntegrity){if(_972){var _976=_972;if(!dojo.isArray(_976)){_976=[_976];}var map={};dojo.forEach(_976,function(_97a){if(this.isItem(_97a)){var id=this.getIdentity(_97a);map[id.toString()]=true;}},this);dojo.forEach(_978,function(_97b){if(this.isItem(_97b)){var id=this.getIdentity(_97b);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_97b,item,_96e);}}},this);for(var rId in map){var _97c;if(this._itemsByIdentity){_97c=this._itemsByIdentity[rId];}else{_97c=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_97c,item,_96e);}}else{for(var i=0;i<_978.length;i++){var _977=_978[i];if(this.isItem(_977)){this._addReferenceToMap(_977,item,_96e);}}}}item[_96e]=_978;_975=true;}if(_970){this.onSet(item,_96e,_972,_96f);}return _975;},_addReferenceToMap:function(_97d,_97e,_97f){var _980=this.getIdentity(_97e);var _981=_97d[this._reverseRefMap];if(!_981){_981=_97d[this._reverseRefMap]={};}var _982=_981[_980];if(!_982){_982=_981[_980]={};}_982[_97f]=true;},_removeReferenceFromMap:function(_983,_984,_985){var _986=this.getIdentity(_984);var _987=_983[this._reverseRefMap];var _988;if(_987){for(_988 in _987){if(_988==_986){delete _987[_988][_985];if(this._isEmpty(_987[_988])){delete _987[_988];}}}if(this._isEmpty(_987)){delete _983[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){console.log("Item: ["+this.getIdentity(item)+"] is referenced by: "+dojo.toJson(item[this._reverseRefMap]));}}},_getValueOrValues:function(item,_989){var _98a=undefined;if(this.hasAttribute(item,_989)){var _98b=this.getValues(item,_989);if(_98b.length==1){_98a=_98b[0];}else{_98a=_98b;}}return _98a;},_flatten:function(_98c){if(this.isItem(_98c)){var item=_98c;var _98d=this.getIdentity(item);var _98e={_reference:_98d};return _98e;}else{if(typeof _98c==="object"){for(var type in this._datatypeMap){var _98f=this._datatypeMap[type];if(dojo.isObject(_98f)&&!dojo.isFunction(_98f)){if(_98c instanceof _98f.type){if(!_98f.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_98f.serialize(_98c)};}}else{if(_98c instanceof _98f){return {_type:type,_value:_98c.toString()};}}}}return _98c;}},_getNewFileContentString:function(){var _990={};var _991=this._getIdentifierAttribute();if(_991!==Number){_990.identifier=_991;}if(this._labelAttr){_990.label=this._labelAttr;}_990.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _992={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _993=key;var _994=this.getValues(item,_993);if(_994.length==1){_992[_993]=this._flatten(_994[0]);}else{var _995=[];for(var j=0;j<_994.length;++j){_995.push(this._flatten(_994[j]));_992[_993]=_995;}}}}_990.items.push(_992);}}var _996=true;return dojo.toJson(_990,_996);},_isEmpty:function(_997){var _998=true;if(dojo.isObject(_997)){var i;for(i in _997){_998=false;break;}}else{if(dojo.isArray(_997)){if(_997.length>0){_998=false;}}}return _998;},save:function(_999){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _99a=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_999&&_999.onComplete){var _99b=_999.scope||dojo.global;_999.onComplete.call(_99b);}};var _99c=function(err){self._saveInProgress=false;if(_999&&_999.onError){var _99d=_999.scope||dojo.global;_999.onError.call(_99d,err);}};if(this._saveEverything){var _99e=this._getNewFileContentString();this._saveEverything(_99a,_99c,_99e);}if(this._saveCustom){this._saveCustom(_99a,_99c);}if(!this._saveEverything&&!this._saveCustom){_99a();}},revert:function(){this._assert(!this._saveInProgress);var _99f;for(_99f in this._pending._modifiedItems){var _9a0=this._pending._modifiedItems[_99f];var _9a1=null;if(this._itemsByIdentity){_9a1=this._itemsByIdentity[_99f];}else{_9a1=this._arrayOfAllItems[_99f];}_9a0[this._storeRefPropName]=this;for(key in _9a1){delete _9a1[key];}dojo.mixin(_9a1,_9a0);}var _9a2;for(_99f in this._pending._deletedItems){_9a2=this._pending._deletedItems[_99f];_9a2[this._storeRefPropName]=this;var _9a3=_9a2[this._itemNumPropName];if(_9a2["backup_"+this._reverseRefMap]){_9a2[this._reverseRefMap]=_9a2["backup_"+this._reverseRefMap];delete _9a2["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_9a3]=_9a2;if(this._itemsByIdentity){this._itemsByIdentity[_99f]=_9a2;}if(_9a2[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_9a2);}}for(_99f in this._pending._deletedItems){_9a2=this._pending._deletedItems[_99f];if(_9a2["backupRefs_"+this._reverseRefMap]){dojo.forEach(_9a2["backupRefs_"+this._reverseRefMap],function(_9a4){var _9a5;if(this._itemsByIdentity){_9a5=this._itemsByIdentity[_9a4.id];}else{_9a5=this._arrayOfAllItems[_9a4.id];}this._addReferenceToMap(_9a5,_9a2,_9a4.attr);},this);delete _9a2["backupRefs_"+this._reverseRefMap];}}for(_99f in this._pending._newItems){var _9a6=this._pending._newItems[_99f];_9a6[this._storeRefPropName]=null;this._arrayOfAllItems[_9a6[this._itemNumPropName]]=null;if(_9a6[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_9a6);}if(this._itemsByIdentity){delete this._itemsByIdentity[_99f];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _9a7=this.getIdentity(item);return new Boolean(this._pending._newItems[_9a7]||this._pending._modifiedItems[_9a7]||this._pending._deletedItems[_9a7]).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,_9a8,_9a9,_9aa){},onNew:function(_9ab,_9ac){},onDelete:function(_9ad){},close:function(_9ae){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(_9af){dojo.mixin(this,_9af);},labelProperty:"label",getValue:function(item,_9b0,_9b1){return typeof item.get==="function"?item.get(_9b0):_9b0 in item?item[_9b0]:_9b1;},getValues:function(item,_9b2){var val=this.getValue(item,_9b2);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,_9b3){return _9b3 in item;},containsValue:function(item,_9b4,_9b5){return dojo.indexOf(this.getValues(item,_9b4),_9b5)>-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(_9b6){item=_9b6;var func=_9b6 instanceof Error?args.onError:args.onItem;if(func){func.call(args.scope,_9b6);}});}else{if(args.onItem){args.onItem.call(args.scope,args.item);}}return item;},close:function(_9b7){return _9b7&&_9b7.abort&&_9b7.abort();},fetch:function(args){args=args||{};var self=this;var _9b8=args.scope||self;var _9b9=args.query;if(typeof _9b9=="object"){_9b9=dojo.delegate(_9b9);for(var i in _9b9){var _9ba=_9b9[i];if(typeof _9ba=="string"){_9b9[i]=RegExp("^"+dojo.regexp.escapeString(_9ba,"*?").replace(/\*/g,".*").replace(/\?/g,".")+"$",args.queryOptions&&args.queryOptions.ignoreCase?"mi":"m");_9b9[i].toString=(function(_9bb){return function(){return _9bb;};})(_9ba);}}}var _9bc=this.objectStore.query(_9b9,args);dojo.when(_9bc.total,function(_9bd){dojo.when(_9bc,function(_9be){if(args.onBegin){args.onBegin.call(_9b8,_9bd||_9be.length,args);}if(args.onItem){for(var i=0;i<_9be.length;i++){args.onItem.call(_9b8,_9be[i],args);}}if(args.onComplete){args.onComplete.call(_9b8,args.onItem?null:_9be,args);}return _9be;},_9bf);},_9bf);function _9bf(_9c0){if(args.onError){args.onError.call(_9b8,_9c0,args);}};args.abort=function(){if(_9bc.cancel){_9bc.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(_9c1){item=_9c1;args.onItem.call(args.scope,_9c1);},function(_9c2){args.onError.call(args.scope,_9c2);});return item;},newItem:function(data,_9c3){if(_9c3){var _9c4=this.getValue(_9c3.parent,_9c3.attribute,[]);_9c4=_9c4.concat([data]);data.__parent=_9c4;this.setValue(_9c3.parent,_9c3.attribute,_9c4);}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,_9c5,_9c6){var old=item[_9c5];this.changing(item);item[_9c5]=_9c6;this.onSet(item,_9c5,old,_9c6);},setValues:function(item,_9c7,_9c8){if(!dojo.isArray(_9c8)){throw new Error("setValues expects to be passed an Array object as its value");}this.setValue(item,_9c7,_9c8);},unsetAttribute:function(item,_9c9){this.changing(item);var old=item[_9c9];delete item[_9c9];this.onSet(item,_9c9,old,undefined);},_dirtyObjects:[],changing:function(_9ca,_9cb){_9ca.__isDirty=true;for(var i=0;i<this._dirtyObjects.length;i++){var _9cc=this._dirtyObjects[i];if(_9ca==_9cc.object){if(_9cb){_9cc.object=false;if(!this._saveNotNeeded){_9cc.save=true;}}return;}}var old=_9ca instanceof Array?[]:{};for(i in _9ca){if(_9ca.hasOwnProperty(i)){old[i]=_9ca[i];}}this._dirtyObjects.push({object:!_9cb&&_9ca,old:old,save:!this._saveNotNeeded});},save:function(_9cd){_9cd=_9cd||{};var _9ce,_9cf=[];var _9d0={};var _9d1=[];var self;var _9d2=this._dirtyObjects;var left=_9d2.length;try{dojo.connect(_9cd,"onError",function(){if(_9cd.revertOnError!==false){var _9d3=_9d2;_9d2=_9d1;var _9d4=0;jr.revert();self._dirtyObjects=_9d3;}else{self._dirtyObjects=dirtyObject.concat(_9d1);}});if(this.objectStore.transaction){var _9d5=this.objectStore.transaction();}for(var i=0;i<_9d2.length;i++){var _9d6=_9d2[i];var _9d7=_9d6.object;var old=_9d6.old;delete _9d7.__isDirty;if(_9d7){_9ce=this.objectStore.put(_9d7,{overwrite:!!old});}else{_9ce=this.objectStore.remove(this.getIdentity(old));}_9d1.push(_9d6);_9d2.splice(i--,1);dojo.when(_9ce,function(_9d8){if(!(--left)){if(_9cd.onComplete){_9cd.onComplete.call(_9cd.scope,_9cf);}}},function(_9d9){left=-1;_9cd.onError.call(_9cd.scope,_9d9);});}if(_9d5){_9d5.commit();}}catch(e){_9cd.onError.call(_9cd.scope,value);}},revert:function(_9da){var _9db=this._dirtyObjects;for(var i=_9db.length;i>0;){i--;var _9dc=_9db[i];var _9dd=_9dc.object;var old=_9dc.old;if(_9dd&&old){for(var j in old){if(old.hasOwnProperty(j)&&_9dd[j]!==old[j]){this.onSet(_9dd,j,_9dd[j],old[j]);_9dd[j]=old[j];}}for(j in _9dd){if(!old.hasOwnProperty(j)){this.onSet(_9dd,j,_9dd[j]);delete _9dd[j];}}}else{if(!old){this.onDelete(_9dd);}else{this.onNew(old);}}delete (_9dd||old).__isDirty;_9db.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(_9de){if(!_9de){return _9de;}if(_9de.then){_9de=dojo.delegate(_9de);}function _9df(_9e0){if(!_9de[_9e0]){_9de[_9e0]=function(){var args=arguments;return dojo.when(_9de,function(_9e1){Array.prototype.unshift.call(args,_9e1);return dojo.store.util.QueryResults(dojo[_9e0].apply(dojo,args));});};}};_9df("forEach");_9df("filter");_9df("map");if(!_9de.total){_9de.total=dojo.when(_9de,function(_9e2){return _9e2.length;});}return _9de;};}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(_9e3){dojo.mixin(this,_9e3);},target:"",idProperty:"id",get:function(id,_9e4){var _9e5=_9e4||{};_9e5.Accept="application/javascript, application/json";return dojo.xhrGet({url:this.target+id,handleAs:"json",headers:_9e5});},getIdentity:function(_9e6){return _9e6[this.idProperty];},put:function(_9e7,_9e8){_9e8=_9e8||{};var id=("id" in _9e8)?_9e8.id:this.getIdentity(_9e7);var _9e9=typeof id!="undefined";return dojo.xhr(_9e9&&!_9e8.incremental?"PUT":"POST",{url:_9e9?this.target+id:this.target,postData:dojo.toJson(_9e7),handleAs:"json",headers:{"Content-Type":"application/json","If-Match":_9e8.overwrite===true?"*":null,"If-None-Match":_9e8.overwrite===false?"*":null}});},add:function(_9ea,_9eb){_9eb=_9eb||{};_9eb.overwrite=false;return this.put(_9ea,_9eb);},remove:function(id){return dojo.xhrDelete({url:this.target+id});},query:function(_9ec,_9ed){var _9ee={Accept:"application/javascript, application/json"};_9ed=_9ed||{};if(_9ed.start>=0||_9ed.count>=0){_9ee.Range="items="+(_9ed.start||"0")+"-"+(("count" in _9ed&&_9ed.count!=Infinity)?(_9ed.count+(_9ed.start||0)-1):"");}if(dojo.isObject(_9ec)){_9ec=dojo.objectToQuery(_9ec);_9ec=_9ec?"?"+_9ec:"";}if(_9ed&&_9ed.sort){_9ec+=(_9ec?"&":"?")+"sort(";for(var i=0;i<_9ed.sort.length;i++){var sort=_9ed.sort[i];_9ec+=(i>0?",":"")+(sort.descending?"-":"+")+encodeURIComponent(sort.attribute);}_9ec+=")";}var _9ef=dojo.xhrGet({url:this.target+(_9ec||""),handleAs:"json",headers:_9ee});_9ef.total=_9ef.then(function(){var _9f0=_9ef.ioArgs.xhr.getResponseHeader("Content-Range");return _9f0&&(_9f0=_9f0.match(/\/(.*)/))&&+_9f0[1];});return dojo.store.util.QueryResults(_9ef);}});}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 _9f1=this.hideNode,_9f2=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_9f1.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_9f1.style.display="none";}});},_setOpenAttr:function(open,_9f3){dojo.forEach([this._wipeIn,this._wipeOut],function(_9f4){if(_9f4&&_9f4.status()=="playing"){_9f4.stop();}});if(_9f3){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(_9f5){dijit.setWaiRole(this.focusNode,_9f5?"button":"heading");if(_9f5){dijit.setWaiState(this.focusNode,"controls",this.id+"_pane");dojo.attr(this.focusNode,"tabIndex",this.tabIndex);}else{dojo.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_9f5);this._setCss();},_setContentAttr:function(_9f6){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 _9f7=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");dojo.replaceClass(node,this._titleBarClass,_9f7||"");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(_9f8){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_9f8);}});}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(_9f9){var _9fa=_9f9.region;if(_9fa){this.inherited(arguments);dojo.addClass(_9f9.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_9fa=="leading"){_9fa=ltr?"left":"right";}if(_9fa=="trailing"){_9fa=ltr?"right":"left";}if(_9fa!="center"&&(_9f9.splitter||this.gutters)&&!_9f9._splitterWidget){var _9fb=dojo.getObject(_9f9.splitter?this._splitterClass:"dijit.layout._Gutter");var _9fc=new _9fb({id:_9f9.id+"_splitter",container:this,child:_9f9,region:_9fa,live:this.liveSplitters});_9fc.isSplitter=true;_9f9._splitterWidget=_9fc;dojo.place(_9fc.domNode,_9f9.domNode,"after");_9fc.startup();}_9f9.region=_9fa;}},layout:function(){this._layoutChildren();},addChild:function(_9fd,_9fe){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_9ff){var _a00=_9ff.region;var _a01=_9ff._splitterWidget;if(_a01){_a01.destroy();delete _9ff._splitterWidget;}this.inherited(arguments);if(this._started){this._layoutChildren();}dojo.removeClass(_9ff.domNode,this.baseClass+"Pane");dojo.style(_9ff.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});dojo.style(_9ff.domNode,_a00=="top"||_a00=="bottom"?"width":"height","auto");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_a02){return !_a02.isSplitter;});},getSplitter:function(_a03){return dojo.filter(this.getChildren(),function(_a04){return _a04.region==_a03;})[0]._splitterWidget;},resize:function(_a05,_a06){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(_a07,_a08){if(!this._borderBox||!this._borderBox.h){return;}var _a09=dojo.map(this.getChildren(),function(_a0a,idx){return {pane:_a0a,weight:[_a0a.region=="center"?Infinity:0,_a0a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(_a0a.region)?1:-1),idx]};},this);_a09.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 _a0b=[];dojo.forEach(_a09,function(_a0c){var pane=_a0c.pane;_a0b.push(pane);if(pane._splitterWidget){_a0b.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,_a0b,_a07,_a08);},destroyRecursive:function(){dojo.forEach(this.getChildren(),function(_a0d){var _a0e=_a0d._splitterWidget;if(_a0e){_a0e.destroy();}delete _a0d._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 _a0f=dojo.cookie(this._cookieName);if(_a0f){this.child.domNode.style[this.horizontal?"height":"width"]=_a0f;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_a10=dojo.marginBox(this.child.domNode)[dim],_a11=dojo.filter(this.container.getChildren(),function(_a12){return _a12.region=="center";})[0],_a13=dojo.marginBox(_a11.domNode)[dim];return Math.min(this.child.maxSize,_a10+_a13);},_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 _a14=this._factor,_a15=this.horizontal,axis=_a15?"pageY":"pageX",_a16=e[axis],_a17=this.domNode.style,dim=_a15?"h":"w",_a18=dojo.marginBox(this.child.domNode)[dim],max=this._computeMaxSize(),min=this.child.minSize||20,_a19=this.region,_a1a=_a19=="top"||_a19=="bottom"?"top":"left",_a1b=parseInt(_a17[_a1a],10),_a1c=this._resize,_a1d=dojo.hitch(this.container,"_layoutChildren",this.child.id),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_a1e){var _a1f=e[axis]-_a16,_a20=_a14*_a1f+_a18,_a21=Math.max(Math.min(_a20,max),min);if(_a1c||_a1e){_a1d(_a21);}_a17[_a1a]=_a1f+_a1b+_a14*(_a21-_a20)+"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 _a22=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _a22?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _a22?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _a23=dojo._getMarginSize(this.child.domNode)[_a22?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.child.id,Math.max(Math.min(_a23,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(_a24,_a25){switch(typeof _a24){default:throw new Error("Can not query with a "+typeof _a24);case "object":case "undefined":var _a26=_a24;_a24=function(_a27){for(var key in _a26){var _a28=_a26[key];if(_a28&&_a28.test){if(!_a28.test(_a27[key])){return false;}}else{if(_a28!=_a27[key]){return false;}}}return true;};break;case "string":if(!this[_a24]){throw new Error("No filter function "+_a24+" was found in store");}_a24=this[_a24];case "function":}function _a29(_a2a){var _a2b=dojo.filter(_a2a,_a24);if(_a25&&_a25.sort){_a2b.sort(function(a,b){for(var sort,i=0;sort=_a25.sort[i];i++){var _a2c=a[sort.attribute];var _a2d=b[sort.attribute];if(_a2c!=_a2d){return !!sort.descending==_a2c>_a2d?-1:1;}}return 0;});}if(_a25&&(_a25.start||_a25.count)){var _a2e=_a2b.length;_a2b=_a2b.slice(_a25.start||0,(_a25.start||0)+(_a25.count||Infinity));_a2b.total=_a2e;}return _a2b;};_a29.matches=_a24;return _a29;};}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(_a2f){this.index={};dojo.mixin(this,_a2f);this.setData(this.data||[]);},data:null,idProperty:"id",index:null,queryEngine:dojo.store.util.SimpleQueryEngine,get:function(id){return this.index[id];},getIdentity:function(_a30){return _a30[this.idProperty];},put:function(_a31,_a32){var id=_a32&&_a32.id||_a31[this.idProperty]||Math.random();this.index[id]=_a31;var data=this.data,_a33=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_a33]==id){data[i]=_a31;return id;}}this.data.push(_a31);return id;},add:function(_a34,_a35){if(this.index[_a35&&_a35.id||_a34[this.idProperty]]){throw new Error("Object already exists");}return this.put(_a34,_a35);},remove:function(id){delete this.index[id];var data=this.data,_a36=this.idProperty;for(var i=0,l=data.length;i<l;i++){if(data[i][_a36]==id){data.splice(i,1);return;}}},query:function(_a37,_a38){return dojo.store.util.QueryResults(this.queryEngine(_a37,_a38)(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 _a39=data[i];this.index[_a39[this.idProperty]]=_a39;}}});}dojo.i18n._preloadLocalizations("dojo.nls.vclViewRequests",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
