/* Copyright (c) 2007-2010, Christian Kaczmarek and 4andbeer.com. */
dojo._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojo.date.stamp"],["provide","dojo.parser"],["provide","dojo.html"],["provide","dojo.NodeList-html"],["provide","dojo.string"],["provide","dojo.fx.Toggler"],["provide","dojo.fx"],["provide","dijit._base.manager"],["provide","dojo.Stateful"],["provide","dijit._WidgetBase"],["provide","dojo.window"],["provide","dijit._base.focus"],["provide","dojo.AdapterRegistry"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dojo.uacss"],["provide","dijit._base.sniff"],["provide","dijit._base.typematic"],["provide","dijit._base.wai"],["provide","dijit._base"],["provide","dijit._Widget"],["provide","dojo.cache"],["provide","dijit._Templated"],["provide","dijit._Container"],["provide","dijit._Contained"],["provide","dijit.layout._LayoutWidget"],["provide","dijit.layout._ContentPaneResizeMixin"],["provide","dijit.layout.ContentPane"],["provide","dijit._CssStateMixin"],["provide","dijit.TitlePane"],["provide","dojo.io.script"],["provide","dojo.date"],["provide","dojo.cldr.supplemental"],["provide","dojo.regexp"],["provide","dojo.date.locale"],["provide","fab.misc.twitter"],["provide","fab.widget.Weather"],["provide","fab.www.default"],["i18n._preloadLocalizations","fab.nls.fab-www-default",["ROOT","en","en-us","xx"]]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojo.date.stamp"]){_4._hasResource["dojo.date.stamp"]=true;_4.provide("dojo.date.stamp");_4.getObject("date.stamp",true,_4);_4.date.stamp.fromISOString=function(_7,_8){if(!_4.date.stamp._isoRegExp){_4.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _9=_4.date.stamp._isoRegExp.exec(_7),_a=null;if(_9){_9.shift();if(_9[1]){_9[1]--;}if(_9[6]){_9[6]*=1000;}if(_8){_8=new Date(_8);_4.forEach(_4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_b){return _8["get"+_b]();}),function(_c,_d){_9[_d]=_9[_d]||_c;});}_a=new Date(_9[0]||1970,_9[1]||0,_9[2]||1,_9[3]||0,_9[4]||0,_9[5]||0,_9[6]||0);if(_9[0]<100){_a.setFullYear(_9[0]||1970);}var _e=0,_f=_9[7]&&_9[7].charAt(0);if(_f!="Z"){_e=((_9[8]||0)*60)+(Number(_9[9])||0);if(_f!="-"){_e*=-1;}}if(_f){_e-=_a.getTimezoneOffset();}if(_e){_a.setTime(_a.getTime()+_e*60000);}}return _a;};_4.date.stamp.toISOString=function(_10,_11){var _12=function(n){return (n<10)?"0"+n:n;};_11=_11||{};var _13=[],_14=_11.zulu?"getUTC":"get",_15="";if(_11.selector!="time"){var _16=_10[_14+"FullYear"]();_15=["0000".substr((_16+"").length)+_16,_12(_10[_14+"Month"]()+1),_12(_10[_14+"Date"]())].join("-");}_13.push(_15);if(_11.selector!="date"){var _17=[_12(_10[_14+"Hours"]()),_12(_10[_14+"Minutes"]()),_12(_10[_14+"Seconds"]())].join(":");var _18=_10[_14+"Milliseconds"]();if(_11.milliseconds){_17+="."+(_18<100?"0":"")+_12(_18);}if(_11.zulu){_17+="Z";}else{if(_11.selector!="time"){var _19=_10.getTimezoneOffset();var _1a=Math.abs(_19);_17+=(_19>0?"-":"+")+_12(Math.floor(_1a/60))+":"+_12(_1a%60);}}_13.push(_17);}return _13.join("T");};}if(!_4._hasResource["dojo.parser"]){_4._hasResource["dojo.parser"]=true;_4.provide("dojo.parser");new Date("X");_4.parser=new function(){var d=_4;function _1b(_1c){if(d.isString(_1c)){return "string";}if(typeof _1c=="number"){return "number";}if(typeof _1c=="boolean"){return "boolean";}if(d.isFunction(_1c)){return "function";}if(d.isArray(_1c)){return "array";}if(_1c instanceof Date){return "date";}if(_1c instanceof d._Url){return "url";}return "object";};function _1d(_1e,_1f){switch(_1f){case "string":return _1e;case "number":return _1e.length?Number(_1e):NaN;case "boolean":return typeof _1e=="boolean"?_1e:!(_1e.toLowerCase()=="false");case "function":if(d.isFunction(_1e)){_1e=_1e.toString();_1e=d.trim(_1e.substring(_1e.indexOf("{")+1,_1e.length-1));}try{if(_1e===""||_1e.search(/[^\w\.]+/i)!=-1){return new Function(_1e);}else{return d.getObject(_1e,false)||new Function(_1e);}}catch(e){return new Function();}case "array":return _1e?_1e.split(/\s*,\s*/):[];case "date":switch(_1e){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1e);}case "url":return d.baseUrl+_1e;default:return d.fromJson(_1e);}};var _20={},_21={};d.connect(d,"extend",function(){_21={};});function _22(cls,_23){for(var _24 in cls){if(_24.charAt(0)=="_"){continue;}if(_24 in _20){continue;}_23[_24]=_1b(cls[_24]);}return _23;};function _25(_26,_27){var c=_21[_26];if(!c){var cls=d.getObject(_26),_28=null;if(!cls){return null;}if(!_27){_28=_22(cls.prototype,{});}c={cls:cls,params:_28};}else{if(!_27&&!c.params){c.params=_22(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_29,_2a){var _2b="";var _2c="";var _2d=(_29.getAttribute(_2a+"args")||_29.getAttribute("args"));if(_2d){d.forEach(_2d.split(/\s*,\s*/),function(_2e,idx){_2b+="var "+_2e+" = arguments["+idx+"]; ";});}var _2f=_29.getAttribute("with");if(_2f&&_2f.length){d.forEach(_2f.split(/\s*,\s*/),function(_30){_2b+="with("+_30+"){";_2c+="}";});}return new Function(_2b+_29.innerHTML+_2c);};this.instantiate=function(_31,_32,_33){var _34=[],_32=_32||{};_33=_33||{};var _35=(_33.scope||d._scopeName)+"Type",_36="data-"+(_33.scope||d._scopeName)+"-";d.forEach(_31,function(obj){if(!obj){return;}var _37,_38,_39,_3a,_3b,_3c;if(obj.node){_37=obj.node;_38=obj.type;_3c=obj.fastpath;_39=obj.clsInfo||(_38&&_25(_38,_3c));_3a=_39&&_39.cls;_3b=obj.scripts;}else{_37=obj;_38=_35 in _32?_32[_35]:_37.getAttribute(_35);_39=_38&&_25(_38);_3a=_39&&_39.cls;_3b=(_3a&&(_3a._noScript||_3a.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_37));}if(!_39){throw new Error("Could not load class '"+_38);}var _3d={};if(_33.defaults){d._mixin(_3d,_33.defaults);}if(obj.inherited){d._mixin(_3d,obj.inherited);}if(_3c){var _3e=_37.getAttribute(_36+"props");if(_3e&&_3e.length){try{_3e=d.fromJson.call(_33.propsThis,"{"+_3e+"}");d._mixin(_3d,_3e);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_3e+"'");}}var _3f=_37.getAttribute(_36+"attach-point");if(_3f){_3d.dojoAttachPoint=_3f;}var _40=_37.getAttribute(_36+"attach-event");if(_40){_3d.dojoAttachEvent=_40;}_4.mixin(_3d,_32);}else{var _41=_37.attributes;for(var _42 in _39.params){var _43=_42 in _32?{value:_32[_42],specified:true}:_41.getNamedItem(_42);if(!_43||(!_43.specified&&(!_4.isIE||_42.toLowerCase()!="value"))){continue;}var _44=_43.value;switch(_42){case "class":_44="className" in _32?_32.className:_37.className;break;case "style":_44="style" in _32?_32.style:(_37.style&&_37.style.cssText);}var _45=_39.params[_42];if(typeof _44=="string"){_3d[_42]=_1d(_44,_45);}else{_3d[_42]=_44;}}}var _46=[],_47=[];d.forEach(_3b,function(_48){_37.removeChild(_48);var _49=(_48.getAttribute(_36+"event")||_48.getAttribute("event")),_38=_48.getAttribute("type"),nf=d.parser._functionFromScript(_48,_36);if(_49){if(_38=="dojo/connect"){_46.push({event:_49,func:nf});}else{_3d[_49]=nf;}}else{_47.push(nf);}});var _4a=_3a.markupFactory||_3a.prototype&&_3a.prototype.markupFactory;var _4b=_4a?_4a(_3d,_37,_3a):new _3a(_3d,_37);_34.push(_4b);var _4c=(_37.getAttribute(_36+"id")||_37.getAttribute("jsId"));if(_4c){d.setObject(_4c,_4b);}d.forEach(_46,function(_4d){d.connect(_4b,_4d.event,null,_4d.func);});d.forEach(_47,function(_4e){_4e.call(_4b);});});if(!_32._started){d.forEach(_34,function(_4f){if(!_33.noStart&&_4f&&_4.isFunction(_4f.startup)&&!_4f._started&&(!_4f.getParent||!_4f.getParent())){_4f.startup();}});}return _34;};this.parse=function(_50,_51){var _52;if(!_51&&_50&&_50.rootNode){_51=_50;_52=_51.rootNode;}else{_52=_50;}_51=_51||{};var _53=(_51.scope||d._scopeName)+"Type",_54="data-"+(_51.scope||d._scopeName)+"-";function _55(_56,_57){var _58=_4.clone(_56.inherited);_4.forEach(["dir","lang"],function(_59){var val=_56.node.getAttribute(_59);if(val){_58[_59]=val;}});var _5a=_56.clsInfo&&!_56.clsInfo.cls.prototype._noScript?_56.scripts:null;var _5b=(!_56.clsInfo||!_56.clsInfo.cls.prototype.stopParser)||(_51&&_51.template);for(var _5c=_56.node.firstChild;_5c;_5c=_5c.nextSibling){if(_5c.nodeType==1){var _5d,_5e=_5b&&_5c.getAttribute(_54+"type");if(_5e){_5d=_5e;}else{_5d=_5b&&_5c.getAttribute(_53);}var _5f=_5e==_5d;if(_5d){var _60={"type":_5d,fastpath:_5f,clsInfo:_25(_5d,_5f),node:_5c,scripts:[],inherited:_58};_57.push(_60);_55(_60,_57);}else{if(_5a&&_5c.nodeName.toLowerCase()=="script"){_5d=_5c.getAttribute("type");if(_5d&&/^dojo\/\w/i.test(_5d)){_5a.push(_5c);}}else{if(_5b){_55({node:_5c,inherited:_58},_57);}}}}}};var _61=[];_55({node:_52?_4.byId(_52):_4.body(),inherited:(_51&&_51.inherited)||{dir:_4._isBodyLtr()?"ltr":"rtl"}},_61);var _62=_51&&_51.template?{template:true}:null;return this.instantiate(_61,_62,_51);};}();(function(){var _63=function(){if(_4.config.parseOnLoad){_4.parser.parse();}};if(_4.getObject("dijit.wai.onload")===_4._loaders[0]){_4._loaders.splice(1,0,_63);}else{_4._loaders.unshift(_63);}})();}if(!_4._hasResource["dojo.html"]){_4._hasResource["dojo.html"]=true;_4.provide("dojo.html");_4.getObject("html",true,_4);(function(){var _64=0,d=_4;_4.html._secureForInnerHtml=function(_65){return _65.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};_4.html._emptyNode=_4.empty;_4.html._setNodeContent=function(_66,_67){d.empty(_66);if(_67){if(typeof _67=="string"){_67=d._toDom(_67,_66.ownerDocument);}if(!_67.nodeType&&d.isArrayLike(_67)){for(var _68=_67.length,i=0;i<_67.length;i=_68==_67.length?i+1:0){d.place(_67[i],_66,"last");}}else{d.place(_67,_66,"last");}}return _66;};_4.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:_4._scopeName,startup:true,constructor:function(_69,_6a){_4.mixin(this,_69||{});_6a=this.node=_4.byId(this.node||_6a);if(!this.id){this.id=["Setter",(_6a)?_6a.id||_6a.tagName:"",_64++].join("_");}},set:function(_6b,_6c){if(undefined!==_6b){this.content=_6b;}if(_6c){this._mixin(_6c);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _6d=this.node;if(!_6d){throw new Error(this.declaredClass+": setContent given no node");}try{_6d=_4.html._setNodeContent(_6d,this.content);}catch(e){var _6e=this.onContentError(e);try{_6d.innerHTML=_6e;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_6d;},empty:function(){if(this.parseResults&&this.parseResults.length){_4.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}_4.html._emptyNode(this.node);},onBegin:function(){var _6f=this.content;if(_4.isString(_6f)){if(this.cleanContent){_6f=_4.html._secureForInnerHtml(_6f);}if(this.extractContent){var _70=_6f.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_70){_6f=_70[1];}}}this.empty();this.content=_6f;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(_71){var _72={},key;for(key in _71){if(key in _72){continue;}this[key]=_71[key];}},_parse:function(){var _73=this.node;try{this.parseResults=_4.parser.parse({rootNode:_73,noStart:!this.startup,inherited:{dir:this.dir,lang:this.lang},scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_74,err,_75){var _76=this["on"+_74+"Error"].call(this,err);if(_75){console.error(_75,err);}else{if(_76){_4.html._setNodeContent(this.node,_76,true);}}}});_4.html.set=function(_77,_78,_79){if(undefined==_78){console.warn("dojo.html.set: no cont argument provided, using empty string");_78="";}if(!_79){return _4.html._setNodeContent(_77,_78,true);}else{var op=new _4.html._ContentSetter(_4.mixin(_79,{content:_78,node:_77}));return op.set();}};})();}if(!_4._hasResource["dojo.NodeList-html"]){_4._hasResource["dojo.NodeList-html"]=true;_4.provide("dojo.NodeList-html");_4.extend(_4.NodeList,{html:function(_7a,_7b){var dhs=new _4.html._ContentSetter(_7b||{});this.forEach(function(elm){dhs.node=elm;dhs.set(_7a);dhs.tearDown();});return this;}});}if(!_4._hasResource["dojo.string"]){_4._hasResource["dojo.string"]=true;_4.provide("dojo.string");_4.getObject("string",true,_4);_4.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("");};_4.string.pad=function(_7c,_7d,ch,end){if(!ch){ch="0";}var out=String(_7c),pad=_4.string.rep(ch,Math.ceil((_7d-out.length)/ch.length));return end?out+pad:pad+out;};_4.string.substitute=function(_7e,map,_7f,_80){_80=_80||_4.global;_7f=_7f?_4.hitch(_80,_7f):function(v){return v;};return _7e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_81,key,_82){var _83=_4.getObject(key,false,map);if(_82){_83=_4.getObject(_82,false,_80).call(_80,_83,key);}return _7f(_83,key).toString();});};_4.string.trim=String.prototype.trim?_4.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(!_4._hasResource["dojo.fx.Toggler"]){_4._hasResource["dojo.fx.Toggler"]=true;_4.provide("dojo.fx.Toggler");_4.declare("dojo.fx.Toggler",null,{node:null,showFunc:_4.fadeIn,hideFunc:_4.fadeOut,showDuration:200,hideDuration:200,constructor:function(_84){var _85=this;_4.mixin(_85,_84);_85.node=_84.node;_85._showArgs=_4.mixin({},_84);_85._showArgs.node=_85.node;_85._showArgs.duration=_85.showDuration;_85.showAnim=_85.showFunc(_85._showArgs);_85._hideArgs=_4.mixin({},_84);_85._hideArgs.node=_85.node;_85._hideArgs.duration=_85.hideDuration;_85.hideAnim=_85.hideFunc(_85._hideArgs);_4.connect(_85.showAnim,"beforeBegin",_4.hitch(_85.hideAnim,"stop",true));_4.connect(_85.hideAnim,"beforeBegin",_4.hitch(_85.showAnim,"stop",true));},show:function(_86){return this.showAnim.play(_86||0);},hide:function(_87){return this.hideAnim.play(_87||0);}});}if(!_4._hasResource["dojo.fx"]){_4._hasResource["dojo.fx"]=true;_4.provide("dojo.fx");(function(){var d=_4,_88={_fire:function(evt,_89){if(this[evt]){this[evt].apply(this,_89||[]);}return this;}};var _8a=function(_8b){this._index=-1;this._animations=_8b||[];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(_8a,{_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(_8c,_8d){if(!this._current){this._current=this._animations[this._index=0];}if(!_8d&&this._current.status()=="playing"){return this;}var _8e=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_8f=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_90=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_8e);d.disconnect(_8f);d.disconnect(_90);});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(_91,_92){this.pause();var _93=this.duration*_91;this._current=null;d.some(this._animations,function(a){if(a.duration<=_93){this._current=a;return true;}_93-=a.duration;return false;});if(this._current){this._current.gotoPercent(_93/this._current.duration,_92);}return this;},stop:function(_94){if(this._current){if(_94){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(_8a,_88);_4.fx.chain=function(_95){return new _8a(_95);};var _96=function(_97){this._animations=_97||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_97,function(a){var _98=a.duration;if(a.delay){_98+=a.delay;}if(this.duration<_98){this.duration=_98;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var _99=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){_99._connects.push(d.connect(_99._pseudoAnimation,evt,function(){_99._fire(evt,arguments);}));});};d.extend(_96,{_doAction:function(_9a,_9b){d.forEach(this._animations,function(a){a[_9a].apply(a,_9b);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_9c,_9d){var t=this._pseudoAnimation;t[_9c].apply(t,_9d);},play:function(_9e,_9f){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(_a0,_a1){var ms=this.duration*_a0;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_a1);});this._call("gotoPercent",arguments);return this;},stop:function(_a2){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,_4.disconnect);}});d.extend(_96,_88);_4.fx.combine=function(_a3){return new _96(_a3);};_4.fx.wipeIn=function(_a4){var _a5=_a4.node=d.byId(_a4.node),s=_a5.style,o;var _a6=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 _a7=d.style(_a5,"height");return Math.max(_a7,1);}},end:function(){return _a5.scrollHeight;}}}},_a4));d.connect(_a6,"onEnd",function(){s.height="auto";s.overflow=o;});return _a6;};_4.fx.wipeOut=function(_a8){var _a9=_a8.node=d.byId(_a8.node),s=_a9.style,o;var _aa=d.animateProperty(d.mixin({properties:{height:{end:1}}},_a8));d.connect(_aa,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(_aa,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return _aa;};_4.fx.slideTo=function(_ab){var _ac=_ab.node=d.byId(_ab.node),top=null,_ad=null;var _ae=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_ad=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;_ad=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_ad+"px";}};})(_ac);_ae();var _af=d.animateProperty(d.mixin({properties:{top:_ab.top||0,left:_ab.left||0}},_ab));d.connect(_af,"beforeBegin",_af,_ae);return _af;};})();}if(!_4._hasResource["dijit._base.manager"]){_4._hasResource["dijit._base.manager"]=true;_4.provide("dijit._base.manager");_4.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_b0){if(this._hash[_b0.id]){throw new Error("Tried to register widget with id=="+_b0.id+" but that id is already registered");}this._hash[_b0.id]=_b0;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_b1,_b2){_b2=_b2||_4.global;var i=0,id;for(id in this._hash){_b1.call(_b2,this._hash[id],i++,this._hash);}return this;},filter:function(_b3,_b4){_b4=_b4||_4.global;var res=new _5.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_b3.call(_b4,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _5.WidgetSet(),id,_b5;for(id in this._hash){_b5=this._hash[id];if(_b5.declaredClass==cls){res.add(_b5);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_b6,_b7){return _4.map(this.toArray(),_b6,_b7);},every:function(_b8,_b9){_b9=_b9||_4.global;var x=0,i;for(i in this._hash){if(!_b8.call(_b9,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_ba,_bb){_bb=_bb||_4.global;var x=0,i;for(i in this._hash){if(_ba.call(_bb,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){_5.registry=new _5.WidgetSet();var _bc=_5.registry._hash,_bd=_4.attr,_be=_4.hasAttr,_bf=_4.style;_5.byId=function(id){return typeof id=="string"?_bc[id]:id;};var _c0={};_5.getUniqueId=function(_c1){var id;do{id=_c1+"_"+(_c1 in _c0?++_c0[_c1]:_c0[_c1]=0);}while(_bc[id]);return _5._scopeName=="dijit"?id:_5._scopeName+"_"+id;};_5.findWidgets=function(_c2){var _c3=[];function _c4(_c5){for(var _c6=_c5.firstChild;_c6;_c6=_c6.nextSibling){if(_c6.nodeType==1){var _c7=_c6.getAttribute("widgetId");if(_c7){var _c8=_bc[_c7];if(_c8){_c3.push(_c8);}}else{_c4(_c6);}}}};_c4(_c2);return _c3;};_5._destroyAll=function(){_5._curFocus=null;_5._prevFocus=null;_5._activeStack=[];_4.forEach(_5.findWidgets(_4.body()),function(_c9){if(!_c9._destroyed){if(_c9.destroyRecursive){_c9.destroyRecursive();}else{if(_c9.destroy){_c9.destroy();}}}});};if(_4.isIE){_4.addOnWindowUnload(function(){_5._destroyAll();});}_5.byNode=function(_ca){return _bc[_ca.getAttribute("widgetId")];};_5.getEnclosingWidget=function(_cb){while(_cb){var id=_cb.getAttribute&&_cb.getAttribute("widgetId");if(id){return _bc[id];}_cb=_cb.parentNode;}return null;};var _cc=(_5._isElementShown=function(_cd){var s=_bf(_cd);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_bd(_cd,"type")!="hidden");});_5.hasDefaultTabStop=function(_ce){switch(_ce.nodeName.toLowerCase()){case "a":return _be(_ce,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _cf;try{var _d0=_ce.contentDocument;if("designMode" in _d0&&_d0.designMode=="on"){return true;}_cf=_d0.body;}catch(e1){try{_cf=_ce.contentWindow.document.body;}catch(e2){return false;}}return _cf.contentEditable=="true"||(_cf.firstChild&&_cf.firstChild.contentEditable=="true");default:return _ce.contentEditable=="true";}};var _d1=(_5.isTabNavigable=function(_d2){if(_bd(_d2,"disabled")){return false;}else{if(_be(_d2,"tabIndex")){return _bd(_d2,"tabIndex")>=0;}else{return _5.hasDefaultTabStop(_d2);}}});_5._getTabNavigable=function(_d3){var _d4,_d5,_d6,_d7,_d8,_d9,_da={};function _db(_dc){return _dc&&_dc.tagName.toLowerCase()=="input"&&_dc.type&&_dc.type.toLowerCase()=="radio"&&_dc.name&&_dc.name.toLowerCase();};var _dd=function(_de){_4.query("> *",_de).forEach(function(_df){if((_4.isIE&&_df.scopeName!=="HTML")||!_cc(_df)){return;}if(_d1(_df)){var _e0=_bd(_df,"tabIndex");if(!_be(_df,"tabIndex")||_e0==0){if(!_d4){_d4=_df;}_d5=_df;}else{if(_e0>0){if(!_d6||_e0<_d7){_d7=_e0;_d6=_df;}if(!_d8||_e0>=_d9){_d9=_e0;_d8=_df;}}}var rn=_db(_df);if(_4.attr(_df,"checked")&&rn){_da[rn]=_df;}}if(_df.nodeName.toUpperCase()!="SELECT"){_dd(_df);}});};if(_cc(_d3)){_dd(_d3);}function rs(_e1){return _da[_db(_e1)]||_e1;};return {first:rs(_d4),last:rs(_d5),lowest:rs(_d6),highest:rs(_d8)};};_5.getFirstInTabbingOrder=function(_e2){var _e3=_5._getTabNavigable(_4.byId(_e2));return _e3.lowest?_e3.lowest:_e3.first;};_5.getLastInTabbingOrder=function(_e4){var _e5=_5._getTabNavigable(_4.byId(_e4));return _e5.last?_e5.last:_e5.highest;};_5.defaultDuration=_4.config["defaultDuration"]||200;})();}if(!_4._hasResource["dojo.Stateful"]){_4._hasResource["dojo.Stateful"]=true;_4.provide("dojo.Stateful");_4.declare("dojo.Stateful",null,{postscript:function(_e6){if(_e6){_4.mixin(this,_e6);}},get:function(_e7){return this[_e7];},set:function(_e8,_e9){if(typeof _e8==="object"){for(var x in _e8){this.set(x,_e8[x]);}return this;}var _ea=this[_e8];this[_e8]=_e9;if(this._watchCallbacks){this._watchCallbacks(_e8,_ea,_e9);}return this;},watch:function(_eb,_ec){var _ed=this._watchCallbacks;if(!_ed){var _ee=this;_ed=this._watchCallbacks=function(_ef,_f0,_f1,_f2){var _f3=function(_f4){if(_f4){_f4=_f4.slice();for(var i=0,l=_f4.length;i<l;i++){try{_f4[i].call(_ee,_ef,_f0,_f1);}catch(e){console.error(e);}}}};_f3(_ed["_"+_ef]);if(!_f2){_f3(_ed["*"]);}};}if(!_ec&&typeof _eb==="function"){_ec=_eb;_eb="*";}else{_eb="_"+_eb;}var _f5=_ed[_eb];if(typeof _f5!=="object"){_f5=_ed[_eb]=[];}_f5.push(_ec);return {unwatch:function(){_f5.splice(_4.indexOf(_f5,_ec),1);}};}});}if(!_4._hasResource["dijit._WidgetBase"]){_4._hasResource["dijit._WidgetBase"]=true;_4.provide("dijit._WidgetBase");(function(){_4.declare("dijit._WidgetBase",_4.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_f6,_f7){this.create(_f6,_f7);},create:function(_f8,_f9){this.srcNodeRef=_4.byId(_f9);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_f8){this.params=_f8;_4._mixin(this,_f8);}this.postMixInProperties();if(!this.id){this.id=_5.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_5.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _fa=this.srcNodeRef;if(_fa&&_fa.parentNode&&this.domNode!==_fa){_fa.parentNode.replaceChild(this.domNode,_fa);}}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 _fb=function(_fc,_fd){if((_fd.params&&_fc in _fd.params)||_fd[_fc]){_fd.set(_fc,_fd[_fc]);}};for(var _fe in this.attributeMap){_fb(_fe,this);}_4.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_fb(a,this);}},this);},_getSetterAttributes:function(){var _ff=this.constructor;if(!_ff._setterAttrs){var r=(_ff._setterAttrs=[]),_100,_101=_ff.prototype;for(var _102 in _101){if(_4.isFunction(_101[_102])&&(_100=_102.match(/^_set([a-zA-Z]*)Attr$/))&&_100[1]){r.push(_100[1].charAt(0).toLowerCase()+_100[1].substr(1));}}}return _ff._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_4.create("div");}if(this.baseClass){var _103=this.baseClass.split(" ");if(!this.isLeftToRight()){_103=_103.concat(_4.map(_103,function(name){return name+"Rtl";}));}_4.addClass(this.domNode,_103);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_104){this._beingDestroyed=true;this.destroyDescendants(_104);this.destroy(_104);},destroy:function(_105){this._beingDestroyed=true;this.uninitialize();var d=_4,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_106){dfe(_106,d.disconnect);});dfe(this._subscribes,function(_107){dun(_107);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_105);_5.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_108){if(this.bgIframe){this.bgIframe.destroy(_108);delete this.bgIframe;}if(this.domNode){if(_108){_4.removeAttr(this.domNode,"widgetId");}else{_4.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_108){_4.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_109){_4.forEach(this.getChildren(),function(_10a){if(_10a.destroyRecursive){_10a.destroyRecursive(_109);}});},uninitialize:function(){return false;},_setClassAttr:function(_10b){var _10c=this[this.attributeMap["class"]||"domNode"];_4.replaceClass(_10c,_10b,this["class"]);this._set("class",_10b);},_setStyleAttr:function(_10d){var _10e=this[this.attributeMap.style||"domNode"];if(_4.isObject(_10d)){_4.style(_10e,_10d);}else{if(_10e.style.cssText){_10e.style.cssText+="; "+_10d;}else{_10e.style.cssText=_10d;}}this._set("style",_10d);},_attrToDom:function(attr,_10f){var _110=this.attributeMap[attr];_4.forEach(_4.isArray(_110)?_110:[_110],function(_111){var _112=this[_111.node||_111||"domNode"];var type=_111.type||"attribute";switch(type){case "attribute":if(_4.isFunction(_10f)){_10f=_4.hitch(this,_10f);}var _113=_111.attribute?_111.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_4.attr(_112,_113,_10f);break;case "innerText":_112.innerHTML="";_112.appendChild(_4.doc.createTextNode(_10f));break;case "innerHTML":_112.innerHTML=_10f;break;case "class":_4.replaceClass(_112,_10f,this[attr]);break;}},this);},get:function(name){var _114=this._getAttrNames(name);return this[_114.g]?this[_114.g]():this[name];},set:function(name,_115){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _116=this._getAttrNames(name);if(this[_116.s]){var _117=this[_116.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_115);}this._set(name,_115);}return _117||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_118){var _119=this[name];this[name]=_118;if(this._watchCallbacks&&this._created&&_118!==_119){this._watchCallbacks(name,_119,_118);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?_4.query("[widgetId]",this.containerNode).map(_5.byNode):[];},getChildren:function(){return this.containerNode?_5.findWidgets(this.containerNode):[];},connect:function(obj,_11a,_11b){var _11c=[_4._connect(obj,_11a,this,_11b)];this._connects.push(_11c);return _11c;},disconnect:function(_11d){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_11d){_4.forEach(_11d,_4.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_11e,_11f){var _120=_4.subscribe(_11e,this,_11f);this._subscribes.push(_120);return _120;},unsubscribe:function(_121){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_121){_4.unsubscribe(_121);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4._isBodyLtr();},placeAt:function(_122,_123){if(_122.declaredClass&&_122.addChild){_122.addChild(this,_123);}else{_4.place(this.domNode,_122,_123);}return this;}});})();}if(!_4._hasResource["dojo.window"]){_4._hasResource["dojo.window"]=true;_4.provide("dojo.window");_4.getObject("window",true,_4);_4.window.getBox=function(){var _124=(_4.doc.compatMode=="BackCompat")?_4.body():_4.doc.documentElement;var _125=_4._docScroll();return {w:_124.clientWidth,h:_124.clientHeight,l:_125.x,t:_125.y};};_4.window.get=function(doc){if(_4.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_4.window.scrollIntoView=function(node,pos){try{node=_4.byId(node);var doc=node.ownerDocument||_4.doc,body=doc.body||_4.body(),html=doc.documentElement||body.parentNode,isIE=_4.isIE,isWK=_4.isWebKit;if((!(_4.isMoz||isIE||isWK||_4.isOpera)||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _126=doc.compatMode=="BackCompat",_127=_126?body:html,_128=isWK?body:_127,_129=_127.clientWidth,_12a=_127.clientHeight,rtl=!_4._isBodyLtr(),_12b=pos||_4.position(node),el=node.parentNode,_12c=function(el){return ((isIE<=6||(isIE&&_126))?false:(_4.style(el,"position").toLowerCase()=="fixed"));};if(_12c(node)){return;}while(el){if(el==body){el=_128;}var _12d=_4.position(el),_12e=_12c(el);if(el==_128){_12d.w=_129;_12d.h=_12a;if(_128==html&&isIE&&rtl){_12d.x+=_128.offsetWidth-_12d.w;}if(_12d.x<0||!isIE){_12d.x=0;}if(_12d.y<0||!isIE){_12d.y=0;}}else{var pb=_4._getPadBorderExtents(el);_12d.w-=pb.w;_12d.h-=pb.h;_12d.x+=pb.l;_12d.y+=pb.t;}if(el!=_128){var _12f=el.clientWidth,_130=_12d.w-_12f;if(_12f>0&&_130>0){_12d.w=_12f;if(isIE&&rtl){_12d.x+=_130;}}_12f=el.clientHeight;_130=_12d.h-_12f;if(_12f>0&&_130>0){_12d.h=_12f;}}if(_12e){if(_12d.y<0){_12d.h+=_12d.y;_12d.y=0;}if(_12d.x<0){_12d.w+=_12d.x;_12d.x=0;}if(_12d.y+_12d.h>_12a){_12d.h=_12a-_12d.y;}if(_12d.x+_12d.w>_129){_12d.w=_129-_12d.x;}}var l=_12b.x-_12d.x,t=_12b.y-Math.max(_12d.y,0),r=l+_12b.w-_12d.w,bot=t+_12b.h-_12d.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_12b.x+=el.scrollLeft;el.scrollLeft+=(isIE>=8&&!_126&&rtl)?-s:s;_12b.x-=el.scrollLeft;}if(bot*t>0){_12b.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_12b.y-=el.scrollTop;}el=(el!=_128)&&!_12e&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!_4._hasResource["dijit._base.focus"]){_4._hasResource["dijit._base.focus"]=true;_4.provide("dijit._base.focus");_4.mixin(_5,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _5.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=_4.doc.selection,cf=_5._curFocus;if(_4.global.getSelection){sel=_4.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_131){var _132=_4.doc,mark=_131.mark;if(mark){if(_4.global.getSelection){var sel=_4.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_132.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(_4.isArray(mark)){rg=_132.body.createControlRange();_4.forEach(mark,function(n){rg.addElement(n);});}else{rg=_132.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_133){var node=!_5._curFocus||(menu&&_4.isDescendant(_5._curFocus,menu.domNode))?_5._prevFocus:_5._curFocus;return {node:node,bookmark:(node==_5._curFocus)&&_4.withGlobal(_133||_4.global,_5.getBookmark),openedForWindow:_133};},focus:function(_134){if(!_134){return;}var node="node" in _134?_134.node:_134,_135=_134.bookmark,_136=_134.openedForWindow,_137=_135?_135.isCollapsed:false;if(node){var _138=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_138&&_138.focus){try{_138.focus();}catch(e){}}_5._onFocusNode(node);}if(_135&&_4.withGlobal(_136||_4.global,_5.isCollapsed)&&!_137){if(_136){_136.focus();}try{_4.withGlobal(_136||_4.global,_5.moveToBookmark,null,[_135]);}catch(e2){}}},_activeStack:[],registerIframe:function(_139){return _5.registerWin(_139.contentWindow,_139);},unregisterIframe:function(_13a){_5.unregisterWin(_13a);},registerWin:function(_13b,_13c){var _13d=function(evt){_5._justMouseDowned=true;setTimeout(function(){_5._justMouseDowned=false;},0);if(_4.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_5._onTouchNode(_13c||evt.target||evt.srcElement,"mouse");};var doc=_4.isIE?_13b.document.documentElement:_13b.document;if(doc){if(_4.isIE){_13b.document.body.attachEvent("onmousedown",_13d);var _13e=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&_5.isTabNavigable(evt.srcElement)){_5._onFocusNode(_13c||evt.srcElement);}else{_5._onTouchNode(_13c||evt.srcElement);}};doc.attachEvent("onactivate",_13e);var _13f=function(evt){_5._onBlurNode(_13c||evt.srcElement);};doc.attachEvent("ondeactivate",_13f);return function(){_13b.document.detachEvent("onmousedown",_13d);doc.detachEvent("onactivate",_13e);doc.detachEvent("ondeactivate",_13f);doc=null;};}else{doc.body.addEventListener("mousedown",_13d,true);var _140=function(evt){_5._onFocusNode(_13c||evt.target);};doc.addEventListener("focus",_140,true);var _141=function(evt){_5._onBlurNode(_13c||evt.target);};doc.addEventListener("blur",_141,true);return function(){doc.body.removeEventListener("mousedown",_13d,true);doc.removeEventListener("focus",_140,true);doc.removeEventListener("blur",_141,true);doc=null;};}}},unregisterWin:function(_142){_142&&_142();},_onBlurNode:function(node){_5._prevFocus=_5._curFocus;_5._curFocus=null;if(_5._justMouseDowned){return;}if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);}_5._clearActiveWidgetsTimer=setTimeout(function(){delete _5._clearActiveWidgetsTimer;_5._setStack([]);_5._prevFocus=null;},100);},_onTouchNode:function(node,by){if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);delete _5._clearActiveWidgetsTimer;}var _143=[];try{while(node){var _144=_4.attr(node,"dijitPopupParent");if(_144){node=_5.byId(_144).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===_4.body()){break;}node=_4.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_145=id&&_5.byId(id);if(_145&&!(by=="mouse"&&_145.get("disabled"))){_143.unshift(id);}node=node.parentNode;}}}}catch(e){}_5._setStack(_143,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}_5._onTouchNode(node);if(node==_5._curFocus){return;}if(_5._curFocus){_5._prevFocus=_5._curFocus;}_5._curFocus=node;_4.publish("focusNode",[node]);},_setStack:function(_146,by){var _147=_5._activeStack;_5._activeStack=_146;for(var _148=0;_148<Math.min(_147.length,_146.length);_148++){if(_147[_148]!=_146[_148]){break;}}var _149;for(var i=_147.length-1;i>=_148;i--){_149=_5.byId(_147[i]);if(_149){_149._focused=false;_149.set("focused",false);_149._hasBeenBlurred=true;if(_149._onBlur){_149._onBlur(by);}_4.publish("widgetBlur",[_149,by]);}}for(i=_148;i<_146.length;i++){_149=_5.byId(_146[i]);if(_149){_149._focused=true;_149.set("focused",true);if(_149._onFocus){_149._onFocus(by);}_4.publish("widgetFocus",[_149,by]);}}}});_4.addOnLoad(function(){var _14a=_5.registerWin(window);if(_4.isIE){_4.addOnWindowUnload(function(){_5.unregisterWin(_14a);_14a=null;});}});}if(!_4._hasResource["dojo.AdapterRegistry"]){_4._hasResource["dojo.AdapterRegistry"]=true;_4.provide("dojo.AdapterRegistry");_4.AdapterRegistry=function(_14b){this.pairs=[];this.returnWrappers=_14b||false;};_4.extend(_4.AdapterRegistry,{register:function(name,_14c,wrap,_14d,_14e){this.pairs[((_14e)?"unshift":"push")]([name,_14c,wrap,_14d]);},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(!_4._hasResource["dijit._base.place"]){_4._hasResource["dijit._base.place"]=true;_4.provide("dijit._base.place");_5.getViewport=function(){return _4.window.getBox();};_5.placeOnScreen=function(node,pos,_14f,_150){var _151=_4.map(_14f,function(_152){var c={corner:_152,pos:{x:pos.x,y:pos.y}};if(_150){c.pos.x+=_152.charAt(1)=="L"?_150.x:-_150.x;c.pos.y+=_152.charAt(0)=="T"?_150.y:-_150.y;}return c;});return _5._place(node,_151);};_5._place=function(node,_153,_154,_155){var view=_4.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){_4.body().appendChild(node);}var best=null;_4.some(_153,function(_156){var _157=_156.corner;var pos=_156.pos;var _158=0;var _159={w:_157.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_157.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_154){var res=_154(node,_156.aroundCorner,_157,_159,_155);_158=typeof res=="undefined"?0:res;}var _15a=node.style;var _15b=_15a.display;var _15c=_15a.visibility;_15a.visibility="hidden";_15a.display="";var mb=_4.marginBox(node);_15a.display=_15b;_15a.visibility=_15c;var _15d=Math.max(view.l,_157.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_15e=Math.max(view.t,_157.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_157.charAt(1)=="L"?(_15d+mb.w):pos.x),endY=Math.min(view.t+view.h,_157.charAt(0)=="T"?(_15e+mb.h):pos.y),_15f=endX-_15d,_160=endY-_15e;_158+=(mb.w-_15f)+(mb.h-_160);if(best==null||_158<best.overflow){best={corner:_157,aroundCorner:_156.aroundCorner,x:_15d,y:_15e,w:_15f,h:_160,overflow:_158,spaceAvailable:_159};}return !_158;});if(best.overflow&&_154){_154(node,best.aroundCorner,best.corner,best.spaceAvailable,_155);}var l=_4._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";return best;};_5.placeOnScreenAroundNode=function(node,_161,_162,_163){_161=_4.byId(_161);var _164=_4.position(_161,true);return _5._placeOnScreenAroundRect(node,_164.x,_164.y,_164.w,_164.h,_162,_163);};_5.placeOnScreenAroundRectangle=function(node,_165,_166,_167){return _5._placeOnScreenAroundRect(node,_165.x,_165.y,_165.width,_165.height,_166,_167);};_5._placeOnScreenAroundRect=function(node,x,y,_168,_169,_16a,_16b){var _16c=[];for(var _16d in _16a){_16c.push({aroundCorner:_16d,corner:_16a[_16d],pos:{x:x+(_16d.charAt(1)=="L"?0:_168),y:y+(_16d.charAt(0)=="T"?0:_169)}});}return _5._place(node,_16c,_16b,{w:_168,h:_169});};_5.placementRegistry=new _4.AdapterRegistry();_5.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},_5.placeOnScreenAroundNode);_5.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},_5.placeOnScreenAroundRectangle);_5.placeOnScreenAroundElement=function(node,_16e,_16f,_170){return _5.placementRegistry.match.apply(_5.placementRegistry,arguments);};_5.getPopupAroundAlignment=function(_171,_172){var _173={};_4.forEach(_171,function(pos){switch(pos){case "after":_173[_172?"BR":"BL"]=_172?"BL":"BR";break;case "before":_173[_172?"BL":"BR"]=_172?"BR":"BL";break;case "below-alt":_172=!_172;case "below":_173[_172?"BL":"BR"]=_172?"TL":"TR";_173[_172?"BR":"BL"]=_172?"TR":"TL";break;case "above-alt":_172=!_172;case "above":default:_173[_172?"TL":"TR"]=_172?"BL":"BR";_173[_172?"TR":"TL"]=_172?"BR":"BL";break;}});return _173;};}if(!_4._hasResource["dijit._base.window"]){_4._hasResource["dijit._base.window"]=true;_4.provide("dijit._base.window");_5.getDocumentWindow=function(doc){return _4.window.get(doc);};}if(!_4._hasResource["dijit._base.popup"]){_4._hasResource["dijit._base.popup"]=true;_4.provide("dijit._base.popup");_5.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_174){var _175=_174.declaredClass?_174._popupWrapper:(_4.hasClass(_174.parentNode,"dijitPopup")&&_174.parentNode),node=_174.domNode||_174;if(!_175){_175=_4.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},_4.body());_175.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_174.declaredClass){_174._popupWrapper=_175;_4.connect(_174,"destroy",function(){_4.destroy(_175);delete _174._popupWrapper;});}}return _175;},moveOffScreen:function(_176){var _177=this._createWrapper(_176);_4.style(_177,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_178){var _179=this._createWrapper(_178);_4.style(_179,"display","none");},getTopPopup:function(){var _17a=this._stack;for(var pi=_17a.length-1;pi>0&&_17a[pi].parent===_17a[pi-1].widget;pi--){}return _17a[pi];},open:function(args){var _17b=this._stack,_17c=args.popup,_17d=args.orient||((args.parent?args.parent.isLeftToRight():_4._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_17e=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_17b.length&&(!args.parent||!_4.isDescendant(args.parent.domNode,_17b[_17b.length-1].widget.domNode))){_5.popup.close(_17b[_17b.length-1].widget);}var _17f=this._createWrapper(_17c);_4.attr(_17f,{id:id,style:{zIndex:this._beginZIndex+_17b.length},"class":"dijitPopup "+(_17c.baseClass||_17c["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(_4.isIE||_4.isMoz){if(!_17c.bgIframe){_17c.bgIframe=new _5.BackgroundIframe(_17f);}}var best=_17e?_5.placeOnScreenAroundElement(_17f,_17e,_17d,_17c.orient?_4.hitch(_17c,"orient"):null):_5.placeOnScreen(_17f,args,_17d=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_17f.style.display="";_17f.style.visibility="visible";_17c.domNode.style.visibility="visible";var _180=[];_180.push(_4.connect(_17f,"onkeypress",this,function(evt){if(evt.charOrCode==_4.keys.ESCAPE&&args.onCancel){_4.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===_4.keys.TAB){_4.stopEvent(evt);var _181=this.getTopPopup();if(_181&&_181.onCancel){_181.onCancel();}}}}));if(_17c.onCancel){_180.push(_4.connect(_17c,"onCancel",args.onCancel));}_180.push(_4.connect(_17c,_17c.onExecute?"onExecute":"onChange",this,function(){var _182=this.getTopPopup();if(_182&&_182.onExecute){_182.onExecute();}}));_17b.push({widget:_17c,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_180});if(_17c.onOpen){_17c.onOpen(best);}return best;},close:function(_183){var _184=this._stack;while((_183&&_4.some(_184,function(elem){return elem.widget==_183;}))||(!_183&&_184.length)){var top=_184.pop(),_185=top.widget,_186=top.onClose;if(_185.onClose){_185.onClose();}_4.forEach(top.handlers,_4.disconnect);if(_185&&_185.domNode){this.hide(_185);}if(_186){_186();}}}};_5._frames=new function(){var _187=[];this.pop=function(){var _188;if(_187.length){_188=_187.pop();_188.style.display="";}else{if(_4.isIE<9){var burl=_4.config["dojoBlankHtmlUrl"]||(_4.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\");'>";_188=_4.doc.createElement(html);}else{_188=_4.create("iframe");_188.src="javascript:\"\"";_188.className="dijitBackgroundIframe";_4.style(_188,"opacity",0.1);}_188.tabIndex=-1;_5.setWaiRole(_188,"presentation");}return _188;};this.push=function(_189){_189.style.display="none";_187.push(_189);};}();_5.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(_4.isIE||_4.isMoz){var _18a=(this.iframe=_5._frames.pop());node.appendChild(_18a);if(_4.isIE<7||_4.isQuirks){this.resize(node);this._conn=_4.connect(node,"onresize",this,function(){this.resize(node);});}else{_4.style(_18a,{width:"100%",height:"100%"});}}};_4.extend(_5.BackgroundIframe,{resize:function(node){if(this.iframe){_4.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){_4.disconnect(this._conn);this._conn=null;}if(this.iframe){_5._frames.push(this.iframe);delete this.iframe;}}});}if(!_4._hasResource["dijit._base.scroll"]){_4._hasResource["dijit._base.scroll"]=true;_4.provide("dijit._base.scroll");_5.scrollIntoView=function(node,pos){_4.window.scrollIntoView(node,pos);};}if(!_4._hasResource["dojo.uacss"]){_4._hasResource["dojo.uacss"]=true;_4.provide("dojo.uacss");(function(){var d=_4,html=d.doc.documentElement,ie=d.isIE,_18b=d.isOpera,maj=Math.floor,ff=d.isFF,_18c=d.boxModel.replace(/-/,""),_18d={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_18b,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_18d["dj_"+_18c]=true;var _18e="";for(var clz in _18d){if(_18d[clz]){_18e+=clz+" ";}}html.className=d.trim(html.className+" "+_18e);_4._loaders.unshift(function(){if(!_4._isBodyLtr()){var _18f="dj_rtl dijitRtl "+_18e.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_18f);}});})();}if(!_4._hasResource["dijit._base.sniff"]){_4._hasResource["dijit._base.sniff"]=true;_4.provide("dijit._base.sniff");}if(!_4._hasResource["dijit._base.typematic"]){_4._hasResource["dijit._base.typematic"]=true;_4.provide("dijit._base.typematic");_5.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(_4.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_190,node,_191,obj,_192,_193,_194){if(obj!=this._obj){this.stop();this._initialDelay=_193||500;this._subsequentDelay=_192||0.9;this._minDelay=_194||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=_4.hitch(_190,_191);this._fireEventAndReload();this._evt=_4.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_195,_196,_197,_198,_199,_19a){if(_195.keyCode){_195.charOrCode=_195.keyCode;_4.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_195.charCode){_195.charOrCode=String.fromCharCode(_195.charCode);_4.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [_4.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_195.charOrCode&&(_195.ctrlKey===undefined||_195.ctrlKey==evt.ctrlKey)&&(_195.altKey===undefined||_195.altKey==evt.altKey)&&(_195.metaKey===undefined||_195.metaKey==(evt.metaKey||false))&&(_195.shiftKey===undefined||_195.shiftKey==evt.shiftKey)){_4.stopEvent(evt);_5.typematic.trigger(evt,_196,node,_197,_195,_198,_199,_19a);}else{if(_5.typematic._obj==_195){_5.typematic.stop();}}}),_4.connect(node,"onkeyup",this,function(evt){if(_5.typematic._obj==_195){_5.typematic.stop();}})];},addMouseListener:function(node,_19b,_19c,_19d,_19e,_19f){var dc=_4.connect;return [dc(node,"mousedown",this,function(evt){_4.stopEvent(evt);_5.typematic.trigger(evt,_19b,node,_19c,node,_19d,_19e,_19f);}),dc(node,"mouseup",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mouseout",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){_4.stopEvent(evt);if(_4.isIE){_5.typematic.trigger(evt,_19b,node,_19c,node,_19d,_19e,_19f);setTimeout(_4.hitch(this,_5.typematic.stop),50);}})];},addListener:function(_1a0,_1a1,_1a2,_1a3,_1a4,_1a5,_1a6,_1a7){return this.addKeyListener(_1a1,_1a2,_1a3,_1a4,_1a5,_1a6,_1a7).concat(this.addMouseListener(_1a0,_1a3,_1a4,_1a5,_1a6,_1a7));}};}if(!_4._hasResource["dijit._base.wai"]){_4._hasResource["dijit._base.wai"]=true;_4.provide("dijit._base.wai");_5.wai={onload:function(){var div=_4.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif"))+"\");"}},_4.body());var cs=_4.getComputedStyle(div);if(cs){var _1a8=cs.backgroundImage;var _1a9=(cs.borderTopColor==cs.borderRightColor)||(_1a8!=null&&(_1a8=="none"||_1a8=="url(invalid-url:)"));_4[_1a9?"addClass":"removeClass"](_4.body(),"dijit_a11y");if(_4.isIE){div.outerHTML="";}else{_4.body().removeChild(div);}}}};if(_4.isIE||_4.isMoz){_4._loaders.unshift(_5.wai.onload);}_4.mixin(_5,{hasWaiRole:function(elem,role){var _1aa=this.getWaiRole(elem);return role?(_1aa.indexOf(role)>-1):(_1aa.length>0);},getWaiRole:function(elem){return _4.trim((_4.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_4.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _1ab=_4.attr(elem,"role");if(!_1ab){return;}if(role){var t=_4.trim((" "+_1ab+" ").replace(" "+role+" "," "));_4.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1ac){return elem.hasAttribute?elem.hasAttribute("aria-"+_1ac):!!elem.getAttribute("aria-"+_1ac);},getWaiState:function(elem,_1ad){return elem.getAttribute("aria-"+_1ad)||"";},setWaiState:function(elem,_1ae,_1af){elem.setAttribute("aria-"+_1ae,_1af);},removeWaiState:function(elem,_1b0){elem.removeAttribute("aria-"+_1b0);}});}if(!_4._hasResource["dijit._base"]){_4._hasResource["dijit._base"]=true;_4.provide("dijit._base");}if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.connect(_4,"_connect",function(_1b1,_1b2){if(_1b1&&_4.isFunction(_1b1._onConnect)){_1b1._onConnect(_1b2);}});_5._connectOnUseEventHandler=function(_1b3){};_5._lastKeyDownNode=null;if(_4.isIE){(function(){var _1b4=function(evt){_5._lastKeyDownNode=evt.srcElement;};_4.doc.attachEvent("onkeydown",_1b4);_4.addOnWindowUnload(function(){_4.doc.detachEvent("onkeydown",_1b4);});})();}else{_4.doc.addEventListener("keydown",function(evt){_5._lastKeyDownNode=evt.target;},true);}(function(){_4.declare("dijit._Widget",_5._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:_5._connectOnUseEventHandler,onDblClick:_5._connectOnUseEventHandler,onKeyDown:_5._connectOnUseEventHandler,onKeyPress:_5._connectOnUseEventHandler,onKeyUp:_5._connectOnUseEventHandler,onMouseDown:_5._connectOnUseEventHandler,onMouseMove:_5._connectOnUseEventHandler,onMouseOut:_5._connectOnUseEventHandler,onMouseOver:_5._connectOnUseEventHandler,onMouseLeave:_5._connectOnUseEventHandler,onMouseEnter:_5._connectOnUseEventHandler,onMouseUp:_5._connectOnUseEventHandler,create:function(_1b5,_1b6){this._deferredConnects=_4.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==_5._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_1b7){if(_1b7 in this._deferredConnects){var _1b8=this[this._deferredConnects[_1b7]||"domNode"];this.connect(_1b8,_1b7.toLowerCase(),_1b7);delete this._deferredConnects[_1b7];}},focused:false,isFocusable:function(){return this.focus&&(_4.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_1b9){_4.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_1b9);},attr:function(name,_1ba){if(_4.config.isDebug){var _1bb=arguments.callee._ach||(arguments.callee._ach={}),_1bc=(arguments.callee.caller||"unknown caller").toString();if(!_1bb[_1bc]){_4.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_1bc,"","2.0");_1bb[_1bc]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_1bd,_1be){var d=_4,dc=d._connect,_1bf=this.inherited(arguments,[obj,_1bd=="ondijitclick"?"onclick":_1bd,_1be]);if(_1bd=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_1be);_1bf.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==_5._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){_5._lastKeyDownNode=null;return m(e);}}));}}return _1bf;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!_4._hasResource["dojo.cache"]){_4._hasResource["dojo.cache"]=true;_4.provide("dojo.cache");var _1c0={};_4.cache=function(_1c1,url,_1c2){if(typeof _1c1=="string"){var _1c3=_4.moduleUrl(_1c1,url);}else{_1c3=_1c1;_1c2=url;}var key=_1c3.toString();var val=_1c2;if(_1c2!=undefined&&!_4.isString(_1c2)){val=("value" in _1c2?_1c2.value:undefined);}var _1c4=_1c2&&_1c2.sanitize?true:false;if(typeof val=="string"){val=_1c0[key]=_1c4?_4.cache._sanitize(val):val;}else{if(val===null){delete _1c0[key];}else{if(!(key in _1c0)){val=_4._getText(key);_1c0[key]=_1c4?_4.cache._sanitize(val):val;}val=_1c0[key];}}return val;};_4.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1c5=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1c5){val=_1c5[1];}}else{val="";}return val;};}if(!_4._hasResource["dijit._Templated"]){_4._hasResource["dijit._Templated"]=true;_4.provide("dijit._Templated");_4.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _1c6=this.declaredClass,_1c7=this;return _4.string.substitute(tmpl,this,function(_1c8,key){if(key.charAt(0)=="!"){_1c8=_4.getObject(key.substr(1),false,_1c7);}if(typeof _1c8=="undefined"){throw new Error(_1c6+" template:"+key);}if(_1c8==null){return "";}return key.charAt(0)=="!"?_1c8:_1c8.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1c9=_5._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_4.isString(_1c9)){node=_4._toDom(this._stringRepl(_1c9));if(node.nodeType!=1){throw new Error("Invalid template: "+_1c9);}}else{node=_1c9.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=_4.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=_5.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1ca){var dest=this.containerNode;if(_1ca&&dest){while(_1ca.hasChildNodes()){dest.appendChild(_1ca.firstChild);}}},_attachTemplateNodes:function(_1cb,_1cc){_1cc=_1cc||function(n,p){return n.getAttribute(p);};var _1cd=_4.isArray(_1cb)?_1cb:(_1cb.all||_1cb.getElementsByTagName("*"));var x=_4.isArray(_1cb)?0:-1;for(;x<_1cd.length;x++){var _1ce=(x==-1)?_1cb:_1cd[x];if(this.widgetsInTemplate&&(_1cc(_1ce,"dojoType")||_1cc(_1ce,"data-dojo-type"))){continue;}var _1cf=_1cc(_1ce,"dojoAttachPoint")||_1cc(_1ce,"data-dojo-attach-point");if(_1cf){var _1d0,_1d1=_1cf.split(/\s*,\s*/);while((_1d0=_1d1.shift())){if(_4.isArray(this[_1d0])){this[_1d0].push(_1ce);}else{this[_1d0]=_1ce;}this._attachPoints.push(_1d0);}}var _1d2=_1cc(_1ce,"dojoAttachEvent")||_1cc(_1ce,"data-dojo-attach-event");if(_1d2){var _1d3,_1d4=_1d2.split(/\s*,\s*/);var trim=_4.trim;while((_1d3=_1d4.shift())){if(_1d3){var _1d5=null;if(_1d3.indexOf(":")!=-1){var _1d6=_1d3.split(":");_1d3=trim(_1d6[0]);_1d5=trim(_1d6[1]);}else{_1d3=trim(_1d3);}if(!_1d5){_1d5=_1d3;}this._attachEvents.push(this.connect(_1ce,_1d3,_1d5));}}}var role=_1cc(_1ce,"waiRole");if(role){_5.setWaiRole(_1ce,role);}var _1d7=_1cc(_1ce,"waiState");if(_1d7){_4.forEach(_1d7.split(/\s*,\s*/),function(_1d8){if(_1d8.indexOf("-")!=-1){var pair=_1d8.split("-");_5.setWaiState(_1ce,pair[0],pair[1]);}});}}},startup:function(){_4.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){_4.forEach(this._attachPoints,function(_1d9){delete this[_1d9];},this);this._attachPoints=[];_4.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});_5._Templated._templateCache={};_5._Templated.getCachedTemplate=function(_1da,_1db,_1dc){var _1dd=_5._Templated._templateCache;var key=_1db||_1da;var _1de=_1dd[key];if(_1de){try{if(!_1de.ownerDocument||_1de.ownerDocument==_4.doc){return _1de;}}catch(e){}_4.destroy(_1de);}if(!_1db){_1db=_4.cache(_1da,{sanitize:true});}_1db=_4.string.trim(_1db);if(_1dc||_1db.match(/\$\{([^\}]+)\}/g)){return (_1dd[key]=_1db);}else{var node=_4._toDom(_1db);if(node.nodeType!=1){throw new Error("Invalid template: "+_1db);}return (_1dd[key]=node);}};if(_4.isIE){_4.addOnWindowUnload(function(){var _1df=_5._Templated._templateCache;for(var key in _1df){var _1e0=_1df[key];if(typeof _1e0=="object"){_4.destroy(_1e0);}delete _1df[key];}});}_4.extend(_5._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_4._hasResource["dijit._Container"]){_4._hasResource["dijit._Container"]=true;_4.provide("dijit._Container");_4.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_1e1,_1e2){var _1e3=this.containerNode;if(_1e2&&typeof _1e2=="number"){var _1e4=this.getChildren();if(_1e4&&_1e4.length>=_1e2){_1e3=_1e4[_1e2-1].domNode;_1e2="after";}}_4.place(_1e1.domNode,_1e3,_1e2);if(this._started&&!_1e1._started){_1e1.startup();}},removeChild:function(_1e5){if(typeof _1e5=="number"){_1e5=this.getChildren()[_1e5];}if(_1e5){var node=_1e5.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_1e6){_4.forEach(this.getChildren(),function(_1e7){_1e7.destroyRecursive(_1e6);});},_getSiblingOfChild:function(_1e8,dir){var node=_1e8.domNode,_1e9=(dir>0?"nextSibling":"previousSibling");do{node=node[_1e9];}while(node&&(node.nodeType!=1||!_5.byNode(node)));return node&&_5.byNode(node);},getIndexOfChild:function(_1ea){return _4.indexOf(this.getChildren(),_1ea);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_1eb){_1eb.startup();});this.inherited(arguments);}});}if(!_4._hasResource["dijit._Contained"]){_4._hasResource["dijit._Contained"]=true;_4.provide("dijit._Contained");_4.declare("dijit._Contained",null,{getParent:function(){var _1ec=_5.getEnclosingWidget(this.domNode.parentNode);return _1ec&&_1ec.isContainer?_1ec:null;},_getSibling:function(_1ed){var node=this.domNode;do{node=node[_1ed+"Sibling"];}while(node&&node.nodeType!=1);return node&&_5.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!_4._hasResource["dijit.layout._LayoutWidget"]){_4._hasResource["dijit.layout._LayoutWidget"]=true;_4.provide("dijit.layout._LayoutWidget");_4.declare("dijit.layout._LayoutWidget",[_5._Widget,_5._Container,_5._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _1ee=this.getParent&&this.getParent();if(!(_1ee&&_1ee.isLayoutContainer)){this.resize();this.connect(_4.isIE?this.domNode:_4.global,"onresize",function(){this.resize();});}},resize:function(_1ef,_1f0){var node=this.domNode;if(_1ef){_4.marginBox(node,_1ef);if(_1ef.t){node.style.top=_1ef.t+"px";}if(_1ef.l){node.style.left=_1ef.l+"px";}}var mb=_1f0||{};_4.mixin(mb,_1ef||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(node),mb);}var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var be=_4._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_4._getPadExtents(node,cs);this._contentBox={l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_1f1){var cls=this.baseClass+"-child "+(_1f1.baseClass?this.baseClass+"-"+_1f1.baseClass:"");_4.addClass(_1f1.domNode,cls);},addChild:function(_1f2,_1f3){this.inherited(arguments);if(this._started){this._setupChild(_1f2);}},removeChild:function(_1f4){var cls=this.baseClass+"-child"+(_1f4.baseClass?" "+this.baseClass+"-"+_1f4.baseClass:"");_4.removeClass(_1f4.domNode,cls);this.inherited(arguments);}});_5.layout.marginBox2contentBox=function(node,mb){var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var pb=_4._getPadBorderExtents(node,cs);return {l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1f5=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1f6,dim){_1f6.resize?_1f6.resize(dim):_4.marginBox(_1f6.domNode,dim);_4.mixin(_1f6,_4.marginBox(_1f6.domNode));_4.mixin(_1f6,dim);};_5.layout.layoutChildren=function(_1f7,dim,_1f8,_1f9,_1fa){dim=_4.mixin({},dim);_4.addClass(_1f7,"dijitLayoutContainer");_1f8=_4.filter(_1f8,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(_4.filter(_1f8,function(item){return item.region=="center"||item.layoutAlign=="client";}));_4.forEach(_1f8,function(_1fb){var elm=_1fb.domNode,pos=(_1fb.region||_1fb.layoutAlign);var _1fc=elm.style;_1fc.left=dim.l+"px";_1fc.top=dim.t+"px";_1fc.bottom=_1fc.right="auto";_4.addClass(elm,"dijitAlign"+_1f5(pos));var _1fd={};if(_1f9&&_1f9==_1fb.id){_1fd[_1fb.region=="top"||_1fb.region=="bottom"?"h":"w"]=_1fa;}if(pos=="top"||pos=="bottom"){_1fd.w=dim.w;size(_1fb,_1fd);dim.h-=_1fb.h;if(pos=="top"){dim.t+=_1fb.h;}else{_1fc.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1fd.h=dim.h;size(_1fb,_1fd);dim.w-=_1fb.w;if(pos=="left"){dim.l+=_1fb.w;}else{_1fc.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_1fb,dim);}}}});};})();}if(!_4._hasResource["dijit.layout._ContentPaneResizeMixin"]){_4._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;_4.provide("dijit.layout._ContentPaneResizeMixin");_4.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){_4.forEach(this.getChildren(),function(_1fe){_1fe.startup();_1fe._started=true;});},startup:function(){if(this._started){return;}var _1ff=_5._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_1ff&&_1ff.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();},_checkIfSingleChild:function(){var _200=_4.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_201=_200.filter(function(node){return _4.hasAttr(node,"data-dojo-type")||_4.hasAttr(node,"dojoType")||_4.hasAttr(node,"widgetId");}),_202=_4.filter(_201.map(_5.byNode),function(_203){return _203&&_203.domNode&&_203.resize;});if(_200.length==_201.length&&_202.length==1){this._singleChild=_202[0];}else{delete this._singleChild;}_4.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_204,_205){this._layout(_204,_205);},_layout:function(_206,_207){if(_206){_4.marginBox(this.domNode,_206);}var cn=this.containerNode;if(cn===this.domNode){var mb=_207||{};_4.mixin(mb,_206||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(cn),mb);}this._contentBox=_5.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=_4.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||_4.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{_4.forEach(this.getChildren(),function(_208){if(_208.resize){_208.resize();}});}}});}if(!_4._hasResource["dijit.layout.ContentPane"]){_4._hasResource["dijit.layout.ContentPane"]=true;_4.provide("dijit.layout.ContentPane");_4.declare("dijit.layout.ContentPane",[_5._Widget,_5.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:_4._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_209,_20a){if((!_209||!_209.template)&&_20a&&!("href" in _209)&&!("content" in _209)){var df=_4.doc.createDocumentFragment();_20a=_4.byId(_20a);while(_20a.firstChild){df.appendChild(_20a.firstChild);}_209=_4.delegate(_209,{content:df});}this.inherited(arguments,[_209,_20a]);},postMixInProperties:function(){this.inherited(arguments);var _20b=_4.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=_4.string.substitute(this.loadingMessage,_20b);this.errorMessage=_4.string.substitute(this.errorMessage,_20b);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!_4.attr(this.domNode,"role")){_5.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){_4.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&_4.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this._isShown()){this._onShow();}},setHref:function(href){_4.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){_4.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_20c){if(this._beingDestroyed){return;}this.inherited(arguments);},resize:function(_20d,_20e){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_20d,_20e);},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_20f=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!_4.hasClass(node,"dijitHidden")&&_20f&&_20f.style&&(_20f.style.display!="none");}}},_onShow:function(){if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){var d=this.refresh();}}else{if(this._needLayout){this._layout(this._changeSize,this._resultSize);}}this.inherited(arguments);this._wasShown=true;return d;},refresh:function(){this.cancel();this.onLoadDeferred=new _4.Deferred(_4.hitch(this,"cancel"));this.onLoadDeferred.addCallback(_4.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _210={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(_4.isObject(this.ioArgs)){_4.mixin(_210,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||_4.xhrGet)(_210));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _211=this._contentSetter;_4.forEach(this.getChildren(),function(_212){if(_212.destroyRecursive){_212.destroyRecursive();}});if(_211){_4.forEach(_211.parseResults,function(_213){if(_213.destroyRecursive&&_213.domNode&&_213.domNode.parentNode==_4.body()){_213.destroyRecursive();}});delete _211.parseResults;}_4.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_214){this.destroyDescendants();var _215=this._contentSetter;if(!(_215&&_215 instanceof _4.html._ContentSetter)){_215=this._contentSetter=new _4.html._ContentSetter({node:this.containerNode,_onError:_4.hitch(this,this._onError),onContentError:_4.hitch(this,function(e){var _216=this.onContentError(e);try{this.containerNode.innerHTML=_216;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _217=_4.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_215.set((_4.isObject(cont)&&cont.domNode)?cont.domNode:cont,_217);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_214){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_218){this.onLoadDeferred.errback(err);var _219=this["on"+type+"Error"].call(this,err);if(_218){console.error(_218,err);}else{if(_219){this._setContent(_219,true);}}},_scheduleLayout:function(_21a,_21b){if(this._isShown()){this._layout(_21a,_21b);}else{this._needLayout=true;this._changeSize=_21a;this._resultSize=_21b;}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_21c){},onDownloadError:function(_21d){return this.errorMessage;},onDownloadEnd:function(){}});}if(!_4._hasResource["dijit._CssStateMixin"]){_4._hasResource["dijit._CssStateMixin"]=true;_4.provide("dijit._CssStateMixin");_4.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);_4.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);_4.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,_4.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_21e){if(!this.disabled){switch(_21e.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _21f=this.connect(_4.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_21f);});break;}}},_setStateClass:function(){var _220=this.baseClass.split(" ");function _221(_222){_220=_220.concat(_4.map(_220,function(c){return c+_222;}),"dijit"+_222);};if(!this.isLeftToRight()){_221("Rtl");}if(this.checked){_221("Checked");}if(this.state){_221(this.state);}if(this.selected){_221("Selected");}if(this.disabled){_221("Disabled");}else{if(this.readOnly){_221("ReadOnly");}else{if(this.active){_221("Active");}else{if(this.hovering){_221("Hover");}}}}if(this._focused){_221("Focused");}var tn=this.stateNode||this.domNode,_223={};_4.forEach(tn.className.split(" "),function(c){_223[c]=true;});if("_stateClasses" in this){_4.forEach(this._stateClasses,function(c){delete _223[c];});}_4.forEach(_220,function(c){_223[c]=true;});var _224=[];for(var c in _223){_224.push(c);}tn.className=_224.join(" ");this._stateClasses=_220;},_trackMouseState:function(node,_225){var _226=false,_227=false,_228=false;var self=this,cn=_4.hitch(this,"connect",node);function _229(){var _22a=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);_4.toggleClass(node,_225+"Hover",_226&&!_227&&!_22a);_4.toggleClass(node,_225+"Active",_227&&!_22a);_4.toggleClass(node,_225+"Focused",_228&&!_22a);};cn("onmouseenter",function(){_226=true;_229();});cn("onmouseleave",function(){_226=false;_227=false;_229();});cn("onmousedown",function(){_227=true;_229();});cn("onmouseup",function(){_227=false;_229();});cn("onfocus",function(){_228=true;_229();});cn("onblur",function(){_228=false;_229();});this.watch("disabled",_229);this.watch("readOnly",_229);}});}if(!_4._hasResource["dijit.TitlePane"]){_4._hasResource["dijit.TitlePane"]=true;_4.provide("dijit.TitlePane");_4.declare("dijit.TitlePane",[_5.layout.ContentPane,_5._Templated,_5._CssStateMixin],{title:"",open:true,toggleable:true,tabIndex:"0",duration:_5.defaultDuration,baseClass:"dijitTitlePane",templateString:_4.cache("dijit","templates/TitlePane.html","<div>\r\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\r\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\r\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" role=\"presentation\"\r\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\r\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" role=\"presentation\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" role=\"presentation\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" role=\"region\" id=\"${id}_pane\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n"),attributeMap:_4.delegate(_5.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),buildRendering:function(){this.inherited(arguments);_4.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _22b=this.hideNode,_22c=this.wipeNode;this._wipeIn=_4.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_22b.style.display="";}});this._wipeOut=_4.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_22b.style.display="none";}});},_setOpenAttr:function(open,_22d){_4.forEach([this._wipeIn,this._wipeOut],function(_22e){if(_22e&&_22e.status()=="playing"){_22e.stop();}});if(_22d){var anim=this[open?"_wipeIn":"_wipeOut"];anim.play();}else{this.hideNode.style.display=this.wipeNode.style.display=open?"":"none";}if(this._started){if(open){this._onShow();}else{this.onHide();}}this.arrowNodeInner.innerHTML=open?"-":"+";_5.setWaiState(this.containerNode,"hidden",open?"false":"true");_5.setWaiState(this.focusNode,"pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_22f){_5.setWaiRole(this.focusNode,_22f?"button":"heading");if(_22f){_5.setWaiState(this.focusNode,"controls",this.id+"_pane");_4.attr(this.focusNode,"tabIndex",this.tabIndex);}else{_4.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_22f);this._setCss();},_setContentAttr:function(_230){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}_4.marginBox(this.wipeNode,{h:_4.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){this._setOpenAttr(!this.open,true);},_setCss:function(){var node=this.titleBarNode||this.focusNode;var _231=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");_4.replaceClass(node,this._titleBarClass,_231||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==_4.keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}_4.stopEvent(e);}else{if(e.charOrCode==_4.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_232){_4.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_232);}});}if(!_4._hasResource["dojo.io.script"]){_4._hasResource["dojo.io.script"]=true;_4.provide("dojo.io.script");_4.getObject("io",true,_4);(function(){var _233=_4.isIE?"onreadystatechange":"load",_234=/complete|loaded/;_4.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var _235=dfd.ioArgs;_4._ioAddQueryToUrl(_235);_4._ioNotifyStart(dfd);if(this._canAttach(_235)){var node=this.attach(_235.id,_235.url,args.frameDoc);if(!_235.jsonp&&!_235.args.checkString){var _236=_4.connect(node,_233,function(evt){if(evt.type=="load"||_234.test(node.readyState)){_4.disconnect(_236);_235.scriptLoaded=evt;}});}}_4._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_237){var doc=(_237||_4.doc);var _238=doc.createElement("script");_238.type="text/javascript";_238.src=url;_238.id=id;_238.charset="utf-8";return doc.getElementsByTagName("head")[0].appendChild(_238);},remove:function(id,_239){_4.destroy(_4.byId(id,_239));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(args){var dfd=_4._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var _23a=dfd.ioArgs;_23a.id=_4._scopeName+"IoScript"+(this._counter++);_23a.canDelete=false;_23a.jsonp=args.callbackParamName||args.jsonp;if(_23a.jsonp){_23a.query=_23a.query||"";if(_23a.query.length>0){_23a.query+="&";}_23a.query+=_23a.jsonp+"="+(args.frameDoc?"parent.":"")+_4._scopeName+".io.script.jsonp_"+_23a.id+"._jsonpCallback";_23a.frameDoc=args.frameDoc;_23a.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_23a.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){_4.io.script._addDeadScript(dfd.ioArgs);}},_deferredOk:function(dfd){var _23b=dfd.ioArgs;if(_23b.canDelete){_4.io.script._addDeadScript(_23b);}return _23b.json||_23b.scriptLoaded||_23b;},_deferredError:function(_23c,dfd){if(dfd.ioArgs.canDelete){if(_23c.dojoType=="timeout"){_4.io.script.remove(dfd.ioArgs.id,dfd.ioArgs.frameDoc);}else{_4.io.script._addDeadScript(dfd.ioArgs);}}return _23c;},_deadScripts:[],_counter:1,_addDeadScript:function(_23d){_4.io.script._deadScripts.push({id:_23d.id,frameDoc:_23d.frameDoc});_23d.frameDoc=null;},_validCheck:function(dfd){var _23e=_4.io.script;var _23f=_23e._deadScripts;if(_23f&&_23f.length>0){for(var i=0;i<_23f.length;i++){_23e.remove(_23f[i].id,_23f[i].frameDoc);_23f[i].frameDoc=null;}_4.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){var _240=dfd.ioArgs;if(_240.json||(_240.scriptLoaded&&!_240.args.checkString)){return true;}var _241=_240.args.checkString;if(_241&&eval("typeof("+_241+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(_4.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_canAttach:function(_242){return true;},_jsonpCallback:function(json){this.ioArgs.json=json;}};})();}if(!_4._hasResource["dojo.date"]){_4._hasResource["dojo.date"]=true;_4.provide("dojo.date");_4.getObject("date",true,_4);_4.date.getDaysInMonth=function(_243){var _244=_243.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_244==1&&_4.date.isLeapYear(_243)){return 29;}return days[_244];};_4.date.isLeapYear=function(_245){var year=_245.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};_4.date.getTimezoneName=function(_246){var str=_246.toString();var tz="";var _247;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_247=str.match(pat))){tz=_247[1];}else{str=_246.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_247=str.match(pat))){tz=_247[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};_4.date.compare=function(_248,_249,_24a){_248=new Date(+_248);_249=new Date(+(_249||new Date()));if(_24a=="date"){_248.setHours(0,0,0,0);_249.setHours(0,0,0,0);}else{if(_24a=="time"){_248.setFullYear(0,0,0);_249.setFullYear(0,0,0);}}if(_248>_249){return 1;}if(_248<_249){return -1;}return 0;};_4.date.add=function(date,_24b,_24c){var sum=new Date(+date);var _24d=false;var _24e="Date";switch(_24b){case "day":break;case "weekday":var days,_24f;var mod=_24c%5;if(!mod){days=(_24c>0)?5:-5;_24f=(_24c>0)?((_24c-5)/5):((_24c+5)/5);}else{days=mod;_24f=parseInt(_24c/5);}var strt=date.getDay();var adj=0;if(strt==6&&_24c>0){adj=1;}else{if(strt==0&&_24c<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_24c>0)?2:-2;}_24c=(7*_24f)+days+adj;break;case "year":_24e="FullYear";_24d=true;break;case "week":_24c*=7;break;case "quarter":_24c*=3;case "month":_24d=true;_24e="Month";break;default:_24e="UTC"+_24b.charAt(0).toUpperCase()+_24b.substring(1)+"s";}if(_24e){sum["set"+_24e](sum["get"+_24e]()+_24c);}if(_24d&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};_4.date.difference=function(_250,_251,_252){_251=_251||new Date();_252=_252||"day";var _253=_251.getFullYear()-_250.getFullYear();var _254=1;switch(_252){case "quarter":var m1=_250.getMonth();var m2=_251.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_253*4);_254=q2-q1;break;case "weekday":var days=Math.round(_4.date.difference(_250,_251,"day"));var _255=parseInt(_4.date.difference(_250,_251,"week"));var mod=days%7;if(mod==0){days=_255*5;}else{var adj=0;var aDay=_250.getDay();var bDay=_251.getDay();_255=parseInt(days/7);mod=days%7;var _256=new Date(_250);_256.setDate(_256.getDate()+(_255*7));var _257=_256.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_257+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_257+mod)<0:adj=2;}}}days+=adj;days-=(_255*2);}_254=days;break;case "year":_254=_253;break;case "month":_254=(_251.getMonth()-_250.getMonth())+(_253*12);break;case "week":_254=parseInt(_4.date.difference(_250,_251,"day")/7);break;case "day":_254/=24;case "hour":_254/=60;case "minute":_254/=60;case "second":_254/=1000;case "millisecond":_254*=_251.getTime()-_250.getTime();}return Math.round(_254);};}if(!_4._hasResource["dojo.cldr.supplemental"]){_4._hasResource["dojo.cldr.supplemental"]=true;_4.provide("dojo.cldr.supplemental");_4.getObject("cldr.supplemental",true,_4);_4.cldr.supplemental.getFirstDayOfWeek=function(_258){var _259={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _25a=_4.cldr.supplemental._region(_258);var dow=_259[_25a];return (dow===undefined)?1:dow;};_4.cldr.supplemental._region=function(_25b){_25b=_4.i18n.normalizeLocale(_25b);var tags=_25b.split("-");var _25c=tags[1];if(!_25c){_25c={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"}[tags[0]];}else{if(_25c.length==4){_25c=tags[2];}}return _25c;};_4.cldr.supplemental.getWeekend=function(_25d){var _25e={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _25f={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _260=_4.cldr.supplemental._region(_25d);var _261=_25e[_260];var end=_25f[_260];if(_261===undefined){_261=6;}if(end===undefined){end=0;}return {start:_261,end:end};};}if(!_4._hasResource["dojo.regexp"]){_4._hasResource["dojo.regexp"]=true;_4.provide("dojo.regexp");_4.getObject("regexp",true,_4);_4.regexp.escapeString=function(str,_262){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_262&&_262.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};_4.regexp.buildGroupRE=function(arr,re,_263){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return _4.regexp.group(b.join("|"),_263);};_4.regexp.group=function(_264,_265){return "("+(_265?"?:":"")+_264+")";};}if(!_4._hasResource["dojo.date.locale"]){_4._hasResource["dojo.date.locale"]=true;_4.provide("dojo.date.locale");_4.getObject("date.locale",true,_4);(function(){function _266(_267,_268,_269,_26a){return _26a.replace(/([a-z])\1*/ig,function(_26b){var s,pad,c=_26b.charAt(0),l=_26b.length,_26c=["abbr","wide","narrow"];switch(c){case "G":s=_268[(l<4)?"eraAbbr":"eraNames"][_267.getFullYear()<0?0:1];break;case "y":s=_267.getFullYear();switch(l){case 1:break;case 2:if(!_269.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_267.getMonth()+1)/3);pad=true;break;case "M":var m=_267.getMonth();if(l<3){s=m+1;pad=true;}else{var _26d=["months","format",_26c[l-3]].join("-");s=_268[_26d][m];}break;case "w":var _26e=0;s=_4.date.locale._getWeekOfYear(_267,_26e);pad=true;break;case "d":s=_267.getDate();pad=true;break;case "D":s=_4.date.locale._getDayOfYear(_267);pad=true;break;case "E":var d=_267.getDay();if(l<3){s=d+1;pad=true;}else{var _26f=["days","format",_26c[l-3]].join("-");s=_268[_26f][d];}break;case "a":var _270=(_267.getHours()<12)?"am":"pm";s=_269[_270]||_268["dayPeriods-format-wide-"+_270];break;case "h":case "H":case "K":case "k":var h=_267.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=_267.getMinutes();pad=true;break;case "s":s=_267.getSeconds();pad=true;break;case "S":s=Math.round(_267.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=_4.date.locale._getZone(_267,true,_269);if(s){break;}l=4;case "Z":var _271=_4.date.locale._getZone(_267,false,_269);var tz=[(_271<=0?"+":"-"),_4.string.pad(Math.floor(Math.abs(_271)/60),2),_4.string.pad(Math.abs(_271)%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: "+_26a);}if(pad){s=_4.string.pad(s,l);}return s;});};_4.date.locale._getZone=function(_272,_273,_274){if(_273){return _4.date.getTimezoneName(_272);}else{return _272.getTimezoneOffset();}};_4.date.locale.format=function(_275,_276){_276=_276||{};var _277=_4.i18n.normalizeLocale(_276.locale),_278=_276.formatLength||"short",_279=_4.date.locale._getGregorianBundle(_277),str=[],_27a=_4.hitch(this,_266,_275,_279,_276);if(_276.selector=="year"){return _27b(_279["dateFormatItem-yyyy"]||"yyyy",_27a);}var _27c;if(_276.selector!="date"){_27c=_276.timePattern||_279["timeFormat-"+_278];if(_27c){str.push(_27b(_27c,_27a));}}if(_276.selector!="time"){_27c=_276.datePattern||_279["dateFormat-"+_278];if(_27c){str.push(_27b(_27c,_27a));}}return str.length==1?str[0]:_279["dateTimeFormat-"+_278].replace(/\{(\d+)\}/g,function(_27d,key){return str[key];});};_4.date.locale.regexp=function(_27e){return _4.date.locale._parseInfo(_27e).regexp;};_4.date.locale._parseInfo=function(_27f){_27f=_27f||{};var _280=_4.i18n.normalizeLocale(_27f.locale),_281=_4.date.locale._getGregorianBundle(_280),_282=_27f.formatLength||"short",_283=_27f.datePattern||_281["dateFormat-"+_282],_284=_27f.timePattern||_281["timeFormat-"+_282],_285;if(_27f.selector=="date"){_285=_283;}else{if(_27f.selector=="time"){_285=_284;}else{_285=_281["dateTimeFormat-"+_282].replace(/\{(\d+)\}/g,function(_286,key){return [_284,_283][key];});}}var _287=[],re=_27b(_285,_4.hitch(this,_288,_287,_281,_27f));return {regexp:re,tokens:_287,bundle:_281};};_4.date.locale.parse=function(_289,_28a){var _28b=/[\u200E\u200F\u202A\u202E]/g,info=_4.date.locale._parseInfo(_28a),_28c=info.tokens,_28d=info.bundle,re=new RegExp("^"+info.regexp.replace(_28b,"")+"$",info.strict?"":"i"),_28e=re.exec(_289&&_289.replace(_28b,""));if(!_28e){return null;}var _28f=["abbr","wide","narrow"],_290=[1970,0,1,0,0,0,0],amPm="",_291=_4.every(_28e,function(v,i){if(!i){return true;}var _292=_28c[i-1];var l=_292.length;switch(_292.charAt(0)){case "y":if(l!=2&&_28a.strict){_290[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_293=year.substring(0,2)*100,_294=Math.min(Number(year.substring(2,4))+20,99),num=(v<_294)?_293+v:_293-100+v;_290[0]=num;}else{if(_28a.strict){return false;}_290[0]=v;}}break;case "M":if(l>2){var _295=_28d["months-format-"+_28f[l-3]].concat();if(!_28a.strict){v=v.replace(".","").toLowerCase();_295=_4.map(_295,function(s){return s.replace(".","").toLowerCase();});}v=_4.indexOf(_295,v);if(v==-1){return false;}}else{v--;}_290[1]=v;break;case "E":case "e":var days=_28d["days-format-"+_28f[l-3]].concat();if(!_28a.strict){v=v.toLowerCase();days=_4.map(days,function(d){return d.toLowerCase();});}v=_4.indexOf(days,v);if(v==-1){return false;}break;case "D":_290[1]=0;case "d":_290[2]=v;break;case "a":var am=_28a.am||_28d["dayPeriods-format-wide-am"],pm=_28a.pm||_28d["dayPeriods-format-wide-pm"];if(!_28a.strict){var _296=/\./g;v=v.replace(_296,"").toLowerCase();am=am.replace(_296,"").toLowerCase();pm=pm.replace(_296,"").toLowerCase();}if(_28a.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_290[3]=v;break;case "m":_290[4]=v;break;case "s":_290[5]=v;break;case "S":_290[6]=v;}return true;});var _297=+_290[3];if(amPm==="p"&&_297<12){_290[3]=_297+12;}else{if(amPm==="a"&&_297==12){_290[3]=0;}}var _298=new Date(_290[0],_290[1],_290[2],_290[3],_290[4],_290[5],_290[6]);if(_28a.strict){_298.setFullYear(_290[0]);}var _299=_28c.join(""),_29a=_299.indexOf("d")!=-1,_29b=_299.indexOf("M")!=-1;if(!_291||(_29b&&_298.getMonth()>_290[1])||(_29a&&_298.getDate()>_290[2])){return null;}if((_29b&&_298.getMonth()<_290[1])||(_29a&&_298.getDate()<_290[2])){_298=_4.date.add(_298,"hour",1);}return _298;};function _27b(_29c,_29d,_29e,_29f){var _2a0=function(x){return x;};_29d=_29d||_2a0;_29e=_29e||_2a0;_29f=_29f||_2a0;var _2a1=_29c.match(/(''|[^'])+/g),_2a2=_29c.charAt(0)=="'";_4.forEach(_2a1,function(_2a3,i){if(!_2a3){_2a1[i]="";}else{_2a1[i]=(_2a2?_29e:_29d)(_2a3.replace(/''/g,"'"));_2a2=!_2a2;}});return _29f(_2a1.join(""));};function _288(_2a4,_2a5,_2a6,_2a7){_2a7=_4.regexp.escapeString(_2a7);if(!_2a6.strict){_2a7=_2a7.replace(" a"," ?a");}return _2a7.replace(/([a-z])\1*/ig,function(_2a8){var s,c=_2a8.charAt(0),l=_2a8.length,p2="",p3="";if(_2a6.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_2a6.am||_2a5["dayPeriods-format-wide-am"],pm=_2a6.pm||_2a5["dayPeriods-format-wide-pm"];if(_2a6.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(_2a4){_2a4.push(_2a8);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _2a9=[];_4.date.locale.addCustomFormats=function(_2aa,_2ab){_2a9.push({pkg:_2aa,name:_2ab});};_4.date.locale._getGregorianBundle=function(_2ac){var _2ad={};_4.forEach(_2a9,function(desc){var _2ae=_4.i18n.getLocalization(desc.pkg,desc.name,_2ac);_2ad=_4.mixin(_2ad,_2ae);},this);return _2ad;};})();_4.date.locale.addCustomFormats("dojo.cldr","gregorian");_4.date.locale.getNames=function(item,type,_2af,_2b0){var _2b1,_2b2=_4.date.locale._getGregorianBundle(_2b0),_2b3=[item,_2af,type];if(_2af=="standAlone"){var key=_2b3.join("-");_2b1=_2b2[key];if(_2b1[0]==1){_2b1=undefined;}}_2b3[1]="format";return (_2b1||_2b2[_2b3.join("-")]).concat();};_4.date.locale.isWeekend=function(_2b4,_2b5){var _2b6=_4.cldr.supplemental.getWeekend(_2b5),day=(_2b4||new Date()).getDay();if(_2b6.end<_2b6.start){_2b6.end+=7;if(day<_2b6.start){day+=7;}}return day>=_2b6.start&&day<=_2b6.end;};_4.date.locale._getDayOfYear=function(_2b7){return _4.date.difference(new Date(_2b7.getFullYear(),0,1,_2b7.getHours()),_2b7)+1;};_4.date.locale._getWeekOfYear=function(_2b8,_2b9){if(arguments.length==1){_2b9=0;}var _2ba=new Date(_2b8.getFullYear(),0,1).getDay(),adj=(_2ba-_2b9+7)%7,week=Math.floor((_4.date.locale._getDayOfYear(_2b8)+adj-1)/7);if(_2ba==_2b9){week++;}return week;};}if(!_4._hasResource["fab.misc.twitter"]){_4._hasResource["fab.misc.twitter"]=true;_4.provide("fab.misc.twitter");_4.declare("fab.misc.twitter",null,{from:"libertypark411",rpp:5,page:1,showUser:false,resultType:"recent",targetNode:null,constructor:function(args){_4.safeMixin(this,args);},getTweets:function(){var _2bb,_2bc;var _2bd=function(){_2bb=_2bc=_4.date.locale.format(new Date(),{datePattern:"yyyy-MM-dd",selector:"date"});};_2bd();var _2be={url:"http://search.twitter.com/search.json",callbackParamName:"callback",content:{from:this.from,rpp:this.rpp,page:this.page,show_user:this.showUser,result_type:this.resultType,since:_2bb,until:_2bc},load:_4.hitch(this,function(data){var html="";_4.removeClass(this.targetNode,"loading");_4.addClass(this.targetNode,"error");_4.forEach(data.results,function(item){html+="<li>"+item.text+"</li>";},this);if(data.results.length>0){html="<ul>"+html+"</ul>";}else{html="No new information today.";}_4.attr(this.targetNode,"innerHTML",html);}),error:function(_2bf){_4.removeClass(this.targetNode,"loading");_4.addClass(this.targetNode,"error");_4.attr(this.targetNode,"innerHTML","<div>There was an error retreiving news data.</div>");}};_4.io.script.get(_2be);}});}if(!_4._hasResource["fab.widget.Weather"]){_4._hasResource["fab.widget.Weather"]=true;_4.provide("fab.widget.Weather");_4.declare("fab.widget.Weather",null,{url:"",locationId:"",unit:"f",targetNode:null,image:true,highlow:true,wind:true,link:true,constructor:function(args){_4.safeMixin(this,args);},getWeather:function(){var _2c0={url:this.url,callbackParamName:"callback",content:{format:"json",q:_4.string.substitute("select * from weather.forecast where location=${0} and u='${1}'",[this.locationId,this.unit])},load:_4.hitch(this,function(data,_2c1){this.dataHandler(data.query.results.channel);}),error:_4.hitch(this,function(_2c2,_2c3){_4.removeClass(this.targetNode,"loading");_4.addClass(this.targetNode,"error");_4.attr(this.targetNode,"innerHTML","<div>There was an error retreiving weather data.</div>");})};_4.io.script.get(_2c0);},dataHandler:function(feed){var wd=feed.wind.direction;if(wd>=348.75&&wd<=360){wd="N";}if(wd>=0&&wd<11.25){wd="N";}if(wd>=11.25&&wd<33.75){wd="NNE";}if(wd>=33.75&&wd<56.25){wd="NE";}if(wd>=56.25&&wd<78.75){wd="ENE";}if(wd>=78.75&&wd<101.25){wd="E";}if(wd>=101.25&&wd<123.75){wd="ESE";}if(wd>=123.75&&wd<146.25){wd="SE";}if(wd>=146.25&&wd<168.75){wd="SSE";}if(wd>=168.75&&wd<191.25){wd="S";}if(wd>=191.25&&wd<213.75){wd="SSW";}if(wd>=213.75&&wd<236.25){wd="SW";}if(wd>=236.25&&wd<258.75){wd="WSW";}if(wd>=258.75&&wd<281.25){wd="W";}if(wd>=281.25&&wd<303.75){wd="WNW";}if(wd>=303.75&&wd<326.25){wd="NW";}if(wd>=326.25&&wd<348.75){wd="NNW";}var wf=feed.item.forecast[0];wpd=feed.item.pubDate;n=wpd.indexOf(":");tpb=this._getTimeAsDate(wpd.substr(n-2,8));tsr=this._getTimeAsDate(feed.astronomy.sunrise);tss=this._getTimeAsDate(feed.astronomy.sunset);if(tpb>tsr&&tpb<tss){daynight="d";}else{daynight="n";}var html="<div class=\"weatherItem\"";if(this.image){html+=" style=\"background-image: url(http://l.yimg.com/a/i/us/nws/weather/gr/"+feed.item.condition.code+daynight+".png); background-repeat: no-repeat;\"";}html+=">";html+="<div class=\"weatherCity\">"+feed.location.city+"</div>";html+="<div class=\"weatherTemp\">"+feed.item.condition.temp+"&deg;</div>";html+="<div class=\"weatherDesc\">"+feed.item.condition.text+"</div>";if(this.highlow){html+="<div class=\"weatherRange\">High: "+wf.high+"&deg; Low: "+wf.low+"&deg;</div>";}if(this.wind){html+="<div class=\"weatherWind\">Wind: "+wd+" "+feed.wind.speed+feed.units.speed+"</div>";}if(this.link){html+="<div class=\"weatherLink\"><a href=\""+feed.item.link+"\">Read full forecast</a></div>";}html+="</div>";_4.removeClass(this.targetNode,"loading");_4.attr(this.targetNode,"innerHTML",html);},_getTimeAsDate:function(t){d=new Date();r=new Date(d.toDateString()+" "+t);return r;}});}if(!_4._hasResource["fab.www.default"]){_4._hasResource["fab.www.default"]=true;_4.provide("fab.www.default");_4.ready(function(){var d=_4,$=d.query;_4.connect(_4.byId("cmdTextAlerts"),"onclick",_2c4);var _2c5=new _5.TitlePane({title:"libertypark411 Twitter feed",content:_4.byId("tweetResults")});_4.byId("Tweets").appendChild(_2c5.domNode);var _2c6=new _5.TitlePane({title:"Upcoming game",content:_4.byId("nextgamedata")});_4.byId("NextGame").appendChild(_2c6.domNode);var _2c7=new _5.TitlePane({title:"Previous Game",content:_4.byId("prevgamedata")});_4.byId("PrevGame").appendChild(_2c7.domNode);var _2c8=new _5.TitlePane({title:"Current News",content:_4.byId("newsdata")});_4.byId("TopNews").appendChild(_2c8.domNode);var _2c9=new _5.TitlePane({title:"Current Weather",content:_4.byId("weatherdata")});_4.byId("Weather").appendChild(_2c9.domNode);var _2ca={"url":fab.path+"/webservices/Players.asmx/getPreviousGame","handleAs":"json","contentType":"application/json; charset=utf-8","preventCache":false,"sync":false,"load":function(data,_2cb){_4.query("#prevgamedata").removeClass("loading");_4.query("#prevgamedata").html(data.d.Html);},"error":function(_2cc,_2cd){_4.query("#prevgamedata").removeClass("loading");_4.query("#prevgamedata").html("<div>There was an error retreiving previous game data.</div>").addClass("error");}};_4.xhrGet(_2ca);var _2ca={"url":fab.path+"/webservices/Players.asmx/getNextGame","handleAs":"json","contentType":"application/json; charset=utf-8","preventCache":false,"sync":false,"load":function(data,_2ce){_4.query("#nextgamedata").removeClass("loading");if(data.d!==null){_4.query("#nextgamedata").html(data.d.Html);}else{_4.query("#nextgamedata").html("<div>No upcoming game scheduled.</div>");}},"error":function(_2cf,_2d0){_4.query("#nextgamedata").removeClass("loading");_4.query("#nextgamedata").html("<div>There was an error retreiving next game data.</div>").addClass("error");}};_4.xhrGet(_2ca);var _2d1={"url":fab.path+"/webservices/Players.asmx/getTopNews","handleAs":"json","contentType":"application/json; charset=utf-8","preventCache":false,"sync":false,"load":function(data,_2d2){_4.query("#newsdata").removeClass("loading");if(data.d!==null){_4.query("#newsdata").html(data.d.Html);}else{_4.query("#newsdata").html("<div>No recent news.</div>");}},"error":function(_2d3,_2d4){_4.query("#newsdata").removeClass("loading");_4.query("#newsdata").html("<div>There was an error retreiving news data.</div>").addClass("error");}};_4.xhrGet(_2d1);var _2d5=new fab.misc.twitter({targetNode:_4.byId("tweetResults"),rpp:5});_2d5.getTweets();var _2d6=new fab.widget.Weather({url:fab.weather.url,locationId:fab.weather.locationId,unit:fab.weather.unit,targetNode:_4.byId("weatherdata")});_2d6.getWeather();});var _2c4=function(){_4.query("#cmdTextAlerts").attr("disabled","disabled");_4.query("#tm_message").addClass("loading");_4.query("#tmSubscribeError").empty();var fn=_4.byId("tbMobileNumber").value;var _2d7={"url":fab.path+"/webservices/textmarks.asmx/Subscribe","postData":"{\"phoneNumber\": \""+fn.toString()+"\"}","handleAs":"json","contentType":"application/json; charset=utf-8","preventCache":true,"sync":false,"load":function(data,_2d8){_4.query("#cmdTextAlerts").removeAttr("disabled");_4.query("#tm_message").removeClass("loading");_4.query("#tmSubscribeError").html(data.d).addClass("error");},"error":function(_2d9,_2da){_4.query("#cmdTextAlerts").removeAttr("disabled");_4.query("#tm_message").removeClass("loading");_4.query("#tmSubscribeError").html("<div>Error subscribing to text alerts.  Please try again.</div>").addClass("error");}};_4.xhrPost(_2d7);};}}};});
