/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

if(!dojo._hasResource["dojo.behavior"]){
dojo._hasResource["dojo.behavior"]=true;
dojo.provide("dojo.behavior");
dojo.behavior=new function(){
function _1(_2,_3){
if(!_2[_3]){
_2[_3]=[];
}
return _2[_3];
};
var _4=0;
function _5(_6,_7,_8){
var _9={};
for(var x in _6){
if(typeof _9[x]=="undefined"){
if(!_8){
_7(_6[x],x);
}else{
_8.call(_7,_6[x],x);
}
}
}
};
this._behaviors={};
this.add=function(_b){
var _c={};
_5(_b,this,function(_d,_e){
var _f=_1(this._behaviors,_e);
if(typeof _f["id"]!="number"){
_f.id=_4++;
}
var _10=[];
_f.push(_10);
if((dojo.isString(_d))||(dojo.isFunction(_d))){
_d={found:_d};
}
_5(_d,function(_11,_12){
_1(_10,_12).push(_11);
});
});
};
var _13=function(_14,_15,_16){
if(dojo.isString(_15)){
if(_16=="found"){
dojo.publish(_15,[_14]);
}else{
dojo.connect(_14,_16,function(){
dojo.publish(_15,arguments);
});
}
}else{
if(dojo.isFunction(_15)){
if(_16=="found"){
_15(_14);
}else{
dojo.connect(_14,_16,_15);
}
}
}
};
this.apply=function(){
_5(this._behaviors,function(_17,id){
dojo.query(id).forEach(function(_19){
var _1a=0;
var bid="_dj_behavior_"+_17.id;
if(typeof _19[bid]=="number"){
_1a=_19[bid];
if(_1a==(_17.length)){
return;
}
}
for(var x=_1a,_1d;_1d=_17[x];x++){
_5(_1d,function(_1e,_1f){
if(dojo.isArray(_1e)){
dojo.forEach(_1e,function(_20){
_13(_19,_20,_1f);
});
}
});
}
_19[bid]=_17.length;
});
});
};
};
dojo.addOnLoad(dojo.behavior,"apply");
}
if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_21){
var _22=_21.getMonth();
var _23=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_22==1&&dojo.date.isLeapYear(_21)){
return 29;
}
return _23[_22];
};
dojo.date.isLeapYear=function(_24){
var _25=_24.getFullYear();
return !(_25%400)||(!(_25%4)&&!!(_25%100));
};
dojo.date.getTimezoneName=function(_26){
var str=_26.toString();
var tz="";
var _29;
var pos=str.indexOf("(");
if(pos>-1){
tz=str.substring(++pos,str.indexOf(")"));
}else{
var pat=/([A-Z\/]+) \d{4}$/;
if((_29=str.match(pat))){
tz=_29[1];
}else{
str=_26.toLocaleString();
pat=/ ([A-Z\/]+)$/;
if((_29=str.match(pat))){
tz=_29[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_2c,_2d,_2e){
_2c=new Date(Number(_2c));
_2d=new Date(Number(_2d||new Date()));
if(_2e!=="undefined"){
if(_2e=="date"){
_2c.setHours(0,0,0,0);
_2d.setHours(0,0,0,0);
}else{
if(_2e=="time"){
_2c.setFullYear(0,0,0);
_2d.setFullYear(0,0,0);
}
}
}
if(_2c>_2d){
return 1;
}
if(_2c<_2d){
return -1;
}
return 0;
};
dojo.date.add=function(_2f,_30,_31){
var sum=new Date(Number(_2f));
var _33=false;
var _34="Date";
switch(_30){
case "day":
break;
case "weekday":
var _35,_36;
var mod=_31%5;
if(!mod){
_35=(_31>0)?5:-5;
_36=(_31>0)?((_31-5)/5):((_31+5)/5);
}else{
_35=mod;
_36=parseInt(_31/5);
}
var _38=_2f.getDay();
var adj=0;
if(_38==6&&_31>0){
adj=1;
}else{
if(_38==0&&_31<0){
adj=-1;
}
}
var _3a=_38+_35;
if(_3a==0||_3a==6){
adj=(_31>0)?2:-2;
}
_31=(7*_36)+_35+adj;
break;
case "year":
_34="FullYear";
_33=true;
break;
case "week":
_31*=7;
break;
case "quarter":
_31*=3;
case "month":
_33=true;
_34="Month";
break;
case "hour":
case "minute":
case "second":
case "millisecond":
_34="UTC"+_30.charAt(0).toUpperCase()+_30.substring(1)+"s";
}
if(_34){
sum["set"+_34](sum["get"+_34]()+_31);
}
if(_33&&(sum.getDate()<_2f.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_3b,_3c,_3d){
_3c=_3c||new Date();
_3d=_3d||"day";
var _3e=_3c.getFullYear()-_3b.getFullYear();
var _3f=1;
switch(_3d){
case "quarter":
var m1=_3b.getMonth();
var m2=_3c.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_3e*4);
_3f=q2-q1;
break;
case "weekday":
var _44=Math.round(dojo.date.difference(_3b,_3c,"day"));
var _45=parseInt(dojo.date.difference(_3b,_3c,"week"));
var mod=_44%7;
if(mod==0){
_44=_45*5;
}else{
var adj=0;
var _48=_3b.getDay();
var _49=_3c.getDay();
_45=parseInt(_44/7);
mod=_44%7;
var _4a=new Date(_3b);
_4a.setDate(_4a.getDate()+(_45*7));
var _4b=_4a.getDay();
if(_44>0){
switch(true){
case _48==6:
adj=-1;
break;
case _48==0:
adj=0;
break;
case _49==6:
adj=-1;
break;
case _49==0:
adj=-2;
break;
case (_4b+mod)>5:
adj=-2;
}
}else{
if(_44<0){
switch(true){
case _48==6:
adj=0;
break;
case _48==0:
adj=1;
break;
case _49==6:
adj=2;
break;
case _49==0:
adj=1;
break;
case (_4b+mod)<0:
adj=2;
}
}
}
_44+=adj;
_44-=(_45*2);
}
_3f=_44;
break;
case "year":
_3f=_3e;
break;
case "month":
_3f=(_3c.getMonth()-_3b.getMonth())+(_3e*12);
break;
case "week":
_3f=parseInt(dojo.date.difference(_3b,_3c,"day")/7);
break;
case "day":
_3f/=24;
case "hour":
_3f/=60;
case "minute":
_3f/=60;
case "second":
_3f/=1000;
case "millisecond":
_3f*=_3c.getTime()-_3b.getTime();
}
return Math.round(_3f);
};
}
if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_4c,_4d,_4e){
_4e=dojo.i18n.normalizeLocale(_4e);
var _4f=_4e.split("-");
var _50=[_4c,"nls",_4d].join(".");
var _51=dojo._loadedModules[_50];
if(_51){
var _52;
for(var i=_4f.length;i>0;i--){
var loc=_4f.slice(0,i).join("_");
if(_51[loc]){
_52=_51[loc];
break;
}
}
if(!_52){
_52=_51.ROOT;
}
if(_52){
var _55=function(){
};
_55.prototype=_52;
return new _55();
}
}
throw new Error("Bundle not found: "+_4d+" in "+_4c+" , locale="+_4e);
};
dojo.i18n.normalizeLocale=function(_56){
var _57=_56?_56.toLowerCase():dojo.locale;
if(_57=="root"){
_57="ROOT";
}
return _57;
};
dojo.i18n._requireLocalization=function(_58,_59,_5a,_5b){
var _5c=dojo.i18n.normalizeLocale(_5a);
var _5d=[_58,"nls",_59].join(".");
var _5e="";
if(_5b){
var _5f=_5b.split(",");
for(var i=0;i<_5f.length;i++){
if(_5c["indexOf"](_5f[i])==0){
if(_5f[i].length>_5e.length){
_5e=_5f[i];
}
}
}
if(!_5e){
_5e="ROOT";
}
}
var _61=_5b?_5e:_5c;
var _62=dojo._loadedModules[_5d];
var _63=null;
if(_62){
if(dojo.config.localizationComplete&&_62._built){
return;
}
var _64=_61.replace(/-/g,"_");
var _65=_5d+"."+_64;
_63=dojo._loadedModules[_65];
}
if(!_63){
_62=dojo["provide"](_5d);
var _66=dojo._getModuleSymbols(_58);
var _67=_66.concat("nls").join("/");
var _68;
dojo.i18n._searchLocalePath(_61,_5b,function(loc){
var _6a=loc.replace(/-/g,"_");
var _6b=_5d+"."+_6a;
var _6c=false;
if(!dojo._loadedModules[_6b]){
dojo["provide"](_6b);
var _6d=[_67];
if(loc!="ROOT"){
_6d.push(loc);
}
_6d.push(_59);
var _6e=_6d.join("/")+".js";
_6c=dojo._loadPath(_6e,null,function(_6f){
var _70=function(){
};
_70.prototype=_68;
_62[_6a]=new _70();
for(var j in _6f){
_62[_6a][j]=_6f[j];
}
});
}else{
_6c=true;
}
if(_6c&&_62[_6a]){
_68=_62[_6a];
}else{
_62[_6a]=_68;
}
if(_5b){
return true;
}
});
}
if(_5b&&_5c!=_5e){
_62[_5c.replace(/-/g,"_")]=_62[_5e.replace(/-/g,"_")];
}
};
(function(){
var _72=dojo.config.extraLocale;
if(_72){
if(!_72 instanceof Array){
_72=[_72];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_76,_77){
req(m,b,_76,_77);
if(_76){
return;
}
for(var i=0;i<_72.length;i++){
req(m,b,_72[i],_77);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_79,_7a,_7b){
_79=dojo.i18n.normalizeLocale(_79);
var _7c=_79.split("-");
var _7d=[];
for(var i=_7c.length;i>0;i--){
_7d.push(_7c.slice(0,i).join("-"));
}
_7d.push(false);
if(_7a){
_7d.reverse();
}
for(var j=_7d.length-1;j>=0;j--){
var loc=_7d[j]||"ROOT";
var _81=_7b(loc);
if(_81){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_82,_83){
function _84(_85){
_85=dojo.i18n.normalizeLocale(_85);
dojo.i18n._searchLocalePath(_85,true,function(loc){
for(var i=0;i<_83.length;i++){
if(_83[i]==loc){
dojo["require"](_82+"_"+loc);
return true;
}
}
return false;
});
};
_84();
var _88=dojo.config.extraLocale||[];
for(var i=0;i<_88.length;i++){
_84(_88[i]);
}
};
}
if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_8a){
var _8b={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};
var _8c=dojo.cldr.supplemental._region(_8a);
var dow=_8b[_8c];
return (dow===undefined)?1:dow;
};
dojo.cldr.supplemental._region=function(_8e){
_8e=dojo.i18n.normalizeLocale(_8e);
var _8f=_8e.split("-");
var _90=_8f[1];
if(!_90){
_90={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"}[_8f[0]];
}else{
if(_90.length==4){
_90=_8f[2];
}
}
return _90;
};
dojo.cldr.supplemental.getWeekend=function(_91){
var _92={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _93={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
var _94=dojo.cldr.supplemental._region(_91);
var _95=_92[_94];
var end=_93[_94];
if(_95===undefined){
_95=6;
}
if(end===undefined){
end=0;
}
return {start:_95,end:end};
};
}
if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(str,_98){
return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_98&&_98.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(arr,re,_9c){
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("|"),_9c);
};
dojo.regexp.group=function(_9f,_a0){
return "("+(_a0?"?:":"")+_9f+")";
};
}
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(_a4,_a5,ch,end){
if(!ch){
ch="0";
}
var out=String(_a4),pad=dojo.string.rep(ch,Math.ceil((_a5-out.length)/ch.length));
return end?out+pad:pad+out;
};
dojo.string.substitute=function(_aa,map,_ac,_ad){
_ad=_ad||dojo.global;
_ac=(!_ac)?function(v){
return v;
}:dojo.hitch(_ad,_ac);
return _aa.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_af,key,_b1){
var _b2=dojo.getObject(key,false,map);
if(_b1){
_b2=dojo.getObject(_b1,false,_ad).call(_ad,_b2,key);
}
return _ac(_b2,key).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}
if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
(function(){
function _b5(_b6,_b7,_b8,_b9){
return _b9.replace(/([a-z])\1*/ig,function(_ba){
var s,pad;
var c=_ba.charAt(0);
var l=_ba.length;
var _bf=["abbr","wide","narrow"];
switch(c){
case "G":
s=_b7[(l<4)?"eraAbbr":"eraNames"][_b6.getFullYear()<0?0:1];
break;
case "y":
s=_b6.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_b8){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
pad=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_b6.getMonth()+1)/3);
pad=true;
break;
case "M":
var m=_b6.getMonth();
if(l<3){
s=m+1;
pad=true;
}else{
var _c1=["months","format",_bf[l-3]].join("-");
s=_b7[_c1][m];
}
break;
case "w":
var _c2=0;
s=dojo.date.locale._getWeekOfYear(_b6,_c2);
pad=true;
break;
case "d":
s=_b6.getDate();
pad=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_b6);
pad=true;
break;
case "E":
var d=_b6.getDay();
if(l<3){
s=d+1;
pad=true;
}else{
var _c4=["days","format",_bf[l-3]].join("-");
s=_b7[_c4][d];
}
break;
case "a":
var _c5=(_b6.getHours()<12)?"am":"pm";
s=_b7[_c5];
break;
case "h":
case "H":
case "K":
case "k":
var h=_b6.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=_b6.getMinutes();
pad=true;
break;
case "s":
s=_b6.getSeconds();
pad=true;
break;
case "S":
s=Math.round(_b6.getMilliseconds()*Math.pow(10,l-3));
pad=true;
break;
case "v":
case "z":
s=dojo.date.getTimezoneName(_b6);
if(s){
break;
}
l=4;
case "Z":
var _c7=_b6.getTimezoneOffset();
var tz=[(_c7<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_c7)/60),2),dojo.string.pad(Math.abs(_c7)%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: "+_b9);
}
if(pad){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale.format=function(_c9,_ca){
_ca=_ca||{};
var _cb=dojo.i18n.normalizeLocale(_ca.locale);
var _cc=_ca.formatLength||"short";
var _cd=dojo.date.locale._getGregorianBundle(_cb);
var str=[];
var _cf=dojo.hitch(this,_b5,_c9,_cd,_ca.fullYear);
if(_ca.selector=="year"){
var _d0=_c9.getFullYear();
if(_cb.match(/^zh|^ja/)){
_d0+="年";
}
return _d0;
}
if(_ca.selector!="time"){
var _d1=_ca.datePattern||_cd["dateFormat-"+_cc];
if(_d1){
str.push(_d2(_d1,_cf));
}
}
if(_ca.selector!="date"){
var _d3=_ca.timePattern||_cd["timeFormat-"+_cc];
if(_d3){
str.push(_d2(_d3,_cf));
}
}
var _d4=str.join(" ");
return _d4;
};
dojo.date.locale.regexp=function(_d5){
return dojo.date.locale._parseInfo(_d5).regexp;
};
dojo.date.locale._parseInfo=function(_d6){
_d6=_d6||{};
var _d7=dojo.i18n.normalizeLocale(_d6.locale);
var _d8=dojo.date.locale._getGregorianBundle(_d7);
var _d9=_d6.formatLength||"short";
var _da=_d6.datePattern||_d8["dateFormat-"+_d9];
var _db=_d6.timePattern||_d8["timeFormat-"+_d9];
var _dc;
if(_d6.selector=="date"){
_dc=_da;
}else{
if(_d6.selector=="time"){
_dc=_db;
}else{
_dc=_da+" "+_db;
}
}
var _dd=[];
var re=_d2(_dc,dojo.hitch(this,_df,_dd,_d8,_d6));
return {regexp:re,tokens:_dd,bundle:_d8};
};
dojo.date.locale.parse=function(_e0,_e1){
var _e2=dojo.date.locale._parseInfo(_e1);
var _e3=_e2.tokens,_e4=_e2.bundle;
var re=new RegExp("^"+_e2.regexp+"$",_e2.strict?"":"i");
var _e6=re.exec(_e0);
if(!_e6){
return null;
}
var _e7=["abbr","wide","narrow"];
var _e8=[1970,0,1,0,0,0,0];
var _e9="";
var _ea=dojo.every(_e6,function(v,i){
if(!i){
return true;
}
var _ed=_e3[i-1];
var l=_ed.length;
switch(_ed.charAt(0)){
case "y":
if(l!=2&&_e1.strict){
_e8[0]=v;
}else{
if(v<100){
v=Number(v);
var _ef=""+new Date().getFullYear();
var _f0=_ef.substring(0,2)*100;
var _f1=Math.min(Number(_ef.substring(2,4))+20,99);
var num=(v<_f1)?_f0+v:_f0-100+v;
_e8[0]=num;
}else{
if(_e1.strict){
return false;
}
_e8[0]=v;
}
}
break;
case "M":
if(l>2){
var _f3=_e4["months-format-"+_e7[l-3]].concat();
if(!_e1.strict){
v=v.replace(".","").toLowerCase();
_f3=dojo.map(_f3,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_f3,v);
if(v==-1){
return false;
}
}else{
v--;
}
_e8[1]=v;
break;
case "E":
case "e":
var _f5=_e4["days-format-"+_e7[l-3]].concat();
if(!_e1.strict){
v=v.toLowerCase();
_f5=dojo.map(_f5,function(d){
return d.toLowerCase();
});
}
v=dojo.indexOf(_f5,v);
if(v==-1){
return false;
}
break;
case "D":
_e8[1]=0;
case "d":
_e8[2]=v;
break;
case "a":
var am=_e1.am||_e4.am;
var pm=_e1.pm||_e4.pm;
if(!_e1.strict){
var _f9=/\./g;
v=v.replace(_f9,"").toLowerCase();
am=am.replace(_f9,"").toLowerCase();
pm=pm.replace(_f9,"").toLowerCase();
}
if(_e1.strict&&v!=am&&v!=pm){
return false;
}
_e9=(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;
}
_e8[3]=v;
break;
case "m":
_e8[4]=v;
break;
case "s":
_e8[5]=v;
break;
case "S":
_e8[6]=v;
}
return true;
});
var _fa=+_e8[3];
if(_e9==="p"&&_fa<12){
_e8[3]=_fa+12;
}else{
if(_e9==="a"&&_fa==12){
_e8[3]=0;
}
}
var _fb=new Date(_e8[0],_e8[1],_e8[2],_e8[3],_e8[4],_e8[5],_e8[6]);
if(_e1.strict){
_fb.setFullYear(_e8[0]);
}
var _fc=_e3.join("");
if(!_ea||(_fc.indexOf("M")!=-1&&_fb.getMonth()!=_e8[1])||(_fc.indexOf("d")!=-1&&_fb.getDate()!=_e8[2])){
return null;
}
return _fb;
};
function _d2(_fd,_fe,_ff,_100){
var _101=function(x){
return x;
};
_fe=_fe||_101;
_ff=_ff||_101;
_100=_100||_101;
var _103=_fd.match(/(''|[^'])+/g);
var _104=_fd.charAt(0)=="'";
dojo.forEach(_103,function(_105,i){
if(!_105){
_103[i]="";
}else{
_103[i]=(_104?_ff:_fe)(_105);
_104=!_104;
}
});
return _100(_103.join(""));
};
function _df(_107,_108,_109,_10a){
_10a=dojo.regexp.escapeString(_10a);
if(!_109.strict){
_10a=_10a.replace(" a"," ?a");
}
return _10a.replace(/([a-z])\1*/ig,function(_10b){
var s;
var c=_10b.charAt(0);
var l=_10b.length;
var p2="",p3="";
if(_109.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="[12]\\d|"+p2+"[1-9]|3[01]";
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=_109.am||_108.am||"AM";
var pm=_109.pm||_108.pm||"PM";
if(_109.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(_107){
_107.push(_10b);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _113=[];
dojo.date.locale.addCustomFormats=function(_114,_115){
_113.push({pkg:_114,name:_115});
};
dojo.date.locale._getGregorianBundle=function(_116){
var _117={};
dojo.forEach(_113,function(desc){
var _119=dojo.i18n.getLocalization(desc.pkg,desc.name,_116);
_117=dojo.mixin(_117,_119);
},this);
return _117;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(item,type,_11c,_11d){
var _11e;
var _11f=dojo.date.locale._getGregorianBundle(_11d);
var _120=[item,_11c,type];
if(_11c=="standAlone"){
var key=_120.join("-");
_11e=_11f[key];
if(_11e[0]==1){
_11e=undefined;
}
}
_120[1]="format";
return (_11e||_11f[_120.join("-")]).concat();
};
dojo.date.locale.displayPattern=function(_122,_123){
var _124="GyMdkHmsSEDFwWahKzYeugAZvcL",_125=dojo.date.locale._getGregorianBundle(_123).patternChars;
return dojo.map(_122,function(c){
var i=_124.indexOf(c);
return i<0?c:_125.charAt(i);
}).join("");
};
dojo.date.locale.isWeekend=function(_128,_129){
var _12a=dojo.cldr.supplemental.getWeekend(_129);
var day=(_128||new Date()).getDay();
if(_12a.end<_12a.start){
_12a.end+=7;
if(day<_12a.start){
day+=7;
}
}
return day>=_12a.start&&day<=_12a.end;
};
dojo.date.locale._getDayOfYear=function(_12c){
return dojo.date.difference(new Date(_12c.getFullYear(),0,1,_12c.getHours()),_12c)+1;
};
dojo.date.locale._getWeekOfYear=function(_12d,_12e){
if(arguments.length==1){
_12e=0;
}
var _12f=new Date(_12d.getFullYear(),0,1).getDay();
var adj=(_12f-_12e+7)%7;
var week=Math.floor((dojo.date.locale._getDayOfYear(_12d)+adj-1)/7);
if(_12f==_12e){
week++;
}
return week;
};
}
if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
dojo.dnd.getCopyKeyState=function(e){
return e[dojo.dnd._copyKey];
};
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;
};
dojo.dnd._lmb=dojo.isIE?1:0;
dojo.dnd._isLmbPressed=dojo.isIE?function(e){
return e.button&1;
}:function(e){
return e.button===0;
};
}
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._abs(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 _14b=n.scrollLeft,_14c=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_14b!=n.scrollLeft||_14c!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}
if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){
this.node=dojo.byId(node);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=host,d=node.ownerDocument,_152=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),_152];
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});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
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);
}
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,_161){
this.node=dojo.byId(node);
if(!_161){
_161={};
}
this.handle=_161.handle?dojo.byId(_161.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_161.delay>0?_161.delay:0;
this.skip=_161.skip;
this.mover=_161.mover?_161.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(_162,node){
return new dojo.dnd.Moveable(node,_162);
},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(_16a){
dojo.publish("/dnd/move/start",[_16a]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_16b){
dojo.publish("/dnd/move/stop",[_16b]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_16c){
},onMove:function(_16d,_16e){
this.onMoving(_16d,_16e);
var s=_16d.node.style;
s.left=_16e.l+"px";
s.top=_16e.t+"px";
this.onMoved(_16d,_16e);
},onMoving:function(_170,_171){
},onMoved:function(_172,_173){
}});
}
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(_174,node){
return new dojo.dnd.move.constrainedMoveable(node,_174);
},constructor:function(node,_177){
if(!_177){
_177={};
}
this.constraints=_177.constraints;
this.within=_177.within;
},onFirstMove:function(_178){
var c=this.constraintBox=this.constraints.call(this,_178);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_178.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_17b,_17c){
var c=this.constraintBox,s=_17b.node.style;
s.left=(_17c.l<c.l?c.l:c.r<_17c.l?c.r:_17c.l)+"px";
s.top=(_17c.t<c.t?c.t:c.b<_17c.t?c.b:_17c.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_17f,node){
return new dojo.dnd.move.boxConstrainedMoveable(node,_17f);
},constructor:function(node,_182){
var box=_182&&_182.box;
this.constraints=function(){
return box;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_184,node){
return new dojo.dnd.move.parentConstrainedMoveable(node,_184);
},constructor:function(node,_187){
var area=_187&&_187.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,_18e){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _18f=function(node,e,_192){
dojo.dnd.Mover.call(this,node,e,_192);
};
dojo.extend(_18f,dojo.dnd.Mover.prototype);
dojo.extend(_18f,{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(_18e){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _18f;
};
dojo.dnd.move.boxConstrainedMover=function(box,_19b){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_19b);
};
dojo.dnd.move.parentConstrainedMover=function(area,_19d){
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,_19d);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}
if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
(function(){
var _1a3=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_1a5){
if(!_1a5){
_1a5={};
}
if(_1a5.timeout&&typeof _1a5.timeout=="number"&&_1a5.timeout>=0){
this.timeout=_1a5.timeout;
}
},markupFactory:function(_1a6,node){
return new dojo.dnd.TimedMoveable(node,_1a6);
},onMoveStop:function(_1a8){
if(_1a8._timer){
clearTimeout(_1a8._timer);
_1a3.call(this,_1a8,_1a8._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_1a9,_1aa){
_1a9._leftTop=_1aa;
if(!_1a9._timer){
var _t=this;
_1a9._timer=setTimeout(function(){
_1a9._timer=null;
_1a3.call(_t,_1a9,_1a9._leftTop);
},this.timeout);
}
}});
})();
}
if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){
var _t=this;
dojo.mixin(_t,args);
_t.node=args.node;
_t._showArgs=dojo.mixin({},args);
_t._showArgs.node=_t.node;
_t._showArgs.duration=_t.showDuration;
_t.showAnim=_t.showFunc(_t._showArgs);
_t._hideArgs=dojo.mixin({},args);
_t._hideArgs.node=_t.node;
_t._hideArgs.duration=_t.hideDuration;
_t.hideAnim=_t.hideFunc(_t._hideArgs);
dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_1ae){
return this.showAnim.play(_1ae||0);
},hide:function(_1af){
return this.hideAnim.play(_1af||0);
}});
}
if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
(function(){
var d=dojo,_1b1={_fire:function(evt,args){
if(this[evt]){
this[evt].apply(this,args||[]);
}
return this;
}};
var _1b4=function(_1b5){
this._index=-1;
this._animations=_1b5||[];
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(_1b4,{_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(_1b7,_1b8){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_1b8&&this._current.status()=="playing"){
return this;
}
var _1b9=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_1ba=d.connect(this._current,"onBegin",this,function(arg){
this._fire("onBegin",arguments);
}),_1bc=d.connect(this._current,"onPlay",this,function(arg){
this._fire("onPlay",arguments);
d.disconnect(_1b9);
d.disconnect(_1ba);
d.disconnect(_1bc);
});
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(_1c0,_1c1){
this.pause();
var _1c2=this.duration*_1c0;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_1c2){
this._current=a;
return true;
}
_1c2-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_1c2/this._current.duration,_1c1);
}
return this;
},stop:function(_1c4){
if(this._current){
if(_1c4){
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(_1b4,_1b1);
dojo.fx.chain=function(_1c7){
return new _1b4(_1c7);
};
var _1c8=function(_1c9){
this._animations=_1c9||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_1c9,function(a){
var _1cb=a.duration;
if(a.delay){
_1cb+=a.delay;
}
if(this.duration<_1cb){
this.duration=_1cb;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
var self=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
self._connects.push(d.connect(self._pseudoAnimation,evt,function(){
self._fire(evt,arguments);
}));
});
};
d.extend(_1c8,{_doAction:function(_1ce,args){
d.forEach(this._animations,function(a){
a[_1ce].apply(a,args);
});
return this;
},_onEnd:function(){
if(++this._finished==this._animations.length){
this._fire("onEnd");
}
},_call:function(_1d1,args){
var t=this._pseudoAnimation;
t[_1d1].apply(t,args);
},play:function(_1d4,_1d5){
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(_1d6,_1d7){
var ms=this.duration*_1d6;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_1d7);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_1da){
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(_1c8,_1b1);
dojo.fx.combine=function(_1db){
return new _1c8(_1db);
};
dojo.fx.wipeIn=function(args){
args.node=d.byId(args.node);
var node=args.node,s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _1e1=d.style(node,"height");
return Math.max(_1e1,1);
}
},end:function(){
return node.scrollHeight;
}}}},args));
d.connect(anim,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return anim;
};
dojo.fx.wipeOut=function(args){
var node=args.node=d.byId(args.node),s=node.style,o;
var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));
d.connect(anim,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(anim,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return anim;
};
dojo.fx.slideTo=function(args){
var node=args.node=d.byId(args.node),top=null,left=null;
var init=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.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 anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));
d.connect(anim,"beforeBegin",anim,init);
return anim;
};
})();
}
if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
var _1f1=dojo.doc;
if(_1f1.selection){
var s=_1f1.selection;
if(s.type=="Text"){
return !s.createRange().htmlText.length;
}else{
return !s.createRange().length;
}
}else{
var _1f3=dojo.global;
var _1f4=_1f3.getSelection();
if(dojo.isString(_1f4)){
return !_1f4;
}else{
return !_1f4||_1f4.isCollapsed||!_1f4.toString();
}
}
},getBookmark:function(){
var _1f5,_1f6=dojo.doc.selection;
if(_1f6){
var _1f7=_1f6.createRange();
if(_1f6.type.toUpperCase()=="CONTROL"){
if(_1f7.length){
_1f5=[];
var i=0,len=_1f7.length;
while(i<len){
_1f5.push(_1f7.item(i++));
}
}else{
_1f5=null;
}
}else{
_1f5=_1f7.getBookmark();
}
}else{
if(window.getSelection){
_1f6=dojo.global.getSelection();
if(_1f6){
_1f7=_1f6.getRangeAt(0);
_1f5=_1f7.cloneRange();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return _1f5;
},moveToBookmark:function(_1fa){
var _1fb=dojo.doc;
if(_1fb.selection){
var _1fc;
if(dojo.isArray(_1fa)){
_1fc=_1fb.body.createControlRange();
dojo.forEach(_1fa,function(n){
_1fc.addElement(n);
});
}else{
_1fc=_1fb.selection.createRange();
_1fc.moveToBookmark(_1fa);
}
_1fc.select();
}else{
var _1fe=dojo.global.getSelection&&dojo.global.getSelection();
if(_1fe&&_1fe.removeAllRanges){
_1fe.removeAllRanges();
_1fe.addRange(_1fa);
}else{
console.warn("No idea how to restore selection for this browser!");
}
}
},getFocus:function(menu,_200){
return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_200||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_200||dojo.global,dijit.getBookmark):null,openedForWindow:_200};
},focus:function(_201){
if(!_201){
return;
}
var node="node" in _201?_201.node:_201,_203=_201.bookmark,_204=_201.openedForWindow;
if(node){
var _205=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;
if(_205&&_205.focus){
try{
_205.focus();
}
catch(e){
}
}
dijit._onFocusNode(node);
}
if(_203&&dojo.withGlobal(_204||dojo.global,dijit.isCollapsed)){
if(_204){
_204.focus();
}
try{
dojo.withGlobal(_204||dojo.global,dijit.moveToBookmark,null,[_203]);
}
catch(e){
}
}
},_activeStack:[],registerIframe:function(_206){
dijit.registerWin(_206.contentWindow,_206);
},registerWin:function(_207,_208){
dojo.connect(_207.document,"onmousedown",function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_208||evt.target||evt.srcElement);
});
var doc=_207.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onactivate",function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"){
dijit._onFocusNode(_208||evt.srcElement);
}
});
doc.attachEvent("ondeactivate",function(evt){
dijit._onBlurNode(_208||evt.srcElement);
});
}else{
doc.addEventListener("focus",function(evt){
dijit._onFocusNode(_208||evt.target);
},true);
doc.addEventListener("blur",function(evt){
dijit._onBlurNode(_208||evt.target);
},true);
}
}
doc=null;
},_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){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _211=[];
try{
while(node){
if(node.dijitPopupParent){
node=dijit.byId(node.dijitPopupParent).domNode;
}else{
if(node.tagName&&node.tagName.toLowerCase()=="body"){
if(node===dojo.body()){
break;
}
node=dijit.getDocumentWindow(node.ownerDocument).frameElement;
}else{
var id=node.getAttribute&&node.getAttribute("widgetId");
if(id){
_211.unshift(id);
}
node=node.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_211);
},_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(_214){
var _215=dijit._activeStack;
dijit._activeStack=_214;
for(var _216=0;_216<Math.min(_215.length,_214.length);_216++){
if(_215[_216]!=_214[_216]){
break;
}
}
for(var i=_215.length-1;i>=_216;i--){
var _218=dijit.byId(_215[i]);
if(_218){
_218._focused=false;
_218._hasBeenBlurred=true;
if(_218._onBlur){
_218._onBlur();
}
if(_218._setStateClass){
_218._setStateClass();
}
dojo.publish("widgetBlur",[_218]);
}
}
for(i=_216;i<_214.length;i++){
_218=dijit.byId(_214[i]);
if(_218){
_218._focused=true;
if(_218._onFocus){
_218._onFocus();
}
if(_218._setStateClass){
_218._setStateClass();
}
dojo.publish("widgetFocus",[_218]);
}
}
}});
dojo.addOnLoad(function(){
dijit.registerWin(window);
});
}
if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
},add:function(_219){
if(this._hash[_219.id]){
throw new Error("Tried to register widget with id=="+_219.id+" but that id is already registered");
}
this._hash[_219.id]=_219;
},remove:function(id){
delete this._hash[id];
},forEach:function(func){
for(var id in this._hash){
func(this._hash[id]);
}
},filter:function(_21d){
var res=new dijit.WidgetSet();
this.forEach(function(_21f){
if(_21d(_21f)){
res.add(_21f);
}
});
return res;
},byId:function(id){
return this._hash[id];
},byClass:function(cls){
return this.filter(function(_222){
return _222.declaredClass==cls;
});
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_223){
var id;
do{
id=_223+"_"+(_223 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_223]:dijit._widgetTypeCtr[_223]=0);
}while(dijit.byId(id));
return id;
};
dijit.findWidgets=function(root){
var _226=[];
function _227(root){
var list=dojo.isIE?root.children:root.childNodes,i=0,node;
while(node=list[i++]){
if(node.nodeType!=1){
continue;
}
var _22c=node.getAttribute("widgetId");
if(_22c){
var _22d=dijit.byId(_22c);
_226.push(_22d);
}else{
_227(node);
}
}
};
_227(root);
return _226;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dojo.forEach(dijit.findWidgets(dojo.body()),function(_22e){
if(_22e.destroyRecursive){
_22e.destroyRecursive();
}else{
if(_22e.destroy){
_22e.destroy();
}
}
});
});
}
dijit.byId=function(id){
return (dojo.isString(id))?dijit.registry.byId(id):id;
};
dijit.byNode=function(node){
return dijit.registry.byId(node.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(node){
while(node){
if(node.getAttribute&&node.getAttribute("widgetId")){
return dijit.registry.byId(node.getAttribute("widgetId"));
}
node=node.parentNode;
}
return null;
};
dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};
dijit._isElementShown=function(elem){
var _233=dojo.style(elem);
return (_233.visibility!="hidden")&&(_233.visibility!="collapsed")&&(_233.display!="none")&&(dojo.attr(elem,"type")!="hidden");
};
dijit.isTabNavigable=function(elem){
if(dojo.hasAttr(elem,"disabled")){
return false;
}
var _235=dojo.hasAttr(elem,"tabindex");
var _236=dojo.attr(elem,"tabindex");
if(_235&&_236>=0){
return true;
}
var name=elem.nodeName.toLowerCase();
if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_235||_236>=0)){
return true;
}
return false;
};
dijit._getTabNavigable=function(root){
var _239,last,_23b,_23c,_23d,_23e;
var _23f=function(_240){
dojo.query("> *",_240).forEach(function(_241){
var _242=dijit._isElementShown(_241);
if(_242&&dijit.isTabNavigable(_241)){
var _243=dojo.attr(_241,"tabindex");
if(!dojo.hasAttr(_241,"tabindex")||_243==0){
if(!_239){
_239=_241;
}
last=_241;
}else{
if(_243>0){
if(!_23b||_243<_23c){
_23c=_243;
_23b=_241;
}
if(!_23d||_243>=_23e){
_23e=_243;
_23d=_241;
}
}
}
}
if(_242&&_241.nodeName.toUpperCase()!="SELECT"){
_23f(_241);
}
});
};
if(dijit._isElementShown(root)){
_23f(root);
}
return {first:_239,last:last,lowest:_23b,highest:_23d};
};
dijit.getFirstInTabbingOrder=function(root){
var _245=dijit._getTabNavigable(dojo.byId(root));
return _245.lowest?_245.lowest:_245.first;
};
dijit.getLastInTabbingOrder=function(root){
var _247=dijit._getTabNavigable(dojo.byId(root));
return _247.last?_247.last:_247.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}
if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_248){
this.pairs=[];
this.returnWrappers=_248||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(name,_24a,wrap,_24c,_24d){
this.pairs[((_24d)?"unshift":"push")]([name,_24a,wrap,_24c]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[1].apply(this,arguments)){
if((pair[3])||(this.returnWrappers)){
return pair[2];
}else{
return pair[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(name){
for(var i=0;i<this.pairs.length;i++){
var pair=this.pairs[i];
if(pair[0]==name){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}
if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dijit.getViewport=function(){
var _253=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _254=dojo._docScroll();
return {w:_253.clientWidth,h:_253.clientHeight,l:_254.x,t:_254.y};
};
dijit.placeOnScreen=function(node,pos,_257,_258){
var _259=dojo.map(_257,function(_25a){
var c={corner:_25a,pos:{x:pos.x,y:pos.y}};
if(_258){
c.pos.x+=_25a.charAt(1)=="L"?_258.x:-_258.x;
c.pos.y+=_25a.charAt(0)=="T"?_258.y:-_258.y;
}
return c;
});
return dijit._place(node,_259);
};
dijit._place=function(node,_25d,_25e){
var view=dijit.getViewport();
if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(node);
}
var best=null;
dojo.some(_25d,function(_261){
var _262=_261.corner;
var pos=_261.pos;
if(_25e){
_25e(node,_261.aroundCorner,_262);
}
var _264=node.style;
var _265=_264.display;
var _266=_264.visibility;
_264.visibility="hidden";
_264.display="";
var mb=dojo.marginBox(node);
_264.display=_265;
_264.visibility=_266;
var _268=(_262.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_269=(_262.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_262.charAt(1)=="L"?Math.min(view.l+view.w,_268+mb.w):pos.x),endY=(_262.charAt(0)=="T"?Math.min(view.t+view.h,_269+mb.h):pos.y),_26c=endX-_268,_26d=endY-_269,_26e=(mb.w-_26c)+(mb.h-_26d);
if(best==null||_26e<best.overflow){
best={corner:_262,aroundCorner:_261.aroundCorner,x:_268,y:_269,w:_26c,h:_26d,overflow:_26e};
}
return !_26e;
});
node.style.left=best.x+"px";
node.style.top=best.y+"px";
if(best.overflow&&_25e){
_25e(node,best.aroundCorner,best.corner);
}
return best;
};
dijit.placeOnScreenAroundNode=function(node,_270,_271,_272){
_270=dojo.byId(_270);
var _273=_270.style.display;
_270.style.display="";
var _274=_270.offsetWidth;
var _275=_270.offsetHeight;
var _276=dojo.coords(_270,true);
_270.style.display=_273;
return dijit._placeOnScreenAroundRect(node,_276.x,_276.y,_274,_275,_271,_272);
};
dijit.placeOnScreenAroundRectangle=function(node,_278,_279,_27a){
return dijit._placeOnScreenAroundRect(node,_278.x,_278.y,_278.width,_278.height,_279,_27a);
};
dijit._placeOnScreenAroundRect=function(node,x,y,_27e,_27f,_280,_281){
var _282=[];
for(var _283 in _280){
_282.push({aroundCorner:_283,corner:_280[_283],pos:{x:x+(_283.charAt(1)=="L"?0:_27e),y:y+(_283.charAt(0)=="T"?0:_27f)}});
}
return dijit._place(node,_282,_281);
};
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,_289,_28a,_28b){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
}
if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(doc){
if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){
doc.parentWindow.execScript("document._parentWindow = window;","Javascript");
var win=doc._parentWindow;
doc._parentWindow=null;
return win;
}
return doc._parentWindow||doc.parentWindow||doc.defaultView;
};
}
if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dijit.popup=new function(){
var _28e=[],_28f=1000,_290=1;
this.prepare=function(node){
var s=node.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(node);
};
this.open=function(args){
var _294=args.popup,_295=args.orient||{"BL":"TL","TL":"BL"},_296=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_290++);
var _298=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_28f+_28e.length,visibility:"hidden"}},dojo.body());
dijit.setWaiRole(_298,"presentation");
_298.style.left=_298.style.top="0px";
if(args.parent){
_298.dijitPopupParent=args.parent.id;
}
var s=_294.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_298.appendChild(_294.domNode);
var _29a=new dijit.BackgroundIframe(_298);
var best=_296?dijit.placeOnScreenAroundElement(_298,_296,_295,_294.orient?dojo.hitch(_294,"orient"):null):dijit.placeOnScreen(_298,args,_295=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);
_298.style.visibility="visible";
var _29c=[];
var _29d=function(){
for(var pi=_28e.length-1;pi>0&&_28e[pi].parent===_28e[pi-1].widget;pi--){
}
return _28e[pi];
};
_29c.push(dojo.connect(_298,"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 _2a0=_29d();
if(_2a0&&_2a0.onCancel){
_2a0.onCancel();
}
}
}
}));
if(_294.onCancel){
_29c.push(dojo.connect(_294,"onCancel",null,args.onCancel));
}
_29c.push(dojo.connect(_294,_294.onExecute?"onExecute":"onChange",null,function(){
var _2a1=_29d();
if(_2a1&&_2a1.onExecute){
_2a1.onExecute();
}
}));
_28e.push({wrapper:_298,iframe:_29a,widget:_294,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_29c});
if(_294.onOpen){
_294.onOpen(best);
}
return best;
};
this.close=function(_2a2){
while(dojo.some(_28e,function(elem){
return elem.widget==_2a2;
})){
var top=_28e.pop(),_2a5=top.wrapper,_2a6=top.iframe,_2a7=top.widget,_2a8=top.onClose;
if(_2a7.onClose){
_2a7.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(!_2a7||!_2a7.domNode){
return;
}
this.prepare(_2a7.domNode);
_2a6.destroy();
dojo.destroy(_2a5);
if(_2a8){
_2a8();
}
}
};
}();
dijit._frames=new function(){
var _2a9=[];
this.pop=function(){
var _2aa;
if(_2a9.length){
_2aa=_2a9.pop();
_2aa.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\");'>";
_2aa=dojo.doc.createElement(html);
}else{
_2aa=dojo.create("iframe");
_2aa.src="javascript:\"\"";
_2aa.className="dijitBackgroundIframe";
}
_2aa.tabIndex=-1;
dojo.body().appendChild(_2aa);
}
return _2aa;
};
this.push=function(_2ad){
_2ad.style.display="none";
if(dojo.isIE){
_2ad.style.removeExpression("width");
_2ad.style.removeExpression("height");
}
_2a9.push(_2ad);
};
}();
dijit.BackgroundIframe=function(node){
if(!node.id){
throw new Error("no id");
}
if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){
var _2af=dijit._frames.pop();
node.appendChild(_2af);
if(dojo.isIE){
_2af.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");
_2af.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");
}
this.iframe=_2af;
}
};
dojo.extend(dijit.BackgroundIframe,{destroy:function(){
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}
if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(node){
try{
node=dojo.byId(node);
var doc=dojo.doc;
var body=dojo.body();
var html=body.parentNode;
if((!(dojo.isFF>=3||dojo.isIE||dojo.isWebKit)||node==body||node==html)&&(typeof node.scrollIntoView=="function")){
node.scrollIntoView(false);
return;
}
var ltr=dojo._isBodyLtr();
var _2b5=dojo.isIE>=8&&!_2b6;
var rtl=!ltr&&!_2b5;
var _2b8=body;
var _2b6=doc.compatMode=="BackCompat";
if(_2b6){
html._offsetWidth=html._clientWidth=body._offsetWidth=body.clientWidth;
html._offsetHeight=html._clientHeight=body._offsetHeight=body.clientHeight;
}else{
if(dojo.isWebKit){
body._offsetWidth=body._clientWidth=html.clientWidth;
body._offsetHeight=body._clientHeight=html.clientHeight;
}else{
_2b8=html;
}
html._offsetHeight=html.clientHeight;
html._offsetWidth=html.clientWidth;
}
function _2b9(_2ba){
var ie=dojo.isIE;
return ((ie<=6||(ie>=7&&_2b6))?false:(dojo.style(_2ba,"position").toLowerCase()=="fixed"));
};
function _2bc(_2bd){
var _2be=_2bd.parentNode;
var _2bf=_2bd.offsetParent;
if(_2bf==null||_2b9(_2bd)){
_2bf=html;
_2be=(_2bd==body)?html:null;
}
_2bd._offsetParent=_2bf;
_2bd._parent=_2be;
var bp=dojo._getBorderExtents(_2bd);
_2bd._borderStart={H:(_2b5&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};
_2bd._borderSize={H:bp.w,V:bp.h};
_2bd._scrolledAmount={H:_2bd.scrollLeft,V:_2bd.scrollTop};
_2bd._offsetSize={H:_2bd._offsetWidth||_2bd.offsetWidth,V:_2bd._offsetHeight||_2bd.offsetHeight};
_2bd._offsetStart={H:(_2b5&&!ltr)?_2bf.clientWidth-_2bd.offsetLeft-_2bd._offsetSize.H:_2bd.offsetLeft,V:_2bd.offsetTop};
_2bd._clientSize={H:_2bd._clientWidth||_2bd.clientWidth,V:_2bd._clientHeight||_2bd.clientHeight};
if(_2bd!=body&&_2bd!=html&&_2bd!=node){
for(var dir in _2bd._offsetSize){
var _2c2=_2bd._offsetSize[dir]-_2bd._clientSize[dir]-_2bd._borderSize[dir];
var _2c3=_2bd._clientSize[dir]>0&&_2c2>0;
if(_2c3){
_2bd._offsetSize[dir]-=_2c2;
if(dojo.isIE&&rtl&&dir=="H"){
_2bd._offsetStart[dir]+=_2c2;
}
}
}
}
};
var _2c4=node;
while(_2c4!=null){
if(_2b9(_2c4)){
node.scrollIntoView(false);
return;
}
_2bc(_2c4);
_2c4=_2c4._parent;
}
if(dojo.isIE&&node._parent){
var _2c5=node._offsetParent;
node._offsetStart.H+=_2c5._borderStart.H;
node._offsetStart.V+=_2c5._borderStart.V;
}
if(dojo.isIE>=7&&_2b8==html&&rtl&&body._offsetStart&&body._offsetStart.H==0){
var _2c6=html.scrollWidth-html._offsetSize.H;
if(_2c6>0){
body._offsetStart.H=-_2c6;
}
}
if(dojo.isIE<=6&&!_2b6){
html._offsetSize.H+=html._borderSize.H;
html._offsetSize.V+=html._borderSize.V;
}
if(rtl&&body._offsetStart&&_2b8==html&&html._scrolledAmount){
var ofs=body._offsetStart.H;
if(ofs<0){
html._scrolledAmount.H+=ofs;
body._offsetStart.H=0;
}
}
_2c4=node;
while(_2c4){
var _2c8=_2c4._parent;
if(!_2c8){
break;
}
if(_2c8.tagName=="TD"){
var _2c9=_2c8._parent._parent._parent;
if(_2c8!=_2c4._offsetParent&&_2c8._offsetParent!=_2c4._offsetParent){
_2c8=_2c9;
}
}
var _2ca=_2c4._offsetParent==_2c8;
for(var dir in _2c4._offsetStart){
var _2cc=dir=="H"?"V":"H";
if(rtl&&dir=="H"&&(_2c8!=html)&&(_2c8!=body)&&(dojo.isIE||dojo.isWebKit)&&_2c8._clientSize.H>0&&_2c8.scrollWidth>_2c8._clientSize.H){
var _2cd=_2c8.scrollWidth-_2c8._clientSize.H;
if(_2cd>0){
_2c8._scrolledAmount.H-=_2cd;
}
}
if(_2c8._offsetParent.tagName=="TABLE"){
if(dojo.isIE){
_2c8._offsetStart[dir]-=_2c8._offsetParent._borderStart[dir];
_2c8._borderStart[dir]=_2c8._borderSize[dir]=0;
}else{
_2c8._offsetStart[dir]+=_2c8._offsetParent._borderStart[dir];
}
}
if(dojo.isIE){
_2c8._offsetStart[dir]+=_2c8._offsetParent._borderStart[dir];
}
var _2ce=_2c4._offsetStart[dir]-_2c8._scrolledAmount[dir]-(_2ca?0:_2c8._offsetStart[dir])-_2c8._borderStart[dir];
var _2cf=_2ce+_2c4._offsetSize[dir]-_2c8._offsetSize[dir]+_2c8._borderSize[dir];
var _2d0=(dir=="H")?"scrollLeft":"scrollTop";
var _2d1=dir=="H"&&rtl;
var _2d2=_2d1?-_2cf:_2ce;
var _2d3=_2d1?-_2ce:_2cf;
var _2d4=(_2d2*_2d3<=0)?0:Math[(_2d2<0)?"max":"min"](_2d2,_2d3);
if(_2d4!=0){
var _2d5=_2c8[_2d0];
_2c8[_2d0]+=(_2d1)?-_2d4:_2d4;
var _2d6=_2c8[_2d0]-_2d5;
}
if(_2ca){
_2c4._offsetStart[dir]+=_2c8._offsetStart[dir];
}
_2c4._offsetStart[dir]-=_2c8[_2d0];
}
_2c4._parent=_2c8._parent;
_2c4._offsetParent=_2c8._offsetParent;
}
_2c8=node;
var next;
while(_2c8&&_2c8.removeAttribute){
next=_2c8.parentNode;
_2c8.removeAttribute("_offsetParent");
_2c8.removeAttribute("_parent");
_2c8=next;
}
}
catch(error){
console.error("scrollIntoView: "+error);
node.scrollIntoView(false);
}
};
}
if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,html=d.doc.documentElement,ie=d.isIE,_2db=d.isOpera,maj=Math.floor,ff=d.isFF,_2de=d.boxModel.replace(/-/,""),_2df={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_2db,dj_opera8:maj(_2db)==8,dj_opera9:maj(_2db)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};
_2df["dj_"+_2de]=true;
for(var p in _2df){
if(_2df[p]){
if(html.className){
html.className+=" "+p;
}else{
html.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
html.className+=" dijitRtl";
for(var p in _2df){
if(_2df[p]){
html.className+=" "+p+"-rtl";
}
}
}
});
})();
}
if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(evt,_2e3,node,_2e5,obj,_2e7,_2e8){
if(obj!=this._obj){
this.stop();
this._initialDelay=_2e8||500;
this._subsequentDelay=_2e7||0.9;
this._obj=obj;
this._evt=evt;
this._node=node;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_2e3,_2e5);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(node,_2ea,_2eb,_2ec,_2ed,_2ee){
if(_2ea.keyCode){
_2ea.charOrCode=_2ea.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_2ea.charCode){
_2ea.charOrCode=String.fromCharCode(_2ea.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==_2ea.charOrCode&&(_2ea.ctrlKey===undefined||_2ea.ctrlKey==evt.ctrlKey)&&(_2ea.altKey===undefined||_2ea.altKey==evt.ctrlKey)&&(_2ea.shiftKey===undefined||_2ea.shiftKey==evt.ctrlKey)){
dojo.stopEvent(evt);
dijit.typematic.trigger(_2ea,_2eb,node,_2ec,_2ea,_2ed,_2ee);
}else{
if(dijit.typematic._obj==_2ea){
dijit.typematic.stop();
}
}
}),dojo.connect(node,"onkeyup",this,function(evt){
if(dijit.typematic._obj==_2ea){
dijit.typematic.stop();
}
})];
},addMouseListener:function(node,_2f2,_2f3,_2f4,_2f5){
var dc=dojo.connect;
return [dc(node,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_2f2,node,_2f3,node,_2f4,_2f5);
}),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){
dojo.stopEvent(evt);
}),dc(node,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_2f2,node,_2f3,node,_2f4,_2f5);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_2fc,_2fd,_2fe,_2ff,_300,_301,_302){
return this.addKeyListener(_2fd,_2fe,_2ff,_300,_301,_302).concat(this.addMouseListener(_2fc,_2ff,_300,_301,_302));
}};
}
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 _305=cs.backgroundImage;
var _306=(cs.borderTopColor==cs.borderRightColor)||(_305!=null&&(_305=="none"||_305=="url(invalid-url:)"));
dojo[_306?"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 _309=this.getWaiRole(elem);
return role?(_309.indexOf(role)>-1):(_309.length>0);
},getWaiRole:function(elem){
return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(elem,role){
var _30d=dojo.attr(elem,"role")||"";
if(dojo.isFF<3||!this._XhtmlRoles.test(_30d)){
dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);
}else{
if((" "+_30d+" ").indexOf(" "+role+" ")<0){
var _30e=dojo.trim(_30d.replace(this._XhtmlRoles,""));
var _30f=dojo.trim(_30d.replace(_30e,""));
dojo.attr(elem,"role",_30f+(_30f?" ":"")+role);
}
}
},removeWaiRole:function(elem,role){
var _312=dojo.attr(elem,"role");
if(!_312){
return;
}
if(role){
var _313=dojo.isFF<3?"wairole:"+role:role;
var t=dojo.trim((" "+_312+" ").replace(" "+_313+" "," "));
dojo.attr(elem,"role",t);
}else{
elem.removeAttribute("role");
}
},hasWaiState:function(elem,_316){
if(dojo.isFF<3){
return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_316);
}
return elem.hasAttribute?elem.hasAttribute("aria-"+_316):!!elem.getAttribute("aria-"+_316);
},getWaiState:function(elem,_318){
if(dojo.isFF<3){
return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_318);
}
return elem.getAttribute("aria-"+_318)||"";
},setWaiState:function(elem,_31a,_31b){
if(dojo.isFF<3){
elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_31a,_31b);
}else{
elem.setAttribute("aria-"+_31a,_31b);
}
},removeWaiState:function(elem,_31d){
if(dojo.isFF<3){
elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_31d);
}else{
elem.removeAttribute("aria-"+_31d);
}
}});
}
if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
}
if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"connect",function(_31e,_31f){
if(_31e&&dojo.isFunction(_31e._onConnect)){
_31e._onConnect(_31f);
}
});
dijit._connectOnUseEventHandler=function(_320){
};
(function(){
var _321={};
var _322=function(dc){
if(!_321[dc]){
var r=[];
var _325;
var _326=dojo.getObject(dc).prototype;
for(var _327 in _326){
if(dojo.isFunction(_326[_327])&&(_325=_327.match(/^_set([a-zA-Z]*)Attr$/))&&_325[1]){
r.push(_325[1].charAt(0).toLowerCase()+_325[1].substr(1));
}
}
_321[dc]=r;
}
return _321[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_328,_329){
this.create(_328,_329);
},create:function(_32a,_32b){
this.srcNodeRef=dojo.byId(_32b);
this._connects=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var attr in this.attributeMap){
delete this._deferredConnects[attr];
}
for(attr in this._deferredConnects){
if(this[attr]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[attr];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_32a){
this.params=_32a;
dojo.mixin(this,_32a);
}
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 _32d=this.srcNodeRef;
if(_32d&&_32d.parentNode){
_32d.parentNode.replaceChild(this.domNode,_32d);
}
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 _32e=function(attr,_330){
if((_330.params&&attr in _330.params)||_330[attr]){
_330.attr(attr,_330[attr]);
}
};
for(var attr in this.attributeMap){
_32e(attr,this);
}
dojo.forEach(_322(this.declaredClass),function(a){
if(!(a in this.attributeMap)){
_32e(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_333){
this.destroyDescendants(_333);
this.destroy(_333);
},destroy:function(_334){
this.uninitialize();
dojo.forEach(this._connects,function(_335){
dojo.forEach(_335,dojo.disconnect);
});
dojo.forEach(this._supportingWidgets||[],function(w){
if(w.destroy){
w.destroy();
}
});
this.destroyRendering(_334);
dijit.registry.remove(this.id);
},destroyRendering:function(_337){
if(this.bgIframe){
this.bgIframe.destroy(_337);
delete this.bgIframe;
}
if(this.domNode){
if(_337){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_337){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_338){
dojo.forEach(this.getChildren(),function(_339){
if(_339.destroyRecursive){
_339.destroyRecursive(_338);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_33b){
if(_33b in this._deferredConnects){
var _33c=this[this._deferredConnects[_33b]||"domNode"];
this.connect(_33c,_33b.toLowerCase(),_33b);
delete this._deferredConnects[_33b];
}
},_setClassAttr:function(_33d){
var _33e=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_33e,this["class"]);
this["class"]=_33d;
dojo.addClass(_33e,_33d);
},_setStyleAttr:function(_33f){
var _340=this[this.attributeMap["style"]||"domNode"];
if(dojo.isObject(_33f)){
dojo.style(_340,_33f);
}else{
if(_340.style.cssText){
_340.style.cssText+="; "+_33f;
}else{
_340.style.cssText=_33f;
}
}
this["style"]=_33f;
},setAttribute:function(attr,_342){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(attr,_342);
},_attrToDom:function(attr,_344){
var _345=this.attributeMap[attr];
dojo.forEach(dojo.isArray(_345)?_345:[_345],function(_346){
var _347=this[_346.node||_346||"domNode"];
var type=_346.type||"attribute";
switch(type){
case "attribute":
if(dojo.isFunction(_344)){
_344=dojo.hitch(this,_344);
}
if(/^on[A-Z][a-zA-Z]*$/.test(attr)){
attr=attr.toLowerCase();
}
dojo.attr(_347,attr,_344);
break;
case "innerHTML":
_347.innerHTML=_344;
break;
case "class":
dojo.removeClass(_347,this[attr]);
dojo.addClass(_347,_344);
break;
}
},this);
this[attr]=_344;
},attr:function(name,_34a){
var args=arguments.length;
if(args==1&&!dojo.isString(name)){
for(var x in name){
this.attr(x,name[x]);
}
return this;
}
var _34d=this._getAttrNames(name);
if(args==2){
if(this[_34d.s]){
return this[_34d.s](_34a)||this;
}else{
if(name in this.attributeMap){
this._attrToDom(name,_34a);
}
this[name]=_34a;
}
return this;
}else{
if(this[_34d.g]){
return this[_34d.g]();
}else{
return this[name];
}
}
},_attrPairNames:{},_getAttrNames:function(name){
var apn=this._attrPairNames;
if(apn[name]){
return apn[name];
}
var uc=name.charAt(0).toUpperCase()+name.substr(1);
return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
if(this.containerNode){
var list=dojo.query("[widgetId]",this.containerNode);
return list.map(dijit.byNode);
}else{
return [];
}
},getChildren:function(){
if(this.containerNode){
return dijit.findWidgets(this.containerNode);
}else{
return [];
}
},nodesWithKeyClick:["input","button"],connect:function(obj,_353,_354){
var d=dojo;
var dc=dojo.connect;
var _357=[];
if(_353=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.nodeName]){
var m=d.hitch(this,_354);
_357.push(dc(obj,"onkeydown",this,function(e){
if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}else{
if(e.keyCode==d.keys.SPACE){
d.stopEvent(e);
}
}
}),dc(obj,"onkeyup",this,function(e){
if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
if(d.isFF){
_357.push(dc(obj,"onkeypress",this,function(e){
if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
return m(e);
}
}));
}
}
_353="onclick";
}
_357.push(dc(obj,_353,this,_354));
this._connects.push(_357);
return _357;
},disconnect:function(_35c){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_35c){
dojo.forEach(_35c,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_35e,_35f){
if(_35e["declaredClass"]&&_35e["addChild"]){
_35e.addChild(this,_35f);
}else{
dojo.place(this.domNode,_35e,_35f);
}
return this;
}});
})();
}
if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_360,_361){
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 _362=dojo.date.stamp._isoRegExp.exec(_360);
var _363=null;
if(_362){
_362.shift();
if(_362[1]){
_362[1]--;
}
if(_362[6]){
_362[6]*=1000;
}
if(_361){
_361=new Date(_361);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){
return _361["get"+prop]();
}).forEach(function(_365,_366){
if(_362[_366]===undefined){
_362[_366]=_365;
}
});
}
_363=new Date(_362[0]||1970,_362[1]||0,_362[2]||1,_362[3]||0,_362[4]||0,_362[5]||0,_362[6]||0);
var _367=0;
var _368=_362[7]&&_362[7].charAt(0);
if(_368!="Z"){
_367=((_362[8]||0)*60)+(Number(_362[9])||0);
if(_368!="-"){
_367*=-1;
}
}
if(_368){
_367-=_363.getTimezoneOffset();
}
if(_367){
_363.setTime(_363.getTime()+_367*60000);
}
}
return _363;
};
dojo.date.stamp.toISOString=function(_369,_36a){
var _=function(n){
return (n<10)?"0"+n:n;
};
_36a=_36a||{};
var _36d=[];
var _36e=_36a.zulu?"getUTC":"get";
var date="";
if(_36a.selector!="time"){
var year=_369[_36e+"FullYear"]();
date=["0000".substr((year+"").length)+year,_(_369[_36e+"Month"]()+1),_(_369[_36e+"Date"]())].join("-");
}
_36d.push(date);
if(_36a.selector!="date"){
var time=[_(_369[_36e+"Hours"]()),_(_369[_36e+"Minutes"]()),_(_369[_36e+"Seconds"]())].join(":");
var _372=_369[_36e+"Milliseconds"]();
if(_36a.milliseconds){
time+="."+(_372<100?"0":"")+_(_372);
}
if(_36a.zulu){
time+="Z";
}else{
if(_36a.selector!="time"){
var _373=_369.getTimezoneOffset();
var _374=Math.abs(_373);
time+=(_373>0?"-":"+")+_(Math.floor(_374/60))+":"+_(_374%60);
}
}
_36d.push(time);
}
return _36d.join("T");
};
}
if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.parser=new function(){
var d=dojo;
var _376=d._scopeName+"Type";
var qry="["+_376+"]";
var _378=0,_379={};
var _37a=function(_37b,_37c){
var nso=_37c||_379;
if(dojo.isIE){
var cn=_37b["__dojoNameCache"];
if(cn&&nso[cn]===_37b){
return cn;
}
}
var name;
do{
name="__"+_378++;
}while(name in nso);
nso[name]=_37b;
return name;
};
function _380(_381){
if(d.isString(_381)){
return "string";
}
if(typeof _381=="number"){
return "number";
}
if(typeof _381=="boolean"){
return "boolean";
}
if(d.isFunction(_381)){
return "function";
}
if(d.isArray(_381)){
return "array";
}
if(_381 instanceof Date){
return "date";
}
if(_381 instanceof d._Url){
return "url";
}
return "object";
};
function _382(_383,type){
switch(type){
case "string":
return _383;
case "number":
return _383.length?Number(_383):NaN;
case "boolean":
return typeof _383=="boolean"?_383:!(_383.toLowerCase()=="false");
case "function":
if(d.isFunction(_383)){
_383=_383.toString();
_383=d.trim(_383.substring(_383.indexOf("{")+1,_383.length-1));
}
try{
if(_383.search(/[^\w\.]+/i)!=-1){
_383=_37a(new Function(_383),this);
}
return d.getObject(_383,false);
}
catch(e){
return new Function();
}
case "array":
return _383?_383.split(/\s*,\s*/):[];
case "date":
switch(_383){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_383);
}
case "url":
return d.baseUrl+_383;
default:
return d.fromJson(_383);
}
};
var _385={};
function _386(_387){
if(!_385[_387]){
var cls=d.getObject(_387);
if(!d.isFunction(cls)){
throw new Error("Could not load class '"+_387+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _389=cls.prototype;
var _38a={},_38b={};
for(var name in _389){
if(name.charAt(0)=="_"){
continue;
}
if(name in _38b){
continue;
}
var _38d=_389[name];
_38a[name]=_380(_38d);
}
_385[_387]={cls:cls,params:_38a};
}
return _385[_387];
};
this._functionFromScript=function(_38e){
var _38f="";
var _390="";
var _391=_38e.getAttribute("args");
if(_391){
d.forEach(_391.split(/\s*,\s*/),function(part,idx){
_38f+="var "+part+" = arguments["+idx+"]; ";
});
}
var _394=_38e.getAttribute("with");
if(_394&&_394.length){
d.forEach(_394.split(/\s*,\s*/),function(part){
_38f+="with("+part+"){";
_390+="}";
});
}
return new Function(_38f+_38e.innerHTML+_390);
};
this.instantiate=function(_396,_397){
var _398=[];
_397=_397||{};
d.forEach(_396,function(node){
if(!node){
return;
}
var type=_376 in _397?_397[_376]:node.getAttribute(_376);
if(!type||!type.length){
return;
}
var _39b=_386(type),_39c=_39b.cls,ps=_39c._noScript||_39c.prototype._noScript;
var _39e={},_39f=node.attributes;
for(var name in _39b.params){
var item=name in _397?{value:_397[name],specified:true}:_39f.getNamedItem(name);
if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){
continue;
}
var _3a2=item.value;
switch(name){
case "class":
_3a2="className" in _397?_397.className:node.className;
break;
case "style":
_3a2="style" in _397?_397.style:(node.style&&node.style.cssText);
}
var _3a3=_39b.params[name];
if(typeof _3a2=="string"){
_39e[name]=_382(_3a2,_3a3);
}else{
_39e[name]=_3a2;
}
}
if(!ps){
var _3a4=[],_3a5=[];
d.query("> script[type^='dojo/']",node).orphan().forEach(function(_3a6){
var _3a7=_3a6.getAttribute("event"),type=_3a6.getAttribute("type"),nf=d.parser._functionFromScript(_3a6);
if(_3a7){
if(type=="dojo/connect"){
_3a4.push({event:_3a7,func:nf});
}else{
_39e[_3a7]=nf;
}
}else{
_3a5.push(nf);
}
});
}
var _3a9=_39c["markupFactory"];
if(!_3a9&&_39c["prototype"]){
_3a9=_39c.prototype["markupFactory"];
}
var _3aa=_3a9?_3a9(_39e,node,_39c):new _39c(_39e,node);
_398.push(_3aa);
var _3ab=node.getAttribute("jsId");
if(_3ab){
d.setObject(_3ab,_3aa);
}
if(!ps){
d.forEach(_3a4,function(_3ac){
d.connect(_3aa,_3ac.event,null,_3ac.func);
});
d.forEach(_3a5,function(func){
func.call(_3aa);
});
}
});
d.forEach(_398,function(_3ae){
if(_3ae&&_3ae.startup&&!_3ae._started&&(!_3ae.getParent||!_3ae.getParent())){
_3ae.startup();
}
});
return _398;
};
this.parse=function(_3af){
var list=d.query(qry,_3af);
var _3b1=this.instantiate(list);
return _3b1;
};
}();
(function(){
var _3b2=function(){
if(dojo.config["parseOnLoad"]==true){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_3b2);
}else{
dojo._loaders.unshift(_3b2);
}
})();
}
if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){
var _3b4=this.declaredClass,_3b5=this;
return dojo.string.substitute(tmpl,this,function(_3b6,key){
if(key.charAt(0)=="!"){
_3b6=dojo.getObject(key.substr(1),_3b5);
}
if(typeof _3b6=="undefined"){
throw new Error(_3b4+" template:"+key);
}
if(_3b6==null){
return "";
}
return key.charAt(0)=="!"?_3b6:_3b6.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _3b8=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var node;
if(dojo.isString(_3b8)){
node=dojo._toDom(this._stringRepl(_3b8));
}else{
node=_3b8.cloneNode(true);
}
this.domNode=node;
this._attachTemplateNodes(node);
if(this.widgetsInTemplate){
var cw=(this._supportingWidgets=dojo.parser.parse(node));
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_3bd){
var dest=this.containerNode;
if(_3bd&&dest){
while(_3bd.hasChildNodes()){
dest.appendChild(_3bd.firstChild);
}
}
},_attachTemplateNodes:function(_3bf,_3c0){
_3c0=_3c0||function(n,p){
return n.getAttribute(p);
};
var _3c3=dojo.isArray(_3bf)?_3bf:(_3bf.all||_3bf.getElementsByTagName("*"));
var x=dojo.isArray(_3bf)?0:-1;
for(;x<_3c3.length;x++){
var _3c5=(x==-1)?_3bf:_3c3[x];
if(this.widgetsInTemplate&&_3c0(_3c5,"dojoType")){
continue;
}
var _3c6=_3c0(_3c5,"dojoAttachPoint");
if(_3c6){
var _3c7,_3c8=_3c6.split(/\s*,\s*/);
while((_3c7=_3c8.shift())){
if(dojo.isArray(this[_3c7])){
this[_3c7].push(_3c5);
}else{
this[_3c7]=_3c5;
}
}
}
var _3c9=_3c0(_3c5,"dojoAttachEvent");
if(_3c9){
var _3ca,_3cb=_3c9.split(/\s*,\s*/);
var trim=dojo.trim;
while((_3ca=_3cb.shift())){
if(_3ca){
var _3cd=null;
if(_3ca.indexOf(":")!=-1){
var _3ce=_3ca.split(":");
_3ca=trim(_3ce[0]);
_3cd=trim(_3ce[1]);
}else{
_3ca=trim(_3ca);
}
if(!_3cd){
_3cd=_3ca;
}
this.connect(_3c5,_3ca,_3cd);
}
}
}
var role=_3c0(_3c5,"waiRole");
if(role){
dijit.setWaiRole(_3c5,role);
}
var _3d0=_3c0(_3c5,"waiState");
if(_3d0){
dojo.forEach(_3d0.split(/\s*,\s*/),function(_3d1){
if(_3d1.indexOf("-")!=-1){
var pair=_3d1.split("-");
dijit.setWaiState(_3c5,pair[0],pair[1]);
}
});
}
}
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_3d3,_3d4,_3d5){
var _3d6=dijit._Templated._templateCache;
var key=_3d4||_3d3;
var _3d8=_3d6[key];
if(_3d8){
if(!_3d8.ownerDocument||_3d8.ownerDocument==dojo.doc){
return _3d8;
}
dojo.destroy(_3d8);
}
if(!_3d4){
_3d4=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_3d3)));
}
_3d4=dojo.string.trim(_3d4);
if(_3d5||_3d4.match(/\$\{([^\}]+)\}/g)){
return (_3d6[key]=_3d4);
}else{
return (_3d6[key]=dojo._toDom(_3d4));
}
};
dijit._Templated._sanitizeTemplateString=function(_3d9){
if(_3d9){
_3d9=_3d9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _3da=_3d9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_3da){
_3d9=_3da[1];
}
}else{
_3d9="";
}
return _3d9;
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _3db=dijit._Templated._templateCache;
for(var key in _3db){
var _3dd=_3db[key];
if(!isNaN(_3dd.nodeType)){
dojo.destroy(_3dd);
}
delete _3db[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}
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(_3de){
if(_3de.reset){
_3de.reset();
}
});
},validate:function(){
var _3df=false;
return dojo.every(dojo.map(this.getDescendants(),function(_3e0){
_3e0._hasBeenBlurred=true;
var _3e1=_3e0.disabled||!_3e0.validate||_3e0.validate();
if(!_3e1&&!_3df){
dijit.scrollIntoView(_3e0.containerNode||_3e0.domNode);
_3e0.focus();
_3df=true;
}
return _3e1;
}),function(item){
return item;
});
},setValues:function(val){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
return this.attr("value",val);
},_setValueAttr:function(obj){
var map={};
dojo.forEach(this.getDescendants(),function(_3e6){
if(!_3e6.name){
return;
}
var _3e7=map[_3e6.name]||(map[_3e6.name]=[]);
_3e7.push(_3e6);
});
for(var name in map){
if(!map.hasOwnProperty(name)){
continue;
}
var _3e9=map[name],_3ea=dojo.getObject(name,false,obj);
if(_3ea===undefined){
continue;
}
if(!dojo.isArray(_3ea)){
_3ea=[_3ea];
}
if(typeof _3e9[0].checked=="boolean"){
dojo.forEach(_3e9,function(w,i){
w.attr("value",dojo.indexOf(_3ea,w.value)!=-1);
});
}else{
if(_3e9[0]._multiValue){
_3e9[0].attr("value",_3ea);
}else{
dojo.forEach(_3e9,function(w,i){
w.attr("value",_3ea[i]);
});
}
}
}
},getValues:function(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_getValueAttr:function(){
var obj={};
dojo.forEach(this.getDescendants(),function(_3f0){
var name=_3f0.name;
if(!name||_3f0.disabled){
return;
}
var _3f2=_3f0.attr("value");
if(typeof _3f0.checked=="boolean"){
if(/Radio/.test(_3f0.declaredClass)){
if(_3f2!==false){
dojo.setObject(name,_3f2,obj);
}else{
_3f2=dojo.getObject(name,false,obj);
if(_3f2===undefined){
dojo.setObject(name,null,obj);
}
}
}else{
var ary=dojo.getObject(name,false,obj);
if(!ary){
ary=[];
dojo.setObject(name,ary,obj);
}
if(_3f2!==false){
ary.push(_3f2);
}
}
}else{
dojo.setObject(name,_3f2,obj);
}
});
return obj;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_3f4){
return !_3f4.disabled&&_3f4.isValid&&!_3f4.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_3f5){
},_widgetChange:function(_3f6){
var _3f7=this._lastValidState;
if(!_3f6||this._lastValidState===undefined){
_3f7=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_3f7;
}
}else{
if(_3f6.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_3f6);
},this);
if(!_3f6.isValid()&&!_3f6.attr("disabled")){
this._invalidWidgets.push(_3f6);
}
_3f7=(this._invalidWidgets.length===0);
}
}
if(_3f7!==this._lastValidState){
this._lastValidState=_3f7;
this.onValidStateChange(_3f7);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _3f9=this;
var _3fa=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(item){
return item.validate;
}),function(_3fc){
_3fa.push(_3f9.connect(_3fc,"validate",dojo.hitch(_3f9,"_widgetChange",_3fc)));
_3fa.push(_3f9.connect(_3fc,"_setDisabledAttr",dojo.hitch(_3f9,"_widgetChange",_3fc)));
});
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(_3fd){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_3fe){
var _3ff=dijit._getTabNavigable(dojo.byId(_3fe));
this._firstFocusItem=_3ff.lowest||_3ff.first||_3fe;
this._lastFocusItem=_3ff.last||_3ff.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_3fe,"tabindex","0");
this._firstFocusItem=_3fe;
}
}});
}
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(_401){
this.node.className="dijitDialogUnderlay "+_401;
},postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _404=dijit.getViewport();
os.top=_404.t+"px";
os.left=_404.l+"px";
is.width=_404.w+"px";
is.height=_404.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="block";
}
},hide:function(){
this.domNode.style.display="none";
if(this.bgIframe.iframe){
this.bgIframe.iframe.style.display="none";
}
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
}});
}
if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
for(var p=this.domNode.parentNode;p;p=p.parentNode){
var id=p.getAttribute&&p.getAttribute("widgetId");
if(id){
var _407=dijit.byId(id);
return _407.isContainer?_407:null;
}
}
return null;
},_getSibling:function(_408){
var node=this.domNode;
do{
node=node[_408+"Sibling"];
}while(node&&node.nodeType!=1);
if(!node){
return null;
}
var id=node.getAttribute("widgetId");
return dijit.byId(id);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}
if(!dojo._hasResource["dijit._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(_40c,_40d){
var _40e=this.containerNode;
if(_40d&&typeof _40d=="number"){
var _40f=this.getChildren();
if(_40f&&_40f.length>=_40d){
_40e=_40f[_40d-1].domNode;
_40d="after";
}
}
dojo.place(_40c.domNode,_40e,_40d);
if(this._started&&!_40c._started){
_40c.startup();
}
},removeChild:function(_410){
if(typeof _410=="number"&&_410>0){
_410=this.getChildren()[_410];
}
if(!_410||!_410.domNode){
return;
}
var node=_410.domNode;
node.parentNode.removeChild(node);
},_nextElement:function(node){
do{
node=node.nextSibling;
}while(node&&node.nodeType!=1);
return node;
},_firstElement:function(node){
node=node.firstChild;
if(node&&node.nodeType!=1){
node=this._nextElement(node);
}
return node;
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return !!this._firstElement(this.containerNode);
},destroyDescendants:function(_414){
dojo.forEach(this.getChildren(),function(_415){
_415.destroyRecursive(_414);
});
},_getSiblingOfChild:function(_416,dir){
var node=_416.domNode;
var _419=(dir>0?"nextSibling":"previousSibling");
do{
node=node[_419];
}while(node&&(node.nodeType!=1||!dijit.byNode(node)));
return node?dijit.byNode(node):null;
},getIndexOfChild:function(_41a){
var _41b=this.getChildren();
for(var i=0,c;c=_41b[i];i++){
if(c==_41a){
return i;
}
}
return -1;
}});
}
if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_41e){
_41e.startup();
});
if(!this.getParent||!this.getParent()){
this.resize();
this._viewport=dijit.getViewport();
this.connect(dojo.global,"onresize",function(){
var _41f=dijit.getViewport();
if(_41f.w!=this._viewport.w||_41f.h!=this._viewport.h){
this._viewport=_41f;
this.resize();
}
});
}
this.inherited(arguments);
},resize:function(_420,_421){
var node=this.domNode;
if(_420){
dojo.marginBox(node,_420);
if(_420.t){
node.style.top=_420.t+"px";
}
if(_420.l){
node.style.left=_420.l+"px";
}
}
var mb=_421||{};
dojo.mixin(mb,_420||{});
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(_429){
dojo.addClass(_429.domNode,this.baseClass+"-child");
if(_429.baseClass){
dojo.addClass(_429.domNode,this.baseClass+"-"+_429.baseClass);
}
},addChild:function(_42a,_42b){
this.inherited(arguments);
if(this._started){
this._setupChild(_42a);
}
},removeChild:function(_42c){
dojo.removeClass(_42c.domNode,this.baseClass+"-child");
if(_42c.baseClass){
dojo.removeClass(_42c.domNode,this.baseClass+"-"+_42c.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 _432=function(word){
return word.substring(0,1).toUpperCase()+word.substring(1);
};
var size=function(_435,dim){
_435.resize?_435.resize(dim):dojo.marginBox(_435.domNode,dim);
dojo.mixin(_435,dojo.marginBox(_435.domNode));
dojo.mixin(_435,dim);
};
dijit.layout.layoutChildren=function(_437,dim,_439){
dim=dojo.mixin({},dim);
dojo.addClass(_437,"dijitLayoutContainer");
_439=dojo.filter(_439,function(item){
return item.layoutAlign!="client";
}).concat(dojo.filter(_439,function(item){
return item.layoutAlign=="client";
}));
dojo.forEach(_439,function(_43c){
var elm=_43c.domNode,pos=_43c.layoutAlign;
var _43f=elm.style;
_43f.left=dim.l+"px";
_43f.top=dim.t+"px";
_43f.bottom=_43f.right="auto";
dojo.addClass(elm,"dijitAlign"+_432(pos));
if(pos=="top"||pos=="bottom"){
size(_43c,{w:dim.w});
dim.h-=_43c.h;
if(pos=="top"){
dim.t+=_43c.h;
}else{
_43f.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
size(_43c,{h:dim.h});
dim.w-=_43c.w;
if(pos=="left"){
dim.l+=_43c.w;
}else{
_43f.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
size(_43c,dim);
}
}
}
});
};
})();
}
if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
(function(){
var _440=0;
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,_444){
if(_444){
dojo.html._emptyNode(node);
}
if(typeof cont=="string"){
var pre="",post="",walk=0,name=node.nodeName.toLowerCase();
switch(name){
case "tr":
pre="<tr>";
post="</tr>";
walk+=1;
case "tbody":
case "thead":
pre="<tbody>"+pre;
post+="</tbody>";
walk+=1;
case "table":
pre="<table>"+pre;
post+="</table>";
walk+=1;
break;
}
if(walk){
var n=node.ownerDocument.createElement("div");
n.innerHTML=pre+cont+post;
do{
n=n.firstChild;
}while(--walk);
dojo.forEach(n.childNodes,function(n){
node.appendChild(n.cloneNode(true));
});
}else{
node.innerHTML=cont;
}
}else{
if(cont.nodeType){
node.appendChild(cont);
}else{
dojo.forEach(cont,function(n){
node.appendChild(n.cloneNode(true));
});
}
}
return node;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_44c,node){
dojo.mixin(this,_44c||{});
node=this.node=dojo.byId(this.node||node);
if(!this.id){
this.id=["Setter",(node)?node.id||node.tagName:"",_440++].join("_");
}
if(!(this.node||node)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(cont,_44f){
if(undefined!==cont){
this.content=cont;
}
if(_44f){
this._mixin(_44f);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var node=this.node;
if(!node){
console.error("setContent given no node");
}
try{
node=dojo.html._setNodeContent(node,this.content);
}
catch(e){
var _451=this.onContentError(e);
try{
node.innerHTML=_451;
}
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 _454=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_454){
cont=_454[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(_456){
var _457={},key;
for(key in _456){
if(key in _457){
continue;
}
this[key]=_456[key];
}
},_parse:function(){
var _459=this.node;
try{
this.parseResults=dojo.parser.parse(_459,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(type,err,_45c){
var _45d=this["on"+type+"Error"].call(this,err);
if(_45c){
console.error(_45c,err);
}else{
if(_45d){
dojo.html._setNodeContent(this.node,_45d,true);
}
}
}});
dojo.html.set=function(node,cont,_460){
if(undefined==cont){
console.warn("dojo.html.set: no cont argument provided, using empty string");
cont="";
}
if(!_460){
return dojo.html._setNodeContent(node,cont,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_460,{content:cont,node:node}));
return op.set();
}
};
})();
}
if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{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,postMixInProperties:function(){
this.inherited(arguments);
var _462=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_462);
this.errorMessage=dojo.string.substitute(this.errorMessage,_462);
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(!dijit.hasWaiRole(this.domNode)){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_463){
_463.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){
this._scheduleLayout();
}
}
this._loadCheck();
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _464=dojo.query(">",this.containerNode),_465=_464.filter(function(node){
return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");
}),_467=dojo.filter(_465.map(dijit.byNode),function(_468){
return _468&&_468.domNode&&_468.resize;
});
if(_464.length==_465.length&&_467.length==1){
this._singleChild=_467[0];
}else{
delete this._singleChild;
}
},setHref:function(href){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",href);
},_setHrefAttr:function(href){
this.cancel();
this.href=href;
if(this._created&&(this.preload||this._isShown())){
return this.refresh();
}else{
this._hrefChanged=true;
}
},setContent:function(data){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",data);
},_setContentAttr:function(data){
this.href="";
this.cancel();
this._setContent(data||"");
this._isDownloaded=false;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
},destroyRecursive:function(_46d){
if(this._beingDestroyed){
return;
}
this._beingDestroyed=true;
this.inherited(arguments);
},resize:function(size){
dojo.marginBox(this.domNode,size);
var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});
var cb=(this._contentBox=dijit.layout.marginBox2contentBox(node,mb));
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize({w:cb.w,h:cb.h});
}
},_isShown:function(){
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._needLayout){
this._layoutChildren();
}
this._loadCheck();
if(this.onShow){
this.onShow();
}
},_loadCheck:function(){
if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){
delete this._hrefChanged;
this.refresh();
}
},refresh:function(){
this.cancel();
this._setContent(this.onDownloadStart(),true);
var self=this;
var _474={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_474,this.ioArgs);
}
var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_474));
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;
});
},_onLoadHandler:function(data){
this.isLoaded=true;
try{
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 _479=this._contentSetter;
dojo.forEach(this.getChildren(),function(_47a){
if(_47a.destroyRecursive){
_47a.destroyRecursive();
}
});
if(_479){
dojo.forEach(_479.parseResults,function(_47b){
if(_47b.destroyRecursive&&_47b.domNode&&_47b.domNode.parentNode==dojo.body()){
_47b.destroyRecursive();
}
});
delete _479.parseResults;
}
dojo.html._emptyNode(this.containerNode);
},_setContent:function(cont,_47d){
this.destroyDescendants();
delete this._singleChild;
var _47e=this._contentSetter;
if(!(_47e&&_47e instanceof dojo.html._ContentSetter)){
_47e=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _480=this.onContentError(e);
try{
this.containerNode.innerHTML=_480;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _481=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_47e,_481);
_47e.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);
delete this._contentSetterParams;
if(!_47d){
dojo.forEach(this.getChildren(),function(_482){
_482.startup();
});
if(this.doLayout){
this._checkIfSingleChild();
}
this._scheduleLayout();
this._onLoadHandler(cont);
}
},_onError:function(type,err,_485){
var _486=this["on"+type+"Error"].call(this,err);
if(_485){
console.error(_485,err);
}else{
if(_486){
this._setContent(_486,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function(){
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(_488){
if(_488.resize){
_488.resize();
}
});
}
delete this._needLayout;
},onLoad:function(data){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_48a){
},onDownloadError:function(_48b){
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:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(node,_48d,_48e){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_48e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_48e.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);
}
},_onKey:function(evt){
var node=evt.target;
var dk=dojo.keys;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _494=(this._firstFocusItem==this._lastFocusItem);
if(evt.charOrCode==dk.ESCAPE){
this.onCancel();
dojo.stopEvent(evt);
}else{
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_494){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_494){
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.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){
var _495=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_495);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
this.inherited(arguments);
},_endDrag:function(e){
if(e&&e.node&&e.node===this.domNode){
var vp=dijit.getViewport();
var p=e._leftTop||dojo.coords(e.node,true);
this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};
}
},_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");
}
var _49a={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
var _49c=dijit._underlay;
if(!_49c){
_49c=dijit._underlay=new dijit.DialogUnderlay(_49a);
}
this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,beforeBegin:function(){
_49c.attr(_49a);
_49c.show();
},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:function(){
node.style.visibility="hidden";
node.style.top="-9999px";
dijit._underlay.hide();
}});
},uninitialize:function(){
var _49d=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_49d=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_49d=true;
this._fadeOut.stop();
}
if(this.open||_49d){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
},_size:function(){
var mb=dojo.marginBox(this.domNode);
var _49f=dijit.getViewport();
if(mb.w>=_49f.w||mb.h>=_49f.h){
dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_49f.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_49f.h*0.75))+"px",overflow:"auto",position:"relative"});
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var node=this.domNode;
var _4a1=dijit.getViewport();
var p=this._relativePosition;
var mb=p?null:dojo.marginBox(node);
dojo.style(node,{left:Math.floor(_4a1.l+(p?p.l:(_4a1.w-mb.w)/2))+"px",top:Math.floor(_4a1.t+(p?p.t:(_4a1.h-mb.h)/2))+"px"});
}
},_onKey:function(evt){
if(evt.charOrCode){
var dk=dojo.keys;
var node=evt.target;
if(evt.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _4a7=(this._firstFocusItem==this._lastFocusItem);
if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
if(!_4a7){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(evt);
}else{
if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
if(!_4a7){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(evt);
}else{
while(node){
if(node==this.domNode){
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 _4a8=dijit.getViewport();
if(!this._oldViewport||_4a8.h!=this._oldViewport.h||_4a8.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_4a8;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,visibility:""});
if(this._fixSizes){
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
this.open=true;
this._onShow();
this._size();
this._position();
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function(){
if(!this._alreadyInitialized){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this.refocus){
this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));
}
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
},layout:function(){
if(this.domNode.style.visibility!="hidden"){
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);
},_onCloseEnter:function(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
}
if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.number.format=function(_4a9,_4aa){
_4aa=dojo.mixin({},_4aa||{});
var _4ab=dojo.i18n.normalizeLocale(_4aa.locale);
var _4ac=dojo.i18n.getLocalization("dojo.cldr","number",_4ab);
_4aa.customs=_4ac;
var _4ad=_4aa.pattern||_4ac[(_4aa.type||"decimal")+"Format"];
if(isNaN(_4a9)||Math.abs(_4a9)==Infinity){
return null;
}
return dojo.number._applyPattern(_4a9,_4ad,_4aa);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_4ae,_4af,_4b0){
_4b0=_4b0||{};
var _4b1=_4b0.customs.group;
var _4b2=_4b0.customs.decimal;
var _4b3=_4af.split(";");
var _4b4=_4b3[0];
_4af=_4b3[(_4ae<0)?1:0]||("-"+_4b4);
if(_4af.indexOf("%")!=-1){
_4ae*=100;
}else{
if(_4af.indexOf("‰")!=-1){
_4ae*=1000;
}else{
if(_4af.indexOf("¤")!=-1){
_4b1=_4b0.customs.currencyGroup||_4b1;
_4b2=_4b0.customs.currencyDecimal||_4b2;
_4af=_4af.replace(/\u00a4{1,3}/,function(_4b5){
var prop=["symbol","currency","displayName"][_4b5.length-1];
return _4b0[prop]||_4b0.currency||"";
});
}else{
if(_4af.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _4b7=dojo.number._numberPatternRE;
var _4b8=_4b4.match(_4b7);
if(!_4b8){
throw new Error("unable to find a number expression in pattern: "+_4af);
}
if(_4b0.fractional===false){
_4b0.places=0;
}
return _4af.replace(_4b7,dojo.number._formatAbsolute(_4ae,_4b8[0],{decimal:_4b2,group:_4b1,places:_4b0.places,round:_4b0.round}));
};
dojo.number.round=function(_4b9,_4ba,_4bb){
var _4bc=10/(_4bb||10);
return (_4bc*+_4b9).toFixed(_4ba)/_4bc;
};
if((0.9).toFixed()==0){
(function(){
var _4bd=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 _4bd(v,p,m)+(v>0?d:-d);
};
})();
}
dojo.number._formatAbsolute=function(_4c3,_4c4,_4c5){
_4c5=_4c5||{};
if(_4c5.places===true){
_4c5.places=0;
}
if(_4c5.places===Infinity){
_4c5.places=6;
}
var _4c6=_4c4.split(".");
var _4c7=(_4c5.places>=0)?_4c5.places:(_4c6[1]&&_4c6[1].length)||0;
if(!(_4c5.round<0)){
_4c3=dojo.number.round(_4c3,_4c7,_4c5.round);
}
var _4c8=String(Math.abs(_4c3)).split(".");
var _4c9=_4c8[1]||"";
if(_4c5.places){
var _4ca=dojo.isString(_4c5.places)&&_4c5.places.indexOf(",");
if(_4ca){
_4c5.places=_4c5.places.substring(_4ca+1);
}
_4c8[1]=dojo.string.pad(_4c9.substr(0,_4c5.places),_4c5.places,"0",true);
}else{
if(_4c6[1]&&_4c5.places!==0){
var pad=_4c6[1].lastIndexOf("0")+1;
if(pad>_4c9.length){
_4c8[1]=dojo.string.pad(_4c9,pad,"0",true);
}
var _4cc=_4c6[1].length;
if(_4cc<_4c9.length){
_4c8[1]=_4c9.substr(0,_4cc);
}
}else{
if(_4c8[1]){
_4c8.pop();
}
}
}
var _4cd=_4c6[0].replace(",","");
pad=_4cd.indexOf("0");
if(pad!=-1){
pad=_4cd.length-pad;
if(pad>_4c8[0].length){
_4c8[0]=dojo.string.pad(_4c8[0],pad);
}
if(_4cd.indexOf("#")==-1){
_4c8[0]=_4c8[0].substr(_4c8[0].length-pad);
}
}
var _4ce=_4c6[0].lastIndexOf(",");
var _4cf,_4d0;
if(_4ce!=-1){
_4cf=_4c6[0].length-_4ce-1;
var _4d1=_4c6[0].substr(0,_4ce);
_4ce=_4d1.lastIndexOf(",");
if(_4ce!=-1){
_4d0=_4d1.length-_4ce-1;
}
}
var _4d2=[];
for(var _4d3=_4c8[0];_4d3;){
var off=_4d3.length-_4cf;
_4d2.push((off>0)?_4d3.substr(off):_4d3);
_4d3=(off>0)?_4d3.slice(0,off):"";
if(_4d0){
_4cf=_4d0;
delete _4d0;
}
}
_4c8[0]=_4d2.reverse().join(_4c5.group||",");
return _4c8.join(_4c5.decimal||".");
};
dojo.number.regexp=function(_4d5){
return dojo.number._parseInfo(_4d5).regexp;
};
dojo.number._parseInfo=function(_4d6){
_4d6=_4d6||{};
var _4d7=dojo.i18n.normalizeLocale(_4d6.locale);
var _4d8=dojo.i18n.getLocalization("dojo.cldr","number",_4d7);
var _4d9=_4d6.pattern||_4d8[(_4d6.type||"decimal")+"Format"];
var _4da=_4d8.group;
var _4db=_4d8.decimal;
var _4dc=1;
if(_4d9.indexOf("%")!=-1){
_4dc/=100;
}else{
if(_4d9.indexOf("‰")!=-1){
_4dc/=1000;
}else{
var _4dd=_4d9.indexOf("¤")!=-1;
if(_4dd){
_4da=_4d8.currencyGroup||_4da;
_4db=_4d8.currencyDecimal||_4db;
}
}
}
var _4de=_4d9.split(";");
if(_4de.length==1){
_4de.push("-"+_4de[0]);
}
var re=dojo.regexp.buildGroupRE(_4de,function(_4e0){
_4e0="(?:"+dojo.regexp.escapeString(_4e0,".")+")";
return _4e0.replace(dojo.number._numberPatternRE,function(_4e1){
var _4e2={signed:false,separator:_4d6.strict?_4da:[_4da,""],fractional:_4d6.fractional,decimal:_4db,exponent:false};
var _4e3=_4e1.split(".");
var _4e4=_4d6.places;
if(_4e3.length==1||_4e4===0){
_4e2.fractional=false;
}else{
if(_4e4===undefined){
_4e4=_4d6.pattern?_4e3[1].lastIndexOf("0")+1:Infinity;
}
if(_4e4&&_4d6.fractional==undefined){
_4e2.fractional=true;
}
if(!_4d6.places&&(_4e4<_4e3[1].length)){
_4e4+=","+_4e3[1].length;
}
_4e2.places=_4e4;
}
var _4e5=_4e3[0].split(",");
if(_4e5.length>1){
_4e2.groupSize=_4e5.pop().length;
if(_4e5.length>1){
_4e2.groupSize2=_4e5.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_4e2)+")";
});
},true);
if(_4dd){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_4e6,_4e7,_4e8,_4e9){
var prop=["symbol","currency","displayName"][_4e8.length-1];
var _4eb=dojo.regexp.escapeString(_4d6[prop]||_4d6.currency||"");
_4e7=_4e7?"[\\s\\xa0]":"";
_4e9=_4e9?"[\\s\\xa0]":"";
if(!_4d6.strict){
if(_4e7){
_4e7+="*";
}
if(_4e9){
_4e9+="*";
}
return "(?:"+_4e7+_4eb+_4e9+")?";
}
return _4e7+_4eb+_4e9;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_4da,decimal:_4db,factor:_4dc};
};
dojo.number.parse=function(_4ec,_4ed){
var info=dojo.number._parseInfo(_4ed);
var _4ef=(new RegExp("^"+info.regexp+"$")).exec(_4ec);
if(!_4ef){
return NaN;
}
var _4f0=_4ef[1];
if(!_4ef[1]){
if(!_4ef[2]){
return NaN;
}
_4f0=_4ef[2];
info.factor*=-1;
}
_4f0=_4f0.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");
return _4f0*info.factor;
};
dojo.number._realNumberRegexp=function(_4f1){
_4f1=_4f1||{};
if(!("places" in _4f1)){
_4f1.places=Infinity;
}
if(typeof _4f1.decimal!="string"){
_4f1.decimal=".";
}
if(!("fractional" in _4f1)||/^0/.test(_4f1.places)){
_4f1.fractional=[true,false];
}
if(!("exponent" in _4f1)){
_4f1.exponent=[true,false];
}
if(!("eSigned" in _4f1)){
_4f1.eSigned=[true,false];
}
var _4f2=dojo.number._integerRegexp(_4f1);
var _4f3=dojo.regexp.buildGroupRE(_4f1.fractional,function(q){
var re="";
if(q&&(_4f1.places!==0)){
re="\\"+_4f1.decimal;
if(_4f1.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_4f1.places+"}";
}
}
return re;
},true);
var _4f6=dojo.regexp.buildGroupRE(_4f1.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_4f1.eSigned})+")";
}
return "";
});
var _4f8=_4f2+_4f3;
if(_4f3){
_4f8="(?:(?:"+_4f8+")|(?:"+_4f3+"))";
}
return _4f8+_4f6;
};
dojo.number._integerRegexp=function(_4f9){
_4f9=_4f9||{};
if(!("signed" in _4f9)){
_4f9.signed=[true,false];
}
if(!("separator" in _4f9)){
_4f9.separator="";
}else{
if(!("groupSize" in _4f9)){
_4f9.groupSize=3;
}
}
var _4fa=dojo.regexp.buildGroupRE(_4f9.signed,function(q){
return q?"[-+]":"";
},true);
var _4fc=dojo.regexp.buildGroupRE(_4f9.separator,function(sep){
if(!sep){
return "(?:\\d+)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep==" "){
sep="\\s\\xa0";
}
}
var grp=_4f9.groupSize,grp2=_4f9.groupSize2;
if(grp2){
var _500="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-grp2)>0)?"(?:"+_500+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_500;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _4fa+_4fc;
};
}
if(!dojo._hasResource["dojox.validate.regexp"]){
dojo._hasResource["dojox.validate.regexp"]=true;
dojo.provide("dojox.validate.regexp");
dojo.mixin(dojox.validate.regexp,{ipAddress:function(_501){
_501=(typeof _501=="object")?_501:{};
if(typeof _501.allowDottedDecimal!="boolean"){
_501.allowDottedDecimal=true;
}
if(typeof _501.allowDottedHex!="boolean"){
_501.allowDottedHex=true;
}
if(typeof _501.allowDottedOctal!="boolean"){
_501.allowDottedOctal=true;
}
if(typeof _501.allowDecimal!="boolean"){
_501.allowDecimal=true;
}
if(typeof _501.allowHex!="boolean"){
_501.allowHex=true;
}
if(typeof _501.allowIPv6!="boolean"){
_501.allowIPv6=true;
}
if(typeof _501.allowHybrid!="boolean"){
_501.allowHybrid=true;
}
var _502="((\\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])";
var _503="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";
var _504="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";
var _505="(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])";
var _506="0[xX]0*[\\da-fA-F]{1,8}";
var _507="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";
var _508="([\\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])";
var a=[];
if(_501.allowDottedDecimal){
a.push(_502);
}
if(_501.allowDottedHex){
a.push(_503);
}
if(_501.allowDottedOctal){
a.push(_504);
}
if(_501.allowDecimal){
a.push(_505);
}
if(_501.allowHex){
a.push(_506);
}
if(_501.allowIPv6){
a.push(_507);
}
if(_501.allowHybrid){
a.push(_508);
}
var _50a="";
if(a.length>0){
_50a="("+a.join("|")+")";
}
return _50a;
},host:function(_50b){
_50b=(typeof _50b=="object")?_50b:{};
if(typeof _50b.allowIP!="boolean"){
_50b.allowIP=true;
}
if(typeof _50b.allowLocal!="boolean"){
_50b.allowLocal=false;
}
if(typeof _50b.allowPort!="boolean"){
_50b.allowPort=true;
}
if(typeof _50b.allowNamed!="boolean"){
_50b.allowNamed=false;
}
var _50c="(?:[\\da-zA-Z](?:[-\\da-zA-Z]{0,61}[\\da-zA-Z])?)";
var _50d="(?:[a-zA-Z](?:[-\\da-zA-Z]{0,6}[\\da-zA-Z])?)";
var _50e=_50b.allowPort?"(\\:\\d+)?":"";
var _50f="((?:"+_50c+"\\.)*"+_50d+"\\.?)";
if(_50b.allowIP){
_50f+="|"+dojox.validate.regexp.ipAddress(_50b);
}
if(_50b.allowLocal){
_50f+="|localhost";
}
if(_50b.allowNamed){
_50f+="|^[^-][a-zA-Z0-9_-]*";
}
return "("+_50f+")"+_50e;
},url:function(_510){
_510=(typeof _510=="object")?_510:{};
if(!("scheme" in _510)){
_510.scheme=[true,false];
}
var _511=dojo.regexp.buildGroupRE(_510.scheme,function(q){
if(q){
return "(https?|ftps?)\\://";
}
return "";
});
var _513="(/(?:[^?#\\s/]+/)*(?:[^?#\\s/]+(?:\\?[^?#\\s/]*)?(?:#[A-Za-z][\\w.:-]*)?)?)?";
return _511+dojox.validate.regexp.host(_510)+_513;
},emailAddress:function(_514){
_514=(typeof _514=="object")?_514:{};
if(typeof _514.allowCruft!="boolean"){
_514.allowCruft=false;
}
_514.allowPort=false;
var _515="([\\da-zA-Z]+[-._+&'])*[\\da-zA-Z]+";
var _516=_515+"@"+dojox.validate.regexp.host(_514);
if(_514.allowCruft){
_516="<?(mailto\\:)?"+_516+">?";
}
return _516;
},emailAddressList:function(_517){
_517=(typeof _517=="object")?_517:{};
if(typeof _517.listSeparator!="string"){
_517.listSeparator="\\s;,";
}
var _518=dojox.validate.regexp.emailAddress(_517);
var _519="("+_518+"\\s*["+_517.listSeparator+"]\\s*)*"+_518+"\\s*["+_517.listSeparator+"]?\\s*";
return _519;
},numberFormat:function(_51a){
_51a=(typeof _51a=="object")?_51a:{};
if(typeof _51a.format=="undefined"){
_51a.format="###-###-####";
}
var _51b=function(_51c){
return dojo.regexp.escapeString(_51c,"?").replace(/\?/g,"\\d?").replace(/#/g,"\\d");
};
return dojo.regexp.buildGroupRE(_51a.format,_51b);
}});
dojox.validate.regexp.ca={postalCode:function(){
return "([A-Z][0-9][A-Z] [0-9][A-Z][0-9])";
},province:function(){
return "(AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT)";
}};
dojox.validate.regexp.us={state:function(_51d){
_51d=(typeof _51d=="object")?_51d:{};
if(typeof _51d.allowTerritories!="boolean"){
_51d.allowTerritories=true;
}
if(typeof _51d.allowMilitary!="boolean"){
_51d.allowMilitary=true;
}
var _51e="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|"+"NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";
var _51f="AS|FM|GU|MH|MP|PW|PR|VI";
var _520="AA|AE|AP";
if(_51d.allowTerritories){
_51e+="|"+_51f;
}
if(_51d.allowMilitary){
_51e+="|"+_520;
}
return "("+_51e+")";
}};
}
if(!dojo._hasResource["dojox.validate._base"]){
dojo._hasResource["dojox.validate._base"]=true;
dojo.provide("dojox.validate._base");
dojo.experimental("dojox.validate");
dojox.validate.isText=function(_521,_522){
_522=(typeof _522=="object")?_522:{};
if(/^\s*$/.test(_521)){
return false;
}
if(typeof _522.length=="number"&&_522.length!=_521.length){
return false;
}
if(typeof _522.minlength=="number"&&_522.minlength>_521.length){
return false;
}
if(typeof _522.maxlength=="number"&&_522.maxlength<_521.length){
return false;
}
return true;
};
dojox.validate._isInRangeCache={};
dojox.validate.isInRange=function(_523,_524){
_523=dojo.number.parse(_523,_524);
if(isNaN(_523)){
return false;
}
_524=(typeof _524=="object")?_524:{};
var max=(typeof _524.max=="number")?_524.max:Infinity,min=(typeof _524.min=="number")?_524.min:-Infinity,dec=(typeof _524.decimal=="string")?_524.decimal:".",_528=dojox.validate._isInRangeCache,_529=_523+"max"+max+"min"+min+"dec"+dec;
if(typeof _528[_529]!="undefined"){
return _528[_529];
}
_528[_529]=!(_523<min||_523>max);
return _528[_529];
};
dojox.validate.isNumberFormat=function(_52a,_52b){
var re=new RegExp("^"+dojox.validate.regexp.numberFormat(_52b)+"$","i");
return re.test(_52a);
};
dojox.validate.isValidLuhn=function(_52d){
var sum=0,_52f,_530;
if(!dojo.isString(_52d)){
_52d=String(_52d);
}
_52d=_52d.replace(/[- ]/g,"");
_52f=_52d.length%2;
for(var i=0;i<_52d.length;i++){
_530=parseInt(_52d.charAt(i));
if(i%2==_52f){
_530*=2;
}
if(_530>9){
_530-=9;
}
sum+=_530;
}
return !(sum%10);
};
}
if(!dojo._hasResource["dojox.validate.check"]){
dojo._hasResource["dojox.validate.check"]=true;
dojo.provide("dojox.validate.check");
dojo.experimental;
dojox.validate.check=function(form,_533){
var _534=[];
var _535=[];
var _536={isSuccessful:function(){
return (!this.hasInvalid()&&!this.hasMissing());
},hasMissing:function(){
return (_534.length>0);
},getMissing:function(){
return _534;
},isMissing:function(_537){
for(var i=0;i<_534.length;i++){
if(_537==_534[i]){
return true;
}
}
return false;
},hasInvalid:function(){
return (_535.length>0);
},getInvalid:function(){
return _535;
},isInvalid:function(_539){
for(var i=0;i<_535.length;i++){
if(_539==_535[i]){
return true;
}
}
return false;
}};
var _53b=function(name,_53d){
return (typeof _53d[name]=="undefined");
};
if(_533.trim instanceof Array){
for(var i=0;i<_533.trim.length;i++){
var elem=form[_533.trim[i]];
if(_53b("type",elem)||elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/(^\s*|\s*$)/g,"");
}
}
if(_533.uppercase instanceof Array){
for(var i=0;i<_533.uppercase.length;i++){
var elem=form[_533.uppercase[i]];
if(_53b("type",elem)||elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.toUpperCase();
}
}
if(_533.lowercase instanceof Array){
for(var i=0;i<_533.lowercase.length;i++){
var elem=form[_533.lowercase[i]];
if(_53b("type",elem)||elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.toLowerCase();
}
}
if(_533.ucfirst instanceof Array){
for(var i=0;i<_533.ucfirst.length;i++){
var elem=form[_533.ucfirst[i]];
if(_53b("type",elem)||elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/\b\w+\b/g,function(word){
return word.substring(0,1).toUpperCase()+word.substring(1).toLowerCase();
});
}
}
if(_533.digit instanceof Array){
for(var i=0;i<_533.digit.length;i++){
var elem=form[_533.digit[i]];
if(_53b("type",elem)||elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
elem.value=elem.value.replace(/\D/g,"");
}
}
if(_533.required instanceof Array){
for(var i=0;i<_533.required.length;i++){
if(!dojo.isString(_533.required[i])){
continue;
}
var elem=form[_533.required[i]];
if(!_53b("type",elem)&&(elem.type=="text"||elem.type=="textarea"||elem.type=="password"||elem.type=="file")&&/^\s*$/.test(elem.value)){
_534[_534.length]=elem.name;
}else{
if(!_53b("type",elem)&&(elem.type=="select-one"||elem.type=="select-multiple")&&(elem.selectedIndex==-1||/^\s*$/.test(elem.options[elem.selectedIndex].value))){
_534[_534.length]=elem.name;
}else{
if(elem instanceof Array){
var _541=false;
for(var j=0;j<elem.length;j++){
if(elem[j].checked){
_541=true;
}
}
if(!_541){
_534[_534.length]=elem[0].name;
}
}
}
}
}
}
if(_533.required instanceof Array){
for(var i=0;i<_533.required.length;i++){
if(!dojo.isObject(_533.required[i])){
continue;
}
var elem,_543;
for(var name in _533.required[i]){
elem=form[name];
_543=_533.required[i][name];
}
if(elem instanceof Array){
var _541=0;
for(var j=0;j<elem.length;j++){
if(elem[j].checked){
_541++;
}
}
if(_541<_543){
_534[_534.length]=elem[0].name;
}
}else{
if(!_53b("type",elem)&&elem.type=="select-multiple"){
var _545=0;
for(var j=0;j<elem.options.length;j++){
if(elem.options[j].selected&&!/^\s*$/.test(elem.options[j].value)){
_545++;
}
}
if(_545<_543){
_534[_534.length]=elem.name;
}
}
}
}
}
if(dojo.isObject(_533.dependencies)){
for(name in _533.dependencies){
var elem=form[name];
if(_53b("type",elem)){
continue;
}
if(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password"){
continue;
}
if(/\S+/.test(elem.value)){
continue;
}
if(_536.isMissing(elem.name)){
continue;
}
var _546=form[_533.dependencies[name]];
if(_546.type!="text"&&_546.type!="textarea"&&_546.type!="password"){
continue;
}
if(/^\s*$/.test(_546.value)){
continue;
}
_534[_534.length]=elem.name;
}
}
if(dojo.isObject(_533.constraints)){
for(name in _533.constraints){
var elem=form[name];
if(!elem){
continue;
}
if(!_53b("tagName",elem)&&(elem.tagName.toLowerCase().indexOf("input")>=0||elem.tagName.toLowerCase().indexOf("textarea")>=0)&&/^\s*$/.test(elem.value)){
continue;
}
var _547=true;
if(dojo.isFunction(_533.constraints[name])){
_547=_533.constraints[name](elem.value);
}else{
if(dojo.isArray(_533.constraints[name])){
if(dojo.isArray(_533.constraints[name][0])){
for(var i=0;i<_533.constraints[name].length;i++){
_547=dojox.validate.evaluateConstraint(_533,_533.constraints[name][i],name,elem);
if(!_547){
break;
}
}
}else{
_547=dojox.validate.evaluateConstraint(_533,_533.constraints[name],name,elem);
}
}
}
if(!_547){
_535[_535.length]=elem.name;
}
}
}
if(dojo.isObject(_533.confirm)){
for(name in _533.confirm){
var elem=form[name];
var _546=form[_533.confirm[name]];
if(_53b("type",elem)||_53b("type",_546)||(elem.type!="text"&&elem.type!="textarea"&&elem.type!="password")||(_546.type!=elem.type)||(_546.value==elem.value)||(_536.isInvalid(elem.name))||(/^\s*$/.test(_546.value))){
continue;
}
_535[_535.length]=elem.name;
}
}
return _536;
};
dojox.validate.evaluateConstraint=function(_548,_549,_54a,elem){
var _54c=_549[0];
var _54d=_549.slice(1);
_54d.unshift(elem.value);
if(typeof _54c!="undefined"){
return _54c.apply(null,_54d);
}
return false;
};
}
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);
var _550=args.method||"chain";
if(!args.duration){
args.duration=500;
}
if(_550=="chain"){
args.duration=Math.floor(args.duration/2);
}
var top,_552,left,_554,_555,_556=null;
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);
_555=parseInt(cs.width);
_556=parseInt(cs.height);
_554=left-Math.floor((args.width-_555)/2);
_552=top-Math.floor((args.height-_556)/2);
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 _55c=dojo.animateProperty(dojo.mixin({properties:{height:{start:_556,end:args.height||0,unit:"px"},top:{start:top,end:_552}}},args));
var _55d=dojo.animateProperty(dojo.mixin({properties:{width:{start:_555,end:args.width||0,unit:"px"},left:{start:left,end:_554}}},args));
var anim=dojo.fx[(args.method=="combine"?"combine":"chain")]([_55c,_55d]);
dojo.connect(anim,"beforeBegin",anim,init);
return anim;
};
dojox.fx.slideBy=function(args){
var node=args.node=dojo.byId(args.node);
var top=null;
var left=null;
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 _568=dojo.animateProperty(dojo.mixin({properties:{top:top+(args.top||0),left:left+(args.left||0)}},args));
dojo.connect(_568,"beforeBegin",_568,init);
return _568;
};
dojox.fx.crossFade=function(args){
if(dojo.isArray(args.nodes)){
var _56a=args.nodes[0]=dojo.byId(args.nodes[0]);
var op1=dojo.style(_56a,"opacity");
var _56c=args.nodes[1]=dojo.byId(args.nodes[1]);
var op2=dojo.style(_56c,"opacity");
var _56e=dojo.fx.combine([dojo[(op1==0?"fadeIn":"fadeOut")](dojo.mixin({node:_56a},args)),dojo[(op1==0?"fadeOut":"fadeIn")](dojo.mixin({node:_56c},args))]);
return _56e;
}else{
return false;
}
};
dojox.fx.highlight=function(args){
var node=args.node=dojo.byId(args.node);
args.duration=args.duration||400;
var _571=args.color||"#ffff99";
var _572=dojo.style(node,"backgroundColor");
var _573=(_572=="transparent"||_572=="rgba(0, 0, 0, 0)")?_572:false;
var anim=dojo.animateProperty(dojo.mixin({properties:{backgroundColor:{start:_571,end:_572}}},args));
if(_573){
dojo.connect(anim,"onEnd",anim,function(){
node.style.backgroundColor=_573;
});
}
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");
var _579=args[dir];
var _57a={};
_57a[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:_579,unit:"px"};
var anim=dojo.animateProperty(dojo.mixin({properties:_57a},args));
return anim;
};
}
if(!dojo._hasResource["dojox.image.Lightbox"]){
dojo._hasResource["dojox.image.Lightbox"]=true;
dojo.provide("dojox.image.Lightbox");
dojo.experimental("dojox.image.Lightbox");
dojo.declare("dojox.image.Lightbox",dijit._Widget,{group:"",title:"",href:"",duration:500,_allowPassthru:false,_attachedDialog:null,startup:function(){
this.inherited(arguments);
var tmp=dijit.byId("dojoxLightboxDialog");
if(tmp){
this._attachedDialog=tmp;
}else{
this._attachedDialog=new dojox.image.LightboxDialog({id:"dojoxLightboxDialog"});
this._attachedDialog.startup();
}
if(!this.store){
this._addSelf();
this.connect(this.domNode,"onclick","_handleClick");
}
},_addSelf:function(){
this._attachedDialog.addImage({href:this.href,title:this.title},this.group||null);
},_handleClick:function(e){
if(!this._allowPassthru){
e.preventDefault();
}else{
return;
}
this.show();
},show:function(){
this._attachedDialog.show(this);
},disable:function(){
this._allowPassthru=true;
},enable:function(){
this._allowPassthru=false;
}});
dojo.declare("dojox.image.LightboxDialog",dijit.Dialog,{title:"",inGroup:null,imgUrl:dijit._Widget.prototype._blankGif,errorMessage:"Image not found.",adjust:true,_groups:{XnoGroupX:[]},errorImg:dojo.moduleUrl("dojox.image","resources/images/warning.png"),_fixSizes:false,templateString:"<div class=\"dojoxLightbox\" dojoAttachPoint=\"containerNode\">\n\t<div style=\"position:relative\">\n\t\t<div dojoAttachPoint=\"imageContainer\" class=\"dojoxLightboxContainer\">\n\t\t\t<img dojoAttachPoint=\"imgNode\" src=\"${imgUrl}\" class=\"dojoxLightboxImage\" alt=\"${title}\">\n\t\t\t<div class=\"dojoxLightboxFooter\" dojoAttachPoint=\"titleNode\">\n\t\t\t\t<div class=\"dijitInline LightboxClose\" dojoAttachPoint=\"closeNode\"></div>\n\t\t\t\t<div class=\"dijitInline LightboxNext\" dojoAttachPoint=\"nextNode\"></div>\t\n\t\t\t\t<div class=\"dijitInline LightboxPrev\" dojoAttachPoint=\"prevNode\"></div>\n\t\t\t\t<div class=\"dojoxLightboxText\"><span dojoAttachPoint=\"textNode\">${title}</span><span dojoAttachPoint=\"groupCount\" class=\"dojoxLightboxGroupText\"></span></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n",startup:function(){
this.inherited(arguments);
this._animConnects=[];
this._clone=dojo.clone(this.imgNode);
this.connect(this.nextNode,"onclick","_nextImage");
this.connect(this.prevNode,"onclick","_prevImage");
this.connect(this.closeNode,"onclick","hide");
this._makeAnims();
this._vp=dijit.getViewport();
return this;
},show:function(_57f){
var _t=this;
if(!_t.open){
_t.inherited(arguments);
this._modalconnects.push(dojo.connect(dojo.global,"onscroll",this,"_position"),dojo.connect(dojo.global,"onresize",this,"_position"),dojo.connect(dojo.body(),"onkeypress",this,"_handleKey"));
}
if(this._wasStyled){
dojo.destroy(_t.imgNode);
_t.imgNode=dojo.clone(_t._clone);
dojo.place(_t.imgNode,_t.imageContainer,"first");
_t._makeAnims();
_t._wasStyled=false;
}
dojo.style(_t.imgNode,"opacity","0");
dojo.style(_t.titleNode,"opacity","0");
_t._imageReady=false;
_t.imgNode.src=_57f.href;
if((_57f.group&&_57f!=="XnoGroupX")||_t.inGroup){
if(!_t.inGroup){
_t.inGroup=_t._groups[(_57f.group)];
dojo.forEach(_t.inGroup,function(g,i){
if(g.href==_57f.href){
_t._positionIndex=i;
}
},_t);
}
if(!_t._positionIndex){
_t._positionIndex=0;
_t.imgNode.src=_t.inGroup[_t._positionIndex].href;
}
_t.groupCount.innerHTML=" ("+(_t._positionIndex+1)+" of "+_t.inGroup.length+")";
_t.prevNode.style.visibility="visible";
_t.nextNode.style.visibility="visible";
}else{
_t.groupCount.innerHTML="";
_t.prevNode.style.visibility="hidden";
_t.nextNode.style.visibility="hidden";
}
_t.textNode.innerHTML=_57f.title;
if(!_t._imageReady||_t.imgNode.complete===true){
_t._imgConnect=dojo.connect(_t.imgNode,"onload",_t,function(){
_t._imageReady=true;
_t.resizeTo({w:_t.imgNode.width,h:_t.imgNode.height,duration:_t.duration});
dojo.disconnect(_t._imgConnect);
if(_t._imgError){
dojo.disconnect(_t._imgError);
}
});
_t._imgError=dojo.connect(_t.imgNode,"onerror",_t,function(){
dojo.disconnect(_t._imgError);
_t.imgNode.src=_t.errorImg;
_t._imageReady=true;
_t.textNode.innerHTML=_t.errorMessage;
});
if(dojo.isIE){
_t.imgNode.src=_t.imgNode.src;
}
}else{
_t.resizeTo({w:_t.imgNode.width,h:_t.imgNode.height,duration:1});
}
},_nextImage:function(){
if(!this.inGroup){
return;
}
if(this._positionIndex+1<this.inGroup.length){
this._positionIndex++;
}else{
this._positionIndex=0;
}
this._loadImage();
},_prevImage:function(){
if(this.inGroup){
if(this._positionIndex==0){
this._positionIndex=this.inGroup.length-1;
}else{
this._positionIndex--;
}
this._loadImage();
}
},_loadImage:function(){
this._loadingAnim.play(1);
},_prepNodes:function(){
this._imageReady=false;
this.show({href:this.inGroup[this._positionIndex].href,title:this.inGroup[this._positionIndex].title});
},resizeTo:function(size){
var _584=((dojo.boxModel=="border-box"))?22:0;
if(this.adjust&&(size.h+_584+80>this._vp.h||size.w+_584+50>this._vp.w)){
size=this._scaleToFit(size);
}
var _585=dojox.fx.sizeTo({node:this.containerNode,duration:size.duration||this.duration,width:size.w+_584,height:size.h+30+_584});
this.connect(_585,"onEnd","_showImage");
_585.play(15);
},_showImage:function(){
this._showImageAnim.play(1);
},_showNav:function(){
this._showNavAnim.play(1);
},hide:function(){
dojo.fadeOut({node:this.titleNode,duration:200,onEnd:dojo.hitch(this,function(){
this.imgNode.src=this._blankGif;
})}).play(5);
this.inherited(arguments);
this.inGroup=null;
this._positionIndex=null;
},addImage:function(_586,_587){
var g=_587;
if(!_586.href){
return;
}
if(g){
if(!this._groups[g]){
this._groups[g]=[];
}
this._groups[g].push(_586);
}else{
this._groups["XnoGroupX"].push(_586);
}
},_handleKey:function(e){
if(!this.open){
return;
}
var dk=dojo.keys;
var key=(e.charCode==dk.SPACE?dk.SPACE:e.keyCode);
switch(key){
case dk.ESCAPE:
this.hide();
break;
case dk.DOWN_ARROW:
case dk.RIGHT_ARROW:
case 78:
this._nextImage();
break;
case dk.UP_ARROW:
case dk.LEFT_ARROW:
case 80:
this._prevImage();
break;
}
},_scaleToFit:function(size){
var ns={};
if(this._vp.h>this._vp.w){
ns.w=this._vp.w-70;
ns.h=ns.w*(size.h/size.w);
}else{
ns.h=this._vp.h-80;
ns.w=ns.h*(size.w/size.h);
}
this._wasStyled=true;
var s=this.imgNode.style;
s.height=ns.h+"px";
s.width=ns.w+"px";
ns.duration=size.duration;
return ns;
},_position:function(e){
this.inherited(arguments);
this._vp=dijit.getViewport();
},_makeAnims:function(){
dojo.forEach(this._animConnects,dojo.disconnect);
this._animConnects=[];
this._showImageAnim=dojo.fadeIn({node:this.imgNode,duration:this.duration});
this._animConnects.push(dojo.connect(this._showImageAnim,"onEnd",this,"_showNav"));
this._loadingAnim=dojo.fx.combine([dojo.fadeOut({node:this.imgNode,duration:175}),dojo.fadeOut({node:this.titleNode,duration:175})]);
this._animConnects.push(dojo.connect(this._loadingAnim,"onEnd",this,"_prepNodes"));
this._showNavAnim=dojo.fadeIn({node:this.titleNode,duration:225});
}});
}
if(!dojo._hasResource["mindelusions.parallax"]){
dojo._hasResource["mindelusions.parallax"]=true;
dojo.provide("mindelusions.parallax");
dojo.declare("mindelusions.parallax",null,{_w:null,layers:[],duration:120,constructor:function(args){
this._w=document.width;
dojo.mixin(this,args);
dojo.forEach(this.layers,function(_591,idx){
_591.posX=0;
_591.speed=_591.speed||1;
_591.node=dojo.byId(_591.id);
});
},start:function(){
this.update();
},stop:function(){
dojo.forEach(this.layers,function(_593,idx){
_593.anim.stop();
});
},update:function(){
var pos;
var self=this;
dojo.forEach(this.layers,function(_597,idx){
_597.posX+=Math.ceil(self._w*_597.speed);
_597.dur=Math.floor(self.duration*1000);
try{
_597.anim=dojo.anim(_597.node,{backgroundPosition:_597.posX},_597.dur);
}
catch(e){
console.log("Err: ",e);
}
});
}});
}
if(!dojo._hasResource["mindelusions.util.png"]){
dojo._hasResource["mindelusions.util.png"]=true;
dojo.provide("mindelusions.util.png");
(function(){
if(dojo.isIE&&dojo.isIE<7&&document.styleSheets&&document.styleSheets[0]&&document.styleSheets[0].addRule){
var _599=dojo.moduleUrl("mindelusions.util.png","iepngfix.htc");
document.styleSheets[0].addRule("*","behavior: url(\""+_599.path+"\")");
}
})();
}
if(!dojo._hasResource["mindelusions.util.rollover"]){
dojo._hasResource["mindelusions.util.rollover"]=true;
dojo.provide("mindelusions.util.rollover");
(function(){
var m=mindelusions.util;
m.swap=function(_59b,_59c,_59d){
dojo.query(_59b).onmouseenter(function(e){
dojo.toggleClass(_59c,"hide",false);
dojo.toggleClass(_59d,"hide",true);
});
dojo.query(_59b).onmouseleave(function(){
dojo.toggleClass(_59d,"hide",false);
dojo.toggleClass(_59c,"hide",true);
});
};
})();
}
dojo.i18n._preloadLocalizations("mindelusions.nls.mind",["ROOT","en","en-us","xx"]);
