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

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./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/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(_45,_46,_47,_48,_49,win,_4a,dom,_4b,_4c,on,_4d,_4e,_4f,_50,_51){var _52=_48("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_4d(_49.hitch(this,function(){on(win.body(),"startTransition",_49.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_53){if(!_53){return [];}_53.match(/^#?([^&?]+)(.*)/);var _54=RegExp.$2;var _55=_4e.byId(RegExp.$1);if(!_55){return [];}for(var v=_55.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=_55.getShowingView();if(sv&&sv.id!==_55.id){_55.show();}_55=v;}}return [_55.getShowingView(),_55,_54];},openExternalView:function(_56,_57){var d=new _4a();var id=this.viewMap[_56.url];if(id){_56.moveTo=id;if(_56.noTransition){_4e.byId(id).hide();}else{new _50(win.body(),_56).dispatch();}d.resolve(true);return d;}var _58=null;for(var i=_57.childNodes.length-1;i>=0;i--){var c=_57.childNodes[i];if(c.nodeType===1){var _59=c.getAttribute("fixed")||(_4e.byNode(c)&&_4e.byNode(c).fixed);if(_59==="bottom"){_58=c;break;}}}var dh=_56.dataHandlerClass||this.dataHandlerClass;var ds=_56.dataSourceClass||this.dataSourceClass;var ft=_56.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],_49.hitch(this,function(_5a,_5b,_5c){var _5d=new _5a(new _5b(_56.data||_56.url),_57,_58);var _5e=_56.contentType||_5c.getContentType(_56.url)||"html";_5d.processData(_5e,_49.hitch(this,function(id){if(id){this.viewMap[_56.url]=_56.moveTo=id;if(_56.noTransition){_4e.byId(id).hide();}else{new _50(win.body(),_56).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_56.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _5f=evt.detail;if(!_5f.moveTo&&!_5f.href&&!_5f.url&&!_5f.scene){return;}if(_5f.url&&!_5f.moveTo){var _60=_5f.urlTarget;var w=_4e.byId(_60);var _61=w&&w.containerNode||dom.byId(_60);if(!_61){w=_51.getEnclosingView(evt.target);_61=w&&w.domNode.parentNode||win.body();}this.openExternalView(_5f,_61);return;}else{if(_5f.href){if(_5f.hrefTarget){win.global.open(_5f.href,_5f.hrefTarget);}else{var _62;for(var v=_51.getEnclosingView(evt.target);v;v=_51.getParentView(v)){_62=v;}if(_62){_62.performTransition(null,_5f.transitionDir,_5f.transition,evt.target,function(){location.href=_5f.href;});}}return;}else{if(_5f.scene){_47.publish("/dojox/mobile/app/pushScene",[_5f.scene]);return;}}}var arr=this.findTransitionViews(_5f.moveTo),_63=arr[0],_64=arr[1],_65=arr[2];if(!location.hash&&!_5f.hashchange){_51.initialView=_63;}if(_5f.moveTo&&_64){_5f.moveTo=(_5f.moveTo.charAt(0)==="#"?"#"+_64.id:_64.id)+_65;}if(!_63||(_5f.moveTo&&_63===_4e.byId(_5f.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}var src=_4e.getEnclosingWidget(evt.target);if(src&&src.callback){_5f.context=src;_5f.method=src.callback;}_63.performTransition(_5f);}});_52._instance=new _52();_52.getInstance=function(){return _52._instance;};return _52;});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils","./sniff"],function(_66,_67,_68,win,_69,_6a,_6b,_6c,_6d,_6e,_6f,_70,has){return _67("dojox.mobile._ItemBase",[_6e,_6d,_6c],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}if(this._handleClick&&this._selStartMethod==="touch"){this._onTouchStartHandle=this.connect(this.domNode,_6a.press,"_onTouchStart");}this.inherited(arguments);},inheritParams:function(){var _71=this.getParent();if(_71){_66.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var _72=p+"Base",pos=p+"Pos";if(this[p]&&_71[_72]&&_71[_72].charAt(_71[_72].length-1)==="/"){this[p]=_71[_72]+this[p];}if(!this[p]){this[p]=_71[_72];}if(!this[pos]){this[pos]=_71[pos];}}if(!this[p]){this[p]=_71[p];}},this);}return !!_71;},getTransOpts:function(){var _73=this.transitionOptions||{};_66.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){_73[p]=_73[p]||this[p];},this);return _73;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._delayedSelection){this.set("selected",true);}if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){var _74=this;this.defer(function(){_74.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var _75=this.getTransOpts();var _76=!!(_75.moveTo||_75.href||_75.url||_75.target||_75.scene);if(this._prepareForTransition(e,_76?_75:null)===false){return;}if(_76){this.setTransitionPos(e);new _6f(this.domNode,_75,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_77){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_6a.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_6a.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=setTimeout(_68.hitch(this,function(){this.set("selected",true);}),100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){clearTimeout(this._selTimer);this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_69.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_78,_79,url,_7a){var _7b=(_78&&typeof (_78)==="object")?_78:{moveTo:_78,href:_79,url:url,scene:_7a,transition:this.transition,transitionDir:this.transitionDir};new _6f(this.domNode,_7b).dispatch();},_setIconAttr:function(_7c){if(!this._isOnLine){this._pendingIcon=_7c;return;}this._set("icon",_7c);this.iconNode=_70.setIcon(_7c,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(_7d){this._set("label",_7d);this.labelNode.innerHTML=this._cv?this._cv(_7d):_7d;},_setSelectedAttr:function(_7e){if(_7e){var p=this.getParent();if(p&&p.selectOne){var arr=_66.filter(p.getChildren(),function(w){return w.selected;});_66.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_7e);}});});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff","./_ItemBase"],function(_7f,_80,win,_81,_82,_83,has,_84){return _7f("dojox.mobile.ToolBarButton",_84,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=_80.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_82.create("span");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_81.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_82.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_81.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_82.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_82.create("table",{cellPadding:"0",cellSpacing:"0",border:"0"},this.bodyNode);var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_81.add(this.domNode,"mblToolBarButtonHasIcon");_81.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_81.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this._pendingIcon!==undefined?this._pendingIcon:this.icon);delete this._pendingIcon;}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(_85){this.inherited(arguments);_81.toggle(this.tableNode,"mblToolBarButtonText",_85);},_setSelectedAttr:function(_86){var _87=function(_88,a,b){_81.replace(_88,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_86){_81.replace(this.bodyNode,this.selColor,this.defaultColor);if(!has("ie")&&this.arrowNode){_87(this.arrowNode,this.selColor,this.defaultColor);}}else{_81.replace(this.bodyNode,this.defaultColor,this.selColor);if(!has("ie")&&this.arrowNode){_87(this.arrowNode,this.defaultColor,this.selColor);}}_81.toggle(this.domNode,"mblToolBarButtonSelected",_86);_81.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_86);}});});},"dojox/mobile/Container":function(){define("dojox/mobile/Container",["dojo/_base/declare","dijit/_Container","./Pane"],function(_89,_8a,_8b){return _89("dojox.mobile.Container",[_8b,_8a],{baseClass:"mblContainer"});});},"dijit/hccss":function(){define(["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_8c,has,_8d,win){_8d(90,function(){if(has("highcontrast")){_8c.add(win.body(),"dijit_a11y");}});return has;});},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(_8e,_8f){return _8e("dijit._Contained",null,{_getSibling:function(_90){var _91=this.domNode;do{_91=_91[_90+"Sibling"];}while(_91&&_91.nodeType!=1);return _91&&_8f.byNode(_91);},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(["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/on","../main"],function(_92,_93,dom,_94,_95,_96,on,_97){var _98=_93("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(_99,_9a,_9b){var _9c;if(_99!==undefined){_9c=this.filter(_99);if(typeof _9b!="string"){if(_9c!==null&&((typeof _9c!="number")||!isNaN(_9c))){_9b=this.filter(this.format(_9c,this.constraints));}else{_9b="";}}}if(_9b!=null&&((typeof _9b)!="number"||!isNaN(_9b))&&this.textbox.value!=_9b){this.textbox.value=_9b;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_9b);}this.inherited(arguments,[_9c,_9a]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_9d){if(_9d==null){_9d="";}else{if(typeof _9d!="string"){_9d=String(_9d);}}this.textbox.value=_9d;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_9d);}},format:function(_9e){return _9e==null?"":(_9e.toString?_9e.toString():_9e);},parse:function(_9f){return _9f;},_refreshState:function(){},onInput:function(){},__skipInputEvent:false,_onInput:function(evt){if(this.textDir=="auto"){this.applyTextDir(this.focusNode,this.focusNode.value);}this._processInput(evt);},_processInput:function(evt){this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);var _a0=function(e){var _a1;if(e.type=="keydown"){_a1=e.keyCode;switch(_a1){case _95.SHIFT:case _95.ALT:case _95.CTRL:case _95.META:case _95.CAPS_LOCK:case _95.NUM_LOCK:case _95.SCROLL_LOCK:return;}if(!e.ctrlKey&&!e.metaKey&&!e.altKey){switch(_a1){case _95.NUMPAD_0:case _95.NUMPAD_1:case _95.NUMPAD_2:case _95.NUMPAD_3:case _95.NUMPAD_4:case _95.NUMPAD_5:case _95.NUMPAD_6:case _95.NUMPAD_7:case _95.NUMPAD_8:case _95.NUMPAD_9:case _95.NUMPAD_MULTIPLY:case _95.NUMPAD_PLUS:case _95.NUMPAD_ENTER:case _95.NUMPAD_MINUS:case _95.NUMPAD_PERIOD:case _95.NUMPAD_DIVIDE:return;}if((_a1>=65&&_a1<=90)||(_a1>=48&&_a1<=57)||_a1==_95.SPACE){return;}var _a2=false;for(var i in _95){if(_95[i]===e.keyCode){_a2=true;break;}}if(!_a2){return;}}}_a1=e.charCode>=32?String.fromCharCode(e.charCode):e.charCode;if(!_a1){_a1=(e.keyCode>=65&&e.keyCode<=90)||(e.keyCode>=48&&e.keyCode<=57)||e.keyCode==_95.SPACE?String.fromCharCode(e.keyCode):e.keyCode;}if(!_a1){_a1=229;}if(e.type=="keypress"){if(typeof _a1!="string"){return;}if((_a1>="a"&&_a1<="z")||(_a1>="A"&&_a1<="Z")||(_a1>="0"&&_a1<="9")||(_a1===" ")){if(e.ctrlKey||e.metaKey||e.altKey){return;}}}if(e.type=="input"){if(this.__skipInputEvent){this.__skipInputEvent=false;return;}}else{this.__skipInputEvent=true;}var _a3={faux:true},_a4;for(_a4 in e){if(_a4!="layerX"&&_a4!="layerY"){var v=e[_a4];if(typeof v!="function"&&typeof v!="undefined"){_a3[_a4]=v;}}}_96.mixin(_a3,{charOrCode:_a1,_wasConsumed:false,preventDefault:function(){_a3._wasConsumed=true;e.preventDefault();},stopPropagation:function(){e.stopPropagation();}});if(this.onInput(_a3)===false){_a3.preventDefault();_a3.stopPropagation();}if(_a3._wasConsumed){return;}this.defer(function(){this._onInput(_a3);});};this.own(on(this.textbox,"keydown, keypress, paste, cut, input, compositionend",_96.hitch(this,_a0)));},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=_96.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(_a5){return _a5.substring(0,1).toUpperCase()+_a5.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);},_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);this._selectOnClickHandle=null;if(!this._isTextSelected()){_98.selectInputText(this.textbox);}});this.defer(function(){if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);this._selectOnClickHandle=null;}},500);}this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);},_setTextDirAttr:function(_a6){if(!this._created||this.textDir!=_a6){this._set("textDir",_a6);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_98._setSelectionRange=_97._setSelectionRange=function(_a7,_a8,_a9){if(_a7.setSelectionRange){_a7.setSelectionRange(_a8,_a9);}};_98.selectInputText=_97.selectInputText=function(_aa,_ab,_ac){_aa=dom.byId(_aa);if(isNaN(_ab)){_ab=0;}if(isNaN(_ac)){_ac=_aa.value?_aa.value.length:0;}try{_aa.focus();_98._setSelectionRange(_aa,_ab,_ac);}catch(e){}};return _98;});},"dojox/mobile/parser":function(){define("dojox/mobile/parser",["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/lang","dojo/_base/window","dojo/ready"],function(_ad,_ae,_af,_b0,win,_b1){var dm=_b0.getObject("dojox.mobile",true);var _b2=function(){var _b3={};var _b4=function(_b5,_b6){if(typeof (_b6)==="string"){var t=_b5+":"+_b6.replace(/ /g,"");return _b3[t]||(_b3[t]=_b4(_b5).createSubclass(_ae.map(_b6.split(/, */),_b4)));}return _b3[_b5]||(_b3[_b5]=_b0.getObject(_b5)||require(_b5));};var _b7=function(js){return eval(js);};this.instantiate=function(_b8,_b9,_ba){_b9=_b9||{};_ba=_ba||{};var i,ws=[];if(_b8){for(i=0;i<_b8.length;i++){var n=_b8[i],_bb=n._type,_bc=_b4(_bb,n.getAttribute("data-dojo-mixins")),_bd=_bc.prototype,_be={},_bf,v,t;_b0.mixin(_be,_b7.call(_ba.propsThis,"({"+(n.getAttribute("data-dojo-props")||"")+"})"));_b0.mixin(_be,_ba.defaults);_b0.mixin(_be,_b9);for(_bf in _bd){v=n.getAttributeNode(_bf);v=v&&v.nodeValue;t=typeof _bd[_bf];if(!v&&(t!=="boolean"||v!=="")){continue;}if(_b0.isArray(_bd[_bf])){_be[_bf]=v.split(/\s*,\s*/);}else{if(t==="string"){_be[_bf]=v;}else{if(t==="number"){_be[_bf]=v-0;}else{if(t==="boolean"){_be[_bf]=(v!=="false");}else{if(t==="object"){_be[_bf]=eval("("+v+")");}else{if(t==="function"){_be[_bf]=_b0.getObject(v,false)||new Function(v);n.removeAttribute(_bf);}}}}}}}_be["class"]=n.className;if(!_be.style){_be.style=n.style.cssText;}v=n.getAttribute("data-dojo-attach-point");if(v){_be.dojoAttachPoint=v;}v=n.getAttribute("data-dojo-attach-event");if(v){_be.dojoAttachEvent=v;}var _c0=new _bc(_be,n);ws.push(_c0);var _c1=n.getAttribute("jsId")||n.getAttribute("data-dojo-id");if(_c1){_b0.setObject(_c1,_c0);}}for(i=0;i<ws.length;i++){var w=ws[i];!_ba.noStart&&w.startup&&!w._started&&w.startup();}}return ws;};this.parse=function(_c2,_c3){if(!_c2){_c2=win.body();}else{if(!_c3&&_c2.rootNode){_c3=_c2;_c2=_c2.rootNode;}}var _c4=_c2.getElementsByTagName("*");var i,j,_c5=[];for(i=0;i<_c4.length;i++){var n=_c4[i],_c6=(n._type=n.getAttribute("dojoType")||n.getAttribute("data-dojo-type"));if(_c6){if(n._skip){n._skip="";continue;}if(_b4(_c6).prototype.stopParser&&!(_c3&&_c3.template)){var arr=n.getElementsByTagName("*");for(j=0;j<arr.length;j++){arr[j]._skip="1";}}_c5.push(n);}}var _c7=_c3&&_c3.template?{template:true}:null;return this.instantiate(_c5,_c7,_c3);};};var _c8=new _b2();if(_af.parseOnLoad){_b1(100,function(){try{if(!require("dojo/parser")){_c8.parse();}}catch(e){_c8.parse();}});}dm.parser=_c8;_ad.parser=_ad.parser||_c8;return _c8;});},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct"],function(_c9,_ca,_cb){return _ca("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_cc,_cd){var _ce=this.containerNode;if(_cd&&typeof _cd=="number"){var _cf=this.getChildren();if(_cf&&_cf.length>=_cd){_ce=_cf[_cd-1].domNode;_cd="after";}}_cb.place(_cc.domNode,_ce,_cd);if(this._started&&!_cc._started){_cc.startup();}},removeChild:function(_d0){if(typeof _d0=="number"){_d0=this.getChildren()[_d0];}if(_d0){var _d1=_d0.domNode;if(_d1&&_d1.parentNode){_d1.parentNode.removeChild(_d1);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_d2,dir){var _d3=this.getChildren(),idx=_c9.indexOf(this.getChildren(),_d2);return _d3[idx+dir];},getIndexOfChild:function(_d4){return _c9.indexOf(this.getChildren(),_d4);}});});},"dojox/mobile/app/SceneController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/_base"],function(_d5,_d6,_d7){_d6.provide("dojox.mobile.app.SceneController");_d6.experimental("dojox.mobile.app.SceneController");_d6.require("dojox.mobile._base");(function(){var app=_d7.mobile.app;var _d8={};_d6.declare("dojox.mobile.app.SceneController",_d7.mobile.View,{stageController:null,keepScrollPos:false,init:function(_d9,_da){this.sceneName=_d9;this.params=_da;var _db=app.resolveTemplate(_d9);this._deferredInit=new _d6.Deferred();if(_d8[_d9]){this._setContents(_d8[_d9]);}else{_d6.xhrGet({url:_db,handleAs:"text"}).addCallback(_d6.hitch(this,this._setContents));}return this._deferredInit;},_setContents:function(_dc){_d8[this.sceneName]=_dc;this.domNode.innerHTML="<div>"+_dc+"</div>";var _dd="";var _de=this.sceneName.split("-");for(var i=0;i<_de.length;i++){_dd+=_de[i].substring(0,1).toUpperCase()+_de[i].substring(1);}_dd+="Assistant";this.sceneAssistantName=_dd;var _df=this;_d7.mobile.app.loadResourcesForScene(this.sceneName,function(){console.log("All resources for ",_df.sceneName," loaded");var _e0;if(typeof (_d6.global[_dd])!="undefined"){_df._initAssistant();}else{var _e1=app.resolveAssistant(_df.sceneName);_d6.xhrGet({url:_e1,handleAs:"text"}).addCallback(function(_e2){try{_d6.eval(_e2);}catch(e){console.log("Error initializing code for scene "+_df.sceneName+". Please check for syntax errors");throw e;}_df._initAssistant();});}});},_initAssistant:function(){console.log("Instantiating the scene assistant "+this.sceneAssistantName);var cls=_d6.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(_e3,_e4){return _d6.query(_e3,_e4||this.domNode);},parse:function(_e5){var _e6=this._widgets=_d7.mobile.parser.parse(_e5||this.domNode,{controller:this});for(var i=0;i<_e6.length;i++){_e6[i].set("controller",this);}},getWindowSize:function(){return {w:_d6.global.innerWidth,h:_d6.global.innerHeight};},showAlertDialog:function(_e7){var _e8=_d6.marginBox(this.assistant.domNode);var _e9=new _d7.mobile.app.AlertDialog(_d6.mixin(_e7,{controller:this}));this.assistant.domNode.appendChild(_e9.domNode);console.log("Appended ",_e9.domNode," to ",this.assistant.domNode);_e9.show();},popupSubMenu:function(_ea){var _eb=new _d7.mobile.app.ListSelector({controller:this,destroyOnHide:true,onChoose:_ea.onChoose});this.assistant.domNode.appendChild(_eb.domNode);_eb.set("data",_ea.choices);_eb.show(_ea.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(_ec,_ed,_ee){_ed.provide("dojox.mobile.app._base");_ed.experimental("dojox.mobile.app._base");_ed.require("dijit._base");_ed.require("dijit._WidgetBase");_ed.require("dojox.mobile");_ed.require("dojox.mobile.parser");_ed.require("dojox.mobile.Button");_ed.require("dojox.mobile.app._event");_ed.require("dojox.mobile.app._Widget");_ed.require("dojox.mobile.app.StageController");_ed.require("dojox.mobile.app.SceneController");_ed.require("dojox.mobile.app.SceneAssistant");_ed.require("dojox.mobile.app.AlertDialog");_ed.require("dojox.mobile.app.List");_ed.require("dojox.mobile.app.ListSelector");_ed.require("dojox.mobile.app.TextBox");_ed.require("dojox.mobile.app.ImageView");_ed.require("dojox.mobile.app.ImageThumbView");(function(){var _ef;var _f0;var _f1=["dojox.mobile","dojox.mobile.parser"];var _f2={};var _f3;var _f4;var _f5=[];function _f6(_f7,_f8){var _f9;var url;do{_f9=_f7.pop();if(_f9.source){url=_f9.source;}else{if(_f9.module){url=_ed.moduleUrl(_f9.module)+".js";}else{console.log("Error: invalid JavaScript resource "+_ed.toJson(_f9));return;}}}while(_f7.length>0&&_f2[url]);if(_f7.length<1&&_f2[url]){_f8();return;}_ed.xhrGet({url:url,sync:false}).addCallbacks(function(_fa){_ed["eval"](_fa);_f2[url]=true;if(_f7.length>0){_f6(_f7,_f8);}else{_f8();}},function(){console.log("Failed to load resource "+url);});};var _fb=function(){_ef=new _ee.mobile.app.StageController(_f4);var _fc={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(_ed.global["appInfo"]){_ed.mixin(_fc,_ed.global["appInfo"]);}_f0=_ee.mobile.app.info=_fc;if(_f0.title){var _fd=_ed.query("head title")[0]||_ed.create("title",{},_ed.query("head")[0]);document.title=_f0.title;}_ef.pushScene(_f0.initialScene);};var _fe=function(){var _ff=false;if(_ed.global.BackButton){BackButton.override();_ed.connect(document,"backKeyDown",function(e){_ed.publish("/dojox/mobile/app/goback");});_ff=true;}else{if(_ed.global.Mojo){}}if(_ff){_ed.addClass(_ed.body(),"mblNativeBack");}};_ed.mixin(_ee.mobile.app,{init:function(node){_f4=node||_ed.body();_ee.mobile.app.STAGE_CONTROLLER_ACTIVE=true;_ed.subscribe("/dojox/mobile/app/goback",function(){_ef.popScene();});_ed.subscribe("/dojox/mobile/app/alert",function(_100){_ee.mobile.app.getActiveSceneController().showAlertDialog(_100);});_ed.subscribe("/dojox/mobile/app/pushScene",function(_101,_102){_ef.pushScene(_101,_102||{});});_ed.xhrGet({url:"view-resources.json",load:function(data){var _103=[];if(data){_f5=data=_ed.fromJson(data);for(var i=0;i<data.length;i++){if(!data[i].scene){_103.push(data[i]);}}}if(_103.length>0){_f6(_103,_fb);}else{_fb();}},error:_fb});_fe();},getActiveSceneController:function(){return _ef.getActiveSceneController();},getStageController:function(){return _ef;},loadResources:function(_104,_105){_f6(_104,_105);},loadResourcesForScene:function(_106,_107){var _108=[];for(var i=0;i<_f5.length;i++){if(_f5[i].scene==_106){_108.push(_f5[i]);}}if(_108.length>0){_f6(_108,_107);}else{_107();}},resolveTemplate:function(_109){return "app/views/"+_109+"/"+_109+"-scene.html";},resolveAssistant:function(_10a){return "app/assistants/"+_10a+"-assistant.js";}});})();});},"dijit/_base/scroll":function(){define(["dojo/window","../main"],function(_10b,_10c){_10c.scrollIntoView=function(node,pos){_10b.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,_10d,dojo,_10e,_10f,_110,dom,_111,geom,_112,_113){if(!dojo.isAsync){_112(0,function(){var _114=["./fx/Toggler"];_113(_114);});}var _115=dojo.fx={};var _116={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _117=function(_118){this._index=-1;this._animations=_118||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_10e.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};_117.prototype=new _10d();lang.extend(_117,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_10f.disconnect(this._onAnimateCtx);_10f.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=_10f.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_10f.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_119,_11a){if(!this._current){this._current=this._animations[this._index=0];}if(!_11a&&this._current.status()=="playing"){return this;}var _11b=_10f.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_11c=_10f.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_11d=_10f.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_10f.disconnect(_11b);_10f.disconnect(_11c);_10f.disconnect(_11d);});if(this._onAnimateCtx){_10f.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_10f.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_10f.disconnect(this._onEndCtx);}this._onEndCtx=_10f.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_10f.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_10f.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_11e,_11f){this.pause();var _120=this.duration*_11e;this._current=null;_10e.some(this._animations,function(a){if(a.duration<=_120){this._current=a;return true;}_120-=a.duration;return false;});if(this._current){this._current.gotoPercent(_120/this._current.duration,_11f);}return this;},stop:function(_121){if(this._current){if(_121){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=_10f.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);_10f.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){_10f.disconnect(this._onAnimateCtx);}if(this._onEndCtx){_10f.disconnect(this._onEndCtx);}}});lang.extend(_117,_116);_115.chain=function(_122){return new _117(_122);};var _123=function(_124){this._animations=_124||[];this._connects=[];this._finished=0;this.duration=0;_10e.forEach(_124,function(a){var _125=a.duration;if(a.delay){_125+=a.delay;}if(this.duration<_125){this.duration=_125;}this._connects.push(_10f.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new _110.Animation({curve:[0,1],duration:this.duration});var self=this;_10e.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(_10f.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};lang.extend(_123,{_doAction:function(_126,args){_10e.forEach(this._animations,function(a){a[_126].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_127,args){var t=this._pseudoAnimation;t[_127].apply(t,args);},play:function(_128,_129){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(_12a,_12b){var ms=this.duration*_12a;_10e.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_12b);});this._call("gotoPercent",arguments);return this;},stop:function(_12c){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){_10e.forEach(this._connects,_10f.disconnect);}});lang.extend(_123,_116);_115.combine=function(_12d){return new _123(_12d);};_115.wipeIn=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_110.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 _12e=_111.get(node,"height");return Math.max(_12e,1);}},end:function(){return node.scrollHeight;}}}},args));var fini=function(){s.height="auto";s.overflow=o;};_10f.connect(anim,"onStop",fini);_10f.connect(anim,"onEnd",fini);return anim;};_115.wipeOut=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_110.animateProperty(lang.mixin({properties:{height:{end:1}}},args));_10f.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});var fini=function(){s.overflow=o;s.height="auto";s.display="none";};_10f.connect(anim,"onStop",fini);_10f.connect(anim,"onEnd",fini);return anim;};_115.slideTo=function(args){var node=args.node=dom.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=_111.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=_110.animateProperty(lang.mixin({properties:{top:args.top||0,left:args.left||0}},args));_10f.connect(anim,"beforeBegin",anim,init);return anim;};return _115;});},"dijit/_base":function(){define(["./main","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_12f){return _12f._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||ua.indexOf("BB10"))&&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/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase"],function(_130,_131,lang,_132,_133,_134,_135,has,_136,_137){var cls=_131("dojox.mobile.ProgressIndicator",[_137,_136],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_132.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_133.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_133.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_133.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _138=size/40;_135.set(this.containerNode,{webkitTransform:"scale("+_138+")",webkitTransformOrigin:"0 0"});_134.setMarginBox(this.domNode,{w:size,h:size});_134.setMarginBox(this.containerNode,{w:size/_138,h:size/_138});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _139=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_139.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;if(c[idx]){_139._bars[i].style.backgroundColor=c[idx];}else{_132.replace(_139._bars[i],"mblProg"+idx+"Color","mblProg"+(idx===n-1?0:idx+1)+"Color");}}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.removeOnStop&&this.domNode&&this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_133.create("img",{src:file},this.containerNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.containerNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}},destroy:function(){this.inherited(arguments);if(this===cls._instance){cls._instance=null;}}});cls._instance=null;cls.getInstance=function(_13a){if(!cls._instance){cls._instance=new cls(_13a);}return cls._instance;};return cls;});},"dijit/form/_FormWidgetMixin":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/sniff","dojo/window","../a11y"],function(_13b,_13c,_13d,_13e,lang,_13f,has,_140,a11y){return _13c("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text","aria-label":"focusNode",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_141){this._set("disabled",_141);_13d.set(this.focusNode,"disabled",_141);if(this.valueNode){_13d.set(this.valueNode,"disabled",_141);}this.focusNode.setAttribute("aria-disabled",_141?"true":"false");if(_141){this._set("hovering",false);this._set("active",false);var _142="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_13b.forEach(lang.isArray(_142)?_142:[_142],function(_143){var node=this[_143];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 _144=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_145);this.disconnect(_144);});var _145=this.connect(this.ownerDocumentBody,"onmouseup",function(){this.disconnect(_145);this.disconnect(_144);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_140.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_13e.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(_146,_147){if(this._lastValueReported==undefined&&(_147===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_146;}this._pendingOnChange=this._pendingOnChange||(typeof _146!=typeof this._lastValueReported)||(this.compare(_146,this._lastValueReported)!=0);if((this.intermediateChanges||_147||_147===undefined)&&this._pendingOnChange){this._lastValueReported=_146;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_146);});}}},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(["require","./main","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/sniff","dojo/_base/window"],function(_148,_149,_14a,_14b,_14c,lang,on,has,win){var _14d=new function(){var _14e=[];this.pop=function(){var _14f;if(_14e.length){_14f=_14e.pop();_14f.style.display="";}else{if(has("ie")<9){var burl=_14a["dojoBlankHtmlUrl"]||_148.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\");'>";_14f=win.doc.createElement(html);}else{_14f=_14b.create("iframe");_14f.src="javascript:\"\"";_14f.className="dijitBackgroundIframe";_14f.setAttribute("role","presentation");_14c.set(_14f,"opacity",0.1);}_14f.tabIndex=-1;}return _14f;};this.push=function(_150){_150.style.display="none";_14e.push(_150);};}();_149.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(has("ie")||has("mozilla")){var _151=(this.iframe=_14d.pop());node.appendChild(_151);if(has("ie")<7||has("quirks")){this.resize(node);this._conn=on(node,"resize",lang.hitch(this,function(){this.resize(node);}));}else{_14c.set(_151,{width:"100%",height:"100%"});}}};lang.extend(_149.BackgroundIframe,{resize:function(node){if(this.iframe){_14c.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){_14d.push(this.iframe);delete this.iframe;}}});return _149.BackgroundIframe;});},"dojox/mobile":function(){define([".","dojo/_base/lang","dojox/mobile/_base"],function(_152,lang,base){lang.getObject("mobile",true,_152);return _152.mobile;});},"dijit/form/_FormValueMixin":function(){define(["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/sniff","./_FormWidgetMixin"],function(_153,_154,keys,has,_155){return _153("dijit.form._FormValueMixin",_155,{readOnly:false,_setReadOnlyAttr:function(_156){_154.set(this.focusNode,"readOnly",_156);this._set("readOnly",_156);},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(_157,_158){this._handleOnChange(_157,_158);},_handleOnChange:function(_159,_15a){this._set("value",_159);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)){if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();var node=e.srcElement,te=node.ownerDocument.createEventObject();te.keyCode=keys.ESCAPE;te.shiftKey=e.shiftKey;node.fireEvent("onkeypress",te);}}}});});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/ready","dijit/registry","./sniff","./uacss"],function(_15b,_15c,_15d,lang,win,_15e,_15f,_160,_161,has){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();_15e.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(_162){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_162||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_162||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_15e.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_15d.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_15c["mblHideAddressBarWait"])==="number"?_15c["mblHideAddressBarWait"]:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("iphone")?200:0;var minH=screen.availHeight;if(has("android")){minH=outerHeight/devicePixelRatio;if(minH==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(minH<=innerHeight){minH=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight<minH){win.body().style.minHeight=minH+"px";dm._resetMinHeight=true;}setTimeout(dm.hide_1,dm._hidingTimer);};dm.isAddressBarHidden=function(){return pageYOffset===1;};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_15d.publish("/dojox/mobile/resizeAll",[evt,root]);_15d.publish("/dojox/mobile/beforeResizeAll",[evt,root]);if(dm._resetMinHeight){win.body().style.minHeight=dm.getScreenSize().h+"px";}dm.updateOrient();dm.detectScreenSize();var _163=function(w){var _164=w.getParent&&w.getParent();return !!((!_164||!_164.resize)&&w.resize);};var _165=function(w){_15b.forEach(w.getChildren(),function(_166){if(_163(_166)){_166.resize();}_165(_166);});};if(root){if(root.resize){root.resize();}_165(root);}else{_15b.forEach(_15b.filter(_161.toArray(),_163),function(w){w.resize();});}_15d.publish("/dojox/mobile/afterResizeAll",[evt,root]);};dm.openWindow=function(url,_167){win.global.open(url,_167||"_blank");};if(_15c["mblApplyPageStyles"]!==false){_15e.add(win.doc.documentElement,"mobile");}if(has("chrome")){_15e.add(win.doc.documentElement,"dj_chrome");}if(win.global._no_dojo_dm){var _168=win.global._no_dojo_dm;for(var i in _168){dm[i]=_168[i];}dm.deviceTheme.setDm(dm);}has.add("mblAndroidWorkaround",_15c["mblAndroidWorkaround"]!==false&&has("android")<3,undefined,true);has.add("mblAndroid3Workaround",_15c["mblAndroid3Workaround"]!==false&&has("android")>=3,undefined,true);_160(function(){dm.detectScreenSize(true);if(_15c["mblAndroidWorkaroundButtonStyle"]!==false&&has("android")){_15f.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("mblAndroidWorkaround")){_15f.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;if(_15c["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_15c["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_15c["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}var ios6=has("iphone")>=6;if((has("android")||ios6)&&win.global.onorientationchange!==undefined){var _169=f;f=function(evt){var _16a=_15d.connect(null,"onresize",null,function(e){_15d.disconnect(_16a);_169(e);});};var _16b=dm.getScreenSize();var _16c=ios6?20:100;var _16d=null;var _16e=null;if(ios6){_15d.connect(null,"onkeyup",null,function(e){_16d=(new Date()).getTime();});_16e=function(node){if(node&&node.nodeType!==1){node=node.parentNode;}if(!node||node.nodeType!==1){return false;}var t=node.tagName;return (t==="SELECT"||t==="INPUT"||t==="TEXTAREA"||t==="BUTTON");};}_15d.connect(null,"onresize",null,function(e){var _16f=dm.getScreenSize();if(_16f.w==_16b.w&&Math.abs(_16f.h-_16b.h)>=_16c&&!(ios6&&((_16d&&((new Date()).getTime()-_16d)<400)||_16e(win.doc.activeElement)))){if(ios6&&pageYOffset>1){dm.resizeAll();}else{_169(e);}}_16b=_16f;});}_15d.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojox/mobile/iconUtils":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_170,_171,_172,_173,lang,win,_174,_175,_176,has){var dm=lang.getObject("dojox.mobile",true);var _177=function(){this.setupSpriteIcon=function(_178,_179){if(_178&&_179){var arr=_170.map(_179.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];_176.set(_178,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_178.parentNode?_176.get(_178,"top"):0)-t+"px",left:-l+"px"});_174.add(_178,"mblSpriteIcon");}};this.createDomButton=function(_17a,_17b,_17c){if(!this._domButtons){if(has("webkit")){var _17d=function(_17e,dic){var i,j;if(!_17e){var _17f={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_17d(ss[i],_17f);}return _17f;}var _180=_17e.cssRules||[];for(i=0;i<_180.length;i++){var rule=_180[i];if(rule.href&&rule.styleSheet){_17d(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;}}}}}}return dic;};this._domButtons=_17d();}else{this._domButtons={};}}var s=_17a.className;var node=_17c||_17a;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _181=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_181]!==undefined){nDiv=this._domButtons[_181];}}var _182=null;if(has("bb")&&_171["mblBBBoxShadowWorkaround"]!==false){_182={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_175.create("div",_182,p);}if(_17c){setTimeout(function(){_174.remove(_17a,_181);},0);_174.add(_17c,_181);}}else{if(s.indexOf(".")!==-1){_175.create("img",{src:s},node);}else{return null;}}_174.add(node,"mblDomButton");!!_17b&&_176.set(node,_17b);return node;};this.createIcon=function(icon,_183,node,_184,_185,_186,pos){_184=_184||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_175.create("div",null,_186||_185,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_174.remove(node,RegExp.$1);}}node.title=_184;_174.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_175.create("img",{alt:_184},_186||_185,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_183);if(_183&&_185){var arr=_183.split(/[ ,]/);_176.set(_185,{width:arr[2]+"px",height:arr[3]+"px"});_174.add(_185,"mblSpriteIconParent");}_172.connect(node,"ondragstart",_173,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_187,_188,alt,_189,_18a,pos){if(!_189||!icon&&!_188){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_187){if(_188&&_188.tagName==="DIV"){_175.destroy(_188);_188=null;}_188=this.createIcon(icon,null,_188,alt,_189,_18a,pos);_174.add(_188,"mblImageIcon");}else{if(_188&&_188.tagName==="IMG"){_175.destroy(_188);_188=null;}_188&&_175.empty(_188);if(!_188){_188=_175.create("div",null,_18a||_189,pos);}this.createIcon(icon,_187,null,null,_188);if(alt){_188.title=alt;}}_174.remove(_189,"mblNoIcon");return _188;}else{_175.destroy(_188);_174.add(_189,"mblNoIcon");return null;}};};return new _177();});},"dojox/mobile/Heading":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View"],function(_18b,_18c,_18d,lang,win,dom,_18e,_18f,_190,_191,_192,_193,_194,_195,_196,View){var dm=lang.getObject("dojox.mobile",true);return _18d("dojox.mobile.Heading",[_194,_193,_192],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.inherited(arguments);if(!this.label){_18b.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_18f.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_18f.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_18f.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _197=this.getParent&&this.getParent();if(!_197||!_197.resize){var _198=this;setTimeout(function(){_198.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _199,_19a;var _19b=this.containerNode.childNodes;for(var i=_19b.length-1;i>=0;i--){var c=_19b[i];if(c.nodeType===1&&_190.get(c,"display")!=="none"){if(!_19a&&_190.get(c,"float")==="right"){_19a=c;}if(!_199&&_190.get(c,"float")==="left"){_199=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=_19a?bw-_19a.offsetLeft+5:0;var lw=_199?_199.offsetLeft+_199.offsetWidth+5:0;var tw=this.labelNodeLen||0;_18e[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_18b.forEach(this.getChildren(),function(_19c){if(_19c.resize){_19c.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _196({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo,href:this.href,transition:this.transition,transitionDir:-1});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setMoveToAttr:function(_19d){this._set("moveTo",_19d);if(this.backButton){this.backButton.set("moveTo",_19d);}},_setLabelAttr:function(_19e){this._set("label",_19e);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_19e):_19e;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _195({size:30,center:false});_18e.add(prog.domNode,this.progStyle);}_18f.place(prog.domNode,this.domNode,"first");prog.start();}else{prog.stop();}this._set("busy",busy);}});});},"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/event","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_19f,_1a0,_1a1,lang,win,_1a2,_1a3,_1a4,_1a5){return _1a0("dojox.mobile.RoundRectList",[_1a5,_1a4,_1a3],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,syncWithViews:false,editable:false,tag:"ul",editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",buildRendering:function(){this.domNode=this.srcNodeRef||_1a2.create(this.tag);this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_1a6){_1a0.safeMixin(this,new _1a6());}));}this.connect(this.domNode,"onselectstart",_1a1.stop);if(this.syncWithViews){var f=function(view,_1a7,dir,_1a8,_1a9,_1aa){var _1ab=_19f.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_1ab){_1ab.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_19f.forEach(this.getChildren(),function(_1ac){if(_1ac.resize){_1ac.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_1ad){this._set("stateful",_1ad);this.selectOne=_1ad;_19f.forEach(this.getChildren(),function(_1ae){_1ae.setArrow&&_1ae.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_19f.forEach(this.getChildren(),function(_1af){_1af.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_1b0,lang,_1b1,when){return _1b0("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_1b2){if(_1b2){this.set(_1b2);}},_get:function(name,_1b3){return typeof this[_1b3.g]==="function"?this[_1b3.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1b4){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1b5=this._getAttrNames(name),_1b6=this._get(name,_1b5),_1b7=this[_1b5.s],_1b8;if(typeof _1b7==="function"){_1b8=_1b7.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1b4;}if(this._watchCallbacks){var self=this;when(_1b8,function(){self._watchCallbacks(name,_1b6,_1b4);});}return this;},_changeAttrValue:function(name,_1b9){var _1ba=this.get(name);this[name]=_1b9;if(this._watchCallbacks){this._watchCallbacks(name,_1ba,_1b9);}return this;},watch:function(name,_1bb){var _1bc=this._watchCallbacks;if(!_1bc){var self=this;_1bc=this._watchCallbacks=function(name,_1bd,_1be,_1bf){var _1c0=function(_1c1){if(_1c1){_1c1=_1c1.slice();for(var i=0,l=_1c1.length;i<l;i++){_1c1[i].call(self,name,_1bd,_1be);}}};_1c0(_1bc["_"+name]);if(!_1bf){_1c0(_1bc["*"]);}};}if(!_1bb&&typeof name==="function"){_1bb=name;name="*";}else{name="_"+name;}var _1c2=_1bc[name];if(typeof _1c2!=="object"){_1c2=_1bc[name]=[];}_1c2.push(_1bb);var _1c3={};_1c3.unwatch=_1c3.remove=function(){var _1c4=_1b1.indexOf(_1c2,_1bb);if(_1c4>-1){_1c2.splice(_1c4,1);}};return _1c3;}});});},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_1c5,_1c6,_1c7){var _1c8={length:0,hash:{},initialView:null,add:function(view){this.hash[view.id]=view;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(view){for(var v=view.getParent();v;v=v.getParent()){if(_1c6.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_1c9){return _1c5.filter(this.getViews(),function(v){return this.getParentView(v)===_1c9;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_1c6.contains(n,"mblView")){return _1c7.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_1c7.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _1c8;});},"dojox/mobile/app/List":function(){define(["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(_1ca,dojo,_1cb){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _1cc={};dojo.declare("dojox.mobile.app.List",_1ca._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 _1cd=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_1ce){var _1cf=_1ce;if(_1ce.targetTouches&&_1ce.targetTouches.length>0){_1cf=_1ce.targetTouches[0];}var _1d0=_1cd._getRowNode(_1ce.target);if(_1d0){_1cd._setDataInfo(_1d0,_1ce);_1cd._selectRow(_1d0);_1cd._mouseDownPos={x:_1cf.pageX,y:_1cf.pageY};_1cd._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1d1){if(_1d1.targetTouches&&_1d1.targetTouches.length>0){_1d1=_1d1.targetTouches[0];}var _1d2=_1cd._getRowNode(_1d1.target);if(_1d2){_1cd._setDataInfo(_1d2,_1d1);if(_1cd._selectedRow){_1cd.onSelect(_1d2._data,_1d2._idx,_1d2);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1d3){dojo.stopEvent(_1d3);if(!_1cd._selectedRow){return;}var _1d4=_1cd._getRowNode(_1d3.target);if(_1cd.enableDelete&&_1d4&&!_1cd._deleting){_1cd.handleDrag(_1d3);}});}this.connect(this.domNode,"onclick",function(_1d5){if(_1d5.touches&&_1d5.touches.length>0){_1d5=_1d5.touches[0];}var _1d6=_1cd._getRowNode(_1d5.target,true);if(_1d6){_1cd._setDataInfo(_1d6,_1d5);}});this.connect(this.domNode,"mouseout",function(_1d7){if(_1d7.touches&&_1d7.touches.length>0){_1d7=_1d7.touches[0];}if(_1d7.target==_1cd._selectedRow){_1cd._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(_1d8){var _1d9=_1d8;if(_1d8.targetTouches&&_1d8.targetTouches.length>0){_1d9=_1d8.targetTouches[0];}var diff=_1d9.pageX-this._mouseDownPos.x;var _1da=Math.abs(diff);if(_1da>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1da>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1da){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(_1db){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1db+((_1db>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(_1dc){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1dd=row.nextSibling;var _1de=row.previousSibling;if(_1de&&_1de._isDivider){if(!_1dd||_1dd._isDivider){_1de.parentNode.removeChild(_1de);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1dd){if(_1dd._idx){_1dd._idx--;}_1dd=_1dd.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1df){var mb=dojo.marginBox(_1df);var pos=dojo._abs(_1df,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _1cb.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _1cb.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:(_1df.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1e0,_1e1){_1e1.splice(_1e0,1);if(_1e1.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1e2){if(_1e2.touches&&_1e2.touches.length>0){_1e2=_1e2.touches[0];}var node=_1e2.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,_1e3){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1e3.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1e4,_1e5){_1e5.item=_1e4._data;_1e5.index=_1e4._idx;},onSelect:function(data,_1e6,_1e7){},_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(_1e8,_1e9){while(_1e8&&!_1e8._data&&_1e8!=this.domNode){if(!_1e9&&dojo.hasClass(_1e8,"noclick")){return null;}_1e8=_1e8.parentNode;}return _1e8==this.domNode?null:_1e8;},applyTemplate:function(_1ea,data){return dojo._toDom(dojo.string.substitute(_1ea,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(_1eb,_1ec){var rows=[];var row,i;var frag=document.createDocumentFragment();_1eb=Math.max(0,_1eb);_1ec=Math.min(_1ec,this.items.length);for(i=_1eb;i<_1ec;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=_1eb;i<_1ec;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1ed=null;var _1ee;var _1ef;for(i=_1eb;i<_1ec;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1ee=this.dividerFunction(this.items[i]);if(_1ee&&_1ee!=_1ed){_1ef=this.applyTemplate(this.dividerTemplate,{label:_1ee,item:this.items[i]});_1ef._isDivider=true;frag.appendChild(_1ef);_1ed=_1ee;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1f0,key){if(key.charAt(0)=="!"){_1f0=dojo.getObject(key.substr(1),false,_this);}if(typeof _1f0=="undefined"){return "";}if(_1f0==null){return "";}return key.charAt(0)=="!"?_1f0:_1f0.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1f1,_1f2){if(!url){_1f2();return;}if(_1cc[url]){this.set(_1f1,_1cc[url]);_1f2();}else{var _1f3=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_1cc[url]=dojo.trim(text);_1f3.set(_1f1,_1cc[url]);_1f2();}});}},_setFormattersAttr:function(_1f4){this.formatters=_1f4;},_setItemsAttr:function(_1f5){this.items=_1f5||[];if(this._templateLoadCount<1&&_1f5){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1f6){_1f6.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./_base/lang","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_1f7,dom,lang,on,has,_1f8,_1f9,win){var _1fa=navigator.msPointerEnabled;var _1fb;function _1fc(_1fd,_1fe,_1ff){if(_1fa&&_1ff){return function(node,_200){return on(node,_1ff,_200);};}else{if(has("touch")){return function(node,_201){var _202=on(node,_1fe,_201),_203=on(node,_1fd,function(evt){if(!_1fb||(new Date()).getTime()>_1fb+1000){_201.call(this,evt);}});return {remove:function(){_202.remove();_203.remove();}};};}else{return function(node,_204){return on(node,_1fd,_204);};}}};var _205,_206,_207;if(has("touch")&&!_1fa){_1f9(function(){_207=win.body();win.doc.addEventListener("touchstart",function(_208){_1fb=(new Date()).getTime();var _209=_207;_207=_208.target;if(_207.dojoElementFromPoint){_207=_207.dojoElementFromPoint(_208.changedTouches[0].clientX,_208.changedTouches[0].clientY);}if(_209){on.emit(_209,"dojotouchout",{target:_209,relatedTarget:_207,bubbles:true});}if(_207){on.emit(_207,"dojotouchover",{target:_207,relatedTarget:_209,bubbles:true});}},true);on(win.doc,"touchmove",function(_20a){_1fb=(new Date()).getTime();_206=_20a;var _20b=win.doc.elementFromPoint(_20a.clientX,_20a.clientY);if(_20b){var _20c=_20b;if(_20b.dojoElementFromPoint){_20b=_20b.dojoElementFromPoint(_20a.clientX,_20a.clientY);}if(_207!==_20b){if(_207){on.emit(_20c,"dojotouchout",{target:_207,relatedTarget:_20b,bubbles:true});}if(_20b){on.emit(_20c,"dojotouchover",{target:_20b,relatedTarget:_207,bubbles:true});}_207=_20b;}on.emit(_20c,"dojotouchmove",{target:_20b,bubbles:true});}});on(win.doc,"touchend",function(_20d){var node=win.doc.elementFromPoint(_20d.clientX,_20d.clientY);var _20e=node;if(node.dojoElementFromPoint){node=node.dojoElementFromPoint(_20d.clientX,_20d.clientY);}if(node){on.emit(_20e,"dojotouchend",lang.delegate(_20d,{target:node,bubbles:true}));}});});_205=function(node,_20f){return on(node,"dojotouchmove",function(_210){_20f(lang.delegate(_206,{target:_210.target,preventDefault:function(){_206.preventDefault();},stopPropagation:function(){_210.stopPropagation();}}));});};}var _211={press:_1fc("mousedown","touchstart","MSPointerDown"),move:_1fc("mousemove",_205,"MSPointerMove"),release:_1fc("mouseup","dojotouchend","MSPointerUp"),cancel:_1fc(_1f8.leave,"touchcancel",has("touch")?"MSPointerCancel":null),over:_1fc("mouseover","dojotouchover","MSPointerOver"),out:_1fc("mouseout","dojotouchout","MSPointerOut"),enter:_1f8._eventHandler(_1fc("mouseover","dojotouchover","MSPointerOver")),leave:_1f8._eventHandler(_1fc("mouseout","dojotouchout","MSPointerOut"))};1&&(dojo.touch=_211);return _211;});},"dojox/mobile/app/ListSelector":function(){define("dojox/mobile/app/ListSelector",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(_212,dojo,_213){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",_213.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 _214=this;this.connect(this.domNode,"onclick",function(_215){if(!dojo.hasClass(_215.target,"listSelectorRow")){return;}if(_214.onChoose){_214.onChoose(_214.data[_215.target._idx].value);}_214.hide();});this.connect(this.domNode,"onmousedown",function(_216){if(!dojo.hasClass(_216.target,"listSelectorRow")){return;}dojo.addClass(_216.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_217){if(!dojo.hasClass(_217.target,"listSelectorRow")){return;}dojo.removeClass(_217.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_218){if(!dojo.hasClass(_218.target,"listSelectorRow")){return;}dojo.removeClass(_218.target,"listSelectorRow-selected");});var _219=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(){_214.onChoose&&_214.onChoose();_214.hide();});},show:function(_21a){var _21b;var _21c=this.controller.getWindowSize();var _21d;if(_21a){_21d=dojo._abs(_21a);_21b=_21d;}else{_21b.x=_21c.w/2;_21b.y=200;}console.log("startPos = ",_21b);dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_21c.w*0.8)+"px"});var _21e=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_21e=Math.max(_21e,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_21e=Math.min(_21e,Math.round(_21c.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_21e+"px");var _21f=dojo.marginBox(this.domNode).h;var _220=this;var _221=_21d?Math.max(30,_21d.y-_21f-10):this.getScroll().y+30;console.log("fromNodePos = ",_21d," targetHeight = ",_21f," targetY = "+_221," startPos ",_21b);var _222=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_21e},height:{start:1,end:_21f},top:{start:_21b.y,end:_221},left:{start:_21b.x,end:(_21c.w/2-_21e/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_220.domNode,"width","inherit");}});var _223=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_222,_223]).play();},hide:function(){var _224=this;var _225=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_224.get("destroyOnHide")){_224.destroy();}}});var _226=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_225,_226]).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);}});});},"dojo/hccss":function(){define(["require","./_base/config","./dom-class","./dom-style","./has","./ready","./_base/window"],function(_227,_228,_229,_22a,has,_22b,win){has.add("highcontrast",function(){var div=win.doc.createElement("div");div.style.cssText="border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;"+"background-image: url("+(_228.blankGif||_227.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_22a.getComputedStyle(div),_22c=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_22c&&(_22c=="none"||_22c=="url(invalid-url:)"));if(has("ie")<=8){div.outerHTML="";}else{win.body().removeChild(div);}return hc;});_22b(90,function(){if(has("highcontrast")){_229.add(win.body(),"dj_a11y");}});return has;});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_22d,_22e){return _22d("dojox.mobile.EdgeToEdgeCategory",_22e,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_22f,lang){var _230={};lang.setObject("dojo.string",_230);_230.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("");};_230.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_230.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_230.substitute=function(_231,map,_232,_233){_233=_233||_22f.global;_232=_232?lang.hitch(_233,_232):function(v){return v;};return _231.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_234,key,_235){var _236=lang.getObject(key,false,map);if(_235){_236=lang.getObject(_235,false,_233).call(_233,_236,key);}return _232(_236,key).toString();});};_230.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 _230;});},"dojox/mobile/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_237,_238,_239,_23a,_23b){return _237("dojox.mobile.TextBox",[_239,_23a,_23b],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:function(_23c){_23c=this._cv?this._cv(_23c):_23c;this._set("placeHolder",_23c);this.textbox.setAttribute("placeholder",_23c);},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_238.create("input",{"type":this.type});}this.inherited(arguments);this.textbox=this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onmouseup",function(){this._mouseIsDown=false;});this.connect(this.textbox,"onmousedown",function(){this._mouseIsDown=true;});this.connect(this.textbox,"onfocus",function(e){this._onFocus(this._mouseIsDown?"mouse":e);this._mouseIsDown=false;});this.connect(this.textbox,"onblur","_onBlur");}});});},"dijit/registry":function(){define(["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_23d,has,_23e,win,_23f){var _240={},hash={};var _241={length:0,add:function(_242){if(hash[_242.id]){throw new Error("Tried to register widget with id=="+_242.id+" but that id is already registered");}hash[_242.id]=_242;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(_243){var id;do{id=_243+"_"+(_243 in _240?++_240[_243]:_240[_243]=0);}while(hash[id]);return _23f._scopeName=="dijit"?id:_23f._scopeName+"_"+id;},findWidgets:function(root,_244){var _245=[];function _246(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _247=node.getAttribute("widgetId");if(_247){var _248=hash[_247];if(_248){_245.push(_248);}}else{if(node!==_244){_246(node);}}}}};_246(root);return _245;},_destroyAll:function(){_23f._curFocus=null;_23f._prevFocus=null;_23f._activeStack=[];_23d.forEach(_241.findWidgets(win.body()),function(_249){if(!_249._destroyed){if(_249.destroyRecursive){_249.destroyRecursive();}else{if(_249.destroy){_249.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_23f.registry=_241;return _241;});},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_24a,_24b,_24c){return _24c("dijit.Destroyable",null,{destroy:function(_24d){this._destroyed=true;},own:function(){_24a.forEach(arguments,function(_24e){var _24f="destroyRecursive" in _24e?"destroyRecursive":"destroy" in _24e?"destroy":"remove";var odh=_24b.before(this,"destroy",function(_250){_24e[_24f](_250);});var hdh=_24b.after(_24e,_24f,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dijit/_base/manager":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(_251,_252,lang,_253,_254){var _255={};_251.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_255[name]=_253[name];});lang.mixin(_255,{defaultDuration:_252["defaultDuration"]||200});lang.mixin(_254,_255);return _254;});},"dijit/_base/place":function(){define(["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(_256,lang,_257,_258,_259){var _25a={};_25a.getViewport=function(){return _257.getBox();};_25a.placeOnScreen=_258.at;_25a.placeOnScreenAroundElement=function(node,_25b,_25c,_25d){var _25e;if(lang.isArray(_25c)){_25e=_25c;}else{_25e=[];for(var key in _25c){_25e.push({aroundCorner:key,corner:_25c[key]});}}return _258.around(node,_25b,_25e,true,_25d);};_25a.placeOnScreenAroundNode=_25a.placeOnScreenAroundElement;_25a.placeOnScreenAroundRectangle=_25a.placeOnScreenAroundElement;_25a.getPopupAroundAlignment=function(_25f,_260){var _261={};_256.forEach(_25f,function(pos){var ltr=_260;switch(pos){case "after":_261[_260?"BR":"BL"]=_260?"BL":"BR";break;case "before":_261[_260?"BL":"BR"]=_260?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_261[ltr?"BL":"BR"]=ltr?"TL":"TR";_261[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_261[ltr?"TL":"TR"]=ltr?"BL":"BR";_261[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _261;};lang.mixin(_259,_25a);return _259;});},"dojox/mobile/View":function(){define(["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-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry"],function(_262,_263,_264,_265,lang,has,win,_266,dom,_267,_268,_269,_26a,_26b,_26c,_26d,_26e,_26f,_270,_271,_272){var dm=lang.getObject("dojox.mobile",true);return _265("dojox.mobile.View",[_26e,_26d,_26c],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_273,node){if(node){dom.byId(node).style.visibility="hidden";}},destroy:function(){_272.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_268.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_263["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_26a.set(this.domNode,"webkitTransformStyle","preserve-3d");}_272.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _274=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _275,_276,_277;_262.forEach(_274,function(v,i){if(_262.indexOf(ids,v.id)!==-1){_275=v;}if(i==0){_277=v;}if(v.selected){_276=v;}v._visible=false;},this);(_275||_276||_277)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_264.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _278=this.getParent();if(!_278||!_278.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_262.forEach(this.getChildren(),function(_279){if(_279.resize){_279.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_27a,dir,_27b,_27c,_27d){},onAfterTransitionIn:function(_27e,dir,_27f,_280,_281){},onBeforeTransitionOut:function(_282,dir,_283,_284,_285){},onAfterTransitionOut:function(_286,dir,_287,_288,_289){},_clearClasses:function(node){if(!node){return;}var _28a=[];_262.forEach(lang.trim(node.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_28a.push(c);}},this);node.className=_28a.join(" ");},_fixViewState:function(_28b){var _28c=this.domNode.parentNode.childNodes;for(var i=0;i<_28c.length;i++){var n=_28c[i];if(n.nodeType===1&&_267.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_28b);},convertToId:function(_28d){if(typeof (_28d)=="string"){return _28d.replace(/^#?([^&?]+).*/,"$1");}return _28d;},_isBookmarkable:function(_28e){return _28e.moveTo&&(_263["mblForceBookmarkable"]||_28e.moveTo.charAt(0)==="#")&&!_28e.hashchange;},performTransition:function(_28f,_290,_291,_292,_293){if(this._detail){return;}var _294,_295;if(_28f&&typeof (_28f)==="object"){_294=_28f;_295=_290;}else{_294={moveTo:_28f,transitionDir:_290,transition:_291,context:_292,method:_293};_295=[];for(var i=5;i<arguments.length;i++){_295.push(arguments[i]);}}this._detail=_294;this._optArgs=_295;this._arguments=[_294.moveTo,_294.transitionDir,_294.transition,_294.context,_294.method];if(_294.moveTo==="#"){return;}var _296;if(_294.moveTo){_296=this.convertToId(_294.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_296=this._dummyNode;}if(this.addTransitionInfo&&typeof (_294.moveTo)=="string"&&this._isBookmarkable(_294)){this.addTransitionInfo(this.id,_294.moveTo,{transitionDir:_294.transitionDir,transition:_294.transition});}var _297=this.domNode;var _298=_297.offsetTop;_296=this.toNode=dom.byId(_296);if(!_296){console.log("dojox/mobile/View.performTransition: destination view not found: "+_294.moveTo);return;}_296.style.visibility="hidden";_296.style.display="";this._fixViewState(_296);var _299=_26b.byNode(_296);if(_299){if(_263["mblAlwaysResizeOnTransition"]||!_299._resized){_270.resizeAll(null,_299);_299._resized=true;}if(_294.transition&&_294.transition!="none"){_299.containerNode.style.paddingTop=_298+"px";}_299.load&&_299.load();_299.movedFrom=_297.id;}if(has("mblAndroidWorkaround")&&!_263["mblCSS3Transition"]&&_294.transition&&_294.transition!="none"){_26a.set(_296,"webkitTransformStyle","preserve-3d");_26a.set(_297,"webkitTransformStyle","preserve-3d");_267.add(_296,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_264.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(this._arguments)));if(_299){if(this.keepScrollPos&&!this.getParent()){var _29a=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_297._scrollTop=_29a;var _29b=(_294.transitionDir==1)?0:(_296._scrollTop||0);_296.style.top="0px";if(_29a>1||_29b!==0){_297.style.top=_29b-_29a+"px";if(_263["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_29b||1));},0);}}}else{_296.style.top="0px";}_299.onBeforeTransitionIn.apply(_299,this._arguments);_264.publish("/dojox/mobile/beforeTransitionIn",[_299].concat(lang._toArray(this._arguments)));}_296.style.display="none";_296.style.visibility="visible";_270.fromView=this;_270.toView=_299;this._doTransition(_297,_296,_294.transition,_294.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_29c,_29d,_29e,_29f){var rev=(_29f==-1)?" mblReverse":"";_29d.style.display="";if(!_29e||_29e=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_263["mblCSS3Transition"]){_266.when(_271,lang.hitch(this,function(_2a0){var _2a1=_26a.get(_29d,"position");_26a.set(_29d,"position","absolute");_266.when(_2a0(_29c,_29d,{transition:_29e,reverse:(_29f===-1)?true:false}),lang.hitch(this,function(){_26a.set(_29d,"position",_2a1);this.invokeCallback();}));}));}else{if(_29e.indexOf("cube")!=-1){if(has("ipad")){_26a.set(_29d.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_26a.set(_29d.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_29e);if(has("mblAndroidWorkaround")){setTimeout(function(){_267.add(_29c,s+" mblOut"+rev);_267.add(_29d,s+" mblIn"+rev);_267.remove(_29d,"mblAndroidWorkaround");setTimeout(function(){_267.add(_29c,"mblTransition");_267.add(_29d,"mblTransition");},30);},70);}else{_267.add(_29c,s+" mblOut"+rev);_267.add(_29d,s+" mblIn"+rev);setTimeout(function(){_267.add(_29c,"mblTransition");_267.add(_29d,"mblTransition");},100);}var _2a2="50% 50%";var _2a3="50% 50%";var _2a4,posX,posY;if(_29e.indexOf("swirl")!=-1||_29e.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_2a4=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_2a4=-_269.position(_29c,true).y;}posY=win.global.innerHeight/2+_2a4;_2a2="50% "+posY+"px";_2a3="50% "+posY+"px";}else{if(_29e.indexOf("scale")!=-1){var _2a5=_269.position(_29c,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_2a5.x;if(this.keepScrollPos&&!this.getParent()){_2a4=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_2a4=-_2a5.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_2a4;_2a2=posX+"px "+posY+"px";_2a3=posX+"px "+posY+"px";}}_26a.set(_29c,{webkitTransformOrigin:_2a2});_26a.set(_29d,{webkitTransformOrigin:_2a3});}}},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 _2a6=false;if(_267.contains(this.domNode,"mblOut")){_2a6=true;this.domNode.style.display="none";_267.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_26a.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_267.remove(li,"mblCloseContent");var p=_272.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_2a6){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(name.indexOf("Cube")!==-1&&name.indexOf("In")!==-1&&has("iphone")){this.domNode.parentNode.style.webkitPerspective="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_264.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _2a7=_26b.byNode(this.toNode);if(_2a7){_2a7.onAfterTransitionIn.apply(_2a7,this._arguments);_264.publish("/dojox/mobile/afterTransitionIn",[_2a7].concat(this._arguments));_2a7.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_2a7);}}if(has("mblAndroidWorkaround")){setTimeout(lang.hitch(this,function(){if(_2a7){_26a.set(this.toNode,"webkitTransformStyle","");}_26a.set(this.domNode,"webkitTransformStyle","");}),0);}var c=this._detail.context,m=this._detail.method;if(c||m){if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}}this._detail=this._optArgs=this._arguments=undefined;},isVisible:function(_2a8){var _2a9=function(node){return _26a.get(node,"display")!=="none";};if(_2a8){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_2a9(n)){return false;}}return true;}else{return _2a9(this.domNode);}},getShowingView:function(){var _2aa=this.domNode.parentNode.childNodes;for(var i=0;i<_2aa.length;i++){var n=_2aa[i];if(n.nodeType===1&&_267.contains(n,"mblView")&&n.style.display!=="none"){return _26b.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _262.map(_262.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_267.contains(n,"mblView");}),function(n){return _26b.byNode(n);});},show:function(_2ab,_2ac){var out=this.getShowingView();if(!_2ab){if(out){out.onBeforeTransitionOut(out.id);_264.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_264.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_2ac){this.domNode.style.display="";}else{_262.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_2ab){if(out){out.onAfterTransitionOut(out.id);_264.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_264.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dijit/WidgetSet":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_2ad,_2ae,_2af,_2b0){var _2b1=_2ae("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_2b2){if(this._hash[_2b2.id]){throw new Error("Tried to register widget with id=="+_2b2.id+" but that id is already registered");}this._hash[_2b2.id]=_2b2;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2b3){_2b3=_2b3||_2af.global;var i=0,id;for(id in this._hash){func.call(_2b3,this._hash[id],i++,this._hash);}return this;},filter:function(_2b4,_2b5){_2b5=_2b5||_2af.global;var res=new _2b1(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2b4.call(_2b5,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _2b1(),id,_2b6;for(id in this._hash){_2b6=this._hash[id];if(_2b6.declaredClass==cls){res.add(_2b6);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2b7){return _2ad.map(this.toArray(),func,_2b7);},every:function(func,_2b8){_2b8=_2b8||_2af.global;var x=0,i;for(i in this._hash){if(!func.call(_2b8,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2b9){_2b9=_2b9||_2af.global;var x=0,i;for(i in this._hash){if(func.call(_2b9,this._hash[i],x++,this._hash)){return true;}}return false;}});_2ad.forEach(["forEach","filter","byClass","map","every","some"],function(func){_2b0[func]=_2b1.prototype[func];});return _2b1;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _2ba={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-_2ba.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 _2ba.bounceIn(n*2)/2;}return (_2ba.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_2ba);return _2ba;});},"dijit/a11y":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_2bb,_2bc,_2bd,dom,_2be,_2bf,has,_2c0){var _2c1=(_2c0._isElementShown=function(elem){var s=_2bf.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_2be.get(elem,"type")!="hidden");});_2c0.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2be.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2c2=elem.contentDocument;if("designMode" in _2c2&&_2c2.designMode=="on"){return true;}body=_2c2.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";}};var _2c3=(_2c0.isTabNavigable=function(elem){if(_2be.get(elem,"disabled")){return false;}else{if(_2be.has(elem,"tabIndex")){return _2be.get(elem,"tabIndex")>=0;}else{return _2c0.hasDefaultTabStop(elem);}}});_2c0._getTabNavigable=function(root){var _2c4,last,_2c5,_2c6,_2c7,_2c8,_2c9={};function _2ca(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2cb=function(_2cc){for(var _2cd=_2cc.firstChild;_2cd;_2cd=_2cd.nextSibling){if(_2cd.nodeType!=1||(has("ie")<=9&&_2cd.scopeName!=="HTML")||!_2c1(_2cd)){continue;}if(_2c3(_2cd)){var _2ce=+_2be.get(_2cd,"tabIndex");if(!_2be.has(_2cd,"tabIndex")||_2ce==0){if(!_2c4){_2c4=_2cd;}last=_2cd;}else{if(_2ce>0){if(!_2c5||_2ce<_2c6){_2c6=_2ce;_2c5=_2cd;}if(!_2c7||_2ce>=_2c8){_2c8=_2ce;_2c7=_2cd;}}}var rn=_2ca(_2cd);if(_2be.get(_2cd,"checked")&&rn){_2c9[rn]=_2cd;}}if(_2cd.nodeName.toUpperCase()!="SELECT"){_2cb(_2cd);}}};if(_2c1(root)){_2cb(root);}function rs(node){return _2c9[_2ca(node)]||node;};return {first:rs(_2c4),last:rs(last),lowest:rs(_2c5),highest:rs(_2c7)};};_2c0.getFirstInTabbingOrder=function(root,doc){var _2cf=_2c0._getTabNavigable(dom.byId(root,doc));return _2cf.lowest?_2cf.lowest:_2cf.first;};_2c0.getLastInTabbingOrder=function(root,doc){var _2d0=_2c0._getTabNavigable(dom.byId(root,doc));return _2d0.last?_2d0.last:_2d0.highest;};return {hasDefaultTabStop:_2c0.hasDefaultTabStop,isTabNavigable:_2c0.isTabNavigable,_getTabNavigable:_2c0._getTabNavigable,getFirstInTabbingOrder:_2c0.getFirstInTabbingOrder,getLastInTabbingOrder:_2c0.getLastInTabbingOrder};});},"dijit/typematic":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/sniff","./main"],function(_2d1,_2d2,_2d3,_2d4,lang,on,has,_2d5){var _2d6=(_2d5.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,_2d7,node,_2d8,obj,_2d9,_2da,_2db){if(obj!=this._obj){this.stop();this._initialDelay=_2da||500;this._subsequentDelay=_2d9||0.9;this._minDelay=_2db||10;this._obj=obj;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_2d7,_2d8);this._evt={faux:true};for(var attr in evt){if(attr!="layerX"&&attr!="layerY"){var v=evt[attr];if(typeof v!="function"&&typeof v!="undefined"){this._evt[attr]=v;}}}this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_2dc,_2dd,_2de,_2df,_2e0,_2e1){if(_2dc.keyCode){_2dc.charOrCode=_2dc.keyCode;_2d4.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_2dc.charCode){_2dc.charOrCode=String.fromCharCode(_2dc.charCode);_2d4.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _2e2=[on(node,_2d2._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_2dc.charOrCode&&(_2dc.ctrlKey===undefined||_2dc.ctrlKey==evt.ctrlKey)&&(_2dc.altKey===undefined||_2dc.altKey==evt.altKey)&&(_2dc.metaKey===undefined||_2dc.metaKey==(evt.metaKey||false))&&(_2dc.shiftKey===undefined||_2dc.shiftKey==evt.shiftKey)){_2d3.stop(evt);_2d6.trigger(evt,_2dd,node,_2de,_2dc,_2df,_2e0,_2e1);}else{if(_2d6._obj==_2dc){_2d6.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_2d6._obj==_2dc){_2d6.stop();}}))];return {remove:function(){_2d1.forEach(_2e2,function(h){h.remove();});}};},addMouseListener:function(node,_2e3,_2e4,_2e5,_2e6,_2e7){var _2e8=[on(node,"mousedown",lang.hitch(this,function(evt){evt.preventDefault();_2d6.trigger(evt,_2e3,node,_2e4,node,_2e5,_2e6,_2e7);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2d6.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2d6.stop();})),on(node,"dblclick",lang.hitch(this,function(evt){evt.preventDefault();if(has("ie")<9){_2d6.trigger(evt,_2e3,node,_2e4,node,_2e5,_2e6,_2e7);setTimeout(lang.hitch(this,_2d6.stop),50);}}))];return {remove:function(){_2d1.forEach(_2e8,function(h){h.remove();});}};},addListener:function(_2e9,_2ea,_2eb,_2ec,_2ed,_2ee,_2ef,_2f0){var _2f1=[this.addKeyListener(_2ea,_2eb,_2ec,_2ed,_2ee,_2ef,_2f0),this.addMouseListener(_2e9,_2ec,_2ed,_2ee,_2ef,_2f0)];return {remove:function(){_2d1.forEach(_2f1,function(h){h.remove();});}};}});return _2d6;});},"dojox/mobile/app/ImageView":function(){define("dojox/mobile/app/ImageView",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(_2f2,dojo,_2f3){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",_2f3.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 _2f4=this;this.connect(this.domNode,"onmousedown",function(_2f5){if(_2f4.isAnimating()){return;}if(_2f4.panX){_2f4.handleDragEnd();}_2f4.downX=_2f5.targetTouches?_2f5.targetTouches[0].clientX:_2f5.clientX;_2f4.downY=_2f5.targetTouches?_2f5.targetTouches[0].clientY:_2f5.clientY;});this.connect(this.domNode,"onmousemove",function(_2f6){if(_2f4.isAnimating()){return;}if((!_2f4.downX&&_2f4.downX!==0)||(!_2f4.downY&&_2f4.downY!==0)){return;}if((!_2f4.disableSwipe&&_2f4.zoom==1)||(!_2f4.disableAutoZoom&&_2f4.zoom!=1)){var x=_2f6.targetTouches?_2f6.targetTouches[0].clientX:_2f6.pageX;var y=_2f6.targetTouches?_2f6.targetTouches[0].clientY:_2f6.pageY;_2f4.panX=x-_2f4.downX;_2f4.panY=y-_2f4.downY;if(_2f4.zoom==1){if(Math.abs(_2f4.panX)>10){_2f4.render();}}else{if(Math.abs(_2f4.panX)>10||Math.abs(_2f4.panY)>10){_2f4.render();}}}});this.connect(this.domNode,"onmouseout",function(_2f7){if(!_2f4.isAnimating()&&_2f4.panX){_2f4.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_2f8){_2f4.downX=_2f4.downY=null;});this.connect(this.domNode,"onclick",function(_2f9){if(_2f4.isAnimating()){return;}if(_2f4.downX==null||_2f4.downY==null){return;}var x=(_2f9.targetTouches?_2f9.targetTouches[0].clientX:_2f9.pageX);var y=(_2f9.targetTouches?_2f9.targetTouches[0].clientY:_2f9.pageY);if(Math.abs(_2f4.panX)>14||Math.abs(_2f4.panY)>14){_2f4.downX=_2f4.downY=null;_2f4.handleDragEnd();return;}_2f4.downX=_2f4.downY=null;if(!_2f4.disableAutoZoom){if(!_2f4._centerImg||!_2f4._centerImg._loaded){return;}if(_2f4.zoom!=1){_2f4.set("animatedZoom",1);return;}var pos=dojo._abs(_2f4.domNode);var _2fa=_2f4.size.w/_2f4._centerImg.width;var _2fb=_2f4.size.h/_2f4._centerImg.height;_2f4.zoomTo(((x-pos.x)/_2fa)-_2f4.panX,((y-pos.y)/_2fb)-_2f4.panY,_2f4.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;console.log("handleDragEnd");if(this.zoom==1){if(!this.panX){return;}var _2fc=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _2fd=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _2fe=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_2fc?1:0)||(this.panX<0&&_2fd?1:0));if(!_2fe){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(_2ff){if(this.zoom==1&&_2ff.duration<500){if(_2ff.direction=="ltr"){this.moveTo(1);}else{if(_2ff.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_300){_300=_300>0?1:-1;var _301;if(_300<1){if(this._rightImg&&this._rightImg._loaded){_301=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_301=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_301=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_301=this._leftSmallImg;}}}this._moveDir=_300;var _302=this;if(_301&&_301._loaded){this._animPanTo(this.size.w*_300,null,500,function(){_302.panX=0;_302.panY=0;if(_300<0){_302._switchImage("left","right");}else{_302._switchImage("right","left");}_302.render();_302.onChange(_300*-1);});}else{console.log("moveTo image not loaded!",_301);this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_303,_304){var _305="_"+_303+"SmallImg";var _306="_"+_303+"Img";var _307="_"+_304+"SmallImg";var _308="_"+_304+"Img";this[_306]=this._centerImg;this[_305]=this._centerSmallImg;this[_306]._type=_303;if(this[_305]){this[_305]._type=_303;}this._centerImg=this[_308];this._centerSmallImg=this[_307];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_308]=this[_307]=null;},_animPanTo:function(to,_309,_30a,_30b){this._animCallback=_30b;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_30a||500,easing:_309,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_30c){},_updateAnimatedPan:function(_30d){this.panX=_30d;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_30e,_30f,zoom){this.set("zoomCenterX",_30e);this.set("zoomCenterY",_30f);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(_310,_311,_312){var img=(_311&&_311._loaded)?_311:_310;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _313=img._baseWidth;var _314=img._baseHeight;var _315=_313*this.zoom;var _316=_314*this.zoom;var _317=Math.min(this.size.w,_315);var _318=Math.min(this.size.h,_316);var _319=this.dispWidth=img.width*(_317/_315);var _31a=this.dispHeight=img.height*(_318/_316);var _31b=this.zoomCenterX-(this.panX/this.zoom);var _31c=this.zoomCenterY-(this.panY/this.zoom);var _31d=Math.floor(Math.max(_319/2,Math.min(img.width-_319/2,_31b)));var _31e=Math.floor(Math.max(_31a/2,Math.min(img.height-_31a/2,_31c)));var _31f=Math.max(0,Math.round((img.width-_319)/2+(_31d-img._centerX)));var _320=Math.max(0,Math.round((img.height-_31a)/2+(_31e-img._centerY)));var _321=Math.round(Math.max(0,this.canvas.width-_317)/2);var _322=Math.round(Math.max(0,this.canvas.height-_318)/2);var _323=_317;var _324=_319;if(this.zoom==1&&_312&&this.panX){if(this.panX<0){if(_312>0){_317-=Math.abs(this.panX);_321=0;}else{if(_312<0){_317=Math.max(1,Math.abs(this.panX)-5);_321=this.size.w-_317;}}}else{if(_312>0){_317=Math.max(1,Math.abs(this.panX)-5);_321=0;}else{if(_312<0){_317-=Math.abs(this.panX);_321=this.size.w-_317;}}}_319=Math.max(1,Math.floor(_319*(_317/_323)));if(_312>0){_31f=(_31f+_324)-(_319);}_31f=Math.floor(_31f);}try{cxt.drawImage(img,Math.max(0,_31f),_320,Math.min(_324,_319),_31a,_321,_322,Math.min(_323,_317),_318);}catch(e){console.log("Caught Error",e,"type=",img._type,"oldDestWidth = ",_323,"destWidth",_317,"destX",_321,"oldSourceWidth=",_324,"sourceWidth=",_319,"sourceX = "+_31f);}},_setZoomAttr:function(_325){this.zoom=Math.min(this.maxZoom,Math.max(1,_325));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(_326){if(_326!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_326=Math.min(this._centerImg.width,_326);}this.zoomCenterX=Math.max(0,Math.round(_326));}},_setZoomCenterYAttr:function(_327){if(_327!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_327=Math.min(this._centerImg.height,_327);}this.zoomCenterY=Math.max(0,Math.round(_327));}},_setZoomCenterAttr:function(_328){if(_328.x!=this.zoomCenterX||_328.y!=this.zoomCenterY){this.set("zoomCenterX",_328.x);this.set("zoomCenterY",_328.y);this.render();}},_setAnimatedZoomAttr:function(_329){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_329],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_32a){this._setZoomAttr(_32a);},_setCenterUrlAttr:function(_32b){this._setImage("center",_32b);},_setLeftUrlAttr:function(_32c){this._setImage("left",_32c);},_setRightUrlAttr:function(_32d){this._setImage("right",_32d);},_setImage:function(name,_32e){var _32f=null;var _330=null;if(dojo.isString(_32e)){_330=_32e;}else{_330=_32e.large;_32f=_32e.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_330){return;}var _331=this["_"+name+"Img"]=new Image();_331._type=name;_331._loaded=false;_331._src=_330;_331._conn=dojo.connect(_331,"onload",this.handleLoad);if(_32f){var _332=this["_"+name+"SmallImg"]=new Image();_332._type=name;_332._loaded=false;_332._conn=dojo.connect(_332,"onload",this.handleLoad);_332._isSmall=true;_332._src=_32f;_332.src=_32f;}_331.src=_330;},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 _333=img.height;var _334=img.width;if(_334/this.size.w<_333/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_334/(_333/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_333/(_334/this.size.w);}img._centerX=_334/2;img._centerY=_333/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_335){}});});},"dijit/_base/focus":function(){define(["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../main"],function(_336,dom,lang,_337,win,_338,_339){var _33a={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _339.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_338.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(_33b){var _33c=win.doc,mark=_33b.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(_33c.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_33c.body.createControlRange();_336.forEach(mark,function(n){rg.addElement(n);});}else{rg=_33c.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_33d){var node=!_338.curNode||(menu&&dom.isDescendant(_338.curNode,menu.domNode))?_339._prevFocus:_338.curNode;return {node:node,bookmark:node&&(node==_338.curNode)&&win.withGlobal(_33d||win.global,_339.getBookmark),openedForWindow:_33d};},_activeStack:[],registerIframe:function(_33e){return _338.registerIframe(_33e);},unregisterIframe:function(_33f){_33f&&_33f.remove();},registerWin:function(_340,_341){return _338.registerWin(_340,_341);},unregisterWin:function(_342){_342&&_342.remove();}};_338.focus=function(_343){if(!_343){return;}var node="node" in _343?_343.node:_343,_344=_343.bookmark,_345=_343.openedForWindow,_346=_344?_344.isCollapsed:false;if(node){var _347=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_347&&_347.focus){try{_347.focus();}catch(e){}}_338._onFocusNode(node);}if(_344&&win.withGlobal(_345||win.global,_339.isCollapsed)&&!_346){if(_345){_345.focus();}try{win.withGlobal(_345||win.global,_339.moveToBookmark,null,[_344]);}catch(e2){}}};_338.watch("curNode",function(name,_348,_349){_339._curFocus=_349;_339._prevFocus=_348;if(_349){_337.publish("focusNode",_349);}});_338.watch("activeStack",function(name,_34a,_34b){_339._activeStack=_34b;});_338.on("widget-blur",function(_34c,by){_337.publish("widgetBlur",_34c,by);});_338.on("widget-focus",function(_34d,by){_337.publish("widgetFocus",_34d,by);});lang.mixin(_339,_33a);return _339;});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator"],function(_34e,_34f,lang,_350,_351,_352,_353,_354,_355,_356,_357){var _358=_34f("dojox.mobile.ListItem",_356,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_351.create(this.tag);this.inherited(arguments);if(this.selected){_350.add(this.domNode,this._selClass);}if(this.header){_350.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_351.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);if(this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this._anchorClickHandle=this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _359=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_359&&_359.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_350.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_350.add(this.domNode,"mblVariableHeight");this.defer(lang.hitch(this,"layoutVariableHeight"),0);}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this._pending_icon!==undefined?this._pending_icon:this.icon,deleteIcon:this._pending_deleteIcon!==undefined?this._pending_deleteIcon:this.deleteIcon,rightIcon:this._pending_rightIcon!==undefined?this._pending_rightIcon:this.rightIcon,rightIcon2:this._pending_rightIcon2!==undefined?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:this._pending_uncheckIcon!==undefined?this._pending_uncheckIcon:this.uncheckIcon});delete this._pending_icon;delete this._pending_deleteIcon;delete this._pending_rightIcon;delete this._pending_rightIcon2;delete this._pending_uncheckIcon;}if(_359&&_359.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);delete this._pendingChecked;}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _35a;_34e.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _35b=n.getAttribute("layout")||(_353.byNode(n)||{}).layout;if(_35b){_350.add(n,"mblListItemLayout"+_35b.charAt(0).toUpperCase()+_35b.substring(1));this._layoutChildren.push(n);if(_35b==="center"){_35a=n;}}},this);if(_35a){this.domNode.insertBefore(_35a,this.domNode.firstChild);}},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||(_353.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if(this.anchorLabel&&e.currentTarget===n){_350.add(n,"mblListItemLabelSelected");setTimeout(function(){_350.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _35c=this.getParent();if(_35c.select){if(_35c.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_35c.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_34e.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _35d=this.domNode;var f=function(){var t=Math.round((_35d.offsetHeight-n.offsetHeight)/2)-_352.get(_35d,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _35e=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_35e&&_35e.selectOne)){c=this.arrowClass||"mblDomButtonArrow";}}if(c){this._setRightIconAttr(c);}},_findRef:function(type){var i,node,list=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_34e.indexOf(list,type)+1;i<list.length;i++){node=this[list[i]+"Node"];if(node){return node;}}for(i=list.length-1;i>=0;i--){node=this[list[i]+"Node"];if(node){return node.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(icon,type){if(!this._isOnLine){this["_pending_"+type]=icon;return;}this._set(type,icon);this[type+"Node"]=_355.setIcon(icon,this[type+"Pos"],this[type+"Node"],this[type+"Title"]||this.alt,this.domNode,this._findRef(type),"before");if(this[type+"Node"]){var cap=type.charAt(0).toUpperCase()+type.substring(1);_350.add(this[type+"Node"],"mblListItem"+cap);}var role=this[type+"Role"];if(role){this[type+"Node"].setAttribute("role",role);}},_setDeleteIconAttr:function(icon){this._setIcon(icon,"deleteIcon");},_setIconAttr:function(icon){this._setIcon(icon,"icon");},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_351.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){this._setIcon(icon,"rightIcon");},_setUncheckIconAttr:function(icon){this._setIcon(icon,"uncheckIcon");},_setRightIcon2Attr:function(icon){this._setIcon(icon,"rightIcon2");},_setCheckedAttr:function(_35f){if(!this._isOnLine){this._pendingChecked=_35f;return;}var _360=this.getParent();if(_360&&_360.select==="single"&&_35f){_34e.forEach(_360.getChildren(),function(_361){_361!==this&&_361.checked&&_361.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_350.toggle(this.domNode,"mblListItemChecked",_35f);_350.toggle(this.domNode,"mblListItemUnchecked",!_35f);_350.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_35f)?"absolute":"";if(_360&&this.checked!==_35f){_360.onCheckStateChanged(this,_35f);}this._set("checked",_35f);},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_351.create("div",{className:"mblListItemIcon"});prog=this._prog=new _357({size:25,center:false});_350.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_351.place(this._progNode,this._findRef("icon"),"before");}prog.start();}else{if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}prog.stop();}this._set("busy",busy);},_setSelectedAttr:function(_362){this.inherited(arguments);_350.toggle(this.domNode,this._selClass,_362);}});_358.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_354,_358.ChildWidgetProperties);return _358;});},"dojox/mobile/app/StageController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_363,dojo,_364){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(_365,_366){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _367=new _364.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_367);var _368=this;dojo.forEach(this.scenes,this.setZIndex);_367.stageController=this;_367.init(_365,_366).addCallback(function(){if(_368.scenes.length==1){_367.domNode.style.visibility="visible";_368.scenes[_368.scenes.length-1].assistant.activate(_366);_368._opInProgress=false;}else{_368.scenes[_368.scenes.length-2].performTransition(_368.scenes[_368.scenes.length-1].domNode,1,_368.effect,null,function(){_368.scenes[_368.scenes.length-1].assistant.activate(_366);_368._opInProgress=false;});}});},setZIndex:function(_369,idx){dojo.style(_369.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _36a=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_36a.scenes.length-2].assistant.activate(data);this.scenes[_36a.scenes.length-1].performTransition(_36a.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_36a._destroyScene(_36a.scenes[_36a.scenes.length-1]);_36a.scenes.splice(_36a.scenes.length-1,1);_36a._opInProgress=false;});}else{console.log("cannot pop the scene if there is just one");}},popScenesTo:function(_36b,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_36b){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_36c){_36c.assistant.deactivate();_36c.assistant.destroy();_36c.destroyRecursive();}});});},"dijit/place":function(){define(["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","./main"],function(_36d,_36e,_36f,_370,win,_371,_372){function _373(node,_374,_375,_376){var view=_371.getBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body(node.ownerDocument).appendChild(node);}var best=null;_36d.some(_374,function(_377){var _378=_377.corner;var pos=_377.pos;var _379=0;var _37a={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_378.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_378.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_375){var res=_375(node,_377.aroundCorner,_378,_37a,_376);_379=typeof res=="undefined"?0:res;}var _37b=node.style;var _37c=_37b.display;var _37d=_37b.visibility;if(_37b.display=="none"){_37b.visibility="hidden";_37b.display="";}var bb=_36e.position(node);_37b.display=_37c;_37b.visibility=_37d;var _37e={"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)}[_378.charAt(1)],_37f={"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)}[_378.charAt(0)],_380=Math.max(view.l,_37e),_381=Math.max(view.t,_37f),endX=Math.min(view.l+view.w,_37e+bb.w),endY=Math.min(view.t+view.h,_37f+bb.h),_382=endX-_380,_383=endY-_381;_379+=(bb.w-_382)+(bb.h-_383);if(best==null||_379<best.overflow){best={corner:_378,aroundCorner:_377.aroundCorner,x:_380,y:_381,w:_382,h:_383,overflow:_379,spaceAvailable:_37a};}return !_379;});if(best.overflow&&_375){_375(node,best.aroundCorner,best.corner,best.spaceAvailable,_376);}var l=_36e.isBodyLtr(node.ownerDocument),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};var _384={at:function(node,pos,_385,_386){var _387=_36d.map(_385,function(_388){var c={corner:_388,pos:{x:pos.x,y:pos.y}};if(_386){c.pos.x+=_388.charAt(1)=="L"?_386.x:-_386.x;c.pos.y+=_388.charAt(0)=="T"?_386.y:-_386.y;}return c;});return _373(node,_387);},around:function(node,_389,_38a,_38b,_38c){var _38d=(typeof _389=="string"||"offsetWidth" in _389)?_36e.position(_389,true):_389;if(_389.parentNode){var _38e=_36f.getComputedStyle(_389).position=="absolute";var _38f=_389.parentNode;while(_38f&&_38f.nodeType==1&&_38f.nodeName!="BODY"){var _390=_36e.position(_38f,true),pcs=_36f.getComputedStyle(_38f);if(/relative|absolute/.test(pcs.position)){_38e=false;}if(!_38e&&/hidden|auto|scroll/.test(pcs.overflow)){var _391=Math.min(_38d.y+_38d.h,_390.y+_390.h);var _392=Math.min(_38d.x+_38d.w,_390.x+_390.w);_38d.x=Math.max(_38d.x,_390.x);_38d.y=Math.max(_38d.y,_390.y);_38d.h=_391-_38d.y;_38d.w=_392-_38d.x;}if(pcs.position=="absolute"){_38e=true;}_38f=_38f.parentNode;}}var x=_38d.x,y=_38d.y,_393="w" in _38d?_38d.w:(_38d.w=_38d.width),_394="h" in _38d?_38d.h:(_370.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+y+", height:"+_38d.height+", width:"+_393+" } has been deprecated.  Please use { x:"+x+", y:"+y+", h:"+_38d.height+", w:"+_393+" }","","2.0"),_38d.h=_38d.height);var _395=[];function push(_396,_397){_395.push({aroundCorner:_396,corner:_397,pos:{x:{"L":x,"R":x+_393,"M":x+(_393>>1)}[_396.charAt(1)],y:{"T":y,"B":y+_394,"M":y+(_394>>1)}[_396.charAt(0)]}});};_36d.forEach(_38a,function(pos){var ltr=_38b;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 _398=_373(node,_395,_38c,{w:_393,h:_394});_398.aroundNodePos=_38d;return _398;}};return _372.place=_384;});},"dojox/mobile/app/_event":function(){define("dojox/mobile/app/_event",["dijit","dojo","dojox"],function(_399,dojo,_39a){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_39a.mobile.app,{eventMap:{},connectFlick:function(_39b,_39c,_39d){var _39e;var _39f;var _3a0=false;var _3a1;var _3a2;var _3a3;var _3a4;var _3a5;var time;var _3a6=dojo.connect("onmousedown",_39b,function(_3a7){_3a0=false;_39e=_3a7.targetTouches?_3a7.targetTouches[0].clientX:_3a7.clientX;_39f=_3a7.targetTouches?_3a7.targetTouches[0].clientY:_3a7.clientY;time=(new Date()).getTime();_3a3=dojo.connect(_39b,"onmousemove",_3a8);_3a4=dojo.connect(_39b,"onmouseup",onUp);});var _3a8=function(_3a9){dojo.stopEvent(_3a9);_3a1=_3a9.targetTouches?_3a9.targetTouches[0].clientX:_3a9.clientX;_3a2=_3a9.targetTouches?_3a9.targetTouches[0].clientY:_3a9.clientY;if(Math.abs(Math.abs(_3a1)-Math.abs(_39e))>15){_3a0=true;_3a5=(_3a1>_39e)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_3a2)-Math.abs(_39f))>15){_3a0=true;_3a5=(_3a2>_39f)?"ttb":"btt";}}};var onUp=function(_3aa){dojo.stopEvent(_3aa);_3a3&&dojo.disconnect(_3a3);_3a4&&dojo.disconnect(_3a4);if(_3a0){var _3ab={target:_39b,direction:_3a5,duration:(new Date()).getTime()-time};if(_39c&&_39d){_39c[_39d](_3ab);}else{_39d(_3ab);}}};}});_39a.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_39a.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_39a.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_39a.mobile.app.isIPhone||_39a.mobile.app.isAndroid){_39a.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_3ac,_3ad,_3ae,_3af){_3ac=_39a.mobile.app.eventMap[_3ac]||_3ac;if(_3ac=="flick"||_3ac=="onflick"){if(dojo.global["Mojo"]){_3ac=Mojo.Event.flick;}else{return _39a.mobile.app.connectFlick(obj,_3ad,_3ae);}}return dojo._oldConnect(obj,_3ac,_3ad,_3ae,_3af);};});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_3b0,View,_3b1,_3b2,_3b3,_3b4,_3b5,_3b6,_3b7,_3b8,_3b9,_3ba){return _3b0;});},"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(_3bb,_3bc,_3bd,_3be,_3bf,_3c0,_3c1){return _3bc("dojox.mobile.Button",[_3bf,_3c1,_3c0],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _3c2=this.focusNode||this.domNode;var _3c3=(this.baseClass+" "+this["class"]).split(" ");_3c3=_3bb.map(_3c3,function(c){return c+"Selected";});_3bd.add(_3c2,_3c3);setTimeout(function(){_3bd.remove(_3c2,_3c3);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_3be.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(_3c4){this.inherited(arguments,[this._cv?this._cv(_3c4):_3c4]);}});});},"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","dojo/dom-construct","dojo/dom-style","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_3c5,_3c6,_3c7,_3c8,win,_3c9,_3ca,_3cb,_3cc,_3cd,_3ce,has){return _3c7("dojox.mobile.Switch",[_3ce,_3cd],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",_createdMasks:[],buildRendering:function(){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_3ca.create("span");this.inherited(arguments);var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_3c9.add(this.domNode,this.shape);var _3cf=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\""+_3cf+"></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._clickHandle=this.connect(this.domNode,"onclick","_onClick");this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this._startHandle=this.connect(this.domNode,_3cc.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_3d0,anim){var on=(_3d0==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_3c9.add(this.domNode,"mblSwitchAnimation");}_3c9.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_3c9.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _3d1=this;setTimeout(function(){_3d1.left.style.display=on?"":"none";_3d1.right.style.display=!on?"":"none";_3c9.remove(_3d1.domNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._hasMaskImage){return;}this._width=this.domNode.offsetWidth-this.knob.offsetWidth;this._hasMaskImage=true;if(!has("webkit")){return;}var rDef=_3cb.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _3d2=rDef.split(" ");var rx=parseFloat(_3d2[0]),ry=(_3d2.length==1)?rx:parseFloat(_3d2[1]);var w=this.domNode.offsetWidth,h=this.domNode.offsetHeight;var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");if(!this._createdMasks[id]){this._createdMasks[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,w,h);ctx.fillStyle="#000000";ctx.beginPath();if(rx==ry){ctx.moveTo(rx,0);ctx.arcTo(0,0,0,rx,rx);ctx.lineTo(0,h-rx);ctx.arcTo(0,h,rx,h,rx);ctx.lineTo(w-rx,h);ctx.arcTo(w,h,w,rx,rx);ctx.lineTo(w,rx);ctx.arcTo(w,0,w-rx,0,rx);}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(rx,0);ctx.arc(rx,rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(w-rx,2*rx);ctx.arc(w-rx,rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}this.domNode.style.webkitMaskImage="-webkit-canvas("+id+")";},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_3cc.move,"onTouchMove"),this.connect(this.inner,_3cc.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_3c8.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}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){_3c5.forEach(this._conn,_3c6.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")&&!(has("android")>=4.1)){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _3d3=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_3d3,true);if(_3d3!=this.value){this.value=this.input.value=_3d3;this.onStateChanged(_3d3);}},onStateChanged:function(_3d4){},_setValueAttr:function(_3d5){this._changeState(_3d5,false);if(this.value!=_3d5){this.onStateChanged(_3d5);}this.value=this.input.value=_3d5;},_setLeftLabelAttr:function(_3d6){this.leftLabel=_3d6;this.left.firstChild.innerHTML=this._cv?this._cv(_3d6):_3d6;},_setRightLabelAttr:function(_3d7){this.rightLabel=_3d7;this.right.firstChild.innerHTML=this._cv?this._cv(_3d7):_3d7;},reset:function(){this.set("value",this._initialValue);}});});},"dijit/focus":function(){define(["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_3d8,_3d9,dom,_3da,_3db,_3dc,lang,on,_3dd,has,_3de,_3df,win,_3e0,a11y,_3e1,_3e2){var _3e3=_3d9([_3de,_3dc],{curNode:null,activeStack:[],constructor:function(){var _3e4=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);}});_3d8.before(_3db,"empty",_3e4);_3d8.before(_3db,"destroy",_3e4);},registerIframe:function(_3e5){return this.registerWin(_3e5.contentWindow,_3e5);},registerWin:function(_3e6,_3e7){var _3e8=this;var _3e9=function(evt){_3e8._justMouseDowned=true;setTimeout(function(){_3e8._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_3e8._onTouchNode(_3e7||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_3e6.document.documentElement:_3e6.document;if(doc){if(has("ie")){_3e6.document.body.attachEvent("onmousedown",_3e9);var _3ea=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_3e8._onFocusNode(_3e7||evt.srcElement);}else{_3e8._onTouchNode(_3e7||evt.srcElement);}};doc.attachEvent("onfocusin",_3ea);var _3eb=function(evt){_3e8._onBlurNode(_3e7||evt.srcElement);};doc.attachEvent("onfocusout",_3eb);return {remove:function(){_3e6.document.detachEvent("onmousedown",_3e9);doc.detachEvent("onfocusin",_3ea);doc.detachEvent("onfocusout",_3eb);doc=null;}};}else{doc.body.addEventListener("mousedown",_3e9,true);doc.body.addEventListener("touchstart",_3e9,true);var _3ec=function(evt){_3e8._onFocusNode(_3e7||evt.target);};doc.addEventListener("focus",_3ec,true);var _3ed=function(evt){_3e8._onBlurNode(_3e7||evt.target);};doc.addEventListener("blur",_3ed,true);return {remove:function(){doc.body.removeEventListener("mousedown",_3e9,true);doc.body.removeEventListener("touchstart",_3e9,true);doc.removeEventListener("focus",_3ec,true);doc.removeEventListener("blur",_3ed,true);doc=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([]);}),0);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _3ee=[];try{while(node){var _3ef=_3da.get(node,"dijitPopupParent");if(_3ef){node=_3e1.byId(_3ef).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_3e0.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_3f0=id&&_3e1.byId(id);if(_3f0&&!(by=="mouse"&&_3f0.get("disabled"))){_3ee.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_3ee,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(_3f1,by){var _3f2=this.activeStack;this.set("activeStack",_3f1);for(var _3f3=0;_3f3<Math.min(_3f2.length,_3f1.length);_3f3++){if(_3f2[_3f3]!=_3f1[_3f3]){break;}}var _3f4;for(var i=_3f2.length-1;i>=_3f3;i--){_3f4=_3e1.byId(_3f2[i]);if(_3f4){_3f4._hasBeenBlurred=true;_3f4.set("focused",false);if(_3f4._focusManager==this){_3f4._onBlur(by);}this.emit("widget-blur",_3f4,by);}}for(i=_3f3;i<_3f1.length;i++){_3f4=_3e1.byId(_3f1[i]);if(_3f4){_3f4.set("focused",true);if(_3f4._focusManager==this){_3f4._onFocus(by);}this.emit("widget-focus",_3f4,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _3f5=new _3e3();_3dd(function(){var _3f6=_3f5.registerWin(_3e0.get(win.doc));if(has("ie")){_3df.addOnWindowUnload(function(){if(_3f6){_3f6.remove();_3f6=null;}});}});_3e2.focus=function(node){_3f5.focus(node);};for(var attr in _3f5){if(!/^_/.test(attr)){_3e2.focus[attr]=typeof _3f5[attr]=="function"?lang.hitch(_3f5,attr):_3f5[attr];}}_3f5.watch(function(attr,_3f7,_3f8){_3e2.focus[attr]=_3f8;});return _3f5;});},"dijit/_base/sniff":function(){define(["dojo/uacss"],function(){});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_3f9,_3fa,_3fb,_3fc){return _3fa("dojox.mobile.Pane",[_3fc,_3fb],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_3f9.forEach(this.getChildren(),function(_3fd){if(_3fd.resize){_3fd.resize();}});}});});},"dijit/main":function(){define(["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(_3fe,_3ff,_400){return _3fe("dojox.mobile.RoundRect",_400,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_3ff.add(this.domNode,"mblShadow");}}});});},"dijit/form/_ButtonMixin":function(){define(["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_401,dom,_402,_403){return _401("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_402.stop(e);return false;}var _404=this.onClick(e)===false;if(!_404&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _405=_403.byNode(node);if(_405&&typeof _405._onSubmit=="function"){_405._onSubmit(e);_404=true;break;}}}if(_404){e.preventDefault();}return !_404;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_406){this._set("label",_406);(this.containerNode||this.focusNode).innerHTML=_406;}});});},"dijit/_base/typematic":function(){define(["../typematic"],function(){});},"dojox/mobile/app/TextBox":function(){define("dojox/mobile/app/TextBox",["dijit","dojo","dojox","dojo/require!dojox/mobile/TextBox"],function(_407,dojo,_408){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");_408.mobile.app.TextBox=_408.mobile.TextBox;});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_409,win,_40a,_40b,_40c){return _409("dojox.mobile.RoundRectCategory",[_40c,_40b],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _40d=this.domNode=this.containerNode=this.srcNodeRef||_40a.create(this.tag);this.inherited(arguments);if(!this.label&&_40d.childNodes.length===1&&_40d.firstChild.nodeType===3){this.label=_40d.firstChild.nodeValue;}},_setLabelAttr:function(_40e){this.label=_40e;this.domNode.innerHTML=this._cv?this._cv(_40e):_40e;}});});},"dojox/mobile/app/SceneAssistant":function(){define("dojox/mobile/app/SceneAssistant",["dijit","dojo","dojox"],function(_40f,dojo,_410){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(_411){},deactivate:function(){},destroy:function(){var _412=dojo.query("> [widgetId]",this.containerNode).map(_40f.byNode);dojo.forEach(_412,function(_413){_413.destroyRecursive();});this.disconnect();},connect:function(obj,_414,_415){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_414,_415));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dijit/_base/popup":function(){define(["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_416,win,_417){var _418=_417._createWrapper;_417._createWrapper=function(_419){if(!_419.declaredClass){_419={_popupWrapper:(_419.parentNode&&_416.contains(_419.parentNode,"dijitPopup"))?_419.parentNode:null,domNode:_419,destroy:function(){},ownerDocument:_419.ownerDocument,ownerDocumentBody:win.body(_419.ownerDocument)};}return _418.call(this,_419);};var _41a=_417.open;_417.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 _41a.call(this,args);};return _417;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_41b,_41c){if(_41c["mblCSS3Transition"]){var _41d=new _41b();require([_41c["mblCSS3Transition"]],function(_41e){_41d.resolve(_41e);});return _41d;}return null;});},"dijit/_base/wai":function(){define(["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(_41f,lang,_420){var _421={hasWaiRole:function(elem,role){var _422=this.getWaiRole(elem);return role?(_422.indexOf(role)>-1):(_422.length>0);},getWaiRole:function(elem){return lang.trim((_41f.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_41f.set(elem,"role",role);},removeWaiRole:function(elem,role){var _423=_41f.get(elem,"role");if(!_423){return;}if(role){var t=lang.trim((" "+_423+" ").replace(" "+role+" "," "));_41f.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_424){return elem.hasAttribute?elem.hasAttribute("aria-"+_424):!!elem.getAttribute("aria-"+_424);},getWaiState:function(elem,_425){return elem.getAttribute("aria-"+_425)||"";},setWaiState:function(elem,_426,_427){elem.setAttribute("aria-"+_426,_427);},removeWaiState:function(elem,_428){elem.removeAttribute("aria-"+_428);}};lang.mixin(_420,_421);return _420;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_429,dom,geom,_42a){var _42b={getBox:function(doc){doc=doc||_429.doc;var _42c=(doc.compatMode=="BackCompat")?_429.body(doc):doc.documentElement,_42d=geom.docScroll(doc),w,h;if(has("touch")){var _42e=_42b.get(doc);w=_42e.innerWidth||_42c.clientWidth;h=_42e.innerHeight||_42c.clientHeight;}else{w=_42c.clientWidth;h=_42c.clientHeight;}return {l:_42d.x,t:_42d.y,w:w,h:h};},get:function(doc){if(has("ie")&&_42b!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;},scrollIntoView:function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_429.doc,body=_429.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if((!(has("mozilla")||isIE||isWK||has("opera"))||node==body||node==html)&&(typeof node.scrollIntoView!="undefined")){node.scrollIntoView(false);return;}var _42f=doc.compatMode=="BackCompat",_430=(isIE>=9&&"frameElement" in node.ownerDocument.parentWindow)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_42f?body:html),_431=isWK?body:_430,_432=_430.clientWidth,_433=_430.clientHeight,rtl=!geom.isBodyLtr(doc),_434=pos||geom.position(node),el=node.parentNode,_435=function(el){return ((isIE<=6||(isIE&&_42f))?false:(_42a.get(el,"position").toLowerCase()=="fixed"));};if(_435(node)){return;}while(el){if(el==body){el=_431;}var _436=geom.position(el),_437=_435(el);if(el==_431){_436.w=_432;_436.h=_433;if(_431==html&&isIE&&rtl){_436.x+=_431.offsetWidth-_436.w;}if(_436.x<0||!isIE){_436.x=0;}if(_436.y<0||!isIE){_436.y=0;}}else{var pb=geom.getPadBorderExtents(el);_436.w-=pb.w;_436.h-=pb.h;_436.x+=pb.l;_436.y+=pb.t;var _438=el.clientWidth,_439=_436.w-_438;if(_438>0&&_439>0){_436.w=_438;_436.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_439:0;}_438=el.clientHeight;_439=_436.h-_438;if(_438>0&&_439>0){_436.h=_438;}}if(_437){if(_436.y<0){_436.h+=_436.y;_436.y=0;}if(_436.x<0){_436.w+=_436.x;_436.x=0;}if(_436.y+_436.h>_433){_436.h=_433-_436.y;}if(_436.x+_436.w>_432){_436.w=_432-_436.x;}}var l=_434.x-_436.x,t=_434.y-Math.max(_436.y,0),r=l+_434.w-_436.w,bot=t+_434.h-_436.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_42f)||isIE>=9)){s=-s;}_434.x+=el.scrollLeft;el.scrollLeft+=s;_434.x-=el.scrollLeft;}if(bot*t>0){_434.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_434.y-=el.scrollTop;}el=(el!=_431)&&!_437&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_42b);return _42b;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_43a,_43b){return _43a("dojox.mobile.EdgeToEdgeList",_43b,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dijit/popup":function(){define(["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/keys","dojo/_base/lang","dojo/on","dojo/sniff","./place","./BackgroundIframe","./main"],function(_43c,_43d,_43e,_43f,dom,_440,_441,_442,_443,_444,keys,lang,on,has,_445,_446,_447){function _448(){if(this._popupWrapper){_441.destroy(this._popupWrapper);delete this._popupWrapper;}};var _449=_43f(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_44a){var _44b=_44a._popupWrapper,node=_44a.domNode;if(!_44b){_44b=_441.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},_44a.ownerDocumentBody);_44b.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_44a._popupWrapper=_44b;_43d.after(_44a,"destroy",_448,true);}return _44b;},moveOffScreen:function(_44c){var _44d=this._createWrapper(_44c);_443.set(_44d,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_44e){var _44f=this._createWrapper(_44e);_443.set(_44f,"display","none");},getTopPopup:function(){var _450=this._stack;for(var pi=_450.length-1;pi>0&&_450[pi].parent===_450[pi-1].widget;pi--){}return _450[pi];},open:function(args){var _451=this._stack,_452=args.popup,_453=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_442.isBodyLtr(_452.ownerDocument),_454=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_451.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_451[_451.length-1].widget.domNode))){this.close(_451[_451.length-1].widget);}var _455=this._createWrapper(_452);_440.set(_455,{id:id,style:{zIndex:this._beginZIndex+_451.length},"class":"dijitPopup "+(_452.baseClass||_452["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("ie")||has("mozilla")){if(!_452.bgIframe){_452.bgIframe=new _446(_455);}}var best=_454?_445.around(_455,_454,_453,ltr,_452.orient?lang.hitch(_452,"orient"):null):_445.at(_455,args,_453=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_455.style.display="";_455.style.visibility="visible";_452.domNode.style.visibility="visible";var _456=[];_456.push(on(_455,_43e._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_444.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_444.stop(evt);var _457=this.getTopPopup();if(_457&&_457.onCancel){_457.onCancel();}}}})));if(_452.onCancel&&args.onCancel){_456.push(_452.on("cancel",args.onCancel));}_456.push(_452.on(_452.onExecute?"execute":"change",lang.hitch(this,function(){var _458=this.getTopPopup();if(_458&&_458.onExecute){_458.onExecute();}})));_451.push({widget:_452,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_456});if(_452.onOpen){_452.onOpen(best);}return best;},close:function(_459){var _45a=this._stack;while((_459&&_43c.some(_45a,function(elem){return elem.widget==_459;}))||(!_459&&_45a.length)){var top=_45a.pop(),_45b=top.widget,_45c=top.onClose;if(_45b.onClose){_45b.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_45b&&_45b.domNode){this.hide(_45b);}if(_45c){_45c();}}}});return (_447.popup=new _449());});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(dojo,lang,win,has){var html=win.doc.documentElement;html.className=lang.trim(html.className+" "+[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(["dojo/window","../main"],function(_45d,_45e){_45e.getDocumentWindow=function(doc){return _45d.get(doc);};});},"dijit/_WidgetBase":function(){define(["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/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_45f,_460,_461,_462,_463,_464,dom,_465,_466,_467,_468,_469,has,_46a,lang,on,_46b,_46c,_46d,win,_46e,_46f){has.add("dijit-legacy-requires",!_46a.isAsync);if(has("dijit-legacy-requires")){_46b(0,function(){var _470=["dijit/_base/manager"];_45f(_470);});}var _471={};function _472(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _473(attr){return function(val){_465[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _464("dijit._WidgetBase",[_46c,_46e],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_473("lang"),dir:"",_setDirAttr:_473("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_462.blankGif||_45f.toUrl("dojo/resources/blank.gif"),postscript:function(_474,_475){this.create(_474,_475);},create:function(_476,_477){this.srcNodeRef=dom.byId(_477);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_476){this.params=_476;lang.mixin(this,_476);}this.postMixInProperties();if(!this.id){this.id=_46f.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_46f.add(this);this.buildRendering();var _478;if(this.domNode){this._applyAttributes();var _479=this.srcNodeRef;if(_479&&_479.parentNode&&this.domNode!==_479){_479.parentNode.replaceChild(this.domNode,_479);_478=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_478){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 _47a=ctor.prototype;for(var _47b in _47a){if(_47b in this.attributeMap){continue;}var _47c="_set"+_47b.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_47c in _47a){list.push(_47b);}}}var _47d={};for(var key in this.params||{}){_47d[key]=this[key];}_460.forEach(list,function(attr){if(attr in _47d){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(key in _47d){this.set(key,_47d[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _47e=this.baseClass.split(" ");if(!this.isLeftToRight()){_47e=_47e.concat(_460.map(_47e,function(name){return name+"Rtl";}));}_466.add(this.domNode,_47e);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_460.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_47f){this._beingDestroyed=true;this.destroyDescendants(_47f);this.destroy(_47f);},destroy:function(_480){this._beingDestroyed=true;this.uninitialize();function _481(w){if(w.destroyRecursive){w.destroyRecursive(_480);}else{if(w.destroy){w.destroy(_480);}}};_460.forEach(this._connects,lang.hitch(this,"disconnect"));_460.forEach(this._supportingWidgets,_481);if(this.domNode){_460.forEach(_46f.findWidgets(this.domNode,this.containerNode),_481);}this.destroyRendering(_480);_46f.remove(this.id);this._destroyed=true;},destroyRendering:function(_482){if(this.bgIframe){this.bgIframe.destroy(_482);delete this.bgIframe;}if(this.domNode){if(_482){_465.remove(this.domNode,"widgetId");}else{_467.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_482){_467.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_483){_460.forEach(this.getChildren(),function(_484){if(_484.destroyRecursive){_484.destroyRecursive(_483);}});},uninitialize:function(){return false;},_setStyleAttr:function(_485){var _486=this.domNode;if(lang.isObject(_485)){_469.set(_486,_485);}else{if(_486.style.cssText){_486.style.cssText+="; "+_485;}else{_486.style.cssText=_485;}}this._set("style",_485);},_attrToDom:function(attr,_487,_488){_488=arguments.length>=3?_488:this.attributeMap[attr];_460.forEach(lang.isArray(_488)?_488:[_488],function(_489){var _48a=this[_489.node||_489||"domNode"];var type=_489.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_487)){_487=lang.hitch(this,_487);}var _48b=_489.attribute?_489.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_48a.tagName){_465.set(_48a,_48b,_487);}else{_48a.set(_48b,_487);}break;case "innerText":_48a.innerHTML="";_48a.appendChild(this.ownerDocument.createTextNode(_487));break;case "innerHTML":_48a.innerHTML=_487;break;case "class":_466.replace(_48a,_487,this[attr]);break;}},this);},get:function(name){var _48c=this._getAttrNames(name);return this[_48c.g]?this[_48c.g]():this[name];},set:function(name,_48d){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _48e=this._getAttrNames(name),_48f=this[_48e.s];if(lang.isFunction(_48f)){var _490=_48f.apply(this,Array.prototype.slice.call(arguments,1));}else{var _491=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",_492,map,tag;tag=this[_491]&&this[_491].tagName;if(tag){_492=_471[tag]||(_471[tag]=_472(this[_491]));}map=name in this.attributeMap?this.attributeMap[name]:_48e.s in this?this[_48e.s]:((_492&&_48e.l in _492&&typeof _48d!="function")||/^aria-|^data-|^role$/.test(name))?_491:null;if(map!=null){this._attrToDom(name,_48d,map);}this._set(name,_48d);}return _490||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,_493){var _494=this[name];this[name]=_493;if(this._created&&_493!==_494){if(this._watchCallbacks){this._watchCallbacks(name,_494,_493);}this.emit("attrmodified-"+name,{detail:{prevValue:_494,newValue:_493}});}},emit:function(type,_495,_496){_495=_495||{};if(_495.bubbles===undefined){_495.bubbles=true;}if(_495.cancelable===undefined){_495.cancelable=true;}if(!_495.detail){_495.detail={};}_495.detail.widget=this;var ret,_497=this["on"+type];if(_497){ret=_497.apply(this,_496?_496:[_495]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_495);}return ret;},on:function(type,func){var _498=this._onMap(type);if(_498){return _461.after(this,_498,func,true);}return this.own(on(this.domNode,type,func))[0];},_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[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_46f.findWidgets(this.containerNode):[];},getParent:function(){return _46f.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_499,_49a){return this.own(_463.connect(obj,_499,this,_49a))[0];},disconnect:function(_49b){_49b.remove();},subscribe:function(t,_49c){return this.own(_46d.subscribe(t,lang.hitch(this,_49c)))[0];},unsubscribe:function(_49d){_49d.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_468.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_469.get(this.domNode,"display")!="none");},placeAt:function(_49e,_49f){var _4a0=!_49e.tagName&&_46f.byId(_49e);if(_4a0&&_4a0.addChild&&(!_49f||typeof _49f==="number")){_4a0.addChild(this,_49f);}else{var ref=_4a0?(_4a0.containerNode&&!/after|before|replace/.test(_49f||"")?_4a0.containerNode:_4a0.domNode):dom.byId(_49e,this.ownerDocument);_467.place(this.domNode,ref,_49f);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_4a1){return _4a1;},applyTextDir:function(){},defer:function(fcn,_4a2){var _4a3=setTimeout(lang.hitch(this,function(){_4a3=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_4a2||0);return {remove:function(){if(_4a3){clearTimeout(_4a3);_4a3=null;}return null;}};}});});},"dojox/mobile/app/AlertDialog":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_4a4,dojo,_4a5){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_4a4._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 _4a6=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_4a6);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_4a6);var _4a7=dojo.create("div",{"class":"alertBtns"},_4a6);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _4a8=this;dojo.forEach(this.buttons,function(_4a9){var btn=new _4a5.mobile.Button({btnClass:_4a9["class"]||"",label:_4a9.label});btn._dialogValue=_4a9.value;dojo.place(btn.domNode,_4a7);_4a8.connect(btn,"onClick",_4a8._handleSelect);});var _4aa=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_4aa.w+"px",height:_4aa.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_4a8.onChoose&&_4a8.onChoose();_4a8.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_4ab){var node;console.log("handleSelect");if(_4ab&&_4ab.target){node=_4ab.target;while(!_4a4.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_4a4.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 _4ac=this.controller.getWindowSize().h;console.log("dialog height = "+h," body height = "+_4ac);var high=_4ac-h;var low=_4ac;var _4ad=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _4ae=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_4ad,_4ae]);var _4af=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_4af.domNode.style.display="none";dojo.destroy(_4af.domNode);dojo.destroy(_4af.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});},"*noref":1}});define("dojox/mobile/app",["./app/_base"],function(_4b0){return _4b0;});