/*
	Copyright (c) 2004-2010, 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
*/

dojo.provide("dojo.mydojo");if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_1){this.pairs=[];this.returnWrappers=_1||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_2,_3,_4,_5,_6){this.pairs[((_6)?"unshift":"push")]([_2,_3,_4,_5]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _7=this.pairs[i];if(_7[1].apply(this,arguments)){if((_7[3])||(this.returnWrappers)){return _7[2];}else{return _7[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_8){for(var i=0;i<this.pairs.length;i++){var _9=this.pairs[i];if(_9[0]==_8){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(_a){var _b={ADP:0,AFN:0,ALL:0,AMD:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,COP:0,CRC:0,DJF:0,ESP:0,GNF:0,GYD:0,HUF:0,IDR:0,IQD:0,IRR:3,ISK:0,ITL:0,JOD:3,JPY:0,KMF:0,KPW:0,KRW:0,KWD:3,LAK:0,LBP:0,LUF:0,LYD:3,MGA:0,MGF:0,MMK:0,MNT:0,MRO:0,MUR:0,OMR:3,PKR:0,PYG:0,RSD:0,RWF:0,SLL:0,SOS:0,STD:0,SYP:0,TMM:0,TND:3,TRL:0,TZS:0,UGX:0,UZS:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,YER:0,ZMK:0,ZWD:0};var _c={CHF:5};var _d=_b[_a],_e=_c[_a];if(typeof _d=="undefined"){_d=2;}if(typeof _e=="undefined"){_e=0;}return {places:_d,round:_e};};}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_f,_10,_11){_11=dojo.i18n.normalizeLocale(_11);var _12=_11.split("-");var _13=[_f,"nls",_10].join(".");var _14=dojo._loadedModules[_13];if(_14){var _15;for(var i=_12.length;i>0;i--){var loc=_12.slice(0,i).join("_");if(_14[loc]){_15=_14[loc];break;}}if(!_15){_15=_14.ROOT;}if(_15){var _16=function(){};_16.prototype=_15;return new _16();}}throw new Error("Bundle not found: "+_10+" in "+_f+" , locale="+_11);};dojo.i18n.normalizeLocale=function(_17){var _18=_17?_17.toLowerCase():dojo.locale;if(_18=="root"){_18="ROOT";}return _18;};dojo.i18n._requireLocalization=function(_19,_1a,_1b,_1c){var _1d=dojo.i18n.normalizeLocale(_1b);var _1e=[_19,"nls",_1a].join(".");var _1f="";if(_1c){var _20=_1c.split(",");for(var i=0;i<_20.length;i++){if(_1d["indexOf"](_20[i])==0){if(_20[i].length>_1f.length){_1f=_20[i];}}}if(!_1f){_1f="ROOT";}}var _21=_1c?_1f:_1d;var _22=dojo._loadedModules[_1e];var _23=null;if(_22){if(dojo.config.localizationComplete&&_22._built){return;}var _24=_21.replace(/-/g,"_");var _25=_1e+"."+_24;_23=dojo._loadedModules[_25];}if(!_23){_22=dojo["provide"](_1e);var _26=dojo._getModuleSymbols(_19);var _27=_26.concat("nls").join("/");var _28;dojo.i18n._searchLocalePath(_21,_1c,function(loc){var _29=loc.replace(/-/g,"_");var _2a=_1e+"."+_29;var _2b=false;if(!dojo._loadedModules[_2a]){dojo["provide"](_2a);var _2c=[_27];if(loc!="ROOT"){_2c.push(loc);}_2c.push(_1a);var _2d=_2c.join("/")+".js";_2b=dojo._loadPath(_2d,null,function(_2e){var _2f=function(){};_2f.prototype=_28;_22[_29]=new _2f();for(var j in _2e){_22[_29][j]=_2e[j];}});}else{_2b=true;}if(_2b&&_22[_29]){_28=_22[_29];}else{_22[_29]=_28;}if(_1c){return true;}});}if(_1c&&_1d!=_1f){_22[_1d.replace(/-/g,"_")]=_22[_1f.replace(/-/g,"_")];}};(function(){var _30=dojo.config.extraLocale;if(_30){if(!_30 instanceof Array){_30=[_30];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_31,_32){req(m,b,_31,_32);if(_31){return;}for(var i=0;i<_30.length;i++){req(m,b,_30[i],_32);}};}})();dojo.i18n._searchLocalePath=function(_33,_34,_35){_33=dojo.i18n.normalizeLocale(_33);var _36=_33.split("-");var _37=[];for(var i=_36.length;i>0;i--){_37.push(_36.slice(0,i).join("-"));}_37.push(false);if(_34){_37.reverse();}for(var j=_37.length-1;j>=0;j--){var loc=_37[j]||"ROOT";var _38=_35(loc);if(_38){break;}}};dojo.i18n._preloadLocalizations=function(_39,_3a){function _3b(_3c){_3c=dojo.i18n.normalizeLocale(_3c);dojo.i18n._searchLocalePath(_3c,true,function(loc){for(var i=0;i<_3a.length;i++){if(_3a[i]==loc){dojo["require"](_39+"_"+loc);return true;}}return false;});};_3b();var _3d=dojo.config.extraLocale||[];for(var i=0;i<_3d.length;i++){_3b(_3d[i]);}};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_3e){var _3f={mv:5,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,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,ie:0,il:0,"in":0,is: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,sy:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _40=dojo.cldr.supplemental._region(_3e);var dow=_3f[_40];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_41){_41=dojo.i18n.normalizeLocale(_41);var _42=_41.split("-");var _43=_42[1];if(!_43){_43={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"}[_42[0]];}else{if(_43.length==4){_43=_42[2];}}return _43;};dojo.cldr.supplemental.getWeekend=function(_44){var _45={"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 _46={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 _47=dojo.cldr.supplemental._region(_44);var _48=_45[_47];var end=_46[_47];if(_48===undefined){_48=6;}if(end===undefined){end=0;}return {start:_48,end:end};};}if(!dojo._hasResource["dojo.colors"]){dojo._hasResource["dojo.colors"]=true;dojo.provide("dojo.colors");(function(){var _49=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};dojo.colorFromRgb=function(_4a,obj){var m=_4a.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1],a;if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){a=dojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}return dojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2;a=[_49(m1,m2,H+1/3)*256,_49(m1,m2,H)*256,_49(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return dojo.colorFromArray(a,obj);}}return null;};var _4b=function(c,low,_4c){c=Number(c);return isNaN(c)?_4c:c<low?low:c>_4c?_4c:c;};dojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_4b(t.r,0,255));t.g=Math.round(_4b(t.g,0,255));t.b=Math.round(_4b(t.b,0,255));t.a=_4b(t.a,0,1);return this;};})();dojo.colors.makeGrey=function(g,a){return dojo.colorFromArray([g,g,g,a]);};dojo.mixin(dojo.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_4d){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_4d&&_4d.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_4e){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("|"),_4e);};dojo.regexp.group=function(_4f,_50){return "("+(_50?"?:":"")+_4f+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(_51,_52,_53){var c=document.cookie;if(arguments.length==1){var _54=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_51)+"=([^;]*)"));return _54?decodeURIComponent(_54[1]):undefined;}else{_53=_53||{};var exp=_53.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_53.expires=d;}if(exp&&exp.toUTCString){_53.expires=exp.toUTCString();}_52=encodeURIComponent(_52);var _55=_51+"="+_52,_56;for(_56 in _53){_55+="; "+_56;var _57=_53[_56];if(_57!==true){_55+="="+_57;}}document.cookie=_55;}};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["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(_58,_59,ch,end){if(!ch){ch="0";}var out=String(_58),pad=dojo.string.rep(ch,Math.ceil((_59-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_5a,map,_5b,_5c){_5c=_5c||dojo.global;_5b=_5b?dojo.hitch(_5c,_5b):function(v){return v;};return _5a.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_5d,key,_5e){var _5f=dojo.getObject(key,false,map);if(_5e){_5f=dojo.getObject(_5e,false,_5c).call(_5c,_5f,key);}return _5b(_5f,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.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.number.format=function(_60,_61){_61=dojo.mixin({},_61||{});var _62=dojo.i18n.normalizeLocale(_61.locale),_63=dojo.i18n.getLocalization("dojo.cldr","number",_62);_61.customs=_63;var _64=_61.pattern||_63[(_61.type||"decimal")+"Format"];if(isNaN(_60)||Math.abs(_60)==Infinity){return null;}return dojo.number._applyPattern(_60,_64,_61);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_65,_66,_67){_67=_67||{};var _68=_67.customs.group,_69=_67.customs.decimal,_6a=_66.split(";"),_6b=_6a[0];_66=_6a[(_65<0)?1:0]||("-"+_6b);if(_66.indexOf("%")!=-1){_65*=100;}else{if(_66.indexOf("‰")!=-1){_65*=1000;}else{if(_66.indexOf("¤")!=-1){_68=_67.customs.currencyGroup||_68;_69=_67.customs.currencyDecimal||_69;_66=_66.replace(/\u00a4{1,3}/,function(_6c){var _6d=["symbol","currency","displayName"][_6c.length-1];return _67[_6d]||_67.currency||"";});}else{if(_66.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _6e=dojo.number._numberPatternRE;var _6f=_6b.match(_6e);if(!_6f){throw new Error("unable to find a number expression in pattern: "+_66);}if(_67.fractional===false){_67.places=0;}return _66.replace(_6e,dojo.number._formatAbsolute(_65,_6f[0],{decimal:_69,group:_68,places:_67.places,round:_67.round}));};dojo.number.round=function(_70,_71,_72){var _73=10/(_72||10);return (_73*+_70).toFixed(_71)/_73;};if((0.9).toFixed()==0){(function(){var _74=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 _74(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_75,_76,_77){_77=_77||{};if(_77.places===true){_77.places=0;}if(_77.places===Infinity){_77.places=6;}var _78=_76.split("."),_79=typeof _77.places=="string"&&_77.places.indexOf(","),_7a=_77.places;if(_79){_7a=_77.places.substring(_79+1);}else{if(!(_7a>=0)){_7a=(_78[1]||[]).length;}}if(!(_77.round<0)){_75=dojo.number.round(_75,_7a,_77.round);}var _7b=String(Math.abs(_75)).split("."),_7c=_7b[1]||"";if(_78[1]||_77.places){if(_79){_77.places=_77.places.substring(0,_79);}var pad=_77.places!==undefined?_77.places:(_78[1]&&_78[1].lastIndexOf("0")+1);if(pad>_7c.length){_7b[1]=dojo.string.pad(_7c,pad,"0",true);}if(_7a<_7c.length){_7b[1]=_7c.substr(0,_7a);}}else{if(_7b[1]){_7b.pop();}}var _7d=_78[0].replace(",","");pad=_7d.indexOf("0");if(pad!=-1){pad=_7d.length-pad;if(pad>_7b[0].length){_7b[0]=dojo.string.pad(_7b[0],pad);}if(_7d.indexOf("#")==-1){_7b[0]=_7b[0].substr(_7b[0].length-pad);}}var _7e=_78[0].lastIndexOf(","),_7f,_80;if(_7e!=-1){_7f=_78[0].length-_7e-1;var _81=_78[0].substr(0,_7e);_7e=_81.lastIndexOf(",");if(_7e!=-1){_80=_81.length-_7e-1;}}var _82=[];for(var _83=_7b[0];_83;){var off=_83.length-_7f;_82.push((off>0)?_83.substr(off):_83);_83=(off>0)?_83.slice(0,off):"";if(_80){_7f=_80;delete _80;}}_7b[0]=_82.reverse().join(_77.group||",");return _7b.join(_77.decimal||".");};dojo.number.regexp=function(_84){return dojo.number._parseInfo(_84).regexp;};dojo.number._parseInfo=function(_85){_85=_85||{};var _86=dojo.i18n.normalizeLocale(_85.locale),_87=dojo.i18n.getLocalization("dojo.cldr","number",_86),_88=_85.pattern||_87[(_85.type||"decimal")+"Format"],_89=_87.group,_8a=_87.decimal,_8b=1;if(_88.indexOf("%")!=-1){_8b/=100;}else{if(_88.indexOf("‰")!=-1){_8b/=1000;}else{var _8c=_88.indexOf("¤")!=-1;if(_8c){_89=_87.currencyGroup||_89;_8a=_87.currencyDecimal||_8a;}}}var _8d=_88.split(";");if(_8d.length==1){_8d.push("-"+_8d[0]);}var re=dojo.regexp.buildGroupRE(_8d,function(_8e){_8e="(?:"+dojo.regexp.escapeString(_8e,".")+")";return _8e.replace(dojo.number._numberPatternRE,function(_8f){var _90={signed:false,separator:_85.strict?_89:[_89,""],fractional:_85.fractional,decimal:_8a,exponent:false},_91=_8f.split("."),_92=_85.places;if(_91.length==1&&_8b!=1){_91[1]="###";}if(_91.length==1||_92===0){_90.fractional=false;}else{if(_92===undefined){_92=_85.pattern?_91[1].lastIndexOf("0")+1:Infinity;}if(_92&&_85.fractional==undefined){_90.fractional=true;}if(!_85.places&&(_92<_91[1].length)){_92+=","+_91[1].length;}_90.places=_92;}var _93=_91[0].split(",");if(_93.length>1){_90.groupSize=_93.pop().length;if(_93.length>1){_90.groupSize2=_93.pop().length;}}return "("+dojo.number._realNumberRegexp(_90)+")";});},true);if(_8c){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_94,_95,_96,_97){var _98=["symbol","currency","displayName"][_96.length-1],_99=dojo.regexp.escapeString(_85[_98]||_85.currency||"");_95=_95?"[\\s\\xa0]":"";_97=_97?"[\\s\\xa0]":"";if(!_85.strict){if(_95){_95+="*";}if(_97){_97+="*";}return "(?:"+_95+_99+_97+")?";}return _95+_99+_97;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_89,decimal:_8a,factor:_8b};};dojo.number.parse=function(_9a,_9b){var _9c=dojo.number._parseInfo(_9b),_9d=(new RegExp("^"+_9c.regexp+"$")).exec(_9a);if(!_9d){return NaN;}var _9e=_9d[1];if(!_9d[1]){if(!_9d[2]){return NaN;}_9e=_9d[2];_9c.factor*=-1;}_9e=_9e.replace(new RegExp("["+_9c.group+"\\s\\xa0"+"]","g"),"").replace(_9c.decimal,".");return _9e*_9c.factor;};dojo.number._realNumberRegexp=function(_9f){_9f=_9f||{};if(!("places" in _9f)){_9f.places=Infinity;}if(typeof _9f.decimal!="string"){_9f.decimal=".";}if(!("fractional" in _9f)||/^0/.test(_9f.places)){_9f.fractional=[true,false];}if(!("exponent" in _9f)){_9f.exponent=[true,false];}if(!("eSigned" in _9f)){_9f.eSigned=[true,false];}var _a0=dojo.number._integerRegexp(_9f),_a1=dojo.regexp.buildGroupRE(_9f.fractional,function(q){var re="";if(q&&(_9f.places!==0)){re="\\"+_9f.decimal;if(_9f.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_9f.places+"}";}}return re;},true);var _a2=dojo.regexp.buildGroupRE(_9f.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_9f.eSigned})+")";}return "";});var _a3=_a0+_a1;if(_a1){_a3="(?:(?:"+_a3+")|(?:"+_a1+"))";}return _a3+_a2;};dojo.number._integerRegexp=function(_a4){_a4=_a4||{};if(!("signed" in _a4)){_a4.signed=[true,false];}if(!("separator" in _a4)){_a4.separator="";}else{if(!("groupSize" in _a4)){_a4.groupSize=3;}}var _a5=dojo.regexp.buildGroupRE(_a4.signed,function(q){return q?"[-+]":"";},true);var _a6=dojo.regexp.buildGroupRE(_a4.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_a4.groupSize,_a7=_a4.groupSize2;if(_a7){var _a8="(?:0|[1-9]\\d{0,"+(_a7-1)+"}(?:["+sep+"]\\d{"+_a7+"})*["+sep+"]\\d{"+grp+"})";return ((grp-_a7)>0)?"(?:"+_a8+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_a8;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _a5+_a6;};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_a9){_a9=_a9||{};_a9.type="currency";var _aa=dojo.i18n.getLocalization("dojo.cldr","currency",_a9.locale)||{};var iso=_a9.currency;var _ab=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(_ac){_ab[_ac]=_aa[iso+"_"+_ac];});_ab.fractional=[true,false];return dojo.mixin(_ab,_a9);};dojo.currency.format=function(_ad,_ae){return dojo.number.format(_ad,dojo.currency._mixInDefaults(_ae));};dojo.currency.regexp=function(_af){return dojo.number.regexp(dojo.currency._mixInDefaults(_af));};dojo.currency.parse=function(_b0,_b1){return dojo.number.parse(_b0,dojo.currency._mixInDefaults(_b1));};}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(_b2){var _b3=this;dojo.mixin(_b3,_b2);_b3.node=_b2.node;_b3._showArgs=dojo.mixin({},_b2);_b3._showArgs.node=_b3.node;_b3._showArgs.duration=_b3.showDuration;_b3.showAnim=_b3.showFunc(_b3._showArgs);_b3._hideArgs=dojo.mixin({},_b2);_b3._hideArgs.node=_b3.node;_b3._hideArgs.duration=_b3.hideDuration;_b3.hideAnim=_b3.hideFunc(_b3._hideArgs);dojo.connect(_b3.showAnim,"beforeBegin",dojo.hitch(_b3.hideAnim,"stop",true));dojo.connect(_b3.hideAnim,"beforeBegin",dojo.hitch(_b3.showAnim,"stop",true));},show:function(_b4){return this.showAnim.play(_b4||0);},hide:function(_b5){return this.hideAnim.play(_b5||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_b6={_fire:function(evt,_b7){if(this[evt]){this[evt].apply(this,_b7||[]);}return this;}};var _b8=function(_b9){this._index=-1;this._animations=_b9||[];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(_b8,{_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(_ba,_bb){if(!this._current){this._current=this._animations[this._index=0];}if(!_bb&&this._current.status()=="playing"){return this;}var _bc=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_bd=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_be=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_bc);d.disconnect(_bd);d.disconnect(_be);});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(_bf,_c0){this.pause();var _c1=this.duration*_bf;this._current=null;d.some(this._animations,function(a){if(a.duration<=_c1){this._current=a;return true;}_c1-=a.duration;return false;});if(this._current){this._current.gotoPercent(_c1/this._current.duration,_c0);}return this;},stop:function(_c2){if(this._current){if(_c2){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(_b8,_b6);dojo.fx.chain=function(_c3){return new _b8(_c3);};var _c4=function(_c5){this._animations=_c5||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_c5,function(a){var _c6=a.duration;if(a.delay){_c6+=a.delay;}if(this.duration<_c6){this.duration=_c6;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _c7=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_c7._connects.push(d.connect(_c7._pseudoAnimation,evt,function(){_c7._fire(evt,arguments);}));});};d.extend(_c4,{_doAction:function(_c8,_c9){d.forEach(this._animations,function(a){a[_c8].apply(a,_c9);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_ca,_cb){var t=this._pseudoAnimation;t[_ca].apply(t,_cb);},play:function(_cc,_cd){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(_ce,_cf){var ms=this.duration*_ce;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_cf);});this._call("gotoPercent",arguments);return this;},stop:function(_d0){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(_c4,_b6);dojo.fx.combine=function(_d1){return new _c4(_d1);};dojo.fx.wipeIn=function(_d2){var _d3=_d2.node=d.byId(_d2.node),s=_d3.style,o;var _d4=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 _d5=d.style(_d3,"height");return Math.max(_d5,1);}},end:function(){return _d3.scrollHeight;}}}},_d2));d.connect(_d4,"onEnd",function(){s.height="auto";s.overflow=o;});return _d4;};dojo.fx.wipeOut=function(_d6){var _d7=_d6.node=d.byId(_d6.node),s=_d7.style,o;var _d8=d.animateProperty(d.mixin({properties:{height:{end:1}}},_d6));d.connect(_d8,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_d8,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _d8;};dojo.fx.slideTo=function(_d9){var _da=_d9.node=d.byId(_d9.node),top=null,_db=null;var _dc=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_db=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_db=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_db+"px";}};})(_da);_dc();var _dd=d.animateProperty(d.mixin({properties:{top:_d9.top||0,left:_d9.left||0}},_d9));d.connect(_dd,"beforeBegin",_dd,_dc);return _dd;};})();}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_de,_df){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 _e0=dojo.date.stamp._isoRegExp.exec(_de),_e1=null;if(_e0){_e0.shift();if(_e0[1]){_e0[1]--;}if(_e0[6]){_e0[6]*=1000;}if(_df){_df=new Date(_df);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_e2){return _df["get"+_e2]();}),function(_e3,_e4){_e0[_e4]=_e0[_e4]||_e3;});}_e1=new Date(_e0[0]||1970,_e0[1]||0,_e0[2]||1,_e0[3]||0,_e0[4]||0,_e0[5]||0,_e0[6]||0);if(_e0[0]<100){_e1.setFullYear(_e0[0]||1970);}var _e5=0,_e6=_e0[7]&&_e0[7].charAt(0);if(_e6!="Z"){_e5=((_e0[8]||0)*60)+(Number(_e0[9])||0);if(_e6!="-"){_e5*=-1;}}if(_e6){_e5-=_e1.getTimezoneOffset();}if(_e5){_e1.setTime(_e1.getTime()+_e5*60000);}}return _e1;};dojo.date.stamp.toISOString=function(_e7,_e8){var _e9=function(n){return (n<10)?"0"+n:n;};_e8=_e8||{};var _ea=[],_eb=_e8.zulu?"getUTC":"get",_ec="";if(_e8.selector!="time"){var _ed=_e7[_eb+"FullYear"]();_ec=["0000".substr((_ed+"").length)+_ed,_e9(_e7[_eb+"Month"]()+1),_e9(_e7[_eb+"Date"]())].join("-");}_ea.push(_ec);if(_e8.selector!="date"){var _ee=[_e9(_e7[_eb+"Hours"]()),_e9(_e7[_eb+"Minutes"]()),_e9(_e7[_eb+"Seconds"]())].join(":");var _ef=_e7[_eb+"Milliseconds"]();if(_e8.milliseconds){_ee+="."+(_ef<100?"0":"")+_e9(_ef);}if(_e8.zulu){_ee+="Z";}else{if(_e8.selector!="time"){var _f0=_e7.getTimezoneOffset();var _f1=Math.abs(_f0);_ee+=(_f0>0?"-":"+")+_e9(Math.floor(_f1/60))+":"+_e9(_f1%60);}}_ea.push(_ee);}return _ea.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;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _f2(_f3){if(d.isString(_f3)){return "string";}if(typeof _f3=="number"){return "number";}if(typeof _f3=="boolean"){return "boolean";}if(d.isFunction(_f3)){return "function";}if(d.isArray(_f3)){return "array";}if(_f3 instanceof Date){return "date";}if(_f3 instanceof d._Url){return "url";}return "object";};function _f4(_f5,_f6){switch(_f6){case "string":return _f5;case "number":return _f5.length?Number(_f5):NaN;case "boolean":return typeof _f5=="boolean"?_f5:!(_f5.toLowerCase()=="false");case "function":if(d.isFunction(_f5)){_f5=_f5.toString();_f5=d.trim(_f5.substring(_f5.indexOf("{")+1,_f5.length-1));}try{if(_f5===""||_f5.search(/[^\w\.]+/i)!=-1){return new Function(_f5);}else{return d.getObject(_f5,false)||new Function(_f5);}}catch(e){return new Function();}case "array":return _f5?_f5.split(/\s*,\s*/):[];case "date":switch(_f5){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_f5);}case "url":return d.baseUrl+_f5;default:return d.fromJson(_f5);}};var _f7={};dojo.connect(dojo,"extend",function(){_f7={};});function _f8(_f9){if(!_f7[_f9]){var cls=d.getObject(_f9);if(!cls){return null;}var _fa=cls.prototype;var _fb={},_fc={};for(var _fd in _fa){if(_fd.charAt(0)=="_"){continue;}if(_fd in _fc){continue;}var _fe=_fa[_fd];_fb[_fd]=_f2(_fe);}_f7[_f9]={cls:cls,params:_fb};}return _f7[_f9];};this._functionFromScript=function(_ff){var _100="";var _101="";var _102=_ff.getAttribute("args");if(_102){d.forEach(_102.split(/\s*,\s*/),function(part,idx){_100+="var "+part+" = arguments["+idx+"]; ";});}var _103=_ff.getAttribute("with");if(_103&&_103.length){d.forEach(_103.split(/\s*,\s*/),function(part){_100+="with("+part+"){";_101+="}";});}return new Function(_100+_ff.innerHTML+_101);};this.instantiate=function(_104,_105,args){var _106=[],dp=dojo.parser;_105=_105||{};args=args||{};d.forEach(_104,function(obj){if(!obj){return;}var node,type,_107,_108,_109;if(obj.node){node=obj.node;type=obj.type;_107=obj.clsInfo||(type&&_f8(type));_108=_107&&_107.cls;_109=obj.scripts;}else{node=obj;type=dp._attrName in _105?_105[dp._attrName]:node.getAttribute(dp._attrName);_107=type&&_f8(type);_108=_107&&_107.cls;_109=(_108&&(_108._noScript||_108.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_107){throw new Error("Could not load class '"+type);}var _10a={},_10b=node.attributes;if(args.defaults){dojo.mixin(_10a,args.defaults);}if(obj.inherited){dojo.mixin(_10a,obj.inherited);}for(var name in _107.params){var item=name in _105?{value:_105[name],specified:true}:_10b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _10c=item.value;switch(name){case "class":_10c="className" in _105?_105.className:node.className;break;case "style":_10c="style" in _105?_105.style:(node.style&&node.style.cssText);}var _10d=_107.params[name];if(typeof _10c=="string"){_10a[name]=_f4(_10c,_10d);}else{_10a[name]=_10c;}}var _10e=[],_10f=[];d.forEach(_109,function(_110){node.removeChild(_110);var _111=_110.getAttribute("event"),type=_110.getAttribute("type"),nf=d.parser._functionFromScript(_110);if(_111){if(type=="dojo/connect"){_10e.push({event:_111,func:nf});}else{_10a[_111]=nf;}}else{_10f.push(nf);}});var _112=_108.markupFactory||_108.prototype&&_108.prototype.markupFactory;var _113=_112?_112(_10a,node,_108):new _108(_10a,node);_106.push(_113);var _114=node.getAttribute("jsId");if(_114){d.setObject(_114,_113);}d.forEach(_10e,function(_115){d.connect(_113,_115.event,null,_115.func);});d.forEach(_10f,function(func){func.call(_113);});});if(!_105._started){d.forEach(_106,function(_116){if(!args.noStart&&_116&&_116.startup&&!_116._started&&(!_116.getParent||!_116.getParent())){_116.startup();}});}return _106;};this.parse=function(_117,args){var root;if(!args&&_117&&_117.rootNode){args=_117;root=args.rootNode;}else{root=_117;}var _118=this._attrName;function scan(_119,list){var _11a=dojo.clone(_119.inherited);dojo.forEach(["dir","lang"],function(name){var val=_119.node.getAttribute(name);if(val){_11a[name]=val;}});var _11b=_119.scripts;var _11c=!_119.clsInfo||!_119.clsInfo.cls.prototype.stopParser;for(var _11d=_119.node.firstChild;_11d;_11d=_11d.nextSibling){if(_11d.nodeType==1){var type=_11c&&_11d.getAttribute(_118);if(type){var _11e={"type":type,clsInfo:_f8(type),node:_11d,scripts:[],inherited:_11a};list.push(_11e);scan(_11e,list);}else{if(_11b&&_11d.nodeName.toLowerCase()=="script"){type=_11d.getAttribute("type");if(type&&/^dojo\//i.test(type)){_11b.push(_11d);}}else{if(_11c){scan({node:_11d,inherited:_11a},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _11f=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_11f);}else{dojo._loaders.unshift(_11f);}})();}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _120=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 _121=cont.length,i=0;i<cont.length;i=_121==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,constructor:function(_122,node){dojo.mixin(this,_122||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_120++].join("_");}},set:function(cont,_123){if(undefined!==cont){this.content=cont;}if(_123){this._mixin(_123);}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 _124=this.onContentError(e);try{node.innerHTML=_124;}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 _125=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_125){cont=_125[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(_126){var _127={},key;for(key in _126){if(key in _127){continue;}this[key]=_126[key];}},_parse:function(){var _128=this.node;try{this.parseResults=dojo.parser.parse({rootNode:_128,dir:this.dir,lang:this.lang});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_129){var _12a=this["on"+type+"Error"].call(this,err);if(_129){console.error(_129,err);}else{if(_12a){dojo.html._setNodeContent(this.node,_12a,true);}}}});dojo.html.set=function(node,cont,_12b){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_12b){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_12b,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_12c){var _12d=_12c.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_12d==1&&dojo.date.isLeapYear(_12c)){return 29;}return days[_12d];};dojo.date.isLeapYear=function(_12e){var year=_12e.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_12f){var str=_12f.toString();var tz="";var _130;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_130=str.match(pat))){tz=_130[1];}else{str=_12f.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_130=str.match(pat))){tz=_130[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_131,_132,_133){_131=new Date(+_131);_132=new Date(+(_132||new Date()));if(_133=="date"){_131.setHours(0,0,0,0);_132.setHours(0,0,0,0);}else{if(_133=="time"){_131.setFullYear(0,0,0);_132.setFullYear(0,0,0);}}if(_131>_132){return 1;}if(_131<_132){return -1;}return 0;};dojo.date.add=function(date,_134,_135){var sum=new Date(+date);var _136=false;var _137="Date";switch(_134){case "day":break;case "weekday":var days,_138;var mod=_135%5;if(!mod){days=(_135>0)?5:-5;_138=(_135>0)?((_135-5)/5):((_135+5)/5);}else{days=mod;_138=parseInt(_135/5);}var strt=date.getDay();var adj=0;if(strt==6&&_135>0){adj=1;}else{if(strt==0&&_135<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_135>0)?2:-2;}_135=(7*_138)+days+adj;break;case "year":_137="FullYear";_136=true;break;case "week":_135*=7;break;case "quarter":_135*=3;case "month":_136=true;_137="Month";break;default:_137="UTC"+_134.charAt(0).toUpperCase()+_134.substring(1)+"s";}if(_137){sum["set"+_137](sum["get"+_137]()+_135);}if(_136&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_139,_13a,_13b){_13a=_13a||new Date();_13b=_13b||"day";var _13c=_13a.getFullYear()-_139.getFullYear();var _13d=1;switch(_13b){case "quarter":var m1=_139.getMonth();var m2=_13a.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_13c*4);_13d=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_139,_13a,"day"));var _13e=parseInt(dojo.date.difference(_139,_13a,"week"));var mod=days%7;if(mod==0){days=_13e*5;}else{var adj=0;var aDay=_139.getDay();var bDay=_13a.getDay();_13e=parseInt(days/7);mod=days%7;var _13f=new Date(_139);_13f.setDate(_13f.getDate()+(_13e*7));var _140=_13f.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_140+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_140+mod)<0:adj=2;}}}days+=adj;days-=(_13e*2);}_13d=days;break;case "year":_13d=_13c;break;case "month":_13d=(_13a.getMonth()-_139.getMonth())+(_13c*12);break;case "week":_13d=parseInt(dojo.date.difference(_139,_13a,"day")/7);break;case "day":_13d/=24;case "hour":_13d/=60;case "minute":_13d/=60;case "second":_13d/=1000;case "millisecond":_13d*=_13a.getTime()-_139.getTime();}return Math.round(_13d);};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function _141(_142,_143,_144,_145){return _145.replace(/([a-z])\1*/ig,function(_146){var s,pad,c=_146.charAt(0),l=_146.length,_147=["abbr","wide","narrow"];switch(c){case "G":s=_143[(l<4)?"eraAbbr":"eraNames"][_142.getFullYear()<0?0:1];break;case "y":s=_142.getFullYear();switch(l){case 1:break;case 2:if(!_144.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_142.getMonth()+1)/3);pad=true;break;case "M":var m=_142.getMonth();if(l<3){s=m+1;pad=true;}else{var _148=["months","format",_147[l-3]].join("-");s=_143[_148][m];}break;case "w":var _149=0;s=dojo.date.locale._getWeekOfYear(_142,_149);pad=true;break;case "d":s=_142.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_142);pad=true;break;case "E":var d=_142.getDay();if(l<3){s=d+1;pad=true;}else{var _14a=["days","format",_147[l-3]].join("-");s=_143[_14a][d];}break;case "a":var _14b=(_142.getHours()<12)?"am":"pm";s=_143["dayPeriods-format-wide-"+_14b];break;case "h":case "H":case "K":case "k":var h=_142.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=_142.getMinutes();pad=true;break;case "s":s=_142.getSeconds();pad=true;break;case "S":s=Math.round(_142.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_142,true,_144);if(s){break;}l=4;case "Z":var _14c=dojo.date.locale._getZone(_142,false,_144);var tz=[(_14c<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_14c)/60),2),dojo.string.pad(Math.abs(_14c)%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: "+_145);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_14d,_14e,_14f){if(_14e){return dojo.date.getTimezoneName(_14d);}else{return _14d.getTimezoneOffset();}};dojo.date.locale.format=function(_150,_151){_151=_151||{};var _152=dojo.i18n.normalizeLocale(_151.locale),_153=_151.formatLength||"short",_154=dojo.date.locale._getGregorianBundle(_152),str=[],_155=dojo.hitch(this,_141,_150,_154,_151);if(_151.selector=="year"){return _156(_154["dateFormatItem-yyyy"]||"yyyy",_155);}var _157;if(_151.selector!="date"){_157=_151.timePattern||_154["timeFormat-"+_153];if(_157){str.push(_156(_157,_155));}}if(_151.selector!="time"){_157=_151.datePattern||_154["dateFormat-"+_153];if(_157){str.push(_156(_157,_155));}}return str.length==1?str[0]:_154["dateTimeFormat-"+_153].replace(/\{(\d+)\}/g,function(_158,key){return str[key];});};dojo.date.locale.regexp=function(_159){return dojo.date.locale._parseInfo(_159).regexp;};dojo.date.locale._parseInfo=function(_15a){_15a=_15a||{};var _15b=dojo.i18n.normalizeLocale(_15a.locale),_15c=dojo.date.locale._getGregorianBundle(_15b),_15d=_15a.formatLength||"short",_15e=_15a.datePattern||_15c["dateFormat-"+_15d],_15f=_15a.timePattern||_15c["timeFormat-"+_15d],_160;if(_15a.selector=="date"){_160=_15e;}else{if(_15a.selector=="time"){_160=_15f;}else{_160=_15c["dateTimeFormat-"+_15d].replace(/\{(\d+)\}/g,function(_161,key){return [_15f,_15e][key];});}}var _162=[],re=_156(_160,dojo.hitch(this,_163,_162,_15c,_15a));return {regexp:re,tokens:_162,bundle:_15c};};dojo.date.locale.parse=function(_164,_165){var info=dojo.date.locale._parseInfo(_165),_166=info.tokens,_167=info.bundle,re=new RegExp("^"+info.regexp+"$",info.strict?"":"i"),_168=re.exec(_164);if(!_168){return null;}var _169=["abbr","wide","narrow"],_16a=[1970,0,1,0,0,0,0],amPm="",_16b=dojo.every(_168,function(v,i){if(!i){return true;}var _16c=_166[i-1];var l=_16c.length;switch(_16c.charAt(0)){case "y":if(l!=2&&_165.strict){_16a[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_16d=year.substring(0,2)*100,_16e=Math.min(Number(year.substring(2,4))+20,99),num=(v<_16e)?_16d+v:_16d-100+v;_16a[0]=num;}else{if(_165.strict){return false;}_16a[0]=v;}}break;case "M":if(l>2){var _16f=_167["months-format-"+_169[l-3]].concat();if(!_165.strict){v=v.replace(".","").toLowerCase();_16f=dojo.map(_16f,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_16f,v);if(v==-1){return false;}}else{v--;}_16a[1]=v;break;case "E":case "e":var days=_167["days-format-"+_169[l-3]].concat();if(!_165.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_16a[1]=0;case "d":_16a[2]=v;break;case "a":var am=_165.am||_167["dayPeriods-format-wide-am"],pm=_165.pm||_167["dayPeriods-format-wide-pm"];if(!_165.strict){var _170=/\./g;v=v.replace(_170,"").toLowerCase();am=am.replace(_170,"").toLowerCase();pm=pm.replace(_170,"").toLowerCase();}if(_165.strict&&v!=am&&v!=pm){return false;}amPm=(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;}_16a[3]=v;break;case "m":_16a[4]=v;break;case "s":_16a[5]=v;break;case "S":_16a[6]=v;}return true;});var _171=+_16a[3];if(amPm==="p"&&_171<12){_16a[3]=_171+12;}else{if(amPm==="a"&&_171==12){_16a[3]=0;}}var _172=new Date(_16a[0],_16a[1],_16a[2],_16a[3],_16a[4],_16a[5],_16a[6]);if(_165.strict){_172.setFullYear(_16a[0]);}var _173=_166.join(""),_174=_173.indexOf("d")!=-1,_175=_173.indexOf("M")!=-1;if(!_16b||(_175&&_172.getMonth()>_16a[1])||(_174&&_172.getDate()>_16a[2])){return null;}if((_175&&_172.getMonth()<_16a[1])||(_174&&_172.getDate()<_16a[2])){_172=dojo.date.add(_172,"hour",1);}return _172;};function _156(_176,_177,_178,_179){var _17a=function(x){return x;};_177=_177||_17a;_178=_178||_17a;_179=_179||_17a;var _17b=_176.match(/(''|[^'])+/g),_17c=_176.charAt(0)=="'";dojo.forEach(_17b,function(_17d,i){if(!_17d){_17b[i]="";}else{_17b[i]=(_17c?_178:_177)(_17d.replace(/''/g,"'"));_17c=!_17c;}});return _179(_17b.join(""));};function _163(_17e,_17f,_180,_181){_181=dojo.regexp.escapeString(_181);if(!_180.strict){_181=_181.replace(" a"," ?a");}return _181.replace(/([a-z])\1*/ig,function(_182){var s,c=_182.charAt(0),l=_182.length,p2="",p3="";if(_180.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+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_180.am||_17f["dayPeriods-format-wide-am"],pm=_180.pm||_17f["dayPeriods-format-wide-pm"];if(_180.strict){s=am+"|"+pm;}else{s=am+"|"+pm;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(_17e){_17e.push(_182);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _183=[];dojo.date.locale.addCustomFormats=function(_184,_185){_183.push({pkg:_184,name:_185});};dojo.date.locale._getGregorianBundle=function(_186){var _187={};dojo.forEach(_183,function(desc){var _188=dojo.i18n.getLocalization(desc.pkg,desc.name,_186);_187=dojo.mixin(_187,_188);},this);return _187;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_189,_18a){var _18b,_18c=dojo.date.locale._getGregorianBundle(_18a),_18d=[item,_189,type];if(_189=="standAlone"){var key=_18d.join("-");_18b=_18c[key];if(_18b[0]==1){_18b=undefined;}}_18d[1]="format";return (_18b||_18c[_18d.join("-")]).concat();};dojo.date.locale.isWeekend=function(_18e,_18f){var _190=dojo.cldr.supplemental.getWeekend(_18f),day=(_18e||new Date()).getDay();if(_190.end<_190.start){_190.end+=7;if(day<_190.start){day+=7;}}return day>=_190.start&&day<=_190.end;};dojo.date.locale._getDayOfYear=function(_191){return dojo.date.difference(new Date(_191.getFullYear(),0,1,_191.getHours()),_191)+1;};dojo.date.locale._getWeekOfYear=function(_192,_193){if(arguments.length==1){_193=0;}var _194=new Date(_192.getFullYear(),0,1).getDay(),adj=(_194-_193+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_192)+adj-1)/7);if(_194==_193){week++;}return week;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.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 _195=n.scrollLeft,_196=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_195!=n.scrollLeft||_196!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");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.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_197){this.manager=_197;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"}}),_198=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:_198.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(_198.creator){node=_198._normalizedCreator(_198.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _199=dojo.create("table"),_19a=dojo.create("tbody",null,_199);_19a.appendChild(node);node=_199;}}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.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_19b){this.node=dojo.byId(node);if(!_19b){_19b={};}this.creator=_19b.creator||null;this.skipForm=_19b.skipForm;this.parent=_19b.dropParent&&dojo.byId(_19b.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_19b&&_19b._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,_19c,_19d){if(!this.parent.firstChild){_19d=null;}else{if(_19c){if(!_19d){_19d=this.parent.firstChild;}}else{if(_19d){_19d=_19d.nextSibling;}}}if(_19d){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,_19d);}}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(_19e,node){_19e._skipStartup=true;return new dojo.dnd.Container(node,_19e);},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,_19f){var _1a0="dojoDnd"+type;var _1a1=type.toLowerCase()+"State";dojo.removeClass(this.node,_1a0+this[_1a1]);dojo.addClass(this.node,_1a0+_19f);this[_1a1]=_19f;},_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 _1a2=node.parentNode;_1a2;node=_1a2,_1a2=node.parentNode){if(_1a2==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 _1a3=item&&dojo.isObject(item),data,type,n;if(_1a3&&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=(_1a3&&item.data)?item.data:item;type=(_1a3&&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.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(_1a4){if(this.avatar){this.target=(_1a4&&_1a4.targetState!="Disabled")?_1a4:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_1a4]);},outSource:function(_1a5){if(this.avatar){if(this.target==_1a5){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_1a6,_1a7,copy){this.source=_1a6;this.nodes=_1a7;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_1a6,_1a7,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 _1a8=Boolean(this.target&&flag);if(this.canDropFlag!=_1a8){this.canDropFlag=_1a8;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),"dojoDndCopy");dojo.removeClass(dojo.body(),"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))),_1a9=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_1a9);dojo.publish("/dnd/drop",_1a9);}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.removeClass(dojo.body(),"dojoDnd"+(this.copy?"Move":"Copy"));dojo.addClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"));}});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.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_1aa=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_1aa];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY},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.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_1ab){this.node=dojo.byId(node);if(!_1ab){_1ab={};}this.handle=_1ab.handle?dojo.byId(_1ab.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1ab.delay>0?_1ab.delay:0;this.skip=_1ab.skip;this.mover=_1ab.mover?_1ab.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_1ac,node){return new dojo.dnd.Moveable(node,_1ac);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_1ad){dojo.publish("/dnd/move/start",[_1ad]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_1ae){dojo.publish("/dnd/move/stop",[_1ae]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_1af,e){},onMove:function(_1b0,_1b1,e){this.onMoving(_1b0,_1b1);var s=_1b0.node.style;s.left=_1b1.l+"px";s.top=_1b1.t+"px";this.onMoved(_1b0,_1b1);},onMoving:function(_1b2,_1b3){},onMoved:function(_1b4,_1b5){}});}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(_1b6,node){return new dojo.dnd.move.constrainedMoveable(node,_1b6);},constructor:function(node,_1b7){if(!_1b7){_1b7={};}this.constraints=_1b7.constraints;this.within=_1b7.within;},onFirstMove:function(_1b8){var c=this.constraintBox=this.constraints.call(this,_1b8);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_1b8.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_1b9,_1ba){var c=this.constraintBox,s=_1b9.node.style;s.left=(_1ba.l<c.l?c.l:c.r<_1ba.l?c.r:_1ba.l)+"px";s.top=(_1ba.t<c.t?c.t:c.b<_1ba.t?c.b:_1ba.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_1bb,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_1bb);},constructor:function(node,_1bc){var box=_1bc&&_1bc.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_1bd,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_1bd);},constructor:function(node,_1be){var area=_1be&&_1be.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_1bf){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _1c0=function(node,e,_1c1){dojo.dnd.Mover.call(this,node,e,_1c1);};dojo.extend(_1c0,dojo.dnd.Mover.prototype);dojo.extend(_1c0,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_1bf){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _1c0;};dojo.dnd.move.boxConstrainedMover=function(box,_1c2){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_1c2);};dojo.dnd.move.parentConstrainedMover=function(area,_1c3){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_1c3);};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.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_1c4){if(!_1c4){_1c4={};}this.singular=_1c4.singular;this.autoSync=_1c4.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(_1c5,data,_1c6,_1c7){var _1c8=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_1c8.call(this,item,hint);if(_1c5){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,_1c6,_1c7);this._normalizedCreator=_1c8;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_1c9,node){_1c9._skipStartup=true;return new dojo.dnd.Selector(node,_1c9);},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.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,_1ca){dojo.mixin(this,dojo.mixin({},_1ca));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(_1cb,_1cc){if(this==_1cb){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_1cc.length;++i){var type=_1cb.getItem(_1cc[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(_1cd,self){if(_1cd){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(_1ce,node){_1ce._skipStartup=true;return new dojo.dnd.Source(node,_1ce);},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 _1cf=this.getSelectedNodes();if(_1cf.length){m.startDrag(this,_1cf,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _1d0=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_1d0=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_1d0=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_1d0!=this.before){this._markTargetAnchor(_1d0);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(_1d1){if(this!=_1d1){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(_1d2,_1d3,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_1d2?(copy?"Copied":"Moved"):"");}var _1d4=this.accept&&this.checkAcceptance(_1d2,_1d3);this._changeState("Target",_1d4?"":"Disabled");if(this==_1d2){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_1d5,_1d6,copy,_1d7){if(this==_1d7){this.onDrop(_1d5,_1d6,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(_1d8,_1d9,copy){if(this!=_1d8){this.onDropExternal(_1d8,_1d9,copy);}else{this.onDropInternal(_1d9,copy);}},onDropExternal:function(_1da,_1db,copy){var _1dc=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _1dc.call(this,_1da.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_1da.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=_1da.getItem(node.id);_1da.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_1da.selectNone();}this.insertNodes(true,_1db,this.before,this.current);if(!copy&&this.creator){_1da.deleteSelectedNodes();}this._normalizedCreator=_1dc;},onDropInternal:function(_1dd,copy){var _1de=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _1de.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,_1dd,this.before,this.current);this._normalizedCreator=_1de;},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(_1df){if(this.current==this.targetAnchor&&this.before==_1df){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_1df;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,_1e0){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_1e1,node){_1e1._skipStartup=true;return new dojo.dnd.Target(node,_1e1);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_1e2){this.autoSync=true;},markupFactory:function(_1e3,node){_1e3._skipStartup=true;return new dojo.dnd.AutoSource(node,_1e3);}});}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _1e4=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_1e5){if(!_1e5){_1e5={};}if(_1e5.timeout&&typeof _1e5.timeout=="number"&&_1e5.timeout>=0){this.timeout=_1e5.timeout;}},markupFactory:function(_1e6,node){return new dojo.dnd.TimedMoveable(node,_1e6);},onMoveStop:function(_1e7){if(_1e7._timer){clearTimeout(_1e7._timer);_1e4.call(this,_1e7,_1e7._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_1e8,_1e9){_1e8._leftTop=_1e9;if(!_1e8._timer){var _1ea=this;_1e8._timer=setTimeout(function(){_1e8._timer=null;_1e4.call(_1ea,_1e8,_1e8._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.data.util.filter.patternToRegExp=function(_1eb,_1ec){var rxp="^";var c=null;for(var i=0;i<_1eb.length;i++){c=_1eb.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_1eb.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(_1ec){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");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(_1ed,_1ee){var _1ef=[];function _1f0(attr,dir,comp,s){return function(_1f1,_1f2){var a=s.getValue(_1f1,attr);var b=s.getValue(_1f2,attr);return dir*comp(a,b);};};var _1f3;var map=_1ee.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_1ed.length;i++){_1f3=_1ed[i];var attr=_1f3.attribute;if(attr){var dir=(_1f3.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_1ef.push(_1f0(attr,dir,comp,_1ee));}}return function(rowA,rowB){var i=0;while(i<_1ef.length){var ret=_1ef[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.data.util.simpleFetch.fetch=function(_1f4){_1f4=_1f4||{};if(!_1f4.store){_1f4.store=this;}var self=this;var _1f5=function(_1f6,_1f7){if(_1f7.onError){var _1f8=_1f7.scope||dojo.global;_1f7.onError.call(_1f8,_1f6,_1f7);}};var _1f9=function(_1fa,_1fb){var _1fc=_1fb.abort||null;var _1fd=false;var _1fe=_1fb.start?_1fb.start:0;var _1ff=(_1fb.count&&(_1fb.count!==Infinity))?(_1fe+_1fb.count):_1fa.length;_1fb.abort=function(){_1fd=true;if(_1fc){_1fc.call(_1fb);}};var _200=_1fb.scope||dojo.global;if(!_1fb.store){_1fb.store=self;}if(_1fb.onBegin){_1fb.onBegin.call(_200,_1fa.length,_1fb);}if(_1fb.sort){_1fa.sort(dojo.data.util.sorter.createSortFunction(_1fb.sort,self));}if(_1fb.onItem){for(var i=_1fe;(i<_1fa.length)&&(i<_1ff);++i){var item=_1fa[i];if(!_1fd){_1fb.onItem.call(_200,item,_1fb);}}}if(_1fb.onComplete&&!_1fd){var _201=null;if(!_1fb.onItem){_201=_1fa.slice(_1fe,_1ff);}_1fb.onComplete.call(_200,_201,_1fb);}};this._fetchItems(_1f4,_1f9,_1f5);return _1f4;};}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(_202){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_202.url;this._ccUrl=_202.url;this.url=_202.url;this._jsonData=_202.data;this.data=null;this._datatypeMap=_202.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_203){return dojo.date.stamp.fromISOString(_203);}};}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(_202.urlPreventCache!==undefined){this.urlPreventCache=_202.urlPreventCache?true:false;}if(_202.hierarchical!==undefined){this.hierarchical=_202.hierarchical?true:false;}if(_202.clearOnClose){this.clearOnClose=true;}if("failOk" in _202){this.failOk=_202.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(_204){if(typeof _204!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_205,_206){var _207=this.getValues(item,_205);return (_207.length>0)?_207[0]:_206;},getValues:function(item,_208){this._assertIsItem(item);this._assertIsAttribute(_208);return (item[_208]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _209=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_209.push(key);}}return _209;},hasAttribute:function(item,_20a){this._assertIsItem(item);this._assertIsAttribute(_20a);return (_20a in item);},containsValue:function(item,_20b,_20c){var _20d=undefined;if(typeof _20c==="string"){_20d=dojo.data.util.filter.patternToRegExp(_20c,false);}return this._containsValue(item,_20b,_20c,_20d);},_containsValue:function(item,_20e,_20f,_210){return dojo.some(this.getValues(item,_20e),function(_211){if(_211!==null&&!dojo.isObject(_211)&&_210){if(_211.toString().match(_210)){return true;}}else{if(_20f===_211){return true;}}});},isItem:function(_212){if(_212&&_212[this._storeRefPropName]===this){if(this._arrayOfAllItems[_212[this._itemNumPropName]]===_212){return true;}}return false;},isItemLoaded:function(_213){return this.isItem(_213);},loadItem:function(_214){this._assertIsItem(_214.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(_215,_216,_217){var self=this,_218=function(_219,_21a){var _21b=[],i,key;if(_219.query){var _21c,_21d=_219.queryOptions?_219.queryOptions.ignoreCase:false;var _21e={};for(key in _219.query){_21c=_219.query[key];if(typeof _21c==="string"){_21e[key]=dojo.data.util.filter.patternToRegExp(_21c,_21d);}else{if(_21c instanceof RegExp){_21e[key]=_21c;}}}for(i=0;i<_21a.length;++i){var _21f=true;var _220=_21a[i];if(_220===null){_21f=false;}else{for(key in _219.query){_21c=_219.query[key];if(!self._containsValue(_220,key,_21c,_21e[key])){_21f=false;}}}if(_21f){_21b.push(_220);}}_216(_21b,_219);}else{for(i=0;i<_21a.length;++i){var item=_21a[i];if(item!==null){_21b.push(item);}}_216(_21b,_219);}};if(this._loadFinished){_218(_215,this._getItemsArray(_215.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==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_215,filter:_218});}else{this._loadInProgress=true;var _221={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _222=dojo.xhrGet(_221);_222.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_218(_215,self._getItemsArray(_215.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_217(e,_215);}});_222.addErrback(function(_223){self._loadInProgress=false;_217(_223,_215);});var _224=null;if(_215.abort){_224=_215.abort;}_215.abort=function(){var df=_222;if(df&&df.fired===-1){df.cancel();df=null;}if(_224){_224.call(_215);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_218(_215,this._getItemsArray(_215.queryOptions));}catch(e){_217(e,_215);}}else{_217(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_215);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _225=this._queuedFetches[i],_226=_225.args,_227=_225.filter;if(_227){_227(_226,this._getItemsArray(_226.queryOptions));}else{this.fetchItemByIdentity(_226);}}this._queuedFetches=[];}},_getItemsArray:function(_228){if(_228&&_228.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_229){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(_22a){var _22b=false,self=this;function _22c(_22d){var _22e=((_22d!==null)&&(typeof _22d==="object")&&(!dojo.isArray(_22d)||_22b)&&(!dojo.isFunction(_22d))&&(_22d.constructor==Object||dojo.isArray(_22d))&&(typeof _22d._reference==="undefined")&&(typeof _22d._type==="undefined")&&(typeof _22d._value==="undefined")&&self.hierarchical);return _22e;};function _22f(_230){self._arrayOfAllItems.push(_230);for(var _231 in _230){var _232=_230[_231];if(_232){if(dojo.isArray(_232)){var _233=_232;for(var k=0;k<_233.length;++k){var _234=_233[k];if(_22c(_234)){_22f(_234);}}}else{if(_22c(_232)){_22f(_232);}}}}};this._labelAttr=_22a.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_22a.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_22b=true;}_22f(item);item[this._rootItemPropName]=true;}var _235={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _236=item[key];if(_236!==null){if(!dojo.isArray(_236)){item[key]=[_236];}}else{item[key]=[null];}}_235[key]=key;}}while(_235[this._storeRefPropName]){this._storeRefPropName+="_";}while(_235[this._itemNumPropName]){this._itemNumPropName+="_";}while(_235[this._reverseRefMap]){this._reverseRefMap+="_";}var _237;var _238=_22a.identifier;if(_238){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_238;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_237=item[_238];var _239=_237[0];if(!this._itemsByIdentity[_239]){this._itemsByIdentity[_239]=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: ["+_238+"].  Value collided: ["+_239+"]");}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: ["+_238+"].  Value collided: ["+_239+"]");}}}}}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){_237=item[key];for(var j=0;j<_237.length;++j){_236=_237[j];if(_236!==null&&typeof _236=="object"){if(("_type" in _236)&&("_value" in _236)){var type=_236._type;var _23a=this._datatypeMap[type];if(!_23a){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_23a)){_237[j]=new _23a(_236._value);}else{if(dojo.isFunction(_23a.deserialize)){_237[j]=_23a.deserialize(_236._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(_236._reference){var _23b=_236._reference;if(!dojo.isObject(_23b)){_237[j]=this._getItemByIdentity(_23b);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _23c=this._arrayOfAllItems[k],_23d=true;for(var _23e in _23b){if(_23c[_23e]!=_23b[_23e]){_23d=false;}}if(_23d){_237[j]=_23c;}}}if(this.referenceIntegrity){var _23f=_237[j];if(this.isItem(_23f)){this._addReferenceToMap(_23f,item,key);}}}else{if(this.isItem(_236)){if(this.referenceIntegrity){this._addReferenceToMap(_236,item,key);}}}}}}}},_addReferenceToMap:function(_240,_241,_242){},getIdentity:function(item){var _243=this._features["dojo.data.api.Identity"];if(_243===Number){return item[this._itemNumPropName];}else{var _244=item[_243];if(_244){return _244[0];}}return null;},fetchItemByIdentity:function(_245){var item,_246;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:_245});}else{this._loadInProgress=true;var _247={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _248=dojo.xhrGet(_247);_248.addCallback(function(data){var _249=_245.scope?_245.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_245.identity);if(_245.onItem){_245.onItem.call(_249,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_245.onError){_245.onError.call(_249,error);}}});_248.addErrback(function(_24a){self._loadInProgress=false;if(_245.onError){var _24b=_245.scope?_245.scope:dojo.global;_245.onError.call(_24b,_24a);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_245.identity);if(_245.onItem){_246=_245.scope?_245.scope:dojo.global;_245.onItem.call(_246,item);}}}}else{item=this._getItemByIdentity(_245.identity);if(_245.onItem){_246=_245.scope?_245.scope:dojo.global;_245.onItem.call(_246,item);}}},_getItemByIdentity:function(_24c){var item=null;if(this._itemsByIdentity){item=this._itemsByIdentity[_24c];}else{item=this._arrayOfAllItems[_24c];}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _24d=this._features["dojo.data.api.Identity"];if(_24d===Number){return null;}else{return [_24d];}},_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==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _24e={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _24f=dojo.xhrGet(_24e);_24f.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;}});_24f.addErrback(function(_250){throw _250;});}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(_251){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(_251&&(_251.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_252){if(!_252){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _253=this.getFeatures()["dojo.data.api.Identity"];return _253;},newItem:function(_254,_255){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _254!="object"&&typeof _254!="undefined"){throw new Error("newItem() was passed something other than an object");}var _256=null;var _257=this._getIdentifierAttribute();if(_257===Number){_256=this._arrayOfAllItems.length;}else{_256=_254[_257];if(typeof _256==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_256)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_256]==="undefined");}this._assert(typeof this._pending._newItems[_256]==="undefined");this._assert(typeof this._pending._deletedItems[_256]==="undefined");var _258={};_258[this._storeRefPropName]=this;_258[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_256]=_258;_258[_257]=[_256];}this._arrayOfAllItems.push(_258);var _259=null;if(_255&&_255.parent&&_255.attribute){_259={item:_255.parent,attribute:_255.attribute,oldValue:undefined};var _25a=this.getValues(_255.parent,_255.attribute);if(_25a&&_25a.length>0){var _25b=_25a.slice(0,_25a.length);if(_25a.length===1){_259.oldValue=_25a[0];}else{_259.oldValue=_25a.slice(0,_25a.length);}_25b.push(_258);this._setValueOrValues(_255.parent,_255.attribute,_25b,false);_259.newValue=this.getValues(_255.parent,_255.attribute);}else{this._setValueOrValues(_255.parent,_255.attribute,_258,false);_259.newValue=_258;}}else{_258[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_258);}this._pending._newItems[_256]=_258;for(var key in _254){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _25c=_254[key];if(!dojo.isArray(_25c)){_25c=[_25c];}_258[key]=_25c;if(this.referenceIntegrity){for(var i=0;i<_25c.length;i++){var val=_25c[i];if(this.isItem(val)){this._addReferenceToMap(val,_258,key);}}}}this.onNew(_258,_259);return _258;},_removeArrayElement:function(_25d,_25e){var _25f=dojo.indexOf(_25d,_25e);if(_25f!=-1){_25d.splice(_25f,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _260=item[this._itemNumPropName];var _261=this.getIdentity(item);if(this.referenceIntegrity){var _262=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_262,function(_263){dojo.forEach(this.getValues(item,_263),function(_264){if(this.isItem(_264)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_264),attr:_263});this._removeReferenceFromMap(_264,item,_263);}},this);},this);var _265=item[this._reverseRefMap];if(_265){for(var _266 in _265){var _267=null;if(this._itemsByIdentity){_267=this._itemsByIdentity[_266];}else{_267=this._arrayOfAllItems[_266];}if(_267){for(var _268 in _265[_266]){var _269=this.getValues(_267,_268)||[];var _26a=dojo.filter(_269,function(_26b){return !(this.isItem(_26b)&&this.getIdentity(_26b)==_261);},this);this._removeReferenceFromMap(item,_267,_268);if(_26a.length<_269.length){this._setValueOrValues(_267,_268,_26a,true);}}}}}}this._arrayOfAllItems[_260]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_261];}this._pending._deletedItems[_261]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_26c,_26d){return this._setValueOrValues(item,_26c,_26d,true);},setValues:function(item,_26e,_26f){return this._setValueOrValues(item,_26e,_26f,true);},unsetAttribute:function(item,_270){return this._setValueOrValues(item,_270,[],true);},_setValueOrValues:function(item,_271,_272,_273){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_271));this._assert(typeof _272!=="undefined");var _274=this._getIdentifierAttribute();if(_271==_274){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _275=this._getValueOrValues(item,_271);var _276=this.getIdentity(item);if(!this._pending._modifiedItems[_276]){var _277={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_277[key]=item[key];}else{if(key===this._reverseRefMap){_277[key]=dojo.clone(item[key]);}else{_277[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_276]=_277;}var _278=false;if(dojo.isArray(_272)&&_272.length===0){_278=delete item[_271];_272=undefined;if(this.referenceIntegrity&&_275){var _279=_275;if(!dojo.isArray(_279)){_279=[_279];}for(var i=0;i<_279.length;i++){var _27a=_279[i];if(this.isItem(_27a)){this._removeReferenceFromMap(_27a,item,_271);}}}}else{var _27b;if(dojo.isArray(_272)){var _27c=_272;_27b=_272.slice(0,_272.length);}else{_27b=[_272];}if(this.referenceIntegrity){if(_275){var _279=_275;if(!dojo.isArray(_279)){_279=[_279];}var map={};dojo.forEach(_279,function(_27d){if(this.isItem(_27d)){var id=this.getIdentity(_27d);map[id.toString()]=true;}},this);dojo.forEach(_27b,function(_27e){if(this.isItem(_27e)){var id=this.getIdentity(_27e);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_27e,item,_271);}}},this);for(var rId in map){var _27f;if(this._itemsByIdentity){_27f=this._itemsByIdentity[rId];}else{_27f=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_27f,item,_271);}}else{for(var i=0;i<_27b.length;i++){var _27a=_27b[i];if(this.isItem(_27a)){this._addReferenceToMap(_27a,item,_271);}}}}item[_271]=_27b;_278=true;}if(_273){this.onSet(item,_271,_275,_272);}return _278;},_addReferenceToMap:function(_280,_281,_282){var _283=this.getIdentity(_281);var _284=_280[this._reverseRefMap];if(!_284){_284=_280[this._reverseRefMap]={};}var _285=_284[_283];if(!_285){_285=_284[_283]={};}_285[_282]=true;},_removeReferenceFromMap:function(_286,_287,_288){var _289=this.getIdentity(_287);var _28a=_286[this._reverseRefMap];var _28b;if(_28a){for(_28b in _28a){if(_28b==_289){delete _28a[_28b][_288];if(this._isEmpty(_28a[_28b])){delete _28a[_28b];}}}if(this._isEmpty(_28a)){delete _286[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,_28c){var _28d=undefined;if(this.hasAttribute(item,_28c)){var _28e=this.getValues(item,_28c);if(_28e.length==1){_28d=_28e[0];}else{_28d=_28e;}}return _28d;},_flatten:function(_28f){if(this.isItem(_28f)){var item=_28f;var _290=this.getIdentity(item);var _291={_reference:_290};return _291;}else{if(typeof _28f==="object"){for(var type in this._datatypeMap){var _292=this._datatypeMap[type];if(dojo.isObject(_292)&&!dojo.isFunction(_292)){if(_28f instanceof _292.type){if(!_292.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_292.serialize(_28f)};}}else{if(_28f instanceof _292){return {_type:type,_value:_28f.toString()};}}}}return _28f;}},_getNewFileContentString:function(){var _293={};var _294=this._getIdentifierAttribute();if(_294!==Number){_293.identifier=_294;}if(this._labelAttr){_293.label=this._labelAttr;}_293.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _295={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _296=key;var _297=this.getValues(item,_296);if(_297.length==1){_295[_296]=this._flatten(_297[0]);}else{var _298=[];for(var j=0;j<_297.length;++j){_298.push(this._flatten(_297[j]));_295[_296]=_298;}}}}_293.items.push(_295);}}var _299=true;return dojo.toJson(_293,_299);},_isEmpty:function(_29a){var _29b=true;if(dojo.isObject(_29a)){var i;for(i in _29a){_29b=false;break;}}else{if(dojo.isArray(_29a)){if(_29a.length>0){_29b=false;}}}return _29b;},save:function(_29c){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _29d=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_29c&&_29c.onComplete){var _29e=_29c.scope||dojo.global;_29c.onComplete.call(_29e);}};var _29f=function(err){self._saveInProgress=false;if(_29c&&_29c.onError){var _2a0=_29c.scope||dojo.global;_29c.onError.call(_2a0,err);}};if(this._saveEverything){var _2a1=this._getNewFileContentString();this._saveEverything(_29d,_29f,_2a1);}if(this._saveCustom){this._saveCustom(_29d,_29f);}if(!this._saveEverything&&!this._saveCustom){_29d();}},revert:function(){this._assert(!this._saveInProgress);var _2a2;for(_2a2 in this._pending._modifiedItems){var _2a3=this._pending._modifiedItems[_2a2];var _2a4=null;if(this._itemsByIdentity){_2a4=this._itemsByIdentity[_2a2];}else{_2a4=this._arrayOfAllItems[_2a2];}_2a3[this._storeRefPropName]=this;for(key in _2a4){delete _2a4[key];}dojo.mixin(_2a4,_2a3);}var _2a5;for(_2a2 in this._pending._deletedItems){_2a5=this._pending._deletedItems[_2a2];_2a5[this._storeRefPropName]=this;var _2a6=_2a5[this._itemNumPropName];if(_2a5["backup_"+this._reverseRefMap]){_2a5[this._reverseRefMap]=_2a5["backup_"+this._reverseRefMap];delete _2a5["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_2a6]=_2a5;if(this._itemsByIdentity){this._itemsByIdentity[_2a2]=_2a5;}if(_2a5[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_2a5);}}for(_2a2 in this._pending._deletedItems){_2a5=this._pending._deletedItems[_2a2];if(_2a5["backupRefs_"+this._reverseRefMap]){dojo.forEach(_2a5["backupRefs_"+this._reverseRefMap],function(_2a7){var _2a8;if(this._itemsByIdentity){_2a8=this._itemsByIdentity[_2a7.id];}else{_2a8=this._arrayOfAllItems[_2a7.id];}this._addReferenceToMap(_2a8,_2a5,_2a7.attr);},this);delete _2a5["backupRefs_"+this._reverseRefMap];}}for(_2a2 in this._pending._newItems){var _2a9=this._pending._newItems[_2a2];_2a9[this._storeRefPropName]=null;this._arrayOfAllItems[_2a9[this._itemNumPropName]]=null;if(_2a9[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_2a9);}if(this._itemsByIdentity){delete this._itemsByIdentity[_2a2];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _2aa=this.getIdentity(item);return new Boolean(this._pending._newItems[_2aa]||this._pending._modifiedItems[_2aa]||this._pending._deletedItems[_2aa]).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,_2ab,_2ac,_2ad){},onNew:function(_2ae,_2af){},onDelete:function(_2b0){},close:function(_2b1){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.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _2b2=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2b3=dojo._docScroll();return {w:_2b2.clientWidth,h:_2b2.clientHeight,l:_2b3.x,t:_2b3.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){try{node=dojo.byId(node);var doc=node.ownerDocument||dojo.doc,body=doc.body||dojo.body(),html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if((!(dojo.isMoz||isIE||isWK||dojo.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _2b4=doc.compatMode=="BackCompat",_2b5=_2b4?body:html,_2b6=isWK?body:_2b5,_2b7=_2b5.clientWidth,_2b8=_2b5.clientHeight,rtl=!dojo._isBodyLtr(),_2b9=pos||dojo.position(node),el=node.parentNode,_2ba=function(el){return ((isIE<=6||(isIE&&_2b4))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_2ba(node)){return;}while(el){if(el==body){el=_2b6;}var _2bb=dojo.position(el),_2bc=_2ba(el);if(el==_2b6){_2bb.w=_2b7;_2bb.h=_2b8;if(_2b6==html&&isIE&&rtl){_2bb.x+=_2b6.offsetWidth-_2bb.w;}if(_2bb.x<0||!isIE){_2bb.x=0;}if(_2bb.y<0||!isIE){_2bb.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_2bb.w-=pb.w;_2bb.h-=pb.h;_2bb.x+=pb.l;_2bb.y+=pb.t;}if(el!=_2b6){var _2bd=el.clientWidth,_2be=_2bb.w-_2bd;if(_2bd>0&&_2be>0){_2bb.w=_2bd;if(isIE&&rtl){_2bb.x+=_2be;}}_2bd=el.clientHeight;_2be=_2bb.h-_2bd;if(_2bd>0&&_2be>0){_2bb.h=_2bd;}}if(_2bc){if(_2bb.y<0){_2bb.h+=_2bb.y;_2bb.y=0;}if(_2bb.x<0){_2bb.w+=_2bb.x;_2bb.x=0;}if(_2bb.y+_2bb.h>_2b8){_2bb.h=_2b8-_2bb.y;}if(_2bb.x+_2bb.w>_2b7){_2bb.w=_2b7-_2bb.x;}}var l=_2b9.x-_2bb.x,t=_2b9.y-Math.max(_2bb.y,0),r=l+_2b9.w-_2bb.w,bot=t+_2b9.h-_2bb.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_2b9.x+=el.scrollLeft;el.scrollLeft+=(isIE>=8&&!_2b4&&rtl)?-s:s;_2b9.x-=el.scrollLeft;}if(bot*t>0){_2b9.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_2b9.y-=el.scrollTop;}el=(el!=_2b6)&&!_2bc&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_2bf){if(this._hash[_2bf.id]){throw new Error("Tried to register widget with id=="+_2bf.id+" but that id is already registered");}this._hash[_2bf.id]=_2bf;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2c0){_2c0=_2c0||dojo.global;var i=0,id;for(id in this._hash){func.call(_2c0,this._hash[id],i++,this._hash);}return this;},filter:function(_2c1,_2c2){_2c2=_2c2||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2c1.call(_2c2,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,_2c3;for(id in this._hash){_2c3=this._hash[id];if(_2c3.declaredClass==cls){res.add(_2c3);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2c4){return dojo.map(this.toArray(),func,_2c4);},every:function(func,_2c5){_2c5=_2c5||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_2c5,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2c6){_2c6=_2c6||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_2c6,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_2c7=dojo.hasAttr,_2c8=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _2c9={};dijit.getUniqueId=function(_2ca){var id;do{id=_2ca+"_"+(_2ca in _2c9?++_2c9[_2ca]:_2c9[_2ca]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _2cb=[];function _2cc(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _2cd=node.getAttribute("widgetId");if(_2cd){_2cb.push(hash[_2cd]);}else{_2cc(node);}}}};_2cc(root);return _2cb;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2ce){if(!_2ce._destroyed){if(_2ce.destroyRecursive){_2ce.destroyRecursive();}else{if(_2ce.destroy){_2ce.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 _2cf=(dijit._isElementShown=function(elem){var s=_2c8(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 _2c7(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return elem.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=elem.contentDocument,body=doc&&doc.body;return body&&body.contentEditable=="true";}else{try{doc=elem.contentWindow.document;body=doc&&doc.body;return body&&body.firstChild&&body.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return elem.contentEditable=="true";}};var _2d0=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_2c7(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _2d1,last,_2d2,_2d3,_2d4,_2d5;var _2d6=function(_2d7){dojo.query("> *",_2d7).forEach(function(_2d8){if((dojo.isIE&&_2d8.scopeName!=="HTML")||!_2cf(_2d8)){return;}if(_2d0(_2d8)){var _2d9=attr(_2d8,"tabIndex");if(!_2c7(_2d8,"tabIndex")||_2d9==0){if(!_2d1){_2d1=_2d8;}last=_2d8;}else{if(_2d9>0){if(!_2d2||_2d9<_2d3){_2d3=_2d9;_2d2=_2d8;}if(!_2d4||_2d9>=_2d5){_2d5=_2d9;_2d4=_2d8;}}}}if(_2d8.nodeName.toUpperCase()!="SELECT"){_2d6(_2d8);}});};if(_2cf(root)){_2d6(root);}return {first:_2d1,last:last,lowest:_2d2,highest:_2d4};};dijit.getFirstInTabbingOrder=function(root){var _2da=dijit._getTabNavigable(dojo.byId(root));return _2da.lowest?_2da.lowest:_2da.first;};dijit.getLastInTabbingOrder=function(root){var _2db=dijit._getTabNavigable(dojo.byId(root));return _2db.last?_2db.last:_2db.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_2dc){var _2dd=dojo.doc,mark=_2dc.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(_2dd.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_2dd.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2dd.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2de){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_2de||dojo.global,dijit.getBookmark),openedForWindow:_2de};},focus:function(_2df){if(!_2df){return;}var node="node" in _2df?_2df.node:_2df,_2e0=_2df.bookmark,_2e1=_2df.openedForWindow,_2e2=_2e0?_2e0.isCollapsed:false;if(node){var _2e3=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2e3&&_2e3.focus){try{_2e3.focus();}catch(e){}}dijit._onFocusNode(node);}if(_2e0&&dojo.withGlobal(_2e1||dojo.global,dijit.isCollapsed)&&!_2e2){if(_2e1){_2e1.focus();}try{dojo.withGlobal(_2e1||dojo.global,dijit.moveToBookmark,null,[_2e0]);}catch(e2){}}},_activeStack:[],registerIframe:function(_2e4){return dijit.registerWin(_2e4.contentWindow,_2e4);},unregisterIframe:function(_2e5){dijit.unregisterWin(_2e5);},registerWin:function(_2e6,_2e7){var _2e8=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_2e7||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_2e6.document.documentElement:_2e6.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_2e8);var _2e9=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_2e7||evt.srcElement);}else{dijit._onTouchNode(_2e7||evt.srcElement);}};doc.attachEvent("onactivate",_2e9);var _2ea=function(evt){dijit._onBlurNode(_2e7||evt.srcElement);};doc.attachEvent("ondeactivate",_2ea);return function(){doc.detachEvent("onmousedown",_2e8);doc.detachEvent("onactivate",_2e9);doc.detachEvent("ondeactivate",_2ea);doc=null;};}else{doc.addEventListener("mousedown",_2e8,true);var _2eb=function(evt){dijit._onFocusNode(_2e7||evt.target);};doc.addEventListener("focus",_2eb,true);var _2ec=function(evt){dijit._onBlurNode(_2e7||evt.target);};doc.addEventListener("blur",_2ec,true);return function(){doc.removeEventListener("mousedown",_2e8,true);doc.removeEventListener("focus",_2eb,true);doc.removeEventListener("blur",_2ec,true);doc=null;};}}},unregisterWin:function(_2ed){_2ed&&_2ed();},_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 _2ee=[];try{while(node){var _2ef=dojo.attr(node,"dijitPopupParent");if(_2ef){node=dijit.byId(_2ef).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"),_2f0=id&&dijit.byId(id);if(_2f0&&!(by=="mouse"&&_2f0.get("disabled"))){_2ee.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_2ee,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(_2f1,by){var _2f2=dijit._activeStack;dijit._activeStack=_2f1;for(var _2f3=0;_2f3<Math.min(_2f2.length,_2f1.length);_2f3++){if(_2f2[_2f3]!=_2f1[_2f3]){break;}}var _2f4;for(var i=_2f2.length-1;i>=_2f3;i--){_2f4=dijit.byId(_2f2[i]);if(_2f4){_2f4._focused=false;_2f4._hasBeenBlurred=true;if(_2f4._onBlur){_2f4._onBlur(by);}dojo.publish("widgetBlur",[_2f4,by]);}}for(i=_2f3;i<_2f1.length;i++){_2f4=dijit.byId(_2f1[i]);if(_2f4){_2f4._focused=true;if(_2f4._onFocus){_2f4._onFocus(by);}dojo.publish("widgetFocus",[_2f4,by]);}}}});dojo.addOnLoad(function(){var _2f5=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_2f5);_2f5=null;});}});}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,_2f6,_2f7){var _2f8=dojo.map(_2f6,function(_2f9){var c={corner:_2f9,pos:{x:pos.x,y:pos.y}};if(_2f7){c.pos.x+=_2f9.charAt(1)=="L"?_2f7.x:-_2f7.x;c.pos.y+=_2f9.charAt(0)=="T"?_2f7.y:-_2f7.y;}return c;});return dijit._place(node,_2f8);};dijit._place=function(node,_2fa,_2fb){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_2fa,function(_2fc){var _2fd=_2fc.corner;var pos=_2fc.pos;if(_2fb){_2fb(node,_2fc.aroundCorner,_2fd);}var _2fe=node.style;var _2ff=_2fe.display;var _300=_2fe.visibility;_2fe.visibility="hidden";_2fe.display="";var mb=dojo.marginBox(node);_2fe.display=_2ff;_2fe.visibility=_300;var _301=Math.max(view.l,_2fd.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_302=Math.max(view.t,_2fd.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_2fd.charAt(1)=="L"?(_301+mb.w):pos.x),endY=Math.min(view.t+view.h,_2fd.charAt(0)=="T"?(_302+mb.h):pos.y),_303=endX-_301,_304=endY-_302,_305=(mb.w-_303)+(mb.h-_304);if(best==null||_305<best.overflow){best={corner:_2fd,aroundCorner:_2fc.aroundCorner,x:_301,y:_302,w:_303,h:_304,overflow:_305};}return !_305;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_2fb){_2fb(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_306,_307,_308){_306=dojo.byId(_306);var _309=_306.style.display;_306.style.display="";var _30a=dojo.position(_306,true);_306.style.display=_309;return dijit._placeOnScreenAroundRect(node,_30a.x,_30a.y,_30a.w,_30a.h,_307,_308);};dijit.placeOnScreenAroundRectangle=function(node,_30b,_30c,_30d){return dijit._placeOnScreenAroundRect(node,_30b.x,_30b.y,_30b.width,_30b.height,_30c,_30d);};dijit._placeOnScreenAroundRect=function(node,x,y,_30e,_30f,_310,_311){var _312=[];for(var _313 in _310){_312.push({aroundCorner:_313,corner:_310[_313],pos:{x:x+(_313.charAt(1)=="L"?0:_30e),y:y+(_313.charAt(0)=="T"?0:_30f)}});}return dijit._place(node,_312,_311);};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,_314,_315,_316){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_317,_318){var _319={};dojo.forEach(_317,function(pos){switch(pos){case "after":_319[_318?"BR":"BL"]=_318?"BL":"BR";break;case "before":_319[_318?"BL":"BR"]=_318?"BR":"BL";break;case "below":_319[_318?"BL":"BR"]=_318?"TL":"TR";_319[_318?"BR":"BL"]=_318?"TR":"TL";break;case "above":default:_319[_318?"TL":"TR"]=_318?"BL":"BR";_319[_318?"TR":"TL"]=_318?"BR":"BL";break;}});return _319;};}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,moveOffScreen:function(node){var _31a=node.parentNode;if(!_31a||!dojo.hasClass(_31a,"dijitPopup")){_31a=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"}},dojo.body());dijit.setWaiRole(_31a,"presentation");_31a.appendChild(node);}var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";dojo.style(_31a,{visibility:"hidden",top:"-9999px"});},getTopPopup:function(){var _31b=this._stack;for(var pi=_31b.length-1;pi>0&&_31b[pi].parent===_31b[pi-1].widget;pi--){}return _31b[pi];},open:function(args){var _31c=this._stack,_31d=args.popup,_31e=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"}),_31f=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);var _320=_31d.domNode.parentNode;if(!_320||!dojo.hasClass(_320,"dijitPopup")){this.moveOffScreen(_31d.domNode);_320=_31d.domNode.parentNode;}dojo.attr(_320,{id:id,style:{zIndex:this._beginZIndex+_31c.length},"class":"dijitPopup "+(_31d.baseClass||_31d["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){var _321=_320.childNodes[1];if(!_321){_321=new dijit.BackgroundIframe(_320);}}var best=_31f?dijit.placeOnScreenAroundElement(_320,_31f,_31e,_31d.orient?dojo.hitch(_31d,"orient"):null):dijit.placeOnScreen(_320,args,_31e=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_320.style.visibility="visible";_31d.domNode.style.visibility="visible";var _322=[];_322.push(dojo.connect(_320,"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 _323=this.getTopPopup();if(_323&&_323.onCancel){_323.onCancel();}}}}));if(_31d.onCancel){_322.push(dojo.connect(_31d,"onCancel",args.onCancel));}_322.push(dojo.connect(_31d,_31d.onExecute?"onExecute":"onChange",this,function(){var _324=this.getTopPopup();if(_324&&_324.onExecute){_324.onExecute();}}));_31c.push({wrapper:_320,iframe:_321,widget:_31d,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_322});if(_31d.onOpen){_31d.onOpen(best);}return best;},close:function(_325){var _326=this._stack;while(dojo.some(_326,function(elem){return elem.widget==_325;})){var top=_326.pop(),_327=top.wrapper,_328=top.iframe,_329=top.widget,_32a=top.onClose;if(_329.onClose){_329.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_329&&_329.domNode){this.moveOffScreen(_329.domNode);}else{dojo.destroy(_327);}if(_32a){_32a();}}}};dijit._frames=new function(){var _32b=[];this.pop=function(){var _32c;if(_32b.length){_32c=_32b.pop();_32c.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_32c=dojo.doc.createElement(html);}else{_32c=dojo.create("iframe");_32c.src="javascript:\"\"";_32c.className="dijitBackgroundIframe";dojo.style(_32c,"opacity",0.1);}_32c.tabIndex=-1;dijit.setWaiRole(_32c,"presentation");}return _32c;};this.push=function(_32d){_32d.style.display="none";_32b.push(_32d);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _32e=dijit._frames.pop();node.appendChild(_32e);if(dojo.isIE<7){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_32e,{width:"100%",height:"100%"});}this.iframe=_32e;}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe&&dojo.isIE<7){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,_32f=d.isOpera,maj=Math.floor,ff=d.isFF,_330=d.boxModel.replace(/-/,""),_331={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_32f,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_331["dj_"+_330]=true;var _332="";for(var clz in _331){if(_331[clz]){_332+=clz+" ";}}html.className=d.trim(html.className+" "+_332);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _333="dj_rtl dijitRtl "+_332.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_333);}});})();}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,_334,node,_335,obj,_336,_337,_338){if(obj!=this._obj){this.stop();this._initialDelay=_337||500;this._subsequentDelay=_336||0.9;this._minDelay=_338||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_334,_335);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,_339,_33a,_33b,_33c,_33d,_33e){if(_339.keyCode){_339.charOrCode=_339.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_339.charCode){_339.charOrCode=String.fromCharCode(_339.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==_339.charOrCode&&(_339.ctrlKey===undefined||_339.ctrlKey==evt.ctrlKey)&&(_339.altKey===undefined||_339.altKey==evt.altKey)&&(_339.metaKey===undefined||_339.metaKey==(evt.metaKey||false))&&(_339.shiftKey===undefined||_339.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_33a,node,_33b,_339,_33c,_33d,_33e);}else{if(dijit.typematic._obj==_339){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_339){dijit.typematic.stop();}})];},addMouseListener:function(node,_33f,_340,_341,_342,_343){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_33f,node,_340,node,_341,_342,_343);}),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){dijit.typematic.trigger(evt,_33f,node,_340,node,_341,_342,_343);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_344,_345,_346,_347,_348,_349,_34a,_34b){return this.addKeyListener(_345,_346,_347,_348,_349,_34a,_34b).concat(this.addMouseListener(_344,_347,_348,_349,_34a,_34b));}};}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 _34c=cs.backgroundImage;var _34d=(cs.borderTopColor==cs.borderRightColor)||(_34c!=null&&(_34c=="none"||_34c=="url(invalid-url:)"));dojo[_34d?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _34e=this.getWaiRole(elem);return role?(_34e.indexOf(role)>-1):(_34e.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _34f=dojo.attr(elem,"role")||"";if(!this._XhtmlRoles.test(_34f)){dojo.attr(elem,"role",role);}else{if((" "+_34f+" ").indexOf(" "+role+" ")<0){var _350=dojo.trim(_34f.replace(this._XhtmlRoles,""));var _351=dojo.trim(_34f.replace(_350,""));dojo.attr(elem,"role",_351+(_351?" ":"")+role);}}},removeWaiRole:function(elem,role){var _352=dojo.attr(elem,"role");if(!_352){return;}if(role){var t=dojo.trim((" "+_352+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_353){return elem.hasAttribute?elem.hasAttribute("aria-"+_353):!!elem.getAttribute("aria-"+_353);},getWaiState:function(elem,_354){return elem.getAttribute("aria-"+_354)||"";},setWaiState:function(elem,_355,_356){elem.setAttribute("aria-"+_355,_356);},removeWaiState:function(elem,_357){elem.removeAttribute("aria-"+_357);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}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(_358,_359){var _35a=this.containerNode;if(_359&&typeof _359=="number"){var _35b=this.getChildren();if(_35b&&_35b.length>=_359){_35a=_35b[_359-1].domNode;_359="after";}}dojo.place(_358.domNode,_35a,_359);if(this._started&&!_358._started){_358.startup();}},removeChild:function(_35c){if(typeof _35c=="number"&&_35c>0){_35c=this.getChildren()[_35c];}if(_35c){var node=_35c.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_35d){dojo.forEach(this.getChildren(),function(_35e){_35e.destroyRecursive(_35d);});},_getSiblingOfChild:function(_35f,dir){var node=_35f.domNode,_360=(dir>0?"nextSibling":"previousSibling");do{node=node[_360];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_361){return dojo.indexOf(this.getChildren(),_361);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_362){_362.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_363,_364){if(_363&&dojo.isFunction(_363._onConnect)){_363._onConnect(_364);}});dijit._connectOnUseEventHandler=function(_365){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _366=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_366);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_366);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _367={},_368=function(_369){var dc=_369.declaredClass;if(!_367[dc]){var r=[],_36a,_36b=_369.constructor.prototype;for(var _36c in _36b){if(dojo.isFunction(_36b[_36c])&&(_36a=_36c.match(/^_set([a-zA-Z]*)Attr$/))&&_36a[1]){r.push(_36a[1].charAt(0).toLowerCase()+_36a[1].substr(1));}}_367[dc]=r;}return _367[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_36d,_36e){this.create(_36d,_36e);},create:function(_36f,_370){this.srcNodeRef=dojo.byId(_370);this._connects=[];this._subscribes=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_36f){this.params=_36f;dojo.mixin(this,_36f);}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 _371=this.srcNodeRef;if(_371&&_371.parentNode){_371.parentNode.replaceChild(this.domNode,_371);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _372=function(attr,_373){if((_373.params&&attr in _373.params)||_373[attr]){_373.set(attr,_373[attr]);}};for(var attr in this.attributeMap){_372(attr,this);}dojo.forEach(_368(this),function(a){if(!(a in this.attributeMap)){_372(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _374=this.baseClass.split(" ");if(!this.isLeftToRight()){_374=_374.concat(dojo.map(_374,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_374);}},startup:function(){this._started=true;},destroyRecursive:function(_375){this._beingDestroyed=true;this.destroyDescendants(_375);this.destroy(_375);},destroy:function(_376){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_377){dfe(_377,d.disconnect);});dfe(this._subscribes,function(_378){dun(_378);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_376);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_379){if(this.bgIframe){this.bgIframe.destroy(_379);delete this.bgIframe;}if(this.domNode){if(_379){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_379){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_37a){dojo.forEach(this.getChildren(),function(_37b){if(_37b.destroyRecursive){_37b.destroyRecursive(_37a);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_37c){if(_37c in this._deferredConnects){var _37d=this[this._deferredConnects[_37c]||"domNode"];this.connect(_37d,_37c.toLowerCase(),_37c);delete this._deferredConnects[_37c];}},_setClassAttr:function(_37e){var _37f=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_37f,this["class"]);this["class"]=_37e;dojo.addClass(_37f,_37e);},_setStyleAttr:function(_380){var _381=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_380)){dojo.style(_381,_380);}else{if(_381.style.cssText){_381.style.cssText+="; "+_380;}else{_381.style.cssText=_380;}}this.style=_380;},setAttribute:function(attr,_382){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_382);},_attrToDom:function(attr,_383){var _384=this.attributeMap[attr];dojo.forEach(dojo.isArray(_384)?_384:[_384],function(_385){var _386=this[_385.node||_385||"domNode"];var type=_385.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_383)){_383=dojo.hitch(this,_383);}var _387=_385.attribute?_385.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_386,_387,_383);break;case "innerText":_386.innerHTML="";_386.appendChild(dojo.doc.createTextNode(_383));break;case "innerHTML":_386.innerHTML=_383;break;case "class":dojo.removeClass(_386,this[attr]);dojo.addClass(_386,_383);break;}},this);this[attr]=_383;},attr:function(name,_388){if(dojo.config.isDebug){var _389=arguments.callee._ach||(arguments.callee._ach={}),_38a=(arguments.callee.caller||"unknown caller").toString();if(!_389[_38a]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_38a,"","2.0");_389[_38a]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _38b=this._getAttrNames(name);return this[_38b.g]?this[_38b.g]():this[name];},set:function(name,_38c){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _38d=this._getAttrNames(name);if(this[_38d.s]){var _38e=this[_38d.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_38c);}var _38f=this[name];this[name]=_38c;}return _38e||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"});},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):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_390,_391){var d=dojo,dc=d._connect,_392=[];if(_390=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_391);_392.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;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);}}));}_390="onclick";}_392.push(dc(obj,_390,this,_391));this._connects.push(_392);return _392;},disconnect:function(_393){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_393){dojo.forEach(_393,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_394,_395){var d=dojo,_396=d.subscribe(_394,this,_395);this._subscribes.push(_396);return _396;},unsubscribe:function(_397){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_397){dojo.unsubscribe(_397);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_398,_399){if(_398.declaredClass&&_398.addChild){_398.addChild(this,_399);}else{dojo.place(this.domNode,_398,_399);}return this;},_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");(function(){var _39a={};dojo.cache=function(_39b,url,_39c){if(typeof _39b=="string"){var _39d=dojo.moduleUrl(_39b,url);}else{_39d=_39b;_39c=url;}var key=_39d.toString();var val=_39c;if(_39c!=undefined&&!dojo.isString(_39c)){val=("value" in _39c?_39c.value:undefined);}var _39e=_39c&&_39c.sanitize?true:false;if(typeof val=="string"){val=_39a[key]=_39e?dojo.cache._sanitize(val):val;}else{if(val===null){delete _39a[key];}else{if(!(key in _39a)){val=dojo._getText(key);_39a[key]=_39e?dojo.cache._sanitize(val):val;}val=_39a[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _39f=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_39f){val=_39f[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=[];},_stringRepl:function(tmpl){var _3a0=this.declaredClass,_3a1=this;return dojo.string.substitute(tmpl,this,function(_3a2,key){if(key.charAt(0)=="!"){_3a2=dojo.getObject(key.substr(1),false,_3a1);}if(typeof _3a2=="undefined"){throw new Error(_3a0+" template:"+key);}if(_3a2==null){return "";}return key.charAt(0)=="!"?_3a2:_3a2.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _3a3=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_3a3)){node=dojo._toDom(this._stringRepl(_3a3));if(node.nodeType!=1){throw new Error("Invalid template: "+_3a3);}}else{node=_3a3.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _3a4=dojo.parser,qry,attr;if(_3a4._query!="[dojoType]"){qry=_3a4._query;attr=_3a4._attrName;_3a4._query="[dojoType]";_3a4._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_3a4._query=qry;_3a4._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_3a5){var dest=this.containerNode;if(_3a5&&dest){while(_3a5.hasChildNodes()){dest.appendChild(_3a5.firstChild);}}},_attachTemplateNodes:function(_3a6,_3a7){_3a7=_3a7||function(n,p){return n.getAttribute(p);};var _3a8=dojo.isArray(_3a6)?_3a6:(_3a6.all||_3a6.getElementsByTagName("*"));var x=dojo.isArray(_3a6)?0:-1;for(;x<_3a8.length;x++){var _3a9=(x==-1)?_3a6:_3a8[x];if(this.widgetsInTemplate&&_3a7(_3a9,"dojoType")){continue;}var _3aa=_3a7(_3a9,"dojoAttachPoint");if(_3aa){var _3ab,_3ac=_3aa.split(/\s*,\s*/);while((_3ab=_3ac.shift())){if(dojo.isArray(this[_3ab])){this[_3ab].push(_3a9);}else{this[_3ab]=_3a9;}this._attachPoints.push(_3ab);}}var _3ad=_3a7(_3a9,"dojoAttachEvent");if(_3ad){var _3ae,_3af=_3ad.split(/\s*,\s*/);var trim=dojo.trim;while((_3ae=_3af.shift())){if(_3ae){var _3b0=null;if(_3ae.indexOf(":")!=-1){var _3b1=_3ae.split(":");_3ae=trim(_3b1[0]);_3b0=trim(_3b1[1]);}else{_3ae=trim(_3ae);}if(!_3b0){_3b0=_3ae;}this.connect(_3a9,_3ae,_3b0);}}}var role=_3a7(_3a9,"waiRole");if(role){dijit.setWaiRole(_3a9,role);}var _3b2=_3a7(_3a9,"waiState");if(_3b2){dojo.forEach(_3b2.split(/\s*,\s*/),function(_3b3){if(_3b3.indexOf("-")!=-1){var pair=_3b3.split("-");dijit.setWaiState(_3a9,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(_3b4){delete this[_3b4];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_3b5,_3b6,_3b7){var _3b8=dijit._Templated._templateCache;var key=_3b6||_3b5;var _3b9=_3b8[key];if(_3b9){try{if(!_3b9.ownerDocument||_3b9.ownerDocument==dojo.doc){return _3b9;}}catch(e){}dojo.destroy(_3b9);}if(!_3b6){_3b6=dojo.cache(_3b5,{sanitize:true});}_3b6=dojo.string.trim(_3b6);if(_3b7||_3b6.match(/\$\{([^\}]+)\}/g)){return (_3b8[key]=_3b6);}else{var node=dojo._toDom(_3b6);if(node.nodeType!=1){throw new Error("Invalid template: "+_3b6);}return (_3b8[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _3ba=dijit._Templated._templateCache;for(var key in _3ba){var _3bb=_3ba[key];if(typeof _3bb=="object"){dojo.destroy(_3bb);}delete _3ba[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:{},postCreate:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);this.connect(this,"set",function(name,_3bc){if(arguments.length>=2&&{disabled:true,readOnly:true,checked:true,selected:true}[name]){this._setStateClass();}});dojo.forEach(["_onFocus","_onBlur"],function(ap){this.connect(this,ap,"_setStateClass");},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_3bd){if(!this.disabled){switch(_3bd.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseleave":case "mouseout":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _3be=this.connect(dojo.body(),"onmouseup",function(){this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_3be);});break;}this._setStateClass();}},_setStateClass:function(){var _3bf=this.baseClass.split(" ");function _3c0(_3c1){_3bf=_3bf.concat(dojo.map(_3bf,function(c){return c+_3c1;}),"dijit"+_3c1);};if(!this.isLeftToRight()){_3c0("Rtl");}if(this.checked){_3c0("Checked");}if(this.state){_3c0(this.state);}if(this.selected){_3c0("Selected");}if(this.disabled){_3c0("Disabled");}else{if(this.readOnly){_3c0("ReadOnly");}else{if(this._active){_3c0("Active");}else{if(this._hovering){_3c0("Hover");}}}}if(this._focused){_3c0("Focused");}var tn=this.stateNode||this.domNode,_3c2={};dojo.forEach(tn.className.split(" "),function(c){_3c2[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _3c2[c];});}dojo.forEach(_3bf,function(c){_3c2[c]=true;});var _3c3=[];for(var c in _3c2){_3c3.push(c);}tn.className=_3c3.join(" ");this._stateClasses=_3bf;},_trackMouseState:function(node,_3c4){var _3c5=false,_3c6=false,_3c7=false;var self=this,cn=dojo.hitch(this,"connect",node);function _3c8(){var _3c9=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_3c4+"Hover",_3c5&&!_3c6&&!_3c9);dojo.toggleClass(node,_3c4+"Active",_3c6&&!_3c9);dojo.toggleClass(node,_3c4+"Focused",_3c7&&!_3c9);};cn("onmouseenter",function(){_3c5=true;_3c8();});cn("onmouseleave",function(){_3c5=false;_3c6=false;_3c8();});cn("onmousedown",function(){_3c6=true;_3c8();});cn("onmouseup",function(){_3c6=false;_3c8();});cn("onfocus",function(){_3c7=true;_3c8();});cn("onblur",function(){_3c7=false;_3c8();});this.connect(this,"set",function(name,_3ca){if(name=="disabled"||name=="readOnly"){_3c8();}});}});}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(_3cb){this.disabled=_3cb;dojo.attr(this.focusNode,"disabled",_3cb);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_3cb);}dijit.setWaiState(this.focusNode,"disabled",_3cb);if(_3cb){this._hovering=false;this._active=false;var _3cc="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_3cc)?_3cc:[_3cc],function(_3cd){var node=this[_3cd];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}},setDisabled:function(_3ce){dojo.deprecated("setDisabled("+_3ce+") is deprecated. Use set('disabled',"+_3ce+") instead.","","2.0");this.set("disabled",_3ce);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){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(_3cf){},_onChangeActive:false,_handleOnChange:function(_3d0,_3d1){this._lastValue=_3d0;if(this._lastValueReported==undefined&&(_3d1===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_3d0;}if((this.intermediateChanges||_3d1||_3d1===undefined)&&((typeof _3d0!=typeof this._lastValueReported)||this.compare(_3d0,this._lastValueReported)!=0)){this._lastValueReported=_3d0;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_3d0);}),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(_3d2){dojo.deprecated("dijit.form._FormWidget:setValue("+_3d2+") is deprecated.  Use set('value',"+_3d2+") instead.","","2.0");this.set("value",_3d2);},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&&this.isFocusable()){var _3d3=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_3d3);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_3d4){this.readOnly=_3d4;dojo.attr(this.focusNode,"readOnly",_3d4);dijit.setWaiState(this.focusNode,"readonly",_3d4);},postCreate:function(){this.inherited(arguments);if(dojo.isIE){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_3d5,_3d6){this.value=_3d5;this._handleOnChange(_3d5,_3d6);},_getValueAttr:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||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 _3d7=this.domNode;var _3d8=_3d7.parentNode;var _3d9=_3d7.firstChild||_3d7;var _3da=_3d9.style.filter;var _3db=this;while(_3d8&&_3d8.clientHeight==0){(function ping(){var _3dc=_3db.connect(_3d8,"onscroll",function(e){_3db.disconnect(_3dc);_3d9.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_3d9.style.filter=_3da;},0);});})();_3d8=_3d8.parentNode;}}}});}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\"\r\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode dijitUpArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\r\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" wairole=\"presentation\" role=\"presentation\">&nbsp;</div\r\n\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div></div\r\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\r\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode dijitDownArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\r\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" wairole=\"presentation\" role=\"presentation\">&nbsp;</div\r\n\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div></div\r\n></div>\r\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,_filterString:"",setValue:function(_3dd){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_3dd);},_setValueAttr:function(date){this.value=date;this._showText();},onOpen:function(best){if(this._beenOpened&&this.domNode.parentNode){var p=dijit.byId(this.domNode.parentNode.dijitPopupParent);if(p){var val=p.get("displayedValue");if(val&&!p.parse(val,p.constraints)){this._filterString=val;}else{this._filterString="";}this._showText();}}this._beenOpened=true;},isDisabledDate:function(_3de,_3df){return false;},_getFilteredNodes:function(_3e0,_3e1,_3e2){var _3e3=[],n,i=_3e0,max=this._maxIncrement+Math.abs(i),chk=_3e2?-1:1,dec=_3e2?1:0,inc=_3e2?0:1;do{i=i-dec;n=this._createOption(i);if(n){_3e3.push(n);}i=i+inc;}while(_3e3.length<_3e1&&(i*chk)<max);if(_3e2){_3e3.reverse();}return _3e3;},_showText:function(){this.timeMenu.innerHTML="";var _3e4=dojo.date.stamp.fromISOString;this._clickableIncrementDate=_3e4(this.clickableIncrement);this._visibleIncrementDate=_3e4(this.visibleIncrement);this._visibleRangeDate=_3e4(this.visibleRange);var _3e5=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();};var _3e6=_3e5(this._clickableIncrementDate);var _3e7=_3e5(this._visibleIncrementDate);var _3e8=_3e5(this._visibleRangeDate);var time=this.value.getTime();this._refDate=new Date(time-time%(_3e7*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_3e8/_3e6;this._visibleIncrement=_3e7/_3e6;this._maxIncrement=(60*60*24)/_3e6;var _3e9=this._getFilteredNodes(0,this._totalIncrements>>1,true);var _3ea=this._getFilteredNodes(0,this._totalIncrements>>1,false);if(_3e9.length<this._totalIncrements>>1){_3e9=_3e9.slice(_3e9.length/2);_3ea=_3ea.slice(0,_3ea.length/2);}dojo.forEach(_3e9.concat(_3ea),function(n){this.timeMenu.appendChild(n);},this);},postCreate:function(){if(this.constraints===dijit._TimePicker.prototype.constraints){this.constraints={};}dojo.mixin(this,this.constraints);if(!this.constraints.locale){this.constraints.locale=this.lang;}this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _3eb=this;var _3ec=function(){_3eb._connects.push(dijit.typematic.addMouseListener.apply(null,arguments));};_3ec(this.upArrow,this,this._onArrowUp,1,50);_3ec(this.downArrow,this,this._onArrowDown,1,50);var _3ed=function(cb){return function(cnt){if(cnt>0){cb.call(this,arguments);}};};var _3ee=function(node,cb){return function(e){dojo.stopEvent(e);dijit.typematic.trigger(e,this,node,_3ed(cb),node,1,50);};};this.connect(this.upArrow,"onmouseover",_3ee(this.upArrow,this._onArrowUp));this.connect(this.downArrow,"onmouseover",_3ee(this.downArrow,this._onArrowDown));this.inherited(arguments);},_buttonMouse:function(e){dojo.toggleClass(e.currentTarget,e.currentTarget==this.upArrow?"dijitUpArrowHover":"dijitDownArrowHover",e.type=="mouseenter"||e.type=="mouseover");},_createOption:function(_3ef){var date=new Date(this._refDate);var _3f0=this._clickableIncrementDate;date.setHours(date.getHours()+_3f0.getHours()*_3ef,date.getMinutes()+_3f0.getMinutes()*_3ef,date.getSeconds()+_3f0.getSeconds()*_3ef);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _3f1=dojo.date.locale.format(date,this.constraints);if(this._filterString&&_3f1.toLowerCase().indexOf(this._filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_3ef;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_3f1},div);if(_3ef%this._visibleIncrement<1&&_3ef%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_3ef%this._clickableIncrement)){dojo.addClass(div,this.baseClass+"Tick");}}if(this.isDisabledDate(date)){dojo.addClass(div,this.baseClass+"ItemDisabled");}if(!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");}}return div;},_onOptionSelected:function(tgt){var _3f2=tgt.target.date||tgt.target.parentNode.date;if(!_3f2||this.isDisabledDate(_3f2)){return;}this._highlighted_option=null;this.set("value",_3f2);this.onValueSelected(_3f2);},onValueSelected:function(time){},_highlightOption:function(node,_3f3){if(!node){return;}if(_3f3){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",_3f3);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_3f3);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_3f3);}},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 _3f4=(dojo.isIE?e.wheelDelta:-e.detail);this[(_3f4>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_3f5){if(typeof _3f5=="number"&&_3f5==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3f6=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_3f6,1,true);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(_3f7){if(typeof _3f7=="number"&&_3f7==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _3f8=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_3f8,1,false);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[0]);this.timeMenu.appendChild(divs[0]);}},handleKey:function(e){var dk=dojo.keys;if(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE){setTimeout(dojo.hitch(this,function(){this._filterString=e.target.value.toLowerCase();this._showText();}),1);}else{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 _3f9=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_3f9)[0];if(!tgt){tgt=_3f9.childNodes[0];}else{if(_3f9.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;}else{if(this._highlighted_option&&(e.charOrCode==dk.ENTER||e.charOrCode===dk.TAB)){if(!this._keyboardSelected&&e.charOrCode===dk.TAB){return;}if(e.charOrCode==dk.ENTER){dojo.stopEvent(e);}this._onOptionSelected({target:this._highlighted_option});}}}}});}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\">\r\n\t<thead>\r\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\r\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"decrementMonth\">\r\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarDecrease\" waiRole=\"presentation\"/>\r\n\t\t\t\t<span dojoAttachPoint=\"decreaseArrowNode\" class=\"dijitA11ySideArrow\">-</span>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset' colspan=\"5\">\r\n\t\t\t\t<div class=\"dijitVisible\">\r\n\t\t\t\t\t<div class=\"dijitPopup dijitMenu dijitMenuPassive dijitHidden\" dojoAttachPoint=\"monthDropDown\" dojoAttachEvent=\"onmouseup: _onMonthSelect, onmouseover: _onMenuHover, onmouseout: _onMenuHover\">\r\n\t\t\t\t\t\t<div class=\"dijitCalendarMonthLabelTemplate dijitCalendarMonthLabel\"></div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelSpacer\" class=\"dijitSpacer\"></div>\r\n\t\t\t\t<div dojoAttachPoint=\"monthLabelNode\" class=\"dijitCalendarMonthLabel dijitInline dijitVisible\" dojoAttachEvent=\"onmousedown: _onMonthToggle\"></div>\r\n\t\t\t</th>\r\n\t\t\t<th class='dijitReset dijitCalendarArrow' dojoAttachPoint=\"incrementMonth\">\r\n\t\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitCalendarIncrementControl dijitCalendarIncrease\" waiRole=\"presentation\"/>\r\n\t\t\t\t<span dojoAttachPoint=\"increaseArrowNode\" class=\"dijitA11ySideArrow\">+</span>\r\n\t\t\t</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th class=\"dijitReset dijitCalendarDayLabelTemplate\" role=\"columnheader\"><span class=\"dijitCalendarDayLabel\"></span></th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody dojoAttachEvent=\"onclick: _onDayClick, onmouseover: _onDayMouseOver, onmouseout: _onDayMouseOut, onmousedown: _onDayMouseDown, onmouseup: _onDayMouseUp\" class=\"dijitReset dijitCalendarBodyContainer\">\r\n\t\t<tr class=\"dijitReset dijitCalendarWeekTemplate\" role=\"row\">\r\n\t\t\t<td class=\"dijitReset dijitCalendarDateTemplate\" role=\"gridcell\"><span class=\"dijitCalendarDateLabel\"></span></td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot class=\"dijitReset dijitCalendarYearContainer\">\r\n\t\t<tr>\r\n\t\t\t<td class='dijitReset' valign=\"top\" colspan=\"7\">\r\n\t\t\t\t<h3 class=\"dijitCalendarYearLabel\">\r\n\t\t\t\t\t<span dojoAttachPoint=\"previousYearLabelNode\" class=\"dijitInline dijitCalendarPreviousYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"currentYearLabelNode\" class=\"dijitInline dijitCalendarSelectedYear\"></span>\r\n\t\t\t\t\t<span dojoAttachPoint=\"nextYearLabelNode\" class=\"dijitInline dijitCalendarNextYear\"></span>\r\n\t\t\t\t</h3>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tfoot>\r\n</table>\r\n"),value:new Date(),datePackage:"dojo.date",dayWidth:"narrow",tabIndex:"0",baseClass:"dijitCalendar",cssStateNodes:{"decrementMonth":"dijitCalendarArrow","incrementMonth":"dijitCalendarArrow","previousYearLabelNode":"dijitCalendarPreviousYear","nextYearLabelNode":"dijitCalendarNextYear"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{tabIndex:"domNode"}),setValue:function(_3fa){dojo.deprecated("dijit.Calendar:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_3fa);},_getValueAttr:function(){var _3fb=new this.dateClassObj(this.value);_3fb.setHours(0,0,0,0);if(_3fb.getDate()<this.value.getDate()){_3fb=this.dateFuncObj.add(_3fb,"hour",1);}return _3fb;},_setValueAttr:function(_3fc){if(!this.value||this.dateFuncObj.compare(_3fc,this.value)){_3fc=new this.dateClassObj(_3fc);_3fc.setHours(1);this.displayMonth=new this.dateClassObj(_3fc);if(!this.isDisabledDate(_3fc,this.lang)){this.value=_3fc;this.onChange(this.get("value"));}dojo.attr(this.domNode,"aria-label",this.dateLocaleModule.format(_3fc,{selector:"date",formatLength:"full"}));this._populateGrid();}},_setText:function(node,text){while(node.firstChild){node.removeChild(node.firstChild);}node.appendChild(dojo.doc.createTextNode(text));},_populateGrid:function(){var _3fd=this.displayMonth;_3fd.setDate(1);var _3fe=_3fd.getDay(),_3ff=this.dateFuncObj.getDaysInMonth(_3fd),_400=this.dateFuncObj.getDaysInMonth(this.dateFuncObj.add(_3fd,"month",-1)),_401=new this.dateClassObj(),_402=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);if(_402>_3fe){_402-=7;}dojo.query(".dijitCalendarDateTemplate",this.domNode).forEach(function(_403,i){i+=_402;var date=new this.dateClassObj(_3fd),_404,_405="dijitCalendar",adj=0;if(i<_3fe){_404=_400-_3fe+i+1;adj=-1;_405+="Previous";}else{if(i>=(_3fe+_3ff)){_404=i-_3fe-_3ff+1;adj=1;_405+="Next";}else{_404=i-_3fe+1;_405+="Current";}}if(adj){date=this.dateFuncObj.add(date,"month",adj);}date.setDate(_404);if(!this.dateFuncObj.compare(date,_401,"date")){_405="dijitCalendarCurrentDate "+_405;}if(this._isSelectedDate(date,this.lang)){_405="dijitCalendarSelectedDate "+_405;}if(this.isDisabledDate(date,this.lang)){_405="dijitCalendarDisabledDate "+_405;}var _406=this.getClassForDate(date,this.lang);if(_406){_405=_406+" "+_405;}_403.className=_405+"Month dijitCalendarDateTemplate";_403.dijitDateValue=date.valueOf();var _407=dojo.query(".dijitCalendarDateLabel",_403)[0],text=date.getDateLocalized?date.getDateLocalized(this.lang):date.getDate();this._setText(_407,text);},this);var _408=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_3fd);this._setText(this.monthLabelNode,_408[_3fd.getMonth()]);dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){dojo.toggleClass(node,"dijitHidden",!(i in _408));this._setText(node,_408[i]);},this);var y=_3fd.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);var _409=this;var _40a=function(_40b,_40c,adj){_409._connects.push(dijit.typematic.addMouseListener(_409[_40b],_409,function(_40d){if(_40d>=0){_409._adjustDisplay(_40c,adj);}},0.8,500));};_40a("incrementMonth","month",1);_40a("decrementMonth","month",-1);_40a("nextYearLabelNode","year",1);_40a("previousYearLabelNode","year",-1);},goToToday:function(){this.set("value",new this.dateClassObj());},constructor:function(args){var _40e=(args.datePackage&&(args.datePackage!="dojo.date"))?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_40e,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);},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _40f=dojo.hitch(this,function(_410,n){var _411=dojo.query(_410,this.domNode)[0];for(var i=0;i<n;i++){_411.parentNode.appendChild(_411.cloneNode(true));}});_40f(".dijitCalendarDayLabelTemplate",6);_40f(".dijitCalendarDateTemplate",6);_40f(".dijitCalendarWeekTemplate",5);var _412=this.dateLocaleModule.getNames("days",this.dayWidth,"standAlone",this.lang);var _413=dojo.cldr.supplemental.getFirstDayOfWeek(this.lang);dojo.query(".dijitCalendarDayLabel",this.domNode).forEach(function(_414,i){this._setText(_414,_412[(i+_413)%7]);},this);var _415=new this.dateClassObj(this.value);var _416=this.dateLocaleModule.getNames("months","wide","standAlone",this.lang,_415);_40f(".dijitCalendarMonthLabelTemplate",_416.length-1);dojo.query(".dijitCalendarMonthLabelTemplate",this.domNode).forEach(function(node,i){dojo.attr(node,"month",i);if(i in _416){this._setText(node,_416[i]);}dojo.place(node.cloneNode(true),this.monthLabelSpacer);},this);this.value=null;this.set("value",_415);},_onMenuHover:function(e){dojo.stopEvent(e);dojo.toggleClass(e.target,"dijitMenuItemHover");},_adjustDisplay:function(part,_417){this.displayMonth=this.dateFuncObj.add(this.displayMonth,part,_417);this._populateGrid();},_onMonthToggle:function(evt){dojo.stopEvent(evt);if(evt.type=="mousedown"){var _418=dojo.position(this.monthLabelNode);var dim={width:_418.w+"px",top:-this.displayMonth.getMonth()*_418.h+"px"};if((dojo.isIE&&dojo.isQuirks)||dojo.isIE<7){dim.left=-_418.w/2+"px";}dojo.style(this.monthDropDown,dim);this._popupHandler=this.connect(document,"onmouseup","_onMonthToggle");}else{this.disconnect(this._popupHandler);delete this._popupHandler;}dojo.toggleClass(this.monthDropDown,"dijitHidden");dojo.toggleClass(this.monthLabelNode,"dijitVisible");},_onMonthSelect:function(evt){this._onMonthToggle(evt);this.displayMonth.setMonth(dojo.attr(evt.target,"month"));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);this.onValueSelected(this.get("value"));}},_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;}dojo.removeClass(this._currentNode,"dijitCalendarHoveredDate");if(dojo.hasClass(this._currentNode,"dijitCalendarActiveDate")){dojo.removeClass(this._currentNode,"dijitCalendarActiveDate");}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");}},_onKeyPress:function(evt){var dk=dojo.keys,_419=-1,_41a,_41b=this.value;switch(evt.keyCode){case dk.RIGHT_ARROW:_419=1;case dk.LEFT_ARROW:_41a="day";if(!this.isLeftToRight()){_419*=-1;}break;case dk.DOWN_ARROW:_419=1;case dk.UP_ARROW:_41a="week";break;case dk.PAGE_DOWN:_419=1;case dk.PAGE_UP:_41a=evt.ctrlKey?"year":"month";break;case dk.END:_41b=this.dateFuncObj.add(_41b,"month",1);_41a="day";case dk.HOME:_41b=new Date(_41b).setDate(1);break;case dk.ENTER:this.onValueSelected(this.get("value"));break;case dk.ESCAPE:default:return;}dojo.stopEvent(evt);if(_41a){_41b=this.dateFuncObj.add(_41b,_41a,_419);}this.set("value",_41b);},onValueSelected:function(date){},onChange:function(date){},_isSelectedDate:function(_41c,_41d){return !this.dateFuncObj.compare(_41c,this.value,"date");},isDisabledDate:function(_41e,_41f){},getClassForDate:function(_420,_421){}});}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_422){if(_422.reset){_422.reset();}});},validate:function(){var _423=false;return dojo.every(dojo.map(this.getDescendants(),function(_424){_424._hasBeenBlurred=true;var _425=_424.disabled||!_424.validate||_424.validate();if(!_425&&!_423){dojo.window.scrollIntoView(_424.containerNode||_424.domNode);_424.focus();_423=true;}return _425;}),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(_426){if(!_426.name){return;}var _427=map[_426.name]||(map[_426.name]=[]);_427.push(_426);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _428=map[name],_429=dojo.getObject(name,false,obj);if(_429===undefined){continue;}if(!dojo.isArray(_429)){_429=[_429];}if(typeof _428[0].checked=="boolean"){dojo.forEach(_428,function(w,i){w.set("value",dojo.indexOf(_429,w.value)!=-1);});}else{if(_428[0].multiple){_428[0].set("value",_429);}else{dojo.forEach(_428,function(w,i){w.set("value",_429[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(_42a){var name=_42a.name;if(!name||_42a.disabled){return;}var _42b=_42a.get("value");if(typeof _42a.checked=="boolean"){if(/Radio/.test(_42a.declaredClass)){if(_42b!==false){dojo.setObject(name,_42b,obj);}else{_42b=dojo.getObject(name,false,obj);if(_42b===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_42b!==false){ary.push(_42b);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_42b);}else{dojo.setObject(name,[prev,_42b],obj);}}else{dojo.setObject(name,_42b,obj);}}});return obj;},isValid:function(){this._invalidWidgets=dojo.filter(this.getDescendants(),function(_42c){return !_42c.disabled&&_42c.isValid&&!_42c.isValid();});return !this._invalidWidgets.length;},onValidStateChange:function(_42d){},_widgetChange:function(_42e){var _42f=this._lastValidState;if(!_42e||this._lastValidState===undefined){_42f=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_42f;}}else{if(_42e.isValid){this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){return (w!=_42e);},this);if(!_42e.isValid()&&!_42e.get("disabled")){this._invalidWidgets.push(_42e);}_42f=(this._invalidWidgets.length===0);}}if(_42f!==this._lastValidState){this._lastValidState=_42f;this.onValidStateChange(_42f);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _430=this;var _431=(this._changeConnections=[]);dojo.forEach(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_432){_431.push(_430.connect(_432,"validate",dojo.hitch(_430,"_widgetChange",_432)));_431.push(_430.connect(_432,"_setDisabledAttr",dojo.hitch(_430,"_widgetChange",_432)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_433){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(_434){var _435=dijit._getTabNavigable(dojo.byId(_434));this._firstFocusItem=_435.lowest||_435.first||_434;this._lastFocusItem=_435.last||_435.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_434,"tabIndex","0");this._firstFocusItem=_434;}}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");},_setClassAttr:function(_436){this.node.className="dijitDialogUnderlay "+_436;},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _437=dojo.window.getBox();os.top=_437.t+"px";os.left=_437.l+"px";is.width=_437.w+"px";is.height=_437.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();this.domNode.style.display="none";},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _438=dijit.getEnclosingWidget(this.domNode.parentNode);return _438&&_438.isContainer?_438:null;},_getSibling:function(_439){var node=this.domNode;do{node=node[_439+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _43a=this.getParent&&this.getParent();if(!(_43a&&_43a.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_43b,_43c){var node=this.domNode;if(_43b){dojo.marginBox(node,_43b);if(_43b.t){node.style.top=_43b.t+"px";}if(_43b.l){node.style.left=_43b.l+"px";}}var mb=_43c||{};dojo.mixin(mb,_43b||{});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(_43d){dojo.addClass(_43d.domNode,this.baseClass+"-child");if(_43d.baseClass){dojo.addClass(_43d.domNode,this.baseClass+"-"+_43d.baseClass);}},addChild:function(_43e,_43f){this.inherited(arguments);if(this._started){this._setupChild(_43e);}},removeChild:function(_440){dojo.removeClass(_440.domNode,this.baseClass+"-child");if(_440.baseClass){dojo.removeClass(_440.domNode,this.baseClass+"-"+_440.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _441=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_442,dim){_442.resize?_442.resize(dim):dojo.marginBox(_442.domNode,dim);dojo.mixin(_442,dojo.marginBox(_442.domNode));dojo.mixin(_442,dim);};dijit.layout.layoutChildren=function(_443,dim,_444){dim=dojo.mixin({},dim);dojo.addClass(_443,"dijitLayoutContainer");_444=dojo.filter(_444,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_444,function(item){return item.layoutAlign=="client";}));dojo.forEach(_444,function(_445){var elm=_445.domNode,pos=_445.layoutAlign;var _446=elm.style;_446.left=dim.l+"px";_446.top=dim.t+"px";_446.bottom=_446.right="auto";dojo.addClass(elm,"dijitAlign"+_441(pos));if(pos=="top"||pos=="bottom"){size(_445,{w:dim.w});dim.h-=_445.h;if(pos=="top"){dim.t+=_445.h;}else{_446.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_445,{h:dim.h});dim.w-=_445.w;if(pos=="left"){dim.l+=_445.w;}else{_446.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_445,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){this.inherited(arguments);var _447=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_447);this.errorMessage=dojo.string.substitute(this.errorMessage,_447);if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){this.isLoaded=true;}},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}var _448=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_448&&_448.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;if(this.isLoaded){dojo.forEach(this.getChildren(),function(_449){_449.startup();});}if(this._isShown()||this.preload){this._onShow();}this.inherited(arguments);},_checkIfSingleChild:function(){var _44a=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_44b=_44a.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_44c=dojo.filter(_44b.map(dijit.byNode),function(_44d){return _44d&&_44d.domNode&&_44d.resize;});if(_44a.length==_44b.length&&_44c.length==1){this._singleChild=_44c[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},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.href=href;if(this._created&&(this.preload||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.href="";this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));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(_44e){if(this._beingDestroyed){return;}this.inherited(arguments);},resize:function(_44f,_450){if(!this._wasShown){this._onShow();}this._resizeCalled=true;if(_44f){dojo.marginBox(this.domNode,_44f);}var cn=this.containerNode;if(cn===this.domNode){var mb=_450||{};dojo.mixin(mb,_44f||{});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();},_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;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden");}}},_onShow:function(){if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){this.refresh();}}else{if(!this._childOfLayoutWidget&&this._needLayout){this._layoutChildren();}}this.inherited(arguments);this._wasShown=true;},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _451={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_451,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_451));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.isLoaded=true;try{this.onLoadDeferred.callback(data);this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _452=this._contentSetter;dojo.forEach(this.getChildren(),function(_453){if(_453.destroyRecursive){_453.destroyRecursive();}});if(_452){dojo.forEach(_452.parseResults,function(_454){if(_454.destroyRecursive&&_454.domNode&&_454.domNode.parentNode==dojo.body()){_454.destroyRecursive();}});delete _452.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_455){this.destroyDescendants();var _456=this._contentSetter;if(!(_456&&_456 instanceof dojo.html._ContentSetter)){_456=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _457=this.onContentError(e);try{this.containerNode.innerHTML=_457;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _458=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,dir:this.dir,lang:this.lang},this._contentSetterParams||{});dojo.mixin(_456,_458);_456.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_455){dojo.forEach(this.getChildren(),function(_459){if(!this.parseOnLoad||_459.getParent){_459.startup();}},this);this._scheduleLayout();this._onLoadHandler(cont);}},_onError:function(type,err,_45a){this.onLoadDeferred.errback(err);var _45b=this["on"+type+"Error"].call(this,err);if(_45a){console.error(_45a,err);}else{if(_45b){this._setContent(_45b,true);}}},_scheduleLayout:function(){if(this._isShown()){this._layoutChildren();}else{this._needLayout=true;}},_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(_45c){if(_45c.resize){_45c.resize();}});}delete this._needLayout;},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_45d){},onDownloadError:function(_45e){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 waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n"),postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_45f,_460){var c=this._currentOrientClass;if(c){dojo.removeClass(this.domNode,c);}c="dijitTooltipAB"+(_460.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_460.charAt(0)=="T"?"Below":"Above");dojo.addClass(this.domNode,c);this._currentOrientClass=c;},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},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 _461=(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(!_461){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_461){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\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n"),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 _462=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_462);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){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});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(" ")};this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:dojo.hitch(this,function(){var _463=dijit._underlay;if(!_463){_463=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);}else{_463.set(this.underlayAttrs);}var ds=dijit._dialogStack,_464=948+ds.length*2;if(ds.length==1){_463.show();}dojo.style(dijit._underlay.domNode,"zIndex",_464);dojo.style(this.domNode,"zIndex",_464+1);}),onEnd:dojo.hitch(this,function(){if(this.autofocus){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}})});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:dojo.hitch(this,function(){node.style.display="none";var ds=dijit._dialogStack;if(ds.length==0){dijit._underlay.hide();}else{dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);dijit._underlay.set(ds[ds.length-1].underlayAttrs);}if(this.refocus){var _465=this._savedFocus;if(ds.length>0){var pd=ds[ds.length-1];if(!dojo.isDescendant(_465.node,pd.domNode)){pd._getFocusItems(pd.domNode);_465=pd._firstFocusItem;}}dijit.focus(_465);}})});},uninitialize:function(){var _466=false;if(this._fadeIn&&this._fadeIn.status()=="playing"){_466=true;this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){_466=true;this._fadeOut.stop();}if((this.open||_466)&&!dijit._underlay._destroyed){dijit._underlay.hide();}if(this._moveable){this._moveable.destroy();}this.inherited(arguments);},_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.marginBox(this.domNode);var _467=dojo.window.getBox();if(mb.w>=_467.w||mb.h>=_467.h){var w=Math.min(mb.w,Math.floor(_467.w*0.75)),h=Math.min(mb.h,Math.floor(_467.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,_468=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_468.l+(p?p.x:(_468.w-bb.w)/2)),t=Math.floor(_468.t+(p?p.y:(_468.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){var ds=dijit._dialogStack;if(ds[ds.length-1]!=this){return;}if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _469=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_469){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_469){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._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _46a=dojo.window.getBox();if(!this._oldViewport||_46a.h!=this._oldViewport.h||_46a.w!=this._oldViewport.w){this.layout();this._oldViewport=_46a;}}));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this.open=true;this._onShow();this._size();this._position();dijit._dialogStack.push(this);this._fadeIn.play();this._savedFocus=dijit.getFocus(this);},hide:function(){var ds=dijit._dialogStack;if(!this._alreadyInitialized||this!=ds[ds.length-1]){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}ds.pop();this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this.open=false;this.onHide();},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._dialogStack=[];}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(_46b,_46c){var _46d=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_46b,function(code){_46d[code]=prev;});dojo.forEach(_46c,function(code){_46d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_46e,_46f){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_46e);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _470=this._getFirstFocusableChild();if(_470){this.focusChild(_470);}},focusNext:function(){var _471=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_471);},focusPrev:function(){var _472=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_472,true);},focusChild:function(_473,last){if(this.focusedChild&&_473!==this.focusedChild){this._onChildBlur(this.focusedChild);}_473.focus(last?"end":"start");this.focusedChild=_473;},_startupChild:function(_474){_474.set("tabIndex","-1");this.connect(_474,"_onFocus",function(){_474.set("tabIndex",this.tabIndex);});this.connect(_474,"_onBlur",function(){_474.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(_475){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_476,dir){if(_476){_476=this._getSiblingOfChild(_476,dir);}var _477=this.getChildren();for(var i=0;i<_477.length;i++){if(!_476){_476=_477[(dir>0)?0:(_477.length-1)];}if(_476.isFocusable()){return _476;}_476=this._getSiblingOfChild(_476,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset dijitMenuItemIconCell\" waiRole=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\r\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\r\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\r\n\t\t</div>\r\n\t</td>\r\n</tr>\r\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(_478){if(_478&&!("label" in this.params)){this.set("label",_478.innerHTML);}},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);var _479=this.id+"_text";dojo.attr(this.containerNode,"id",_479);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_479+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_479);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._hovering=false;this._setStateClass();},_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(_47a){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_47a);},setLabel:function(_47b){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_47b);},setDisabled:function(_47c){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_47c);},_setDisabledAttr:function(_47d){this.disabled=_47d;dijit.setWaiState(this.focusNode,"disabled",_47d?"true":"false");},_setAccelKeyAttr:function(_47e){this.accelKey=_47e;this.accelKeyNode.style.display=_47e?"":"none";this.accelKeyNode.innerHTML=_47e;dojo.attr(this.containerNode,"colSpan",_47e?"1":"2");}});}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 _47f=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_47f[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\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\r\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\r\n\t<td class=\"dijitReset dijitMenuItemIconCell\" waiRole=\"presentation\">\r\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\r\n\t</td>\r\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\r\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">&nbsp;</td>\r\n</tr>\r\n"),checked:false,_setCheckedAttr:function(_480){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_480);dijit.setWaiState(this.domNode,"checked",_480);this.checked=_480;},onChange:function(_481){},_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\">\r\n\t<td class=\"dijitMenuSeparatorIconCell\">\r\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\r\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\r\n\t</td>\r\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\r\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\r\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\r\n\t</td>\r\n</tr>\r\n"),postCreate:function(){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(_482){_482.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_483){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _484=this._getTopMenu();if(_484&&_484._isMenuBar){_484.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _485=this.currentPopup.parentMenu;if(_485.focusedChild){_485.focusedChild._setSelected(false);}_485.focusedChild=this.currentPopup.from_item;_485.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 _486=item.popup;if(_486){this._stopPendingCloseTimer(_486);_486._pendingClose_timer=setTimeout(function(){_486._pendingClose_timer=null;if(_486.parentMenu){_486.parentMenu.currentPopup=null;}dijit.popup.close(_486);},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(_487){if(_487._pendingClose_timer){clearTimeout(_487._pendingClose_timer);_487._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 _488=this.focusedChild;if(!_488){return;}var _489=_488.popup;if(_489.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_489.parentMenu=this;_489.from_item=_488;var self=this;dijit.popup.open({parent:this,popup:_489,around:_488.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(_488);self._cleanUp();_488._setSelected(true);self.focusedChild=_488;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_489;_489.connect(_489.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_489.focus){_489._focus_timer=setTimeout(dojo.hitch(_489,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.addClass(this.domNode,"dijitMenuActive");dojo.removeClass(this.domNode,"dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.removeClass(this.domNode,"dijitMenuActive");dojo.addClass(this.domNode,"dijitMenuPassive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}if(this.currentPopup){dijit.popup.close(this.currentPopup);this.currentPopup=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\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=0>\r\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\r\n</table>\r\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(_48a){var win=dojo.window.get(this._iframeContentDocument(_48a))||this._iframeContentDocument(_48a)["__parent__"]||(_48a.name&&dojo.doc.frames[_48a.name])||null;return win;},_iframeContentDocument:function(_48b){var doc=_48b.contentDocument||(_48b.contentWindow&&_48b.contentWindow.document)||(_48b.name&&dojo.doc.frames[_48b.name]&&dojo.doc.frames[_48b.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _48c=node,win=this._iframeContentWindow(_48c);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _48d={node:node,iframe:_48c};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_48d));var _48e=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_48c,{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,_48c);}})];});_48d.connects=cn?_48e(cn):[];if(_48c){_48d.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_48c);cn=dojo.withGlobal(win,dojo.body);_48d.connects=_48e(cn);});if(_48c.addEventListener){_48c.addEventListener("load",_48d.onloadHandler,false);}else{_48c.attachEvent("onload",_48d.onloadHandler);}}},unBindDomNode:function(_48f){var node;try{node=dojo.byId(_48f);}catch(e){return;}var _490="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_490)){var bid=dojo.attr(node,_490)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _491=b.iframe;if(_491){if(_491.removeEventListener){_491.removeEventListener("load",b.onloadHandler,false);}else{_491.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_490);delete this._bindings[bid];}},_scheduleOpen:function(_492,_493,_494){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_492,iframe:_493,coords:_494});}),1);}},_openMyself:function(args){var _495=args.target,_496=args.iframe,_497=args.coords;if(_497){if(_496){var od=_495.ownerDocument,ifc=dojo.position(_496,true),win=this._iframeContentWindow(_496),_498=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_496),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_496,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_496,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_496,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_496,cs.borderTopWidth):0);_497.x+=ifc.x+left-_498.x;_497.y+=ifc.y+top-_498.y;}}else{_497=dojo.position(_495,true);_497.x+=10;_497.y+=10;}var self=this;var _499=dijit.getFocus(this);function _49a(){if(self.refocus){dijit.focus(_499);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_497.x,y:_497.y,onExecute:_49a,onCancel:_49a,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.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>\r\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\r\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\r\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" waiRole=\"presentation\"\r\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\r\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" waiRole=\"presentation\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" waiRole=\"presentation\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\" id=\"${id}_pane\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),postCreate:function(){if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}this._setCss();dojo.setSelectable(this.titleNode,false);var _49b=this.hideNode,_49c=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_49b.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_49b.style.display="none";}});this.inherited(arguments);},_setOpenAttr:function(open){if(this.open!==open){this.toggle();}dijit.setWaiState(this.containerNode,"hidden",this.open?"false":"true");dijit.setWaiState(this.focusNode,"pressed",this.open?"true":"false");},_setToggleableAttr:function(_49d){this.toggleable=_49d;dijit.setWaiRole(this.focusNode,_49d?"button":"heading");if(_49d){dijit.setWaiState(this.focusNode,"controls",this.id+"_pane");dojo.attr(this.focusNode,"tabIndex",this.tabIndex);}else{dojo.removeAttr(this.focusNode,"tabIndex");}this._setCss();},_setContentAttr:function(_49e){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_49f){if(_49f&&_49f.status()=="playing"){_49f.stop();}});var anim=this[this.open?"_wipeOut":"_wipeIn"];if(anim){anim.play();}else{this.hideNode.style.display=this.open?"":"none";}this.open=!this.open;if(this.open){this._onShow();}else{this.onHide();}this._setCss();},_setCss:function(){var node=this.titleBarNode||this.focusNode;if(this._titleBarClass){dojo.removeClass(node,this._titleBarClass);}this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");dojo.addClass(node,this._titleBarClass);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(_4a0){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_4a0);}});}if(!dojo._hasResource["dijit.ToolbarSeparator"]){dojo._hasResource["dijit.ToolbarSeparator"]=true;dojo.provide("dijit.ToolbarSeparator");dojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\" waiRole=\"presentation\"></div>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Toolbar"]){dojo._hasResource["dijit.Toolbar"]=true;dojo.provide("dijit.Toolbar");dojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" dojoAttachPoint=\"containerNode\">"+"</div>",baseClass:"dijitToolbar",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[dojo.keys.LEFT_ARROW]:[dojo.keys.RIGHT_ARROW],this.isLeftToRight()?[dojo.keys.RIGHT_ARROW]:[dojo.keys.LEFT_ARROW]);this.inherited(arguments);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});}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\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\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(_4a1,_4a2,_4a3,rtl){if(this.aroundNode&&this.aroundNode===_4a2){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_4a1;var pos=dijit.placeOnScreenAroundElement(this.domNode,_4a2,dijit.getPopupAroundAlignment((_4a3&&_4a3.length)?_4a3:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_4a2;},orient:function(node,_4a4,_4a5){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"}[_4a4+"-"+_4a5];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_4a6){if(this._onDeck&&this._onDeck[1]==_4a6){this._onDeck=null;}else{if(this.aroundNode===_4a6){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(_4a7,_4a8,_4a9,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_4a7,_4a8,_4a9,rtl);};dijit.hideTooltip=function(_4aa){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_4aa);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){this._nodeConnectionsById={};},_setConnectIdAttr:function(_4ab){for(var _4ac in this._nodeConnectionsById){this.removeTarget(_4ac);}dojo.forEach(dojo.isArrayLike(_4ab)?_4ab:[_4ab],this.addTarget,this);},_getConnectIdAttr:function(){var ary=[];for(var id in this._nodeConnectionsById){ary.push(id);}return ary;},addTarget:function(id){var node=dojo.byId(id);if(!node){return;}if(node.id in this._nodeConnectionsById){return;}this._nodeConnectionsById[node.id]=[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")];},removeTarget:function(node){var id=node.id||node;if(id in this._nodeConnectionsById){dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);delete this._nodeConnectionsById[id];}},postCreate:function(){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 _4ad=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_4ad);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_4ae){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_4ae,this.position,!this.isLeftToRight());this._connectNode=_4ae;this.onShow(_4ae,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(_4af,_4b0){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.DeferredList=function(list,_4b1,_4b2,_4b3,_4b4){var _4b5=[];dojo.Deferred.call(this);var self=this;if(list.length===0&&!_4b1){this.resolve([0,[]]);}var _4b6=0;dojo.forEach(list,function(item,i){item.then(function(_4b7){if(_4b1){self.resolve([i,_4b7]);}else{_4b8(true,_4b7);}},function(_4b9){if(_4b2){self.reject(_4b9);}else{_4b8(false,_4b9);}if(_4b3){return null;}throw _4b9;});function _4b8(_4ba,_4bb){_4b5[i]=[_4ba,_4bb];_4b6++;if(_4b6===list.length){self.resolve(_4b5);}};});};dojo.DeferredList.prototype=new dojo.Deferred();dojo.DeferredList.prototype.gatherResults=function(_4bc){var d=new dojo.DeferredList(_4bc,false,true,false);d.addCallback(function(_4bd){var ret=[];dojo.forEach(_4bd,function(_4be){ret.push(_4be[1]);});return ret;});return d;};}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 _4bf=this.store;if(!_4bf.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_4bf.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_4bf,"onNew",this,"onNewItem"),dojo.connect(_4bf,"onDelete",this,"onDeleteItem"),dojo.connect(_4bf,"onSet",this,"onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_4c0,_4c1){if(this.root){_4c0(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4c2){if(_4c2.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_4c2.length+" items, but must return exactly one item");}this.root=_4c2[0];_4c0(this.root);}),onError:_4c1});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_4c3,_4c4,_4c5){var _4c6=this.store;if(!_4c6.isItemLoaded(_4c3)){var _4c7=dojo.hitch(this,arguments.callee);_4c6.loadItem({item:_4c3,onItem:function(_4c8){_4c7(_4c8,_4c4,_4c5);},onError:_4c5});return;}var _4c9=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_4c6.getValues(_4c3,this.childrenAttrs[i]);_4c9=_4c9.concat(vals);}var _4ca=0;if(!this.deferItemLoadingUntilExpand){dojo.forEach(_4c9,function(item){if(!_4c6.isItemLoaded(item)){_4ca++;}});}if(_4ca==0){_4c4(_4c9);}else{dojo.forEach(_4c9,function(item,idx){if(!_4c6.isItemLoaded(item)){_4c6.loadItem({item:item,onItem:function(item){_4c9[idx]=item;if(--_4ca==0){_4c4(_4c9);}},onError:_4c5});}});}},isItem:function(_4cb){return this.store.isItem(_4cb);},fetchItemByIdentity:function(_4cc){this.store.fetchItemByIdentity(_4cc);},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,_4cd,_4ce){var _4cf={parent:_4cd,attribute:this.childrenAttrs[0],insertIndex:_4ce};if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_4cd,true,_4ce);}else{this.store.newItem(args,_4cf);}}});}else{this.store.newItem(args,_4cf);}},pasteItem:function(_4d0,_4d1,_4d2,_4d3,_4d4){var _4d5=this.store,_4d6=this.childrenAttrs[0];if(_4d1){dojo.forEach(this.childrenAttrs,function(attr){if(_4d5.containsValue(_4d1,attr,_4d0)){if(!_4d3){var _4d7=dojo.filter(_4d5.getValues(_4d1,attr),function(x){return x!=_4d0;});_4d5.setValues(_4d1,attr,_4d7);}_4d6=attr;}});}if(_4d2){if(typeof _4d4=="number"){var _4d8=_4d5.getValues(_4d2,_4d6).slice();_4d8.splice(_4d4,0,_4d0);_4d5.setValues(_4d2,_4d6,_4d8);}else{_4d5.setValues(_4d2,_4d6,_4d5.getValues(_4d2,_4d6).concat(_4d0));}}},onChange:function(item){},onChildrenChange:function(_4d9,_4da){},onDelete:function(_4db,_4dc){},onNewItem:function(item,_4dd){if(!_4dd){return;}this.getChildren(_4dd.item,dojo.hitch(this,function(_4de){this.onChildrenChange(_4dd.item,_4de);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_4df,_4e0,_4e1){if(dojo.indexOf(this.childrenAttrs,_4df)!=-1){this.getChildren(item,dojo.hitch(this,function(_4e2){this.onChildrenChange(item,_4e2);}));}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(_4e3){this.root={store:this,root:true,id:_4e3.rootId,label:_4e3.rootLabel,children:_4e3.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_4e4,_4e5,_4e6){if(_4e4===this.root){if(this.root.children){_4e5(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4e7){this.root.children=_4e7;_4e5(_4e7);}),onError:_4e6});}}else{this.inherited(arguments);}},isItem:function(_4e8){return (_4e8===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_4e9){if(_4e9.identity==this.root.id){var _4ea=_4e9.scope?_4e9.scope:dojo.global;if(_4e9.onItem){_4e9.onItem.call(_4ea,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,_4eb,_4ec){if(_4eb===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_4ed,_4ee,_4ef,_4f0,_4f1){if(_4ee===this.root){if(!_4f0){this.onLeaveRoot(_4ed);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_4ed,_4ee===this.root?null:_4ee,_4ef===this.root?null:_4ef,_4f0,_4f1);if(_4ef===this.root){this.onAddToRoot(_4ed);}},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 _4f2=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_4f3){this.root.children=_4f3;if(_4f2.length!=_4f3.length||dojo.some(_4f2,function(item,idx){return _4f3[idx]!=item;})){this.onChildrenChange(this.root,_4f3);}})});},onNewItem:function(item,_4f4){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}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\" waiRole=\"presentation\"\r\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\"\r\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\r\n\t\t/><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\r\n\t\t></span\r\n\t\t><span dojoAttachPoint=\"contentNode\"\r\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitIcon dijitTreeIcon\" waiRole=\"presentation\"\r\n\t\t\t/><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" dojoAttachEvent=\"onfocus:_onLabelFocus\"></span>\r\n\t\t</span\r\n\t></div>\r\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\r\n</div>\r\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"}}),postCreate:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}},_setIndentAttr:function(_4f5){this.indent=_4f5;var _4f6=(Math.max(_4f5,0)*this.tree._nodePixelIndent)+"px";dojo.style(this.domNode,"backgroundPosition",_4f6+" 0px");dojo.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_4f6);dojo.forEach(this.getChildren(),function(_4f7){_4f7.set("indent",_4f5+1);});},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_4f8=tree.model;if(tree._v10Compat&&item===_4f8.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_4f9,_4fa){var _4fb="_"+_4f9+"Class";var _4fc=_4f9+"Node";if(this[_4fb]){dojo.removeClass(this[_4fc],this[_4fb]);}this[_4fb]=this.tree["get"+_4fa+"Class"](item,this.isExpanded);if(this[_4fb]){dojo.addClass(this[_4fc],this[_4fb]);}dojo.style(this[_4fc],this.tree["get"+_4fa+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _4fd=this.getParent();if(!_4fd||_4fd.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_4fe){var _4ff=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_500=["*","-","+","*"],idx=_4fe?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.removeClass(this.expandoNode,_4ff);dojo.addClass(this.expandoNode,_4ff[idx]);this.expandoNodeText.innerHTML=_500[idx];},expand:function(){if(this._expandDeferred){return this._expandDeferred;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");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,_501=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new dojo.Deferred(function(){_501.stop();}));_501.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(_502){var tree=this.tree,_503=tree.model,defs=[];dojo.forEach(this.getChildren(),function(_504){dijit._Container.prototype.removeChild.call(this,_504);},this);this.state="LOADED";if(_502&&_502.length>0){this.isExpandable=true;dojo.forEach(_502,function(item){var id=_503.getIdentity(item),_505=tree._itemNodesMap[id],node;if(_505){for(var i=0;i<_505.length;i++){if(_505[i]&&!_505[i].getParent()){node=_505[i];node.set("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_503.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),dir:tree.dir,lang:tree.lang,indent:this.indent+1});if(_505){_505.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(_506,idx){_506._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);},removeChild:function(node){this.inherited(arguments);var _507=this.getChildren();if(_507.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_507,function(_508){_508._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){this.tree._onNodeFocus(this);},setSelected:function(_509){dijit.setWaiState(this.labelNode,"selected",_509);dojo.toggleClass(this.rowNode,"dijitTreeRowSelected",_509);},setFocusable:function(_50a){this.labelNode.setAttribute("tabIndex",_50a?"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"],path:[],selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:dojo.cache("dijit","templates/Tree.html","<div class=\"dijitTree dijitTreeContainer\" waiRole=\"tree\"\r\n\tdojoAttachEvent=\"onkeypress:_onKeyPress\">\r\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" dojoAttachPoint=\"indentDetector\"></div>\r\n</div>\r\n"),persist:true,autoExpand:false,dndController:null,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(_50b,_50c){dojo.publish(this.id,[dojo.mixin({tree:this,event:_50b},_50c||{})]);},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 _50d={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_50d[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_50d);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _50e={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_50e.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_50e.getChildren=dojo.hitch(this,function(item,_50f,_510){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_50f,_510);});}this.model=new dijit.tree.ForestStoreModel(_50e);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";}this.domNode.appendChild(rn.domNode);var _511=this.model.getIdentity(item);if(this._itemNodesMap[_511]){this._itemNodesMap[_511].push(rn);}else{this._itemNodesMap[_511]=[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 _512=dojo.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_512]);},_setSelectedItemAttr:function(item){var _513=this.get("selectedItem");var _514=(!item||dojo.isString(item))?item:this.model.getIdentity(item);if(_514==_513?this.model.getIdentity(_513):null){return;}var _515=this._itemNodesMap[_514];this._selectNode((_515&&_515[0])||null);},_getSelectedItemAttr:function(){return this.selectedNode&&this.selectedNode.item;},_setPathAttr:function(path){var d=new dojo.Deferred();this._selectNode(null);if(!path||!path.length){d.resolve(true);return d;}this._loadDeferred.addCallback(dojo.hitch(this,function(){if(!this.rootNode){d.reject(new Error("!this.rootNode"));return;}if(path[0]!==this.rootNode.item&&(dojo.isString(path[0])&&path[0]!=this.model.getIdentity(this.rootNode.item))){d.reject(new Error(this.id+":path[0] doesn't match this.rootNode.item.  Maybe you are using the wrong tree."));return;}path.shift();var node=this.rootNode;function _516(){var item=path.shift(),_517=dojo.isString(item)?item:this.model.getIdentity(item);dojo.some(this._itemNodesMap[_517],function(n){if(n.getParent()==node){node=n;return true;}return false;});if(path.length){this._expandNode(node).addCallback(dojo.hitch(this,_516));}else{this._selectNode(node);d.resolve(true);}};this._expandNode(node).addCallback(dojo.hitch(this,_516));}));return d;},_getPathAttr:function(){if(!this.selectedNode){return;}var res=[];var _518=this.selectedNode;while(_518&&_518!==this.rootNode){res.unshift(_518.item);_518=_518.getParent();}res.unshift(this.rootNode.item);return res;},mayHaveChildren:function(item){},getItemChildren:function(_519,_51a){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_51b){return (!item||this.model.mayHaveChildren(item))?(_51b?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_51c){},getRowClass:function(item,_51d){},getIconStyle:function(item,_51e){},getLabelStyle:function(item,_51f){},getRowStyle:function(item,_520){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _521=dijit.getEnclosingWidget(e.target);if(!_521){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_521,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[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:_521,item:_521.item,evt:e});dojo.stopEvent(e);}}},_onEnterKey:function(_522,evt){this._publish("execute",{item:_522.item,node:_522.node});this._selectNode(_522.node);this.onClick(_522.item,_522.node,evt);},_onDownArrow:function(_523){var node=this._getNextNode(_523.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_524){var node=_524.node;var _525=node.getPreviousSibling();if(_525){node=_525;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _526=node.getChildren();node=_526[_526.length-1];}}else{var _527=node.getParent();if(!(!this.showRoot&&_527===this.rootNode)){node=_527;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_528){var node=_528.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(_529){var node=_529.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _52a=node.getParent();if(_52a&&_52a.isTreeNode&&!(!this.showRoot&&_52a===this.rootNode)){this.focusNode(_52a);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_52b){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(_52c){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_52c.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_52c.key,startNode:_52c.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);}}},_onClick:function(_52d,e){var _52e=e.target,_52f=(_52e==_52d.expandoNode||_52e==_52d.expandoNodeText);if((this.openOnClick&&_52d.isExpandable)||_52f){if(_52d.isExpandable){this._onExpandoClick({node:_52d});}}else{this._publish("execute",{item:_52d.item,node:_52d,evt:e});this.onClick(_52d.item,_52d,e);this.focusNode(_52d);}if(!_52f){this._selectNode(_52d);}dojo.stopEvent(e);},_onDblClick:function(_530,e){var _531=e.target,_532=(_531==_530.expandoNode||_531==_530.expandoNodeText);if((this.openOnDblClick&&_530.isExpandable)||_532){if(_530.isExpandable){this._onExpandoClick({node:_530});}}else{this._publish("execute",{item:_530.item,node:_530,evt:e});this.onDblClick(_530.item,_530,e);this.focusNode(_530);}if(!_532){this._selectNode(_530);}dojo.stopEvent(e);},_onExpandoClick:function(_533){var node=_533.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 _534=node.getNextSibling();if(_534){return _534;}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,_535){if(node._expandNodeDeferred&&!_535){return node._expandNodeDeferred;}var _536=this.model,item=node.item,_537=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new dojo.Deferred());_536.getChildren(item,function(_538){node.unmarkProcessing();var scid=node.setChildItems(_538);var ed=_537._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_537,": 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);},_selectNode:function(node){if(this.selectedNode&&!this.selectedNode._destroyed){this.selectedNode.setSelected(false);}if(node){node.setSelected(true);}this.selectedNode=node;},_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 _539=this.model,_53a=_539.getIdentity(item),_53b=this._itemNodesMap[_53a];if(_53b){var _53c=this.getLabel(item),_53d=this.getTooltip(item);dojo.forEach(_53b,function(node){node.set({item:item,label:_53c,tooltip:_53d});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_53e,_53f){var _540=this.model,_541=_540.getIdentity(_53e),_542=this._itemNodesMap[_541];if(_542){dojo.forEach(_542,function(_543){_543.setChildItems(_53f);});}},_onItemDelete:function(item){var _544=this.model,_545=_544.getIdentity(item),_546=this._itemNodesMap[_545];if(_546){dojo.forEach(_546,function(node){var _547=node.getParent();if(_547){_547.removeChild(node);}node.destroyRecursive();});delete this._itemNodesMap[_545];}},_initState:function(){if(this.persist){var _548=dojo.cookie(this.cookieName);this._openedItemIds={};if(_548){dojo.forEach(_548.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_549){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_549){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(_54a){if(_54a){dojo.marginBox(this.domNode,_54a);dojo.style(this.domNode,"overflow","auto");}this._nodePixelIndent=dojo.marginBox(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["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);},postCreate:function(){this.inherited(arguments);this._splitters={};this._splitterThickness={};},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_54b){var _54c=_54b.region;if(_54c){this.inherited(arguments);dojo.addClass(_54b.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_54c=="leading"){_54c=ltr?"left":"right";}if(_54c=="trailing"){_54c=ltr?"right":"left";}this["_"+_54c]=_54b.domNode;this["_"+_54c+"Widget"]=_54b;if((_54b.splitter||this.gutters)&&!this._splitters[_54c]){var _54d=dojo.getObject(_54b.splitter?this._splitterClass:"dijit.layout._Gutter");var _54e=new _54d({id:_54b.id+"_splitter",container:this,child:_54b,region:_54c,live:this.liveSplitters});_54e.isSplitter=true;this._splitters[_54c]=_54e.domNode;dojo.place(this._splitters[_54c],_54b.domNode,"after");_54e.startup();}_54b.region=_54c;}},_computeSplitterThickness:function(_54f){this._splitterThickness[_54f]=this._splitterThickness[_54f]||dojo.marginBox(this._splitters[_54f])[(/top|bottom/.test(_54f)?"h":"w")];},layout:function(){for(var _550 in this._splitters){this._computeSplitterThickness(_550);}this._layoutChildren();},addChild:function(_551,_552){this.inherited(arguments);if(this._started){this.layout();}},removeChild:function(_553){var _554=_553.region;var _555=this._splitters[_554];if(_555){dijit.byNode(_555).destroy();delete this._splitters[_554];delete this._splitterThickness[_554];}this.inherited(arguments);delete this["_"+_554];delete this["_"+_554+"Widget"];if(this._started){this._layoutChildren();}dojo.removeClass(_553.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_556){return !_556.isSplitter;});},getSplitter:function(_557){var _558=this._splitters[_557];return _558?dijit.byNode(_558):null;},resize:function(_559,_55a){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(_55b,_55c){if(!this._borderBox||!this._borderBox.h){return;}var _55d=(this.design=="sidebar");var _55e=0,_55f=0,_560=0,_561=0;var _562={},_563={},_564={},_565={},_566=(this._center&&this._center.style)||{};var _567=/left|right/.test(_55b);var _568=!_55b||(!_567&&!_55d);var _569=!_55b||(_567&&_55d);if(this._top){_562=(_55b=="top"||_569)&&this._top.style;_55e=_55b=="top"?_55c:dojo.marginBox(this._top).h;}if(this._left){_563=(_55b=="left"||_568)&&this._left.style;_560=_55b=="left"?_55c:dojo.marginBox(this._left).w;}if(this._right){_564=(_55b=="right"||_568)&&this._right.style;_561=_55b=="right"?_55c:dojo.marginBox(this._right).w;}if(this._bottom){_565=(_55b=="bottom"||_569)&&this._bottom.style;_55f=_55b=="bottom"?_55c:dojo.marginBox(this._bottom).h;}var _56a=this._splitters;var _56b=_56a.top,_56c=_56a.bottom,_56d=_56a.left,_56e=_56a.right;var _56f=this._splitterThickness;var _570=_56f.top||0,_571=_56f.left||0,_572=_56f.right||0,_573=_56f.bottom||0;if(_571>50||_572>50){setTimeout(dojo.hitch(this,function(){this._splitterThickness={};for(var _574 in this._splitters){this._computeSplitterThickness(_574);}this._layoutChildren();}),50);return false;}var pe=this.pe;var _575={left:(_55d?_560+_571:0)+pe.l+"px",right:(_55d?_561+_572:0)+pe.r+"px"};if(_56b){dojo.mixin(_56b.style,_575);_56b.style.top=_55e+pe.t+"px";}if(_56c){dojo.mixin(_56c.style,_575);_56c.style.bottom=_55f+pe.b+"px";}_575={top:(_55d?0:_55e+_570)+pe.t+"px",bottom:(_55d?0:_55f+_573)+pe.b+"px"};if(_56d){dojo.mixin(_56d.style,_575);_56d.style.left=_560+pe.l+"px";}if(_56e){dojo.mixin(_56e.style,_575);_56e.style.right=_561+pe.r+"px";}dojo.mixin(_566,{top:pe.t+_55e+_570+"px",left:pe.l+_560+_571+"px",right:pe.r+_561+_572+"px",bottom:pe.b+_55f+_573+"px"});var _576={top:_55d?pe.t+"px":_566.top,bottom:_55d?pe.b+"px":_566.bottom};dojo.mixin(_563,_576);dojo.mixin(_564,_576);_563.left=pe.l+"px";_564.right=pe.r+"px";_562.top=pe.t+"px";_565.bottom=pe.b+"px";if(_55d){_562.left=_565.left=_560+_571+pe.l+"px";_562.right=_565.right=_561+_572+pe.r+"px";}else{_562.left=_565.left=pe.l+"px";_562.right=_565.right=pe.r+"px";}var _577=this._borderBox.h-pe.t-pe.b,_578=_577-(_55e+_570+_55f+_573),_579=_55d?_577:_578;var _57a=this._borderBox.w-pe.l-pe.r,_57b=_57a-(_560+_571+_561+_572),_57c=_55d?_57b:_57a;var dim={top:{w:_57c,h:_55e},bottom:{w:_57c,h:_55f},left:{w:_560,h:_579},right:{w:_561,h:_579},center:{h:_578,w:_57b}};if(_55b){var _57d=this["_"+_55b+"Widget"],mb={};mb[/top|bottom/.test(_55b)?"h":"w"]=_55c;_57d.resize?_57d.resize(mb,dim[_57d.region]):dojo.marginBox(_57d.domNode,mb);}var _57e=dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.some(this.getChildren(),function(_57f){return _57f.domNode.tagName=="TEXTAREA"||_57f.domNode.tagName=="INPUT";});if(_57e){var _580=function(_581,_582,_583){if(_581){(_581.resize?_581.resize(_582,_583):dojo.marginBox(_581.domNode,_582));}};if(_56d){_56d.style.height=_579;}if(_56e){_56e.style.height=_579;}_580(this._leftWidget,{h:_579},dim.left);_580(this._rightWidget,{h:_579},dim.right);if(_56b){_56b.style.width=_57c;}if(_56c){_56c.style.width=_57c;}_580(this._topWidget,{w:_57c},dim.top);_580(this._bottomWidget,{w:_57c},dim.bottom);_580(this._centerWidget,dim.center);}else{var _584=!_55b||(/top|bottom/.test(_55b)&&this.design!="sidebar"),_585=!_55b||(/left|right/.test(_55b)&&this.design=="sidebar"),_586={center:true,left:_584,right:_584,top:_585,bottom:_585};dojo.forEach(this.getChildren(),function(_587){if(_587.resize&&_586[_587.region]){_587.resize(null,dim[_587.region]);}},this);}},destroy:function(){for(var _588 in this._splitters){var _589=this._splitters[_588];dijit.byNode(_589).destroy();dojo.destroy(_589);}delete this._splitters;delete this._splitterThickness;this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",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\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region;if(this.container.persist){var _58a=dojo.cookie(this._cookieName);if(_58a){this.child.domNode.style[this.horizontal?"height":"width"]=_58a;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w",_58b=this.container._splitterThickness[this.region];var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"},_58c=this.container["_"+flip[this.region]];var _58d=dojo.contentBox(this.container.domNode)[dim]-(_58c?dojo.marginBox(_58c)[dim]:0)-20-_58b*2;return Math.min(this.child.maxSize,_58d);},_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");dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Active");if(this.fake){dojo.removeClass(this.fake,"dijitSplitterHover");dojo.removeClass(this.fake,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover");}var _58e=this._factor,max=this._computeMaxSize(),min=this.child.minSize||20,_58f=this.horizontal,axis=_58f?"pageY":"pageX",_590=e[axis],_591=this.domNode.style,dim=_58f?"h":"w",_592=dojo.marginBox(this.child.domNode)[dim],_593=this.region,_594=parseInt(this.domNode.style[_593],10),_595=this._resize,_596=this.child.domNode,_597=dojo.hitch(this.container,this.container._layoutChildren),de=dojo.doc;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_598){var _599=e[axis]-_590,_59a=_58e*_599+_592,_59b=Math.max(Math.min(_59a,max),min);if(_595||_598){_597(_593,_59b);}_591[_593]=_58e*_599+_594+(_59b-_59a)+"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");dojo.removeClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Active");dojo.removeClass(this.domNode,"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 _59c=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _59c?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;case _59c?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _59d=dojo.marginBox(this.child.domNode)[_59c?"h":"w"]+this._factor*tick;this.container._layoutChildren(this.region,Math.max(Math.min(_59d,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\" waiRole=\"presentation\"></div>",postCreate:function(){this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}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;}this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _59e=this.dropDown,_59f=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&&!_59f){if(dojo.hasClass(t,"dijitPopup")){_59f=true;}else{t=t.parentNode;}}if(_59f){t=e.target;if(_59e.onItemClick){var _5a0;while(t&&!(_5a0=dijit.byNode(t))){t=t.parentNode;}if(_5a0&&_5a0.onClick&&_5a0.getParent){_5a0.getParent().onItemClick(_5a0,e);}}return;}}}if(this._opened&&_59e.focus){window.setTimeout(dojo.hitch(_59e,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},_setupDropdown:function(){this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;this._aroundNode=this._aroundNode||this.domNode;this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this._buttonNode,"onkeydown","_onDropDownKeydown");this.connect(this._buttonNode,"onkeyup","_onKey");if(this._setStateClass){this.connect(this,"openDropDown","_setStateClass");this.connect(this,"closeDropDown","_setStateClass");}var _5a1={"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"+_5a1+"ArrowButton");},postCreate:function(){this._setupDropdown();this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onDropDownKeydown:function(e){if(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.keyCode==dojo.keys.SPACE){e.preventDefault();}},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){return;}}if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){this.toggleDropDown();}else{if(d&&!this._opened&&(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.keyCode==dojo.keys.SPACE)){this.toggleDropDown();if(d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_5a2){_5a2();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}this.focus();var _5a3=this.dropDown;if(!_5a3){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _5a4=this.dropDown;var _5a5=_5a4.domNode;var self=this;if(!this._preparedNode){dijit.popup.moveOffScreen(_5a5);this._preparedNode=true;if(_5a5.style.width){this._explicitDDWidth=true;}if(_5a5.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _5a6={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_5a6.width="";}if(!this._explicitDDHeight){_5a6.height="";}dojo.style(_5a5,_5a6);var mb=dojo.marginBox(_5a5);var _5a7=(this.maxHeight&&mb.h>this.maxHeight);dojo.style(_5a5,{overflowX:"hidden",overflowY:_5a7?"auto":"hidden"});if(_5a7){mb.h=this.maxHeight;if("w" in mb){mb.w+=16;}}else{delete mb.h;}delete mb.t;delete mb.l;if(this.forceWidth){mb.w=this.domNode.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,this.domNode.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_5a4.resize)){_5a4.resize(mb);}else{dojo.marginBox(_5a5,mb);}}var _5a8=dijit.popup.open({parent:this,popup:_5a4,around:this._aroundNode,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;self.state="";}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;this.state="Opened";return _5a8;},closeDropDown:function(_5a9){if(this._opened){if(_5a9){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;this.state="";}}});}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\"\r\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\r\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t></span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode",iconClass:{node:"iconNode",type:"class"}}),_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 _5aa=dijit.byNode(node);if(_5aa&&typeof _5aa._onSubmit=="function"){_5aa._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},_fillContent:function(_5ab){if(_5ab&&(!this.params||!("label" in this.params))){this.set("label",_5ab.innerHTML);}},postCreate:function(){dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this.showLabel=val;},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_5ac){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_5ac);},_setLabelAttr:function(_5ad){this.containerNode.innerHTML=this.label=_5ad;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});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\"\r\n\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\r\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\r\n\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\r\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\r\n\t\t\t\tid=\"${id}_label\"\r\n\t\t\t></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\r\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t></span\r\n\t></span\r\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\"\r\n\t\tdojoAttachPoint=\"valueNode\"\r\n/></span>\r\n"),_fillContent:function(){if(this.srcNodeRef){var _5ae=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_5ae[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _5af=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_5af);delete this.dropDownContainer;}dijit.popup.moveOffScreen(this.dropDown.domNode);this.inherited(arguments);},isLoaded:function(){var _5b0=this.dropDown;return (!_5b0.href||_5b0.isLoaded);},loadDropDown:function(){var _5b1=this.dropDown;if(!_5b1){return;}if(!this.isLoaded()){var _5b2=dojo.connect(_5b1,"onLoad",this,function(){dojo.disconnect(_5b2);this.openDropDown();});_5b1.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\"\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\r\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\r\n\t\t\tdojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></div\r\n\t\t></td\r\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\r\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\r\n\t\t\ttitle=\"${optionsTitle}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t\t><td style=\"display:none !important;\"\r\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\r\n\t\t/></td></tr></tbody\r\n></table>\r\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(_5b3){dijit.focus(_5b3=="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(_5b4,_5b5){this.checked=_5b4;dojo.attr(this.focusNode||this.domNode,"checked",_5b4);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_5b4);this._handleOnChange(_5b4,_5b5);},setChecked:function(_5b6){dojo.deprecated("setChecked("+_5b6+") is deprecated. Use set('checked',"+_5b6+") instead.","","2.0");this.set("checked",_5b6);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_5b7){var cls=dojo.getObject(this.buttonWidget);var _5b8=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_5b8.focusNode,"selected","false");this.pane2handles[page.id]=[this.connect(page,"set",function(name,_5b9){var _5ba={title:"label",showTitle:"showLabel",iconClass:"iconClass",closable:"closeButton",tooltip:"title"}[name];if(_5ba){_5b8.set(_5ba,_5b9);}}),this.connect(_5b8,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_5b8,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_5b8,_5b7);this.pane2button[page.id]=_5b8;page.controlButton=_5b8;if(!this._currentChild){_5b8.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_5b8.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page.id],this.disconnect,this);delete this.pane2handles[page.id];var _5bb=this.pane2button[page.id];if(_5bb){this.removeChild(_5bb);delete this.pane2button[page.id];_5bb.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _5bc=this.pane2button[this._currentChild.id];_5bc.set("checked",false);dijit.setWaiState(_5bc.focusNode,"selected","false");_5bc.focusNode.setAttribute("tabIndex","-1");}var _5bd=this.pane2button[page.id];_5bd.set("checked",true);dijit.setWaiState(_5bd.focusNode,"selected","true");this._currentChild=page;_5bd.focusNode.setAttribute("tabIndex","0");var _5be=dijit.byId(this.containerId);dijit.setWaiState(_5be.containerNode,"labelledby",_5bd.id);},onButtonClick:function(page){var _5bf=dijit.byId(this.containerId);_5bf.selectChild(page);},onCloseButtonClick:function(page){var _5c0=dijit.byId(this.containerId);_5c0.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_5c1){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_5c1=!_5c1;}var _5c2=this.getChildren();var _5c3=dojo.indexOf(_5c2,this.pane2button[this._currentChild.id]);var _5c4=_5c1?1:_5c2.length-1;return _5c2[(_5c3+_5c4)%_5c2.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _5c5=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_5c5=false;}break;case k.PAGE_UP:if(e.ctrlKey){_5c5=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_5c5=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_5c5=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_5c5!==null){this.adjacent(_5c5).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",postCreate:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _5c6=this.getChildren();dojo.forEach(_5c6,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_5c6,function(_5c7){if(_5c7.selected){this.selectedChildWidget=_5c7;}return _5c7.selected;},this);}var _5c8=this.selectedChildWidget;if(!_5c8&&_5c6[0]){_5c8=this.selectedChildWidget=_5c6[0];_5c8.selected=true;}dojo.publish(this.id+"-startup",[{children:_5c6,selected:_5c8}]);this.inherited(arguments);},resize:function(){var _5c9=this.selectedChildWidget;if(_5c9&&!this._hasBeenShown){this._hasBeenShown=true;this._showChild(_5c9);}this.inherited(arguments);},_setupChild:function(_5ca){this.inherited(arguments);dojo.removeClass(_5ca.domNode,"dijitVisible");dojo.addClass(_5ca.domNode,"dijitHidden");_5ca.domNode.title="";},addChild:function(_5cb,_5cc){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_5cb,_5cc]);this.layout();if(!this.selectedChildWidget){this.selectChild(_5cb);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _5cd=this.getChildren();if(_5cd.length){this.selectChild(_5cd[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_5ce){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget,_5ce);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}},_transition:function(_5cf,_5d0){if(_5d0){this._hideChild(_5d0);}this._showChild(_5cf);if(_5cf.resize){if(this.doLayout){_5cf.resize(this._containerContentBox||this._contentBox);}else{_5cf.resize();}}},_adjacent:function(_5d1){var _5d2=this.getChildren();var _5d3=dojo.indexOf(_5d2,this.selectedChildWidget);_5d3+=_5d1?1:_5d2.length-1;return _5d2[_5d3%_5d2.length];},forward:function(){this.selectChild(this._adjacent(true),true);},back:function(){this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _5d4=this.getChildren();page.isFirstChild=(page==_5d4[0]);page.isLastChild=(page==_5d4[_5d4.length-1]);page.selected=true;dojo.removeClass(page.domNode,"dijitHidden");dojo.addClass(page.domNode,"dijitVisible");page._onShow();},_hideChild:function(page){page.selected=false;dojo.removeClass(page.domNode,"dijitVisible");dojo.addClass(page.domNode,"dijitHidden");page.onHide();},closeChild:function(page){var _5d5=page.onClose(this,page);if(_5d5){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_5d6){dojo.forEach(this.getChildren(),function(_5d7){this.removeChild(_5d7);_5d7.destroyRecursive(_5d6);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._TabContainerBase"]){dojo._hasResource["dijit.layout._TabContainerBase"]=true;dojo.provide("dijit.layout._TabContainerBase");dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\r\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _5d8=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_5d8;var _5d9=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_5d8},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_5d9);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_5d9[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){this.tablist.resize({w:dojo.contentBox(this.domNode).w});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _5da=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_5da=Math.max(_5da,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_5da+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div waiRole=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\r\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\r\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\r\n        \t<div waiRole=\"presentation\" dojoAttachPoint='focusNode'>\r\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon\" dojoAttachPoint='iconNode' />\r\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\r\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\r\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' waiRole=\"presentation\">\r\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>x</span\r\n\t\t        ></span>\r\n\t\t\t</div>\r\n        </div>\r\n    </div>\r\n</div>\r\n"),scrollOnFocus:false,postMixInProperties:function(){if(!this.iconClass){this.iconClass="dijitTabButtonIcon";}},postCreate:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false);if(this.iconNode.className=="dijitTabButtonIcon"){dojo.style(this.iconNode,"width","1px");}},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this.closeButton=disp;dojo.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _5db=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_5db.itemClose);}var _5db=dojo.i18n.getLocalization("dijit","common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:_5db.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_5dc){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){dojo._hasResource["dijit.layout.ScrollingTabController"]=true;dojo.provide("dijit.layout.ScrollingTabController");dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_menuBtn\" iconClass=\"dijitTabStripMenuIcon\"\r\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=false>&#9660;</div>\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\r\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=false>&#9664;</div>\r\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\r\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\r\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\r\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=false>&#9654;</div>\r\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\r\n\t\t<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'\r\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\r\n\t</div>\r\n</div>\r\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),postCreate:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(n,"tabStrip-disabled");}dojo.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_5dd){this.inherited(arguments);var _5de;if(this.useMenu){var _5df=this.containerId;_5de=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,dir:page.dir,lang:page.lang,onClick:dojo.hitch(this,function(){var _5e0=dijit.byId(_5df);_5e0.selectChild(page);})});this._menuChildren[page.id]=_5de;this._menu.addChild(_5de,_5dd);}this.pane2handles[page.id].push(this.connect(this.pane2button[page.id],"set",function(name,_5e1){if(this._postStartup){if(name=="label"){if(_5de){_5de.set(name,_5e1);}if(this._dim){this.resize(this._dim);}}}}));dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_5e2){var _5e3=this.pane2button[page.id];if(this._selectedTab===_5e3.domNode){this._selectedTab=null;}if(this.useMenu&&page&&page.id&&this._menuChildren[page.id]){this._menu.removeChild(this._menuChildren[page.id]);this._menuChildren[page.id].destroy();delete this._menuChildren[page.id];}this.inherited(arguments);},_initButtons:function(){this._menuChildren={};this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=dojo.marginBox(btn).w;return true;}else{dojo.style(btn,"display","none");return false;}},this);if(this.useMenu){this._menu=new dijit.Menu({id:this.id+"_menu",dir:this.dir,lang:this.lang,targetNodeIds:[this._menuBtn.domNode],leftClickToOpen:true,refocus:false});this._supportingWidgets.push(this._menu);}},_getTabsWidth:function(){var _5e4=this.getChildren();if(_5e4.length){var _5e5=_5e4[this.isLeftToRight()?0:_5e4.length-1].domNode,_5e6=_5e4[this.isLeftToRight()?_5e4.length-1:0].domNode;return _5e6.offsetLeft+dojo.style(_5e6,"width")-_5e5.offsetLeft;}else{return 0;}},_enableBtn:function(_5e7){var _5e8=this._getTabsWidth();_5e7=_5e7||dojo.style(this.scrollNode,"width");return _5e8>0&&_5e7<_5e8;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);var _5e9=this._enableBtn(this._contentBox.w);this._buttons.style("display",_5e9?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;},_getScroll:function(){var sl=(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit){return val;}else{var _5ea=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_5ea);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _5eb=this.getChildren(),_5ec=dojo.style(this.scrollNode,"width"),_5ed=dojo.style(this.containerNode,"width"),_5ee=_5ed-_5ec,_5ef=this._getTabsWidth();if(_5eb.length&&_5ef>_5ec){return {min:this.isLeftToRight()?0:_5eb[_5eb.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_5eb[_5eb.length-1].domNode.offsetLeft+dojo.style(_5eb[_5eb.length-1].domNode,"width"))-_5ec:_5ee};}else{var _5f0=this.isLeftToRight()?0:_5ee;return {min:_5f0,max:_5f0};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_5f1=dojo.style(this.scrollNode,"width"),_5f2=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_5f1/2;pos=Math.min(Math.max(pos,_5f2.min),_5f2.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _5f3=this._getScrollBounds();x=Math.min(Math.max(x,_5f3.min),_5f3.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new dojo._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!dojo.hasClass(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_5f4,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _5f5=dojo.style(this.scrollNode,"width");var d=(_5f5*0.75)*_5f4;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_5f6){var _5f7=this._getScrollBounds();this._leftBtn.set("disabled",_5f6<=_5f7.min);this._rightBtn.set("disabled",_5f6>=_5f7.max);}});dojo.declare("dijit.layout._ScrollingTabControllerButton",dijit.form.Button,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\r\n\t<div waiRole=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\r\n\t\t<div waiRole=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\r\n\t\t\t<img waiRole=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\r\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),tabIndex:"-1"});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_5f8){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_5f9=dojo.getObject(this.controllerWidget);return new _5f9({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_5f8);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}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}\" waiRole=\"presentation\"\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\r\n\t\t\t${!nameAttrSetting} type='${type}'\r\n\t/></div\r\n></div>\r\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.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this.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(_5fa,_5fb,_5fc){var _5fd;if(_5fa!==undefined){_5fd=this.filter(_5fa);if(typeof _5fc!="string"){if(_5fd!==null&&((typeof _5fd!="number")||!isNaN(_5fd))){_5fc=this.filter(this.format(_5fd,this.constraints));}else{_5fc="";}}}if(_5fc!=null&&_5fc!=undefined&&((typeof _5fc)!="number"||!isNaN(_5fc))&&this.textbox.value!=_5fc){this.textbox.value=_5fc;}this._updatePlaceHolder();this.inherited(arguments,[_5fd,_5fb]);},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(_5fe){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_5fe);},_setDisplayedValueAttr:function(_5ff){if(_5ff===null||_5ff===undefined){_5ff="";}else{if(typeof _5ff!="string"){_5ff=String(_5ff);}}this.textbox.value=_5ff;this._setValueAttr(this.get("value"),undefined,_5ff);},format:function(_600,_601){return ((_600==null||_600==undefined)?"":(_600.toString?_600.toString():_600));},parse:function(_602,_603){return _602;},_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 _604=this;setTimeout(function(){_604._handleOnChange(_604.get("value"),false);},0);}this._refreshState();},postCreate:function(){if(dojo.isIE){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _605=this.domNode.getElementsByTagName("INPUT");if(_605){for(var i=0;i<_605.length;i++){_605[i].style.fontFamily=ff;}}}}}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._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 _606;if(dojo.isIE){var _607=dojo.doc.selection.createRange();var _608=_607.parentElement();_606=_608==this.textbox&&_607.text.length==0;}else{_606=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_606){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_609,_60a,stop){var _60b=dojo.global;var _60c=dojo.doc;_609=dojo.byId(_609);if(isNaN(_60a)){_60a=0;}if(isNaN(stop)){stop=_609.value?_609.value.length:0;}dijit.focus(_609);if(_60c["selection"]&&dojo.body()["createTextRange"]){if(_609.createTextRange){var _60d=_609.createTextRange();with(_60d){collapse(true);moveStart("character",-99999);moveStart("character",_60a);moveEnd("character",stop-_60a);select();}}}else{if(_60b["getSelection"]){if(_609.setSelectionRange){_609.setSelectionRange(_60a,stop);}}}};}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\"\r\n\tid=\"widget_${id}\" waiRole=\"presentation\"\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&Chi; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\r\n\t\t\t${!nameAttrSetting} type='${type}'\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_60e){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_60f,_610){return (new RegExp("^(?:"+this.regExpGen(_610)+")"+(this.required?"":"?")+"$")).test(_60f)&&(!this.required||!this._isEmpty(_60f))&&(this._isEmpty(_60f)||this.parse(_60f,_610)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_611){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_612){return /^\s*$/.test(_612);},getErrorMessage:function(_613){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_614){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_615){var _616="";var _617=this.disabled||this.isValid(_615);if(_617){this._maskValidSubsetError=true;}var _618=this._isEmpty(this.textbox.value);var _619=!_617&&!_618&&_615&&this._isValidSubset();this.state=((_617||((!this._hasBeenBlurred||_615)&&_618)||_619)&&this._maskValidSubsetError)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=_615;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_617?"false":"true");if(_615){if(this.state=="Error"){_616=this.getErrorMessage(true);}else{_616=this.getPromptMessage(true);}this._maskValidSubsetError=true;}this.displayMessage(_616);return _617;},_message:"",displayMessage:function(_61a){if(this._message==_61a){return;}this._message=_61a;dijit.hideTooltip(this.domNode);if(_61a){dijit.showTooltip(_61a,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_61b){if(!_61b.locale&&this.lang){_61b.locale=this.lang;}this.constraints=_61b;this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _61c="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_61c+=re;break;case ")":_61c+="|$)";break;default:_61c+="(?:"+re+"|$)";break;}});}try{"".search(_61c);}catch(e){_61c=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_61c+")$";},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(_61d){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_61e){this.required=_61e;dijit.setWaiState(this.focusNode,"required",_61e);this._refreshState();},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,_61f){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+"'":"")+">",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_620,_621){return ("min" in _621?(this.compare(_620,_621.min)>=0):true)&&("max" in _621?(this.compare(_620,_621.max)<=0):true);},isInRange:function(_622){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _623=false;var _624=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_623=(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);_624=(typeof max=="number")&&max>0;}return _623||_624;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_625){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_625));},getErrorMessage:function(_626){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_626)){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(_627){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(_628,_629){dijit.setWaiState(this.focusNode,"valuenow",_628);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,{regExpGen:dojo.date.locale.regexp,datePackage:"dojo.date",compare:dojo.date.compare,format:function(_62a,_62b){if(!_62a){return "";}return this.dateLocaleModule.format(_62a,_62b);},parse:function(_62c,_62d){return this.dateLocaleModule.parse(_62c,_62d)||(this._isEmpty(_62c)?null:undefined);},serialize:function(val,_62e){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_62e);},value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _62f=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_62f,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;},_setConstraintsAttr:function(_630){_630.selector=this._selector;_630.fullYear=true;var _631=dojo.date.stamp.fromISOString;if(typeof _630.min=="string"){_630.min=_631(_630.min);}if(typeof _630.max=="string"){_630.max=_631(_630.max);}this.inherited(arguments,[_630]);},_onFocus:function(evt){this._open();this.inherited(arguments);},_setValueAttr:function(_632,_633,_634){if(_632!==undefined){if(!_632||_632.toString()==dijit.form._DateTimeTextBox.prototype.value.toString()){_632=null;}if(_632 instanceof Date&&!(this.dateClassObj instanceof Date)){_632=new this.dateClassObj(_632);}}this.inherited(arguments,[_632,_633,_634]);if(this._picker){if(!_632){_632=new this.dateClassObj();}this._picker.set("value",_632);}},_open:function(){if(this.disabled||this.readOnly||!this.popupClass){return;}var _635=this;if(!this._picker){var _636=dojo.getObject(this.popupClass,false);this._picker=new _636({onValueSelected:function(_637){if(_635._tabbingAway){delete _635._tabbingAway;}else{_635.focus();}setTimeout(dojo.hitch(_635,"_close"),1);dijit.form._DateTimeTextBox.superclass._setValueAttr.call(_635,_637,true);},id:this.id+"_popup",dir:_635.dir,lang:_635.lang,value:this.get("value")||new this.dateClassObj(),constraints:_635.constraints,datePackage:_635.datePackage,isDisabledDate:function(date){var _638=dojo.date.compare;var _639=_635.constraints;return _639&&((_639.min&&_638(_639.min,date,_635._selector)>0)||(_639.max&&_638(_639.max,date,_635._selector)<0));}});}if(!this._opened){dijit.popup.open({parent:this,popup:this._picker,orient:{"BL":"TL","TL":"BL"},around:this.domNode,onCancel:dojo.hitch(this,this._close),onClose:function(){_635._opened=false;}});this._opened=true;}dojo.marginBox(this._picker.domNode,{w:this.domNode.offsetWidth});},_close:function(){if(this._opened){dijit.popup.close(this._picker);this._opened=false;}},_onBlur:function(){this._close();if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_63a,_63b){this._setValueAttr(this.parse(_63a,this.constraints),_63b,_63a);},destroy:function(){if(this._picker){this._picker.destroy();delete this._picker;}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.focusNode,"onkeypress",this._onKeyPress);this.connect(this.focusNode,"onclick",this._open);},_onKeyPress:function(e){var p=this._picker,dk=dojo.keys;if(p&&this._opened&&p.handleKey){if(p.handleKey(e)===false){return;}}if(this._opened&&e.charOrCode==dk.ESCAPE&&!(e.shiftKey||e.ctrlKey||e.altKey||e.metaKey)){this._close();dojo.stopEvent(e);}else{if(!this._opened&&e.charOrCode==dk.DOWN_ARROW){this._open();dojo.stopEvent(e);}else{if(e.charOrCode===dk.TAB){this._tabbingAway=true;}else{if(this._opened&&(e.keyChar||e.charOrCode===dk.BACKSPACE||e.charOrCode==dk.DELETE)){setTimeout(dojo.hitch(this,function(){if(this._picker&&this._opened){dijit.placeOnScreenAroundElement(p.domNode.parentNode,this.domNode,{"BL":"TL","TL":"BL"},p.orient?dojo.hitch(p,"orient"):null);}}),1);}}}}}});}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\"\r\n\tid=\"widget_${id}\" waiRole=\"presentation\"\r\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\r\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\r\n\t\t\tdojoAttachPoint=\"upArrowNode\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\"\r\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t\t\t\t\t${_buttonInputDisabled}\r\n\t\t\t/></div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\r\n\t\t\tdojoAttachPoint=\"downArrowNode\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\"\r\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t\t\t\t\t${_buttonInputDisabled}\r\n\t\t\t/></div\r\n\t\t></div\r\n\t></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&Chi; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n\t\t\twaiRole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_63c){return val;},_arrowPressed:function(_63d,_63e,_63f){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_63e*_63f),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_640,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(_640==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _641=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_641!==0){var node=this[(_641>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_641,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["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\" waiRole=\"presentation\"\r\n\t><input\r\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\r\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\r\n\t\tdojoAttachPoint=\"focusNode\"\r\n\t \tdojoAttachEvent=\"onclick:_onClick\"\r\n/></div>\r\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_642){this.readOnly=_642;dojo.attr(this.focusNode,"readOnly",_642);dijit.setWaiState(this.focusNode,"readonly",_642);},_setValueAttr:function(_643,_644){if(typeof _643=="string"){this.value=_643;dojo.attr(this.focusNode,"value",_643);_643=true;}if(this._created){this.set("checked",_643,_644);}},_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(_645){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this.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){return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_646){this.inherited(arguments);if(!this._created){return;}if(_646){var _647=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_648){if(_648.name==_647.name&&_648!=_647.focusNode&&_648.form==_647.focusNode.form){var _649=dijit.getEnclosingWidget(_648);if(_649&&_649.checked){_649.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",null,{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/ComboBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\tdojoAttachPoint=\"comboNode\" waiRole=\"combobox\"\r\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\r\n\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown\"\r\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t\t\t${_buttonInputDisabled}\r\n\t/></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&Chi; \" type=\"text\" tabIndex=\"-1\" readOnly waiRole=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\r\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\r\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t/></div\r\n></div>\r\n"),baseClass:"dijitTextBox dijitComboBox",cssStateNodes:{"downArrowNode":"dijitDownArrowButton"},_getCaretPos:function(_64a){var pos=0;if(typeof (_64a.selectionStart)=="number"){pos=_64a.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_64a.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(_64b,_64c){_64c=parseInt(_64c);dijit.selectInputText(_64b,_64c,_64c);},_setDisabledAttr:function(_64d){this.inherited(arguments);dijit.setWaiState(this.comboNode,"disabled",_64d);},_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._onKeyPress({charOrCode:229});}),100);}this.inherited(arguments);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _64e=false;var _64f="_startSearchFromInput";var pw=this._popupWidget;var dk=dojo.keys;var _650=null;this._prev_key_backspace=false;this._abortQuery();if(this._isShowingNow){pw.handleKey(key);_650=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(!this._isShowingNow){_64e=true;_64f="_startSearchAll";}else{this._announceOption(_650);}dojo.stopEvent(evt);break;case dk.ENTER:if(_650){if(_650==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_650==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}evt.preventDefault();case dk.TAB:var _651=this.get("displayedValue");if(pw&&(_651==pw._messages["previousMessage"]||_651==pw._messages["nextMessage"])){break;}if(_650){this._selectOption();}if(this._isShowingNow){this._lastQuery=null;this._hideResultList();}break;case " ":if(_650){dojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_64e=true;}break;case dk.ESCAPE:if(this._isShowingNow){dojo.stopEvent(evt);this._hideResultList();}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_64e=true;break;default:_64e=typeof key=="string"||key==229;}if(_64e){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,_64f),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _652=this.ignoreCase?"toLowerCase":"substr";if(text[_652](0).indexOf(this.focusNode.value[_652](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(_653,_654){this._fetchHandle=null;if(this.disabled||this.readOnly||(_654.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_653.length&&!this._maxOptions){this._hideResultList();return;}_654._maxOptions=this._maxOptions;var _655=this._popupWidget.createOptions(_653,_654,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_654.direction){if(1==_654.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_654.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_654.query[this.searchAttr])){this._announceOption(_655[1]);}}},_showResultList:function(){this._hideResultList();this.displayMessage("");dojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _656=dojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_656.h)&&(best.w==_656.w))?"hidden":"auto";var _657=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_657+=16;}dojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_657,this.domNode.offsetWidth)});if(_657<this.domNode.offsetWidth){this._popupWidget.domNode.parentNode.style.left=dojo.position(this.domNode,true).x+"px";}dijit.setWaiState(this.comboNode,"expanded","true");},_hideResultList:function(){this._abortQuery();if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._isShowingNow=false;dijit.setWaiState(this.comboNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _658=this.get("displayedValue");var pw=this._popupWidget;if(pw&&(_658==pw._messages["previousMessage"]||_658==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_658);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this._hideResultList();this.inherited(arguments);},_setItemAttr:function(item,_659,_65a){if(!_65a){_65a=this.labelFunc(item,this.store);}this.value=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_65a;this.item=item;dijit.form.ComboBox.superclass._setValueAttr.call(this,this.value,_659,_65a);},_announceOption:function(node){if(!node){return;}var _65b;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_65b=node.innerHTML;this.item=undefined;this.value="";}else{_65b=this.labelFunc(node.item,this.store);this.set("item",node.item,false,_65b);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_65b);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this._hideResultList();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_onArrowMouseDown:function(evt){if(this.disabled||this.readOnly){return;}dojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearchAll();}},_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._popupWidget){var _65c=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_65c,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_65c);}var _65d=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_65d[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_65e,_65f){this.searchTimer=null;var _660={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_65e,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_661){_65f._fetchHandle=null;console.error("dijit.form.ComboBox: "+_661);dojo.hitch(_65f,"_hideResultList")();},start:0,count:this.pageSize};dojo.mixin(_660,_65f.fetchProperties);this._fetchHandle=_65f.store.fetch(_660);var _662=function(_663,_664){_663.start+=_663.count*_664;_663.direction=_664;this._fetchHandle=this.store.fetch(_663);};this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_662,this._fetchHandle);},_65d,this),this.searchDelay);},_setMaxOptions:function(size,_665){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},compositionend:function(evt){this._onKeyPress({charOrCode:229});},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _666=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_666);if(!("value" in this.params)){var item=this.store.fetchSelectedItem();if(item){var _667=this._getValueField();this.value=_667!=this.searchAttr?this.store.getValue(item,_667):this.labelFunc(item,this.store);}}}this.inherited(arguments);},postCreate:function(){if(!this.hasDownArrow){this.downArrowNode.style.display="none";}var _668=dojo.query("label[for=\""+this.id+"\"]");if(_668.length){_668[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_668[0].id);}this.inherited(arguments);},uninitialize:function(){if(this._popupWidget&&!this._popupWidget._destroyed){this._hideResultList();this._popupWidget.destroy();}this.inherited(arguments);},_getMenuLabelFromItem:function(item){var _669=this.labelAttr?this.store.getValue(item,this.labelAttr):this.labelFunc(item,this.store);var _66a=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_669=this.doHighlight(_669,this._escapeHtml(this._lastInput));_66a="html";}return {html:_66a=="html",label:_669};},doHighlight:function(_66b,find){var _66c="i"+(this.highlightMatch=="all"?"g":"");var _66d=this._escapeHtml(_66b);find=dojo.regexp.escapeString(find);var ret=_66d.replace(new RegExp("(^|\\s)("+find+")",_66c),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");return ret;},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_66e){return _66e.getValue(item,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' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited(arguments);},_setValueAttr:function(_66f){this.value=_66f;this.onChange(_66f);},onChange:function(_670){},onPage:function(_671){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_672){var _673=_672(item);var _674=dojo.doc.createElement("li");dijit.setWaiRole(_674,"option");if(_673.html){_674.innerHTML=_673.label;}else{_674.appendChild(dojo.doc.createTextNode(_673.label));}if(_674.innerHTML==""){_674.innerHTML="&nbsp;";}_674.item=item;return _674;},createOptions:function(_675,_676,_677){this.previousButton.style.display=(_676.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_675,function(item,i){var _678=this._createOption(item,_677);_678.className="dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl");dojo.attr(_678,"id",this.id+i);this.domNode.insertBefore(_678,this.nextButton);},this);var _679=false;if(_676._maxOptions&&_676._maxOptions!=-1){if((_676.start+_676.count)<_676._maxOptions){_679=true;}else{if((_676.start+_676.count)>_676._maxOptions&&_676.count==_675.length){_679=true;}}}else{if(_676.count==_675.length){_679=true;}}this.nextButton.style.display=_679?"":"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]);}},_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.onPage(-1);}else{if(evt.target==this.nextButton){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 _67a=this.domNode.firstChild;var _67b=_67a.nextSibling;this._focusOptionNode(_67b.style.display=="none"?_67a:_67b);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 _67c=0;var _67d=this.domNode.scrollTop;var _67e=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_67c<_67e){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 _67f=this.domNode.scrollTop;_67c+=(_67f-_67d)*(up?-1:1);_67d=_67f;}},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(key){switch(key){case dojo.keys.DOWN_ARROW:this._highlightNextOption();break;case dojo.keys.PAGE_DOWN:this.pageDown();break;case dojo.keys.UP_ARROW:this._highlightPrevOption();break;case dojo.keys.PAGE_UP:this.pageUp();break;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_680,_681,_682){this.item=null;if(!_680){_680="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_680,_681,_682);}});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,_683,_684){return (_683=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_685){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_686,_687){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _688=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_689=dojo.query("> option",this.root).filter(function(_68a){return (_68a.innerText||_68a.textContent||"").match(_688);});if(args.sort){_689.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_686(_689,args);},close:function(_68b){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.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(_68c){var _68d=typeof _68c.places=="number"?_68c.places:0;if(_68d){_68d++;}if(typeof _68c.max!="number"){_68c.max=9*Math.pow(10,15-_68d);}if(typeof _68c.min!="number"){_68c.min=-9*Math.pow(10,15-_68d);}this.inherited(arguments,[_68c]);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 _68e=this.format(val,this.constraints);if(_68e!==undefined){this.textbox.value=_68e;}}this.inherited(arguments);},format:function(_68f,_690){var _691=String(_68f);if(typeof _68f!="number"){return _691;}if(isNaN(_68f)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_68f,_690))&&_690.exponent!==false&&/\de[-+]?\d/i.test(_691)){return _691;}if(this.editOptions&&this._focused){_690=dojo.mixin({},_690,this.editOptions);}return this._formatter(_68f,_690);},parse:dojo.number.parse,_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_692){return (_692===null||_692===""||_692===undefined)?NaN:this.inherited(arguments);},serialize:function(_693,_694){return (typeof _693!="number"||isNaN(_693))?"":this.inherited(arguments);},_setValueAttr:function(_695,_696,_697){if(_695!==undefined&&_697===undefined){_697=String(_695);if(typeof _695=="number"){if(isNaN(_695)){_697="";}else{if(("rangeCheck" in this&&this.rangeCheck(_695,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_697)){_697=undefined;}}}else{if(!_695){_697="";_695=NaN;}else{_695=undefined;}}}this.inherited(arguments,[_695,_696,_697]);},_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(_698){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],{});}if(!dojo._hasResource["dijit.form.CurrencyTextBox"]){dojo._hasResource["dijit.form.CurrencyTextBox"]=true;dojo.provide("dijit.form.CurrencyTextBox");dojo.declare("dijit.form.CurrencyTextBox",dijit.form.NumberTextBox,{currency:"",baseClass:"dijitTextBox dijitCurrencyTextBox",regExpGen:function(_699){return "("+(this._focused?this.inherited(arguments,[dojo.mixin({},_699,this.editOptions)])+"|":"")+dojo.currency.regexp(_699)+")";},_formatter:dojo.currency.format,parse:function(_69a,_69b){var v=dojo.currency.parse(_69a,_69b);if(isNaN(v)&&/\d+/.test(_69a)){return this.inherited(arguments,[_69a,dojo.mixin({},_69b,this.editOptions)]);}return v;},_setConstraintsAttr:function(_69c){if(!_69c.currency&&this.currency){_69c.currency=this.currency;}this.inherited(arguments,[dojo.currency._mixInDefaults(dojo.mixin(_69c,{exponent:false}))]);}});}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 dijitDateTextBox",popupClass:"dijit.Calendar",_selector:"date",value:new Date("")});}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],{_isvalid:true,required:true,_lastDisplayedValue:"",isValid:function(){return this._isvalid||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_69d,_69e,_69f){if((_69e&&_69e.query[this.searchAttr]!=this._lastQuery)||(!_69e&&_69d.length&&this.store.getIdentity(_69d[0])!=this._lastQuery)){return;}if(!_69d.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_69f||(_69f===undefined&&!this._focused));this._isvalid=false;this.validate(this._focused);this.item=null;}else{this.set("item",_69d[0],_69f);}},_openResultList:function(_6a0,_6a1){if(_6a1.query[this.searchAttr]!=this._lastQuery){return;}if(this.item===undefined){this._isvalid=_6a0.length!=0||this._maxOptions!=0;this.validate(true);}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_6a2,_6a3){if(!this._onChangeActive){_6a3=null;}this._lastQuery=_6a2;if(_6a2===null||_6a2===""){this._setDisplayedValueAttr("",_6a3);return;}var self=this;this.store.fetchItemByIdentity({identity:_6a2,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_6a3);}});},_setItemAttr:function(item,_6a4,_6a5){this._isvalid=true;this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_6a6,_6a7){if(!this._created){_6a7=false;}if(this.store){this._hideResultList();var _6a8=dojo.clone(this.query);this._lastQuery=_6a8[this.searchAttr]=this._getDisplayQueryString(_6a6);this.textbox.value=_6a6;this._lastDisplayedValue=_6a6;var _6a9=this;var _6aa={query:_6a8,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_6ab,_6ac){_6a9._fetchHandle=null;dojo.hitch(_6a9,"_callbackSetLabel")(_6ab,_6ac,_6a7);},onError:function(_6ad){_6a9._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_6ad);dojo.hitch(_6a9,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_6aa,this.fetchProperties);this._fetchHandle=this.store.fetch(_6aa);}},postMixInProperties:function(){this.inherited(arguments);this._isvalid=!this.required;},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},execute:function(_6ae){},onExecute:function(){},_setEncTypeAttr:function(_6af){this.encType=_6af;dojo.attr(this.domNode,"encType",_6af);if(dojo.isIE){this.domNode.encoding=_6af;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.set("encType",item.value);}}this.inherited(arguments);},reset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e?e.target:this.domNode,target:e?e.target:this.domNode};if(!(this.onReset(faux)===false)&&faux.returnValue){this.inherited(arguments,[]);}},onReset:function(e){return true;},_onReset:function(e){this.reset(e);dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.form.HorizontalRule"]){dojo._hasResource["dijit.form.HorizontalRule"]=true;dojo.provide("dijit.form.HorizontalRule");dojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){var _6b0;if(this.count==1){_6b0=this._genHTML(50,0);}else{var i;var _6b1=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_6b0=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_6b0+=this._genHTML(_6b1*i,i);}_6b0+=this._genHTML(100,this.count-1);}else{_6b0=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_6b0+=this._genHTML(100-_6b1*i,i);}_6b0+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_6b0;}});}if(!dojo._hasResource["dijit.form.HorizontalRuleLabels"]){dojo._hasResource["dijit.form.HorizontalRuleLabels"]=true;dojo.provide("dijit.form.HorizontalRuleLabels");dojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><div class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</div></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _6b2=this.labels;if(!_6b2.length){_6b2=dojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_6b2.length&&this.count>1){var _6b3=this.minimum;var inc=(this.maximum-_6b3)/(this.count-1);for(var i=0;i<this.count;i++){_6b2.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":dojo.number.format(_6b3,this.constraints));_6b3+=inc;}}return _6b2;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:dojo.cache("dijit.form","templates/HorizontalSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderH\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"topDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\"\r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n"),value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}this._setValueAttr(this.value,true);},_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,false);break;case dojo.keys.END:this._setValueAttr(this.maximum,false);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _6b4=dojo.position(this.sliderBarContainer,true);var _6b5=e[this._mousePixelCoord]-_6b4[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_6b4[this._pixelCount]-_6b5):_6b5,_6b4[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_6b6,_6b7,_6b8){if(this.disabled||this.readOnly){return;}_6b6=_6b6<0?0:_6b7<_6b6?_6b7:_6b6;var _6b9=this.discreteValues;if(_6b9<=1||_6b9==Infinity){_6b9=_6b7;}_6b9--;var _6ba=_6b7/_6b9;var _6bb=Math.round(_6b6/_6ba);this._setValueAttr((this.maximum-this.minimum)*_6bb/_6b9+this.minimum,_6b8);},_setValueAttr:function(_6bc,_6bd){this.valueNode.value=this.value=_6bc;dijit.setWaiState(this.focusNode,"valuenow",_6bc);this.inherited(arguments);var _6be=(_6bc-this.minimum)/(this.maximum-this.minimum);var _6bf=(this._descending===false)?this.remainingBar:this.progressBar;var _6c0=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_6bd&&this.slideDuration>0&&_6bf.style[this._progressPixelSize]){var _6c1=this;var _6c2={};var _6c3=parseFloat(_6bf.style[this._progressPixelSize]);var _6c4=this.slideDuration*(_6be-_6c3/100);if(_6c4==0){return;}if(_6c4<0){_6c4=0-_6c4;}_6c2[this._progressPixelSize]={start:_6c3,end:_6be*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_6bf,duration:_6c4,onAnimate:function(v){_6c0.style[_6c1._progressPixelSize]=(100-parseFloat(v[_6c1._progressPixelSize]))+"%";},onEnd:function(){delete _6c1._inProgressAnim;},properties:_6c2});this._inProgressAnim.play();}else{_6bf.style[this._progressPixelSize]=(_6be*100)+"%";_6c0.style[this._progressPixelSize]=((1-_6be)*100)+"%";}},_bumpValue:function(_6c5,_6c6){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _6c7=this.discreteValues;if(_6c7<=1||_6c7==Infinity){_6c7=c[this._pixelCount];}_6c7--;var _6c8=(this.value-this.minimum)*_6c7/(this.maximum-this.minimum)+_6c5;if(_6c8<0){_6c8=0;}if(_6c8>_6c7){_6c8=_6c7;}_6c8=_6c8*(this.maximum-this.minimum)/_6c7+this.minimum;this._setValueAttr(_6c8,_6c6);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _6c9=!dojo.isMozilla;var _6ca=evt[(_6c9?"wheelDelta":"detail")]*(_6c9?1:-1);this._bumpValue(_6ca<0?-1:1,true);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_6cb){if(this[_6cb.container]!=this.containerNode){this[_6cb.container].appendChild(_6cb.domNode);}},this);this.inherited(arguments);},_typematicCallback:function(_6cc,_6cd,e){if(_6cc==-1){this._setValueAttr(this.value,true);}else{this[(_6cd==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);}},postCreate:function(){if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _6ce=dojo.declare(dijit.form._SliderMover,{widget:this});this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_6ce});var _6cf=dojo.query("label[for=\""+this.id+"\"]");if(_6cf.length){_6cf[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_6cf[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);this.inherited(arguments);this._layoutHackIE7();},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this._supportingWidgets=dijit.findWidgets(this.domNode);this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _6d0=this.widget;var _6d1=_6d0._abspos;if(!_6d1){_6d1=_6d0._abspos=dojo.position(_6d0.sliderBarContainer,true);_6d0._setPixelValue_=dojo.hitch(_6d0,"_setPixelValue");_6d0._isReversed_=_6d0._isReversed();}var _6d2=e[_6d0._mousePixelCoord]-_6d1[_6d0._startingPixelCoord];_6d0._setPixelValue_(_6d0._isReversed_?(_6d1[_6d0._pixelCount]-_6d2):_6d2,_6d1[_6d0._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _6d3=this.widget;_6d3._abspos=null;_6d3._setValueAttr(_6d3.value,true);}});}if(!dojo._hasResource["dijit.form.MultiSelect"]){dojo._hasResource["dijit.form.MultiSelect"]=true;dojo.provide("dijit.form.MultiSelect");dojo.declare("dijit.form.MultiSelect",dijit.form._FormValueWidget,{size:7,templateString:"<select multiple='true' ${!nameAttrSetting} dojoAttachPoint='containerNode,focusNode' dojoAttachEvent='onchange: _onChange'></select>",attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{size:"focusNode"}),reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},addSelected:function(_6d4){_6d4.getSelected().forEach(function(n){this.containerNode.appendChild(n);this.domNode.scrollTop=this.domNode.offsetHeight;var _6d5=_6d4.domNode.scrollTop;_6d4.domNode.scrollTop=0;_6d4.domNode.scrollTop=_6d5;},this);},getSelected:function(){return dojo.query("option",this.containerNode).filter(function(n){return n.selected;});},_getValueAttr:function(){return this.getSelected().map(function(n){return n.value;});},multiple:true,_setValueAttr:function(_6d6){dojo.query("option",this.containerNode).forEach(function(n){n.selected=(dojo.indexOf(_6d6,n.value)!=-1);});},invertSelection:function(_6d7){dojo.query("option",this.containerNode).forEach(function(n){n.selected=!n.selected;});this._handleOnChange(this.get("value"),_6d7==true);},_onChange:function(e){this._handleOnChange(this.get("value"),true);},resize:function(size){if(size){dojo.marginBox(this.domNode,size);}},postCreate:function(){this._onChange();}});}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,_6d8){var tc=this.constraints,v=isNaN(val),_6d9=!isNaN(tc.max),_6da=!isNaN(tc.min);if(v&&_6d8!=0){val=(_6d8>0)?_6da?tc.min:_6d9?tc.max:0:_6d9?this.constraints.max:_6da?tc.min:0;}var _6db=val+_6d8;if(v||isNaN(_6db)){return val;}if(_6d9&&(_6db>tc.max)){_6db=tc.max;}if(_6da&&(_6db<tc.min)){_6db=tc.min;}return _6db;},_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 _6dc=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _6dc=="number"){this._setValueAttr(_6dc,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);},filter:function(_6dd){if(_6dd){_6dd=_6dd.replace(/\r/g,"");}return this.inherited(arguments);},postCreate:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.textbox,"dijitTextAreaCols");}},_previousValue:"",_onInput:function(e){if(this.maxLength){var _6de=parseInt(this.maxLength);var _6df=this.textbox.value.replace(/\r/g,"");var _6e0=_6df.length-_6de;if(_6e0>0){if(e){dojo.stopEvent(e);}var _6e1=this.textbox;if(_6e1.selectionStart){var pos=_6e1.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_6df.substring(0,pos-_6e0-cr)+_6df.substring(pos-cr);_6e1.setSelectionRange(pos-_6e0,pos-_6e0);}else{if(dojo.doc.selection){_6e1.focus();var _6e2=dojo.doc.selection.createRange();_6e2.moveStart("character",-_6e0);_6e2.text="";_6e2.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}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,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeight:function(_6e3){var newH=_6e3.scrollHeight;if(dojo.isIE){newH+=_6e3.offsetHeight-_6e3.clientHeight-((dojo.isIE<8&&this._strictMode)?dojo._getPadBorderExtents(_6e3).h:0);}else{if(dojo.isMoz){newH+=_6e3.offsetHeight-_6e3.clientHeight;}else{if(dojo.isWebKit&&!(dojo.isSafari<4)){newH+=dojo._getBorderExtents(_6e3).h;}else{newH+=dojo._getPadBorderExtents(_6e3).h;}}}return newH;},_estimateHeight:function(_6e4){_6e4.style.maxHeight="";_6e4.style.height="auto";_6e4.rows=(_6e4.value.match(/\n/g)||[]).length+1;},_needsHelpShrinking:dojo.isMoz||dojo.isWebKit,_onInput:function(){this.inherited(arguments);if(this._busyResizing){return;}this._busyResizing=true;var _6e5=this.textbox;if(_6e5.scrollHeight&&_6e5.offsetHeight&&_6e5.clientHeight){var newH=this._getHeight(_6e5)+"px";if(_6e5.style.height!=newH){_6e5.style.maxHeight=_6e5.style.height=newH;}if(this._needsHelpShrinking){if(this._setTimeoutHandle){clearTimeout(this._setTimeoutHandle);}this._setTimeoutHandle=setTimeout(dojo.hitch(this,"_shrink"),0);}}else{this._estimateHeight(_6e5);}this._busyResizing=false;},_busyResizing:false,_shrink:function(){this._setTimeoutHandle=null;if(this._needsHelpShrinking&&!this._busyResizing){this._busyResizing=true;var _6e6=this.textbox;var _6e7=false;if(_6e6.value==""){_6e6.value=" ";_6e7=true;}var _6e8=_6e6.scrollHeight;if(!_6e8){this._estimateHeight(_6e6);}else{var _6e9=_6e6.style.paddingBottom;var _6ea=dojo._getPadExtents(_6e6);_6ea=_6ea.h-_6ea.t;_6e6.style.paddingBottom=_6ea+1+"px";var newH=this._getHeight(_6e6)-1+"px";if(_6e6.style.maxHeight!=newH){_6e6.style.paddingBottom=_6ea+_6e8+"px";_6e6.scrollTop=0;_6e6.style.maxHeight=this._getHeight(_6e6)-_6e8+"px";}_6e6.style.paddingBottom=_6e9;}if(_6e7){_6e6.value="";}this._busyResizing=false;}},resize:function(){this._onInput();},_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});this.connect(this.textbox,"onscroll",this._onInput);this.connect(this.textbox,"onresize",this._onInput);this.connect(this.textbox,"onfocus",this._onInput);this._setTimeoutHandle=setTimeout(dojo.hitch(this,"resize"),0);},uninitialize:function(){if(this._setTimeoutHandle){clearTimeout(this._setTimeoutHandle);}this.inherited(arguments);}});}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 dijitTimeTextBox",popupClass:"dijit._TimePicker",_selector:"time",value:new Date("")});}if(!dojo._hasResource["dijit._PaletteMixin"]){dojo._hasResource["dijit._PaletteMixin"]=true;dojo.provide("dijit._PaletteMixin");dojo.declare("dijit._PaletteMixin",[dijit._CssStateMixin],{defaultTimeout:500,timeoutChangeRate:0.9,value:null,_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:"",_preparePalette:function(_6eb,_6ec){this._cells=[];var url=this._blankGif;var _6ed=dojo.getObject(this.dyeClass);for(var row=0;row<_6eb.length;row++){var _6ee=dojo.create("tr",{tabIndex:"-1"},this.gridNode);for(var col=0;col<_6eb[row].length;col++){var _6ef=_6eb[row][col];if(_6ef){var _6f0=new _6ed(_6ef);var _6f1=dojo.create("td",{"class":this.cellClass,tabIndex:"-1",title:_6ec[_6ef]});_6f0.fillCell(_6f1,url);this.connect(_6f1,"ondijitclick","_onCellClick");this._trackMouseState(_6f1,this.cellClass);dojo.place(_6f1,_6ee);_6f1.index=this._cells.length;this._cells.push({node:_6f1,dye:_6f0});}}}this._xDim=_6eb[0].length;this._yDim=_6eb.length;var _6f2={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1};for(var key in _6f2){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:dojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _6f3=_6f2[key];return function(_6f4){this._navigateByKey(_6f3,_6f4);};}(),this.timeoutChangeRate,this.defaultTimeout));}},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node);},focus:function(){dijit.focus(this._currentFocus);},_onCellClick:function(evt){var _6f5=evt.currentTarget,_6f6=this._getDye(_6f5).getValue();this._setCurrent(_6f5);setTimeout(dojo.hitch(this,function(){dijit.focus(_6f5);this._setValueAttr(_6f6,true);}));dojo.removeClass(_6f5,"dijitPaletteCellHover");dojo.stopEvent(evt);},_setCurrent:function(node){if("_currentFocus" in this){dojo.attr(this._currentFocus,"tabIndex","-1");}this._currentFocus=node;if(node){dojo.attr(node,"tabIndex",this.tabIndex);}},_setValueAttr:function(_6f7,_6f8){this.value=null;if(this._selectedCell>=0){dojo.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");}this._selectedCell=-1;if(_6f7){for(var i=0;i<this._cells.length;i++){if(_6f7==this._cells[i].dye.getValue()){this._selectedCell=i;this.value=_6f7;dojo.addClass(this._cells[i].node,"dijitPaletteCellSelected");if(_6f8||_6f8===undefined){this.onChange(_6f7);}break;}}}},onChange:function(_6f9){},_navigateByKey:function(_6fa,_6fb){if(_6fb==-1){return;}var _6fc=this._currentFocus.index+_6fa;if(_6fc<this._cells.length&&_6fc>-1){var _6fd=this._cells[_6fc].node;this._setCurrent(_6fd);setTimeout(dojo.hitch(dijit,"focus",_6fd),0);}},_getDye:function(cell){return this._cells[cell.index].dye;}});}if(!dojo._hasResource["dijit.ColorPalette"]){dojo._hasResource["dijit.ColorPalette"]=true;dojo.provide("dijit.ColorPalette");dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated,dijit._PaletteMixin],{palette:"7x10",_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png"),"7x10-rtl":dojo.moduleUrl("dijit.themes","a11y/colors7x10-rtl.png"),"3x4-rtl":dojo.moduleUrl("dijit.themes","a11y/colors3x4-rtl.png")},templateString:dojo.cache("dijit","templates/ColorPalette.html","<div class=\"dijitInline dijitColorPalette\">\r\n\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\" alt=\"\"/>\r\n\t<table class=\"dijitPaletteTable\" cellSpacing=\"0\" cellPadding=\"0\">\r\n\t\t<tbody dojoAttachPoint=\"gridNode\"></tbody>\r\n\t</table>\r\n</div>\r\n"),baseClass:"dijitColorPalette",dyeClass:"dijit._Color",buildRendering:function(){this.inherited(arguments);this.imageNode.setAttribute("src",this._imagePaths[this.palette+(this.isLeftToRight()?"":"-rtl")].toString());var _6fe=dojo.i18n.getLocalization("dojo","colors",this.lang);this._preparePalette(this._palettes[this.palette],_6fe);}});dojo.declare("dijit._Color",dojo.Color,{constructor:function(_6ff){this._alias=_6ff;this.setColor(dojo.Color.named[_6ff]);},getValue:function(){return this.toHex();},fillCell:function(cell,_700){dojo.create("img",{src:_700,"class":"dijitPaletteImg",alt:this._alias},cell);}});}if(!dojo._hasResource["dijit._editor._Plugin"]){dojo._hasResource["dijit._editor._Plugin"]=true;dojo.provide("dijit._editor._Plugin");dojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){this.params=args||{};dojo.mixin(this,this.params);this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,command:"",useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(){if(this.command.length){var _701=this.getLabel(this.command),_702=this.editor,_703=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){var _704=dojo.mixin({label:_701,dir:_702.dir,lang:_702.lang,showLabel:false,iconClass:_703,dropDown:this.dropDown,tabIndex:"-1"},this.params||{});this.button=new this.buttonClass(_704);}}},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);if(this.dropDown){this.dropDown.destroyRecursive();}},connect:function(o,f,tf){this._connects.push(dojo.connect(o,f,this,tf));},updateState:function(){var e=this.editor,c=this.command,_705,_706;if(!e||!e.isLoaded||!c.length){return;}if(this.button){try{_706=e.queryCommandEnabled(c);if(this.enabled!==_706){this.enabled=_706;this.button.set("disabled",!_706);}if(typeof this.button.checked=="boolean"){_705=e.queryCommandState(c);if(this.checked!==_705){this.checked=_705;this.button.set("checked",e.queryCommandState(c));}}}catch(e){console.log(e);}}},setEditor:function(_707){this.editor=_707;this._initButton();if(this.button&&this.useDefaultCommand){if(this.editor.queryCommandAvailable(this.command)){this.connect(this.button,"onClick",dojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}else{this.button.domNode.style.display="none";}}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_708){if(this.button){_708.addChild(this.button);}}});}if(!dojo._hasResource["dijit._editor.html"]){dojo._hasResource["dijit._editor.html"]=true;dojo.provide("dijit._editor.html");dijit._editor.escapeXml=function(str,_709){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_709){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _70a;switch(node.nodeType){case 1:var _70b=node.nodeName.toLowerCase();if(!_70b||_70b.charAt(0)=="/"){return "";}_70a="<"+_70b;var _70c=[];var attr;if(dojo.isIE&&node.outerHTML){var s=node.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/(\b\w+)\s?=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_70c.push([key,node.getAttribute("_djrealurl")]);continue;}}var val,_70d;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;case "width":if(_70b==="img"){_70d=/width=(\S+)/i.exec(s);if(_70d){val=_70d[1];}break;}case "height":if(_70b==="img"){_70d=/height=(\S+)/i.exec(s);if(_70d){val=_70d[1];}break;}default:val=node.getAttribute(key);}if(val!=null){_70c.push([key,val.toString()]);}}}}else{var i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_70c.push([n,v]);}}}_70c.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_70c[j++])){_70a+=" "+attr[0]+"=\""+(dojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(_70b==="script"){_70a+=">"+node.innerHTML+"</"+_70b+">";}else{if(node.childNodes.length){_70a+=">"+dijit._editor.getChildrenHtml(node)+"</"+_70b+">";}else{switch(_70b){case "br":case "hr":case "img":case "input":case "base":case "meta":case "area":case "basefont":_70a+=" />";break;default:_70a+="></"+_70b+">";}}}break;case 4:case 3:_70a=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_70a="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_70a="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _70a;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _70e=dom["childNodes"]||dom;var _70f=!dojo.isIE||_70e!==dom;var node,i=0;while((node=_70e[i++])){if(!_70f||node.parentNode==dom){out+=dijit._editor.getNodeHtml(node);}}return out;};}if(!dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){dojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;dojo.provide("dijit._editor.plugins.EnterKeyHandling");dojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){dojo.mixin(this,args);}},setEditor:function(_710){this.editor=_710;if(this.blockNodeForEnter=="BR"){if(dojo.isIE){_710.contentDomPreFilters.push(dojo.hitch(this,"regularPsToSingleLinePs"));_710.contentDomPostFilters.push(dojo.hitch(this,"singleLinePsToRegularPs"));_710.onLoadDeferred.addCallback(dojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_710.onLoadDeferred.addCallback(dojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){dojo["require"]("dijit._editor.range");var h=dojo.hitch(this,this.handleEnterKey);_710.addKeyHandler(13,0,0,h);_710.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},onKeyPressed:function(e){if(this._checkListLater){if(dojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _711=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_711){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _712=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_712){_712.innerHTML=this.bogusHtmlContent;if(dojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{console.error("onKeyPressed: Cannot find the new block node");}}else{if(dojo.isMoz){if(_711.parentNode.parentNode.nodeName=="LI"){_711=_711.parentNode.parentNode;}}var fc=_711.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_711.insertBefore(fc.ownerDocument.createTextNode(" "),fc);var _713=dijit.range.create(this.editor.window);_713.setStart(_711.firstChild,0);var _714=dijit.range.getSelection(this.editor.window,true);_714.removeAllRanges();_714.addRange(_713);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){var _715,_716,_717,doc=this.editor.document,br;if(e.shiftKey){var _718=dojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _719=dijit.range.getAncestor(_718,this.blockNodes);if(_719){if(!e.shiftKey&&_719.tagName=="LI"){return true;}_715=dijit.range.getSelection(this.editor.window);_716=_715.getRangeAt(0);if(!_716.collapsed){_716.deleteContents();_715=dijit.range.getSelection(this.editor.window);_716=_715.getRangeAt(0);}if(dijit.range.atBeginningOfContainer(_719,_716.startContainer,_716.startOffset)){if(e.shiftKey){br=doc.createElement("br");_717=dijit.range.create(this.editor.window);_719.insertBefore(br,_719.firstChild);_717.setStartBefore(br.nextSibling);_715.removeAllRanges();_715.addRange(_717);}else{dojo.place(br,_719,"before");}}else{if(dijit.range.atEndOfContainer(_719,_716.startContainer,_716.startOffset)){_717=dijit.range.create(this.editor.window);br=doc.createElement("br");if(e.shiftKey){_719.appendChild(br);_719.appendChild(doc.createTextNode(" "));_717.setStart(_719.lastChild,0);}else{dojo.place(br,_719,"after");_717.setStartAfter(_719);}_715.removeAllRanges();_715.addRange(_717);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _71a=true;_715=dijit.range.getSelection(this.editor.window);_716=_715.getRangeAt(0);if(!_716.collapsed){_716.deleteContents();_715=dijit.range.getSelection(this.editor.window);_716=_715.getRangeAt(0);}var _71b=dijit.range.getBlockAncestor(_716.endContainer,null,this.editor.editNode);var _71c=_71b.blockNode;if((this._checkListLater=(_71c&&(_71c.nodeName=="LI"||_71c.parentNode.nodeName=="LI")))){if(dojo.isMoz){this._pressedEnterInBlock=_71c;}if(/^(\s|&nbsp;|\xA0|<span\b[^>]*\bclass=['"]Apple-style-span['"][^>]*>(\s|&nbsp;|\xA0)<\/span>)?(<br>)?$/.test(_71c.innerHTML)){_71c.innerHTML="";if(dojo.isWebKit){_717=dijit.range.create(this.editor.window);_717.setStart(_71c,0);_715.removeAllRanges();_715.addRange(_717);}this._checkListLater=false;}return true;}if(!_71b.blockNode||_71b.blockNode===this.editor.editNode){try{dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);}catch(e2){}_71b={blockNode:dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_71b.blockNode){if(_71b.blockNode!=this.editor.editNode&&(!(_71b.blockNode.textContent||_71b.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length)){this.removeTrailingBr(_71b.blockNode);return false;}}else{_71b.blockNode=this.editor.editNode;}_715=dijit.range.getSelection(this.editor.window);_716=_715.getRangeAt(0);}var _71d=doc.createElement(this.blockNodeForEnter);_71d.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_71b.blockNode);if(dijit.range.atEndOfContainer(_71b.blockNode,_716.endContainer,_716.endOffset)){if(_71b.blockNode===_71b.blockContainer){_71b.blockNode.appendChild(_71d);}else{dojo.place(_71d,_71b.blockNode,"after");}_71a=false;_717=dijit.range.create(this.editor.window);_717.setStart(_71d,0);_715.removeAllRanges();_715.addRange(_717);if(this.editor.height){dojo.window.scrollIntoView(_71d);}}else{if(dijit.range.atBeginningOfContainer(_71b.blockNode,_716.startContainer,_716.startOffset)){dojo.place(_71d,_71b.blockNode,_71b.blockNode===_71b.blockContainer?"first":"before");if(_71d.nextSibling&&this.editor.height){_717=dijit.range.create(this.editor.window);_717.setStart(_71d.nextSibling,0);_715.removeAllRanges();_715.addRange(_717);dojo.window.scrollIntoView(_71d.nextSibling);}_71a=false;}else{if(_71b.blockNode===_71b.blockContainer){_71b.blockNode.appendChild(_71d);}else{dojo.place(_71d,_71b.blockNode,"after");}_71a=false;if(_71b.blockNode.style){if(_71d.style){if(_71b.blockNode.style.cssText){_71d.style.cssText=_71b.blockNode.style.cssText;}}}var rs=_716.startContainer;if(rs&&rs.nodeType==3){var _71e,_71f;var txt=rs.nodeValue;var _720=doc.createTextNode(txt.substring(0,_716.startOffset));var _721=doc.createTextNode(txt.substring(_716.startOffset,txt.length));dojo.place(_720,rs,"before");dojo.place(_721,rs,"after");dojo.destroy(rs);var _722=_720.parentNode;while(_722!==_71b.blockNode){var tg=_722.tagName;var _723=doc.createElement(tg);if(_722.style){if(_723.style){if(_722.style.cssText){_723.style.cssText=_722.style.cssText;}}}_71e=_721;while(_71e){_71f=_71e.nextSibling;_723.appendChild(_71e);_71e=_71f;}dojo.place(_723,_722,"after");_720=_722;_721=_723;_722=_722.parentNode;}_71e=_721;if(_71e.nodeType==1||(_71e.nodeType==3&&_71e.nodeValue)){_71d.innerHTML="";}while(_71e){_71f=_71e.nextSibling;_71d.appendChild(_71e);_71e=_71f;}}_717=dijit.range.create(this.editor.window);_717.setStart(_71d,0);_715.removeAllRanges();_715.addRange(_717);if(this.editor.height){dijit.scrollIntoView(_71d);}if(dojo.isMoz){this._pressedEnterInBlock=_71b.blockNode;}}}return _71a;},removeTrailingBr:function(_724){var para=/P|DIV|LI/i.test(_724.tagName)?_724:dijit._editor.selection.getParentOfType(_724,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||para.lastChild.tagName=="BR"){dojo.destroy(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){var doc=this.editor.document;if(doc.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _725=dojo.create("style",{type:"text/css"},doc.getElementsByTagName("head")[0]);_725.styleSheet.cssText="p{margin:0;}";this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;}return d;},regularPsToSingleLinePs:function(_726,_727){function _728(el){function _729(_72a){var newP=_72a[0].ownerDocument.createElement("p");_72a[0].parentNode.insertBefore(newP,_72a[0]);dojo.forEach(_72a,function(node){newP.appendChild(node);});};var _72b=0;var _72c=[];var _72d;while(_72b<el.childNodes.length){_72d=el.childNodes[_72b];if(_72d.nodeType==3||(_72d.nodeType==1&&_72d.nodeName!="BR"&&dojo.style(_72d,"display")!="block")){_72c.push(_72d);}else{var _72e=_72d.nextSibling;if(_72c.length){_729(_72c);_72b=(_72b+1)-_72c.length;if(_72d.nodeName=="BR"){dojo.destroy(_72d);}}_72c=[];}_72b++;}if(_72c.length){_729(_72c);}};function _72f(el){var _730=null;var _731=[];var _732=el.childNodes.length-1;for(var i=_732;i>=0;i--){_730=el.childNodes[i];if(_730.nodeName=="BR"){var newP=_730.ownerDocument.createElement("p");dojo.place(newP,el,"after");if(_731.length==0&&i!=_732){newP.innerHTML="&nbsp;";}dojo.forEach(_731,function(node){newP.appendChild(node);});dojo.destroy(_730);_731=[];}else{_731.unshift(_730);}}};var _733=[];var ps=_726.getElementsByTagName("p");dojo.forEach(ps,function(p){_733.push(p);});dojo.forEach(_733,function(p){var _734=p.previousSibling;if((_734)&&(_734.nodeType==1)&&(_734.nodeName=="P"||dojo.style(_734,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_727?"":"&nbsp;";}_72f(p);},this.editor);_728(_726);return _726;},singleLinePsToRegularPs:function(_735){function _736(node){var ps=node.getElementsByTagName("p");var _737=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _738=false;for(var k=0;k<_737.length;k++){if(_737[k]===p.parentNode){_738=true;break;}}if(!_738){_737.push(p.parentNode);}}return _737;};function _739(node){return (!node.childNodes.length||node.innerHTML=="&nbsp;");};var _73a=_736(_735);for(var i=0;i<_73a.length;i++){var _73b=_73a[i];var _73c=null;var node=_73b.firstChild;var _73d=null;while(node){if(node.nodeType!=1||node.tagName!="P"||(node.getAttributeNode("style")||{}).specified){_73c=null;}else{if(_739(node)){_73d=node;_73c=null;}else{if(_73c==null){_73c=node;}else{if((!_73c.lastChild||_73c.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_73c.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_73c.appendChild(node.firstChild);}_73d=node;}}}node=node.nextSibling;if(_73d){dojo.destroy(_73d);_73d=null;}}}return _735;}});}if(!dojo._hasResource["dijit._editor.range"]){dojo._hasResource["dijit._editor.range"]=true;dojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_73e){var ret=[],retR=[];var stop=_73e;var _73f=node;var _740,n;while(node!=stop){var i=0;_740=node.parentNode;while((n=_740.childNodes[i++])){if(n===node){--i;break;}}ret.unshift(i);retR.unshift(i-_740.childNodes.length);node=_740;}if(ret.length>0&&_73f.nodeType==3){n=_73f.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_73f.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_741,_742){if(!dojo.isArray(_741)||_741.length==0){return _742;}var node=_742;dojo.every(_741,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;return false;}return true;});return node;};dijit.range.getCommonAncestor=function(n1,n2,root){root=root||n1.ownerDocument.body;var _743=function(n){var as=[];while(n){as.unshift(n);if(n!==root){n=n.parentNode;}else{break;}}return as;};var n1as=_743(n1);var n2as=_743(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};dijit.range.getAncestor=function(node,_744,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_744.test(name)){return node;}node=node.parentNode;}return null;};dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;dijit.range.getBlockAncestor=function(node,_745,root){root=root||node.ownerDocument.body;_745=_745||dijit.range.BlockTagNames;var _746=null,_747;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_746&&_745.test(name)){_746=node;}if(!_747&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_747=node;}node=node.parentNode;}return {blockNode:_746,blockContainer:_747||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_748,node,_749){var _74a=false;var _74b=(_749==0);if(!_74b&&node.nodeType==3){if(/^[\s\xA0]+$/.test(node.nodeValue.substr(0,_749))){_74b=true;}}if(_74b){var _74c=node;_74a=true;while(_74c&&_74c!==_748){if(_74c.previousSibling){_74a=false;break;}_74c=_74c.parentNode;}}return _74a;};dijit.range.atEndOfContainer=function(_74d,node,_74e){var _74f=false;var _750=(_74e==(node.length||node.childNodes.length));if(!_750&&node.nodeType==3){if(/^[\s\xA0]+$/.test(node.nodeValue.substr(_74e))){_750=true;}}if(_750){var _751=node;_74f=true;while(_751&&_751!==_74d){if(_751.nextSibling){_74f=false;break;}_751=_751.parentNode;}}return _74f;};dijit.range.adjacentNoneTextNode=function(_752,next){var node=_752;var len=(0-_752.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};dijit.range._w3c=Boolean(window["getSelection"]);dijit.range.create=function(win){if(dijit.range._w3c){return (win||dojo.global).document.createRange();}else{return new dijit.range.W3CRange;}};dijit.range.getSelection=function(win,_753){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_753){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_754){this._ranges.push(r);if(!_754){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _755=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));}else{return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_755();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_756){var _757=_756.item(0),_758=_756.item(_756.length-1);var _759=_757.parentNode,_75a=_758.parentNode;var _75b=dijit.range.getIndex(_757,_759).o;var _75c=dijit.range.getIndex(_758,_75a).o+1;return [_759,_75b,_75a,_75c];},getEndPoint:function(_75d,end){var _75e=_75d.duplicate();_75e.collapse(!end);var _75f="EndTo"+(end?"End":"Start");var _760=_75e.parentElement();var _761,_762,_763;if(_760.childNodes.length>0){dojo.every(_760.childNodes,function(node,i){var _764;if(node.nodeType!=3){_75e.moveToElementText(node);if(_75e.compareEndPoints(_75f,_75d)>0){if(_763&&_763.nodeType==3){_761=_763;_764=true;}else{_761=_760;_762=i;return false;}}else{if(i==_760.childNodes.length-1){_761=_760;_762=_760.childNodes.length;return false;}}}else{if(i==_760.childNodes.length-1){_761=node;_764=true;}}if(_764&&_761){var _765=dijit.range.adjacentNoneTextNode(_761)[0];if(_765){_761=_765.nextSibling;}else{_761=_760.firstChild;}var _766=dijit.range.adjacentNoneTextNode(_761);_765=_766[0];var _767=_766[1];if(_765){_75e.moveToElementText(_765);_75e.collapse(false);}else{_75e.moveToElementText(_760);}_75e.setEndPoint(_75f,_75d);_762=_75e.text.length-_767;return false;}_763=node;return true;});}else{_761=_760;_762=0;}if(!end&&_761.nodeType==1&&_762==_761.childNodes.length){var _768=_761.nextSibling;if(_768&&_768.nodeType==3){_761=_768;_762=0;}}return [_761,_762];},setEndPoint:function(_769,_76a,_76b){var _76c=_769.duplicate(),node,len;if(_76a.nodeType!=3){if(_76b>0){node=_76a.childNodes[_76b-1];if(node){if(node.nodeType==3){_76a=node;_76b=node.length;}else{if(node.nextSibling&&node.nextSibling.nodeType==3){_76a=node.nextSibling;_76b=0;}else{_76c.moveToElementText(node.nextSibling?node:_76a);var _76d=node.parentNode;var _76e=_76d.insertBefore(node.ownerDocument.createTextNode(" "),node.nextSibling);_76c.collapse(false);_76d.removeChild(_76e);}}}}else{_76c.moveToElementText(_76a);_76c.collapse(true);}}if(_76a.nodeType==3){var _76f=dijit.range.adjacentNoneTextNode(_76a);var _770=_76f[0];len=_76f[1];if(_770){_76c.moveToElementText(_770);_76c.collapse(false);if(_770.contentEditable!="inherit"){len++;}}else{_76c.moveToElementText(_76a.parentNode);_76c.collapse(true);}_76b+=len;if(_76b>0){if(_76c.move("character",_76b)!=_76b){console.error("Error when moving!");}}}return _76c;},decomposeTextRange:function(_771){var _772=dijit.range.ie.getEndPoint(_771);var _773=_772[0],_774=_772[1];var _775=_772[0],_776=_772[1];if(_771.htmlText.length){if(_771.htmlText==_771.text){_776=_774+_771.text.length;}else{_772=dijit.range.ie.getEndPoint(_771,true);_775=_772[0],_776=_772[1];}}return [_773,_774,_775,_776];},setRange:function(_777,_778,_779,_77a,_77b,_77c){var _77d=dijit.range.ie.setEndPoint(_777,_778,_779);_777.setEndPoint("StartToStart",_77d);if(!_77c){var end=dijit.range.ie.setEndPoint(_777,_77a,_77b);}_777.setEndPoint("EndToEnd",end||_77d);return _777;}};dojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0],arguments[0][1]);this.setEnd(arguments[0][2],arguments[0][3]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_77e){_77e=parseInt(_77e);if(this.startContainer===node&&this.startOffset==_77e){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_77e;if(!this.endContainer){this.setEnd(node,_77e);}else{this._updateInternal();}},setEnd:function(node,_77f){_77f=parseInt(_77f);if(this.endContainer===node&&this.endOffset==_77f){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_77f;if(!this.startContainer){this.setStart(node,_77f);}else{this._updateInternal();}},setStartAfter:function(node,_780){this._setPoint("setStart",node,_780,1);},setStartBefore:function(node,_781){this._setPoint("setStart",node,_781,0);},setEndAfter:function(node,_782){this._setPoint("setEnd",node,_782,1);},setEndBefore:function(node,_783){this._setPoint("setEnd",node,_783,0);},_setPoint:function(what,node,_784,ext){var _785=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_785.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new dijit.range.W3CRange([this.startContainer,this.startOffset,this.endContainer,this.endOffset]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!dojo._hasResource["dijit._editor.selection"]){dojo._hasResource["dijit._editor.selection"]=true;dojo.provide("dijit._editor.selection");dojo.mixin(dijit._editor.selection,{getType:function(){if(dojo.isIE){return dojo.doc.selection.type.toLowerCase();}else{var _786="text";var oSel;try{oSel=dojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _787=oSel.getRangeAt(0);if((_787.startContainer==_787.endContainer)&&((_787.endOffset-_787.startOffset)==1)&&(_787.startContainer.nodeType!=3)){_786="control";}}return _786;}},getSelectedText:function(){if(dojo.isIE){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().text;}else{var _788=dojo.global.getSelection();if(_788){return _788.toString();}}return "";},getSelectedHtml:function(){if(dojo.isIE){if(dijit._editor.selection.getType()=="control"){return null;}return dojo.doc.selection.createRange().htmlText;}else{var _789=dojo.global.getSelection();if(_789&&_789.rangeCount){var i;var html="";for(i=0;i<_789.rangeCount;i++){var frag=_789.getRangeAt(i).cloneContents();var div=dojo.doc.createElement("div");div.appendChild(frag);html+=div.innerHTML;}return html;}return null;}},getSelectedElement:function(){if(dijit._editor.selection.getType()=="control"){if(dojo.isIE){var _78a=dojo.doc.selection.createRange();if(_78a&&_78a.item){return dojo.doc.selection.createRange().item(0);}}else{var _78b=dojo.global.getSelection();return _78b.anchorNode.childNodes[_78b.anchorOffset];}}return null;},getParentElement:function(){if(dijit._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(dojo.isIE){var r=dojo.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _78c=dojo.global.getSelection();if(_78c){var node=_78c.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_78d){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_78e){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _78f=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _790=String(tags[i]).toLowerCase();if(_78f==_790){return _790;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_791){if(window.getSelection){var _792=dojo.global.getSelection();if(_792.removeAllRanges){if(_791){_792.collapseToStart();}else{_792.collapseToEnd();}}else{_792.collapse(_791);}}else{if(dojo.isIE){var _793=dojo.doc.selection.createRange();_793.collapse(_791);_793.select();}}},remove:function(){var sel=dojo.doc.selection;if(dojo.isIE){if(sel.type.toLowerCase()!="none"){sel.clear();}return sel;}else{sel=dojo.global.getSelection();sel.deleteFromDocument();return sel;}},selectElementChildren:function(_794,_795){var win=dojo.global;var doc=dojo.doc;var _796;_794=dojo.byId(_794);if(doc.selection&&dojo.isIE&&dojo.body().createTextRange){_796=_794.ownerDocument.body.createTextRange();_796.moveToElementText(_794);if(!_795){try{_796.select();}catch(e){}}}else{if(win.getSelection){var _797=dojo.global.getSelection();if(dojo.isOpera){if(_797.rangeCount){_796=_797.getRangeAt(0);}else{_796=doc.createRange();}_796.setStart(_794,0);_796.setEnd(_794,(_794.nodeType==3)?_794.length:_794.childNodes.length);_797.addRange(_796);}else{_797.selectAllChildren(_794);}}}},selectElement:function(_798,_799){var _79a;var doc=dojo.doc;var win=dojo.global;_798=dojo.byId(_798);if(dojo.isIE&&dojo.body().createTextRange){try{_79a=dojo.body().createControlRange();_79a.addElement(_798);if(!_799){_79a.select();}}catch(e){this.selectElementChildren(_798,_799);}}else{if(dojo.global.getSelection){var _79b=win.getSelection();_79a=doc.createRange();if(_79b.removeAllRanges){if(dojo.isOpera){if(_79b.getRangeAt(0)){_79a=_79b.getRangeAt(0);}}_79a.selectNode(_798);_79b.removeAllRanges();_79b.addRange(_79a);}}}},inSelection:function(node){if(node){var _79c;var doc=dojo.doc;var _79d;if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.rangeCount>0){_79d=sel.getRangeAt(0);}if(_79d&&_79d.compareBoundaryPoints&&doc.createRange){try{_79c=doc.createRange();_79c.setStart(node,0);if(_79d.compareBoundaryPoints(_79d.START_TO_END,_79c)===1){return true;}}catch(e){}}}else{if(doc.selection){_79d=doc.selection.createRange();try{_79c=node.ownerDocument.body.createControlRange();if(_79c){_79c.addElement(node);}}catch(e1){try{_79c=node.ownerDocument.body.createTextRange();_79c.moveToElementText(node);}catch(e2){}}if(_79d&&_79c){if(_79d.compareEndPoints("EndToStart",_79c)===1){return true;}}}}}return false;}});}if(!dojo._hasResource["dijit._editor.plugins.FontChoice"]){dojo._hasResource["dijit._editor.plugins.FontChoice"]=true;dojo.provide("dijit._editor.plugins.FontChoice");dojo.declare("dijit._editor.plugins._FontDropDown",[dijit._Widget,dijit._Templated],{label:"",widgetsInTemplate:true,plainText:false,templateString:"<span style='white-space: nowrap' class='dijit dijitReset dijitInline'>"+"<label class='dijitLeft dijitInline' for='${selectId}'>${label}</label>"+"<input dojoType='dijit.form.FilteringSelect' required=false labelType=html labelAttr=label searchAttr=name "+"tabIndex='-1' id='${selectId}' dojoAttachPoint='select' value=''/>"+"</span>",postMixInProperties:function(){this.inherited(arguments);this.strings=dojo.i18n.getLocalization("dijit._editor","FontChoice");this.label=this.strings[this.command];this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));this.selectId=this.id+"_select";this.inherited(arguments);},postCreate:function(){var _79e=dojo.map(this.values,function(_79f){var name=this.strings[_79f]||_79f;return {label:this.getLabel(_79f,name),name:name,value:_79f};},this);this.select.store=new dojo.data.ItemFileReadStore({data:{identifier:"value",items:_79e}});this.select.set("value","",false);this.disabled=this.select.get("disabled");},_setValueAttr:function(_7a0,_7a1){_7a1=_7a1!==false?true:false;this.select.set("value",dojo.indexOf(this.values,_7a0)<0?"":_7a0,_7a1);if(!_7a1){this.select._lastValueReported=null;}},_getValueAttr:function(){return this.select.get("value");},focus:function(){this.select.focus();},_setDisabledAttr:function(_7a2){this.disabled=_7a2;this.select.set("disabled",_7a2);}});dojo.declare("dijit._editor.plugins._FontNameDropDown",dijit._editor.plugins._FontDropDown,{generic:false,command:"fontName",postMixInProperties:function(){if(!this.values){this.values=this.generic?["serif","sans-serif","monospace","cursive","fantasy"]:["Arial","Times New Roman","Comic Sans MS","Courier New"];}this.inherited(arguments);},getLabel:function(_7a3,name){if(this.plainText){return name;}else{return "<div style='font-family: "+_7a3+"'>"+name+"</div>";}},_setValueAttr:function(_7a4,_7a5){_7a5=_7a5!==false?true:false;if(this.generic){var map={"Arial":"sans-serif","Helvetica":"sans-serif","Myriad":"sans-serif","Times":"serif","Times New Roman":"serif","Comic Sans MS":"cursive","Apple Chancery":"cursive","Courier":"monospace","Courier New":"monospace","Papyrus":"fantasy"};_7a4=map[_7a4]||_7a4;}this.inherited(arguments,[_7a4,_7a5]);}});dojo.declare("dijit._editor.plugins._FontSizeDropDown",dijit._editor.plugins._FontDropDown,{command:"fontSize",values:[1,2,3,4,5,6,7],getLabel:function(_7a6,name){if(this.plainText){return name;}else{return "<font size="+_7a6+"'>"+name+"</font>";}},_setValueAttr:function(_7a7,_7a8){_7a8=_7a8!==false?true:false;if(_7a7.indexOf&&_7a7.indexOf("px")!=-1){var _7a9=parseInt(_7a7,10);_7a7={10:1,13:2,16:3,18:4,24:5,32:6,48:7}[_7a9]||_7a7;}this.inherited(arguments,[_7a7,_7a8]);}});dojo.declare("dijit._editor.plugins._FormatBlockDropDown",dijit._editor.plugins._FontDropDown,{command:"formatBlock",values:["noFormat","p","h1","h2","h3","pre"],postCreate:function(){this.inherited(arguments);this.set("value","noFormat",false);},getLabel:function(_7aa,name){if(this.plainText){return name;}else{return "<"+_7aa+">"+name+"</"+_7aa+">";}},_execCommand:function(_7ab,_7ac,_7ad){if(_7ad==="noFormat"){var _7ae;var end;var sel=dijit.range.getSelection(_7ab.window);if(sel&&sel.rangeCount>0){var _7af=sel.getRangeAt(0);var node,tag;if(_7af){_7ae=_7af.startContainer;end=_7af.endContainer;while(_7ae&&_7ae!==_7ab.editNode&&_7ae!==_7ab.document.body&&_7ae.nodeType!==1){_7ae=_7ae.parentNode;}while(end&&end!==_7ab.editNode&&end!==_7ab.document.body&&end.nodeType!==1){end=end.parentNode;}var _7b0=dojo.hitch(this,function(node,_7b1){if(node.childNodes&&node.childNodes.length){var i;for(i=0;i<node.childNodes.length;i++){var c=node.childNodes[i];if(c.nodeType==1){if(dojo.withGlobal(_7ab.window,"inSelection",dijit._editor.selection,[c])){var tag=c.tagName?c.tagName.toLowerCase():"";if(dojo.indexOf(this.values,tag)!==-1){_7b1.push(c);}_7b0(c,_7b1);}}}}});var _7b2=dojo.hitch(this,function(_7b3){if(_7b3&&_7b3.length){_7ab.beginEditing();while(_7b3.length){this._removeFormat(_7ab,_7b3.pop());}_7ab.endEditing();}});var _7b4=[];if(_7ae==end){var _7b5;node=_7ae;while(node&&node!==_7ab.editNode&&node!==_7ab.document.body){if(node.nodeType==1){tag=node.tagName?node.tagName.toLowerCase():"";if(dojo.indexOf(this.values,tag)!==-1){_7b5=node;break;}}node=node.parentNode;}_7b0(_7ae,_7b4);if(_7b5){_7b4=[_7b5].concat(_7b4);}_7b2(_7b4);}else{node=_7ae;while(dojo.withGlobal(_7ab.window,"inSelection",dijit._editor.selection,[node])){if(node.nodeType==1){tag=node.tagName?node.tagName.toLowerCase():"";if(dojo.indexOf(this.values,tag)!==-1){_7b4.push(node);}_7b0(node,_7b4);}node=node.nextSibling;}_7b2(_7b4);}_7ab.onDisplayChanged();}}}else{_7ab.execCommand(_7ac,_7ad);}},_removeFormat:function(_7b6,node){if(_7b6.customUndo){while(node.firstChild){dojo.place(node.firstChild,node,"before");}node.parentNode.removeChild(node);}else{dojo.withGlobal(_7b6.window,"selectElementChildren",dijit._editor.selection,[node]);var html=dojo.withGlobal(_7b6.window,"getSelectedHtml",dijit._editor.selection,[null]);dojo.withGlobal(_7b6.window,"selectElement",dijit._editor.selection,[node]);_7b6.execCommand("inserthtml",html||"");}}});dojo.declare("dijit._editor.plugins.FontChoice",dijit._editor._Plugin,{useDefaultCommand:false,_initButton:function(){var _7b7={fontName:dijit._editor.plugins._FontNameDropDown,fontSize:dijit._editor.plugins._FontSizeDropDown,formatBlock:dijit._editor.plugins._FormatBlockDropDown}[this.command],_7b8=this.params;if(this.params.custom){_7b8.values=this.params.custom;}var _7b9=this.editor;this.button=new _7b7(dojo.delegate({dir:_7b9.dir,lang:_7b9.lang},_7b8));this.connect(this.button.select,"onChange",function(_7ba){this.editor.focus();if(this.command=="fontName"&&_7ba.indexOf(" ")!=-1){_7ba="'"+_7ba+"'";}if(this.button._execCommand){this.button._execCommand(this.editor,this.command,_7ba);}else{this.editor.execCommand(this.command,_7ba);}this.editor.customUndo=this.editor.customUndo||dojo.isWebKit;});},updateState:function(){var _7bb=this.editor;var _7bc=this.command;if(!_7bb||!_7bb.isLoaded||!_7bc.length){return;}if(this.button){var _7bd;try{_7bd=_7bb.queryCommandValue(_7bc)||"";}catch(e){_7bd="";}var _7be=dojo.isString(_7bd)&&_7bd.match(/'([^']*)'/);if(_7be){_7bd=_7be[1];}if(_7bc==="formatBlock"){if(!_7bd||_7bd=="p"){_7bd=null;var elem;var sel=dijit.range.getSelection(this.editor.window);if(sel&&sel.rangeCount>0){var _7bf=sel.getRangeAt(0);if(_7bf){elem=_7bf.endContainer;}}while(elem&&elem!==_7bb.editNode&&elem!==_7bb.document){var tg=elem.tagName?elem.tagName.toLowerCase():"";if(tg&&dojo.indexOf(this.button.values,tg)>-1){_7bd=tg;break;}elem=elem.parentNode;}if(!_7bd){_7bd="noFormat";}}else{if(dojo.indexOf(this.button.values,_7bd)<0){_7bd="noFormat";}}}if(_7bd!==this.button.get("value")){this.button.set("value",_7bd,false);}}}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "fontName":case "fontSize":case "formatBlock":o.plugin=new dijit._editor.plugins.FontChoice({command:o.args.name,plainText:o.args.plainText?o.args.plainText:false});}});}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(_7c0){var _7c1=_7c0,opts=this.options||[],l=opts.length;if(_7c1===undefined){return opts;}if(dojo.isArray(_7c1)){return dojo.map(_7c1,"return this.getOptions(item);",this);}if(dojo.isObject(_7c0)){if(!dojo.some(this.options,function(o,idx){if(o===_7c1||(o.value&&o.value===_7c1.value)){_7c1=idx;return true;}return false;})){_7c1=-1;}}if(typeof _7c1=="string"){for(var i=0;i<l;i++){if(opts[i].value===_7c1){_7c1=i;break;}}}if(typeof _7c1=="number"&&_7c1>=0&&_7c1<l){return this.options[_7c1];}return null;},addOption:function(_7c2){if(!dojo.isArray(_7c2)){_7c2=[_7c2];}dojo.forEach(_7c2,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_7c3){if(!dojo.isArray(_7c3)){_7c3=[_7c3];}var _7c4=this.getOptions(_7c3);dojo.forEach(_7c4,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_7c5){if(!dojo.isArray(_7c5)){_7c5=[_7c5];}dojo.forEach(_7c5,function(i){var _7c6=this.getOptions(i),k;if(_7c6){for(k in i){_7c6[k]=i[k];}}},this);this._loadChildren();},setStore:function(_7c7,_7c8,_7c9){var _7ca=this.store;_7c9=_7c9||{};if(_7ca!==_7c7){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_7c7&&_7c7.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_7c7,"onNew",this,"_onNewItem"),dojo.connect(_7c7,"onDelete",this,"_onDeleteItem"),dojo.connect(_7c7,"onSet",this,"_onSetItem")];}this.store=_7c7;}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_7c7){var cb=function(_7cb){if(this.sortByLabel&&!_7c9.sort&&_7cb.length){_7cb.sort(dojo.data.util.sorter.createSortFunction([{attribute:_7c7.getLabelAttributes(_7cb[0])[0]}],_7c7));}if(_7c9.onFetch){_7cb=_7c9.onFetch(_7cb);}dojo.forEach(_7cb,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value",(("_pendingValue" in this)?this._pendingValue:_7c8));delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_7cb);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);};var opts=dojo.mixin({onComplete:cb,scope:this},_7c9);this._loadingStore=true;_7c7.fetch(opts);}else{delete this._fetchedWith;}return _7ca;},_setValueAttr:function(_7cc,_7cd){if(this._loadingStore){this._pendingValue=_7cc;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_7cc)){_7cc=[_7cc];}dojo.forEach(_7cc,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_7cc[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_7cc=dojo.filter(_7cc,function(i){return i&&i.value;});if(!this.multiple&&(!_7cc[0]||!_7cc[0].value)&&opts.length){_7cc[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_7cc,function(v){return v.value===i.value;});});var val=dojo.map(_7cc,function(i){return i.value;}),disp=dojo.map(_7cc,function(i){return i.label;});this.value=this.multiple?val:val[0];this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_7cd);},_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];},_getValueDeprecated:false,getValue:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_7ce){_7ce.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this.value=this._getValueFromOpts();var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_7cf){var _7d0=dojo.some(val,function(v){return _7cf.option&&(v===_7cf.option.value);});dojo.toggleClass(_7cf.domNode,this.baseClass+"SelectedOption",_7d0);dijit.setWaiState(_7cf.domNode,"selected",_7d0);},this);}this._handleOnChange(this.value);},_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,_7d1){if(!_7d1||!_7d1.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _7d2=this.store;this.removeOption(_7d2.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _7d3=this.store,_7d4=_7d3.getLabel(item),_7d5=(_7d4?_7d3.getIdentity(item):null);return {value:_7d5,label:_7d4,item:item};},_addOptionForItem:function(item){var _7d6=this.store;if(!_7d6.isItemLoaded(item)){_7d6.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _7d7=this._getOptionObjForItem(item);this.addOption(_7d7);},constructor:function(_7d8){this._oValue=(_7d8||{}).value||null;},_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("value"),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this.value=this._getValueFromOpts();}else{if(this.multiple&&typeof this.value=="string"){this.value=this.value.split(",");}}},postCreate:function(){dojo.setSelectable(this.focusNode,false);this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _7d9=this.store,_7da={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_7da[i]=this[i];}delete this[i];},this);if(_7d9&&_7d9.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_7d9,this._oValue,_7da);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_7db){},_removeOptionItem:function(_7dc){},_setDisplay:function(_7dd){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_7de){},onSetStore:function(){}});}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);},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\"\r\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\r\n\twaiRole=\"combobox\" waiState=\"haspopup-true\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" waiRole=\"presentation\"\r\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\r\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" waiState=\"hidden-true\"\r\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode\" waiRole=\"presentation\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",tooltipPosition:[],emptyLabel:"",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex;this.value=this.options[si!=-1?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_7df){if(!_7df.value){return new dijit.MenuSeparator();}else{var _7e0=dojo.hitch(this,"_setValueAttr",_7df);var item=new dijit.MenuItem({option:_7df,label:_7df.label,onClick:_7e0,disabled:_7df.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_7e1){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_7e1));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_7e2){if(_7e2===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_7e3){_7e3.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}var len=this.options.length;this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_7e4){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_7e5){this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+(_7e5||this.emptyLabel||"&nbsp;")+"</span>";dijit.setWaiState(this.focusNode,"valuetext",(_7e5||this.emptyLabel||"&nbsp;"));},validate:function(_7e6){var _7e7=this.isValid(_7e6);this.state=_7e7?"":"Error";this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_7e7?"false":"true");var _7e8=_7e7?"":this._missingMsg;if(this._message!==_7e8){this._message=_7e8;dijit.hideTooltip(this.domNode);if(_7e8){dijit.showTooltip(_7e8,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _7e7;},isValid:function(_7e9){return (!this.required||!(/^\s*$/.test(this.value)));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this.state="";this._setStateClass();delete this._message;},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);if(this.tableNode.style.width){dojo.addClass(this.domNode,this.baseClass+"FixedWidth");}},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_7ea){this._loadChildren(true);this._isLoaded=true;_7ea();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_7eb){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_7eb);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit._editor.plugins.LinkDialog"]){dojo._hasResource["dijit._editor.plugins.LinkDialog"]=true;dojo.provide("dijit._editor.plugins.LinkDialog");dojo.declare("dijit._editor.plugins.LinkDialog",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,useDefaultCommand:false,urlRegExp:"((https?|ftps?|file)\\://|./|/|)(/[a-zA-Z]{1,1}:/|)(((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)*(?:[a-zA-Z](?:[-\\da-zA-Z]{0,80}[\\da-zA-Z])?)\\.?)|(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])|(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]|(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]|(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])|0[xX]0*[\\da-fA-F]{1,8}|([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}|([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])))(\\:\\d+)?(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]+(?:\\?[^?#\\s/]*)?(?:#.*)?)?)?",emailRegExp:"<?(mailto\\:)([!#-'*+\\-\\/-9=?A-Z^-~]+[.])*[!#-'*+\\-\\/-9=?A-Z^-~]+"+"@"+"((?:(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)\\.)+(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)\\.?)|localhost|^[^-][a-zA-Z0-9_-]*>?",htmlTemplate:"<a href=\"${urlInput}\" _djrealurl=\"${urlInput}\""+" target=\"${targetSelect}\""+">${textInput}</a>",tag:"a",_hostRxp:new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$"),_userAtRxp:new RegExp("^([!#-'*+\\-\\/-9=?A-Z^-~]+[.])*[!#-'*+\\-\\/-9=?A-Z^-~]+@","i"),linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='true' "+"id='${id}_urlInput' name='urlInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='true' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_targetSelect'>${target}</label>","</td><td>","<select id='${id}_targetSelect' name='targetSelect' dojoType='dijit.form.Select'>","<option selected='selected' value='_self'>${currentWindow}</option>","<option value='_blank'>${newWindow}</option>","<option value='_top'>${topWindow}</option>","<option value='_parent'>${parentWindow}</option>","</select>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),_initButton:function(){var _7ec=this;this.tag=this.command=="insertImage"?"img":"a";var _7ed=dojo.mixin(dojo.i18n.getLocalization("dijit","common",this.lang),dojo.i18n.getLocalization("dijit._editor","LinkDialog",this.lang));var _7ee=(this.dropDown=new dijit.TooltipDialog({title:_7ed[this.command+"Title"],execute:dojo.hitch(this,"setValue"),onOpen:function(){_7ec._onOpenDialog();dijit.TooltipDialog.prototype.onOpen.apply(this,arguments);},onCancel:function(){setTimeout(dojo.hitch(_7ec,"_onCloseDialog"),0);}}));_7ed.urlRegExp=this.urlRegExp;_7ed.id=dijit.getUniqueId(this.editor.id);this._uniqueId=_7ed.id;this._setContent(_7ee.title+"<div style='border-bottom: 1px black solid;padding-bottom:2pt;margin-bottom:4pt'></div>"+dojo.string.substitute(this.linkDialogTemplate,_7ed));_7ee.startup();this._urlInput=dijit.byId(this._uniqueId+"_urlInput");this._textInput=dijit.byId(this._uniqueId+"_textInput");this._setButton=dijit.byId(this._uniqueId+"_setButton");this.connect(dijit.byId(this._uniqueId+"_cancelButton"),"onClick",function(){this.dropDown.onCancel();});if(this._urlInput){this.connect(this._urlInput,"onChange","_checkAndFixInput");}if(this._textInput){this.connect(this._textInput,"onChange","_checkAndFixInput");}this._urlRegExp=new RegExp("^"+this.urlRegExp+"$","i");this._emailRegExp=new RegExp("^"+this.emailRegExp+"$","i");this._urlInput.isValid=dojo.hitch(this,function(){var _7ef=this._urlInput.get("value");return this._urlRegExp.test(_7ef)||this._emailRegExp.test(_7ef);});this._connectTagEvents();this.inherited(arguments);},_checkAndFixInput:function(){var self=this;var url=this._urlInput.get("value");var _7f0=function(url){var _7f1=false;var _7f2=false;if(url&&url.length>1){url=dojo.trim(url);if(url.indexOf("mailto:")!==0){if(url.indexOf("/")>0){if(url.indexOf("://")===-1){if(url.charAt(0)!=="/"&&url.indexOf("./")!==0){if(self._hostRxp.test(url)){_7f1=true;}}}}else{if(self._userAtRxp.test(url)){_7f2=true;}}}}if(_7f1){self._urlInput.set("value","http://"+url);}if(_7f2){self._urlInput.set("value","mailto:"+url);}self._setButton.set("disabled",!self._isValid());};if(this._delayedCheck){clearTimeout(this._delayedCheck);this._delayedCheck=null;}this._delayedCheck=setTimeout(function(){_7f0(url);},250);},_connectTagEvents:function(){this.editor.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.connect(this.editor.editNode,"ondblclick",this._onDblClick);}));},_isValid:function(){return this._urlInput.isValid()&&this._textInput.isValid();},_setContent:function(_7f3){this.dropDown.set("content",_7f3);},_checkValues:function(args){if(args&&args.urlInput){args.urlInput=args.urlInput.replace(/"/g,"&quot;");}return args;},setValue:function(args){this._onCloseDialog();if(dojo.isIE){var sel=dijit.range.getSelection(this.editor.window);var _7f4=sel.getRangeAt(0);var a=_7f4.endContainer;if(a.nodeType===3){a=a.parentNode;}if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){a=dojo.withGlobal(this.editor.window,"getSelectedElement",dijit._editor.selection,[this.tag]);}if(a&&(a.nodeName&&a.nodeName.toLowerCase()===this.tag)){if(this.editor.queryCommandEnabled("unlink")){dojo.withGlobal(this.editor.window,"selectElementChildren",dijit._editor.selection,[a]);this.editor.execCommand("unlink");}}}args=this._checkValues(args);this.editor.execCommand("inserthtml",dojo.string.substitute(this.htmlTemplate,args));},_onCloseDialog:function(){this.editor.focus();},_getCurrentValues:function(a){var url,text,_7f5;if(a&&a.tagName.toLowerCase()===this.tag){url=a.getAttribute("_djrealurl")||a.getAttribute("href");_7f5=a.getAttribute("target")||"_self";text=a.textContent||a.innerText;dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[a,true]);}else{text=dojo.withGlobal(this.editor.window,dijit._editor.selection.getSelectedText);}return {urlInput:url||"",textInput:text||"",targetSelect:_7f5||""};},_onOpenDialog:function(){var a;if(dojo.isIE){var sel=dijit.range.getSelection(this.editor.window);var _7f6=sel.getRangeAt(0);a=_7f6.endContainer;if(a.nodeType===3){a=a.parentNode;}if(a&&(a.nodeName&&a.nodeName.toLowerCase()!==this.tag)){a=dojo.withGlobal(this.editor.window,"getSelectedElement",dijit._editor.selection,[this.tag]);}}else{a=dojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.tag]);}this.dropDown.reset();this._setButton.set("disabled",true);this.dropDown.set("value",this._getCurrentValues(a));},_onDblClick:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag&&dojo.attr(t,"href")){dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[t]);this.editor.onDisplayChanged();setTimeout(dojo.hitch(this,function(){this.button.set("disabled",false);this.button.openDropDown();}),10);}}}});dojo.declare("dijit._editor.plugins.ImgLinkDialog",[dijit._editor.plugins.LinkDialog],{linkDialogTemplate:["<table><tr><td>","<label for='${id}_urlInput'>${url}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' regExp='${urlRegExp}' "+"required='true' id='${id}_urlInput' name='urlInput' intermediateChanges='true'>","</td></tr><tr><td>","<label for='${id}_textInput'>${text}</label>","</td><td>","<input dojoType='dijit.form.ValidationTextBox' required='false' id='${id}_textInput' "+"name='textInput' intermediateChanges='true'>","</td></tr><tr><td>","</td><td>","</td></tr><tr><td colspan='2'>","<button dojoType='dijit.form.Button' type='submit' id='${id}_setButton'>${set}</button>","<button dojoType='dijit.form.Button' type='button' id='${id}_cancelButton'>${buttonCancel}</button>","</td></tr></table>"].join(""),htmlTemplate:"<img src=\"${urlInput}\" _djrealurl=\"${urlInput}\" alt=\"${textInput}\" />",tag:"img",_getCurrentValues:function(img){var url,text;if(img&&img.tagName.toLowerCase()===this.tag){url=img.getAttribute("_djrealurl")||img.getAttribute("src");text=img.getAttribute("alt");dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[img,true]);}else{text=dojo.withGlobal(this.editor.window,dijit._editor.selection.getSelectedText);}return {urlInput:url||"",textInput:text||""};},_isValid:function(){return this._urlInput.isValid();},_connectTagEvents:function(){this.inherited(arguments);this.editor.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.connect(this.editor.editNode,"onmousedown",this._selectTag);}));},_selectTag:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag){dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[t]);}}},_checkValues:function(args){if(args&&args.urlInput){args.urlInput=args.urlInput.replace(/"/g,"&quot;");}if(args&&args.textInput){args.textInput=args.textInput.replace(/"/g,"&quot;");}return args;},_onDblClick:function(e){if(e&&e.target){var t=e.target;var tg=t.tagName?t.tagName.toLowerCase():"";if(tg===this.tag&&dojo.attr(t,"src")){dojo.withGlobal(this.editor.window,"selectElement",dijit._editor.selection,[t]);this.editor.onDisplayChanged();setTimeout(dojo.hitch(this,function(){this.button.set("disabled",false);this.button.openDropDown();}),10);}}}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "createLink":o.plugin=new dijit._editor.plugins.LinkDialog({command:o.args.name});break;case "insertImage":o.plugin=new dijit._editor.plugins.ImgLinkDialog({command:o.args.name});break;}});}if(!dojo._hasResource["dijit._editor.plugins.TextColor"]){dojo._hasResource["dijit._editor.plugins.TextColor"]=true;dojo.provide("dijit._editor.plugins.TextColor");dojo.declare("dijit._editor.plugins.TextColor",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,useDefaultCommand:false,constructor:function(){this.dropDown=new dijit.ColorPalette();this.connect(this.dropDown,"onChange",function(_7f7){this.editor.execCommand(this.command,_7f7);});},updateState:function(){var _7f8=this.editor;var _7f9=this.command;if(!_7f8||!_7f8.isLoaded||!_7f9.length){return;}if(this.button){var _7fa;try{_7fa=_7f8.queryCommandValue(_7f9)||"";}catch(e){_7fa="";}}if(_7fa==""){_7fa="#000000";}if(_7fa=="transparent"){_7fa="#ffffff";}if(typeof _7fa=="string"){if(_7fa.indexOf("rgb")>-1){_7fa=dojo.colorFromRgb(_7fa).toHex();}}else{_7fa=((_7fa&255)<<16)|(_7fa&65280)|((_7fa&16711680)>>>16);_7fa=_7fa.toString(16);_7fa="#000000".slice(0,7-_7fa.length)+_7fa;}if(_7fa!==this.dropDown.get("value")){this.dropDown.set("value",_7fa,false);}}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "foreColor":case "hiliteColor":o.plugin=new dijit._editor.plugins.TextColor({command:o.args.name});}});}if(!dojo._hasResource["dijit._editor.RichText"]){dojo._hasResource["dijit._editor.RichText"]=true;dojo.provide("dijit._editor.RichText");if(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"]){if(dojo._postLoad){(function(){var _7fb=dojo.doc.createElement("textarea");_7fb.id=dijit._scopeName+"._editor.RichText.savedContent";dojo.style(_7fb,{display:"none",position:"absolute",top:"-100px",height:"3px",width:"3px"});dojo.body().appendChild(_7fb);})();}else{try{dojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}dojo.declare("dijit._editor.RichText",[dijit._Widget,dijit._CssStateMixin],{constructor:function(_7fc){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this.events=[].concat(this.events);this._keyHandlers={};this.contentPreFilters.push(dojo.hitch(this,"_preFixUrlAttributes"));if(dojo.isMoz){this.contentPreFilters.push(this._normalizeFontStyle);this.contentPostFilters.push(this._removeMozBogus);}if(dojo.isWebKit){this.contentPreFilters.push(this._removeWebkitBogus);this.contentPostFilters.push(this._removeWebkitBogus);}if(dojo.isIE){this.contentPostFilters.push(this._normalizeFontStyle);}if(_7fc&&dojo.isString(_7fc.value)){this.value=_7fc.value;}this.onLoadDeferred=new dojo.Deferred();},baseClass:"dijitEditor",inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,disableSpellCheck:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}this.inherited(arguments);dojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=dojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _7fd={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!dojo.isIE){_7fd.Z=exec("redo");}for(var key in _7fd){this.addKeyHandler(key,true,false,_7fd[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _7fe=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _7ff="",_800,i=0;while((_800=_7fe[i++])){if(_800.charAt(1)!="l"){_7ff+="<"+_800+"><span>content</span></"+_800+"><br/>";}else{_7ff+="<"+_800+"><li>content</li></"+_800+"><br/>";}}var div=dojo.doc.createElement("div");dojo.style(div,{position:"absolute",top:"-2000px"});dojo.doc.body.appendChild(div);div.innerHTML=_7ff;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);dojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _801=node.tagName.toLowerCase();this._local2NativeFormatNames[_801]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_801]]=_801;node=node.nextSibling.nextSibling;}dojo.body().removeChild(div);},open:function(_802){if(!this.onLoadDeferred||this.onLoadDeferred.fired>=0){this.onLoadDeferred=new dojo.Deferred();}if(!this.isClosed){this.close();}dojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);this._content="";if(arguments.length==1&&_802.nodeName){this.domNode=_802;}var dn=this.domNode;var html;if(dojo.isString(this.value)){html=this.value;delete this.value;dn.innerHTML="";}else{if(dn.nodeName&&dn.nodeName.toLowerCase()=="textarea"){var ta=(this.textarea=dn);this.name=ta.name;html=ta.value;dn=this.domNode=dojo.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;dojo.place(dn,ta,"before");var _803=dojo.hitch(this,function(){dojo.style(ta,{display:"block",position:"absolute",top:"-1000px"});if(dojo.isIE){var s=ta.style;this.__overflow=s.overflow;s.overflow="hidden";}});if(dojo.isIE){setTimeout(_803,10);}else{_803();}if(ta.form){dojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=dijit._editor.getChildrenHtml(dn);dn.innerHTML="";}}var _804=dojo.contentBox(dn);this._oldHeight=_804.h;this._oldWidth=_804.w;this.savedContent=html;if(dn.nodeName&&dn.nodeName=="LI"){dn.innerHTML=" <br>";}this.header=dn.ownerDocument.createElement("div");dn.appendChild(this.header);this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);this.footer=dn.ownerDocument.createElement("div");dn.appendChild(this.footer);if(this.name!==""&&(!dojo.config["useXDomain"]||dojo.config["allowXdRichTextSave"])){var _805=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_805.value!==""){var _806=_805.value.split(this._SEPARATOR),i=0,dat;while((dat=_806[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_806.splice(i,1);break;}}}dojo.addOnUnload(dojo.hitch(this,"_saveContent"));}this.isClosed=false;var ifr=(this.editorObject=this.iframe=dojo.doc.createElement("iframe"));ifr.id=this.id+"_iframe";this._iframeSrc=this._getIframeDocTxt();ifr.style.border="none";ifr.style.width="100%";if(this._layoutMode){ifr.style.height="100%";}else{if(dojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}ifr.frameBorder=0;ifr._loadFunc=dojo.hitch(this,function(win){this.window=win;this.document=this.window.document;if(dojo.isIE){this._localizeEditorCommands();}this.onLoad(html);});var s="javascript:parent."+dijit._scopeName+".byId(\""+this.id+"\")._iframeSrc";ifr.setAttribute("src",s);this.editingArea.appendChild(ifr);if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}dojo.addClass(this.domNode,this.baseClass);},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_getIframeDocTxt:function(){var _807=dojo.getComputedStyle(this.domNode);var html="";var _808=true;if(dojo.isIE||(!this.height&&!dojo.isMoz)){html="<div id='dijitEditorBody'></div>";_808=false;}else{if(dojo.isMoz){this._cursorToStart=true;html="&nbsp;";}}var font=[_807.fontWeight,_807.fontSize,_807.fontFamily].join(" ");var _809=_807.lineHeight;if(_809.indexOf("px")>=0){_809=parseFloat(_809)/parseFloat(_807.fontSize);}else{if(_809.indexOf("em")>=0){_809=parseFloat(_809);}else{_809="normal";}}var _80a="";var self=this;this.style.replace(/(^|;)\s*(line-|font-?)[^;]+/ig,function(_80b){_80b=_80b.replace(/^;/ig,"")+";";var s=_80b.split(":")[0];if(s){s=dojo.trim(s);s=s.toLowerCase();var i;var sC="";for(i=0;i<s.length;i++){var c=s.charAt(i);switch(c){case "-":i++;c=s.charAt(i).toUpperCase();default:sC+=c;}}dojo.style(self.domNode,sC,"");}_80a+=_80b+";";});var _80c=dojo.query("label[for=\""+this.id+"\"]");return [this.isLeftToRight()?"<html>\n<head>\n":"<html dir='rtl'>\n<head>\n",(dojo.isMoz&&_80c.length?"<title>"+_80c[0].innerHTML+"</title>\n":""),"<meta http-equiv='Content-Type' content='text/html'>\n","<style>\n","\tbody,html {\n","\t\tbackground:transparent;\n","\t\tpadding: 1px 0 0 0;\n","\t\tmargin: -1px 0 0 0;\n",((dojo.isWebKit)?"\t\twidth: 100%;\n":""),((dojo.isWebKit)?"\t\theight: 100%;\n":""),"\t}\n","\tbody{\n","\t\ttop:0px;\n","\t\tleft:0px;\n","\t\tright:0px;\n","\t\tfont:",font,";\n",((this.height||dojo.isOpera)?"":"\t\tposition: fixed;\n"),"\t\tmin-height:",this.minHeight,";\n","\t\tline-height:",_809,";\n","\t}\n","\tp{ margin: 1em 0; }\n",(!_808&&!this.height?"\tbody,html {overflow-y: hidden;}\n":""),"\t#dijitEditorBody{overflow-x: auto; overflow-y:"+(this.height?"auto;":"hidden;")+"}\n","\tli > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; }\n","\tli{ min-height:1.2em; }\n","</style>\n",this._applyEditingAreaStyleSheets(),"\n","</head>\n<body ",(_808?"id='dijitEditorBody' ":""),"onload='frameElement._loadFunc(window,document)' style='"+_80a+"'>",html,"</body>\n</html>"].join("");},_applyEditingAreaStyleSheets:function(){var _80d=[];if(this.styleSheets){_80d=this.styleSheets.split(";");this.styleSheets="";}_80d=_80d.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_80d[i++])){var _80e=(new dojo._Url(dojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_80e);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_80e+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}if(dojo.indexOf(this.editingAreaStyleSheets,url)>-1){return;}this.editingAreaStyleSheets.push(url);this.onLoadDeferred.addCallback(dojo.hitch(function(){if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _80f=this.document.createElement("link");_80f.rel="stylesheet";_80f.type="text/css";_80f.href=url;head.appendChild(_80f);}}));},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new dojo._Url(dojo.global.location,url)).toString();}var _810=dojo.indexOf(this.editingAreaStyleSheets,url);if(_810==-1){return;}delete this.editingAreaStyleSheets[_810];dojo.withGlobal(this.window,"query",dojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:false,_mozSettingProps:{"styleWithCSS":false},_setDisabledAttr:function(_811){this.disabled=_811;if(!this.isLoaded){return;}_811=!!_811;if(dojo.isIE||dojo.isWebKit||dojo.isOpera){var _812=dojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_812){this.editNode.unselectable="on";}this.editNode.contentEditable=!_811;if(_812){var _813=this;setTimeout(function(){_813.editNode.unselectable="off";},0);}}else{try{this.document.designMode=(_811?"off":"on");}catch(e){return;}if(!_811&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e2){}}}}}this._disabledOK=true;},onLoad:function(html){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;this._iframeRegHandle=dijit.registerIframe(this.iframe);}if(!dojo.isIE&&(this.height||dojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _814=this;if(dojo.isIE){var _815=(this.tabStop=dojo.doc.createElement("<div tabIndex=-1>"));this.editingArea.appendChild(_815);this.iframe.onfocus=function(){_814.editNode.setActive();};}}this.focusNode=this.editNode;var _816=this.events.concat(this.captureEvents);var ap=this.iframe?this.document:this.editNode;dojo.forEach(_816,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(dojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}else{this.connect(this.document,"onmousedown",function(){delete this._cursorToStart;});}if(dojo.isWebKit){this._webkitListener=this.connect(this.document,"onmouseup","onDisplayChanged");}if(dojo.isIE){try{this.document.execCommand("RespectVisibilityInDesign",true,null);}catch(e){}}this.isLoaded=true;this.set("disabled",this.disabled);var _817=dojo.hitch(this,function(){this.setValue(html);if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}this.onDisplayChanged();if(this.focusOnLoad){dojo.addOnLoad(dojo.hitch(this,function(){setTimeout(dojo.hitch(this,"focus"),this.updateInterval);}));}this.savedContent=this.getValue(true);});if(this.setValueDeferred){this.setValueDeferred.addCallback(_817);}else{_817();}},onKeyDown:function(e){if(e.keyCode===dojo.keys.TAB&&this.isTabIndent){dojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(dojo.isIE){if(e.keyCode==dojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===dojo.keys.BACKSPACE&&this.document.selection.type==="Control"){dojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_818){dojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.set("disabled",_818);},_setValueAttr:function(_819){this.setValue(_819);},_setDisableSpellCheckAttr:function(_81a){if(this.document){dojo.attr(this.document.body,"spellcheck",!_81a);}else{this.onLoadDeferred.addCallback(dojo.hitch(this,function(){dojo.attr(this.document.body,"spellcheck",!_81a);}));}this.disableSpellCheck=_81a;},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode,_81b=this._keyHandlers[c],args=arguments;if(_81b&&!e.altKey){dojo.some(_81b,function(h){if(!(h.shift^e.shiftKey)&&!(h.ctrl^(e.ctrlKey||e.metaKey))){if(!h.handler.apply(this,args)){e.preventDefault();}return true;}},this);}if(!this._onKeyHitch){this._onKeyHitch=dojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_81c,_81d){if(!dojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_81c||false,ctrl:ctrl||false,handler:_81d});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _81e=this.getValue(true);if(_81e!=this.savedContent){this.onChange(_81e);this.savedContent=_81e;}},_onFocus:function(e){if(!this.disabled){if(!this._disabledOK){this.set("disabled",false);}this.inherited(arguments);}},blur:function(){if(!dojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(dojo.doc.body.focus){dojo.doc.body.focus();}}},focus:function(){if(!this.isLoaded){this.focusOnLoad=true;return;}if(this._cursorToStart){delete this._cursorToStart;if(this.editNode.childNodes){this.placeCursorAtStart();return;}}if(!dojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=dojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_81f){},_normalizeCommand:function(cmd,_820){var _821=cmd.toLowerCase();if(_821=="formatblock"){if(dojo.isSafari&&_820===undefined){_821="heading";}}else{if(_821=="hilitecolor"&&!dojo.isMoz){_821="backcolor";}}return _821;},_qcaCache:{},queryCommandAvailable:function(_822){var ca=this._qcaCache[_822];if(ca!==undefined){return ca;}return (this._qcaCache[_822]=this._queryCommandAvailable(_822));},_queryCommandAvailable:function(_823){var ie=1;var _824=1<<1;var _825=1<<2;var _826=1<<3;var _827=1<<4;function _828(_829){return {ie:Boolean(_829&ie),mozilla:Boolean(_829&_824),webkit:Boolean(_829&_825),webkit420:Boolean(_829&_827),opera:Boolean(_829&_826)};};var _82a=null;switch(_823.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_82a=_828(_824|ie|_825|_826);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_82a=_828(_824|ie|_826|_827);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_82a=_828(ie);break;case "cut":case "copy":case "paste":_82a=_828(ie|_824|_827);break;case "inserttable":_82a=_828(_824|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_82a=_828(ie|_824);break;default:return false;}return (dojo.isIE&&_82a.ie)||(dojo.isMoz&&_82a.mozilla)||(dojo.isWebKit&&_82a.webkit)||(dojo.isWebKit>420&&_82a.webkit420)||(dojo.isOpera&&_82a.opera);},execCommand:function(_82b,_82c){var _82d;this.focus();_82b=this._normalizeCommand(_82b,_82c);if(_82c!==undefined){if(_82b=="heading"){throw new Error("unimplemented");}else{if((_82b=="formatblock")&&dojo.isIE){_82c="<"+_82c+">";}}}var _82e="_"+_82b+"Impl";if(this[_82e]){_82d=this[_82e](_82c);}else{_82c=arguments.length>1?_82c:null;if(_82c||_82b!="createlink"){_82d=this.document.execCommand(_82b,false,_82c);}}this.onDisplayChanged();return _82d;},queryCommandEnabled:function(_82f){if(this.disabled||!this._disabledOK){return false;}_82f=this._normalizeCommand(_82f);if(dojo.isMoz||dojo.isWebKit){if(_82f=="unlink"){return this._sCall("hasAncestorElement",["a"]);}else{if(_82f=="inserttable"){return true;}}}if(dojo.isWebKit){if(_82f=="copy"){_82f="cut";}else{if(_82f=="paste"){return true;}}}var elem=dojo.isIE?this.document.selection.createRange():this.document;try{return elem.queryCommandEnabled(_82f);}catch(e){return false;}},queryCommandState:function(_830){if(this.disabled||!this._disabledOK){return false;}_830=this._normalizeCommand(_830);try{return this.document.queryCommandState(_830);}catch(e){return false;}},queryCommandValue:function(_831){if(this.disabled||!this._disabledOK){return false;}var r;_831=this._normalizeCommand(_831);if(dojo.isIE&&_831=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_831)];}else{if(dojo.isMoz&&_831==="hilitecolor"){var _832;try{_832=this.document.queryCommandValue("styleWithCSS");}catch(e){_832=false;}this.document.execCommand("styleWithCSS",false,true);r=this.document.queryCommandValue(_831);this.document.execCommand("styleWithCSS",false,_832);}else{r=this.document.queryCommandValue(_831);}}return r;},_sCall:function(name,args){return dojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _833=false;if(dojo.isMoz){var _834=this.editNode.firstChild;while(_834){if(_834.nodeType==3){if(_834.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_833=true;this._sCall("selectElement",[_834]);break;}}else{if(_834.nodeType==1){_833=true;var tg=_834.tagName?_834.tagName.toLowerCase():"";if(/br|input|img|base|meta|area|basefont|hr|link/.test(tg)){this._sCall("selectElement",[_834]);}else{this._sCall("selectElementChildren",[_834]);}break;}}_834=_834.nextSibling;}}else{_833=true;this._sCall("selectElementChildren",[this.editNode]);}if(_833){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _835=false;if(dojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_835=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_835=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_835=true;this._sCall("selectElementChildren",[this.editNode]);}if(_835){this._sCall("collapse",[false]);}},getValue:function(_836){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_836);},_getValueAttr:function(){return this.getValue(true);},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(dojo.hitch(this,function(){this.setValue(html);}));return;}this._cursorToStart=true;if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;if(!html&&dojo.isWebKit){html="&nbsp;";}node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!dojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(!html){this._cursorToStart=true;html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;dojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;dojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&dojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_837){var ec;if(!dojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_837){dom=dojo.clone(dom);}dojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!dojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}dojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _838=dojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_838.value){_838.value+=this._SEPARATOR;}_838.value+=this.name+":"+this.getValue(true);},escapeXml:function(str,_839){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_839){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){dojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){dojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _83a=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this._webkitListener){this.disconnect(this._webkitListener);delete this._webkitListener;}if(dojo.isIE){this.iframe.onfocus=null;}this.iframe._loadFunc=null;if(this._iframeRegHandle){dijit.unregisterIframe(this._iframeRegHandle);delete this._iframeRegHandle;}if(this.textarea){var s=this.textarea.style;s.position="";s.left=s.top="";if(dojo.isIE){s.overflow=this.__overflow;this.__overflow=null;}this.textarea.value=save?this._content:this.savedContent;dojo.destroy(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}delete this.iframe;dojo.removeClass(this.domNode,this.baseClass);this.isClosed=true;this.isLoaded=false;delete this.editNode;delete this.focusNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _83a;},destroy:function(){if(!this.isClosed){this.close(false);}this.inherited(arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"").replace(/_moz_resizing="(true|false)"/gi,"");},_removeWebkitBogus:function(html){html=html.replace(/\sclass="webkit-block-placeholder"/gi,"");html=html.replace(/\sclass="apple-style-span"/gi,"");return html;},_normalizeFontStyle:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");},_inserthorizontalruleImpl:function(_83b){if(dojo.isIE){return this._inserthtmlImpl("<hr>");}return this.document.execCommand("inserthorizontalrule",false,_83b);},_unlinkImpl:function(_83c){if((this.queryCommandEnabled("unlink"))&&(dojo.isMoz||dojo.isWebKit)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);return this.document.execCommand("unlink",false,null);}return this.document.execCommand("unlink",false,_83c);},_hilitecolorImpl:function(_83d){var _83e;if(dojo.isMoz){this.document.execCommand("styleWithCSS",false,true);_83e=this.document.execCommand("hilitecolor",false,_83d);this.document.execCommand("styleWithCSS",false,false);}else{_83e=this.document.execCommand("hilitecolor",false,_83d);}return _83e;},_backcolorImpl:function(_83f){if(dojo.isIE){_83f=_83f?_83f:null;}return this.document.execCommand("backcolor",false,_83f);},_forecolorImpl:function(_840){if(dojo.isIE){_840=_840?_840:null;}return this.document.execCommand("forecolor",false,_840);},_inserthtmlImpl:function(_841){_841=this._preFilterContent(_841);var rv=true;if(dojo.isIE){var _842=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_842.item(0);while(_842.length){_842.remove(_842.item(0));}n.outerHTML=_841;}else{_842.pasteHTML(_841);}_842.select();}else{if(dojo.isMoz&&!_841.length){this._sCall("remove");}else{rv=this.document.execCommand("inserthtml",false,_841);}}return rv;},getHeaderHeight:function(){return this._getNodeChildrenHeight(this.header);},getFooterHeight:function(){return this._getNodeChildrenHeight(this.footer);},_getNodeChildrenHeight:function(node){var h=0;if(node&&node.childNodes){var i;for(i=0;i<node.childNodes.length;i++){var size=dojo.position(node.childNodes[i]);h+=size.h;}}return h;}});}if(!dojo._hasResource["dijit.Editor"]){dojo._hasResource["dijit.Editor"]=true;dojo.provide("dijit.Editor");dojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!dojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(dojo.isIE){this.events.push("onBeforeDeactivate");this.events.push("onBeforeActivate");}},postCreate:function(){this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);if(dojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.setValueDeferred=new dojo.Deferred();this.inherited(arguments);this.commands=dojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({dir:this.dir,lang:this.lang});this.header.appendChild(this.toolbar.domNode);}dojo.forEach(this.plugins,this.addPlugin,this);this.setValueDeferred.callback(true);dojo.addClass(this.iframe.parentNode,"dijitEditorIFrameContainer");dojo.addClass(this.iframe,"dijitEditorIFrame");dojo.attr(this.iframe,"allowTransparency",true);if(dojo.isWebKit){dojo.style(this.domNode,"KhtmlUserSelect","none");}this.toolbar.startup();this.onNormalizedDisplayChanged();},destroy:function(){dojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroyRecursive();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_843,_844){var args=dojo.isString(_843)?{name:_843}:_843;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};dojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=dojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_843);return;}_843=o.plugin;}if(arguments.length>1){this._plugins[_844]=_843;}else{this._plugins.push(_843);}_843.setEditor(this);if(dojo.isFunction(_843.setToolbar)){_843.setToolbar(this.toolbar);}},startup:function(){},resize:function(size){if(size){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);}},layout:function(){var _845=(this._contentBox.h-(this.getHeaderHeight()+this.getFooterHeight()+dojo._getPadBorderExtents(this.iframe.parentNode).h+dojo._getMarginExtents(this.iframe.parentNode).h));this.editingArea.style.height=_845+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},_onIEMouseDown:function(e){var _846;var b=this.document.body;var _847=b.clientWidth;var _848=b.clientHeight;var _849=b.clientLeft;var _84a=b.offsetWidth;var _84b=b.offsetHeight;var _84c=b.offsetLeft;bodyDir=b.dir?b.dir.toLowerCase():"";if(bodyDir!="rtl"){if(_847<_84a&&e.x>_847&&e.x<_84a){_846=true;}}else{if(e.x<_849&&e.x>_84c){_846=true;}}if(!_846){if(_848<_84b&&e.y>_848&&e.y<_84b){_846=true;}}if(!_846){delete this._cursorToStart;delete this._savedSelection;if(e.target.tagName=="BODY"){setTimeout(dojo.hitch(this,"placeCursorAtEnd"),0);}this.inherited(arguments);}},onBeforeActivate:function(e){this._restoreSelection();},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}if(e.target.tagName!="BODY"){this._saveSelection();}},customUndo:dojo.isIE||dojo.isWebKit,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(dojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}var r;try{r=this.inherited("execCommand",arguments);if(dojo.isWebKit&&cmd=="paste"&&!r){throw {code:1011};}}catch(e){if(e.code==1011&&/copy|cut|paste/.test(cmd)){var sub=dojo.string.substitute,_84d={cut:"X",copy:"C",paste:"V"};alert(sub(this.commands.systemShortcut,[this.commands[cmd],sub(this.commands[dojo.isMac?"appleKey":"ctrlKey"],[_84d[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},_moveToBookmark:function(b){var _84e=b.mark;var mark=b.mark;var col=b.isCollapsed;var r,_84f,_850,sel;if(mark){if(dojo.isIE){if(dojo.isArray(mark)){_84e=[];dojo.forEach(mark,function(n){_84e.push(dijit.range.getNode(n,this.editNode));},this);dojo.withGlobal(this.window,"moveToBookmark",dijit,[{mark:_84e,isCollapsed:col}]);}else{if(mark.startContainer&&mark.endContainer){sel=dijit.range.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=dijit.range.create(this.window);_84f=dijit.range.getNode(mark.startContainer,this.editNode);_850=dijit.range.getNode(mark.endContainer,this.editNode);if(_84f&&_850){r.setStart(_84f,mark.startOffset);r.setEnd(_850,mark.endOffset);sel.addRange(r);}}}}}else{sel=dijit.range.getSelection(this.window);if(sel&&sel.removeAllRanges){sel.removeAllRanges();r=dijit.range.create(this.window);_84f=dijit.range.getNode(mark.startContainer,this.editNode);_850=dijit.range.getNode(mark.endContainer,this.editNode);if(_84f&&_850){r.setStart(_84f,mark.startOffset);r.setEnd(_850,mark.endOffset);sel.addRange(r);}}}}},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._steps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();delete this._undoRedoActive;ret=true;}delete this._undoRedoActive;}return ret;},redo:function(){var ret=false;if(!this._undoRedoActive){this._undoRedoActive=true;this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();ret=true;}delete this._undoRedoActive;}return ret;},endEditing:function(_851){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_851);this._inEditing=false;}},_getBookmark:function(){var b=dojo.withGlobal(this.window,dijit.getBookmark);var tmp=[];if(b&&b.mark){var mark=b.mark;if(dojo.isIE){var sel=dijit.range.getSelection(this.window);if(!dojo.isArray(mark)){if(sel){var _852;if(sel.rangeCount){_852=sel.getRangeAt(0);}if(_852){b.mark=_852.cloneRange();}else{b.mark=dojo.withGlobal(this.window,dijit.getBookmark);}}}else{dojo.forEach(b.mark,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b.mark=tmp;}}try{if(b.mark&&b.mark.startContainer){tmp=dijit.range.getIndex(b.mark.startContainer,this.editNode).o;b.mark={startContainer:tmp,startOffset:b.mark.startOffset,endContainer:b.mark.endContainer===b.mark.startContainer?tmp:dijit.range.getIndex(b.mark.endContainer,this.editNode).o,endOffset:b.mark.endOffset};}}catch(e){b.mark=null;}}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":dijit._editor.getChildrenHtml(this.editNode),"bookmark":this._getBookmark()});}},_endEditing:function(_853){var v=dijit._editor.getChildrenHtml(this.editNode);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!dojo.isIE&&!this.iframe&&e.keyCode==dojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited(arguments);return;}var k=e.keyCode,ks=dojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){dojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){dojo.stopEvent(e);this.redo();return;}}}this.inherited(arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(dojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(dojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<dojo.keys.F1||e.keyCode>dojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){delete this._cursorToStart;if(dojo.withGlobal(this.window,"isCollapsed",dijit)){this._moveToBookmark(this._savedSelection);}delete this._savedSelection;}},onClick:function(){this.endEditing(true);this.inherited(arguments);},_setDisabledAttr:function(_854){if(!this.disabled&&_854){this._buttonEnabledPlugins=dojo.filter(this._plugins,function(p){if(p&&p.button&&!p.button.get("disabled")){p.button.set("disabled",true);return true;}return false;});}else{if(this.disabled&&!_854){dojo.forEach(this._buttonEnabledPlugins,function(p){p.button.attr("disabled",false);p.updateState&&p.updateState();});}}this.inherited(arguments);},_setStateClass:function(){this.inherited(arguments);if(this.document&&this.document.body){dojo.style(this.document.body,"color",dojo.style(this.iframe,"color"));}}});dojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _855=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _855({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _855({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _855({button:new dijit.ToolbarSeparator(),setEditor:function(_856){this.editor=_856;}});}o.plugin=p;});}if(!dojo._hasResource["dojox.data.QueryReadStore"]){dojo._hasResource["dojox.data.QueryReadStore"]=true;dojo.provide("dojox.data.QueryReadStore");dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_857){dojo.mixin(this,_857);},getValue:function(item,_858,_859){this._assertIsItem(item);if(!dojo.isString(_858)){throw new Error(this._className+".getValue(): Invalid attribute, string expected!");}if(!this.hasAttribute(item,_858)){if(_859){return _859;}console.log(this._className+".getValue(): Item does not have the attribute '"+_858+"'.");}return item.i[_858];},getValues:function(item,_85a){this._assertIsItem(item);var ret=[];if(this.hasAttribute(item,_85a)){ret.push(item.i[_85a]);}return ret;},getAttributes:function(item){this._assertIsItem(item);var ret=[];for(var i in item.i){ret.push(i);}return ret;},hasAttribute:function(item,_85b){return this.isItem(item)&&typeof item.i[_85b]!="undefined";},containsValue:function(item,_85c,_85d){var _85e=this.getValues(item,_85c);var len=_85e.length;for(var i=0;i<len;i++){if(_85e[i]==_85d){return true;}}return false;},isItem:function(_85f){if(_85f){return typeof _85f.r!="undefined"&&_85f.r==this;}return false;},isItemLoaded:function(_860){return this.isItem(_860);},loadItem:function(args){if(this.isItemLoaded(args.item)){return;}},fetch:function(_861){_861=_861||{};if(!_861.store){_861.store=this;}var self=this;var _862=function(_863,_864){if(_864.onError){var _865=_864.scope||dojo.global;_864.onError.call(_865,_863,_864);}};var _866=function(_867,_868,_869){var _86a=_868.abort||null;var _86b=false;var _86c=_868.start?_868.start:0;if(self.doClientPaging==false){_86c=0;}var _86d=_868.count?(_86c+_868.count):_867.length;_868.abort=function(){_86b=true;if(_86a){_86a.call(_868);}};var _86e=_868.scope||dojo.global;if(!_868.store){_868.store=self;}if(_868.onBegin){_868.onBegin.call(_86e,_869,_868);}if(_868.sort&&self.doClientSorting){_867.sort(dojo.data.util.sorter.createSortFunction(_868.sort,self));}if(_868.onItem){for(var i=_86c;(i<_867.length)&&(i<_86d);++i){var item=_867[i];if(!_86b){_868.onItem.call(_86e,item,_868);}}}if(_868.onComplete&&!_86b){var _86f=null;if(!_868.onItem){_86f=_867.slice(_86c,_86d);}_868.onComplete.call(_86e,_86f,_868);}};this._fetchItems(_861,_866,_862);return _861;},getFeatures:function(){return this._features;},close:function(_870){},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;},_xhrFetchHandler:function(data,_871,_872,_873){data=this._filterResponse(data);if(data.label){this._labelAttr=data.label;}var _874=data.numRows||-1;this._items=[];dojo.forEach(data.items,function(e){this._items.push({i:e,r:this});},this);var _875=data.identifier;this._itemsByIdentity={};if(_875){this._identifier=_875;var i;for(i=0;i<this._items.length;++i){var item=this._items[i].i;var _876=item[_875];if(!this._itemsByIdentity[_876]){this._itemsByIdentity[_876]=item;}else{throw new Error(this._className+":  The json data as specified by: ["+this.url+"] is malformed.  Items within the list have identifier: ["+_875+"].  Value collided: ["+_876+"]");}}}else{this._identifier=Number;for(i=0;i<this._items.length;++i){this._items[i].n=i;}}_874=this._numRows=(_874===-1)?this._items.length:_874;_872(this._items,_871,_874);this._numRows=_874;},_fetchItems:function(_877,_878,_879){var _87a=_877.serverQuery||_877.query||{};if(!this.doClientPaging){_87a.start=_877.start||0;if(_877.count){_87a.count=_877.count;}}if(!this.doClientSorting&&_877.sort){var _87b=[];dojo.forEach(_877.sort,function(sort){if(sort&&sort.attribute){_87b.push((sort.descending?"-":"")+sort.attribute);}});_87a.sort=_87b.join(",");}if(this.doClientPaging&&this._lastServerQuery!==null&&dojo.toJson(_87a)==dojo.toJson(this._lastServerQuery)){this._numRows=(this._numRows===-1)?this._items.length:this._numRows;_878(this._items,_877,this._numRows);}else{var _87c=this.requestMethod.toLowerCase()=="post"?dojo.xhrPost:dojo.xhrGet;var _87d=_87c({url:this.url,handleAs:"json-comment-optional",content:_87a});_87d.addCallback(dojo.hitch(this,function(data){this._xhrFetchHandler(data,_877,_878,_879);}));_87d.addErrback(function(_87e){_879(_87e,_877);});this.lastRequestHash=new Date().getTime()+"-"+String(Math.random()).substring(2);this._lastServerQuery=dojo.mixin({},_87a);}},_filterResponse:function(data){return data;},_assertIsItem:function(item){if(!this.isItem(item)){throw new Error(this._className+": Invalid item argument.");}},_assertIsAttribute:function(_87f){if(typeof _87f!=="string"){throw new Error(this._className+": Invalid attribute argument ('"+_87f+"').");}},fetchItemByIdentity:function(_880){if(this._itemsByIdentity){var item=this._itemsByIdentity[_880.identity];if(!(item===undefined)){if(_880.onItem){var _881=_880.scope?_880.scope:dojo.global;_880.onItem.call(_881,{i:item,r:this});}return;}}var _882=function(_883,_884){var _885=_880.scope?_880.scope:dojo.global;if(_880.onError){_880.onError.call(_885,_883);}};var _886=function(_887,_888){var _889=_880.scope?_880.scope:dojo.global;try{var item=null;if(_887&&_887.length==1){item=_887[0];}if(_880.onItem){_880.onItem.call(_889,item);}}catch(error){if(_880.onError){_880.onError.call(_889,error);}}};var _88a={serverQuery:{id:_880.identity}};this._fetchItems(_88a,_886,_882);},getIdentity:function(item){var _88b=null;if(this._identifier===Number){_88b=item.n;}else{_88b=item.i[this._identifier];}return _88b;},getIdentityAttributes:function(item){return [this._identifier];}});}if(!dojo._hasResource["dojox.form.Rating"]){dojo._hasResource["dojox.form.Rating"]=true;dojo.provide("dojox.form.Rating");dojo.declare("dojox.form.Rating",dijit.form._FormWidget,{templateString:null,numStars:3,value:0,constructor:function(_88c){dojo.mixin(this,_88c);var tpl="<div dojoAttachPoint=\"domNode\" class=\"dojoxRating dijitInline\">"+"<input type=\"hidden\" value=\"0\" dojoAttachPoint=\"focusNode\" /><ul>${stars}</ul>"+"</div>";var _88d="<li class=\"dojoxRatingStar dijitInline\" dojoAttachEvent=\"onclick:onStarClick,onmouseover:_onMouse,onmouseout:_onMouse\" value=\"${value}\"></li>";var _88e="";for(var i=0;i<this.numStars;i++){_88e+=dojo.string.substitute(_88d,{value:i+1});}this.templateString=dojo.string.substitute(tpl,{stars:_88e});},postCreate:function(){this.inherited(arguments);this._renderStars(this.value);},_onMouse:function(evt){if(this._hovering){var _88f=+dojo.attr(evt.target,"value");this.onMouseOver(evt,_88f);this._renderStars(_88f,true);}else{this._renderStars(this.value);}},_renderStars:function(_890,_891){dojo.query(".dojoxRatingStar",this.domNode).forEach(function(star,i){if(i+1>_890){dojo.removeClass(star,"dojoxRatingStarHover");dojo.removeClass(star,"dojoxRatingStarChecked");}else{dojo.removeClass(star,"dojoxRatingStar"+(_891?"Checked":"Hover"));dojo.addClass(star,"dojoxRatingStar"+(_891?"Hover":"Checked"));}});},onStarClick:function(evt){var _892=+dojo.attr(evt.target,"value");this.setAttribute("value",_892==this.value?0:_892);this._renderStars(this.value);this.onChange(this.value);},onMouseOver:function(){},setAttribute:function(key,_893){this.inherited("setAttribute",arguments);if(key=="value"){this._renderStars(this.value);this.onChange(this.value);}}});}if(!dojo._hasResource["dojox.form.CheckedMultiSelect"]){dojo._hasResource["dojox.form.CheckedMultiSelect"]=true;dojo.provide("dojox.form.CheckedMultiSelect");dojo.declare("dojox.form._CheckedMultiSelectItem",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templateString:dojo.cache("dojox.form","resources/_CheckedMultiSelectItem.html","<div class=\"dijitReset ${baseClass}\"\r\n\t><input class=\"${baseClass}Box\" dojoType=\"dijit.form.CheckBox\" dojoAttachPoint=\"checkBox\" \r\n\t\tdojoAttachEvent=\"_onClick:_changeBox\" type=\"${_type.type}\" baseClass=\"${_type.baseClass}\"\r\n\t/><div class=\"dijitInline ${baseClass}Label\" dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick:_onClick\"></div\r\n></div>\r\n"),baseClass:"dojoxMultiSelectItem",option:null,parent:null,disabled:false,readOnly:false,postMixInProperties:function(){if(this.parent.multiple){this._type={type:"checkbox",baseClass:"dijitCheckBox"};}else{this._type={type:"radio",baseClass:"dijitRadio"};}this.disabled=this.option.disabled=this.option.disabled||false;this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.labelNode.innerHTML=this.option.label;},_changeBox:function(){if(this.get("disabled")||this.get("readOnly")){return;}if(this.parent.multiple){this.option.selected=this.checkBox.attr("value")&&true;}else{this.parent.attr("value",this.option.value);}this.parent._updateSelection();this.parent.focus();},_onClick:function(e){if(this.get("disabled")||this.get("readOnly")){dojo.stopEvent(e);}else{this.checkBox._onClick(e);}},_updateBox:function(){this.checkBox.attr("value",this.option.selected);},_setDisabledAttr:function(_894){this.disabled=_894||this.option.disabled;this.checkBox.attr("disabled",this.disabled);dojo.toggleClass(this.domNode,"dojoxMultiSelectDisabled",this.disabled);},_setReadOnlyAttr:function(_895){this.checkBox.attr("readOnly",_895);this.readOnly=_895;}});dojo.declare("dojox.form.CheckedMultiSelect",dijit.form._FormSelectWidget,{templateString:dojo.cache("dojox.form","resources/CheckedMultiSelect.html","<div class=\"dijit dijitReset dijitInline\" dojoAttachEvent=\"onmousedown:_onMouseDown,onclick:focus\"\r\n\t><select class=\"${baseClass}Select\" multiple=\"true\" dojoAttachPoint=\"containerNode,focusNode\"></select\r\n\t><div dojoAttachPoint=\"wrapperDiv\"></div\r\n></div>\r\n"),baseClass:"dojoxMultiSelect",_onMouseDown:function(e){dojo.stopEvent(e);},_addOptionItem:function(_896){this.wrapperDiv.appendChild(new dojox.form._CheckedMultiSelectItem({option:_896,parent:this}).domNode);},_updateSelection:function(){this.inherited(arguments);dojo.forEach(this._getChildren(),function(c){c._updateBox();});},_getChildren:function(){return dojo.map(this.wrapperDiv.childNodes,function(n){return dijit.byNode(n);});},invertSelection:function(_897){dojo.forEach(this.options,function(i){i.selected=!i.selected;});this._updateSelection();},_setDisabledAttr:function(_898){this.inherited(arguments);dojo.forEach(this._getChildren(),function(node){if(node&&node.attr){node.attr("disabled",_898);}});},_setReadOnlyAttr:function(_899){if("readOnly" in this.attributeMap){this._attrToDom("readOnly",_899);}this.readOnly=_899;dojo.forEach(this._getChildren(),function(node){if(node&&node.attr){node.attr("readOnly",_899);}});},uninitialize:function(){dojo.forEach(this._getChildren(),function(_89a){_89a.destroyRecursive();});this.inherited(arguments);}});}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(_89b,_89c){if(_89c>=0){var s=_89b.style;var v=_89c+"px";if(_89b&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_89d,_89e,_89f,_8a0){var evts=(_8a0?_8a0:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_89e.connect(_89d,"on"+evts[i],_89f);}};dgu.removeNode=function(_8a1){_8a1=dojo.byId(_8a1);_8a1&&_8a1.parentNode&&_8a1.parentNode.removeChild(_8a1);return _8a1;};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(_8a2,_8a3,_8a4){if(_8a2.length<=_8a3){_8a2[_8a3]=_8a4;}else{_8a2.splice(_8a3,0,_8a4);}};dgu.arrayRemove=function(_8a5,_8a6){_8a5.splice(_8a6,1);};dgu.arraySwap=function(_8a7,inI,inJ){var _8a8=_8a7[inI];_8a7[inI]=_8a7[inJ];_8a7[inJ]=_8a8;};})();}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(_8a9){this.grid=_8a9;this.connections=[];if(dojo.isIE){this.connections.push(dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus")));}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_8aa,_8ab){if(this.grid.singleClickEdit||this.isEditRow(_8ab)){this.setEditCell(_8aa,_8ab);}else{this.apply();}if(this.isEditing()||(_8aa&&_8aa.editable&&_8aa.alwaysEditing)){this._focusEditor(_8aa,_8ab);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_8ac){if(_8ac.index==this.info.rowIndex){_8ac.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(_8ad,_8ae){return (this.info.rowIndex===_8ad)&&(this.info.cell.index==_8ae);},isEditRow:function(_8af){return this.info.rowIndex===_8af;},setEditCell:function(_8b0,_8b1){if(!this.isEditCell(_8b1,_8b0.index)&&this.grid.canEdit&&this.grid.canEdit(_8b0,_8b1)){this.start(_8b0,_8b1,this.isEditRow(_8b1)||_8b0.editable);}},_focusEditor:function(_8b2,_8b3){dojox.grid.util.fire(_8b2,"focus",[_8b3]);},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(_8b4,_8b5,_8b6){this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_8b5)){this.applyRowEdit();this.grid.updateRow(_8b5);}if(_8b6){this.info={cell:_8b4,rowIndex:_8b5};this.grid.doStartEdit(_8b4,_8b5);this.grid.updateRow(_8b5);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_8b4,_8b5);this._doCatchBoomerang();},_editorDo:function(_8b7){var c=this.info.cell;if(c&&c.editable){c[_8b7](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_8b8,_8b9,_8ba){if(this.grid.canEdit(_8b9,_8ba)){this.grid.doApplyCellEdit(_8b8,_8ba,_8b9.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_8bb,_8bc){var c=this.info.cell;if(this.isEditRow(_8bb)&&(!_8bc||c.view==_8bc)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_8bd,_8be){var c=this.info.cell;if(this.isEditRow(_8be)&&c.view==_8bd&&c.editable){c.restore(c,this.info.rowIndex);}}});}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(_8bf){var i=_8bf;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_8bf);this.edit.styleRow(_8bf);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _8c0;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_8c0=this.focus.getHeaderIndex();if(_8c0>=0){this.setSortIndex(_8c0);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _8c1=this.edit.isEditing();this.edit.apply();if(!_8c1){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _8c2=this.focus.focusView||this.views.views[0];_8c2.content.decorateEvent(e);this.onRowClick(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_8c0=this.focus.getHeaderIndex();if(_8c0>=0){this.setSortIndex(_8c0);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 _8c3=e.keyCode;dojo.stopEvent(e);_8c0=this.focus.getHeaderIndex();if(_8c0>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_8c0,(_8c3==dk.LEFT_ARROW?-1:1)*5);}else{var _8c4=(_8c3==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_8c4*=-1;}this.focus.move(0,_8c4);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}this.onRowClick(e);},onCellDblClick:function(e){if(this._click.length>1&&dojo.isIE){this.edit.setEditCell(this._click[1].cell,this._click[1].rowIndex);}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){this.edit.setEditCell(this._click[0].cell,this._click[0].rowIndex);}else{this.edit.setEditCell(e.cell,e.rowIndex);}}this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_8c5,_8c6){this.edit.cellFocus(_8c5,_8c6);},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(_8c7,_8c8){},onApplyCellEdit:function(_8c9,_8ca,_8cb){},onCancelEdit:function(_8cc){},onApplyEdit:function(_8cd){},onCanSelect:function(_8ce){return true;},onCanDeselect:function(_8cf){return true;},onSelected:function(_8d0){this.updateRowStyles(_8d0);},onDeselected:function(_8d1){this.updateRowStyles(_8d1);},onSelectionChanged:function(){}});}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(_8d2){this.grid=_8d2;this.cell=null;this.rowIndex=-1;this._connects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);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._initColumnHeaders();},isFocusCell:function(_8d3,_8d4){return (this.cell==_8d3)&&(this.rowIndex==_8d4);},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(_8d5){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_8d5);if(_8d5){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);this.blurHeader();dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){var _8d6=this._findHeaderCells();for(var i=0;i<_8d6.length;i++){this._connects.push(dojo.connect(_8d6[i],"onfocus",this,"doColHeaderFocus"));this._connects.push(dojo.connect(_8d6[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _8d7=dojo.query("th",this.grid.viewsHeaderNode);var _8d8=[];for(var i=0;i<_8d7.length;i++){var _8d9=_8d7[i];var _8da=dojo.hasAttr(_8d9,"tabIndex");var _8db=dojo.attr(_8d9,"tabIndex");if(_8da&&_8db<0){_8d8.push(_8d9);}}return _8d8;},_setActiveColHeader:function(_8dc,_8dd,_8de){dojo.attr(this.grid.domNode,"aria-activedescendant",_8dc.id);if(_8de!=null&&_8de>=0&&_8de!=_8dd){dojo.toggleClass(this._findHeaderCells()[_8de],this.focusClass,false);}dojo.toggleClass(_8dc,this.focusClass,true);this._colHeadNode=_8dc;this._colHeadFocusIdx=_8dd;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,_8df){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:(_8df?_8df:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_8e0){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_8e0);info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _8e1=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_8e1){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 _8e2=this.focusView;if(!_8e2){for(var i=0,_8e3;(_8e3=this.grid.views.views[i]);i++){if(_8e3.headerNode){_8e2=_8e3;break;}}}return (_8e2&&dojo.getComputedStyle(_8e2.headerNode).display=="none");},colSizeAdjust:function(e,_8e4,_8e5){var _8e6=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_8e7;(_8e7=this.grid.views.views[i]);i++){if(_8e7.header.tableMap.map){view=_8e7;break;}}}var _8e8=_8e6[_8e4];if(!view||(_8e4==_8e6.length-1&&_8e4===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_8e8;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _8e9={l:_8e5};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_8e9);view.update();}},styleRow:function(_8ea){return;},setFocusIndex:function(_8eb,_8ec){this.setFocusCell(this.grid.getCell(_8ec),_8eb);},setFocusCell:function(_8ed,_8ee){if(_8ed&&!this.isFocusCell(_8ed,_8ee)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_8ed;this.rowIndex=_8ee;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 _8ef=this.grid.getCell(col);if(!this.isLastFocusCell()&&!_8ef.editable){this.cell=_8ef;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 _8f0=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_8f0.editable){this.cell=_8f0;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_8f1,_8f2){var _8f3=_8f2<0?-1:1;if(this.isNavHeader()){var _8f4=this._findHeaderCells();var _8f5=currentIdx=dojo.indexOf(_8f4,this._colHeadNode);currentIdx+=_8f2;while(currentIdx>=0&&currentIdx<_8f4.length&&_8f4[currentIdx].style.display=="none"){currentIdx+=_8f3;}if((currentIdx>=0)&&(currentIdx<_8f4.length)){this._setActiveColHeader(_8f4[currentIdx],currentIdx,_8f5);}}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+_8f1));if(_8f1){if(_8f1>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_8f1<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+_8f2));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_8f3;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}this.setFocusIndex(row,col);if(_8f1){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 _8f6=(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(_8f7){this.tabbingOut=true;_8f7.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_8f8){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _8f9=true;var _8fa=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_8fa){var _8fb=0;var cell=this.grid.getCell(_8fb);if(cell.hidden){_8fb=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_8fb);}else{if(this.cell&&!_8fa){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_8f9=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _8f9;},focusHeader:function(){var _8fc=this._findHeaderCells();var _8fd=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=_8fc[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_8fc.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_8fc[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,_8fd);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 _8fe=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_8fe);this._contextMenuBindNode=_8fe;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);}});}if(!dojo._hasResource["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 _8ff={"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 _8ff){ds.fontSize=p;_8ff[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _8ff;};var _900=null;dhm.getCachedFontMeasurements=function(_901){if(_901||!_900){_900=dhm.getFontMeasurements();}return _900;};var _902=null,_903={};dhm.getTextBox=function(text,_904,_905){var m,s;if(!_902){m=_902=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=_902;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_904){for(var i in _904){if(i in _903){continue;}s[i]=_904[i];}}if(arguments.length>2&&_905){m.className=_905;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _906={w:16,h:16};dhm.getScrollbar=function(){return {w:_906.w,h:_906.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_907){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);_906.w=n.offsetWidth-n.clientWidth;_906.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._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _908=function(_909){var i=0,n,p=_909.parentNode;while((n=p.childNodes[i++])){if(n==_909){return i-1;}}return -1;};var _90a=function(_90b){if(!_90b){return;}var _90c=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_90b,true);};var ws=dijit.registry.filter(_90c);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _90d=function(_90e){var node=dojo.byId(_90e);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _90f=function(_910,_911){var _912=[];var i=0,n;while((n=_910.childNodes[i])){i++;if(_90d(n)==_911){_912.push(n);}}return _912;};var _913=function(_914){return _90f(_914,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_915){this.setContentNodes(_915);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(_916,_917,_918){switch(arguments.length){case 3:this.rowsPerPage=_918;case 2:this.keepRows=_917;case 1:this.rowCount=_916;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(_919,_91a){return _919?(Math.ceil(_919/_91a)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_91b){this.keepRows=_91b;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_91c){this.contentNodes=_91c;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(_91d){this.invalidateNodes();this.rowCount=_91d;var _91e=this.pageCount;if(_91e===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_91e){for(var i=_91e-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_91e){this.height+=this.defaultPageHeight*(this.pageCount-_91e-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_91f){return Boolean(this.getDefaultPageNode(_91f));},measurePage:function(_920){if(this.grid.rowHeight){var _921=this.grid.rowHeight+1;return ((_920+1)*this.rowsPerPage>this.rowCount?this.rowCount-_920*this.rowsPerPage:this.rowsPerPage)*_921;}var n=this.getDefaultPageNode(_920);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_922,_923){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_922].style.top=_923+"px";}},repositionPages:function(_924){var _925=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_925[_924];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_924):0);for(var p=_924+1;p<=last;p++){n=_925[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_926){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_926]);}},preparePage:function(_927,_928){var p=(_928?this.popPage():null);for(var i=0;i<this.colCount;i++){var _929=this.pageNodes[i];var _92a=(p===null?this.createPageNode():this.invalidatePageNode(p,_929));_92a.pageIndex=_927;_929[_927]=_92a;}},renderPage:function(_92b){var _92c=[];var i,j;for(i=0;i<this.colCount;i++){_92c[i]=this.pageNodes[i][_92b];}for(i=0,j=_92b*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_92c);}},removePage:function(_92d){for(var i=0,j=_92d*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_92e){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_92e,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_92f){},pacifying:false,pacifyTicks:200,setPacifying:function(_930){if(this.pacifying!=_930){this.pacifying=_930;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _931=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _931;},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 _932=(!this._invalidating);if(!_932){var ah=this.grid.attr("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_932=true;}}if(_932){this.needPage(this.page,this.pageTop);}var _933=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _934=this.getPageHeight(this.page);this.averageRowHeight=(_934>0&&_933>0)?(_934/_933):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _935=this.pageCount-1;var _936=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_935]=_936;return _936;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_937,_938){if(this.pageExists(_937)){var oh=this.getPageHeight(_937);var h=(this.measurePage(_937));if(h===undefined){h=oh;}this.pageHeights[_937]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.attr("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_938)){this.grid.sizeChange();}else{this.repositionPages(_937);}}return h;}return 0;},rowHeightChanged:function(_939){this.updatePageHeight(Math.floor(_939/this.rowsPerPage),false);},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(_93a){var ph=this.pageHeights[_93a];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_93b){return this.stack.push(_93b);},popPage:function(){return this.stack.shift();},findPage:function(_93c){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_93c){break;}}this.page=i;this.pageTop=h;},buildPage:function(_93d,_93e,_93f){this.preparePage(_93d,_93e);this.positionPage(_93d,_93f);this.installPage(_93d);this.renderPage(_93d);this.pushPage(_93d);},needPage:function(_940,_941){var h=this.getPageHeight(_940),oh=h;if(!this.pageExists(_940)){this.buildPage(_940,this.keepPages&&(this.stack.length>=this.keepPages),_941);h=this.updatePageHeight(_940,true);}else{this.positionPage(_940,_941);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_942){this.grid.scrollTop=_942;if(this.colCount){this.startPacify();this.findPage(_942);var h=this.height;var b=this.getScrollBottom(_942);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,_942);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_943){return (this.windowHeight>=0?_943+this.windowHeight:-1);},processNodeEvent:function(e,_944){var t=e.target;while(t&&(t!=_944)&&t.parentNode&&(t.parentNode.parentNode!=_944)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_944)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_908(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_945,_946){},removeRow:function(_947){},getDefaultPageNode:function(_948){return this.getDefaultNodes()[_948];},positionPageNode:function(_949,_94a){},getPageNodePosition:function(_94b){return _94b.offsetTop;},invalidatePageNode:function(_94c,_94d){var p=_94d[_94c];if(p){delete _94d[_94c];this.removePage(_94c,p);_90a(p);p.innerHTML="";}return p;},getPageRow:function(_94e){return _94e*this.rowsPerPage;},getLastPageRow:function(_94f){return Math.min(this.rowCount,this.getPageRow(_94f+1))-1;},getFirstVisibleRow:function(_950,_951,_952){if(!this.pageExists(_950)){return 0;}var row=this.getPageRow(_950);var _953=this.getDefaultNodes();var rows=_913(_953[_950]);for(var i=0,l=rows.length;i<l&&_951<_952;i++,row++){_951+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_954,_955,_956){if(!this.pageExists(_954)){return 0;}var _957=this.getDefaultNodes();var row=this.getLastPageRow(_954);var rows=_913(_957[_954]);for(var i=rows.length-1;i>=0&&_955>_956;i--,row--){_955-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_958){var _959=this.getDefaultNodes();var rows=_913(_959[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_958){this.offset=h-(t-_958);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_95a){var _95b=Math.floor(_95a/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_95b;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.needPage(_95b,this.pageTop);var _95c=this.getDefaultNodes();var rows=_913(_95c[_95b]);var r=_95a-this.rowsPerPage*_95b;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 _95d=function(_95e){try{dojox.grid.util.fire(_95e,"focus");dojox.grid.util.fire(_95e,"select");}catch(e){}};var _95f=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(_960){this._props=_960||{};dojo.mixin(this,_960);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_961,_962){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_961!=this.defaultValue&&f)?f.apply(s,_962):_961;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(_963,_964){var f,i=this.grid.edit.info,d=this.get?this.get(_963,_964):(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==_963&&i.cell==this))){return this.formatEditing(d,_963);}else{return this._defaultFormat(d,[d,_963,this]);}},formatEditing:function(_965,_966){},getNode:function(_967){return this.view.getCellNode(_967,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_968){return (this.getNode(_968)||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(_969,_96a){this.grid.edit.applyCellEdit(_969,this,_96a);},cancelEdit:function(_96b){this.grid.doCancelEdit(_96b);},_onEditBlur:function(_96c){if(this.grid.edit.isEditCell(_96c,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_96d,_96e){if(this.commitOnBlur){dojo.connect(_96d,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_96e),250);});}},needFormatNode:function(_96f,_970){this._formatPending=true;_95f(this,"_formatNode",_96f,_970);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_971,_972){if(this._formatPending){this._formatPending=false;dojo.setSelectable(this.grid.domNode,true);this.formatNode(this.getEditNode(_972),_971,_972);}},formatNode:function(_973,_974,_975){if(dojo.isIE){_95f(this,"focus",_975,_973);}else{this.focus(_975,_973);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_976){return this.getEditNode(_976)[this._valueProp];},setValue:function(_977,_978){var n=this.getEditNode(_977);if(n){n[this._valueProp]=_978;}},focus:function(_979,_97a){_95d(_97a||this.getEditNode(_979));},save:function(_97b){this.value=this.value||this.getValue(_97b);},restore:function(_97c){this.setValue(_97c,this.value);},_finish:function(_97d){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_97e){this.applyEdit(this.getValue(_97e),_97e);this._finish(_97e);},cancel:function(_97f){this.cancelEdit(_97f);this._finish(_97f);}});dgc._Base.markupFactory=function(node,_980){var d=dojo;var _981=d.trim(d.attr(node,"formatter")||"");if(_981){_980.formatter=dojo.getObject(_981)||_981;}var get=d.trim(d.attr(node,"get")||"");if(get){_980.get=dojo.getObject(get);}var _982=function(attr,cell,_983){var _984=d.trim(d.attr(node,attr)||"");if(_984){cell[_983||attr]=!(_984.toLowerCase()=="false");}};_982("sortDesc",_980);_982("editable",_980);_982("alwaysEditing",_980);_982("noresize",_980);_982("draggable",_980);var _985=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_985){_980.defaultValue=_985;}var _986=function(attr,cell,_987){var _988=d.trim(d.attr(node,attr)||"")||undefined;if(_988){cell[_987||attr]=_988;}};_986("styles",_980);_986("headerStyles",_980);_986("cellStyles",_980);_986("classes",_980);_986("headerClasses",_980);_986("cellClasses",_980);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_989,_98a){this.needFormatNode(_989,_98a);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_989+"\">";},formatNode:function(_98b,_98c,_98d){this.inherited(arguments);this.registerOnBlur(_98b,_98d);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_98e){this.inherited(arguments);var n=this.getEditNode(_98e);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_98f){dgc._Base.markupFactory(node,_98f);var d=dojo;var _990=d.trim(d.attr(node,"keyFilter")||"");if(_990){_98f.keyFilter=new RegExp(_990);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_991){return _991+1;}});dgc.RowIndex.markupFactory=function(node,_992){dgc.Cell.markupFactory(node,_992);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_993){this.values=this.values||this.options;},formatEditing:function(_994,_995){this.needFormatNode(_994,_995);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){h.push("<option",(_994==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_996){var n=this.getEditNode(_996);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 _997=d.trim(d.attr(node,"options")||"");if(_997){var o=_997.split(",");if(o[0]!=_997){cell.options=o;}}var _998=d.trim(d.attr(node,"values")||"");if(_998){var v=_998.split(",");if(v[0]!=_998){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_999,_99a){this.formatNode(this.getEditNode(_99a),_999,_99a);},applyStaticValue:function(_99b){var e=this.grid.edit;e.applyCellEdit(this.getValue(_99b),this,_99b);e.start(this,_99b,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_99c,_99d){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_99c?" 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 _99e=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _99f=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _9a0=function(_9a1,_9a2){return _9a1&&((_9a1.rows||0)[_9a2]||_9a1.childNodes[_9a2]);};var _9a3=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _9a4=function(_9a5,_9a6){for(var n=_9a5;n&&_9a6(n);n=n.parentNode){}return n;};var _9a7=function(_9a8){var name=_9a8.toUpperCase();return function(node){return node.tagName!=name;};};var _9a9=dojox.grid.util.rowIndexTag;var _9aa=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(_9ab,_9ac,_9ad,_9ae){var _9af=[],html;if(_9ae){var _9b0=_9ab.index!=_9ab.grid.getSortIndex()?"":_9ab.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_9ab.id){_9ab.id=this.grid.id+"Hdr"+_9ab.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_9b0,"id=\"",_9ab.id,"\""];}else{var _9b1=this.grid.editable&&!_9ab.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_9b1];}if(_9ab.colSpan){html.push(" colspan=\"",_9ab.colSpan,"\"");}if(_9ab.rowSpan){html.push(" rowspan=\"",_9ab.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_9ab.classes){html.push(_9ab.classes," ");}if(_9ad){html.push(_9ad," ");}_9af.push(html.join(""));_9af.push("");html=["\" idx=\"",_9ab.index,"\" style=\""];if(_9ac&&_9ac[_9ac.length-1]!=";"){_9ac+=";";}html.push(_9ab.styles,_9ac||"",_9ab.hidden?"display:none;":"");if(_9ab.unitWidth){html.push("width:",_9ab.unitWidth,";");}_9af.push(html.join(""));_9af.push("");html=["\""];if(_9ab.attrs){html.push(" ",_9ab.attrs);}html.push(">");_9af.push(html.join(""));_9af.push("");_9af.push(_9ae?"</th>":"</td>");return _9af;},isCellNode:function(_9b2){return Boolean(_9b2&&_9b2!=dojo.doc&&dojo.attr(_9b2,"idx"));},getCellNodeIndex:function(_9b3){return _9b3?Number(dojo.attr(_9b3,"idx")):-1;},getCellNode:function(_9b4,_9b5){for(var i=0,row;(row=_9a0(_9b4.firstChild,i));i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_9b5){return cell;}}}return null;},findCellTarget:function(_9b6,_9b7){var n=_9b6;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_9aa in n.offsetParent.parentNode&&n.offsetParent.parentNode[_9aa]!=this.view.id))&&(n!=_9b7)){n=n.parentNode;}return n!=_9b7?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(_9b8,_9b9){var n=_9b8;while(n&&(n!=this.domNode)&&(!(_9b9 in n)||(_9aa in n&&n[_9aa]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_9ba){return this.findTarget(_9ba,_9a9);},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 _9bb=this.grid.get,_9bc=this.view.structure.cells;for(var j=0,row;(row=_9bc[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_9bb;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_9bd,_9be){var html=this.getTableArray(),v=this.view,_9bf=v.structure.cells,item=this.grid.getItem(_9be);dojox.grid.util.fire(this.view,"onBeforeRow",[_9be,_9bf]);for(var j=0,row;(row=_9bf[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(_9be,item);m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_9a9];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(_9c0,_9c1){var html=this.getTableArray(),_9c2=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_9c2]);for(var j=0,row;(row=_9c2[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_9c3;(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+"'";}}_9c3=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_9c3[5]=(_9c1!=undefined?_9c1:_9c0(cell));_9c3[3]=cell.customStyles.join(";");_9c3[1]=cell.customClasses.join(" ");html.push(_9c3.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz){n=_9a4(e.target,_9a7("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_9a4(n,_9a7("table"));x-=(table&&table.offsetLeft)||0;}}n=_9a4(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=_99e(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_9c4){var _9c5=dojo.contentBox(e.sourceView.headerNode);if(_9c4){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _9c6=dojo.contentBox(e.sourceView.domNode);var l=e.clientX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_9c6.h+_9c5.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _9c7=[],_9c8=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_9c8[i]);i++){_9c7.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _9c9=e.grid.views.views;var _9ca=[];for(var j=view.idx+adj,_9cb;(_9cb=_9c9[j]);j=j+adj){_9ca.push({node:_9cb.headerNode,left:window.parseInt(_9cb.headerNode.style.left)});}var _9cc=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:_9c5.w,table:_9cc,tw:dojo.contentBox(_9cc).w,spanners:_9c7,followers:_9ca};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(_9cd,_9ce,_9cf){var _9d0=_9cf.l;var data={deltaX:_9d0,w:_9cd.w+(dojo._isBodyLtr()?_9d0:-_9d0),vw:_9cd.vw+_9d0,tw:_9cd.tw+_9d0};this.dragRecord={inDrag:_9cd,mover:_9ce,leftTop:_9cf};if(data.w>=this.minColWidth){if(!_9ce){this.doResizeNow(_9cd,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_9d1){if(this.dragRecord){var _9d2=this.dragRecord.leftTop;var _9d3=dojo._isBodyLtr()?_9d2.l:-_9d2.l;_9d3+=Math.max(_9d1.w+_9d3,this.minColWidth)-(_9d1.w+_9d3);if(dojo.isWebKit&&_9d1.spanners.length){_9d3+=dojo._getPadBorderExtents(_9d1.spanners[0].node).w;}var data={deltaX:_9d3,w:_9d1.w+_9d3,vw:_9d1.vw+_9d3,tw:_9d1.tw+_9d3};this.doResizeNow(_9d1,data);}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_9d1.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_9d1.index);},doResizeNow:function(_9d4,data){_9d4.view.convertColPctToFixed();if(_9d4.view.flexCells&&!_9d4.view.testFlexCells()){var t=_9a3(_9d4.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_9d4.spanners[i]);i++){sw=s.width+data.deltaX;s.node.style.width=sw+"px";_9d4.view.setColWidth(s.index,sw);}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_9d4.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_9d4.node.style.width=data.w+"px";_9d4.view.setColWidth(_9d4.index,data.w);_9d4.view.headerNode.style.width=data.vw+"px";_9d4.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_9d4.view.headerNode.scrollLeft=_9d4.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_9d5){var _9d6=_9d5.length;if(!_9d6){return;}this.map=[];var row;for(var k=0;(row=_9d5[k]);k++){this.map[k]=[];}for(var j=0;(row=_9d5[j]);j++){for(var i=0,x=0,cell,_9d7,_9d8;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_9d8=cell.rowSpan||1;_9d7=cell.colSpan||1;for(var y=0;y<_9d8;y++){for(var s=0;s<_9d7;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_9d7;}}},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(_9d9,_9da){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_9da&&cell.r==_9d9){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_9db,_9dc,_9dd){var row=_9db&&_9db.rows[_9dc];return row&&row.cells[_9dd];},_findOverlappingNodes:function(_9de,_9df,_9e0){var _9e1=[];var m=this.getMapCoords(_9df,_9e0);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(_9de,rw.r,rw.c):null);if(n){_9e1.push(n);}}return _9e1;},findOverlappingNodes:function(_9e2){return this._findOverlappingNodes(_9a3(_9e2),_99f(_9e2.parentNode),_99e(_9e2));}});})();}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _9e3=function(_9e4,_9e5){return _9e4.style.cssText==undefined?_9e4.getAttribute("style"):_9e4.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" wairole=\"presentation\">\r\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" wairole=\"presentation\">\r\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" wairole=\"presentation\">\r\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" wairole=\"row\"></div>\r\n\t\t</div>\r\n\t</div>\r\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" wairole=\"presentation\" />\r\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" wairole=\"presentation\" />\r\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" wairole=\"presentation\">\r\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" wairole=\"presentation\"></div>\r\n\t</div>\r\n</div>\r\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_9e6){var vs=(this.structure=_9e6);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(_9e7){if(_9e7){dojo.forEach(dojo.query("[widgetId]",_9e7).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(_9e8,_9e9){this._onBeforeRow(_9e8,_9e9);if(_9e8>=0){this._cleanupRowWidgets(this.getRowNode(_9e8));}},onAfterRow:function(_9ea,_9eb,_9ec){this._onAfterRow(_9ea,_9eb,_9ec);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_9ec),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _9ed=window.parseInt(dojo.attr(n,"cellIdx"),10);var _9ee=g.getCell(_9ed);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _9ef=this.hasVScrollbar();var _9f0=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_9f0||_9f0=="hidden"){_9ef=false;}else{if(_9f0=="scroll"){_9ef=true;}}return (_9ef?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?h.firstChild.offsetWidth:0;},setColumnsWidth:function(_9f1){this.headerContentNode.firstChild.style.width=_9f1+"px";if(this.viewWidth){this.viewWidth=_9f1+"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 _9f2=this.grid.layout.cells;var _9f3=dojo.hitch(this,function(node,_9f4){!dojo._isBodyLtr()&&(_9f4=!_9f4);var inc=_9f4?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_9f2[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_9f2[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _9f5="dojoxGrid_bottomMarker";var _9f6="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_9f5);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_9f6);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_9f5,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_9f6,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _9f7=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_9f8){var src=this.source;if(src.current==src.targetAnchor&&src.before==_9f8){return;}if(src.targetAnchor&&_9f3(src.targetAnchor,src.before)){src._removeItemClass(_9f3(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_9f8);var _9f9=_9f8?src.targetAnchor:_9f3(src.targetAnchor,src.before);var _9fa=0;if(!_9f9){_9f9=src.targetAnchor;_9fa=dojo.contentBox(_9f9).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_9f9,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_9fa);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_9f7+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_9f3(src.targetAnchor,src.before)){src._addItemClass(_9f3(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_9f3(src.targetAnchor,src.before)){src._removeItemClass(_9f3(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(_9fb,_9fc,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _9fd=this.grid.views.views;var _9fe=_9fd[_9fb.viewIndex];var _9ff=_9fd[this.index];if(_9ff!=_9fe){_9fe.convertColPctToFixed();_9ff.convertColPctToFixed();}},_onDndDrop:function(_a00,_a01,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 _a02=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_a01[0]).w;if(_a00.viewIndex!==this.index){var _a03=this.grid.views.views;var _a04=_a03[_a00.viewIndex];var _a05=_a03[this.index];if(_a04.viewWidth&&_a04.viewWidth!="auto"){_a04.setColumnsWidth(_a04.getColumnsWidth()-w);}if(_a05.viewWidth&&_a05.viewWidth!="auto"){_a05.setColumnsWidth(_a05.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _a06=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_a06.moveColumn(_a00.viewIndex,idx,_a02(_a01[0]),_a02(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(_a07){var n=_a07.name||_a07.grid.getCellName(_a07);var ret=["<div class=\"dojoxGridSortNode"];if(_a07.index!=_a07.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_a07.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_a07.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(_a08){var _a09=this._hasHScroll||false;if(this._hasHScroll==undefined||_a08){if(this.noscroll){this._hasHScroll=false;}else{var _a0a=dojo.style(this.scrollboxNode,"overflow");if(_a0a=="hidden"){this._hasHScroll=false;}else{if(_a0a=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_a09!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_a0b){var _a0c=this._hasVScroll||false;if(this._hasVScroll==undefined||_a0b){if(this.noscroll){this._hasVScroll=false;}else{var _a0d=dojo.style(this.scrollboxNode,"overflow");if(_a0d=="hidden"){this._hasVScroll=false;}else{if(_a0d=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_a0c!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _a0e=false;this.grid.initialWidth="";var _a0f=dojo.query("th",this.headerContentNode);var _a10=dojo.map(_a0f,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_a0e=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_a0e){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _a11=cell.view.getHeaderCellNode(cell.index);if(_a11&&dojo.hasAttr(_a11,"vIdx")){var vIdx=window.parseInt(dojo.attr(_a11,"vIdx"));this.setColWidth(idx,_a10[vIdx]);dojo.removeAttr(_a11,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_a12){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 _a13=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(_a12||(this.noscroll&&_a13())){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(_a14){var _a15=this.createRowNode(_a14);this.buildRow(_a14,_a15);this.grid.edit.restore(this,_a14);return _a15;},createRowNode:function(_a16){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]=_a16;this.rowNodes[_a16]=node;return node;},buildRow:function(_a17,_a18){this.buildRowContent(_a17,_a18);this.styleRow(_a17,_a18);},buildRowContent:function(_a19,_a1a){_a1a.innerHTML=this.content.generateHtml(_a19,_a19);if(this.flexCells&&this.contentWidth){_a1a.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_a19,this.structure.cells,_a1a]);},rowRemoved:function(_a1b){if(_a1b>=0){this._cleanupRowWidgets(this.getRowNode(_a1b));}this.grid.edit.save(this,_a1b);delete this.rowNodes[_a1b];},getRowNode:function(_a1c){return this.rowNodes[_a1c];},getCellNode:function(_a1d,_a1e){var row=this.getRowNode(_a1d);if(row){return this.content.getCellNode(row,_a1e);}},getHeaderCellNode:function(_a1f){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_a1f);}},styleRow:function(_a20,_a21){_a21._style=_9e3(_a21);this.styleRowNode(_a20,_a21);},styleRowNode:function(_a22,_a23){if(_a23){this.doStyleRowNode(_a22,_a23);}},doStyleRowNode:function(_a24,_a25){this.grid.styleRowNode(_a24,_a25);},updateRow:function(_a26){var _a27=this.getRowNode(_a26);if(_a27){_a27.style.height="";this.buildRow(_a26,_a27);}return _a27;},updateRowStyles:function(_a28){this.styleRowNode(_a28,this.getRowNode(_a28));},lastTop:0,firstScroll:0,doscroll:function(_a29){var _a2a=dojo._isBodyLtr();if(this.firstScroll<2){if((!_a2a&&this.firstScroll==1)||(_a2a&&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=_a2a?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}},setScrollTop:function(_a2b){this.lastTop=_a2b;this.scrollboxNode.scrollTop=_a2b;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(_a2c,_a2d){this.grid.setCellWidth(_a2c,_a2d+"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 _a2e=this.manager.source,node;if(_a2e.creator){node=_a2e._normalizedCreator(_a2e.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _a2f,_a30;if(node.tagName.toLowerCase()=="tr"){_a2f=dd.createElement("table");_a30=dd.createElement("tbody");_a30.appendChild(node);_a2f.appendChild(_a30);node=_a2f;}else{if(node.tagName.toLowerCase()=="th"){_a2f=dd.createElement("table");_a30=dd.createElement("tbody");var r=dd.createElement("tr");_a2f.cellPadding=_a2f.cellSpacing="0";r.appendChild(node);_a30.appendChild(r);_a2f.appendChild(_a30);node=_a2f;}}}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 _a31=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 _a31.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(_a32,_a33){var w=this.contentWidth||0;_a33.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(_a34,_a35){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_a34)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_a34)){n.push("dojoxGridRowbarSelected");}_a35.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(_a36){this.grid=_a36;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_a37,_a38,_a39,_a3a,_a3b){var _a3c=this.structure[_a37].cells[0];var _a3d=this.structure[_a38].cells[0];var cell=null;var _a3e=0;var _a3f=0;for(var i=0,c;c=_a3c[i];i++){if(c.index==_a39){_a3e=i;break;}}cell=_a3c.splice(_a3e,1)[0];cell.view=this.grid.views.views[_a38];for(i=0,c=null;c=_a3d[i];i++){if(c.index==_a3a){_a3f=i;break;}}if(!_a3b){_a3f+=1;}_a3d.splice(_a3f,0,cell);var _a40=this.grid.getCell(this.grid.getSortIndex());if(_a40){_a40._currentlySorted=this.grid.getSortAsc();}this.cells=[];_a39=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=_a39;this.cells.push(c);if("_currentlySorted" in c){var si=_a39+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_a39++;}}}this.grid.setupHeaderMenu();},setColumnVisibility:function(_a41,_a42){var cell=this.cells[_a41];if(cell.hidden==_a42){cell.hidden=!_a42;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(_a43,_a44,_a45){var self=this;var _a46=function(_a47){var w=0;if(_a47.colSpan>1){w=0;}else{w=_a47.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _a48={grid:this.grid,subrow:_a43,layoutIndex:_a44,index:this.cells.length};if(_a45&&_a45 instanceof dojox.grid.cells._Base){var _a49=dojo.clone(_a45);_a48.unitWidth=_a46(_a49._props);_a49=dojo.mixin(_a49,this._defaultCellProps,_a45._props,_a48);return _a49;}var _a4a=_a45.type||this._defaultCellProps.type||dojox.grid.cells.Cell;_a48.unitWidth=_a46(_a45);return new _a4a(dojo.mixin({},this._defaultCellProps,_a45,_a48));},addRowDef:function(_a4b,_a4c){var _a4d=[];var _a4e=0,_a4f=0,_a50=true;for(var i=0,def,cell;(def=_a4c[i]);i++){cell=this.addCellDef(_a4b,i,def);_a4d.push(cell);this.cells.push(cell);if(_a50&&cell.relWidth){_a4e+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_a4f+=window.parseInt(w,10);}else{if(w=="auto"){_a50=false;}}}}}if(_a4e&&_a50){dojo.forEach(_a4d,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_a4e)*(100-_a4f))+"%";}});}return _a4d;},addRowsDef:function(_a51){var _a52=[];if(dojo.isArray(_a51)){if(dojo.isArray(_a51[0])){for(var i=0,row;_a51&&(row=_a51[i]);i++){_a52.push(this.addRowDef(i,row));}}else{_a52.push(this.addRowDef(0,_a51));}}return _a52;},addViewDef:function(_a53){this._defaultCellProps=_a53.defaultCell||{};if(_a53.width&&_a53.width=="auto"){delete _a53.width;}return dojo.mixin({},_a53,{cells:this.addRowsDef(_a53.rows||_a53.cells)});},setStructure:function(_a54){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 _a55=this.grid.rowSelector;if(_a55=="false"){sel=null;}else{if(_a55!="true"){sel["width"]=_a55;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _a56=function(def){return ("name" in def||"field" in def||"get" in def);};var _a57=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_a56(def[0])){return true;}}return false;};var _a58=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_a56(def))));};if(dojo.isArray(_a54)){var _a59=false;for(var i=0,st;(st=_a54[i]);i++){if(_a58(st)){_a59=true;break;}}if(!_a59){s.push(this.addViewDef({cells:_a54}));}else{for(i=0;(st=_a54[i]);i++){if(_a57(st)){s.push(this.addViewDef({cells:st}));}else{if(_a58(st)){s.push(this.addViewDef(st));}}}}}else{if(_a58(_a54)){s.push(this.addViewDef(_a54));}}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(_a5a){this.grid=_a5a;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_a5b){_a5b.idx=this.views.length;this.views.push(_a5b);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _a5c=[];for(var i=0,v;v=this.views[i];i++){_a5c.push(v.contentNode);}return _a5c;},forEach:function(_a5d){for(var i=0,v;v=this.views[i];i++){_a5d(v,i);}},onEach:function(_a5e,_a5f){_a5f=_a5f||[];for(var i=0,v;v=this.views[i];i++){if(_a5e in v){v[_a5e].apply(v,_a5f);}}},normalizeHeaderNodeHeight:function(){var _a60=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_a60.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_a60);},normalizeRowNodeHeights:function(_a61){var h=0;var _a62=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_a61.length<=1){return;}for(var i=0,n;(n=_a61[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_a62[i]=n.firstChild.offsetHeight;h=Math.max(h,_a62[i]);}}h=(h>=0?h:0);if(dojo.isMoz&&h){h++;}}for(i=0;(n=_a61[i]);i++){if(_a62[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(_a63){var _a64=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_a63));i++){n.firstChild.style.height="";_a64.push(n);}this.normalizeRowNodeHeights(_a64);},getViewWidth:function(_a65){return this.views[_a65].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_a66){_a66.headerContentNode.style.height="";});var h=0;this.forEach(function(_a67){h=Math.max(_a67.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_a68){h=Math.max(_a68.domNode.offsetHeight,h);});return h;},findClient:function(_a69){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 _a6a=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isMoz){hs.right=l+v.getScrollbarWidth()+"px";hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_a6a(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;_a6a(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_a6a(v,l);}return l;},renderRow:function(_a6b,_a6c,_a6d){var _a6e=[];for(var i=0,v,n,_a6f;(v=this.views[i])&&(n=_a6c[i]);i++){_a6f=v.renderRow(_a6b);n.appendChild(_a6f);_a6e.push(_a6f);}if(!_a6d){this.normalizeRowNodeHeights(_a6e);}},rowRemoved:function(_a70){this.onEach("rowRemoved",[_a70]);},updateRow:function(_a71,_a72){for(var i=0,v;v=this.views[i];i++){v.updateRow(_a71);}if(!_a72){this.renormalizeRow(_a71);}},updateRowStyles:function(_a73){this.onEach("updateRowStyles",[_a73]);},setScrollTop:function(_a74){var top=_a74;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_a74);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 _a75=function(_a76,_a77){if(_a76.style.cssText==undefined){_a76.setAttribute("style",_a77);}else{_a76.style.cssText=_a77;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_a78){this.grid=_a78;},linesToEms:2,overRow:-2,prepareStylingRow:function(_a79,_a7a){return {index:_a79,node:_a7a,odd:Boolean(_a79&1),selected:!!this.grid.selection.isSelected(_a79),over:this.isOver(_a79),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_a7b,_a7c){var row=this.prepareStylingRow(_a7b,_a7c);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_a7d){var i=_a7d;i.node.className=i.customClasses;var h=i.node.style.height;_a75(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_a7e){this.grid.updateRowStyles(_a7e);},setOverRow:function(_a7f){var last=this.overRow;this.overRow=_a7f;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_a80){return (this.overRow==_a80&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}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(_a81){this.grid=_a81;this.selected=[];this.setMode(_a81.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_a82){return this.grid.onCanSelect(_a82);},onCanDeselect:function(_a83){return this.grid.onCanDeselect(_a83);},onSelected:function(_a84){},onDeselected:function(_a85){},onChanging:function(){},onChanged:function(){},isSelected:function(_a86){if(this.mode=="none"){return false;}return this.selected[_a86];},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(_a87){if(this.mode=="none"){return -1;}for(var i=_a87+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _a88=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_a88.push(i);}}return _a88;},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(_a89){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_a89);this.addToSelection(_a89);}else{this.toggleSelect(_a89);}},addToSelection:function(_a8a){if(this.mode=="none"){return;}if(dojo.isArray(_a8a)){dojo.forEach(_a8a,this.addToSelection,this);return;}_a8a=Number(_a8a);if(this.selected[_a8a]){this.selectedIndex=_a8a;}else{if(this.onCanSelect(_a8a)!==false){this.selectedIndex=_a8a;var _a8b=this.grid.getRowNode(_a8a);if(_a8b){dojo.attr(_a8b,"aria-selected","true");}this._beginUpdate();this.selected[_a8a]=true;this.onSelected(_a8a);this._endUpdate();}}},deselect:function(_a8c){if(this.mode=="none"){return;}if(dojo.isArray(_a8c)){dojo.forEach(_a8c,this.deselect,this);return;}_a8c=Number(_a8c);if(this.selectedIndex==_a8c){this.selectedIndex=-1;}if(this.selected[_a8c]){if(this.onCanDeselect(_a8c)===false){return;}var _a8d=this.grid.getRowNode(_a8c);if(_a8d){dojo.attr(_a8d,"aria-selected","false");}this._beginUpdate();delete this.selected[_a8c];this.onDeselected(_a8c);this._endUpdate();}},setSelected:function(_a8e,_a8f){this[(_a8f?"addToSelection":"deselect")](_a8e);},toggleSelect:function(_a90){if(dojo.isArray(_a90)){dojo.forEach(_a90,this.toggleSelect,this);return;}this.setSelected(_a90,!this.selected[_a90]);},_range:function(_a91,inTo,func){var s=(_a91>=0?_a91:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_a92,inTo){this._range(_a92,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_a93,inTo){this._range(_a93,inTo,dojo.hitch(this,"deselect"));},insert:function(_a94){this.selected.splice(_a94,0,false);if(this.selectedIndex>=_a94){this.selectedIndex++;}},remove:function(_a95){this.selected.splice(_a95,1);if(this.selectedIndex>=_a95){this.selectedIndex--;}},deselectAll:function(_a96){for(var i in this.selected){if((i!=_a96)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_a97,_a98,_a99){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_a97);}else{var _a9a=this.selectedIndex;if(!_a98){this.deselectAll(_a97);}if(_a99){this.selectRange(_a9a,_a97);}else{if(_a98){this.toggleSelect(_a97);}else{this.addToSelection(_a97);}}}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._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\" wairole=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\r\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" wairole=\"presentation\"></div>\r\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" wairole=\"presentation\"></div>\r\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\r\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\r\n</div>\r\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 _a9b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_a9b);this.errorMessage=dojo.string.substitute(this.errorMessage,_a9b);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.scroller){this.scroller.destroy();delete this.scroller;}if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_a9c){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&&!_a9c){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(_a9d){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_a9e,idx){var c=dojo.getObject(_a9e);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);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(_a9f){var s=_a9f;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.attr('structure', 'objVar')","use dojox.grid._Grid.attr('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_aa0){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.attr('structure', obj) instead.","2.0");this._setStructureAttr(_aa0);},getColumnTogglingItems:function(){return dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_aa1){if(self.layout.setColumnVisibility(this._gridCell.index,_aa1)){var _aa2=this._gridCell.menuItems;if(_aa2.length>1){dojo.forEach(_aa2,function(item){if(item!==this){item.setAttribute("checked",_aa1);}},this);}_aa1=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.attr('disabled', false);");}else{c.menuItems[0].attr("disabled",false);}return !c.hidden;});if(_aa1.length==1){dojo.forEach(_aa1[0].menuItems,"item.attr('disabled', true);");}}},destroy:function(){var _aa3=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_aa3,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);return item;},this);},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.attr('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(_aa4){this.setScrollTop(0);},getItem:function(_aa5){return null;},showMessage:function(_aa6){if(_aa6){this.messagesNode.innerHTML=_aa6;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(_aa7,_aa8){this._pendingChangeSize=_aa7;this._pendingResultSize=_aa8;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(_aa9,_aaa){_aa9=_aa9||this._pendingChangeSize;_aaa=_aaa||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 _aab=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";this.viewsNode.style.height="";}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<=_aab.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(_aaa){_aa9=_aaa;}if(_aa9){dojo.marginBox(this.domNode,_aa9);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 _aac=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(!_aac&&hh===undefined){hh=this._getHeaderHeight();}}if(_aac){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _aad=(!this.initialWidth&&this.autoWidth);var w=_aad?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_aad){this.domNode.style.width=vw+"px";}},adaptHeight:function(_aae){var t=_aae===undefined?this._getHeaderHeight():_aae;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 _aaf=0,_ab0=0;var _ab1=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_aaf++;}else{_ab0++;}return (!has);});if(_aaf>0&&_ab0>0){dojo.forEach(_ab1,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(_ab2,_ab3){this.views.renderRow(_ab2,_ab3,this._skipRowRenormalize);},rowRemoved:function(_ab4){this.views.rowRemoved(_ab4);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_ab5){_ab5=Number(_ab5);if(this.updating){this.invalidated[_ab5]=true;}else{this.views.updateRow(_ab5);this.scroller.rowHeightChanged(_ab5);}},updateRows:function(_ab6,_ab7){_ab6=Number(_ab6);_ab7=Number(_ab7);var i;if(this.updating){for(i=0;i<_ab7;i++){this.invalidated[i+_ab6]=true;}}else{for(i=0;i<_ab7;i++){this.views.updateRow(i+_ab6,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_ab6);}},updateRowCount:function(_ab8){if(this.updating){this.invalidated.rowCount=_ab8;}else{this.rowCount=_ab8;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_ab8);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_ab9){this.views.updateRowStyles(_ab9);},getRowNode:function(_aba){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_aba];}else{for(var i=0,_abb;(_abb=this.views.views[i]);i++){if(!(_abb instanceof dojox.grid._RowSelector)){return _abb.rowNodes[_aba];}}}return null;},rowHeightChanged:function(_abc){this.views.renormalizeRow(_abc);this.scroller.rowHeightChanged(_abc);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_abd){if(!this.fastScroll){this.setScrollTop(_abd);return;}var _abe=Math.abs(this.lastScrollTop-_abd);this.lastScrollTop=_abd;if(_abe>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_abd;this.views.setScrollTop(_abd);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _abf=this;this._pendingScroll=window.setTimeout(function(){delete _abf._pendingScroll;_abf.finishScrollJob();},200);}else{this.setScrollTop(_abd);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_ac0){this.scroller.scroll(this.views.setScrollTop(_ac0));},scrollToRow:function(_ac1){this.setScrollTop(this.scroller.findScrollTop(_ac1)+1);},styleRowNode:function(_ac2,_ac3){if(_ac3){this.rows.styleRowNode(_ac2,_ac3);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_ac4){return this.layout.cells[_ac4];},setCellWidth:function(_ac5,_ac6){this.getCell(_ac5).unitWidth=_ac6;},getCellName:function(_ac7){return "Cell "+_ac7.index;},canSort:function(_ac8){},sort:function(){},getSortAsc:function(_ac9){_ac9=_ac9==undefined?this.sortInfo:_ac9;return Boolean(_ac9>0);},getSortIndex:function(_aca){_aca=_aca==undefined?this.sortInfo:_aca;return Math.abs(_aca)-1;},setSortIndex:function(_acb,_acc){var si=_acb+1;if(_acc!=undefined){si*=(_acc?1:-1);}else{if(this.getSortIndex()==_acb){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_acd){if(this.canSort(_acd)){this.sortInfo=_acd;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(_ace,_acf){this.onStartEdit(_ace,_acf);},doApplyCellEdit:function(_ad0,_ad1,_ad2){this.onApplyCellEdit(_ad0,_ad1,_ad2);},doCancelEdit:function(_ad3){this.onCancelEdit(_ad3);},doApplyEdit:function(_ad4){this.onApplyEdit(_ad4);},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(_ad5,node,ctor,_ad6){var d=dojo;var _ad7=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(!_ad5.structure&&node.nodeName.toLowerCase()=="table"){_ad5.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=_ad7(cg);}return v;});if(!_ad5.structure.length){_ad5.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_ad8){var _ad9=0;var _ada=0;var _adb;var _adc=null;d.query("> th",tr).map(function(th){if(!_adc){_adb=0;_adc=_ad5.structure[0];}else{if(_ad9>=(_adb+_adc.__span)){_ada++;_adb+=_adc.__span;var _add=_adc;_adc=_ad5.structure[_ada];}}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")||"")};_ad9+=cell.colSpan;var _ade=d.attr(th,"rowspan");if(_ade){cell.rowSpan=_ade;}if(d.hasAttr(th,"width")){cell.width=_ad7(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";}if(_ad6){_ad6(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(!_adc.cells[_ad8]){_adc.cells[_ad8]=[];}_adc.cells[_ad8].push(cell);});});}return new ctor(_ad5,node);};})();}if(!dojo._hasResource["dojox.grid.cells.dijit"]){dojo._hasResource["dojox.grid.cells.dijit"]=true;dojo.provide("dojox.grid.cells.dijit");(function(){var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Widget",dgc._Base,{widgetClass:dijit.form.TextBox,constructor:function(_adf){this.widget=null;if(typeof this.widgetClass=="string"){dojo.deprecated("Passing a string to widgetClass is deprecated","pass the widget class object instead","2.0");this.widgetClass=dojo.getObject(this.widgetClass);}},formatEditing:function(_ae0,_ae1){this.needFormatNode(_ae0,_ae1);return "<div></div>";},getValue:function(_ae2){return this.widget.attr("value");},setValue:function(_ae3,_ae4){if(this.widget&&this.widget.attr){if(this.widget.onLoadDeferred){var self=this;this.widget.onLoadDeferred.addCallback(function(){self.widget.attr("value",_ae4===null?"":_ae4);});}else{this.widget.attr("value",_ae4);}}else{this.inherited(arguments);}},getWidgetProps:function(_ae5){return dojo.mixin({dir:this.dir,lang:this.lang},this.widgetProps||{},{constraints:dojo.mixin({},this.constraint)||{},value:_ae5});},createWidget:function(_ae6,_ae7,_ae8){return new this.widgetClass(this.getWidgetProps(_ae7),_ae6);},attachWidget:function(_ae9,_aea,_aeb){_ae9.appendChild(this.widget.domNode);this.setValue(_aeb,_aea);},formatNode:function(_aec,_aed,_aee){if(!this.widgetClass){return _aed;}if(!this.widget){this.widget=this.createWidget.apply(this,arguments);}else{this.attachWidget.apply(this,arguments);}this.sizeWidget.apply(this,arguments);this.grid.rowHeightChanged(_aee);this.focus();return undefined;},sizeWidget:function(_aef,_af0,_af1){var p=this.getNode(_af1),box=dojo.contentBox(p);dojo.marginBox(this.widget.domNode,{w:box.w});},focus:function(_af2,_af3){if(this.widget){setTimeout(dojo.hitch(this.widget,function(){dojox.grid.util.fire(this,"focus");}),0);}},_finish:function(_af4){this.inherited(arguments);dojox.grid.util.removeNode(this.widget.domNode);}});dgc._Widget.markupFactory=function(node,cell){dgc._Base.markupFactory(node,cell);var d=dojo;var _af5=d.trim(d.attr(node,"widgetProps")||"");var _af6=d.trim(d.attr(node,"constraint")||"");var _af7=d.trim(d.attr(node,"widgetClass")||"");if(_af5){cell.widgetProps=d.fromJson(_af5);}if(_af6){cell.constraint=d.fromJson(_af6);}if(_af7){cell.widgetClass=d.getObject(_af7);}};dojo.declare("dojox.grid.cells.ComboBox",dgc._Widget,{widgetClass:dijit.form.ComboBox,getWidgetProps:function(_af8){var _af9=[];dojo.forEach(this.options,function(o){_af9.push({name:o,value:o});});var _afa=new dojo.data.ItemFileReadStore({data:{identifier:"name",items:_af9}});return dojo.mixin({},this.widgetProps||{},{value:_af8,store:_afa});},getValue:function(){var e=this.widget;e.attr("displayedValue",e.attr("displayedValue"));return e.attr("value");}});dgc.ComboBox.markupFactory=function(node,cell){dgc._Widget.markupFactory(node,cell);var d=dojo;var _afb=d.trim(d.attr(node,"options")||"");if(_afb){var o=_afb.split(",");if(o[0]!=_afb){cell.options=o;}}};dojo.declare("dojox.grid.cells.DateTextBox",dgc._Widget,{widgetClass:dijit.form.DateTextBox,setValue:function(_afc,_afd){if(this.widget){this.widget.attr("value",new Date(_afd));}else{this.inherited(arguments);}},getWidgetProps:function(_afe){return dojo.mixin(this.inherited(arguments),{value:new Date(_afe)});}});dgc.DateTextBox.markupFactory=function(node,cell){dgc._Widget.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.CheckBox",dgc._Widget,{widgetClass:dijit.form.CheckBox,getValue:function(){return this.widget.checked;},setValue:function(_aff,_b00){if(this.widget&&this.widget.attributeMap.checked){this.widget.attr("checked",_b00);}else{this.inherited(arguments);}},sizeWidget:function(_b01,_b02,_b03){return;}});dgc.CheckBox.markupFactory=function(node,cell){dgc._Widget.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Editor",dgc._Widget,{widgetClass:dijit.Editor,getWidgetProps:function(_b04){return dojo.mixin({},this.widgetProps||{},{height:this.widgetHeight||"100px"});},createWidget:function(_b05,_b06,_b07){var _b08=new this.widgetClass(this.getWidgetProps(_b06),_b05);dojo.connect(_b08,"onLoad",dojo.hitch(this,"populateEditor"));return _b08;},formatNode:function(_b09,_b0a,_b0b){this.content=_b0a;this.inherited(arguments);if(dojo.isMoz){var e=this.widget;e.open();if(this.widgetToolbar){dojo.place(e.toolbar.domNode,e.editingArea,"before");}}},populateEditor:function(){this.widget.attr("value",this.content);this.widget.placeCursorAtEnd();}});dgc.Editor.markupFactory=function(node,cell){dgc._Widget.markupFactory(node,cell);var d=dojo;var h=dojo.trim(dojo.attr(node,"widgetHeight")||"");if(h){if((h!="auto")&&(h.substr(-2)!="em")){h=parseInt(h,10)+"px";}cell.widgetHeight=h;}};})();}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(_b0c){var _b0d=this.grid.getItemIndex(_b0c);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_b0d);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _b0e=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_b0e.push(this.grid.getItem(i));}}return _b0e;},addToSelection:function(_b0f){if(this.mode=="none"){return;}var idx=null;if(typeof _b0f=="number"||typeof _b0f=="string"){idx=_b0f;}else{idx=this.grid.getItemIndex(_b0f);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_b10){if(this.mode=="none"){return;}var idx=null;if(typeof _b10=="number"||typeof _b10=="string"){idx=_b10;}else{idx=this.grid.getItemIndex(_b10);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_b11){var idx=null;if(_b11||typeof _b11=="number"){if(typeof _b11=="number"||typeof _b11=="string"){idx=_b11;}else{idx=this.grid.getItemIndex(_b11);}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(_b12,_b13){if(_b13&&this.field=="_item"&&!this.fields){return _b13;}else{if(_b13&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_b13,f));});return ret;}else{if(!_b13&&typeof _b12==="string"){return this.inherited(arguments);}}}return (!_b13?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_b13:this.grid.store.getValue(_b13,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _b14=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_b14=true;}if(!this.updating){this.beginUpdate();_b14=true;}if(_b14){var _b15=this;this._endUpdateDelay=setTimeout(function(){delete _b15._endUpdateDelay;_b15.endUpdate();},this.updateDelay);}}},_onSet:function(item,_b16,_b17,_b18){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_b19){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_b19+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_b1a,_b1b){this._by_idx[_b1a]=this._createItem(item,_b1a);if(!_b1b){this.updateRow(_b1a);}},_onNew:function(item,_b1c){this._checkUpdateStatus();var _b1d=this.get("rowCount");this._addingItem=true;this.updateRowCount(_b1d+1);this._addingItem=false;this._addItem(item,_b1d);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(_b1e,_b1f,_b20){this._setQuery(_b1f,_b20);this._setStore(_b1e);this._refresh(true);},setQuery:function(_b21,_b22){this._setQuery(_b21,_b22);this._refresh(true);},setItems:function(_b23){this.items=_b23;this._setStore(this.store);this._refresh(true);},_setQuery:function(_b24,_b25){this.query=_b24;this.queryOptions=_b25||this.queryOptions;},_setStore:function(_b26){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,function(arr){dojo.forEach(arr,dojo.disconnect);});}this.store=_b26;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(_b27,req){if(!this.scroller){return;}if(_b27&&_b27.length>0){dojo.forEach(_b27,function(item,idx){this._addItem(item,req.start+idx,true);},this);if(this._autoHeight){this._skipRowRenormalize=true;}this.updateRows(req.start,_b27.length);if(this._autoHeight){this._skipRowRenormalize=false;}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(_b28,_b29){_b28=_b28||0;if(this.store&&!this._pending_requests[_b28]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_b28]=true;try{if(this.items){var _b2a=this.items;var _b2b=this.store;this.rowsPerPage=_b2a.length;var req={start:_b28,count:this.rowsPerPage,isRender:_b29};this._onFetchBegin(_b2a.length,req);var _b2c=0;dojo.forEach(_b2a,function(i){if(!_b2b.isItemLoaded(i)){_b2c++;}});if(_b2c===0){this._onFetchComplete(_b2a,req);}else{var _b2d=function(item){_b2c--;if(_b2c===0){this._onFetchComplete(_b2a,req);}};dojo.forEach(_b2a,function(i){if(!_b2b.isItemLoaded(i)){_b2b.loadItem({item:i,onItem:_b2d,scope:this});}},this);}}else{this.store.fetch({start:_b28,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_b29,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_b28,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,_b2e){if(!_b2e&&!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(_b2f,_b30){this.query=_b2f;if(_b30){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(_b31){return this._pending_requests[_b31];},_rowToPage:function(_b32){return (this.rowsPerPage?Math.floor(_b32/this.rowsPerPage):_b32);},_pageToRow:function(_b33){return (this.rowsPerPage?this.rowsPerPage*_b33:_b33);},_preparePage:function(_b34){if((_b34<this._bop||_b34>=this._eop)&&!this._addingItem){var _b35=this._rowToPage(_b34);this._needPage(_b35);this._bop=_b35*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_b36){if(!this._pages[_b36]){this._pages[_b36]=true;this._requestPage(_b36);}},_requestPage:function(_b37){var row=this._pageToRow(_b37);var _b38=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_b38>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_b39){return _b39.field;},_refresh:function(_b3a){this._clearData();this._fetch(0,_b3a);},sort:function(){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(_b3b){if(this.store&&this.store.getState){var _b3c=this.store.getState(_b3b.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_b3c[s]){c=" dojoxGridRow-"+s;break;}}_b3b.customClasses+=c;}},onStyleRow:function(_b3d){this.styleRowState(_b3d);this.inherited(arguments);},canEdit:function(_b3e,_b3f){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _b40={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_b41,_b42){if(!this._cache[_b42]){this._cache[_b42]=this._copyAttr(_b42,_b41.field);}this.onStartEdit(_b41,_b42);},doApplyCellEdit:function(_b43,_b44,_b45){this.store.fetchItemByIdentity({identity:this._by_idx[_b44].idty,onItem:dojo.hitch(this,function(item){var _b46=this.store.getValue(item,_b45);if(typeof _b46=="number"){_b43=isNaN(_b43)?_b43:parseFloat(_b43);}else{if(typeof _b46=="boolean"){_b43=_b43=="true"?true:_b43=="false"?false:_b43;}else{if(_b46 instanceof Date){var _b47=new Date(_b43);_b43=isNaN(_b47.getTime())?_b43:_b47;}}}this.store.setValue(item,_b45,_b43);this.onApplyCellEdit(_b43,_b44,_b45);})});},doCancelEdit:function(_b48){var _b49=this._cache[_b48];if(_b49){this.updateRow(_b48);delete this._cache[_b48];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_b4a,_b4b){var _b4c=this._cache[_b4a];this.onApplyEdit(_b4a);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_b4d){if(_b4d.length){dojo.forEach(_b4d,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(_b4e,node,_b4f){var _b50=dojo.trim(dojo.attr(node,"field")||"");if(_b50){_b4f.field=_b50;}_b4f.field=_b4f.field||_b4f.name;var _b51=dojo.trim(dojo.attr(node,"fields")||"");if(_b51){_b4f.fields=_b51.split(",");}if(_b4e){_b4e(node,_b4f);}};dojox.grid.DataGrid.markupFactory=function(_b52,node,ctor,_b53){return dojox.grid._Grid.markupFactory(_b52,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_b53));};}if(!dojo._hasResource["dojox.string.Builder"]){dojo._hasResource["dojox.string.Builder"]=true;dojo.provide("dojox.string.Builder");dojox.string.Builder=function(str){var b="";this.length=0;this.append=function(s){if(arguments.length>1){var tmp="",l=arguments.length;switch(l){case 9:tmp=""+arguments[8]+tmp;case 8:tmp=""+arguments[7]+tmp;case 7:tmp=""+arguments[6]+tmp;case 6:tmp=""+arguments[5]+tmp;case 5:tmp=""+arguments[4]+tmp;case 4:tmp=""+arguments[3]+tmp;case 3:tmp=""+arguments[2]+tmp;case 2:b+=""+arguments[0]+arguments[1]+tmp;break;default:var i=0;while(i<arguments.length){tmp+=arguments[i++];}b+=tmp;}}else{b+=s;}this.length=b.length;return this;};this.concat=function(s){return this.append.apply(this,arguments);};this.appendArray=function(_b54){return this.append.apply(this,_b54);};this.clear=function(){b="";this.length=0;return this;};this.replace=function(_b55,_b56){b=b.replace(_b55,_b56);this.length=b.length;return this;};this.remove=function(_b57,len){if(len===undefined){len=b.length;}if(len==0){return this;}b=b.substr(0,_b57)+b.substr(_b57+len);this.length=b.length;return this;};this.insert=function(_b58,str){if(_b58==0){b=str+b;}else{b=b.slice(0,_b58)+str+b.slice(_b58);}this.length=b.length;return this;};this.toString=function(){return b;};if(str){this.append(str);}};}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_b59,_b5a){var _b5b=[];var _b5c,_b5d,_b5e=0;while(_b5c=re.exec(str)){_b5d=str.slice(_b5e,re.lastIndex-_b5c[0].length);if(_b5d.length){_b5b.push(_b5d);}if(_b59){if(dojo.isOpera){var copy=_b5c.slice(0);while(copy.length<_b5c.length){copy.push(null);}_b5c=copy;}var _b5f=_b59.apply(_b5a,_b5c.slice(1).concat(_b5b.length));if(typeof _b5f!="undefined"){_b5b.push(_b5f);}}_b5e=re.lastIndex;}_b5d=str.slice(_b5e);if(_b5d.length){_b5b.push(_b5d);}return _b5b;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_b60,_b61){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _b62=new dojox.string.sprintf.Formatter(_b60);return _b62.format.apply(_b62,args);};dojox.string.sprintf.Formatter=function(_b63){var _b64=[];this._mapped=false;this._format=_b63;this._tokens=dojox.string.tokenize(_b63,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_b65,_b66,_b67,_b68,_b69,_b6a,_b6b){if(_b65){this._mapped=true;}return {mapping:_b65,intmapping:_b66,flags:_b67,_minWidth:_b68,period:_b69,_precision:_b6a,specifier:_b6b};},_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(_b6c){if(!isNaN(_b6c.arg)){var num=parseInt(_b6c.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_b6c.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_b6d){_b6d.maxWidth=(_b6d.period==".")?_b6d.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(_b6e){if(this._mapped&&typeof _b6e!="object"){throw new Error("format requires a mapping");}var str="";var _b6f=0;for(var i=0,_b70;i<this._tokens.length;i++){_b70=this._tokens[i];if(typeof _b70=="string"){str+=_b70;}else{if(this._mapped){if(typeof _b6e[_b70.mapping]=="undefined"){throw new Error("missing key "+_b70.mapping);}_b70.arg=_b6e[_b70.mapping];}else{if(_b70.intmapping){var _b6f=parseInt(_b70.intmapping)-1;}if(_b6f>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_b70.arg=arguments[_b6f++];}if(!_b70.compiled){_b70.compiled=true;_b70.sign="";_b70.zeroPad=false;_b70.rightJustify=false;_b70.alternative=false;var _b71={};for(var fi=_b70.flags.length;fi--;){var flag=_b70.flags.charAt(fi);_b71[flag]=true;switch(flag){case " ":_b70.sign=" ";break;case "+":_b70.sign="+";break;case "0":_b70.zeroPad=(_b71["-"])?false:true;break;case "-":_b70.rightJustify=true;_b70.zeroPad=false;break;case "#":_b70.alternative=true;break;default:throw Error("bad formatting flag '"+_b70.flags.charAt(fi)+"'");}}_b70.minWidth=(_b70._minWidth)?parseInt(_b70._minWidth):0;_b70.maxWidth=-1;_b70.toUpper=false;_b70.isUnsigned=false;_b70.isInt=false;_b70.isDouble=false;_b70.precision=1;if(_b70.period=="."){if(_b70._precision){_b70.precision=parseInt(_b70._precision);}else{_b70.precision=0;}}var _b72=this._specifiers[_b70.specifier];if(typeof _b72=="undefined"){throw new Error("unexpected specifier '"+_b70.specifier+"'");}if(_b72.extend){dojo.mixin(_b72,this._specifiers[_b72.extend]);delete _b72.extend;}dojo.mixin(_b70,_b72);}if(typeof _b70.setArg=="function"){_b70.setArg(_b70);}if(typeof _b70.setMaxWidth=="function"){_b70.setMaxWidth(_b70);}if(_b70._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_b70.minWidth=parseInt(arguments[_b6f++]);if(isNaN(_b70.minWidth)){throw new Error("the argument for * width at position "+_b6f+" is not a number in "+this._format);}if(_b70.minWidth<0){_b70.rightJustify=true;_b70.minWidth=-_b70.minWidth;}}if(_b70._precision=="*"&&_b70.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_b70.precision=parseInt(arguments[_b6f++]);if(isNaN(_b70.precision)){throw Error("the argument for * precision at position "+_b6f+" is not a number in "+this._format);}if(_b70.precision<0){_b70.precision=1;_b70.period="";}}if(_b70.isInt){if(_b70.period=="."){_b70.zeroPad=false;}this.formatInt(_b70);}else{if(_b70.isDouble){if(_b70.period!="."){_b70.precision=6;}this.formatDouble(_b70);}}this.fitField(_b70);str+=""+_b70.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_b73){var i=parseInt(_b73.arg);if(!isFinite(i)){if(typeof _b73.arg!="number"){throw new Error("format argument '"+_b73.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_b73.isUnsigned||_b73.base!=10)){i=4294967295+i+1;}if(i<0){_b73.arg=(-i).toString(_b73.base);this.zeroPad(_b73);_b73.arg="-"+_b73.arg;}else{_b73.arg=i.toString(_b73.base);if(!i&&!_b73.precision){_b73.arg="";}else{this.zeroPad(_b73);}if(_b73.sign){_b73.arg=_b73.sign+_b73.arg;}}if(_b73.base==16){if(_b73.alternative){_b73.arg="0x"+_b73.arg;}_b73.arg=_b73.toUpper?_b73.arg.toUpperCase():_b73.arg.toLowerCase();}if(_b73.base==8){if(_b73.alternative&&_b73.arg.charAt(0)!="0"){_b73.arg="0"+_b73.arg;}}},formatDouble:function(_b74){var f=parseFloat(_b74.arg);if(!isFinite(f)){if(typeof _b74.arg!="number"){throw new Error("format argument '"+_b74.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_b74.doubleNotation){case "e":_b74.arg=f.toExponential(_b74.precision);break;case "f":_b74.arg=f.toFixed(_b74.precision);break;case "g":if(Math.abs(f)<0.0001){_b74.arg=f.toExponential(_b74.precision>0?_b74.precision-1:_b74.precision);}else{_b74.arg=f.toPrecision(_b74.precision);}if(!_b74.alternative){_b74.arg=_b74.arg.replace(/(\..*[^0])0*/,"$1");_b74.arg=_b74.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_b74.doubleNotation+"'");}_b74.arg=_b74.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_b74.arg=_b74.arg.replace(/^\./,"0.");}if(_b74.alternative){_b74.arg=_b74.arg.replace(/^(\d+)$/,"$1.");_b74.arg=_b74.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_b74.sign){_b74.arg=_b74.sign+_b74.arg;}_b74.arg=_b74.toUpper?_b74.arg.toUpperCase():_b74.arg.toLowerCase();},zeroPad:function(_b75,_b76){_b76=(arguments.length==2)?_b76:_b75.precision;if(typeof _b75.arg!="string"){_b75.arg=""+_b75.arg;}var _b77=_b76-10;while(_b75.arg.length<_b77){_b75.arg=(_b75.rightJustify)?_b75.arg+this._zeros10:this._zeros10+_b75.arg;}var pad=_b76-_b75.arg.length;_b75.arg=(_b75.rightJustify)?_b75.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_b75.arg;},fitField:function(_b78){if(_b78.maxWidth>=0&&_b78.arg.length>_b78.maxWidth){return _b78.arg.substring(0,_b78.maxWidth);}if(_b78.zeroPad){this.zeroPad(_b78,_b78.minWidth);return;}this.spacePad(_b78);},spacePad:function(_b79,_b7a){_b7a=(arguments.length==2)?_b7a:_b79.minWidth;if(typeof _b79.arg!="string"){_b79.arg=""+_b79.arg;}var _b7b=_b7a-10;while(_b79.arg.length<_b7b){_b79.arg=(_b79.rightJustify)?_b79.arg+this._spaces10:this._spaces10+_b79.arg;}var pad=_b7a-_b79.arg.length;_b79.arg=(_b79.rightJustify)?_b79.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_b79.arg;}});}if(!dojo._hasResource["dojox.dtl._base"]){dojo._hasResource["dojox.dtl._base"]=true;dojo.provide("dojox.dtl._base");dojo.experimental("dojox.dtl");(function(){var dd=dojox.dtl;dd.TOKEN_BLOCK=-1;dd.TOKEN_VAR=-2;dd.TOKEN_COMMENT=-3;dd.TOKEN_TEXT=3;dd._Context=dojo.extend(function(dict){if(dict){dojo._mixin(this,dict);if(dict.get){this._getter=dict.get;delete this.get;}}},{push:function(){var last=this;var _b7c=dojo.delegate(this);_b7c.pop=function(){return last;};return _b7c;},pop:function(){throw new Error("pop() called on empty Context");},get:function(key,_b7d){var n=this._normalize;if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return n(got);}}if(typeof this[key]!="undefined"){return n(this[key]);}return _b7d;},_normalize:function(_b7e){if(_b7e instanceof Date){_b7e.year=_b7e.getFullYear();_b7e.month=_b7e.getMonth()+1;_b7e.day=_b7e.getDate();_b7e.date=_b7e.year+"-"+("0"+_b7e.month).slice(-2)+"-"+("0"+_b7e.day).slice(-2);_b7e.hour=_b7e.getHours();_b7e.minute=_b7e.getMinutes();_b7e.second=_b7e.getSeconds();_b7e.microsecond=_b7e.getMilliseconds();}return _b7e;},update:function(dict){var _b7f=this.push();if(dict){dojo._mixin(this,dict);}return _b7f;}});var _b80=/("(?:[^"\\]*(?:\\.[^"\\]*)*)"|'(?:[^'\\]*(?:\\.[^'\\]*)*)'|[^\s]+)/g;var _b81=/\s+/g;var _b82=function(_b83,_b84){_b83=_b83||_b81;if(!(_b83 instanceof RegExp)){_b83=new RegExp(_b83,"g");}if(!_b83.global){throw new Error("You must use a globally flagged RegExp with split "+_b83);}_b83.exec("");var part,_b85=[],_b86=0,i=0;while(part=_b83.exec(this)){_b85.push(this.slice(_b86,_b83.lastIndex-part[0].length));_b86=_b83.lastIndex;if(_b84&&(++i>_b84-1)){break;}}_b85.push(this.slice(_b86));return _b85;};dd.Token=function(_b87,_b88){this.token_type=_b87;this.contents=new String(dojo.trim(_b88));this.contents.split=_b82;this.split=function(){return String.prototype.split.apply(this.contents,arguments);};};dd.Token.prototype.split_contents=function(_b89){var bit,bits=[],i=0;_b89=_b89||999;while(i++<_b89&&(bit=_b80.exec(this.contents))){bit=bit[0];if(bit.charAt(0)=="\""&&bit.slice(-1)=="\""){bits.push("\""+bit.slice(1,-1).replace("\\\"","\"").replace("\\\\","\\")+"\"");}else{if(bit.charAt(0)=="'"&&bit.slice(-1)=="'"){bits.push("'"+bit.slice(1,-1).replace("\\'","'").replace("\\\\","\\")+"'");}else{bits.push(bit);}}}return bits;};var ddt=dd.text={_get:function(_b8a,name,_b8b){var _b8c=dd.register.get(_b8a,name.toLowerCase(),_b8b);if(!_b8c){if(!_b8b){throw new Error("No tag found for "+name);}return null;}var fn=_b8c[1];var _b8d=_b8c[2];var _b8e;if(fn.indexOf(":")!=-1){_b8e=fn.split(":");fn=_b8e.pop();}dojo["require"](_b8d);var _b8f=dojo.getObject(_b8d);return _b8f[fn||name]||_b8f[name+"_"]||_b8f[fn+"_"];},getTag:function(name,_b90){return ddt._get("tag",name,_b90);},getFilter:function(name,_b91){return ddt._get("filter",name,_b91);},getTemplate:function(file){return new dd.Template(ddt.getTemplateString(file));},getTemplateString:function(file){return dojo._getText(file.toString())||"";},_resolveLazy:function(_b92,sync,json){if(sync){if(json){return dojo.fromJson(dojo._getText(_b92))||{};}else{return dd.text.getTemplateString(_b92);}}else{return dojo.xhrGet({handleAs:(json)?"json":"text",url:_b92});}},_resolveTemplateArg:function(arg,sync){if(ddt._isTemplate(arg)){if(!sync){var d=new dojo.Deferred();d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync);},_isTemplate:function(arg){return (typeof arg=="undefined")||(typeof arg=="string"&&(arg.match(/^\s*[<{]/)||arg.indexOf(" ")!=-1));},_resolveContextArg:function(arg,sync){if(arg.constructor==Object){if(!sync){var d=new dojo.Deferred;d.callback(arg);return d;}return arg;}return ddt._resolveLazy(arg,sync,true);},_re:/(?:\{\{\s*(.+?)\s*\}\}|\{%\s*(load\s*)?(.+?)\s*%\})/g,tokenize:function(str){return dojox.string.tokenize(str,ddt._re,ddt._parseDelims);},_parseDelims:function(varr,load,tag){if(varr){return [dd.TOKEN_VAR,varr];}else{if(load){var _b93=dojo.trim(tag).split(/\s+/g);for(var i=0,part;part=_b93[i];i++){dojo["require"](part);}}else{return [dd.TOKEN_BLOCK,tag];}}}};dd.Template=dojo.extend(function(_b94,_b95){var str=_b95?_b94:ddt._resolveTemplateArg(_b94,true)||"";var _b96=ddt.tokenize(str);var _b97=new dd._Parser(_b96);this.nodelist=_b97.parse();},{update:function(node,_b98){return ddt._resolveContextArg(_b98).addCallback(this,function(_b99){var _b9a=this.render(new dd._Context(_b99));if(node.forEach){node.forEach(function(item){item.innerHTML=_b9a;});}else{dojo.byId(node).innerHTML=_b9a;}return this;});},render:function(_b9b,_b9c){_b9c=_b9c||this.getBuffer();_b9b=_b9b||new dd._Context({});return this.nodelist.render(_b9b,_b9c)+"";},getBuffer:function(){return new dojox.string.Builder();}});var qfRe=/\{\{\s*(.+?)\s*\}\}/g;dd.quickFilter=function(str){if(!str){return new dd._NodeList();}if(str.indexOf("{%")==-1){return new dd._QuickNodeList(dojox.string.tokenize(str,qfRe,function(_b9d){return new dd._Filter(_b9d);}));}};dd._QuickNodeList=dojo.extend(function(_b9e){this.contents=_b9e;},{render:function(_b9f,_ba0){for(var i=0,l=this.contents.length;i<l;i++){if(this.contents[i].resolve){_ba0=_ba0.concat(this.contents[i].resolve(_b9f));}else{_ba0=_ba0.concat(this.contents[i]);}}return _ba0;},dummyRender:function(_ba1){return this.render(_ba1,dd.Template.prototype.getBuffer()).toString();},clone:function(_ba2){return this;}});dd._Filter=dojo.extend(function(_ba3){if(!_ba3){throw new Error("Filter must be called with variable name");}this.contents=_ba3;var _ba4=this._cache[_ba3];if(_ba4){this.key=_ba4[0];this.filters=_ba4[1];}else{this.filters=[];dojox.string.tokenize(_ba3,this._re,this._tokenize,this);this._cache[_ba3]=[this.key,this.filters];}},{_cache:{},_re:/(?:^_\("([^\\"]*(?:\\.[^\\"])*)"\)|^"([^\\"]*(?:\\.[^\\"]*)*)"|^([a-zA-Z0-9_.]+)|\|(\w+)(?::(?:_\("([^\\"]*(?:\\.[^\\"])*)"\)|"([^\\"]*(?:\\.[^\\"]*)*)"|([a-zA-Z0-9_.]+)|'([^\\']*(?:\\.[^\\']*)*)'))?|^'([^\\']*(?:\\.[^\\']*)*)')/g,_values:{0:"\"",1:"\"",2:"",8:"\""},_args:{4:"\"",5:"\"",6:"",7:"'"},_tokenize:function(){var pos,arg;for(var i=0,has=[];i<arguments.length;i++){has[i]=(typeof arguments[i]!="undefined"&&typeof arguments[i]=="string"&&arguments[i]);}if(!this.key){for(pos in this._values){if(has[pos]){this.key=this._values[pos]+arguments[pos]+this._values[pos];break;}}}else{for(pos in this._args){if(has[pos]){var _ba5=arguments[pos];if(this._args[pos]=="'"){_ba5=_ba5.replace(/\\'/g,"'");}else{if(this._args[pos]=="\""){_ba5=_ba5.replace(/\\"/g,"\"");}}arg=[!this._args[pos],_ba5];break;}}var fn=ddt.getFilter(arguments[3]);if(!dojo.isFunction(fn)){throw new Error(arguments[3]+" is not registered as a filter");}this.filters.push([fn,arg]);}},getExpression:function(){return this.contents;},resolve:function(_ba6){if(typeof this.key=="undefined"){return "";}var str=this.resolvePath(this.key,_ba6);for(var i=0,_ba7;_ba7=this.filters[i];i++){if(_ba7[1]){if(_ba7[1][0]){str=_ba7[0](str,this.resolvePath(_ba7[1][1],_ba6));}else{str=_ba7[0](str,_ba7[1][1]);}}else{str=_ba7[0](str);}}return str;},resolvePath:function(path,_ba8){var _ba9,_baa;var _bab=path.charAt(0);var last=path.slice(-1);if(!isNaN(parseInt(_bab))){_ba9=(path.indexOf(".")==-1)?parseInt(path):parseFloat(path);}else{if(_bab=="\""&&_bab==last){_ba9=path.slice(1,-1);}else{if(path=="true"){return true;}if(path=="false"){return false;}if(path=="null"||path=="None"){return null;}_baa=path.split(".");_ba9=_ba8.get(_baa[0]);if(dojo.isFunction(_ba9)){var self=_ba8.getThis&&_ba8.getThis();if(_ba9.alters_data){_ba9="";}else{if(self){_ba9=_ba9.call(self);}else{_ba9="";}}}for(var i=1;i<_baa.length;i++){var part=_baa[i];if(_ba9){var base=_ba9;if(dojo.isObject(_ba9)&&part=="items"&&typeof _ba9[part]=="undefined"){var _bac=[];for(var key in _ba9){_bac.push([key,_ba9[key]]);}_ba9=_bac;continue;}if(_ba9.get&&dojo.isFunction(_ba9.get)&&_ba9.get.safe){_ba9=_ba9.get(part);}else{if(typeof _ba9[part]=="undefined"){_ba9=_ba9[part];break;}else{_ba9=_ba9[part];}}if(dojo.isFunction(_ba9)){if(_ba9.alters_data){_ba9="";}else{_ba9=_ba9.call(base);}}else{if(_ba9 instanceof Date){_ba9=dd._Context.prototype._normalize(_ba9);}}}else{return "";}}}}return _ba9;}});dd._TextNode=dd._Node=dojo.extend(function(obj){this.contents=obj;},{set:function(data){this.contents=data;return this;},render:function(_bad,_bae){return _bae.concat(this.contents);},isEmpty:function(){return !dojo.trim(this.contents);},clone:function(){return this;}});dd._NodeList=dojo.extend(function(_baf){this.contents=_baf||[];this.last="";},{push:function(node){this.contents.push(node);return this;},concat:function(_bb0){this.contents=this.contents.concat(_bb0);return this;},render:function(_bb1,_bb2){for(var i=0;i<this.contents.length;i++){_bb2=this.contents[i].render(_bb1,_bb2);if(!_bb2){throw new Error("Template must return buffer");}}return _bb2;},dummyRender:function(_bb3){return this.render(_bb3,dd.Template.prototype.getBuffer()).toString();},unrender:function(){return arguments[1];},clone:function(){return this;},rtrim:function(){while(1){i=this.contents.length-1;if(this.contents[i] instanceof dd._TextNode&&this.contents[i].isEmpty()){this.contents.pop();}else{break;}}return this;}});dd._VarNode=dojo.extend(function(str){this.contents=new dd._Filter(str);},{render:function(_bb4,_bb5){var str=this.contents.resolve(_bb4);if(!str.safe){str=dd._base.escape(""+str);}return _bb5.concat(str);}});dd._noOpNode=new function(){this.render=this.unrender=function(){return arguments[1];};this.clone=function(){return this;};};dd._Parser=dojo.extend(function(_bb6){this.contents=_bb6;},{i:0,parse:function(_bb7){var _bb8={},_bb9;_bb7=_bb7||[];for(var i=0;i<_bb7.length;i++){_bb8[_bb7[i]]=true;}var _bba=new dd._NodeList();while(this.i<this.contents.length){_bb9=this.contents[this.i++];if(typeof _bb9=="string"){_bba.push(new dd._TextNode(_bb9));}else{var type=_bb9[0];var text=_bb9[1];if(type==dd.TOKEN_VAR){_bba.push(new dd._VarNode(text));}else{if(type==dd.TOKEN_BLOCK){if(_bb8[text]){--this.i;return _bba;}var cmd=text.split(/\s+/g);if(cmd.length){cmd=cmd[0];var fn=ddt.getTag(cmd);if(fn){_bba.push(fn(this,new dd.Token(type,text)));}}}}}}if(_bb7.length){throw new Error("Could not find closing tag(s): "+_bb7.toString());}this.contents.length=0;return _bba;},next_token:function(){var _bbb=this.contents[this.i++];return new dd.Token(_bbb[0],_bbb[1]);},delete_first_token:function(){this.i++;},skip_past:function(_bbc){while(this.i<this.contents.length){var _bbd=this.contents[this.i++];if(_bbd[0]==dd.TOKEN_BLOCK&&_bbd[1]==_bbc){return;}}throw new Error("Unclosed tag found when looking for "+_bbc);},create_variable_node:function(expr){return new dd._VarNode(expr);},create_text_node:function(expr){return new dd._TextNode(expr||"");},getTemplate:function(file){return new dd.Template(file);}});dd.register={_registry:{attributes:[],tags:[],filters:[]},get:function(_bbe,name){var _bbf=dd.register._registry[_bbe+"s"];for(var i=0,_bc0;_bc0=_bbf[i];i++){if(typeof _bc0[0]=="string"){if(_bc0[0]==name){return _bc0;}}else{if(name.match(_bc0[0])){return _bc0;}}}},getAttributeTags:function(){var tags=[];var _bc1=dd.register._registry.attributes;for(var i=0,_bc2;_bc2=_bc1[i];i++){if(_bc2.length==3){tags.push(_bc2);}else{var fn=dojo.getObject(_bc2[1]);if(fn&&dojo.isFunction(fn)){_bc2.push(fn);tags.push(_bc2);}}}return tags;},_any:function(type,base,_bc3){for(var path in _bc3){for(var i=0,fn;fn=_bc3[path][i];i++){var key=fn;if(dojo.isArray(fn)){key=fn[0];fn=fn[1];}if(typeof key=="string"){if(key.substr(0,5)=="attr:"){var attr=fn;if(attr.substr(0,5)=="attr:"){attr=attr.slice(5);}dd.register._registry.attributes.push([attr.toLowerCase(),base+"."+path+"."+attr]);}key=key.toLowerCase();}dd.register._registry[type].push([key,fn,base+"."+path]);}}},tags:function(base,_bc4){dd.register._any("tags",base,_bc4);},filters:function(base,_bc5){dd.register._any("filters",base,_bc5);}};var _bc6=/&/g;var _bc7=/</g;var _bc8=/>/g;var _bc9=/'/g;var _bca=/"/g;dd._base.escape=function(_bcb){return dd.mark_safe(_bcb.replace(_bc6,"&amp;").replace(_bc7,"&lt;").replace(_bc8,"&gt;").replace(_bca,"&quot;").replace(_bc9,"&#39;"));};dd._base.safe=function(_bcc){if(typeof _bcc=="string"){_bcc=new String(_bcc);}if(typeof _bcc=="object"){_bcc.safe=true;}return _bcc;};dd.mark_safe=dd._base.safe;dd.register.tags("dojox.dtl.tag",{"date":["now"],"logic":["if","for","ifequal","ifnotequal"],"loader":["extends","block","include","load","ssi"],"misc":["comment","debug","filter","firstof","spaceless","templatetag","widthratio","with"],"loop":["cycle","ifchanged","regroup"]});dd.register.filters("dojox.dtl.filter",{"dates":["date","time","timesince","timeuntil"],"htmlstrings":["linebreaks","linebreaksbr","removetags","striptags"],"integers":["add","get_digit"],"lists":["dictsort","dictsortreversed","first","join","length","length_is","random","slice","unordered_list"],"logic":["default","default_if_none","divisibleby","yesno"],"misc":["filesizeformat","pluralize","phone2numeric","pprint"],"strings":["addslashes","capfirst","center","cut","fix_ampersands","floatformat","iriencode","linenumbers","ljust","lower","make_list","rjust","slugify","stringformat","title","truncatewords","truncatewords_html","upper","urlencode","urlize","urlizetrunc","wordcount","wordwrap"]});dd.register.filters("dojox.dtl",{"_base":["escape","safe"]});})();}if(!dojo._hasResource["dojox.dtl"]){dojo._hasResource["dojox.dtl"]=true;dojo.provide("dojox.dtl");}if(!dojo._hasResource["dojox.dtl._Templated"]){dojo._hasResource["dojox.dtl._Templated"]=true;dojo.provide("dojox.dtl._Templated");dojo.declare("dojox.dtl._Templated",dijit._Templated,{_dijitTemplateCompat:false,buildRendering:function(){var node;if(this.domNode&&!this._template){return;}if(!this._template){var t=this.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);if(t instanceof dojox.dtl.Template){this._template=t;}else{node=t;}}if(!node){var _bcd=new dojox.dtl._Context(this);if(!this._created){delete _bcd._getter;}var _bce=dojo._toDom(this._template.render(_bcd));if(_bce.nodeType!==1&&_bce.nodeType!==3){for(var i=0,l=_bce.childNodes.length;i<l;++i){node=_bce.childNodes[i];if(node.nodeType==1){break;}}}else{node=_bce;}}this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _bcf=dojo.parser,qry,attr;if(_bcf._query!="[dojoType]"){qry=_bcf._query;attr=_bcf._attrName;_bcf._query="[dojoType]";_bcf._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_bcf._query=qry;_bcf._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}if(this.domNode){dojo.place(node,this.domNode,"before");this.destroyDescendants();dojo.destroy(this.domNode);}this.domNode=node;this._fillContent(this.srcNodeRef);},_templateCache:{},getCachedTemplate:function(_bd0,_bd1,_bd2){var _bd3=this._templateCache;var key=_bd1||_bd0;if(_bd3[key]){return _bd3[key];}_bd1=dojo.string.trim(_bd1||dojo.cache(_bd0,{sanitize:true}));if(this._dijitTemplateCompat&&(_bd2||_bd1.match(/\$\{([^\}]+)\}/g))){_bd1=this._stringRepl(_bd1);}if(_bd2||!_bd1.match(/\{[{%]([^\}]+)[%}]\}/g)){return _bd3[key]=dojo._toDom(_bd1);}else{return _bd3[key]=new dojox.dtl.Template(_bd1);}},render:function(){this.buildRendering();},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);}});}if(!dojo._hasResource["dojox.dtl.Context"]){dojo._hasResource["dojox.dtl.Context"]=true;dojo.provide("dojox.dtl.Context");dojox.dtl.Context=dojo.extend(function(dict){this._this={};dojox.dtl._Context.call(this,dict);},dojox.dtl._Context.prototype,{getKeys:function(){var keys=[];for(var key in this){if(this.hasOwnProperty(key)&&key!="_this"){keys.push(key);}}return keys;},extend:function(obj){return dojo.delegate(this,obj);},filter:function(_bd4){var _bd5=new dojox.dtl.Context();var keys=[];var i,arg;if(_bd4 instanceof dojox.dtl.Context){keys=_bd4.getKeys();}else{if(typeof _bd4=="object"){for(var key in _bd4){keys.push(key);}}else{for(i=0;arg=arguments[i];i++){if(typeof arg=="string"){keys.push(arg);}}}}for(i=0,key;key=keys[i];i++){_bd5[key]=this[key];}return _bd5;},setThis:function(_bd6){this._this=_bd6;},getThis:function(){return this._this;},hasKey:function(key){if(this._getter){var got=this._getter(key);if(typeof got!="undefined"){return true;}}if(typeof this[key]!="undefined"){return true;}return false;}});}if(!dojo._hasResource["dojox.dtl.filter.htmlstrings"]){dojo._hasResource["dojox.dtl.filter.htmlstrings"]=true;dojo.provide("dojox.dtl.filter.htmlstrings");dojo.mixin(dojox.dtl.filter.htmlstrings,{_linebreaksrn:/(\r\n|\n\r)/g,_linebreaksn:/\n{2,}/g,_linebreakss:/(^\s+|\s+$)/g,_linebreaksbr:/\n/g,_removetagsfind:/[a-z0-9]+/g,_striptags:/<[^>]*?>/g,linebreaks:function(_bd7){var _bd8=[];var dh=dojox.dtl.filter.htmlstrings;_bd7=_bd7.replace(dh._linebreaksrn,"\n");var _bd9=_bd7.split(dh._linebreaksn);for(var i=0;i<_bd9.length;i++){var part=_bd9[i].replace(dh._linebreakss,"").replace(dh._linebreaksbr,"<br />");_bd8.push("<p>"+part+"</p>");}return _bd8.join("\n\n");},linebreaksbr:function(_bda){var dh=dojox.dtl.filter.htmlstrings;return _bda.replace(dh._linebreaksrn,"\n").replace(dh._linebreaksbr,"<br />");},removetags:function(_bdb,arg){var dh=dojox.dtl.filter.htmlstrings;var tags=[];var _bdc;while(_bdc=dh._removetagsfind.exec(arg)){tags.push(_bdc[0]);}tags="("+tags.join("|")+")";return _bdb.replace(new RegExp("</?s*"+tags+"s*[^>]*>","gi"),"");},striptags:function(_bdd){return _bdd.replace(dojox.dtl.filter.htmlstrings._striptags,"");}});}if(!dojo._hasResource["dojox.dtl.filter.strings"]){dojo._hasResource["dojox.dtl.filter.strings"]=true;dojo.provide("dojox.dtl.filter.strings");dojo.mixin(dojox.dtl.filter.strings,{_urlquote:function(url,safe){if(!safe){safe="/";}return dojox.string.tokenize(url,/([^\w-_.])/g,function(_bde){if(safe.indexOf(_bde)==-1){if(_bde==" "){return "+";}else{return "%"+_bde.charCodeAt(0).toString(16).toUpperCase();}}return _bde;}).join("");},addslashes:function(_bdf){return _bdf.replace(/\\/g,"\\\\").replace(/"/g,"\\\"").replace(/'/g,"\\'");},capfirst:function(_be0){_be0=""+_be0;return _be0.charAt(0).toUpperCase()+_be0.substring(1);},center:function(_be1,arg){arg=arg||_be1.length;_be1=_be1+"";var diff=arg-_be1.length;if(diff%2){_be1=_be1+" ";diff-=1;}for(var i=0;i<diff;i+=2){_be1=" "+_be1+" ";}return _be1;},cut:function(_be2,arg){arg=arg+""||"";_be2=_be2+"";return _be2.replace(new RegExp(arg,"g"),"");},_fix_ampersands:/&(?!(\w+|#\d+);)/g,fix_ampersands:function(_be3){return _be3.replace(dojox.dtl.filter.strings._fix_ampersands,"&amp;");},floatformat:function(_be4,arg){arg=parseInt(arg||-1,10);_be4=parseFloat(_be4);var m=_be4-_be4.toFixed(0);if(!m&&arg<0){return _be4.toFixed();}_be4=_be4.toFixed(Math.abs(arg));return (arg<0)?parseFloat(_be4)+"":_be4;},iriencode:function(_be5){return dojox.dtl.filter.strings._urlquote(_be5,"/#%[]=:;$&()+,!");},linenumbers:function(_be6){var df=dojox.dtl.filter;var _be7=_be6.split("\n");var _be8=[];var _be9=(_be7.length+"").length;for(var i=0,line;i<_be7.length;i++){line=_be7[i];_be8.push(df.strings.ljust(i+1,_be9)+". "+dojox.dtl._base.escape(line));}return _be8.join("\n");},ljust:function(_bea,arg){_bea=_bea+"";arg=parseInt(arg,10);while(_bea.length<arg){_bea=_bea+" ";}return _bea;},lower:function(_beb){return (_beb+"").toLowerCase();},make_list:function(_bec){var _bed=[];if(typeof _bec=="number"){_bec=_bec+"";}if(_bec.charAt){for(var i=0;i<_bec.length;i++){_bed.push(_bec.charAt(i));}return _bed;}if(typeof _bec=="object"){for(var key in _bec){_bed.push(_bec[key]);}return _bed;}return [];},rjust:function(_bee,arg){_bee=_bee+"";arg=parseInt(arg,10);while(_bee.length<arg){_bee=" "+_bee;}return _bee;},slugify:function(_bef){_bef=_bef.replace(/[^\w\s-]/g,"").toLowerCase();return _bef.replace(/[\-\s]+/g,"-");},_strings:{},stringformat:function(_bf0,arg){arg=""+arg;var _bf1=dojox.dtl.filter.strings._strings;if(!_bf1[arg]){_bf1[arg]=new dojox.string.sprintf.Formatter("%"+arg);}return _bf1[arg].format(_bf0);},title:function(_bf2){var last,_bf3="";for(var i=0,_bf4;i<_bf2.length;i++){_bf4=_bf2.charAt(i);if(last==" "||last=="\n"||last=="\t"||!last){_bf3+=_bf4.toUpperCase();}else{_bf3+=_bf4.toLowerCase();}last=_bf4;}return _bf3;},_truncatewords:/[ \n\r\t]/,truncatewords:function(_bf5,arg){arg=parseInt(arg,10);if(!arg){return _bf5;}for(var i=0,j=_bf5.length,_bf6=0,_bf7,last;i<_bf5.length;i++){_bf7=_bf5.charAt(i);if(dojox.dtl.filter.strings._truncatewords.test(last)){if(!dojox.dtl.filter.strings._truncatewords.test(_bf7)){++_bf6;if(_bf6==arg){return _bf5.substring(0,j+1);}}}else{if(!dojox.dtl.filter.strings._truncatewords.test(_bf7)){j=i;}}last=_bf7;}return _bf5;},_truncate_words:/(&.*?;|<.*?>|(\w[\w\-]*))/g,_truncate_tag:/<(\/)?([^ ]+?)(?: (\/)| .*?)?>/,_truncate_singlets:{br:true,col:true,link:true,base:true,img:true,param:true,area:true,hr:true,input:true},truncatewords_html:function(_bf8,arg){arg=parseInt(arg,10);if(arg<=0){return "";}var _bf9=dojox.dtl.filter.strings;var _bfa=0;var open=[];var _bfb=dojox.string.tokenize(_bf8,_bf9._truncate_words,function(all,word){if(word){++_bfa;if(_bfa<arg){return word;}else{if(_bfa==arg){return word+" ...";}}}var tag=all.match(_bf9._truncate_tag);if(!tag||_bfa>=arg){return;}var _bfc=tag[1];var _bfd=tag[2].toLowerCase();var _bfe=tag[3];if(_bfc||_bf9._truncate_singlets[_bfd]){}else{if(_bfc){var i=dojo.indexOf(open,_bfd);if(i!=-1){open=open.slice(i+1);}}else{open.unshift(_bfd);}}return all;}).join("");_bfb=_bfb.replace(/\s+$/g,"");for(var i=0,tag;tag=open[i];i++){_bfb+="</"+tag+">";}return _bfb;},upper:function(_bff){return _bff.toUpperCase();},urlencode:function(_c00){return dojox.dtl.filter.strings._urlquote(_c00);},_urlize:/^((?:[(>]|&lt;)*)(.*?)((?:[.,)>\n]|&gt;)*)$/,_urlize2:/^\S+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+$/,urlize:function(_c01){return dojox.dtl.filter.strings.urlizetrunc(_c01);},urlizetrunc:function(_c02,arg){arg=parseInt(arg);return dojox.string.tokenize(_c02,/(\S+)/g,function(word){var _c03=dojox.dtl.filter.strings._urlize.exec(word);if(!_c03){return word;}var lead=_c03[1];var _c04=_c03[2];var _c05=_c03[3];var _c06=_c04.indexOf("www.")==0;var _c07=_c04.indexOf("@")!=-1;var _c08=_c04.indexOf(":")!=-1;var _c09=_c04.indexOf("http://")==0;var _c0a=_c04.indexOf("https://")==0;var _c0b=/[a-zA-Z0-9]/.test(_c04.charAt(0));var _c0c=_c04.substring(_c04.length-4);var _c0d=_c04;if(arg>3){_c0d=_c0d.substring(0,arg-3)+"...";}if(_c06||(!_c07&&!_c09&&_c04.length&&_c0b&&(_c0c==".org"||_c0c==".net"||_c0c==".com"))){return "<a href=\"http://"+_c04+"\" rel=\"nofollow\">"+_c0d+"</a>";}else{if(_c09||_c0a){return "<a href=\""+_c04+"\" rel=\"nofollow\">"+_c0d+"</a>";}else{if(_c07&&!_c06&&!_c08&&dojox.dtl.filter.strings._urlize2.test(_c04)){return "<a href=\"mailto:"+_c04+"\">"+_c04+"</a>";}}}return word;}).join("");},wordcount:function(_c0e){_c0e=dojo.trim(_c0e);if(!_c0e){return 0;}return _c0e.split(/\s+/g).length;},wordwrap:function(_c0f,arg){arg=parseInt(arg);var _c10=[];var _c11=_c0f.split(/\s+/g);if(_c11.length){var word=_c11.shift();_c10.push(word);var pos=word.length-word.lastIndexOf("\n")-1;for(var i=0;i<_c11.length;i++){word=_c11[i];if(word.indexOf("\n")!=-1){var _c12=word.split(/\n/g);}else{var _c12=[word];}pos+=_c12[0].length+1;if(arg&&pos>arg){_c10.push("\n");pos=_c12[_c12.length-1].length;}else{_c10.push(" ");if(_c12.length>1){pos=_c12[_c12.length-1].length;}}_c10.push(word);}}return _c10.join("");}});}if(!dojo._hasResource["dojox.dtl.tag.logic"]){dojo._hasResource["dojox.dtl.tag.logic"]=true;dojo.provide("dojox.dtl.tag.logic");(function(){var dd=dojox.dtl;var ddt=dd.text;var ddtl=dd.tag.logic;ddtl.IfNode=dojo.extend(function(_c13,_c14,_c15,type){this.bools=_c13;this.trues=_c14;this.falses=_c15;this.type=type;},{render:function(_c16,_c17){var i,bool,_c18,_c19,_c1a;if(this.type=="or"){for(i=0;bool=this.bools[i];i++){_c18=bool[0];_c19=bool[1];_c1a=_c19.resolve(_c16);if((_c1a&&!_c18)||(_c18&&!_c1a)){if(this.falses){_c17=this.falses.unrender(_c16,_c17);}return (this.trues)?this.trues.render(_c16,_c17,this):_c17;}}if(this.trues){_c17=this.trues.unrender(_c16,_c17);}return (this.falses)?this.falses.render(_c16,_c17,this):_c17;}else{for(i=0;bool=this.bools[i];i++){_c18=bool[0];_c19=bool[1];_c1a=_c19.resolve(_c16);if(_c1a==_c18){if(this.trues){_c17=this.trues.unrender(_c16,_c17);}return (this.falses)?this.falses.render(_c16,_c17,this):_c17;}}if(this.falses){_c17=this.falses.unrender(_c16,_c17);}return (this.trues)?this.trues.render(_c16,_c17,this):_c17;}return _c17;},unrender:function(_c1b,_c1c){_c1c=(this.trues)?this.trues.unrender(_c1b,_c1c):_c1c;_c1c=(this.falses)?this.falses.unrender(_c1b,_c1c):_c1c;return _c1c;},clone:function(_c1d){var _c1e=(this.trues)?this.trues.clone(_c1d):null;var _c1f=(this.falses)?this.falses.clone(_c1d):null;return new this.constructor(this.bools,_c1e,_c1f,this.type);}});ddtl.IfEqualNode=dojo.extend(function(var1,var2,_c20,_c21,_c22){this.var1=new dd._Filter(var1);this.var2=new dd._Filter(var2);this.trues=_c20;this.falses=_c21;this.negate=_c22;},{render:function(_c23,_c24){var var1=this.var1.resolve(_c23);var var2=this.var2.resolve(_c23);var1=(typeof var1!="undefined")?var1:"";var2=(typeof var1!="undefined")?var2:"";if((this.negate&&var1!=var2)||(!this.negate&&var1==var2)){if(this.falses){_c24=this.falses.unrender(_c23,_c24,this);}return (this.trues)?this.trues.render(_c23,_c24,this):_c24;}if(this.trues){_c24=this.trues.unrender(_c23,_c24,this);}return (this.falses)?this.falses.render(_c23,_c24,this):_c24;},unrender:function(_c25,_c26){return ddtl.IfNode.prototype.unrender.call(this,_c25,_c26);},clone:function(_c27){var _c28=this.trues?this.trues.clone(_c27):null;var _c29=this.falses?this.falses.clone(_c27):null;return new this.constructor(this.var1.getExpression(),this.var2.getExpression(),_c28,_c29,this.negate);}});ddtl.ForNode=dojo.extend(function(_c2a,loop,_c2b,_c2c){this.assign=_c2a;this.loop=new dd._Filter(loop);this.reversed=_c2b;this.nodelist=_c2c;this.pool=[];},{render:function(_c2d,_c2e){var i,j,k;var _c2f=false;var _c30=this.assign;for(k=0;k<_c30.length;k++){if(typeof _c2d[_c30[k]]!="undefined"){_c2f=true;_c2d=_c2d.push();break;}}if(!_c2f&&_c2d.forloop){_c2f=true;_c2d=_c2d.push();}var _c31=this.loop.resolve(_c2d)||[];for(i=_c31.length;i<this.pool.length;i++){this.pool[i].unrender(_c2d,_c2e,this);}if(this.reversed){_c31=_c31.slice(0).reverse();}var _c32=dojo.isObject(_c31)&&!dojo.isArrayLike(_c31);var _c33=[];if(_c32){for(var key in _c31){_c33.push(_c31[key]);}}else{_c33=_c31;}var _c34=_c2d.forloop={parentloop:_c2d.get("forloop",{})};var j=0;for(i=0;i<_c33.length;i++){var item=_c33[i];_c34.counter0=j;_c34.counter=j+1;_c34.revcounter0=_c33.length-j-1;_c34.revcounter=_c33.length-j;_c34.first=!j;_c34.last=(j==_c33.length-1);if(_c30.length>1&&dojo.isArrayLike(item)){if(!_c2f){_c2f=true;_c2d=_c2d.push();}var _c35={};for(k=0;k<item.length&&k<_c30.length;k++){_c35[_c30[k]]=item[k];}dojo.mixin(_c2d,_c35);}else{_c2d[_c30[0]]=item;}if(j+1>this.pool.length){this.pool.push(this.nodelist.clone(_c2e));}_c2e=this.pool[j++].render(_c2d,_c2e,this);}delete _c2d.forloop;if(_c2f){_c2d=_c2d.pop();}else{for(k=0;k<_c30.length;k++){delete _c2d[_c30[k]];}}return _c2e;},unrender:function(_c36,_c37){for(var i=0,pool;pool=this.pool[i];i++){_c37=pool.unrender(_c36,_c37);}return _c37;},clone:function(_c38){return new this.constructor(this.assign,this.loop.getExpression(),this.reversed,this.nodelist.clone(_c38));}});dojo.mixin(ddtl,{if_:function(_c39,_c3a){var i,part,type,_c3b=[],_c3c=_c3a.contents.split();_c3c.shift();_c3a=_c3c.join(" ");_c3c=_c3a.split(" and ");if(_c3c.length==1){type="or";_c3c=_c3a.split(" or ");}else{type="and";for(i=0;i<_c3c.length;i++){if(_c3c[i].indexOf(" or ")!=-1){throw new Error("'if' tags can't mix 'and' and 'or'");}}}for(i=0;part=_c3c[i];i++){var not=false;if(part.indexOf("not ")==0){part=part.slice(4);not=true;}_c3b.push([not,new dd._Filter(part)]);}var _c3d=_c39.parse(["else","endif"]);var _c3e=false;var _c3a=_c39.next_token();if(_c3a.contents=="else"){_c3e=_c39.parse(["endif"]);_c39.next_token();}return new ddtl.IfNode(_c3b,_c3d,_c3e,type);},_ifequal:function(_c3f,_c40,_c41){var _c42=_c40.split_contents();if(_c42.length!=3){throw new Error(_c42[0]+" takes two arguments");}var end="end"+_c42[0];var _c43=_c3f.parse(["else",end]);var _c44=false;var _c40=_c3f.next_token();if(_c40.contents=="else"){_c44=_c3f.parse([end]);_c3f.next_token();}return new ddtl.IfEqualNode(_c42[1],_c42[2],_c43,_c44,_c41);},ifequal:function(_c45,_c46){return ddtl._ifequal(_c45,_c46);},ifnotequal:function(_c47,_c48){return ddtl._ifequal(_c47,_c48,true);},for_:function(_c49,_c4a){var _c4b=_c4a.contents.split();if(_c4b.length<4){throw new Error("'for' statements should have at least four words: "+_c4a.contents);}var _c4c=_c4b[_c4b.length-1]=="reversed";var _c4d=(_c4c)?-3:-2;if(_c4b[_c4b.length+_c4d]!="in"){throw new Error("'for' tag received an invalid argument: "+_c4a.contents);}var _c4e=_c4b.slice(1,_c4d).join(" ").split(/ *, */);for(var i=0;i<_c4e.length;i++){if(!_c4e[i]||_c4e[i].indexOf(" ")!=-1){throw new Error("'for' tag received an invalid argument: "+_c4a.contents);}}var _c4f=_c49.parse(["endfor"]);_c49.next_token();return new ddtl.ForNode(_c4e,_c4b[_c4b.length+_c4d+1],_c4c,_c4f);}});})();}if(!dojo._hasResource["dojox.fx._base"]){dojo._hasResource["dojox.fx._base"]=true;dojo.provide("dojox.fx._base");dojo.mixin(dojox.fx,{anim:dojo.anim,animateProperty:dojo.animateProperty,fadeTo:dojo._fade,fadeIn:dojo.fadeIn,fadeOut:dojo.fadeOut,combine:dojo.fx.combine,chain:dojo.fx.chain,slideTo:dojo.fx.slideTo,wipeIn:dojo.fx.wipeIn,wipeOut:dojo.fx.wipeOut});dojox.fx.sizeTo=function(args){var node=args.node=dojo.byId(args.node),abs="absolute";var _c50=args.method||"chain";if(!args.duration){args.duration=500;}if(_c50=="chain"){args.duration=Math.floor(args.duration/2);}var top,_c51,left,_c52,_c53,_c54=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;top=(pos==abs?n.offsetTop:parseInt(cs.top)||0);left=(pos==abs?n.offsetLeft:parseInt(cs.left)||0);_c53=(w=="auto"?0:parseInt(w));_c54=(h=="auto"?0:parseInt(h));_c52=left-Math.floor((args.width-_c53)/2);_c51=top-Math.floor((args.height-_c54)/2);if(pos!=abs&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position=abs;n.style.top=top+"px";n.style.left=left+"px";}};})(node);var _c55=dojo.animateProperty(dojo.mixin({properties:{height:function(){init();return {end:args.height||0,start:_c54};},top:function(){return {start:top,end:_c51};}}},args));var _c56=dojo.animateProperty(dojo.mixin({properties:{width:function(){return {start:_c53,end:args.width||0};},left:function(){return {start:left,end:_c52};}}},args));var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_c55,_c56]);return anim;};dojox.fx.slideBy=function(args){var node=args.node=dojo.byId(args.node),top,left;var init=(function(n){return function(){var cs=dojo.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=dojo.coords(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 _c57=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));dojo.connect(_c57,"beforeBegin",_c57,init);return _c57;};dojox.fx.crossFade=function(args){var _c58=args.nodes[0]=dojo.byId(args.nodes[0]),op1=dojo.style(_c58,"opacity"),_c59=args.nodes[1]=dojo.byId(args.nodes[1]),op2=dojo.style(_c59,"opacity");var _c5a=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_c58},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_c59},args))]);return _c5a;};dojox.fx.highlight=function(args){var node=args.node=dojo.byId(args.node);args.duration=args.duration||400;var _c5b=args.color||"#ffff99",_c5c=dojo.style(node,"backgroundColor");if(_c5c=="rgba(0, 0, 0, 0)"){_c5c="transparent";}var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_c5b,end:_c5c}}},args));if(_c5c=="transparent"){dojo.connect(anim,"onEnd",anim,function(){node.style.backgroundColor=_c5c;});}return anim;};dojox.fx.wipeTo=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var dir=(args.width?"width":"height"),_c5d=args[dir],_c5e={};_c5e[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=dojo.style(node,dir);return Math.max(now,1);}},end:_c5d};var anim=dojo.animateProperty(dojo.mixin({properties:_c5e},args));return anim;};}if(!dojo._hasResource["dojox.fx._core"]){dojo._hasResource["dojox.fx._core"]=true;dojo.provide("dojox.fx._core");dojox.fx._Line=function(_c5f,end){this.start=_c5f;this.end=end;var _c60=dojo.isArray(_c5f),d=(_c60?[]:end-_c5f);if(_c60){dojo.forEach(this.start,function(s,i){d[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.forEach(this.start,function(s,i){res[i]=(d[i]*n)+s;},this);return res;};}else{this.getValue=function(n){return (d*n)+this.start;};}};}if(!dojo._hasResource["dojox.fx.scroll"]){dojo._hasResource["dojox.fx.scroll"]=true;dojo.provide("dojox.fx.scroll");dojo.experimental("dojox.fx.scroll");dojox.fx.smoothScroll=function(args){if(!args.target){args.target=dojo.position(args.node,true);}var _c61=dojo[(dojo.isIE?"isObject":"isFunction")](args["win"].scrollTo),_c62={x:args.target.x,y:args.target.y};if(!_c61){var _c63=dojo.position(args.win);_c62.x-=_c63.x;_c62.y-=_c63.y;}var _c64=(_c61)?(function(val){args.win.scrollTo(val[0],val[1]);}):(function(val){args.win.scrollLeft=val[0];args.win.scrollTop=val[1];});var anim=new dojo.Animation(dojo.mixin({beforeBegin:function(){if(this.curve){delete this.curve;}var _c65=_c61?dojo._docScroll():{x:args.win.scrollLeft,y:args.win.scrollTop};anim.curve=new dojox.fx._Line([_c65.x,_c65.y],[_c62.x,_c62.y]);},onAnimate:_c64},args));return anim;};}if(!dojo._hasResource["dijit.form.VerticalSlider"]){dojo._hasResource["dijit.form.VerticalSlider"]=true;dojo.provide("dijit.form.VerticalSlider");dojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:dojo.cache("dijit.form","templates/VerticalSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderV\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV\"></td\r\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"><!--#5629--></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onmousedown:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableV\" style=\"vertical-align:top;\"\r\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></table>\r\n"),_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,_isReversed:function(){return this._descending;}});}if(!dojo._hasResource["dojox.fx"]){dojo._hasResource["dojox.fx"]=true;dojo.provide("dojox.fx");}if(!dojo._hasResource["dojox.form.RangeSlider"]){dojo._hasResource["dojox.form.RangeSlider"]=true;dojo.provide("dojox.form.RangeSlider");(function(){var _c66=function(a,b){return b-a;},_c67=function(a,b){return a-b;};dojo.declare("dojox.form._RangeSliderMixin",null,{value:[0,100],postMixInProperties:function(){this.inherited(arguments);this.value=dojo.map(this.value,function(i){return parseInt(i,10);});},postCreate:function(){this.inherited(arguments);this.value.sort(this._isReversed()?_c66:_c67);var _c68=this;var _c69=function(){dijit.form._SliderMoverMax.apply(this,arguments);this.widget=_c68;};dojo.extend(_c69,dijit.form._SliderMoverMax.prototype);this._movableMax=new dojo.dnd.Moveable(this.sliderHandleMax,{mover:_c69});dijit.setWaiState(this.focusNodeMax,"valuemin",this.minimum);dijit.setWaiState(this.focusNodeMax,"valuemax",this.maximum);var _c6a=function(){dijit.form._SliderBarMover.apply(this,arguments);this.widget=_c68;};dojo.extend(_c6a,dijit.form._SliderBarMover.prototype);this._movableBar=new dojo.dnd.Moveable(this.progressBar,{mover:_c6a});},destroy:function(){this.inherited(arguments);this._movableMax.destroy();this._movableBar.destroy();},_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){return;}var _c6b=e.currentTarget,_c6c=false,_c6d=false,k=dojo.keys;if(_c6b==this.sliderHandle){_c6c=true;}else{if(_c6b==this.progressBar){_c6d=_c6c=true;}else{if(_c6b==this.sliderHandleMax){_c6d=true;}}}switch(e.keyCode){case k.HOME:this._setValueAttr(this.minimum,true,_c6d);break;case k.END:this._setValueAttr(this.maximum,true,_c6d);break;case ((this._descending||this.isLeftToRight())?k.RIGHT_ARROW:k.LEFT_ARROW):case (this._descending===false?k.DOWN_ARROW:k.UP_ARROW):case (this._descending===false?k.PAGE_DOWN:k.PAGE_UP):if(_c6c&&_c6d){this._bumpValue([{"change":e.keyCode==k.PAGE_UP?this.pageIncrement:1,"useMaxValue":true},{"change":e.keyCode==k.PAGE_UP?this.pageIncrement:1,"useMaxValue":false}]);}else{if(_c6c){this._bumpValue(e.keyCode==k.PAGE_UP?this.pageIncrement:1,true);}else{if(_c6d){this._bumpValue(e.keyCode==k.PAGE_UP?this.pageIncrement:1);}}}break;case ((this._descending||this.isLeftToRight())?k.LEFT_ARROW:k.RIGHT_ARROW):case (this._descending===false?k.UP_ARROW:k.DOWN_ARROW):case (this._descending===false?k.PAGE_UP:k.PAGE_DOWN):if(_c6c&&_c6d){this._bumpValue([{change:e.keyCode==k.PAGE_DOWN?-this.pageIncrement:-1,useMaxValue:false},{change:e.keyCode==k.PAGE_DOWN?-this.pageIncrement:-1,useMaxValue:true}]);}else{if(_c6c){this._bumpValue(e.keyCode==k.PAGE_DOWN?-this.pageIncrement:-1);}else{if(_c6d){this._bumpValue(e.keyCode==k.PAGE_DOWN?-this.pageIncrement:-1,true);}}}break;default:dijit.form._FormValueWidget.prototype._onKeyPress.apply(this,arguments);this.inherited(arguments);return;}dojo.stopEvent(e);},_onHandleClickMax:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandleMax);}dojo.stopEvent(e);},_onClkIncBumper:function(){this._setValueAttr(this._descending===false?this.minimum:this.maximum,true,true);},_bumpValue:function(_c6e,_c6f){var _c70=dojo.isArray(_c6e)?[this._getBumpValue(_c6e[0].change,_c6e[0].useMaxValue),this._getBumpValue(_c6e[1].change,_c6e[1].useMaxValue)]:this._getBumpValue(_c6e,_c6f);this._setValueAttr(_c70,true,!dojo.isArray(_c6e)&&((_c6e>0&&!_c6f)||(_c6f&&_c6e<0)));},_getBumpValue:function(_c71,_c72){var s=dojo.getComputedStyle(this.sliderBarContainer),c=dojo._getContentBox(this.sliderBarContainer,s),_c73=this.discreteValues,_c74=!_c72?this.value[0]:this.value[1];if(_c73<=1||_c73==Infinity){_c73=c[this._pixelCount];}_c73--;if((this._isReversed()&&_c71<0)||(_c71>0&&!this._isReversed())){_c74=!_c72?this.value[1]:this.value[0];}var _c75=(_c74-this.minimum)*_c73/(this.maximum-this.minimum)+_c71;if(_c75<0){_c75=0;}if(_c75>_c73){_c75=_c73;}return _c75*(this.maximum-this.minimum)/_c73+this.minimum;},_onBarClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.progressBar);}dojo.stopEvent(e);},_onRemainingBarClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.progressBar);}var _c76=dojo.coords(this.sliderBarContainer,true),bar=dojo.coords(this.progressBar,true),_c77=e[this._mousePixelCoord]-_c76[this._startingPixelCoord],_c78=bar[this._startingPixelCount],_c79=_c78+bar[this._pixelCount],_c7a=this._isReversed()?_c77<=_c78:_c77>=_c79,p=this._isReversed()?_c76[this._pixelCount]-_c77:_c77;this._setPixelValue(p,_c76[this._pixelCount],true,_c7a);dojo.stopEvent(e);},_setPixelValue:function(_c7b,_c7c,_c7d,_c7e){if(this.disabled||this.readOnly){return;}var _c7f=this._getValueByPixelValue(_c7b,_c7c);this._setValueAttr(_c7f,_c7d,_c7e);},_getValueByPixelValue:function(_c80,_c81){_c80=_c80<0?0:_c81<_c80?_c81:_c80;var _c82=this.discreteValues;if(_c82<=1||_c82==Infinity){_c82=_c81;}_c82--;var _c83=_c81/_c82;var _c84=Math.round(_c80/_c83);return (this.maximum-this.minimum)*_c84/_c82+this.minimum;},_setValueAttr:function(_c85,_c86,_c87){var _c88=this.value;if(!dojo.isArray(_c85)){if(_c87){if(this._isReversed()){_c88[0]=_c85;}else{_c88[1]=_c85;}}else{if(this._isReversed()){_c88[1]=_c85;}else{_c88[0]=_c85;}}}else{_c88=_c85;}this._lastValueReported="";this.valueNode.value=this.value=_c85=_c88;dijit.setWaiState(this.focusNode,"valuenow",_c88[0]);dijit.setWaiState(this.focusNodeMax,"valuenow",_c88[1]);this.value.sort(this._isReversed()?_c66:_c67);dijit.form._FormValueWidget.prototype._setValueAttr.apply(this,arguments);this._printSliderBar(_c86,_c87);},_printSliderBar:function(_c89,_c8a){var _c8b=(this.value[0]-this.minimum)/(this.maximum-this.minimum);var _c8c=(this.value[1]-this.minimum)/(this.maximum-this.minimum);var _c8d=_c8b;if(_c8b>_c8c){_c8b=_c8c;_c8c=_c8d;}var _c8e=this._isReversed()?((1-_c8b)*100):(_c8b*100);var _c8f=this._isReversed()?((1-_c8c)*100):(_c8c*100);var _c90=this._isReversed()?((1-_c8c)*100):(_c8b*100);if(_c89&&this.slideDuration>0&&this.progressBar.style[this._progressPixelSize]){var _c91=_c8a?_c8c:_c8b;var _c92=this;var _c93={};var _c94=parseFloat(this.progressBar.style[this._handleOffsetCoord]);var _c95=this.slideDuration/10;if(_c95===0){return;}if(_c95<0){_c95=0-_c95;}var _c96={};var _c97={};var _c98={};_c96[this._handleOffsetCoord]={start:this.sliderHandle.style[this._handleOffsetCoord],end:_c8e,units:"%"};_c97[this._handleOffsetCoord]={start:this.sliderHandleMax.style[this._handleOffsetCoord],end:_c8f,units:"%"};_c98[this._handleOffsetCoord]={start:this.progressBar.style[this._handleOffsetCoord],end:_c90,units:"%"};_c98[this._progressPixelSize]={start:this.progressBar.style[this._progressPixelSize],end:(_c8c-_c8b)*100,units:"%"};var _c99=dojo.animateProperty({node:this.sliderHandle,duration:_c95,properties:_c96});var _c9a=dojo.animateProperty({node:this.sliderHandleMax,duration:_c95,properties:_c97});var _c9b=dojo.animateProperty({node:this.progressBar,duration:_c95,properties:_c98});var _c9c=dojo.fx.combine([_c99,_c9a,_c9b]);_c9c.play();}else{this.sliderHandle.style[this._handleOffsetCoord]=_c8e+"%";this.sliderHandleMax.style[this._handleOffsetCoord]=_c8f+"%";this.progressBar.style[this._handleOffsetCoord]=_c90+"%";this.progressBar.style[this._progressPixelSize]=((_c8c-_c8b)*100)+"%";}}});dojo.declare("dijit.form._SliderMoverMax",dijit.form._SliderMover,{onMouseMove:function(e){var _c9d=this.widget;var _c9e=_c9d._abspos;if(!_c9e){_c9e=_c9d._abspos=dojo.coords(_c9d.sliderBarContainer,true);_c9d._setPixelValue_=dojo.hitch(_c9d,"_setPixelValue");_c9d._isReversed_=_c9d._isReversed();}var _c9f=e[_c9d._mousePixelCoord]-_c9e[_c9d._startingPixelCoord];_c9d._setPixelValue_(_c9d._isReversed_?(_c9e[_c9d._pixelCount]-_c9f):_c9f,_c9e[_c9d._pixelCount],false,true);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _ca0=this.widget;_ca0._abspos=null;_ca0._setValueAttr(_ca0.value,true);}});dojo.declare("dijit.form._SliderBarMover",dojo.dnd.Mover,{onMouseMove:function(e){var _ca1=this.widget;if(_ca1.disabled||_ca1.readOnly){return;}var _ca2=_ca1._abspos;var bar=_ca1._bar;var _ca3=_ca1._mouseOffset;if(!_ca2){_ca2=_ca1._abspos=dojo.coords(_ca1.sliderBarContainer,true);_ca1._setPixelValue_=dojo.hitch(_ca1,"_setPixelValue");_ca1._getValueByPixelValue_=dojo.hitch(_ca1,"_getValueByPixelValue");_ca1._isReversed_=_ca1._isReversed();}if(!bar){bar=_ca1._bar=dojo.coords(_ca1.progressBar,true);}if(!_ca3){_ca3=_ca1._mouseOffset=e[_ca1._mousePixelCoord]-_ca2[_ca1._startingPixelCoord]-bar[_ca1._startingPixelCount];}var _ca4=e[_ca1._mousePixelCoord]-_ca2[_ca1._startingPixelCoord]-_ca3,_ca5=_ca4+bar[_ca1._pixelCount];pixelValues=[_ca4,_ca5];pixelValues.sort(_c67);if(pixelValues[0]<=0){pixelValues[0]=0;pixelValues[1]=bar[_ca1._pixelCount];}if(pixelValues[1]>=_ca2[_ca1._pixelCount]){pixelValues[1]=_ca2[_ca1._pixelCount];pixelValues[0]=_ca2[_ca1._pixelCount]-bar[_ca1._pixelCount];}var _ca6=[_ca1._getValueByPixelValue(_ca1._isReversed_?(_ca2[_ca1._pixelCount]-pixelValues[0]):pixelValues[0],_ca2[_ca1._pixelCount]),_ca1._getValueByPixelValue(_ca1._isReversed_?(_ca2[_ca1._pixelCount]-pixelValues[1]):pixelValues[1],_ca2[_ca1._pixelCount])];_ca1._setValueAttr(_ca6,false,false);},destroy:function(){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _ca7=this.widget;_ca7._abspos=null;_ca7._bar=null;_ca7._mouseOffset=null;_ca7._setValueAttr(_ca7.value,true);}});dojo.declare("dojox.form.HorizontalRangeSlider",[dijit.form.HorizontalSlider,dojox.form._RangeSliderMixin],{templateString:dojo.cache("dojox.form","resources/HorizontalRangeSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderH dojoxRangeSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"topDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><div waiRole=\"presentation\" class=\"dojoxRangeSliderBarContainer\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div dojoAttachPoint=\"sliderHandle\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable dijitSliderMoveableH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\r\n\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitSliderImageHandleH\"></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar,focusNode\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\r\n\t\t\t\t><div dojoAttachPoint=\"sliderHandleMax,focusNodeMax\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable dijitSliderMoveableH\" dojoAttachEvent=\"onmousedown:_onHandleClickMax\" waiRole=\"sliderMax\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\r\n\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitSliderImageHandleH\"></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onRemainingBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n")});dojo.declare("dojox.form.VerticalRangeSlider",[dijit.form.VerticalSlider,dojox.form._RangeSliderMixin],{templateString:dojo.cache("dojox.form","resources/VerticalRangeSlider.html","<table class=\"dijitReset dijitSlider dijitSliderV dojoxRangeSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"decrementButton\" dojoAttachEvent=\"onclick: increment\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper\" dojoAttachEvent=\"onclick:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td dojoAttachPoint=\"leftDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationL dijitSliderDecorationV\" style=\"text-align:center;height:100%;\"></td\r\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\r\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\r\n\t\t\t/><center waiRole=\"presentation\" style=\"position:relative;height:100%;\" dojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" dojoAttachEvent=\"onmousedown:_onRemainingBarClick\"\r\n\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable dijitSliderMoveableV\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClick\" style=\"vertical-align:top;\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\r\n\t\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitSliderImageHandleV\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t\t><div waiRole=\"presentation\" dojoAttachPoint=\"progressBar,focusNode\" tabIndex=\"${tabIndex}\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onBarClick\"\r\n\t\t\t\t\t></div\r\n\t\t\t\t\t><div dojoAttachPoint=\"sliderHandleMax,focusNodeMax\" tabIndex=\"${tabIndex}\" class=\"dijitSliderMoveable dijitSliderMoveableV\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_onHandleClickMax\" style=\"vertical-align:top;\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"\r\n\t\t\t\t\t\t><div class=\"dijitSliderImageHandle dijitSliderImageHandleV\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td dojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationR dijitSliderDecorationV\" style=\"text-align:center;height:100%;\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper\" dojoAttachEvent=\"onclick:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" dojoAttachPoint=\"incrementButton\" dojoAttachEvent=\"onclick: decrement\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></table>\r\n")});})();}if(!dojo._hasResource["dojox.layout.ExpandoPane"]){dojo._hasResource["dojox.layout.ExpandoPane"]=true;dojo.provide("dojox.layout.ExpandoPane");dojo.experimental("dojox.layout.ExpandoPane");dojo.declare("dojox.layout.ExpandoPane",[dijit.layout.ContentPane,dijit._Templated,dijit._Contained,dijit._Container],{templateString:dojo.cache("dojox.layout","resources/ExpandoPane.html","<div class=\"dojoxExpandoPane\">\r\n\t<div dojoAttachPoint=\"titleWrapper\" class=\"dojoxExpandoTitle\">\r\n\t\t<div class=\"dojoxExpandoIcon\" dojoAttachPoint=\"iconNode\" dojoAttachEvent=\"onclick:toggle\"><span class=\"a11yNode\">X</span></div>\t\t\t\r\n\t\t<span class=\"dojoxExpandoTitleNode\" dojoAttachPoint=\"titleNode\">${title}</span>\r\n\t</div>\r\n\t<div class=\"dojoxExpandoWrapper\" dojoAttachPoint=\"cwrapper\" dojoAttachEvent=\"ondblclick:_trap\">\r\n\t\t<div class=\"dojoxExpandoContent\" dojoAttachPoint=\"containerNode\"></div>\r\n\t</div>\r\n</div>\r\n"),easeOut:"dojo._DefaultEasing",easeIn:"dojo._DefaultEasing",duration:420,startExpanded:true,previewOpacity:0.75,previewOnDblClick:false,baseClass:"dijitExpandoPane",postCreate:function(){this.inherited(arguments);this._animConnects=[];this._isHorizontal=true;if(dojo.isString(this.easeOut)){this.easeOut=dojo.getObject(this.easeOut);}if(dojo.isString(this.easeIn)){this.easeIn=dojo.getObject(this.easeIn);}var _ca8="",rtl=!this.isLeftToRight();if(this.region){switch(this.region){case "trailing":case "right":_ca8=rtl?"Left":"Right";break;case "leading":case "left":_ca8=rtl?"Right":"Left";break;case "top":_ca8="Top";break;case "bottom":_ca8="Bottom";break;}dojo.addClass(this.domNode,"dojoxExpando"+_ca8);dojo.addClass(this.iconNode,"dojoxExpandoIcon"+_ca8);this._isHorizontal=/top|bottom/.test(this.region);}dojo.style(this.domNode,{overflow:"hidden",padding:0});this.connect(this.domNode,"ondblclick",this.previewOnDblClick?"preview":"toggle");if(this.previewOnDblClick){this.connect(this.getParent(),"_layoutChildren",dojo.hitch(this,function(){this._isonlypreview=false;}));}},_startupSizes:function(){this._container=this.getParent();this._closedSize=this._titleHeight=dojo.marginBox(this.titleWrapper).h;if(this.splitter){var myid=this.id;dijit.registry.filter(function(w){return w&&w.child&&w.child.id==myid;}).forEach(dojo.hitch(this,function(w){this.connect(w,"_stopDrag","_afterResize");}));}this._currentSize=dojo.contentBox(this.domNode);this._showSize=this._currentSize[(this._isHorizontal?"h":"w")];this._setupAnims();if(this.startExpanded){this._showing=true;}else{this._showing=false;this._hideWrapper();this._hideAnim.gotoPercent(99,true);}this._hasSizes=true;},_afterResize:function(e){var tmp=this._currentSize;this._currentSize=dojo.marginBox(this.domNode);var n=this._currentSize[(this._isHorizontal?"h":"w")];if(n>this._titleHeight){if(!this._showing){this._showing=!this._showing;this._showEnd();}this._showSize=n;this._setupAnims();}else{this._showSize=tmp[(this._isHorizontal?"h":"w")];this._showing=false;this._hideWrapper();this._hideAnim.gotoPercent(89,true);}},_setupAnims:function(){dojo.forEach(this._animConnects,dojo.disconnect);var _ca9={node:this.domNode,duration:this.duration},_caa=this._isHorizontal,_cab={},_cac={},_cad=_caa?"height":"width";_cab[_cad]={end:this._showSize};_cac[_cad]={end:this._closedSize};this._showAnim=dojo.animateProperty(dojo.mixin(_ca9,{easing:this.easeIn,properties:_cab}));this._hideAnim=dojo.animateProperty(dojo.mixin(_ca9,{easing:this.easeOut,properties:_cac}));this._animConnects=[dojo.connect(this._showAnim,"onEnd",this,"_showEnd"),dojo.connect(this._hideAnim,"onEnd",this,"_hideEnd")];},preview:function(){if(!this._showing){this._isonlypreview=!this._isonlypreview;}this.toggle();},toggle:function(){if(this._showing){this._hideWrapper();this._showAnim&&this._showAnim.stop();this._hideAnim.play();}else{this._hideAnim&&this._hideAnim.stop();this._showAnim.play();}this._showing=!this._showing;},_hideWrapper:function(){dojo.addClass(this.domNode,"dojoxExpandoClosed");dojo.style(this.cwrapper,{visibility:"hidden",opacity:"0",overflow:"hidden"});},_showEnd:function(){dojo.style(this.cwrapper,{opacity:0,visibility:"visible"});dojo.anim(this.cwrapper,{opacity:this._isonlypreview?this.previewOpacity:1},227);dojo.removeClass(this.domNode,"dojoxExpandoClosed");if(!this._isonlypreview){setTimeout(dojo.hitch(this._container,"layout"),15);}else{this._previewShowing=true;this.resize();}},_hideEnd:function(){if(!this._isonlypreview){setTimeout(dojo.hitch(this._container,"layout"),25);}else{this._previewShowing=false;}this._isonlypreview=false;},resize:function(_cae,_caf){if(!this._hasSizes){this._startupSizes(_cae);}this._contentBox={w:_cae&&"w" in _cae?_cae.w:_caf.w,h:(_cae&&"h" in _cae?_cae.h:_caf.h)-this._titleHeight};dojo.style(this.containerNode,"height",this._contentBox.h+"px");if(_cae){dojo.marginBox(this.domNode,_cae);}this._layoutChildren();},_trap:function(e){dojo.stopEvent(e);}});}if(!dojo._hasResource["dojox.layout.ScrollPane"]){dojo._hasResource["dojox.layout.ScrollPane"]=true;dojo.provide("dojox.layout.ScrollPane");dojo.experimental("dojox.layout.ScrollPane");dojo.declare("dojox.layout.ScrollPane",[dijit.layout.ContentPane,dijit._Templated],{_line:null,_lo:null,_offset:15,orientation:"vertical",autoHide:true,templateString:dojo.cache("dojox.layout","resources/ScrollPane.html","<div class=\"dojoxScrollWindow\" dojoAttachEvent=\"onmouseenter: _enter, onmouseleave: _leave\">\r\n    <div class=\"dojoxScrollWrapper\" style=\"${style}\" dojoAttachPoint=\"wrapper\" dojoAttachEvent=\"onmousemove: _calc\">\r\n\t<div class=\"dojoxScrollPane\" dojoAttachPoint=\"containerNode\"></div>\r\n    </div>\r\n    <div dojoAttachPoint=\"helper\" class=\"dojoxScrollHelper\"><span class=\"helperInner\">|</span></div>\r\n</div>\r\n"),resize:function(size){if(size){if(size.h){dojo.style(this.domNode,"height",size.h+"px");}if(size.w){dojo.style(this.domNode,"width",size.w+"px");}}var dir=this._dir,vert=this._vertical,val=this.containerNode[(vert?"scrollHeight":"scrollWidth")];dojo.style(this.wrapper,this._dir,this.domNode.style[this._dir]);this._lo=dojo.coords(this.wrapper,true);this._size=Math.max(0,val-this._lo[(vert?"h":"w")]);if(!this._size){this.helper.style.display="none";this.wrapper[this._scroll]=0;return;}else{this.helper.style.display="";}this._line=new dojo._Line(0-this._offset,this._size+(this._offset*2));var u=this._lo[(vert?"h":"w")],r=Math.min(1,u/val),s=u*r,c=Math.floor(u-(u*r));this._helpLine=new dojo._Line(0,c);dojo.style(this.helper,dir,Math.floor(s)+"px");},postCreate:function(){this.inherited(arguments);if(this.autoHide){this._showAnim=dojo._fade({node:this.helper,end:0.5,duration:350});this._hideAnim=dojo.fadeOut({node:this.helper,duration:750});}this._vertical=(this.orientation=="vertical");if(!this._vertical){dojo.addClass(this.containerNode,"dijitInline");this._dir="width";this._edge="left";this._scroll="scrollLeft";}else{this._dir="height";this._edge="top";this._scroll="scrollTop";}if(this._hideAnim){this._hideAnim.play();}dojo.style(this.wrapper,"overflow","hidden");},_set:function(n){if(!this._size){return;}this.wrapper[this._scroll]=Math.floor(this._line.getValue(n));dojo.style(this.helper,this._edge,Math.floor(this._helpLine.getValue(n))+"px");},_calc:function(e){if(!this._lo){this.resize();}this._set(this._vertical?((e.pageY-this._lo.y)/this._lo.h):((e.pageX-this._lo.x)/this._lo.w));},_enter:function(e){if(this._hideAnim){if(this._hideAnim.status()=="playing"){this._hideAnim.stop();}this._showAnim.play();}},_leave:function(e){if(this._hideAnim){this._hideAnim.play();}}});}if(!dojo._hasResource["dojox.widget.Toaster"]){dojo._hasResource["dojox.widget.Toaster"]=true;dojo.provide("dojox.widget.Toaster");dojo.declare("dojox.widget.Toaster",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToasterClip\" dojoAttachPoint=\"clipNode\"><div class=\"dijitToasterContainer\" dojoAttachPoint=\"containerNode\" dojoAttachEvent=\"onclick:onSelect\"><div class=\"dijitToasterContent\" dojoAttachPoint=\"contentNode\"></div></div></div>",messageTopic:"",messageTypes:{MESSAGE:"message",WARNING:"warning",ERROR:"error",FATAL:"fatal"},defaultType:"message",positionDirection:"br-up",positionDirectionTypes:["br-up","br-left","bl-up","bl-right","tr-down","tr-left","tl-down","tl-right"],duration:2000,slideDuration:500,separator:"<hr></hr>",postCreate:function(){this.inherited(arguments);this.hide();dojo.body().appendChild(this.domNode);if(this.messageTopic){dojo.subscribe(this.messageTopic,this,"_handleMessage");}},_handleMessage:function(_cb0){if(dojo.isString(_cb0)){this.setContent(_cb0);}else{this.setContent(_cb0.message,_cb0.type,_cb0.duration);}},_capitalize:function(w){return w.substring(0,1).toUpperCase()+w.substring(1);},setContent:function(_cb1,_cb2,_cb3){_cb3=_cb3||this.duration;if(this.slideAnim){if(this.slideAnim.status()!="playing"){this.slideAnim.stop();}if(this.slideAnim.status()=="playing"||(this.fadeAnim&&this.fadeAnim.status()=="playing")){setTimeout(dojo.hitch(this,function(){this.setContent(_cb1,_cb2,_cb3);}),50);return;}}for(var type in this.messageTypes){dojo.removeClass(this.containerNode,"dijitToaster"+this._capitalize(this.messageTypes[type]));}dojo.style(this.containerNode,"opacity",1);this._setContent(_cb1);dojo.addClass(this.containerNode,"dijitToaster"+this._capitalize(_cb2||this.defaultType));this.show();var _cb4=dojo.marginBox(this.containerNode);this._cancelHideTimer();if(this.isVisible){this._placeClip();if(!this._stickyMessage){this._setHideTimer(_cb3);}}else{var _cb5=this.containerNode.style;var pd=this.positionDirection;if(pd.indexOf("-up")>=0){_cb5.left=0+"px";_cb5.top=_cb4.h+10+"px";}else{if(pd.indexOf("-left")>=0){_cb5.left=_cb4.w+10+"px";_cb5.top=0+"px";}else{if(pd.indexOf("-right")>=0){_cb5.left=0-_cb4.w-10+"px";_cb5.top=0+"px";}else{if(pd.indexOf("-down")>=0){_cb5.left=0+"px";_cb5.top=0-_cb4.h-10+"px";}else{throw new Error(this.id+".positionDirection is invalid: "+pd);}}}}this.slideAnim=dojo.fx.slideTo({node:this.containerNode,top:0,left:0,duration:this.slideDuration});this.connect(this.slideAnim,"onEnd",function(_cb6,anim){this.fadeAnim=dojo.fadeOut({node:this.containerNode,duration:1000});this.connect(this.fadeAnim,"onEnd",function(evt){this.isVisible=false;this.hide();});this._setHideTimer(_cb3);this.connect(this,"onSelect",function(evt){this._cancelHideTimer();this._stickyMessage=false;this.fadeAnim.play();});this.isVisible=true;});this.slideAnim.play();}},_setContent:function(_cb7){if(dojo.isFunction(_cb7)){_cb7(this);return;}if(_cb7&&this.isVisible){_cb7=this.contentNode.innerHTML+this.separator+_cb7;}this.contentNode.innerHTML=_cb7;},_cancelHideTimer:function(){if(this._hideTimer){clearTimeout(this._hideTimer);this._hideTimer=null;}},_setHideTimer:function(_cb8){this._cancelHideTimer();if(_cb8>0){this._cancelHideTimer();this._hideTimer=setTimeout(dojo.hitch(this,function(evt){if(this.bgIframe&&this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}this._hideTimer=null;this._stickyMessage=false;this.fadeAnim.play();}),_cb8);}else{this._stickyMessage=true;}},_placeClip:function(){var view=dojo.window.getBox();var _cb9=dojo.marginBox(this.containerNode);var _cba=this.clipNode.style;_cba.height=_cb9.h+"px";_cba.width=_cb9.w+"px";var pd=this.positionDirection;if(pd.match(/^t/)){_cba.top=view.t+"px";}else{if(pd.match(/^b/)){_cba.top=(view.h-_cb9.h-2+view.t)+"px";}}if(pd.match(/^[tb]r-/)){_cba.left=(view.w-_cb9.w-1-view.l)+"px";}else{if(pd.match(/^[tb]l-/)){_cba.left=0+"px";}}_cba.clip="rect(0px, "+_cb9.w+"px, "+_cb9.h+"px, 0px)";if(dojo.isIE){if(!this.bgIframe){this.clipNode.id=dijit.getUniqueId("dojox_widget_Toaster_clipNode");this.bgIframe=new dijit.BackgroundIframe(this.clipNode);}var _cbb=this.bgIframe.iframe;if(_cbb){_cbb.style.display="block";}}},onSelect:function(e){},show:function(){dojo.style(this.domNode,"display","block");this._placeClip();if(!this._scrollConnected){this._scrollConnected=dojo.connect(window,"onscroll",this,this._placeClip);}},hide:function(){dojo.style(this.domNode,"display","none");if(this._scrollConnected){dojo.disconnect(this._scrollConnected);this._scrollConnected=false;}dojo.style(this.containerNode,"opacity",1);}});}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 _cbc=dojo.partial(dojo.addClass,this.resizeHandle);switch(this.resizeAxis.toLowerCase()){case "xy":this._resizeX=this._resizeY=true;_cbc("dojoxResizeNW");break;case "x":this._resizeX=true;_cbc("dojoxResizeW");break;case "y":this._resizeY=true;_cbc("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);}});}dojo.i18n._preloadLocalizations("dojo.nls.mydojo",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hu","it","it-it","ja","ja-jp","ko","ko-kr","nb","nl","nl-nl","pl","pt","pt-br","pt-pt","ru","sk","sl","sv","th","tr","xx","zh","zh-cn","zh-tw"]);
