app.js 156 KB

123456789101112131415
  1. /*
  2. Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. /*
  7. This is an optimized version of Dojo, built for deployment and not for
  8. development. To get sources and documentation, please visit:
  9. http://dojotoolkit.org
  10. */
  11. //>>built
  12. require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_quirks":_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla")};if(ie){_a["dj_ie"]=true;_a["dj_ie"+_8(ie)]=true;_a["dj_iequirks"]=_4("quirks");}if(ff){_a["dj_ff"+_8(ff)]=true;}_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dojox/mobile/app/_Widget":function(){define("dojox/mobile/app/_Widget",["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_e,_f,_10){_f.provide("dojox.mobile.app._Widget");_f.experimental("dojox.mobile.app._Widget");_f.require("dijit._WidgetBase");_f.declare("dojox.mobile.app._Widget",_e._WidgetBase,{getScroll:function(){return {x:_f.global.scrollX,y:_f.global.scrollY};},connect:function(_11,_12,fn){if(_12.toLowerCase()=="dblclick"||_12.toLowerCase()=="ondblclick"){if(_f.global["Mojo"]){return this.connect(_11,Mojo.Event.tap,fn);}}return this.inherited(arguments);}});});},"dojox/mobile/app/ImageThumbView":function(){define("dojox/mobile/app/ImageThumbView",["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase,dojo/string"],function(_13,_14,_15){_14.provide("dojox.mobile.app.ImageThumbView");_14.experimental("dojox.mobile.app.ImageThumbView");_14.require("dijit._WidgetBase");_14.require("dojo.string");_14.declare("dojox.mobile.app.ImageThumbView",_13._WidgetBase,{items:[],urlParam:"url",labelParam:null,itemTemplate:"<div class=\"mblThumbInner\">"+"<div class=\"mblThumbOverlay\"></div>"+"<div class=\"mblThumbMask\">"+"<div class=\"mblThumbSrc\" style=\"background-image:url(${url})\"></div>"+"</div>"+"</div>",minPadding:4,maxPerRow:3,maxRows:-1,baseClass:"mblImageThumbView",thumbSize:"medium",animationEnabled:true,selectedIndex:-1,cache:null,cacheMustMatch:false,clickEvent:"onclick",cacheBust:false,disableHide:false,constructor:function(_16,_17){},postCreate:function(){this.inherited(arguments);var _18=this;var _19="mblThumbHover";this.addThumb=_14.hitch(this,this.addThumb);this.handleImgLoad=_14.hitch(this,this.handleImgLoad);this.hideCached=_14.hitch(this,this.hideCached);this._onLoadImages={};this.cache=[];this.visibleImages=[];this._cacheCounter=0;this.connect(this.domNode,this.clickEvent,function(_1a){var _1b=_18._getItemNodeFromEvent(_1a);if(_1b&&!_1b._cached){_18.onSelect(_1b._item,_1b._index,_18.items);_14.query(".selected",this.domNode).removeClass("selected");_14.addClass(_1b,"selected");}});_14.addClass(this.domNode,this.thumbSize);this.resize();this.render();},onSelect:function(_1c,_1d,_1e){},_setAnimationEnabledAttr:function(_1f){this.animationEnabled=_1f;_14[_1f?"addClass":"removeClass"](this.domNode,"animated");},_setItemsAttr:function(_20){this.items=_20||[];var _21={};var i;for(i=0;i<this.items.length;i++){_21[this.items[i][this.urlParam]]=1;}var _22=[];for(var url in this._onLoadImages){if(!_21[url]&&this._onLoadImages[url]._conn){_14.disconnect(this._onLoadImages[url]._conn);this._onLoadImages[url].src=null;_22.push(url);}}for(i=0;i<_22.length;i++){delete this._onLoadImages[url];}this.render();},_getItemNode:function(_23){while(_23&&!_14.hasClass(_23,"mblThumb")&&_23!=this.domNode){_23=_23.parentNode;}return (_23==this.domNode)?null:_23;},_getItemNodeFromEvent:function(_24){if(_24.touches&&_24.touches.length>0){_24=_24.touches[0];}return this._getItemNode(_24.target);},resize:function(){this._thumbSize=null;this._size=_14.contentBox(this.domNode);this.disableHide=true;this.render();this.disableHide=false;},hideCached:function(){for(var i=0;i<this.cache.length;i++){if(this.cache[i]){_14.style(this.cache[i],"display","none");}}},render:function(){var i;var url;var _25;var _26;while(this.visibleImages&&this.visibleImages.length>0){_26=this.visibleImages.pop();this.cache.push(_26);if(!this.disableHide){_14.addClass(_26,"hidden");}_26._cached=true;}if(this.cache&&this.cache.length>0){setTimeout(this.hideCached,1000);}if(!this.items||this.items.length==0){return;}for(i=0;i<this.items.length;i++){_25=this.items[i];url=(_14.isString(_25)?_25:_25[this.urlParam]);this.addThumb(_25,url,i);if(this.maxRows>0&&(i+1)/this.maxPerRow>=this.maxRows){break;}}if(!this._thumbSize){return;}var _27=0;var row=-1;var _28=this._thumbSize.w+(this.padding*2);var _29=this._thumbSize.h+(this.padding*2);var _2a=this.thumbNodes=_14.query(".mblThumb",this.domNode);var pos=0;_2a=this.visibleImages;for(i=0;i<_2a.length;i++){if(_2a[i]._cached){continue;}if(pos%this.maxPerRow==0){row++;}_27=pos%this.maxPerRow;this.place(_2a[i],(_27*_28)+this.padding,(row*_29)+this.padding);if(!_2a[i]._loading){_14.removeClass(_2a[i],"hidden");}if(pos==this.selectedIndex){_14[pos==this.selectedIndex?"addClass":"removeClass"](_2a[i],"selected");}pos++;}var _2b=Math.ceil(pos/this.maxPerRow);this._numRows=_2b;this.setContainerHeight((_2b*(this._thumbSize.h+this.padding*2)));},setContainerHeight:function(_2c){_14.style(this.domNode,"height",_2c+"px");},addThumb:function(_2d,url,_2e){var _2f;var _30=false;if(this.cache.length>0){var _31=false;for(var i=0;i<this.cache.length;i++){if(this.cache[i]._url==url){_2f=this.cache.splice(i,1)[0];_31=true;break;}}if(!_2f&&!this.cacheMustMatch){_2f=this.cache.pop();_14.removeClass(_2f,"selected");}else{_30=true;}}if(!_2f){_2f=_14.create("div",{"class":"mblThumb hidden",innerHTML:_14.string.substitute(this.itemTemplate,{url:url},null,this)},this.domNode);}if(this.labelParam){var _32=_14.query(".mblThumbLabel",_2f)[0];if(!_32){_32=_14.create("div",{"class":"mblThumbLabel"},_2f);}_32.innerHTML=_2d[this.labelParam]||"";}_14.style(_2f,"display","");if(!this.disableHide){_14.addClass(_2f,"hidden");}if(!_30){var _33=_14.create("img",{});_33._thumbDiv=_2f;_33._conn=_14.connect(_33,"onload",this.handleImgLoad);_33._url=url;_2f._loading=true;this._onLoadImages[url]=_33;if(_33){_33.src=url;}}this.visibleImages.push(_2f);_2f._index=_2e;_2f._item=_2d;_2f._url=url;_2f._cached=false;if(!this._thumbSize){this._thumbSize=_14.marginBox(_2f);if(this._thumbSize.h==0){this._thumbSize.h=100;this._thumbSize.w=100;}if(this.labelParam){this._thumbSize.h+=8;}this.calcPadding();}},handleImgLoad:function(_34){var img=_34.target;_14.disconnect(img._conn);_14.removeClass(img._thumbDiv,"hidden");img._thumbDiv._loading=false;img._conn=null;var url=img._url;if(this.cacheBust){url+=(url.indexOf("?")>-1?"&":"?")+"cacheBust="+(new Date()).getTime()+"_"+(this._cacheCounter++);}_14.query(".mblThumbSrc",img._thumbDiv).style("backgroundImage","url("+url+")");delete this._onLoadImages[img._url];},calcPadding:function(){var _35=this._size.w;var _36=this._thumbSize.w;var _37=_36+this.minPadding;this.maxPerRow=Math.floor(_35/_37);this.padding=Math.floor((_35-(_36*this.maxPerRow))/(this.maxPerRow*2));},place:function(_38,x,y){_14.style(_38,{"-webkit-transform":"translate("+x+"px,"+y+"px)"});},destroy:function(){var img;var _39=0;for(var url in this._onLoadImages){img=this._onLoadImages[url];if(img){img.src=null;_39++;}}this.inherited(arguments);}});});},"dojox/mobile/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_3a,_3b,_3c,on,_3d){return _3a("dojox.mobile.TransitionEvent",null,{constructor:function(_3e,_3f,_40){this.transitionOptions=_3f;this.target=_3e;this.triggerEvent=_40||null;},dispatch:function(){var _41={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",_41);if(evt){_3b.when(_3d,_3c.hitch(this,function(_42){_3b.when(_42.call(this,evt),_3c.hitch(this,function(_43){this.endTransition(_43);}));}));}},endTransition:function(_44){on.emit(this.target,"endTransition",{detail:_44.transitionOptions});}});});},"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(_45,_46,_47,_48,_49,win,dom,_4a,_4b,on,_4c,_4d,_4e,_4f){var dm=_49.getObject("dojox.mobile",true);var _50=_48("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_4c(_49.hitch(this,function(){on(win.body(),"startTransition",_49.hitch(this,"onStartTransition"));}));},findCurrentView:function(_51,src){if(_51){var w=_4d.byId(_51);if(w&&w.getShowingView){return w.getShowingView();}}if(dm.currentView){return dm.currentView;}w=src;while(true){w=w.getParent();if(!w){return null;}if(_4a.contains(w.domNode,"mblView")){break;}}return w;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail||(evt.detail&&!evt.detail.moveTo&&!evt.detail.href&&!evt.detail.url&&!evt.detail.scene)){return;}var w=this.findCurrentView(evt.detail.moveTo,(evt.target&&evt.target.id)?_4d.byId(evt.target.id):_4d.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_4d.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_4d.byId(evt.target.id).hrefTarget;if(t){dm.openWindow(evt.detail.href,t);}else{w.performTransition(null,evt.detail.transitionDir,evt.detail.transition,evt.target,function(){location.href=evt.detail.href;});}return;}else{if(evt.detail.scene){_47.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _52=evt.detail.moveTo;if(evt.detail.url){var id;if(dm._viewMap&&dm._viewMap[evt.detail.url]){id=dm._viewMap[evt.detail.url];}else{var _53=this._text;if(!_53){if(_4d.byId(evt.target.id).sync){_45.xhrGet({url:evt.detail.url,sync:true,load:function(_54){_53=_49.trim(_54);}});}else{var s="dojo/_base/xhr";require([s],_49.hitch(this,function(xhr){var _55=_4e.getInstance();win.body().appendChild(_55.domNode);_55.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(_49.hitch(this,function(_56,_57){_55.stop();if(_56){this._text=_56;new _4f(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_52,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_58){_55.stop();});}));return;}}this._text=null;id=this._parse(_53,_4d.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_52=id;w=this.findCurrentView(_52,_4d.byId(evt.target.id))||w;}var src=_4d.getEnclosingWidget(evt.target);var _59,_5a;if(src&&src.callback){_59=src;_5a=src.callback;}w.performTransition(_52,evt.detail.transitionDir,evt.detail.transition,_59,_5a);},_parse:function(_5b,id){var _5c,_5d,i,j,len;var _5e=this.findCurrentView();var _5f=_4d.byId(id)&&_4d.byId(id).containerNode||dom.byId(id)||_5e&&_5e.domNode.parentNode||win.body();var _60=null;for(j=_5f.childNodes.length-1;j>=0;j--){var c=_5f.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_60=c;break;}}}if(_5b.charAt(0)==="<"){_5c=_4b.create("DIV",{innerHTML:_5b});for(i=0;i<_5c.childNodes.length;i++){var n=_5c.childNodes[i];if(n.nodeType===1){_5d=n;break;}}if(!_5d){return;}_5d.style.visibility="hidden";_5f.insertBefore(_5c,_60);var ws=_45.parser.parse(_5c);_46.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_5c.childNodes.length;i<len;i++){_5f.insertBefore(_5c.firstChild,_60);}_5f.removeChild(_5c);_4d.byNode(_5d)._visible=true;}else{if(_5b.charAt(0)==="{"){_5c=_4b.create("DIV");_5f.insertBefore(_5c,_60);this._ws=[];_5d=this._instantiate(eval("("+_5b+")"),_5c);for(i=0;i<this._ws.length;i++){var w=this._ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}this._ws=null;}}_5d.style.display="none";_5d.style.visibility="visible";return _45.hash?"#"+_5d.id:_5d.id;},_instantiate:function(obj,_61,_62){var _63;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=_49.getObject(key);if(!cls){continue;}var _64={};var _65=cls.prototype;var _66=_49.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<_66.length;i++){for(var _67 in _66[i]){if(_67.charAt(0)=="@"){var val=_66[i][_67];_67=_67.substring(1);if(typeof _65[_67]=="string"){_64[_67]=val;}else{if(typeof _65[_67]=="number"){_64[_67]=val-0;}else{if(typeof _65[_67]=="boolean"){_64[_67]=(val!="false");}else{if(typeof _65[_67]=="object"){_64[_67]=eval("("+val+")");}}}}}}_63=new cls(_64,_61);if(_61){_63._visible=true;this._ws.push(_63);}if(_62&&_62.addChild){_62.addChild(_63);}this._instantiate(_66[i],null,_63);}}return _63&&_63.domNode;}});new _50();return _50;});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_68,win,_69,_6a,_6b,_6c,_6d){return _68("dojox.mobile.ToolBarButton",_6d,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_69.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _6e;if(this.selected){_6e=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_6e=this._defaultColor;}}_69.add(this.domNode,_6e);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_6a.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_6c.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_69.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_6c.createDomButton(this.domNode)){_69.add(this.domNode,"mblToolBarButtonDomButton");}else{_69.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_69.toggle(this.domNode,this._selColor,!arguments[0]);this.selected=!arguments[0];},deselect:function(){this.select(true);},onClick:function(e){this.setTransitionPos(e);this.defaultClickAction();},_setBtnClassAttr:function(_6f){var _70=this.domNode;if(_70.className.match(/(mblDomButton\w+)/)){_69.remove(_70,RegExp.$1);}_69.add(_70,_6f);if(_6c.createDomButton(this.domNode)){_69.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(_71){this.label=_71;this.domNode.innerHTML=this._cv?this._cv(_71):_71;}});});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_72,_73,_74,_75,_76,_77,_78,_79,_7a){return _74("dojox.mobile._ItemBase",[_78,_77,_76],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",transition:"",transitionDir:1,transitionOptions:null,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _7b=this.getParent();if(_7b){if(!this.transition){this.transition=_7b.transition;}if(this.icon&&_7b.iconBase&&_7b.iconBase.charAt(_7b.iconBase.length-1)==="/"){this.icon=_7b.iconBase+this.icon;}if(!this.icon){this.icon=_7b.iconBase;}if(!this.iconPos){this.iconPos=_7b.iconPos;}}},select:function(){},deselect:function(){},defaultClickAction:function(e){if(this.toggle){if(this.selected){this.deselect();}else{this.select();}}else{if(!this.selected){this.select();if(!this.selectOne){var _7c=this;setTimeout(function(){_7c.deselect();},this._duration);}var _7d;if(this.moveTo||this.href||this.url||this.scene){_7d={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_7d=this.transitionOptions;}}if(_7d){return new _79(this.domNode,_7d,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_75.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof _7a){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_7e,_7f,url,_80){if(_73.isDebug){var _81=arguments.callee._ach||(arguments.callee._ach={}),_82=(arguments.callee.caller||"unknown caller").toString();if(!_81[_82]){_72.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_82,"","2.0");_81[_82]=true;}}new _79(this.domNode,{moveTo:_7e,href:_7f,url:url,scene:_80,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_83,_84,_85,_86,_87,_88,has,win){if(has("ie")||has("mozilla")){_88(90,function(){var div=_86.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_84.blankGif||_83.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_87.getComputedStyle(div);if(cs){var _89=cs.backgroundImage;var _8a=(cs.borderTopColor==cs.borderRightColor)||(_89!=null&&(_89=="none"||_89=="url(invalid-url:)"));if(_8a){_85.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_8b,_8c){return _8b("dijit._Contained",null,{_getSibling:function(_8d){var _8e=this.domNode;do{_8e=_8e[_8d+"Sibling"];}while(_8e&&_8e.nodeType!=1);return _8e&&_8c.byNode(_8e);},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);}});});},"dijit/form/_TextBoxMixin":function(){define("dijit/form/_TextBoxMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/_base/event","dojo/keys","dojo/_base/lang",".."],function(_8f,_90,dom,_91,_92,_93,_94){var _95=_90("dijit.form._TextBoxMixin",null,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_96,_97,_98){var _99;if(_96!==undefined){_99=this.filter(_96);if(typeof _98!="string"){if(_99!==null&&((typeof _99!="number")||!isNaN(_99))){_98=this.filter(this.format(_99,this.constraints));}else{_98="";}}}if(_98!=null&&_98!=undefined&&((typeof _98)!="number"||!isNaN(_98))&&this.textbox.value!=_98){this.textbox.value=_98;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_98);}this.inherited(arguments,[_99,_97]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_9a){if(_9a===null||_9a===undefined){_9a="";}else{if(typeof _9a!="string"){_9a=String(_9a);}}this.textbox.value=_9a;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_9a);}},format:function(_9b){return ((_9b==null||_9b==undefined)?"":(_9b.toString?_9b.toString():_9b));},parse:function(_9c){return _9c;},_refreshState:function(){},onInput:function(){},__skipInputEvent:false,_onInput:function(){if(this.textDir=="auto"){this.applyTextDir(this.focusNode,this.focusNode.value);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);var _9d=function(e){var _9e=e.charOrCode||e.keyCode||229;if(e.type=="keydown"){switch(_9e){case _92.SHIFT:case _92.ALT:case _92.CTRL:case _92.META:case _92.CAPS_LOCK:return;default:if(_9e>=65&&_9e<=90){return;}}}if(e.type=="keypress"&&typeof _9e!="string"){return;}if(e.type=="input"){if(this.__skipInputEvent){this.__skipInputEvent=false;return;}}else{this.__skipInputEvent=true;}var _9f=_93.mixin({},e,{charOrCode:_9e,wasConsumed:false,preventDefault:function(){_9f.wasConsumed=true;e.preventDefault();},stopPropagation:function(){e.stopPropagation();}});if(this.onInput(_9f)===false){_91.stop(_9f);}if(_9f.wasConsumed){return;}setTimeout(_93.hitch(this,"_onInput",_9f),0);};_8f.forEach(["onkeydown","onkeypress","onpaste","oncut","oninput","oncompositionend"],function(_a0){this.connect(this.textbox,_a0,_9d);},this);},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=_93.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(_a1){return _a1.substring(0,1).toUpperCase()+_a1.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}},_isTextSelected:function(){return this.textbox.selectionStart==this.textbox.selectionEnd;},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);if(this._isTextSelected()){_95.selectInputText(this.textbox);}});}this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);},_setTextDirAttr:function(_a2){if(!this._created||this.textDir!=_a2){this._set("textDir",_a2);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_95._setSelectionRange=_94._setSelectionRange=function(_a3,_a4,_a5){if(_a3.setSelectionRange){_a3.setSelectionRange(_a4,_a5);}};_95.selectInputText=_94.selectInputText=function(_a6,_a7,_a8){_a6=dom.byId(_a6);if(isNaN(_a7)){_a7=0;}if(isNaN(_a8)){_a8=_a6.value?_a6.value.length:0;}try{_a6.focus();_95._setSelectionRange(_a6,_a7,_a8);}catch(e){}};return _95;});},"dijit/Viewport":function(){define("dijit/Viewport",["dojo/Evented","dojo/on","dojo/ready","dojo/_base/sniff","dojo/_base/window","dojo/window"],function(_a9,on,_aa,has,win,_ab){var _ac=new _a9();var _ad;_aa(200,function(){var _ae=_ab.getBox();_ac._rlh=on(win.global,"resize",function(){var _af=_ab.getBox();if(_ae.h==_af.h&&_ae.w==_af.w){return;}_ae=_af;_ac.emit("resize");});if(has("ie")==8){var _b0=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_b0){_b0=screen.deviceXDPI;_ac.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_ad=evt.target;});on(document,"focusout",function(evt){_ad=null;});}});_ac.getEffectiveBox=function(doc){var box=_ab.getBox(doc);var tag=_ad&&_ad.tagName&&_ad.tagName.toLowerCase();if(has("ios")&&_ad&&!_ad.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_ad.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var _b1=_ad.getBoundingClientRect();box.h=Math.max(box.h,_b1.top+_b1.height);}return box;};return _ac;});},"dojox/mobile/parser":function(){define("dojox/mobile/parser",["dojo/_base/kernel","dojo/_base/config","dojo/_base/lang","dojo/_base/window","dojo/ready"],function(_b2,_b3,_b4,win,_b5){var dm=_b4.getObject("dojox.mobile",true);var _b6=new function(){this.instantiate=function(_b7,_b8,_b9){_b8=_b8||{};_b9=_b9||{};var i,ws=[];if(_b7){for(i=0;i<_b7.length;i++){var n=_b7[i];var cls=_b4.getObject(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type"));var _ba=cls.prototype;var _bb={},_bc,v,t;_b4.mixin(_bb,eval("({"+(n.getAttribute("data-dojo-props")||"")+"})"));_b4.mixin(_bb,_b9.defaults);_b4.mixin(_bb,_b8);for(_bc in _ba){v=n.getAttributeNode(_bc);v=v&&v.nodeValue;t=typeof _ba[_bc];if(!v&&(t!=="boolean"||v!=="")){continue;}if(t==="string"){_bb[_bc]=v;}else{if(t==="number"){_bb[_bc]=v-0;}else{if(t==="boolean"){_bb[_bc]=(v!=="false");}else{if(t==="object"){_bb[_bc]=eval("("+v+")");}}}}}_bb["class"]=n.className;_bb.style=n.style&&n.style.cssText;v=n.getAttribute("data-dojo-attach-point");if(v){_bb.dojoAttachPoint=v;}v=n.getAttribute("data-dojo-attach-event");if(v){_bb.dojoAttachEvent=v;}var _bd=new cls(_bb,n);ws.push(_bd);var _be=n.getAttribute("jsId")||n.getAttribute("data-dojo-id");if(_be){_b4.setObject(_be,_bd);}}for(i=0;i<ws.length;i++){var w=ws[i];!_b9.noStart&&w.startup&&!w._started&&w.startup();}}return ws;};this.parse=function(_bf,_c0){if(!_bf){_bf=win.body();}else{if(!_c0&&_bf.rootNode){_c0=_bf;_bf=_bf.rootNode;}}var _c1=_bf.getElementsByTagName("*");var i,_c2=[];for(i=0;i<_c1.length;i++){var n=_c1[i];if(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type")){_c2.push(n);}}var _c3=_c0&&_c0.template?{template:true}:null;return this.instantiate(_c2,_c3,_c0);};}();if(_b3.parseOnLoad){_b5(100,_b6,"parse");}dm.parser=_b6;_b2.parser=_b6;return _b6;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_c4,_c5,_c6,_c7){return _c5("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_c8,_c9){var _ca=this.containerNode;if(_c9&&typeof _c9=="number"){var _cb=this.getChildren();if(_cb&&_cb.length>=_c9){_ca=_cb[_c9-1].domNode;_c9="after";}}_c6.place(_c8.domNode,_ca,_c9);if(this._started&&!_c8._started){_c8.startup();}},removeChild:function(_cc){if(typeof _cc=="number"){_cc=this.getChildren()[_cc];}if(_cc){var _cd=_cc.domNode;if(_cd&&_cd.parentNode){_cd.parentNode.removeChild(_cd);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_ce,dir){var _cf=_ce.domNode,_d0=(dir>0?"nextSibling":"previousSibling");do{_cf=_cf[_d0];}while(_cf&&(_cf.nodeType!=1||!_c7.byNode(_cf)));return _cf&&_c7.byNode(_cf);},getIndexOfChild:function(_d1){return _c4.indexOf(this.getChildren(),_d1);}});});},"dojox/mobile/app/SceneController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/_base"],function(_d2,_d3,_d4){_d3.provide("dojox.mobile.app.SceneController");_d3.experimental("dojox.mobile.app.SceneController");_d3.require("dojox.mobile._base");(function(){var app=_d4.mobile.app;var _d5={};_d3.declare("dojox.mobile.app.SceneController",_d4.mobile.View,{stageController:null,keepScrollPos:false,init:function(_d6,_d7){this.sceneName=_d6;this.params=_d7;var _d8=app.resolveTemplate(_d6);this._deferredInit=new _d3.Deferred();if(_d5[_d6]){this._setContents(_d5[_d6]);}else{_d3.xhrGet({url:_d8,handleAs:"text"}).addCallback(_d3.hitch(this,this._setContents));}return this._deferredInit;},_setContents:function(_d9){_d5[this.sceneName]=_d9;this.domNode.innerHTML="<div>"+_d9+"</div>";var _da="";var _db=this.sceneName.split("-");for(var i=0;i<_db.length;i++){_da+=_db[i].substring(0,1).toUpperCase()+_db[i].substring(1);}_da+="Assistant";this.sceneAssistantName=_da;var _dc=this;_d4.mobile.app.loadResourcesForScene(this.sceneName,function(){var _dd;if(typeof (_d3.global[_da])!="undefined"){_dc._initAssistant();}else{var _de=app.resolveAssistant(_dc.sceneName);_d3.xhrGet({url:_de,handleAs:"text"}).addCallback(function(_df){try{_d3.eval(_df);}catch(e){throw e;}_dc._initAssistant();});}});},_initAssistant:function(){var cls=_d3.getObject(this.sceneAssistantName);if(!cls){throw Error("Unable to resolve scene assistant "+this.sceneAssistantName);}this.assistant=new cls(this.params);this.assistant.controller=this;this.assistant.domNode=this.domNode.firstChild;this.assistant.setup();this._deferredInit.callback();},query:function(_e0,_e1){return _d3.query(_e0,_e1||this.domNode);},parse:function(_e2){var _e3=this._widgets=_d4.mobile.parser.parse(_e2||this.domNode,{controller:this});for(var i=0;i<_e3.length;i++){_e3[i].set("controller",this);}},getWindowSize:function(){return {w:_d3.global.innerWidth,h:_d3.global.innerHeight};},showAlertDialog:function(_e4){var _e5=_d3.marginBox(this.assistant.domNode);var _e6=new _d4.mobile.app.AlertDialog(_d3.mixin(_e4,{controller:this}));this.assistant.domNode.appendChild(_e6.domNode);_e6.show();},popupSubMenu:function(_e7){var _e8=new _d4.mobile.app.ListSelector({controller:this,destroyOnHide:true,onChoose:_e7.onChoose});this.assistant.domNode.appendChild(_e8.domNode);_e8.set("data",_e7.choices);_e8.show(_e7.fromNode);}});})();});},"dojox/mobile/app/_base":function(){define("dojox/mobile/app/_base",["dijit","dojo","dojox","dojo/require!dijit/_base,dijit/_WidgetBase,dojox/mobile,dojox/mobile/parser,dojox/mobile/Button,dojox/mobile/app/_event,dojox/mobile/app/_Widget,dojox/mobile/app/StageController,dojox/mobile/app/SceneController,dojox/mobile/app/SceneAssistant,dojox/mobile/app/AlertDialog,dojox/mobile/app/List,dojox/mobile/app/ListSelector,dojox/mobile/app/TextBox,dojox/mobile/app/ImageView,dojox/mobile/app/ImageThumbView"],function(_e9,_ea,_eb){_ea.provide("dojox.mobile.app._base");_ea.experimental("dojox.mobile.app._base");_ea.require("dijit._base");_ea.require("dijit._WidgetBase");_ea.require("dojox.mobile");_ea.require("dojox.mobile.parser");_ea.require("dojox.mobile.Button");_ea.require("dojox.mobile.app._event");_ea.require("dojox.mobile.app._Widget");_ea.require("dojox.mobile.app.StageController");_ea.require("dojox.mobile.app.SceneController");_ea.require("dojox.mobile.app.SceneAssistant");_ea.require("dojox.mobile.app.AlertDialog");_ea.require("dojox.mobile.app.List");_ea.require("dojox.mobile.app.ListSelector");_ea.require("dojox.mobile.app.TextBox");_ea.require("dojox.mobile.app.ImageView");_ea.require("dojox.mobile.app.ImageThumbView");(function(){var _ec;var _ed;var _ee=["dojox.mobile","dojox.mobile.parser"];var _ef={};var _f0;var _f1;var _f2=[];function _f3(_f4,_f5){var _f6;var url;do{_f6=_f4.pop();if(_f6.source){url=_f6.source;}else{if(_f6.module){url=_ea.moduleUrl(_f6.module)+".js";}else{return;}}}while(_f4.length>0&&_ef[url]);if(_f4.length<1&&_ef[url]){_f5();return;}_ea.xhrGet({url:url,sync:false}).addCallbacks(function(_f7){_ea["eval"](_f7);_ef[url]=true;if(_f4.length>0){_f3(_f4,_f5);}else{_f5();}},function(){});};var _f8=function(){_ec=new _eb.mobile.app.StageController(_f1);var _f9={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(_ea.global["appInfo"]){_ea.mixin(_f9,_ea.global["appInfo"]);}_ed=_eb.mobile.app.info=_f9;if(_ed.title){var _fa=_ea.query("head title")[0]||_ea.create("title",{},_ea.query("head")[0]);document.title=_ed.title;}_ec.pushScene(_ed.initialScene);};var _fb=function(){var _fc=false;if(_ea.global.BackButton){BackButton.override();_ea.connect(document,"backKeyDown",function(e){_ea.publish("/dojox/mobile/app/goback");});_fc=true;}else{if(_ea.global.Mojo){}}if(_fc){_ea.addClass(_ea.body(),"mblNativeBack");}};_ea.mixin(_eb.mobile.app,{init:function(_fd){_f1=_fd||_ea.body();_eb.mobile.app.STAGE_CONTROLLER_ACTIVE=true;_ea.subscribe("/dojox/mobile/app/goback",function(){_ec.popScene();});_ea.subscribe("/dojox/mobile/app/alert",function(_fe){_eb.mobile.app.getActiveSceneController().showAlertDialog(_fe);});_ea.subscribe("/dojox/mobile/app/pushScene",function(_ff,_100){_ec.pushScene(_ff,_100||{});});_ea.xhrGet({url:"view-resources.json",load:function(data){var _101=[];if(data){_f2=data=_ea.fromJson(data);for(var i=0;i<data.length;i++){if(!data[i].scene){_101.push(data[i]);}}}if(_101.length>0){_f3(_101,_f8);}else{_f8();}},error:_f8});_fb();},getActiveSceneController:function(){return _ec.getActiveSceneController();},getStageController:function(){return _ec;},loadResources:function(_102,_103){_f3(_102,_103);},loadResourcesForScene:function(_104,_105){var _106=[];for(var i=0;i<_f2.length;i++){if(_f2[i].scene==_104){_106.push(_f2[i]);}}if(_106.length>0){_f3(_106,_105);}else{_105();}},resolveTemplate:function(_107){return "app/views/"+_107+"/"+_107+"-scene.html";},resolveAssistant:function(_108){return "app/assistants/"+_108+"-assistant.js";}});})();});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_109,_10a){_10a.scrollIntoView=function(node,pos){_109.scrollIntoView(node,pos);};});},"dojo/fx":function(){define(["./_base/lang","./Evented","./_base/kernel","./_base/array","./_base/connect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(lang,_10b,dojo,_10c,_10d,_10e,dom,_10f,geom,_110,_111){if(!dojo.isAsync){_110(0,function(){var _112=["./fx/Toggler"];_111(_112);});}var _113=dojo.fx={};var _114={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _115=function(_116){this._index=-1;this._animations=_116||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_10c.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};_115.prototype=new _10b();lang.extend(_115,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_10d.disconnect(this._onAnimateCtx);_10d.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=_10d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_10d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_117,_118){if(!this._current){this._current=this._animations[this._index=0];}if(!_118&&this._current.status()=="playing"){return this;}var _119=_10d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_11a=_10d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_11b=_10d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_10d.disconnect(_119);_10d.disconnect(_11a);_10d.disconnect(_11b);});if(this._onAnimateCtx){_10d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_10d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_10d.disconnect(this._onEndCtx);}this._onEndCtx=_10d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_10d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_10d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_11c,_11d){this.pause();var _11e=this.duration*_11c;this._current=null;_10c.some(this._animations,function(a){if(a.duration<=_11e){this._current=a;return true;}_11e-=a.duration;return false;});if(this._current){this._current.gotoPercent(_11e/this._current.duration,_11d);}return this;},stop:function(_11f){if(this._current){if(_11f){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=_10d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);_10d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){_10d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){_10d.disconnect(this._onEndCtx);}}});lang.extend(_115,_114);_113.chain=function(_120){return new _115(_120);};var _121=function(_122){this._animations=_122||[];this._connects=[];this._finished=0;this.duration=0;_10c.forEach(_122,function(a){var _123=a.duration;if(a.delay){_123+=a.delay;}if(this.duration<_123){this.duration=_123;}this._connects.push(_10d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new _10e.Animation({curve:[0,1],duration:this.duration});var self=this;_10c.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(_10d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};lang.extend(_121,{_doAction:function(_124,args){_10c.forEach(this._animations,function(a){a[_124].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_125,args){var t=this._pseudoAnimation;t[_125].apply(t,args);},play:function(_126,_127){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(_128,_129){var ms=this.duration*_128;_10c.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_129);});this._call("gotoPercent",arguments);return this;},stop:function(_12a){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){_10c.forEach(this._connects,_10d.disconnect);}});lang.extend(_121,_114);_113.combine=function(_12b){return new _121(_12b);};_113.wipeIn=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_10e.animateProperty(lang.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 _12c=_10f.get(node,"height");return Math.max(_12c,1);}},end:function(){return node.scrollHeight;}}}},args));var fini=function(){s.height="auto";s.overflow=o;};_10d.connect(anim,"onStop",fini);_10d.connect(anim,"onEnd",fini);return anim;};_113.wipeOut=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_10e.animateProperty(lang.mixin({properties:{height:{end:1}}},args));_10d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});var fini=function(){s.overflow=o;s.height="auto";s.display="none";};_10d.connect(anim,"onStop",fini);_10d.connect(anim,"onEnd",fini);return anim;};_113.slideTo=function(args){var node=args.node=dom.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=_10f.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=geom.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=_10e.animateProperty(lang.mixin({properties:{top:args.top||0,left:args.left||0}},args));_10d.connect(anim,"beforeBegin",anim,init);return anim;};return _113;});},"dijit/_base":function(){define("dijit/_base",[".","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_12d){return _12d._base;});},"dojox/mobile/sniff":function(){define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_12e,_12f,_130,_131,has){var cls=_12f("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],constructor:function(){this._bars=[];this.domNode=_130.create("DIV");this.domNode.className="mblProgContainer";if(_12e["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_131.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_130.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_130.create("DIV",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.domNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.domNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _132=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_132.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_132._bars[i].style.backgroundColor=c[idx];}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_130.create("IMG",{src:file},this.domNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.domNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(){if(!cls._instance){cls._instance=new cls();}return cls._instance;};return cls;});},"dijit/form/_FormWidgetMixin":function(){define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/_base/sniff","dojo/_base/window","dojo/window","../a11y"],function(_133,_134,_135,_136,lang,_137,has,win,_138,a11y){return _134("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_139){this._set("disabled",_139);_135.set(this.focusNode,"disabled",_139);if(this.valueNode){_135.set(this.valueNode,"disabled",_139);}this.focusNode.setAttribute("aria-disabled",_139?"true":"false");if(_139){this._set("hovering",false);this._set("active",false);var _13a="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_133.forEach(lang.isArray(_13a)?_13a:[_13a],function(_13b){var node=this[_13b];if(has("webkit")||a11y.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _13c=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_13d);this.disconnect(_13c);});var _13d=this.connect(win.body(),"onmouseup",function(){this.disconnect(_13d);this.disconnect(_13c);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_138.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_136.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_13e,_13f){if(this._lastValueReported==undefined&&(_13f===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_13e;}this._pendingOnChange=this._pendingOnChange||(typeof _13e!=typeof this._lastValueReported)||(this.compare(_13e,this._lastValueReported)!=0);if((this.intermediateChanges||_13f||_13f===undefined)&&this._pendingOnChange){this._lastValueReported=_13e;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_13e);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_140,_141,_142,_143,_144,lang,on,has,win){has.add("bgIframe",has("ie")||has("mozilla"));var _145=new function(){var _146=[];this.pop=function(){var _147;if(_146.length){_147=_146.pop();_147.style.display="";}else{if(has("ie")<9){var burl=_142["dojoBlankHtmlUrl"]||_140.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="<iframe src='"+burl+"' role='presentation'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_147=win.doc.createElement(html);}else{_147=_143.create("iframe");_147.src="javascript:\"\"";_147.className="dijitBackgroundIframe";_147.setAttribute("role","presentation");_144.set(_147,"opacity",0.1);}_147.tabIndex=-1;}return _147;};this.push=function(_148){_148.style.display="none";_146.push(_148);};}();_141.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(has("bgIframe")){var _149=(this.iframe=_145.pop());node.appendChild(_149);if(has("ie")<7||has("quirks")){this.resize(node);this._conn=on(node,"resize",lang.hitch(this,function(){this.resize(node);}));}else{_144.set(_149,{width:"100%",height:"100%"});}}};lang.extend(_141.BackgroundIframe,{resize:function(node){if(this.iframe){_144.set(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){this._conn.remove();this._conn=null;}if(this.iframe){_145.push(this.iframe);delete this.iframe;}}});return _141.BackgroundIframe;});},"dojox/mobile":function(){define([".","dojo/_base/lang","dojox/mobile/_base"],function(_14a,lang,base){lang.getObject("mobile",true,_14a);return _14a.mobile;});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/sniff","./_FormWidgetMixin"],function(_14b,_14c,keys,has,_14d){return _14b("dijit.form._FormValueMixin",_14d,{readOnly:false,_setReadOnlyAttr:function(_14e){_14c.set(this.focusNode,"readOnly",_14e);this._set("readOnly",_14e);},postCreate:function(){this.inherited(arguments);if(has("ie")){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_14f,_150){this._handleOnChange(_14f,_150);},_handleOnChange:function(_151,_152){this._set("value",_151);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();te=document.createEventObject();te.keyCode=keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}}});});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dijit/registry","./sniff","./uacss"],function(dojo,_153,_154,_155,lang,win,_156,_157,_158,_159,_15a,has,_15b){var dm=lang.getObject("dojox.mobile",true);dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_156.replace(win.doc.documentElement,dim.h>dim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_15c){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_15c||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_15c||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_156.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_155.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_15d,_15e){if(_15d&&_15e){var arr=_153.map(_15e.split(/[ ,]/),function(item){return item-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_158.set(_15d,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_15d.parentNode?_158.get(_15d,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_154["mblHideAddressBarWait"])==="number"?_154["mblHideAddressBarWait"]:1500;dm.hide_1=function(_15f){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_15f){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_15f||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_155.publish("/dojox/mobile/resizeAll",[evt,root]);dm.updateOrient();dm.detectScreenSize();var _160=function(w){var _161=w.getParent&&w.getParent();return !!((!_161||!_161.resize)&&w.resize);};var _162=function(w){_153.forEach(w.getChildren(),function(_163){if(_160(_163)){_163.resize();}_162(_163);});};if(root){if(root.resize){root.resize();}_162(root);}else{_153.forEach(_153.filter(_15a.toArray(),_160),function(w){w.resize();});}};dm.openWindow=function(url,_164){win.global.open(url,_164||"_blank");};dm.createDomButton=function(_165,_166,_167){if(!dm._domButtons){if(has("webkit")){var _168=function(_169,dic){var i,j;if(!_169){var dic={};var ss=dojo.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_168(ss[i],dic);}return dic;}var _16a=_169.cssRules||[];for(i=0;i<_16a.length;i++){var rule=_16a[i];if(rule.href&&rule.styleSheet){_168(rule.styleSheet,dic);}else{if(rule.selectorText){var sels=rule.selectorText.split(/,/);for(j=0;j<sels.length;j++){var sel=sels[j];var n=sel.split(/>/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}};dm._domButtons=_168();}else{dm._domButtons={};}}var s=_165.className;var node=_167||_165;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _16b=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(dm._domButtons[_16b]!==undefined){nDiv=dm._domButtons[_16b];}}var _16c=null;if(has("bb")&&_154["mblBBBoxShadowWorkaround"]!==false){_16c={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_157.create("DIV",_16c,p);}if(_167){setTimeout(function(){_156.remove(_165,_16b);},0);_156.add(_167,_16b);}}else{if(s.indexOf(".")!==-1){_157.create("IMG",{src:s},node);}else{return null;}}_156.add(node,"mblDomButton");if(_154["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_158.set(node,"webkitTransform","translate3d(0,0,0)");}!!_166&&_158.set(node,_166);return node;};dm.createIcon=function(icon,_16d,node,_16e,_16f){if(icon&&icon.indexOf("mblDomButton")===0){if(node&&node.className.match(/(mblDomButton\w+)/)){_156.remove(node,RegExp.$1);}else{node=_157.create("DIV");}node.title=_16e;_156.add(node,icon);dm.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_157.create("IMG",{alt:_16e});}node.src=(icon||"").replace("${theme}",dm.currentTheme);dm.setupIcon(node,_16d);if(_16f&&_16d){var arr=_16d.split(/[ ,]/);_158.set(_16f,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_16f){_16f.appendChild(node);}return node;};dm._iw=_154["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_157.create("div");}if(_154.parseOnLoad){_159(90,function(){var _170=win.body().getElementsByTagName("*");var i,len,s;len=_170.length;for(i=0;i<len;i++){s=_170[i].getAttribute("dojoType");if(s){if(_170[i].parentNode.getAttribute("lazy")=="true"){_170[i].setAttribute("__dojoType",s);_170[i].removeAttribute("dojoType");}}}});}_159(function(){dm.detectScreenSize(true);if(_154["mblApplyPageStyles"]!==false){_156.add(win.doc.documentElement,"mobile");}if(has("chrome")){_156.add(win.doc.documentElement,"dj_chrome");}if(_154["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_154["mblAndroidWorkaroundButtonStyle"]!==false){_157.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("android")<3){_158.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_155.connect(null,"onfocus",null,function(e){_158.set(win.doc.documentElement,"webkitTransform","");});_155.connect(null,"onblur",null,function(e){_158.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_154["mblAndroid3Workaround"]!==false){_158.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_154["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_154["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_154["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_155.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _171=win.body().getElementsByTagName("*");var i,len=_171.length,s;for(i=0;i<len;i++){s=_171[i].getAttribute("__dojoType");if(s){_171[i].setAttribute("dojoType",s);_171[i].removeAttribute("__dojoType");}}if(dojo.hash){var _172=function(root){if(!root){return [];}var arr=_15a.findWidgets(root);var _173=arr;for(var i=0;i<_173.length;i++){arr=arr.concat(_172(_173[i].containerNode));}return arr;};_155.subscribe("/dojo/hashchange",null,function(_174){var view=dm.currentView;if(!view){return;}var _175=dm._params;if(!_175){var _176=_174?_174:dm._defaultView.id;var _177=_172(view.domNode);var dir=1,_178="slide";for(i=0;i<_177.length;i++){var w=_177[i];if("#"+_176==w.moveTo){_178=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_175=[_176,dir,_178];}view.performTransition.apply(view,_175);dm._params=null;});}win.body().style.visibility="visible";});_15a.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return _15a.byId(id);}node=node._parentNode||node.parentNode;}return null;};return dm;});},"dojox/mobile/Heading":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./View"],function(_179,_17a,_17b,lang,win,_17c,_17d,_17e,_17f,_180,_181,_182,View){var dm=lang.getObject("dojox.mobile",true);return _17b("dojox.mobile.Heading",[_182,_181,_180],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",backProp:{className:"mblArrowButton"},tag:"H1",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.domNode.className="mblHeading";if(!this.label){_179.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_17d.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_17d.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_17d.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _183=this.getParent&&this.getParent();if(!_183||!_183.resize){var _184=this;setTimeout(function(){_184.resize();},0);}this.inherited(arguments);},resize:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}if(this.labelNode){var _185,_186;var _187=this.containerNode.childNodes;for(var i=_187.length-1;i>=0;i--){var c=_187[i];if(c.nodeType===1){if(!_186&&_17c.contains(c,"mblToolBarButton")&&_17e.get(c,"float")==="right"){_186=c;}if(!_185&&(_17c.contains(c,"mblToolBarButton")&&_17e.get(c,"float")==="left"||c===this._btn)){_185=c;}}}if(!this.labelNodeLen&&this.label){this.labelNode.style.display="inline";this.labelNodeLen=this.labelNode.offsetWidth;this.labelNode.style.display="";}var bw=this.domNode.offsetWidth;var rw=_186?bw-_186.offsetLeft+5:0;var lw=_185?_185.offsetLeft+_185.offsetWidth+5:0;var tw=this.labelNodeLen||0;_17c[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_179.forEach(this.getChildren(),function(_188){if(_188.resize){_188.resize();}});},_setBackAttr:function(back){if(!back){_17d.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_17d.create("DIV",this.backProp,this.domNode,"first");var head=_17d.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_17d.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;this.backBtnNode=btn;this.connect(body,"onclick","onClick");}this.back=back;this._body.innerHTML=this._cv?this._cv(this.back):this.back;}this.resize();},_setLabelAttr:function(_189){this.label=_189;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_189):_189;},findCurrentView:function(){var w=this;while(true){w=w.getParent();if(!w){return null;}if(w instanceof View){break;}}return w;},onClick:function(e){var h1=this.domNode;_17c.add(h1,"mblArrowButtonSelected");setTimeout(function(){_17c.remove(h1,"mblArrowButtonSelected");},1000);if(this.back&&!this.moveTo&&!this.href&&history){history.back();return;}var view=this.findCurrentView();if(view){view.clickedPosX=e.clientX;view.clickedPosY=e.clientY;}this.goTo(this.moveTo,this.href);},goTo:function(_18a,href){var view=this.findCurrentView();if(!view){return;}if(href){view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dm.app&&dm.app.STAGE_CONTROLLER_ACTIVE){_17a.publish("/dojox/mobile/app/goback");}else{var node=_17f.byId(view.convertToId(_18a));if(node){var _18b=node.getParent();while(view){var _18c=view.getParent();if(_18b===_18c){break;}view=_18c;}}if(view){view.performTransition(_18a,-1,this.transition);}}}}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojox/mobile/RoundRectList":function(){define("dojox/mobile/RoundRectList",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_18d,_18e,win,_18f,_190,_191){return _18e("dojox.mobile.RoundRectList",[_191,_190,_18f],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("UL");this.domNode.className="mblRoundRectList";},resize:function(){_18d.forEach(this.getChildren(),function(_192){if(_192.resize){_192.resize();}});},onCheckStateChanged:function(_193,_194){},_setStatefulAttr:function(_195){this.stateful=_195;_18d.forEach(this.getChildren(),function(_196){_196.setArrow&&_196.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_18d.forEach(this.getChildren(),function(_197){_197.deselect&&_197.deselect();});},selectItem:function(item){item.select();}});});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array"],function(_198,lang,_199){return _198("dojo.Stateful",null,{postscript:function(_19a){if(_19a){lang.mixin(this,_19a);}},get:function(name){return this[name];},set:function(name,_19b){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _19c=this[name];this[name]=_19b;if(this._watchCallbacks){this._watchCallbacks(name,_19c,_19b);}return this;},watch:function(name,_19d){var _19e=this._watchCallbacks;if(!_19e){var self=this;_19e=this._watchCallbacks=function(name,_19f,_1a0,_1a1){var _1a2=function(_1a3){if(_1a3){_1a3=_1a3.slice();for(var i=0,l=_1a3.length;i<l;i++){_1a3[i].call(self,name,_19f,_1a0);}}};_1a2(_19e["_"+name]);if(!_1a1){_1a2(_19e["*"]);}};}if(!_19d&&typeof name==="function"){_19d=name;name="*";}else{name="_"+name;}var _1a4=_19e[name];if(typeof _1a4!=="object"){_1a4=_19e[name]=[];}_1a4.push(_19d);return {unwatch:function(){_1a4.splice(_199.indexOf(_1a4,_19d),1);}};}});});},"dojox/mobile/app/List":function(){define(["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(_1a5,dojo,_1a6){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _1a7={};dojo.declare("dojox.mobile.app.List",_1a5._WidgetBase,{items:null,itemTemplate:"",emptyTemplate:"",dividerTemplate:"",dividerFunction:null,labelDelete:"Delete",labelCancel:"Cancel",controller:null,autoDelete:true,enableDelete:true,enableHold:true,formatters:null,_templateLoadCount:0,_mouseDownPos:null,baseClass:"list",constructor:function(){this._checkLoadComplete=dojo.hitch(this,this._checkLoadComplete);this._replaceToken=dojo.hitch(this,this._replaceToken);this._postDeleteAnim=dojo.hitch(this,this._postDeleteAnim);},postCreate:function(){var _1a8=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_1a9){var _1aa=_1a9;if(_1a9.targetTouches&&_1a9.targetTouches.length>0){_1aa=_1a9.targetTouches[0];}var _1ab=_1a8._getRowNode(_1a9.target);if(_1ab){_1a8._setDataInfo(_1ab,_1a9);_1a8._selectRow(_1ab);_1a8._mouseDownPos={x:_1aa.pageX,y:_1aa.pageY};_1a8._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1ac){if(_1ac.targetTouches&&_1ac.targetTouches.length>0){_1ac=_1ac.targetTouches[0];}var _1ad=_1a8._getRowNode(_1ac.target);if(_1ad){_1a8._setDataInfo(_1ad,_1ac);if(_1a8._selectedRow){_1a8.onSelect(_1ad._data,_1ad._idx,_1ad);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1ae){dojo.stopEvent(_1ae);if(!_1a8._selectedRow){return;}var _1af=_1a8._getRowNode(_1ae.target);if(_1a8.enableDelete&&_1af&&!_1a8._deleting){_1a8.handleDrag(_1ae);}});}this.connect(this.domNode,"onclick",function(_1b0){if(_1b0.touches&&_1b0.touches.length>0){_1b0=_1b0.touches[0];}var _1b1=_1a8._getRowNode(_1b0.target,true);if(_1b1){_1a8._setDataInfo(_1b1,_1b0);}});this.connect(this.domNode,"mouseout",function(_1b2){if(_1b2.touches&&_1b2.touches.length>0){_1b2=_1b2.touches[0];}if(_1b2.target==_1a8._selectedRow){_1a8._deselectRow();}});if(!this.itemTemplate){throw Error("An item template must be provided to "+this.declaredClass);}this._loadTemplate(this.itemTemplate,"itemTemplate",this._checkLoadComplete);if(this.emptyTemplate){this._loadTemplate(this.emptyTemplate,"emptyTemplate",this._checkLoadComplete);}if(this.dividerTemplate){this._loadTemplate(this.dividerTemplate,"dividerTemplate",this._checkLoadComplete);}},handleDrag:function(_1b3){var _1b4=_1b3;if(_1b3.targetTouches&&_1b3.targetTouches.length>0){_1b4=_1b3.targetTouches[0];}var diff=_1b4.pageX-this._mouseDownPos.x;var _1b5=Math.abs(diff);if(_1b5>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1b5>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1b5){this.preDelete(diff);}},handleDragCancel:function(){if(this._deleting){return;}dojo.removeClass(this._selectedRow,"hold");this._selectedRow.style.left=0;this._mouseDownPos=null;this._dragThreshold=null;this._deleteBtns&&dojo.style(this._deleteBtns,"display","none");},preDelete:function(_1b6){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1b6+((_1b6>0?1:-1)*this._dragThreshold*0.8)}},onEnd:dojo.hitch(this,function(){if(this.autoDelete){this.deleteRow(this._selectedRow);}})}).play();},deleteRow:function(row){dojo.style(row,{visibility:"hidden",minHeight:"0px"});dojo.removeClass(row,"hold");this._deleteAnimConn=this.connect(row,"webkitAnimationEnd",this._postDeleteAnim);dojo.addClass(row,"collapsed");},_postDeleteAnim:function(_1b7){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1b8=row.nextSibling;var _1b9=row.previousSibling;if(_1b9&&_1b9._isDivider){if(!_1b8||_1b8._isDivider){_1b9.parentNode.removeChild(_1b9);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1b8){if(_1b8._idx){_1b8._idx--;}_1b8=_1b8.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1ba){var mb=dojo.marginBox(_1ba);var pos=dojo._abs(_1ba,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _1a6.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _1a6.mobile.Button({btnClass:"mblBlueButton",label:this.labelCancel}));dojo.place(this.buttons[0].domNode,this._deleteBtns);dojo.place(this.buttons[1].domNode,this._deleteBtns);dojo.addClass(this.buttons[0].domNode,"deleteBtn");dojo.addClass(this.buttons[1].domNode,"cancelBtn");this._handleButtonClick=dojo.hitch(this._handleButtonClick);this.connect(this._deleteBtns,"onclick",this._handleButtonClick);}dojo.removeClass(this._deleteBtns,"fade out fast");dojo.style(this._deleteBtns,{display:"",width:mb.w+"px",height:mb.h+"px",top:(_1ba.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1bb,_1bc){_1bc.splice(_1bb,1);if(_1bc.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1bd){if(_1bd.touches&&_1bd.touches.length>0){_1bd=_1bd.touches[0];}var node=_1bd.target;if(dojo.hasClass(node,"deleteBtn")){this.deleteRow(this._selectedRow);}else{if(dojo.hasClass(node,"cancelBtn")){this.cancelDelete();}else{return;}}dojo.addClass(this._deleteBtns,"fade out");},applyClass:function(node,idx,_1be){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1be.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1bf,_1c0){_1c0.item=_1bf._data;_1c0.index=_1bf._idx;},onSelect:function(data,_1c1,_1c2){},_selectRow:function(row){if(this._deleting&&this._selectedRow&&row!=this._selectedRow){this.cancelDelete();}if(!dojo.hasClass(row,"row")){return;}if(this.enableHold||this.enableDelete){dojo.addClass(row,"hold");}this._selectedRow=row;},_deselectRow:function(){if(!this._selectedRow||this._deleting){return;}this.handleDragCancel();dojo.removeClass(this._selectedRow,"hold");this._selectedRow=null;},_getRowNode:function(_1c3,_1c4){while(_1c3&&!_1c3._data&&_1c3!=this.domNode){if(!_1c4&&dojo.hasClass(_1c3,"noclick")){return null;}_1c3=_1c3.parentNode;}return _1c3==this.domNode?null:_1c3;},applyTemplate:function(_1c5,data){return dojo._toDom(dojo.string.substitute(_1c5,data,this._replaceToken,this.formatters||this));},render:function(){dojo.query("> *:not(.buttons)",this.domNode).forEach(dojo.destroy);if(this.items.length<1&&this.emptyTemplate){dojo.place(dojo._toDom(this.emptyTemplate),this.domNode,"first");}else{this.domNode.appendChild(this._renderRange(0,this.items.length));}if(dojo.hasClass(this.domNode.parentNode,"mblRoundRect")){dojo.addClass(this.domNode.parentNode,"mblRoundRectList");}var divs=dojo.query("> .row",this.domNode);if(divs.length>0){dojo.addClass(divs[0],"first");dojo.addClass(divs[divs.length-1],"last");}},_renderRange:function(_1c6,_1c7){var rows=[];var row,i;var frag=document.createDocumentFragment();_1c6=Math.max(0,_1c6);_1c7=Math.min(_1c7,this.items.length);for(i=_1c6;i<_1c7;i++){row=this.applyTemplate(this.itemTemplate,this.items[i]);dojo.addClass(row,"row");row._data=this.items[i];row._idx=i;rows.push(row);}if(!this.dividerFunction||!this.dividerTemplate){for(i=_1c6;i<_1c7;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1c8=null;var _1c9;var _1ca;for(i=_1c6;i<_1c7;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1c9=this.dividerFunction(this.items[i]);if(_1c9&&_1c9!=_1c8){_1ca=this.applyTemplate(this.dividerTemplate,{label:_1c9,item:this.items[i]});_1ca._isDivider=true;frag.appendChild(_1ca);_1c8=_1c9;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1cb,key){if(key.charAt(0)=="!"){_1cb=dojo.getObject(key.substr(1),false,_this);}if(typeof _1cb=="undefined"){return "";}if(_1cb==null){return "";}return key.charAt(0)=="!"?_1cb:_1cb.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1cc,_1cd){if(!url){_1cd();return;}if(_1a7[url]){this.set(_1cc,_1a7[url]);_1cd();}else{var _1ce=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_1a7[url]=dojo.trim(text);_1ce.set(_1cc,_1a7[url]);_1cd();}});}},_setFormattersAttr:function(_1cf){this.formatters=_1cf;},_setItemsAttr:function(_1d0){this.items=_1d0||[];if(this._templateLoadCount<1&&_1d0){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1d1){_1d1.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojox/mobile/app/ListSelector":function(){define("dojox/mobile/app/ListSelector",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(_1d2,dojo,_1d3){dojo.provide("dojox.mobile.app.ListSelector");dojo.experimental("dojox.mobile.app.ListSelector");dojo.require("dojox.mobile.app._Widget");dojo.require("dojo.fx");dojo.declare("dojox.mobile.app.ListSelector",_1d3.mobile.app._Widget,{data:null,controller:null,onChoose:null,destroyOnHide:false,_setDataAttr:function(data){this.data=data;if(this.data){this.render();}},postCreate:function(){dojo.addClass(this.domNode,"listSelector");var _1d4=this;this.connect(this.domNode,"onclick",function(_1d5){if(!dojo.hasClass(_1d5.target,"listSelectorRow")){return;}if(_1d4.onChoose){_1d4.onChoose(_1d4.data[_1d5.target._idx].value);}_1d4.hide();});this.connect(this.domNode,"onmousedown",function(_1d6){if(!dojo.hasClass(_1d6.target,"listSelectorRow")){return;}dojo.addClass(_1d6.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_1d7){if(!dojo.hasClass(_1d7.target,"listSelectorRow")){return;}dojo.removeClass(_1d7.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_1d8){if(!dojo.hasClass(_1d8.target,"listSelectorRow")){return;}dojo.removeClass(_1d8.target,"listSelectorRow-selected");});var _1d9=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>"},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_1d4.onChoose&&_1d4.onChoose();_1d4.hide();});},show:function(_1da){var _1db;var _1dc=this.controller.getWindowSize();var _1dd;if(_1da){_1dd=dojo._abs(_1da);_1db=_1dd;}else{_1db.x=_1dc.w/2;_1db.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_1dc.w*0.8)+"px"});var _1de=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_1de=Math.max(_1de,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_1de=Math.min(_1de,Math.round(_1dc.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_1de+"px");var _1df=dojo.marginBox(this.domNode).h;var _1e0=this;var _1e1=_1dd?Math.max(30,_1dd.y-_1df-10):this.getScroll().y+30;var _1e2=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_1de},height:{start:1,end:_1df},top:{start:_1db.y,end:_1e1},left:{start:_1db.x,end:(_1dc.w/2-_1de/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_1e0.domNode,"width","inherit");}});var _1e3=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_1e2,_1e3]).play();},hide:function(){var _1e4=this;var _1e5=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_1e4.get("destroyOnHide")){_1e4.destroy();}}});var _1e6=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_1e5,_1e6]).play();},render:function(){dojo.empty(this.domNode);dojo.style(this.domNode,"opacity",0);var row;for(var i=0;i<this.data.length;i++){row=dojo.create("div",{"class":"listSelectorRow "+(this.data[i].className||""),innerHTML:this.data[i].label},this.domNode);row._idx=i;if(i==0){dojo.addClass(row,"first");}if(i==this.data.length-1){dojo.addClass(row,"last");}}},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_1e7,_1e8){return _1e7("dojox.mobile.EdgeToEdgeCategory",_1e8,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1e9,map,_1ea,_1eb){_1eb=_1eb||dojo.global;_1ea=_1ea?lang.hitch(_1eb,_1ea):function(v){return v;};return _1e9.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1ec,key,_1ed){var _1ee=lang.getObject(key,false,map);if(_1ed){_1ee=lang.getObject(_1ed,false,_1eb).call(_1eb,_1ee,key);}return _1ea(_1ee,key).toString();});};dojo.string.trim=String.prototype.trim?lang.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;};return dojo.string;});},"dojox/mobile/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_1ef,_1f0,_1f1,_1f2,_1f3){return _1ef("dojox.mobile.TextBox",[_1f1,_1f2,_1f3],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:"textbox",buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_1f0.create("input",{"type":this.type});}this.inherited(arguments);this.textbox=this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onfocus","_onFocus");this.connect(this.textbox,"onblur","_onBlur");}});});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_1f4,has,_1f5,win,_1f6){var _1f7={},hash={};var _1f8={length:0,add:function(_1f9){if(hash[_1f9.id]){throw new Error("Tried to register widget with id=="+_1f9.id+" but that id is already registered");}hash[_1f9.id]=_1f9;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_1fa){var id;do{id=_1fa+"_"+(_1fa in _1f7?++_1f7[_1fa]:_1f7[_1fa]=0);}while(hash[id]);return _1f6._scopeName=="dijit"?id:_1f6._scopeName+"_"+id;},findWidgets:function(root){var _1fb=[];function _1fc(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _1fd=node.getAttribute("widgetId");if(_1fd){var _1fe=hash[_1fd];if(_1fe){_1fb.push(_1fe);}}else{_1fc(node);}}}};_1fc(root);return _1fb;},_destroyAll:function(){_1f6._curFocus=null;_1f6._prevFocus=null;_1f6._activeStack=[];_1f4.forEach(_1f8.findWidgets(win.body()),function(_1ff){if(!_1ff._destroyed){if(_1ff.destroyRecursive){_1ff.destroyRecursive();}else{if(_1ff.destroy){_1ff.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_1f6.registry=_1f8;return _1f8;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_200,_201,_202,_203){_200.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_203[name]=_202[name];});_203.defaultDuration=_201["defaultDuration"]||200;return _203;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place",".."],function(_204,lang,_205,_206,_207){_207.getViewport=function(){return _205.getBox();};_207.placeOnScreen=_206.at;_207.placeOnScreenAroundElement=function(node,_208,_209,_20a){var _20b;if(lang.isArray(_209)){_20b=_209;}else{_20b=[];for(var key in _209){_20b.push({aroundCorner:key,corner:_209[key]});}}return _206.around(node,_208,_20b,true,_20a);};_207.placeOnScreenAroundNode=_207.placeOnScreenAroundElement;_207.placeOnScreenAroundRectangle=_207.placeOnScreenAroundElement;_207.getPopupAroundAlignment=function(_20c,_20d){var _20e={};_204.forEach(_20c,function(pos){var ltr=_20d;switch(pos){case "after":_20e[_20d?"BR":"BL"]=_20d?"BL":"BR";break;case "before":_20e[_20d?"BL":"BR"]=_20d?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_20e[ltr?"BL":"BR"]=ltr?"TL":"TR";_20e[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_20e[ltr?"TL":"TR"]=ltr?"BL":"BR";_20e[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _20e;};return _207;});},"dojox/mobile/View":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(dojo,_20f,_210,_211,_212,lang,has,win,_213,dom,_214,_215,_216,_217,_218,_219,_21a,_21b,_21c){var dm=lang.getObject("dojox.mobile",true);return _212("dojox.mobile.View",[_21a,_219,_218],{selected:false,keepScrollPos:true,constructor:function(_21d,node){if(node){dom.byId(node).style.visibility="hidden";}this._aw=has("android")>=2.2&&has("android")<3;},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_210["mblCSS3Transition"]){this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dm._defaultView=this;}},startup:function(){if(this._started){return;}var _21e=[];var _21f=this.domNode.parentNode.childNodes;var _220=false;for(var i=0;i<_21f.length;i++){var c=_21f[i];if(c.nodeType===1&&_214.contains(c,"mblView")){_21e.push(c);_220=_220||_217.byNode(c)._visible;}}var _221=this._visible;if(_21e.length===1||(!_220&&_21e[0]===this.domNode)){_221=true;}var _222=this;setTimeout(function(){if(!_221){_222.domNode.style.display="none";}else{dm.currentView=_222;_222.onStartView();_211.publish("/dojox/mobile/startView",[_222]);}if(_222.domNode.style.visibility!="visible"){_222.domNode.style.visibility="visible";}var _223=_222.getParent&&_222.getParent();if(!_223||!_223.resize){_222.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_20f.forEach(this.getChildren(),function(_224){if(_224.resize){_224.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_225,dir,_226,_227,_228){},onAfterTransitionIn:function(_229,dir,_22a,_22b,_22c){},onBeforeTransitionOut:function(_22d,dir,_22e,_22f,_230){},onAfterTransitionOut:function(_231,dir,_232,_233,_234){},_saveState:function(_235,dir,_236,_237,_238){this._context=_237;this._method=_238;if(_236=="none"){_236=null;}this._moveTo=_235;this._dir=dir;this._transition=_236;this._arguments=lang._toArray(arguments);this._args=[];if(_237||_238){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_239){var _23a=this.domNode.parentNode.childNodes;for(var i=0;i<_23a.length;i++){var n=_23a[i];if(n.nodeType===1&&_214.contains(n,"mblView")){n.className="mblView";}}_239.className="mblView";},convertToId:function(_23b){if(typeof (_23b)=="string"){_23b.match(/^#?([^&?]+)/);return RegExp.$1;}return _23b;},performTransition:function(_23c,dir,_23d,_23e,_23f){if(_23c==="#"){return;}if(dojo.hash){if(typeof (_23c)=="string"&&_23c.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}dojo.hash(_23c);return;}}this._saveState.apply(this,arguments);var _240;if(_23c){_240=this.convertToId(_23c);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_240=this._dummyNode;}var _241=this.domNode;var _242=_241.offsetTop;_240=this.toNode=dom.byId(_240);if(!_240){return;}_240.style.visibility=this._aw?"visible":"hidden";_240.style.display="";this._fixViewState(_240);var _243=_217.byNode(_240);if(_243){if(_210["mblAlwaysResizeOnTransition"]||!_243._resized){dm.resizeAll(null,_243);_243._resized=true;}if(_23d&&_23d!="none"){_243.containerNode.style.paddingTop=_242+"px";}_243.movedFrom=_241.id;}this.onBeforeTransitionOut.apply(this,arguments);_211.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(arguments)));if(_243){if(this.keepScrollPos&&!this.getParent()){var _244=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_241._scrollTop=_244;var _245=(dir==1)?0:(_240._scrollTop||0);_240.style.top="0px";if(_244>1||_245!==0){_241.style.top=_245-_244+"px";if(_210["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_245||1));},0);}}}else{_240.style.top="0px";}_243.onBeforeTransitionIn.apply(_243,arguments);_211.publish("/dojox/mobile/beforeTransitionIn",[_243].concat(lang._toArray(arguments)));}if(!this._aw){_240.style.display="none";_240.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_216.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_216.get(win.body(),"background-color"),zIndex:-10000,display:""});_216.set(_240,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(lang.hitch(this,function(){this._doTransition(_241,_240,_23d,dir);}),80);}else{this._doTransition(_241,_240,_23d,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_246,_247,_248,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_216.set(_247,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_247.style.display="";}}if(!_248||_248=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_210["mblCSS3Transition"]){_213.when(_21c,lang.hitch(this,function(_249){var _24a=_216.get(_247,"position");_216.set(_247,"position","absolute");_213.when(_249(_246,_247,{transition:_248,reverse:(dir===-1)?true:false}),lang.hitch(this,function(){_216.set(_247,"position",_24a);this.invokeCallback();}));}));}else{var s=this._toCls(_248);_214.add(_246,s+" mblOut"+rev);_214.add(_247,s+" mblIn"+rev);setTimeout(function(){_214.add(_246,"mblTransition");_214.add(_247,"mblTransition");},100);var _24b="50% 50%";var _24c="50% 50%";var _24d,posX,posY;if(_248.indexOf("swirl")!=-1||_248.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_24d=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_24d=-_215.position(_246,true).y;}posY=win.global.innerHeight/2+_24d;_24b="50% "+posY+"px";_24c="50% "+posY+"px";}else{if(_248.indexOf("scale")!=-1){var _24e=_215.position(_246,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_24e.x;if(this.keepScrollPos&&!this.getParent()){_24d=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_24d=-_24e.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_24d;_24b=posX+"px "+posY+"px";_24c=posX+"px "+posY+"px";}}_216.set(_246,{webkitTransformOrigin:_24b});_216.set(_247,{webkitTransformOrigin:_24c});}}dm.currentView=_217.byNode(_247);},onAnimationStart:function(e){},onAnimationEnd:function(e){var name=e.animationName||e.target.className;if(name.indexOf("Out")===-1&&name.indexOf("In")===-1&&name.indexOf("Shrink")===-1){return;}var _24f=false;if(_214.contains(this.domNode,"mblOut")){_24f=true;this.domNode.style.display="none";_214.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_216.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_214.remove(li,"mblCloseContent");}if(_24f){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_211.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _250=_217.byNode(this.toNode);if(_250){_250.onAfterTransitionIn.apply(_250,this._arguments);_211.publish("/dojox/mobile/afterTransitionIn",[_250].concat(this._arguments));_250.movedFrom=undefined;}var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _251=this.domNode.parentNode.childNodes;for(var i=0;i<_251.length;i++){var n=_251[i];if(n.nodeType===1&&_214.contains(n,"mblView")&&_216.get(n,"display")!=="none"){return _217.byNode(n);}}return null;},show:function(){var view=this.getShowingView();if(view){view.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","./registry"],function(_252,_253,win,_254){var _255=_253("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_256){if(this._hash[_256.id]){throw new Error("Tried to register widget with id=="+_256.id+" but that id is already registered");}this._hash[_256.id]=_256;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_257){_257=_257||win.global;var i=0,id;for(id in this._hash){func.call(_257,this._hash[id],i++,this._hash);}return this;},filter:function(_258,_259){_259=_259||win.global;var res=new _255(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_258.call(_259,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _255(),id,_25a;for(id in this._hash){_25a=this._hash[id];if(_25a.declaredClass==cls){res.add(_25a);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_25b){return _252.map(this.toArray(),func,_25b);},every:function(func,_25c){_25c=_25c||win.global;var x=0,i;for(i in this._hash){if(!func.call(_25c,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_25d){_25d=_25d||win.global;var x=0,i;for(i in this._hash){if(func.call(_25d,this._hash[i],x++,this._hash)){return true;}}return false;}});_252.forEach(["forEach","filter","byClass","map","every","some"],function(func){_254[func]=_255.prototype[func];});return _255;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _25e={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-_25e.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return _25e.bounceIn(n*2)/2;}return (_25e.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_25e);return _25e;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","./main"],function(_25f,dom,_260,_261,lang,has,_262){var _263;var a11y={_isElementShown:function(elem){var s=_261.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_260.get(elem,"type")!="hidden");},hasDefaultTabStop:function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _260.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _264=elem.contentDocument;if("designMode" in _264&&_264.designMode=="on"){return true;}body=_264.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body&&(body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true"));default:return elem.contentEditable=="true";}},effectiveTabIndex:function(elem){if(_260.get(elem,"disabled")){return _263;}else{if(_260.has(elem,"tabIndex")){return +_260.get(elem,"tabIndex");}else{return a11y.hasDefaultTabStop(elem)?0:_263;}}},isTabNavigable:function(elem){return a11y.effectiveTabIndex(elem)>=0;},isFocusable:function(elem){return a11y.effectiveTabIndex(elem)>=-1;},_getTabNavigable:function(root){var _265,last,_266,_267,_268,_269,_26a={};function _26b(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _26c=a11y._isElementShown,_26d=a11y.effectiveTabIndex;var _26e=function(_26f){for(var _270=_26f.firstChild;_270;_270=_270.nextSibling){if(_270.nodeType!=1||(has("ie")<=9&&_270.scopeName!=="HTML")||!_26c(_270)){continue;}var _271=_26d(_270);if(_271>=0){if(_271==0){if(!_265){_265=_270;}last=_270;}else{if(_271>0){if(!_266||_271<_267){_267=_271;_266=_270;}if(!_268||_271>=_269){_269=_271;_268=_270;}}}var rn=_26b(_270);if(_260.get(_270,"checked")&&rn){_26a[rn]=_270;}}if(_270.nodeName.toUpperCase()!="SELECT"){_26e(_270);}}};if(_26c(root)){_26e(root);}function rs(node){return _26a[_26b(node)]||node;};return {first:rs(_265),last:rs(last),lowest:rs(_266),highest:rs(_268)};},getFirstInTabbingOrder:function(root,doc){var _272=a11y._getTabNavigable(dom.byId(root,doc));return _272.lowest?_272.lowest:_272.first;},getLastInTabbingOrder:function(root,doc){var _273=a11y._getTabNavigable(dom.byId(root,doc));return _273.last?_273.last:_273.highest;}};1&&lang.mixin(_262,a11y);return a11y;});},"dijit/typematic":function(){define("dijit/typematic",["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/_base/sniff","."],function(_274,_275,_276,_277,lang,on,has,_278){var _279=(_278.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(lang.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_27a,node,_27b,obj,_27c,_27d,_27e){if(obj!=this._obj){this.stop();this._initialDelay=_27d||500;this._subsequentDelay=_27c||0.9;this._minDelay=_27e||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_27a,_27b);this._fireEventAndReload();this._evt=lang.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,_27f,_280,_281,_282,_283,_284){if(_27f.keyCode){_27f.charOrCode=_27f.keyCode;_277.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_27f.charCode){_27f.charOrCode=String.fromCharCode(_27f.charCode);_277.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _285=[on(node,_275._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_27f.charOrCode&&(_27f.ctrlKey===undefined||_27f.ctrlKey==evt.ctrlKey)&&(_27f.altKey===undefined||_27f.altKey==evt.altKey)&&(_27f.metaKey===undefined||_27f.metaKey==(evt.metaKey||false))&&(_27f.shiftKey===undefined||_27f.shiftKey==evt.shiftKey)){_276.stop(evt);_279.trigger(evt,_280,node,_281,_27f,_282,_283,_284);}else{if(_279._obj==_27f){_279.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_279._obj==_27f){_279.stop();}}))];return {remove:function(){_274.forEach(_285,function(h){h.remove();});}};},addMouseListener:function(node,_286,_287,_288,_289,_28a){var _28b=[on(node,"mousedown",lang.hitch(this,function(evt){_276.stop(evt);_279.trigger(evt,_286,node,_287,node,_288,_289,_28a);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){_276.stop(evt);}_279.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){_276.stop(evt);_279.stop();})),on(node,"mousemove",lang.hitch(this,function(evt){evt.preventDefault();})),on(node,"dblclick",lang.hitch(this,function(evt){_276.stop(evt);if(has("ie")<9){_279.trigger(evt,_286,node,_287,node,_288,_289,_28a);setTimeout(lang.hitch(this,_279.stop),50);}}))];return {remove:function(){_274.forEach(_28b,function(h){h.remove();});}};},addListener:function(_28c,_28d,_28e,_28f,_290,_291,_292,_293){var _294=[this.addKeyListener(_28d,_28e,_28f,_290,_291,_292,_293),this.addMouseListener(_28c,_28f,_290,_291,_292,_293)];return {remove:function(){_274.forEach(_294,function(h){h.remove();});}};}});return _279;});},"dojox/mobile/app/ImageView":function(){define("dojox/mobile/app/ImageView",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(_295,dojo,_296){dojo.provide("dojox.mobile.app.ImageView");dojo.experimental("dojox.mobile.app.ImageView");dojo.require("dojox.mobile.app._Widget");dojo.require("dojo.fx.easing");dojo.declare("dojox.mobile.app.ImageView",_296.mobile.app._Widget,{zoom:1,zoomCenterX:0,zoomCenterY:0,maxZoom:5,autoZoomLevel:3,disableAutoZoom:false,disableSwipe:false,autoZoomEvent:null,_leftImg:null,_centerImg:null,_rightImg:null,_leftSmallImg:null,_centerSmallImg:null,_rightSmallImg:null,constructor:function(){this.panX=0;this.panY=0;this.handleLoad=dojo.hitch(this,this.handleLoad);this._updateAnimatedZoom=dojo.hitch(this,this._updateAnimatedZoom);this._updateAnimatedPan=dojo.hitch(this,this._updateAnimatedPan);this._onAnimPanEnd=dojo.hitch(this,this._onAnimPanEnd);},buildRendering:function(){this.inherited(arguments);this.canvas=dojo.create("canvas",{},this.domNode);dojo.addClass(this.domNode,"mblImageView");},postCreate:function(){this.inherited(arguments);this.size=dojo.marginBox(this.domNode);dojo.style(this.canvas,{width:this.size.w+"px",height:this.size.h+"px"});this.canvas.height=this.size.h;this.canvas.width=this.size.w;var _297=this;this.connect(this.domNode,"onmousedown",function(_298){if(_297.isAnimating()){return;}if(_297.panX){_297.handleDragEnd();}_297.downX=_298.targetTouches?_298.targetTouches[0].clientX:_298.clientX;_297.downY=_298.targetTouches?_298.targetTouches[0].clientY:_298.clientY;});this.connect(this.domNode,"onmousemove",function(_299){if(_297.isAnimating()){return;}if((!_297.downX&&_297.downX!==0)||(!_297.downY&&_297.downY!==0)){return;}if((!_297.disableSwipe&&_297.zoom==1)||(!_297.disableAutoZoom&&_297.zoom!=1)){var x=_299.targetTouches?_299.targetTouches[0].clientX:_299.pageX;var y=_299.targetTouches?_299.targetTouches[0].clientY:_299.pageY;_297.panX=x-_297.downX;_297.panY=y-_297.downY;if(_297.zoom==1){if(Math.abs(_297.panX)>10){_297.render();}}else{if(Math.abs(_297.panX)>10||Math.abs(_297.panY)>10){_297.render();}}}});this.connect(this.domNode,"onmouseout",function(_29a){if(!_297.isAnimating()&&_297.panX){_297.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_29b){_297.downX=_297.downY=null;});this.connect(this.domNode,"onclick",function(_29c){if(_297.isAnimating()){return;}if(_297.downX==null||_297.downY==null){return;}var x=(_29c.targetTouches?_29c.targetTouches[0].clientX:_29c.pageX);var y=(_29c.targetTouches?_29c.targetTouches[0].clientY:_29c.pageY);if(Math.abs(_297.panX)>14||Math.abs(_297.panY)>14){_297.downX=_297.downY=null;_297.handleDragEnd();return;}_297.downX=_297.downY=null;if(!_297.disableAutoZoom){if(!_297._centerImg||!_297._centerImg._loaded){return;}if(_297.zoom!=1){_297.set("animatedZoom",1);return;}var pos=dojo._abs(_297.domNode);var _29d=_297.size.w/_297._centerImg.width;var _29e=_297.size.h/_297._centerImg.height;_297.zoomTo(((x-pos.x)/_29d)-_297.panX,((y-pos.y)/_29e)-_297.panY,_297.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;if(this.zoom==1){if(!this.panX){return;}var _29f=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _2a0=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _2a1=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_29f?1:0)||(this.panX<0&&_2a0?1:0));if(!_2a1){this._animPanTo(0,dojo.fx.easing.expoOut,700);}else{this.moveTo(this.panX);}}else{if(!this.panX&&!this.panY){return;}this.zoomCenterX-=(this.panX/this.zoom);this.zoomCenterY-=(this.panY/this.zoom);this.panX=this.panY=0;}},handleFlick:function(_2a2){if(this.zoom==1&&_2a2.duration<500){if(_2a2.direction=="ltr"){this.moveTo(1);}else{if(_2a2.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_2a3){_2a3=_2a3>0?1:-1;var _2a4;if(_2a3<1){if(this._rightImg&&this._rightImg._loaded){_2a4=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_2a4=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_2a4=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_2a4=this._leftSmallImg;}}}this._moveDir=_2a3;var _2a5=this;if(_2a4&&_2a4._loaded){this._animPanTo(this.size.w*_2a3,null,500,function(){_2a5.panX=0;_2a5.panY=0;if(_2a3<0){_2a5._switchImage("left","right");}else{_2a5._switchImage("right","left");}_2a5.render();_2a5.onChange(_2a3*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_2a6,_2a7){var _2a8="_"+_2a6+"SmallImg";var _2a9="_"+_2a6+"Img";var _2aa="_"+_2a7+"SmallImg";var _2ab="_"+_2a7+"Img";this[_2a9]=this._centerImg;this[_2a8]=this._centerSmallImg;this[_2a9]._type=_2a6;if(this[_2a8]){this[_2a8]._type=_2a6;}this._centerImg=this[_2ab];this._centerSmallImg=this[_2aa];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_2ab]=this[_2aa]=null;},_animPanTo:function(to,_2ac,_2ad,_2ae){this._animCallback=_2ae;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_2ad||500,easing:_2ac,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_2af){},_updateAnimatedPan:function(_2b0){this.panX=_2b0;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_2b1,_2b2,zoom){this.set("zoomCenterX",_2b1);this.set("zoomCenterY",_2b2);this.set("animatedZoom",zoom);},render:function(){var cxt=this.canvas.getContext("2d");cxt.clearRect(0,0,this.canvas.width,this.canvas.height);this._renderImg(this._centerSmallImg,this._centerImg,this.zoom==1?(this.panX<0?1:this.panX>0?-1:0):0);if(this.zoom==1&&this.panX!=0){if(this.panX>0){this._renderImg(this._leftSmallImg,this._leftImg,1);}else{this._renderImg(this._rightSmallImg,this._rightImg,-1);}}},_renderImg:function(_2b3,_2b4,_2b5){var img=(_2b4&&_2b4._loaded)?_2b4:_2b3;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _2b6=img._baseWidth;var _2b7=img._baseHeight;var _2b8=_2b6*this.zoom;var _2b9=_2b7*this.zoom;var _2ba=Math.min(this.size.w,_2b8);var _2bb=Math.min(this.size.h,_2b9);var _2bc=this.dispWidth=img.width*(_2ba/_2b8);var _2bd=this.dispHeight=img.height*(_2bb/_2b9);var _2be=this.zoomCenterX-(this.panX/this.zoom);var _2bf=this.zoomCenterY-(this.panY/this.zoom);var _2c0=Math.floor(Math.max(_2bc/2,Math.min(img.width-_2bc/2,_2be)));var _2c1=Math.floor(Math.max(_2bd/2,Math.min(img.height-_2bd/2,_2bf)));var _2c2=Math.max(0,Math.round((img.width-_2bc)/2+(_2c0-img._centerX)));var _2c3=Math.max(0,Math.round((img.height-_2bd)/2+(_2c1-img._centerY)));var _2c4=Math.round(Math.max(0,this.canvas.width-_2ba)/2);var _2c5=Math.round(Math.max(0,this.canvas.height-_2bb)/2);var _2c6=_2ba;var _2c7=_2bc;if(this.zoom==1&&_2b5&&this.panX){if(this.panX<0){if(_2b5>0){_2ba-=Math.abs(this.panX);_2c4=0;}else{if(_2b5<0){_2ba=Math.max(1,Math.abs(this.panX)-5);_2c4=this.size.w-_2ba;}}}else{if(_2b5>0){_2ba=Math.max(1,Math.abs(this.panX)-5);_2c4=0;}else{if(_2b5<0){_2ba-=Math.abs(this.panX);_2c4=this.size.w-_2ba;}}}_2bc=Math.max(1,Math.floor(_2bc*(_2ba/_2c6)));if(_2b5>0){_2c2=(_2c2+_2c7)-(_2bc);}_2c2=Math.floor(_2c2);}try{cxt.drawImage(img,Math.max(0,_2c2),_2c3,Math.min(_2c7,_2bc),_2bd,_2c4,_2c5,Math.min(_2c6,_2ba),_2bb);}catch(e){}},_setZoomAttr:function(_2c8){this.zoom=Math.min(this.maxZoom,Math.max(1,_2c8));if(this.zoom==1&&this._centerImg&&this._centerImg._loaded){if(!this.isAnimating()){this.zoomCenterX=this._centerImg.width/2;this.zoomCenterY=this._centerImg.height/2;}this.panX=this.panY=0;}this.render();},_setZoomCenterXAttr:function(_2c9){if(_2c9!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_2c9=Math.min(this._centerImg.width,_2c9);}this.zoomCenterX=Math.max(0,Math.round(_2c9));}},_setZoomCenterYAttr:function(_2ca){if(_2ca!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_2ca=Math.min(this._centerImg.height,_2ca);}this.zoomCenterY=Math.max(0,Math.round(_2ca));}},_setZoomCenterAttr:function(_2cb){if(_2cb.x!=this.zoomCenterX||_2cb.y!=this.zoomCenterY){this.set("zoomCenterX",_2cb.x);this.set("zoomCenterY",_2cb.y);this.render();}},_setAnimatedZoomAttr:function(_2cc){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_2cc],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_2cd){this._setZoomAttr(_2cd);},_setCenterUrlAttr:function(_2ce){this._setImage("center",_2ce);},_setLeftUrlAttr:function(_2cf){this._setImage("left",_2cf);},_setRightUrlAttr:function(_2d0){this._setImage("right",_2d0);},_setImage:function(name,_2d1){var _2d2=null;var _2d3=null;if(dojo.isString(_2d1)){_2d3=_2d1;}else{_2d3=_2d1.large;_2d2=_2d1.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_2d3){return;}var _2d4=this["_"+name+"Img"]=new Image();_2d4._type=name;_2d4._loaded=false;_2d4._src=_2d3;_2d4._conn=dojo.connect(_2d4,"onload",this.handleLoad);if(_2d2){var _2d5=this["_"+name+"SmallImg"]=new Image();_2d5._type=name;_2d5._loaded=false;_2d5._conn=dojo.connect(_2d5,"onload",this.handleLoad);_2d5._isSmall=true;_2d5._src=_2d2;_2d5.src=_2d2;}_2d4.src=_2d3;},handleLoad:function(evt){var img=evt.target;img._loaded=true;dojo.disconnect(img._conn);var type=img._type;switch(type){case "center":this.zoomCenterX=img.width/2;this.zoomCenterY=img.height/2;break;}var _2d6=img.height;var _2d7=img.width;if(_2d7/this.size.w<_2d6/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_2d7/(_2d6/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_2d6/(_2d7/this.size.w);}img._centerX=_2d7/2;img._centerY=_2d6/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_2d8){}});});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus",".."],function(_2d9,dom,lang,_2da,win,_2db,_2dc){lang.mixin(_2dc,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _2dc.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_2db.curNode;if(win.global.getSelection){sel=win.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_2dd){var _2de=win.doc,mark=_2dd.mark;if(mark){if(win.global.getSelection){var sel=win.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var n=mark.node;n.selectionStart=mark.start;n.selectionEnd=mark.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_2de.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_2de.body.createControlRange();_2d9.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2de.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2df){var node=!_2db.curNode||(menu&&dom.isDescendant(_2db.curNode,menu.domNode))?_2dc._prevFocus:_2db.curNode;return {node:node,bookmark:node&&(node==_2db.curNode)&&win.withGlobal(_2df||win.global,_2dc.getBookmark),openedForWindow:_2df};},_activeStack:[],registerIframe:function(_2e0){return _2db.registerIframe(_2e0);},unregisterIframe:function(_2e1){_2e1&&_2e1.remove();},registerWin:function(_2e2,_2e3){return _2db.registerWin(_2e2,_2e3);},unregisterWin:function(_2e4){_2e4&&_2e4.remove();}});_2db.focus=function(_2e5){if(!_2e5){return;}var node="node" in _2e5?_2e5.node:_2e5,_2e6=_2e5.bookmark,_2e7=_2e5.openedForWindow,_2e8=_2e6?_2e6.isCollapsed:false;if(node){var _2e9=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2e9&&_2e9.focus){try{_2e9.focus();}catch(e){}}_2db._onFocusNode(node);}if(_2e6&&win.withGlobal(_2e7||win.global,_2dc.isCollapsed)&&!_2e8){if(_2e7){_2e7.focus();}try{win.withGlobal(_2e7||win.global,_2dc.moveToBookmark,null,[_2e6]);}catch(e2){}}};_2db.watch("curNode",function(name,_2ea,_2eb){_2dc._curFocus=_2eb;_2dc._prevFocus=_2ea;if(_2eb){_2da.publish("focusNode",_2eb);}});_2db.watch("activeStack",function(name,_2ec,_2ed){_2dc._activeStack=_2ed;});_2db.on("widget-blur",function(_2ee,by){_2da.publish("widgetBlur",_2ee,by);});_2db.on("widget-focus",function(_2ef,by){_2da.publish("widgetFocus",_2ef,by);});return _2dc;});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_2f0,_2f1,_2f2,lang,_2f3,_2f4,has,_2f5,_2f6,_2f7){return _2f2("dojox.mobile.ListItem",_2f6,{rightText:"",rightIcon:"",rightIcon2:"",anchorLabel:false,noArrow:false,selected:false,checked:false,arrowClass:"mblDomButtonArrow",checkClass:"mblDomButtonCheck",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",btnClass:"",btnClass2:"",tag:"li",postMixInProperties:function(){if(this.btnClass){this.rightIcon=this.btnClass;}this._setBtnClassAttr=this._setRightIconAttr;this._setBtnClass2Attr=this._setRightIcon2Attr;},buildRendering:function(){this.domNode=this.srcNodeRef||_2f4.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_2f4.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r&&!this.label){this.label="";for(var i=0,len=r.childNodes.length;i<len;i++){var n=r.firstChild;if(n.nodeType===3&&lang.trim(n.nodeValue)!==""){n.nodeValue=this._cv?this._cv(n.nodeValue):n.nodeValue;this.labelNode=_2f4.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_2f4.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_2f4.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _2f8=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_2f8&&_2f8.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_2f3.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_2f3.add(this.domNode,"mblVariableHeight");setTimeout(lang.hitch(this,"layoutVariableHeight"));}this.set("icon",this.icon);if(!this.checked&&this.checkClass.indexOf(",")!==-1){this.set("checked",this.checked);}this.inherited(arguments);},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(_2f3.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_2f3.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_2f3.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _2f9=this.getParent();if(_2f9.select){if(_2f9.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_2f9.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_2f5.openWindow(this.href,this.hrefTarget);return;}var _2fa;if(this.moveTo||this.href||this.url||this.scene){_2fa={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_2fa=this.transitionOptions;}}if(_2fa){this.setTransitionPos(e);return new _2f7(this.domNode,_2fa,e).dispatch();}},select:function(){var _2fb=this.getParent();if(_2fb.stateful){_2fb.deselectAll();}else{var _2fc=this;setTimeout(function(){_2fc.deselect();},has("android")?300:1000);}_2f3.add(this.domNode,"mblItemSelected");},deselect:function(){_2f3.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_2f0.forEach([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.iconNode],function(n){if(n){var t=Math.round((h-n.offsetHeight)/2);n.style.marginTop=t+"px";}});},setArrow:function(){if(this.checked){return;}var c="";var _2fd=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_2fd&&_2fd.stateful)){c=this.arrowClass;}}if(c){this._setRightIconAttr(c);}},_setIconAttr:function(icon){if(!this.getParent()){return;}this.icon=icon;var a=this.anchorNode;if(!this.iconNode){if(icon){var ref=this.rightIconNode||this.rightIcon2Node||this.rightTextNode||this.box;this.iconNode=_2f4.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_2f4.empty(this.iconNode);}if(icon&&icon!=="none"){_2f5.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_2f3.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_2f3.remove(a,"mblListItemAnchorNoIcon");}else{_2f3.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_2fe){var _2ff=this.getParent();if(_2ff&&_2ff.select==="single"&&_2fe){_2f0.forEach(_2ff.getChildren(),function(_300){_300.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _301=this.rightIconNode.childNodes;if(_301.length===1){this.rightIconNode.style.display=_2fe?"":"none";}else{_301[0].style.display=_2fe?"":"none";_301[1].style.display=!_2fe?"":"none";}_2f3.toggle(this.domNode,"mblListItemChecked",_2fe);if(_2ff&&this.checked!==_2fe){_2ff.onCheckStateChanged(this,_2fe);}this.checked=_2fe;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_2f4.create("DIV",{className:"mblListItemRightText"},this.box,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){if(!this.rightIconNode){var ref=this.rightIcon2Node||this.rightTextNode||this.box;this.rightIconNode=_2f4.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_2f4.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_2f5.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_2f5.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_2f5.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_2f4.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_2f4.empty(this.rightIcon2Node);}this.rightIcon2=icon;_2f5.createIcon(icon,null,null,this.rightIcon2Title,this.rightIcon2Node);},_setLabelAttr:function(text){this.label=text;this.labelNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/app/StageController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_302,dojo,_303){dojo.provide("dojox.mobile.app.StageController");dojo.experimental("dojox.mobile.app.StageController");dojo.require("dojox.mobile.app.SceneController");dojo.declare("dojox.mobile.app.StageController",null,{scenes:null,effect:"fade",constructor:function(node){this.domNode=node;this.scenes=[];if(dojo.config.mobileAnim){this.effect=dojo.config.mobileAnim;}},getActiveSceneController:function(){return this.scenes[this.scenes.length-1];},pushScene:function(_304,_305){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _306=new _303.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_306);var _307=this;dojo.forEach(this.scenes,this.setZIndex);_306.stageController=this;_306.init(_304,_305).addCallback(function(){if(_307.scenes.length==1){_306.domNode.style.visibility="visible";_307.scenes[_307.scenes.length-1].assistant.activate(_305);_307._opInProgress=false;}else{_307.scenes[_307.scenes.length-2].performTransition(_307.scenes[_307.scenes.length-1].domNode,1,_307.effect,null,function(){_307.scenes[_307.scenes.length-1].assistant.activate(_305);_307._opInProgress=false;});}});},setZIndex:function(_308,idx){dojo.style(_308.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _309=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_309.scenes.length-2].assistant.activate(data);this.scenes[_309.scenes.length-1].performTransition(_309.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_309._destroyScene(_309.scenes[_309.scenes.length-1]);_309.scenes.splice(_309.scenes.length-1,1);_309._opInProgress=false;});}else{}},popScenesTo:function(_30a,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_30a){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_30b){_30b.assistant.deactivate();_30b.assistant.destroy();_30b.destroyRecursive();}});});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","./Viewport","."],function(_30c,_30d,_30e,_30f,win,_310,_311){function _312(node,_313,_314,_315){var view=_310.getEffectiveBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body().appendChild(node);}var best=null;_30c.some(_313,function(_316){var _317=_316.corner;var pos=_316.pos;var _318=0;var _319={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_317.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_317.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_314){var res=_314(node,_316.aroundCorner,_317,_319,_315);_318=typeof res=="undefined"?0:res;}var _31a=node.style;var _31b=_31a.display;var _31c=_31a.visibility;if(_31a.display=="none"){_31a.visibility="hidden";_31a.display="";}var bb=_30d.position(node);_31a.display=_31b;_31a.visibility=_31c;var _31d={"L":pos.x,"R":pos.x-bb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(bb.w>>1))-bb.w)}[_317.charAt(1)],_31e={"T":pos.y,"B":pos.y-bb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(bb.h>>1))-bb.h)}[_317.charAt(0)],_31f=Math.max(view.l,_31d),_320=Math.max(view.t,_31e),endX=Math.min(view.l+view.w,_31d+bb.w),endY=Math.min(view.t+view.h,_31e+bb.h),_321=endX-_31f,_322=endY-_320;_318+=(bb.w-_321)+(bb.h-_322);if(best==null||_318<best.overflow){best={corner:_317,aroundCorner:_316.aroundCorner,x:_31f,y:_320,w:_321,h:_322,overflow:_318,spaceAvailable:_319};}return !_318;});if(best.overflow&&_314){_314(node,best.aroundCorner,best.corner,best.spaceAvailable,_315);}var s=node.style;s.top=best.y+"px";s.left=best.x+"px";s.right="auto";return best;};return (_311.place={at:function(node,pos,_323,_324){var _325=_30c.map(_323,function(_326){var c={corner:_326,pos:{x:pos.x,y:pos.y}};if(_324){c.pos.x+=_326.charAt(1)=="L"?_324.x:-_324.x;c.pos.y+=_326.charAt(0)=="T"?_324.y:-_324.y;}return c;});return _312(node,_325);},around:function(node,_327,_328,_329,_32a){var _32b=(typeof _327=="string"||"offsetWidth" in _327)?_30d.position(_327,true):_327;if(_327.parentNode){var _32c=_30e.getComputedStyle(_327).position=="absolute";var _32d=_327.parentNode;while(_32d&&_32d.nodeType==1&&_32d.nodeName!="BODY"){var _32e=_30d.position(_32d,true),pcs=_30e.getComputedStyle(_32d);if(/relative|absolute/.test(pcs.position)){_32c=false;}if(!_32c&&/hidden|auto|scroll/.test(pcs.overflow)){var _32f=Math.min(_32b.y+_32b.h,_32e.y+_32e.h);var _330=Math.min(_32b.x+_32b.w,_32e.x+_32e.w);_32b.x=Math.max(_32b.x,_32e.x);_32b.y=Math.max(_32b.y,_32e.y);_32b.h=_32f-_32b.y;_32b.w=_330-_32b.x;}if(pcs.position=="absolute"){_32c=true;}_32d=_32d.parentNode;}}var x=_32b.x,y=_32b.y,_331="w" in _32b?_32b.w:(_32b.w=_32b.width),_332="h" in _32b?_32b.h:(_30f.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+y+", height:"+_32b.height+", width:"+_331+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+_32b.height+", w:"+_331+" }","","2.0"),_32b.h=_32b.height);var _333=[];function push(_334,_335){_333.push({aroundCorner:_334,corner:_335,pos:{x:{"L":x,"R":x+_331,"M":x+(_331>>1)}[_334.charAt(1)],y:{"T":y,"B":y+_332,"M":y+(_332>>1)}[_334.charAt(0)]}});};_30c.forEach(_328,function(pos){var ltr=_329;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _336=_312(node,_333,_32a,{w:_331,h:_332});_336.aroundNodePos=_32b;return _336;}});});},"dojox/mobile/app/_event":function(){define("dojox/mobile/app/_event",["dijit","dojo","dojox"],function(_337,dojo,_338){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_338.mobile.app,{eventMap:{},connectFlick:function(_339,_33a,_33b){var _33c;var _33d;var _33e=false;var _33f;var _340;var _341;var _342;var _343;var time;var _344=dojo.connect("onmousedown",_339,function(_345){_33e=false;_33c=_345.targetTouches?_345.targetTouches[0].clientX:_345.clientX;_33d=_345.targetTouches?_345.targetTouches[0].clientY:_345.clientY;time=(new Date()).getTime();_341=dojo.connect(_339,"onmousemove",_346);_342=dojo.connect(_339,"onmouseup",onUp);});var _346=function(_347){dojo.stopEvent(_347);_33f=_347.targetTouches?_347.targetTouches[0].clientX:_347.clientX;_340=_347.targetTouches?_347.targetTouches[0].clientY:_347.clientY;if(Math.abs(Math.abs(_33f)-Math.abs(_33c))>15){_33e=true;_343=(_33f>_33c)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_340)-Math.abs(_33d))>15){_33e=true;_343=(_340>_33d)?"ttb":"btt";}}};var onUp=function(_348){dojo.stopEvent(_348);_341&&dojo.disconnect(_341);_342&&dojo.disconnect(_342);if(_33e){var _349={target:_339,direction:_343,duration:(new Date()).getTime()-time};if(_33a&&_33b){_33a[_33b](_349);}else{_33b(_349);}}};}});_338.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_338.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_338.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_338.mobile.app.isIPhone||_338.mobile.app.isAndroid){_338.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_34a,_34b,_34c,_34d){_34a=_338.mobile.app.eventMap[_34a]||_34a;if(_34a=="flick"||_34a=="onflick"){if(dojo.global["Mojo"]){_34a=Mojo.Event.flick;}else{return _338.mobile.app.connectFlick(obj,_34b,_34c);}}return dojo._oldConnect(obj,_34a,_34b,_34c,_34d);};});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_34e,View,_34f,_350,_351,_352,_353,_354,_355,_356,_357,_358){return _34e;});},"dojox/mobile/Button":function(){define("dojox/mobile/Button",["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_ButtonMixin","dijit/form/_FormWidgetMixin"],function(_359,_35a,_35b,_35c,_35d,_35e,_35f){return _35a("dojox.mobile.Button",[_35d,_35f,_35e],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _360=this.focusNode||this.domNode;var _361=(this.baseClass+" "+this["class"]).split(" ");_361=_359.map(_361,function(c){return c+"Selected";});_35b.add(_360,_361);setTimeout(function(){_35b.remove(_360,_361);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_35c.create("button",{"type":this.type});}else{if(this._cv){var n=this.srcNodeRef.firstChild;if(n&&n.nodeType===3){n.nodeValue=this._cv(n.nodeValue);}}}this.inherited(arguments);this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onclick","_onClick");},_setLabelAttr:function(_362){this.inherited(arguments,[this._cv?this._cv(_362):_362]);}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_363,_364,_365,_366,win,_367,_368,_369,has){return _365("dojox.mobile.Switch",[_369,_368],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=win.doc.createElement("DIV");var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];this._swClass=(c||"").replace(/ .*/,"");this.domNode.className="mblSwitch";var _36a=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\"></div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\"></div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"<input type=\"hidden\""+_36a+"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];},postCreate:function(){this.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_36b,anim){var on=(_36b==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_367.add(this.domNode,"mblSwitchAnimation");}_367.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_367.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _36c=this;setTimeout(function(){_36c.left.style.display=on?"":"none";_36c.right.style.display=!on?"":"none";_367.remove(_36c.domNode,"mblSwitchAnimation");},anim?300:0);},startup:function(){if(this._swClass.indexOf("Round")!=-1){var r=Math.round(this.domNode.offsetHeight/2);this.createRoundMask(this._swClass,r,this.domNode.offsetWidth);}},createRoundMask:function(_36d,r,w){if(!has("webkit")||!_36d){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_36d]){return;}this._createdMasks[_36d]=1;var ctx=win.doc.getCSSCanvasContext("2d",_36d+"Mask",w,100);ctx.fillStyle="#000000";ctx.beginPath();ctx.moveTo(r,0);ctx.arcTo(0,0,0,2*r,r);ctx.arcTo(0,2*r,r,2*r,r);ctx.lineTo(w-r,2*r);ctx.arcTo(w,2*r,w,r,r);ctx.arcTo(w,0,w-r,0,r);ctx.closePath();ctx.fill();},onClick:function(e){if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[];this._conn.push(_364.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_364.connect(this.inner,has("touch")?"touchend":"onmouseup",this,"onTouchEnd"));}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_366.stop(e);},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return false;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_363.forEach(this._conn,_364.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _36e=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_36e,true);if(_36e!=this.value){this.value=this.input.value=_36e;this.onStateChanged(_36e);}},onStateChanged:function(_36f){},_setValueAttr:function(_370){this._changeState(_370,false);if(this.value!=_370){this.onStateChanged(_370);}this.value=this.input.value=_370;},_setLeftLabelAttr:function(_371){this.leftLabel=_371;this.left.firstChild.innerHTML=this._cv?this._cv(_371):_371;},_setRightLabelAttr:function(_372){this.rightLabel=_372;this.right.firstChild.innerHTML=this._cv?this._cv(_372):_372;},reset:function(){this.set("value",this._initialValue);}});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/domReady","dojo/_base/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_373,_374,dom,_375,_376,_377,lang,on,_378,has,_379,win,_37a,a11y,_37b,_37c){var _37d=_374([_379,_377],{curNode:null,activeStack:[],constructor:function(){var _37e=lang.hitch(this,function(node){if(dom.isDescendant(this.curNode,node)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,node)){this.set("prevNode",null);}});_373.before(_376,"empty",_37e);_373.before(_376,"destroy",_37e);},registerIframe:function(_37f){return this.registerWin(_37f.contentWindow,_37f);},registerWin:function(_380,_381){var _382=this,body=_380.document&&_380.document.body;if(body){var mdh=on(body,"mousedown",function(evt){_382._justMouseDowned=true;setTimeout(function(){_382._justMouseDowned=false;},13);if(evt&&evt.target&&evt.target.parentNode==null){return;}_382._onTouchNode(_381||evt.target,"mouse");});var fih=on(body,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.target)){_382._onFocusNode(_381||evt.target);}else{_382._onTouchNode(_381||evt.target);}});var foh=on(body,"focusout",function(evt){_382._onBlurNode(_381||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;body=null;}};}},_onBlurNode:function(node){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(lang.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _383=[];try{while(node){var _384=_375.get(node,"dijitPopupParent");if(_384){node=_37b.byId(_384).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_37a.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_385=id&&_37b.byId(id);if(_385&&!(by=="mouse"&&_385.get("disabled"))){_383.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_383,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",node);},_setStack:function(_386,by){var _387=this.activeStack,_388=_387.length-1,_389=_386.length-1;if(_386[_389]==_387[_388]){return;}this.set("activeStack",_386);var _38a,i;for(i=_388;i>=0&&_387[i]!=_386[i];i--){_38a=_37b.byId(_387[i]);if(_38a){_38a._hasBeenBlurred=true;_38a.set("focused",false);if(_38a._focusManager==this){_38a._onBlur(by);}this.emit("widget-blur",_38a,by);}}for(i++;i<=_389;i++){_38a=_37b.byId(_386[i]);if(_38a){_38a.set("focused",true);if(_38a._focusManager==this){_38a._onFocus(by);}this.emit("widget-focus",_38a,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _38b=new _37d();_378(function(){var _38c=_38b.registerWin(_37a.get(document));if(has("ie")){on(window,"unload",function(){if(_38c){_38c.remove();_38c=null;}});}});_37c.focus=function(node){_38b.focus(node);};for(var attr in _38b){if(!/^_/.test(attr)){_37c.focus[attr]=typeof _38b[attr]=="function"?lang.hitch(_38b,attr):_38b[attr];}}_38b.watch(function(attr,_38d,_38e){_37c.focus[attr]=_38e;});return _38b;});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_38f,_390,win,_391,_392,_393){return _390("dojox.mobile.RoundRect",[_393,_392,_391],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_38f.forEach(this.getChildren(),function(_394){if(_394.resize){_394.resize();}});}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_395,dom,_396,_397){return _395("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_396.stop(e);return false;}var _398=this.onClick(e)===false;if(!_398&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _399=_397.byNode(node);if(_399&&typeof _399._onSubmit=="function"){_399._onSubmit(e);_398=true;break;}}}if(_398){e.preventDefault();}return !_398;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_39a){this._set("label",_39a);(this.containerNode||this.focusNode).innerHTML=_39a;}});});},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_39b,win,_39c,_39d){return _39b("dojox.mobile.RoundRectCategory",[_39d,_39c],{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(!this.label){this.label=this.domNode.innerHTML;}},_setLabelAttr:function(_39e){this.label=_39e;this.domNode.innerHTML=this._cv?this._cv(_39e):_39e;}});});},"dojox/mobile/app/TextBox":function(){define("dojox/mobile/app/TextBox",["dijit","dojo","dojox","dojo/require!dojox/mobile/TextBox"],function(_39f,dojo,_3a0){dojo.provide("dojox.mobile.app.TextBox");dojo.deprecated("dojox.mobile.app.TextBox is deprecated","dojox.mobile.app.TextBox moved to dojox.mobile.TextBox",1.8);dojo.require("dojox.mobile.TextBox");_3a0.mobile.app.TextBox=_3a0.mobile.TextBox;});},"dojox/mobile/app/SceneAssistant":function(){define("dojox/mobile/app/SceneAssistant",["dijit","dojo","dojox"],function(_3a1,dojo,_3a2){dojo.provide("dojox.mobile.app.SceneAssistant");dojo.experimental("dojox.mobile.app.SceneAssistant");dojo.declare("dojox.mobile.app.SceneAssistant",null,{constructor:function(){},setup:function(){},activate:function(_3a3){},deactivate:function(){},destroy:function(){var _3a4=dojo.query("> [widgetId]",this.containerNode).map(_3a1.byNode);dojo.forEach(_3a4,function(_3a5){_3a5.destroyRecursive();});this.disconnect();},connect:function(obj,_3a6,_3a7){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_3a6,_3a7));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","../popup","../BackgroundIframe"],function(_3a8,_3a9){var _3aa=_3a9._createWrapper;_3a9._createWrapper=function(_3ab){if(!_3ab.declaredClass){_3ab={_popupWrapper:(_3ab.parentNode&&_3a8.contains(_3ab.parentNode,"dijitPopup"))?_3ab.parentNode:null,domNode:_3ab,destroy:function(){}};}return _3aa.call(this,_3ab);};var _3ac=_3a9.open;_3a9.open=function(args){if(args.orient&&typeof args.orient!="string"&&!("length" in args.orient)){var ary=[];for(var key in args.orient){ary.push({aroundCorner:key,corner:args.orient[key]});}args.orient=ary;}return _3ac.call(this,args);};return _3a9;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_3ad,_3ae){if(_3ae["mblCSS3Transition"]){var _3af=new _3ad();require([_3ae["mblCSS3Transition"]],function(_3b0){_3af.resolve(_3b0);});return _3af;}return null;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","..","../hccss"],function(_3b1,lang,_3b2){lang.mixin(_3b2,{hasWaiRole:function(elem,role){var _3b3=this.getWaiRole(elem);return role?(_3b3.indexOf(role)>-1):(_3b3.length>0);},getWaiRole:function(elem){return lang.trim((_3b1.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_3b1.set(elem,"role",role);},removeWaiRole:function(elem,role){var _3b4=_3b1.get(elem,"role");if(!_3b4){return;}if(role){var t=lang.trim((" "+_3b4+" ").replace(" "+role+" "," "));_3b1.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_3b5){return elem.hasAttribute?elem.hasAttribute("aria-"+_3b5):!!elem.getAttribute("aria-"+_3b5);},getWaiState:function(elem,_3b6){return elem.getAttribute("aria-"+_3b6)||"";},setWaiState:function(elem,_3b7,_3b8){elem.setAttribute("aria-"+_3b7,_3b8);},removeWaiState:function(elem,_3b9){elem.removeAttribute("aria-"+_3b9);}});return _3b2;});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_3ba,dom,geom,_3bb,_3bc){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_3ba.body(doc),_3bd=_3bc.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_3bc.create("div",{style:{overflow:"hidden",direction:"ltr"}},_3bd,"last"),ret=geom.position(div).x!=0;_3bd.removeChild(div);body.removeChild(_3bd);return ret;});has.add("position-fixed-support",function(win,doc){var body=_3ba.body(doc),_3be=_3bc.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_3bf=_3bc.create("span",{style:{position:"fixed",left:"0",top:"0"}},_3be,"last"),ret=geom.position(_3bf).x!=geom.position(_3be).x;_3be.removeChild(_3bf);body.removeChild(_3be);return ret;});var _3c0=lang.getObject("dojo.window",true);_3c0.getBox=function(){var _3c1=(_3ba.doc.compatMode=="BackCompat")?_3ba.body():_3ba.doc.documentElement,_3c2=geom.docScroll(),w,h;if(has("touch")){var _3c3=_3ba.doc.parentWindow||_3ba.doc.defaultView;w=_3c3.innerWidth||_3c1.clientWidth;h=_3c3.innerHeight||_3c1.clientHeight;}else{w=_3c1.clientWidth;h=_3c1.clientHeight;}return {l:_3c2.x,t:_3c2.y,w:w,h:h};};_3c0.get=function(doc){if(has("ie")<9&&_3c0!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_3c0.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_3ba.doc,body=_3ba.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera")||has("trident"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _3c4=doc.compatMode=="BackCompat",_3c5=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_3c6=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_3c7=(isWK||_3c4)?body:html,_3c8=pos||geom.position(node),el=node.parentNode,_3c9=function(el){return (isIE<=6||(isIE==7&&_3c4))?false:(has("position-fixed-support")&&(_3bb.get(el,"position").toLowerCase()=="fixed"));},self=this,_3ca=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){self.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_3c9(node)){return;}while(el){if(el==body){el=_3c7;}var _3cb=geom.position(el),_3cc=_3c9(el),rtl=_3bb.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_3c7){_3cb.w=_3c5;_3cb.h=_3c6;if(_3c7==html&&(isIE||has("trident"))&&rtl){_3cb.x+=_3c7.offsetWidth-_3cb.w;}if(_3cb.x<0||!isIE||isIE>=9||has("trident")){_3cb.x=0;}if(_3cb.y<0||!isIE||isIE>=9||has("trident")){_3cb.y=0;}}else{var pb=geom.getPadBorderExtents(el);_3cb.w-=pb.w;_3cb.h-=pb.h;_3cb.x+=pb.l;_3cb.y+=pb.t;var _3cd=el.clientWidth,_3ce=_3cb.w-_3cd;if(_3cd>0&&_3ce>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_3cb.x+=_3ce;}_3cb.w=_3cd;}_3cd=el.clientHeight;_3ce=_3cb.h-_3cd;if(_3cd>0&&_3ce>0){_3cb.h=_3cd;}}if(_3cc){if(_3cb.y<0){_3cb.h+=_3cb.y;_3cb.y=0;}if(_3cb.x<0){_3cb.w+=_3cb.x;_3cb.x=0;}if(_3cb.y+_3cb.h>_3c6){_3cb.h=_3c6-_3cb.y;}if(_3cb.x+_3cb.w>_3c5){_3cb.w=_3c5-_3cb.x;}}var l=_3c8.x-_3cb.x,t=_3c8.y-_3cb.y,r=l+_3c8.w-_3cb.w,bot=t+_3c8.h-_3cb.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_3c7||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_3c4)||isIE>=9||has("trident"))){s=-s;}old=el.scrollLeft;_3ca(el,s,0);s=el.scrollLeft-old;_3c8.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_3c7||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_3ca(el,0,s);s=el.scrollTop-old;_3c8.y-=s;}el=(el!=_3c7)&&!_3cc&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return _3c0;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_3cf,_3d0){return _3cf("dojox.mobile.EdgeToEdgeList",_3d0,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","dojo/_base/window","./place","./BackgroundIframe","."],function(_3d1,_3d2,_3d3,_3d4,dom,_3d5,_3d6,_3d7,_3d8,_3d9,has,keys,lang,on,win,_3da,_3db,_3dc){function _3dd(){if(this._popupWrapper){_3d6.destroy(this._popupWrapper);delete this._popupWrapper;}};var _3de=_3d4(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_3df){var _3e0=_3df._popupWrapper,node=_3df.domNode;if(!_3e0){_3e0=_3d6.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},win.body());_3e0.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_3df._popupWrapper=_3e0;_3d2.after(_3df,"destroy",_3dd,true);}return _3e0;},moveOffScreen:function(_3e1){var _3e2=this._createWrapper(_3e1);_3d8.set(_3e2,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_3e3){var _3e4=this._createWrapper(_3e3);_3d8.set(_3e4,"display","none");},getTopPopup:function(){var _3e5=this._stack;for(var pi=_3e5.length-1;pi>0&&_3e5[pi].parent===_3e5[pi-1].widget;pi--){}return _3e5[pi];},open:function(args){var _3e6=this._stack,_3e7=args.popup,_3e8=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_3d7.isBodyLtr(),_3e9=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_3e6.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_3e6[_3e6.length-1].widget.domNode))){this.close(_3e6[_3e6.length-1].widget);}var _3ea=this._createWrapper(_3e7);_3d5.set(_3ea,{id:id,style:{zIndex:this._beginZIndex+_3e6.length},"class":"dijitPopup "+(_3e7.baseClass||_3e7["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("bgIframe")&&!_3e7.bgIframe){_3e7.bgIframe=new _3db(_3ea);}var best=_3e9?_3da.around(_3ea,_3e9,_3e8,ltr,_3e7.orient?lang.hitch(_3e7,"orient"):null):_3da.at(_3ea,args,_3e8=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_3ea.style.display="";_3ea.style.visibility="visible";_3e7.domNode.style.visibility="visible";var _3eb=[];_3eb.push(on(_3ea,_3d3._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_3d9.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_3d9.stop(evt);var _3ec=this.getTopPopup();if(_3ec&&_3ec.onCancel){_3ec.onCancel();}}}})));if(_3e7.onCancel&&args.onCancel){_3eb.push(_3e7.on("cancel",args.onCancel));}_3eb.push(_3e7.on(_3e7.onExecute?"execute":"change",lang.hitch(this,function(){var _3ed=this.getTopPopup();if(_3ed&&_3ed.onExecute){_3ed.onExecute();}})));_3e6.push({widget:_3e7,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_3eb});if(_3e7.onOpen){_3e7.onOpen(best);}return best;},close:function(_3ee){var _3ef=this._stack;while((_3ee&&_3d1.some(_3ef,function(elem){return elem.widget==_3ee;}))||(!_3ee&&_3ef.length)){var top=_3ef.pop(),_3f0=top.widget,_3f1=top.onClose;if(_3f0.onClose){_3f0.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_3f0&&_3f0.domNode){this.hide(_3f0);}if(_3f1){_3f1();}}}});return (_3dc.popup=new _3de());});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(dojo,lang,win,has){win.doc.documentElement.className+=lang.trim([has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return dojo;});},"dijit/_base/window":function(){define("dijit/_base/window",["dojo/window",".."],function(_3f2,_3f3){_3f3.getDocumentWindow=function(doc){return _3f2.get(doc);};});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_3f4,_3f5,_3f6,_3f7,_3f8,_3f9,dom,_3fa,_3fb,_3fc,_3fd,_3fe,_3ff,lang,on,_400,_401,_402,win,_403){if(!_3ff.isAsync){_400(0,function(){var _404=["dijit/_base/manager"];_3f4(_404);});}var _405={};function _406(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _407(attr){return function(val){_3fa[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _408(a,b){return a===b||(a!==a&&b!==b);};return _3f9("dijit._WidgetBase",_401,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_407("lang"),dir:"",_setDirAttr:_407("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_3f7.blankGif||_3f4.toUrl("dojo/resources/blank.gif"),postscript:function(_409,_40a){this.create(_409,_40a);},create:function(_40b,_40c){this.srcNodeRef=dom.byId(_40c);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_40b){this.params=_40b;lang.mixin(this,_40b);}this.postMixInProperties();if(!this.id){this.id=_403.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_403.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _40d=this.srcNodeRef;if(_40d&&_40d.parentNode&&this.domNode!==_40d){_40d.parentNode.replaceChild(this.domNode,_40d);}}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 ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _40e=ctor.prototype;for(var _40f in _40e){if(_40f in this.attributeMap){continue;}var _410="_set"+_40f.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_410 in _40e){list.push(_40f);}}}_3f5.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _411 in this.params){this.set(_411,this[_411]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_3fc.create("div");}if(this.baseClass){var _412=this.baseClass.split(" ");if(!this.isLeftToRight()){_412=_412.concat(_3f5.map(_412,function(name){return name+"Rtl";}));}_3fb.add(this.domNode,_412);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_3f5.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_413){this._beingDestroyed=true;this.destroyDescendants(_413);this.destroy(_413);},destroy:function(_414){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_414);_403.remove(this.id);this._destroyed=true;},destroyRendering:function(_415){if(this.bgIframe){this.bgIframe.destroy(_415);delete this.bgIframe;}if(this.domNode){if(_415){_3fa.remove(this.domNode,"widgetId");}else{_3fc.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_415){_3fc.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_416){_3f5.forEach(this.getChildren(),function(_417){if(_417.destroyRecursive){_417.destroyRecursive(_416);}});},uninitialize:function(){return false;},_setStyleAttr:function(_418){var _419=this.domNode;if(lang.isObject(_418)){_3fe.set(_419,_418);}else{if(_419.style.cssText){_419.style.cssText+="; "+_418;}else{_419.style.cssText=_418;}}this._set("style",_418);},_attrToDom:function(attr,_41a,_41b){_41b=arguments.length>=3?_41b:this.attributeMap[attr];_3f5.forEach(lang.isArray(_41b)?_41b:[_41b],function(_41c){var _41d=this[_41c.node||_41c||"domNode"];var type=_41c.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_41a)){_41a=lang.hitch(this,_41a);}var _41e=_41c.attribute?_41c.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_3fa.set(_41d,_41e,_41a);break;case "innerText":_41d.innerHTML="";_41d.appendChild(win.doc.createTextNode(_41a));break;case "innerHTML":_41d.innerHTML=_41a;break;case "class":_3fb.replace(_41d,_41a,this[attr]);break;}},this);},get:function(name){var _41f=this._getAttrNames(name);return this[_41f.g]?this[_41f.g]():this[name];},set:function(name,_420){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _421=this._getAttrNames(name),_422=this[_421.s];if(lang.isFunction(_422)){var _423=_422.apply(this,Array.prototype.slice.call(arguments,1));}else{var _424=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_424].tagName,_425=_405[tag]||(_405[tag]=_406(this[_424])),map=name in this.attributeMap?this.attributeMap[name]:_421.s in this?this[_421.s]:((_421.l in _425&&typeof _420!="function")||/^aria-|^data-|^role$/.test(name))?_424:null;if(map!=null){this._attrToDom(name,_420,map);}this._set(name,_420);}return _423||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_426){var _427=this[name];this[name]=_426;if(this._watchCallbacks&&this._created&&!_408(_426,_427)){this._watchCallbacks(name,_427,_426);}},on:function(type,func){return _3f6.after(this,this._onMap(type),func,true);},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_403.findWidgets(this.containerNode):[];},getParent:function(){return _403.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_428,_429){var _42a=_3f8.connect(obj,_428,this,_429);this._connects.push(_42a);return _42a;},disconnect:function(_42b){var i=_3f5.indexOf(this._connects,_42b);if(i!=-1){_42b.remove();this._connects.splice(i,1);}},subscribe:function(t,_42c){var _42d=_402.subscribe(t,lang.hitch(this,_42c));this._connects.push(_42d);return _42d;},unsubscribe:function(_42e){this.disconnect(_42e);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_3fd.isBodyLtr();},isFocusable:function(){return this.focus&&(_3fe.get(this.domNode,"display")!="none");},placeAt:function(_42f,_430){if(_42f.declaredClass&&_42f.addChild){_42f.addChild(this,_430);}else{_3fc.place(this.domNode,_42f,_430);}return this;},getTextDir:function(text,_431){return _431;},applyTextDir:function(){},defer:function(fcn,_432){var _433=setTimeout(lang.hitch(this,function(){if(!_433){return;}_433=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_432||0);return {remove:function(){if(_433){clearTimeout(_433);_433=null;}return null;}};}});});},"dojox/mobile/app/AlertDialog":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_434,dojo,_435){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_434._WidgetBase,{title:"",text:"",controller:null,buttons:null,defaultButtonLabel:"OK",onChoose:null,constructor:function(){this.onClick=dojo.hitch(this,this.onClick);this._handleSelect=dojo.hitch(this,this._handleSelect);},buildRendering:function(){this.domNode=dojo.create("div",{"class":"alertDialog"});var _436=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_436);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_436);var _437=dojo.create("div",{"class":"alertBtns"},_436);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _438=this;dojo.forEach(this.buttons,function(_439){var btn=new _435.mobile.Button({btnClass:_439["class"]||"",label:_439.label});btn._dialogValue=_439.value;dojo.place(btn.domNode,_437);_438.connect(btn,"onClick",_438._handleSelect);});var _43a=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_43a.w+"px",height:_43a.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_438.onChoose&&_438.onChoose();_438.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_43b){var node;if(_43b&&_43b.target){node=_43b.target;while(!_434.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_434.byNode(node)._dialogValue:undefined);}this.hide();},show:function(){this._doTransition(1);},hide:function(){this._doTransition(-1);},_doTransition:function(dir){var anim;var h=dojo.marginBox(this.domNode.firstChild).h;var _43c=this.controller.getWindowSize().h;var high=_43c-h;var low=_43c;var _43d=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _43e=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_43d,_43e]);var _43f=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_43f.domNode.style.display="none";dojo.destroy(_43f.domNode);dojo.destroy(_43f.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});}}});define("dojox/mobile/app",["./app/_base"],function(_440){return _440;});