vendor/assets/javascripts/dojox/mobile/app.js in dojox-rails-0.13.0 vs vendor/assets/javascripts/dojox/mobile/app.js in dojox-rails-0.14.0

- old
+ new

@@ -1,7 +1,7 @@ /* - Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. + 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 */ /* @@ -10,6 +10,6 @@ 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_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_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"),"dj_ff3":_8(ff)==3};_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/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(_66,_67,win,_68,_69,_6a,has,_6b){return _66("dojox.mobile.ToolBarButton",_6b,{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=_67.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_69.create("span");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_68.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_69.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_68.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_69.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_69.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){_68.add(this.domNode,"mblToolBarButtonHasIcon");_68.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_68.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.icon);}},_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(_6c){this.inherited(arguments);_68.toggle(this.tableNode,"mblToolBarButtonText",_6c);},_setSelectedAttr:function(_6d){var _6e=function(_6f,a,b){_68.replace(_6f,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_6d){_68.replace(this.bodyNode,this.selColor,this.defaultColor);if(!has("ie")&&this.arrowNode){_6e(this.arrowNode,this.selColor,this.defaultColor);}}else{_68.replace(this.bodyNode,this.defaultColor,this.selColor);if(!has("ie")&&this.arrowNode){_6e(this.arrowNode,this.defaultColor,this.selColor);}}_68.toggle(this.domNode,"mblToolBarButtonSelected",_6d);_68.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_6d);}});});},"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"],function(_70,_71,_72,win,_73,_74,_75,_76,_77,_78,_79,_7a){return _71("dojox.mobile._ItemBase",[_78,_77,_76],{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,_74.press,"_onTouchStart");}this.inherited(arguments);},inheritParams:function(){var _7b=this.getParent();if(_7b){_70.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var _7c=p+"Base",pos=p+"Pos";if(this[p]&&_7b[_7c]&&_7b[_7c].charAt(_7b[_7c].length-1)==="/"){this[p]=_7b[_7c]+this[p];}if(!this[p]){this[p]=_7b[_7c];}if(!this[pos]){this[pos]=_7b[pos];}}if(!this[p]){this[p]=_7b[p];}},this);}return !!_7b;},getTransOpts:function(){var _7d=this.transitionOptions||{};_70.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){_7d[p]=_7d[p]||this[p];},this);return _7d;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){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 _7e=this;this.defer(function(){_7e.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 _7f=this.getTransOpts();var _80=!!(_7f.moveTo||_7f.href||_7f.url||_7f.target||_7f.scene);if(this._prepareForTransition(e,_80?_7f:null)===false){return;}if(_80){this.setTransitionPos(e);new _79(this.domNode,_7f,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_81){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_74.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_74.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(_72.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||_73.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_82,_83,url,_84){var _85=(_82&&typeof (_82)==="object")?_82:{moveTo:_82,href:_83,url:url,scene:_84,transition:this.transition,transitionDir:this.transitionDir};new _79(this.domNode,_85).dispatch();},_setIconAttr:function(_86){if(!this._isOnLine){return;}this._set("icon",_86);this.iconNode=_7a.setIcon(_86,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(_87){this._set("label",_87);this.labelNode.innerHTML=this._cv?this._cv(_87):_87;},_setSelectedAttr:function(_88){if(_88){var p=this.getParent();if(p&&p.selectOne){var arr=_70.filter(p.getChildren(),function(w){return w.selected;});_70.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_88);}});});},"dijit/hccss":function(){define("dijit/hccss",["dojo/dom-class","dojo/hccss","dojo/ready","dojo/_base/window"],function(_89,has,_8a,win){_8a(90,function(){if(has("highcontrast")){_89.add(win.body(),"dijit_a11y");}});return has;});},"dojox/mobile/Container":function(){define("dojox/mobile/Container",["dojo/_base/declare","dijit/_Container","./Pane"],function(_8b,_8c,_8d){return _8b("dojox.mobile.Container",[_8d,_8c],{baseClass:"mblContainer"});});},"dijit/_Contained":function(){define("dijit/_Contained",["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("dijit/form/_TextBoxMixin",["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("dijit/_Container",["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(){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){throw e;}_df._initAssistant();});}});},_initAssistant:function(){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);_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{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(){});};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("dijit/_base/scroll",["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("dijit/_base",["./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&&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="";}}});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("dijit/form/_FormWidgetMixin",["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",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("dijit/BackgroundIframe",["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("dijit/form/_FormValueMixin",["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.focusNode.setAttribute("aria-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;}}if(has("android")&&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();_15d.connect(null,"onresize",null,function(e){var _16c=dm.getScreenSize();if(_16c.w==_16b.w&&Math.abs(_16c.h-_16b.h)>=100){_169(e);}_16b=_16c;});}_15d.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"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(_16d,_16e,_16f,lang,win,dom,_170,_171,_172,_173,_174,_175,_176,_177,_178,View){var dm=lang.getObject("dojox.mobile",true);return _16f("dojox.mobile.Heading",[_176,_175,_174],{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){_16d.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_171.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_171.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_171.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _179=this.getParent&&this.getParent();if(!_179||!_179.resize){var _17a=this;setTimeout(function(){_17a.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _17b,_17c;var _17d=this.containerNode.childNodes;for(var i=_17d.length-1;i>=0;i--){var c=_17d[i];if(c.nodeType===1&&_172.get(c,"display")!=="none"){if(!_17c&&_172.get(c,"float")==="right"){_17c=c;}if(!_17b&&_172.get(c,"float")==="left"){_17b=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=_17c?bw-_17c.offsetLeft+5:0;var lw=_17b?_17b.offsetLeft+_17b.offsetWidth+5:0;var tw=this.labelNodeLen||0;_170[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_16d.forEach(this.getChildren(),function(_17e){if(_17e.resize){_17e.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _178({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();},_setLabelAttr:function(_17f){this._set("label",_17f);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_17f):_17f;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _177({size:30,center:false});_170.add(prog.domNode,this.progStyle);}_171.place(prog.domNode,this.domNode,"first");prog.start();}else{prog.stop();}this._set("busy",busy);}});});},"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(_180,_181,_182,_183,lang,win,_184,_185,_186,has){var dm=lang.getObject("dojox.mobile",true);var _187=function(){this.setupSpriteIcon=function(_188,_189){if(_188&&_189){var arr=_180.map(_189.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];_186.set(_188,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_188.parentNode?_186.get(_188,"top"):0)-t+"px",left:-l+"px"});_184.add(_188,"mblSpriteIcon");}};this.createDomButton=function(_18a,_18b,_18c){if(!this._domButtons){if(has("webkit")){var _18d=function(_18e,dic){var i,j;if(!_18e){var _18f={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_18d(ss[i],_18f);}return _18f;}var _190=_18e.cssRules||[];for(i=0;i<_190.length;i++){var rule=_190[i];if(rule.href&&rule.styleSheet){_18d(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=_18d();}else{this._domButtons={};}}var s=_18a.className;var node=_18c||_18a;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _191=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_191]!==undefined){nDiv=this._domButtons[_191];}}var _192=null;if(has("bb")&&_181["mblBBBoxShadowWorkaround"]!==false){_192={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_185.create("div",_192,p);}if(_18c){setTimeout(function(){_184.remove(_18a,_191);},0);_184.add(_18c,_191);}}else{if(s.indexOf(".")!==-1){_185.create("img",{src:s},node);}else{return null;}}_184.add(node,"mblDomButton");!!_18b&&_186.set(node,_18b);return node;};this.createIcon=function(icon,_193,node,_194,_195,_196,pos){_194=_194||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_185.create("div",null,_196||_195,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_184.remove(node,RegExp.$1);}}node.title=_194;_184.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_185.create("img",{alt:_194},_196||_195,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_193);if(_193&&_195){var arr=_193.split(/[ ,]/);_186.set(_195,{width:arr[2]+"px",height:arr[3]+"px"});_184.add(_195,"mblSpriteIconParent");}_182.connect(node,"ondragstart",_183,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_197,_198,alt,_199,_19a,pos){if(!_199||!icon&&!_198){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_197){if(_198&&_198.tagName==="DIV"){_185.destroy(_198);_198=null;}_198=this.createIcon(icon,null,_198,alt,_199,_19a,pos);_184.add(_198,"mblImageIcon");}else{if(_198&&_198.tagName==="IMG"){_185.destroy(_198);_198=null;}_198&&_185.empty(_198);if(!_198){_198=_185.create("div",null,_19a||_199,pos);}this.createIcon(icon,_197,null,null,_198);if(alt){_198.title=alt;}}_184.remove(_199,"mblNoIcon");return _198;}else{_185.destroy(_198);_184.add(_199,"mblNoIcon");return null;}};};return new _187();});},"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(_19b,_19c,_19d,lang,win,_19e,_19f,_1a0,_1a1){return _19c("dojox.mobile.RoundRectList",[_1a1,_1a0,_19f],{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||_19e.create(this.tag);this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_1a2){lang.mixin(this,new _1a2());}));}this.connect(this.domNode,"onselectstart",_19d.stop);if(this.syncWithViews){var f=function(view,_1a3,dir,_1a4,_1a5,_1a6){var _1a7=_19b.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_1a7){_1a7.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_19b.forEach(this.getChildren(),function(_1a8){if(_1a8.resize){_1a8.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_1a9){this._set("stateful",_1a9);this.selectOne=_1a9;_19b.forEach(this.getChildren(),function(_1aa){_1aa.setArrow&&_1aa.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_19b.forEach(this.getChildren(),function(_1ab){_1ab.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","dojo/when"],function(_1ac,lang,_1ad,when){return _1ac("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(_1ae){if(_1ae){this.set(_1ae);}},_get:function(name,_1af){return typeof this[_1af.g]==="function"?this[_1af.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1b0){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1b1=this._getAttrNames(name),_1b2=this._get(name,_1b1),_1b3=this[_1b1.s],_1b4;if(typeof _1b3==="function"){_1b4=_1b3.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1b0;}if(this._watchCallbacks){var self=this;when(_1b4,function(){self._watchCallbacks(name,_1b2,_1b0);});}return this;},_changeAttrValue:function(name,_1b5){var _1b6=this.get(name);this[name]=_1b5;if(this._watchCallbacks){this._watchCallbacks(name,_1b6,_1b5);}return this;},watch:function(name,_1b7){var _1b8=this._watchCallbacks;if(!_1b8){var self=this;_1b8=this._watchCallbacks=function(name,_1b9,_1ba,_1bb){var _1bc=function(_1bd){if(_1bd){_1bd=_1bd.slice();for(var i=0,l=_1bd.length;i<l;i++){_1bd[i].call(self,name,_1b9,_1ba);}}};_1bc(_1b8["_"+name]);if(!_1bb){_1bc(_1b8["*"]);}};}if(!_1b7&&typeof name==="function"){_1b7=name;name="*";}else{name="_"+name;}var _1be=_1b8[name];if(typeof _1be!=="object"){_1be=_1b8[name]=[];}_1be.push(_1b7);var _1bf={};_1bf.unwatch=_1bf.remove=function(){var _1c0=_1ad.indexOf(_1be,_1b7);if(_1c0>-1){_1be.splice(_1c0,1);}};return _1bf;}});});},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_1c1,_1c2,_1c3){var _1c4={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(_1c2.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_1c5){return _1c1.filter(this.getViews(),function(v){return this.getParentView(v)===_1c5;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_1c2.contains(n,"mblView")){return _1c3.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_1c3.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _1c4;});},"dojo/touch":function(){define(["./_base/kernel","./_base/lang","./aspect","./dom","./on","./has","./mouse","./ready","./_base/window"],function(dojo,lang,_1c6,dom,on,has,_1c7,_1c8,win){var _1c9=has("touch");var _1ca,_1cb;if(_1c9){_1c8(function(){_1cb=win.body();win.doc.addEventListener("touchstart",function(evt){var _1cc=_1cb;_1cb=evt.target;on.emit(_1cc,"dojotouchout",{target:_1cc,relatedTarget:_1cb,bubbles:true});on.emit(_1cb,"dojotouchover",{target:_1cb,relatedTarget:_1cc,bubbles:true});},true);on(win.doc,"touchmove",function(evt){var _1cd=win.doc.elementFromPoint(evt.pageX-win.global.pageXOffset,evt.pageY-win.global.pageYOffset);if(_1cd&&_1cb!==_1cd){on.emit(_1cb,"dojotouchout",{target:_1cb,relatedTarget:_1cd,bubbles:true});on.emit(_1cd,"dojotouchover",{target:_1cd,relatedTarget:_1cb,bubbles:true});_1cb=_1cd;}});});_1ca=function(node,_1ce){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_1cb,node)){_1ce.call(this,lang.mixin({},evt,{target:_1cb}));}});};}function _1cf(type){return function(node,_1d0){return on(node,type,_1d0);};};var _1d1={press:_1cf(_1c9?"touchstart":"mousedown"),move:_1c9?_1ca:_1cf("mousemove"),release:_1cf(_1c9?"touchend":"mouseup"),cancel:_1c9?_1cf("touchcancel"):_1c7.leave,over:_1cf(_1c9?"dojotouchover":"mouseover"),out:_1cf(_1c9?"dojotouchout":"mouseout"),enter:_1c7._eventHandler(_1c9?"dojotouchover":"mouseover"),leave:_1c7._eventHandler(_1c9?"dojotouchout":"mouseout")};1&&(dojo.touch=_1d1);return _1d1;});},"dojox/mobile/app/List":function(){define(["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(_1d2,dojo,_1d3){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _1d4={};dojo.declare("dojox.mobile.app.List",_1d2._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 _1d5=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_1d6){var _1d7=_1d6;if(_1d6.targetTouches&&_1d6.targetTouches.length>0){_1d7=_1d6.targetTouches[0];}var _1d8=_1d5._getRowNode(_1d6.target);if(_1d8){_1d5._setDataInfo(_1d8,_1d6);_1d5._selectRow(_1d8);_1d5._mouseDownPos={x:_1d7.pageX,y:_1d7.pageY};_1d5._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1d9){if(_1d9.targetTouches&&_1d9.targetTouches.length>0){_1d9=_1d9.targetTouches[0];}var _1da=_1d5._getRowNode(_1d9.target);if(_1da){_1d5._setDataInfo(_1da,_1d9);if(_1d5._selectedRow){_1d5.onSelect(_1da._data,_1da._idx,_1da);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1db){dojo.stopEvent(_1db);if(!_1d5._selectedRow){return;}var _1dc=_1d5._getRowNode(_1db.target);if(_1d5.enableDelete&&_1dc&&!_1d5._deleting){_1d5.handleDrag(_1db);}});}this.connect(this.domNode,"onclick",function(_1dd){if(_1dd.touches&&_1dd.touches.length>0){_1dd=_1dd.touches[0];}var _1de=_1d5._getRowNode(_1dd.target,true);if(_1de){_1d5._setDataInfo(_1de,_1dd);}});this.connect(this.domNode,"mouseout",function(_1df){if(_1df.touches&&_1df.touches.length>0){_1df=_1df.touches[0];}if(_1df.target==_1d5._selectedRow){_1d5._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(_1e0){var _1e1=_1e0;if(_1e0.targetTouches&&_1e0.targetTouches.length>0){_1e1=_1e0.targetTouches[0];}var diff=_1e1.pageX-this._mouseDownPos.x;var _1e2=Math.abs(diff);if(_1e2>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1e2>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1e2){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(_1e3){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1e3+((_1e3>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(_1e4){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1e5=row.nextSibling;var _1e6=row.previousSibling;if(_1e6&&_1e6._isDivider){if(!_1e5||_1e5._isDivider){_1e6.parentNode.removeChild(_1e6);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1e5){if(_1e5._idx){_1e5._idx--;}_1e5=_1e5.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1e7){var mb=dojo.marginBox(_1e7);var pos=dojo._abs(_1e7,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _1d3.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _1d3.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:(_1e7.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1e8,_1e9){_1e9.splice(_1e8,1);if(_1e9.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1ea){if(_1ea.touches&&_1ea.touches.length>0){_1ea=_1ea.touches[0];}var node=_1ea.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,_1eb){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1eb.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1ec,_1ed){_1ed.item=_1ec._data;_1ed.index=_1ec._idx;},onSelect:function(data,_1ee,_1ef){},_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(_1f0,_1f1){while(_1f0&&!_1f0._data&&_1f0!=this.domNode){if(!_1f1&&dojo.hasClass(_1f0,"noclick")){return null;}_1f0=_1f0.parentNode;}return _1f0==this.domNode?null:_1f0;},applyTemplate:function(_1f2,data){return dojo._toDom(dojo.string.substitute(_1f2,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(_1f3,_1f4){var rows=[];var row,i;var frag=document.createDocumentFragment();_1f3=Math.max(0,_1f3);_1f4=Math.min(_1f4,this.items.length);for(i=_1f3;i<_1f4;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=_1f3;i<_1f4;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1f5=null;var _1f6;var _1f7;for(i=_1f3;i<_1f4;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1f6=this.dividerFunction(this.items[i]);if(_1f6&&_1f6!=_1f5){_1f7=this.applyTemplate(this.dividerTemplate,{label:_1f6,item:this.items[i]});_1f7._isDivider=true;frag.appendChild(_1f7);_1f5=_1f6;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1f8,key){if(key.charAt(0)=="!"){_1f8=dojo.getObject(key.substr(1),false,_this);}if(typeof _1f8=="undefined"){return "";}if(_1f8==null){return "";}return key.charAt(0)=="!"?_1f8:_1f8.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1f9,_1fa){if(!url){_1fa();return;}if(_1d4[url]){this.set(_1f9,_1d4[url]);_1fa();}else{var _1fb=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_1d4[url]=dojo.trim(text);_1fb.set(_1f9,_1d4[url]);_1fa();}});}},_setFormattersAttr:function(_1fc){this.formatters=_1fc;},_setItemsAttr:function(_1fd){this.items=_1fd||[];if(this._templateLoadCount<1&&_1fd){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1fe){_1fe.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojo/require":function(){define(["./_base/loader"],function(_1ff){return {dynamic:0,normalize:function(id){return id;},load:_1ff.require};});},"dojox/mobile/app/ListSelector":function(){define("dojox/mobile/app/ListSelector",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(_200,dojo,_201){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",_201.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 _202=this;this.connect(this.domNode,"onclick",function(_203){if(!dojo.hasClass(_203.target,"listSelectorRow")){return;}if(_202.onChoose){_202.onChoose(_202.data[_203.target._idx].value);}_202.hide();});this.connect(this.domNode,"onmousedown",function(_204){if(!dojo.hasClass(_204.target,"listSelectorRow")){return;}dojo.addClass(_204.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_205){if(!dojo.hasClass(_205.target,"listSelectorRow")){return;}dojo.removeClass(_205.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_206){if(!dojo.hasClass(_206.target,"listSelectorRow")){return;}dojo.removeClass(_206.target,"listSelectorRow-selected");});var _207=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(){_202.onChoose&&_202.onChoose();_202.hide();});},show:function(_208){var _209;var _20a=this.controller.getWindowSize();var _20b;if(_208){_20b=dojo._abs(_208);_209=_20b;}else{_209.x=_20a.w/2;_209.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_20a.w*0.8)+"px"});var _20c=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_20c=Math.max(_20c,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_20c=Math.min(_20c,Math.round(_20a.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_20c+"px");var _20d=dojo.marginBox(this.domNode).h;var _20e=this;var _20f=_20b?Math.max(30,_20b.y-_20d-10):this.getScroll().y+30;var _210=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_20c},height:{start:1,end:_20d},top:{start:_209.y,end:_20f},left:{start:_209.x,end:(_20a.w/2-_20c/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_20e.domNode,"width","inherit");}});var _211=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_210,_211]).play();},hide:function(){var _212=this;var _213=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_212.get("destroyOnHide")){_212.destroy();}}});var _214=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_213,_214]).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-construct","./dom-style","./has","./ready","./_base/window"],function(_215,_216,_217,_218,_219,has,_21a,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("+(_216.blankGif||_215.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_219.getComputedStyle(div),_21b=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_21b&&(_21b=="none"||_21b=="url(invalid-url:)"));_218.destroy(div);return hc;});_21a(90,function(){if(has("highcontrast")){_217.add(win.body(),"dj_a11y");}});return has;});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_21c,_21d){return _21c("dojox.mobile.EdgeToEdgeCategory",_21d,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_21e,lang){var _21f={};lang.setObject("dojo.string",_21f);_21f.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("");};_21f.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_21f.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_21f.substitute=function(_220,map,_221,_222){_222=_222||_21e.global;_221=_221?lang.hitch(_222,_221):function(v){return v;};return _220.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_223,key,_224){var _225=lang.getObject(key,false,map);if(_224){_225=lang.getObject(_224,false,_222).call(_222,_225,key);}return _221(_225,key).toString();});};_21f.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 _21f;});},"dojox/mobile/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_226,_227,_228,_229,_22a){return _226("dojox.mobile.TextBox",[_228,_229,_22a],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:function(_22b){_22b=this._cv?this._cv(_22b):_22b;this.textbox.setAttribute("placeholder",_22b);},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_227.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("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_22c,has,_22d,win,_22e){var _22f={},hash={};var _230={length:0,add:function(_231){if(hash[_231.id]){throw new Error("Tried to register widget with id=="+_231.id+" but that id is already registered");}hash[_231.id]=_231;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(_232){var id;do{id=_232+"_"+(_232 in _22f?++_22f[_232]:_22f[_232]=0);}while(hash[id]);return _22e._scopeName=="dijit"?id:_22e._scopeName+"_"+id;},findWidgets:function(root,_233){var _234=[];function _235(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _236=node.getAttribute("widgetId");if(_236){var _237=hash[_236];if(_237){_234.push(_237);}}else{if(node!==_233){_235(node);}}}}};_235(root);return _234;},_destroyAll:function(){_22e._curFocus=null;_22e._prevFocus=null;_22e._activeStack=[];_22c.forEach(_230.findWidgets(win.body()),function(_238){if(!_238._destroyed){if(_238.destroyRecursive){_238.destroyRecursive();}else{if(_238.destroy){_238.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_22e.registry=_230;return _230;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_239,_23a,_23b){return _23b("dijit.Destroyable",null,{destroy:function(_23c){this._destroyed=true;},own:function(){_239.forEach(arguments,function(_23d){var _23e="destroyRecursive" in _23d?"destroyRecursive":"destroy" in _23d?"destroy":"remove";_23d._odh=_23a.before(this,"destroy",function(_23f){_23d._odh.remove();_23d[_23e](_23f);});_23a.after(_23d,_23e,function(){_23d._odh.remove();});},this);return arguments;}});});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(_240,_241,lang,_242,_243){var _244={};_240.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_244[name]=_242[name];});lang.mixin(_244,{defaultDuration:_241["defaultDuration"]||200});lang.mixin(_243,_244);return _243;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(_245,lang,_246,_247,_248){var _249={};_249.getViewport=function(){return _246.getBox();};_249.placeOnScreen=_247.at;_249.placeOnScreenAroundElement=function(node,_24a,_24b,_24c){var _24d;if(lang.isArray(_24b)){_24d=_24b;}else{_24d=[];for(var key in _24b){_24d.push({aroundCorner:key,corner:_24b[key]});}}return _247.around(node,_24a,_24d,true,_24c);};_249.placeOnScreenAroundNode=_249.placeOnScreenAroundElement;_249.placeOnScreenAroundRectangle=_249.placeOnScreenAroundElement;_249.getPopupAroundAlignment=function(_24e,_24f){var _250={};_245.forEach(_24e,function(pos){var ltr=_24f;switch(pos){case "after":_250[_24f?"BR":"BL"]=_24f?"BL":"BR";break;case "before":_250[_24f?"BL":"BR"]=_24f?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_250[ltr?"BL":"BR"]=ltr?"TL":"TR";_250[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_250[ltr?"TL":"TR"]=ltr?"BL":"BR";_250[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _250;};lang.mixin(_248,_249);return _248;});},"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(_251,_252,_253,_254,lang,has,win,_255,dom,_256,_257,_258,_259,_25a,_25b,_25c,_25d,_25e,_25f,_260,_261){var dm=lang.getObject("dojox.mobile",true);return _254("dojox.mobile.View",[_25d,_25c,_25b],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_262,node){if(node){dom.byId(node).style.visibility="hidden";}},destroy:function(){_261.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_257.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_252["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_259.set(this.domNode,"webkitTransformStyle","preserve-3d");}_261.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _263=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _264,_265,_266;_251.forEach(_263,function(v,i){if(_251.indexOf(ids,v.id)!==-1){_264=v;}if(i==0){_266=v;}if(v.selected){_265=v;}v._visible=false;},this);(_264||_265||_266)._visible=true;}if(this._visible){this.show(true,true);this.onStartView();_253.publish("/dojox/mobile/startView",[this]);}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _267=this.getParent();if(!_267||!_267.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_251.forEach(this.getChildren(),function(_268){if(_268.resize){_268.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_269,dir,_26a,_26b,_26c){},onAfterTransitionIn:function(_26d,dir,_26e,_26f,_270){},onBeforeTransitionOut:function(_271,dir,_272,_273,_274){},onAfterTransitionOut:function(_275,dir,_276,_277,_278){},_clearClasses:function(node){if(!node){return;}var _279=[];_251.forEach(lang.trim(node.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_279.push(c);}},this);node.className=_279.join(" ");},_fixViewState:function(_27a){var _27b=this.domNode.parentNode.childNodes;for(var i=0;i<_27b.length;i++){var n=_27b[i];if(n.nodeType===1&&_256.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_27a);},convertToId:function(_27c){if(typeof (_27c)=="string"){return _27c.replace(/^#?([^&?]+).*/,"$1");}return _27c;},_isBookmarkable:function(_27d){return _27d.moveTo&&(_252["mblForceBookmarkable"]||_27d.moveTo.charAt(0)==="#")&&!_27d.hashchange;},performTransition:function(_27e,_27f,_280,_281,_282){var _283,_284;if(_27e&&typeof (_27e)==="object"){_283=_27e;_284=_27f;}else{_283={moveTo:_27e,transitionDir:_27f,transition:_280,context:_281,method:_282};_284=[];for(var i=5;i<arguments.length;i++){_284.push(arguments[i]);}}this._detail=_283;this._optArgs=_284;this._arguments=[_283.moveTo,_283.transitionDir,_283.transition,_283.context,_283.method];if(_283.moveTo==="#"){return;}var _285;if(_283.moveTo){_285=this.convertToId(_283.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_285=this._dummyNode;}if(this.addTransitionInfo&&typeof (_283.moveTo)=="string"&&this._isBookmarkable(_283)){this.addTransitionInfo(this.id,_283.moveTo,{transitionDir:_283.transitionDir,transition:_283.transition});}var _286=this.domNode;var _287=_286.offsetTop;_285=this.toNode=dom.byId(_285);if(!_285){return;}_285.style.visibility="hidden";_285.style.display="";this._fixViewState(_285);var _288=_25a.byNode(_285);if(_288){if(_252["mblAlwaysResizeOnTransition"]||!_288._resized){_25f.resizeAll(null,_288);_288._resized=true;}if(_283.transition&&_283.transition!="none"){_288.containerNode.style.paddingTop=_287+"px";}_288.load&&_288.load();_288.movedFrom=_286.id;}if(has("mblAndroidWorkaround")&&!_252["mblCSS3Transition"]&&_283.transition&&_283.transition!="none"){_259.set(_285,"webkitTransformStyle","preserve-3d");_259.set(_286,"webkitTransformStyle","preserve-3d");_256.add(_285,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_253.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(this._arguments)));if(_288){if(this.keepScrollPos&&!this.getParent()){var _289=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_286._scrollTop=_289;var _28a=(_283.transitionDir==1)?0:(_285._scrollTop||0);_285.style.top="0px";if(_289>1||_28a!==0){_286.style.top=_28a-_289+"px";if(_252["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_28a||1));},0);}}}else{_285.style.top="0px";}_288.onBeforeTransitionIn.apply(_288,this._arguments);_253.publish("/dojox/mobile/beforeTransitionIn",[_288].concat(lang._toArray(this._arguments)));}_285.style.display="none";_285.style.visibility="visible";_25f.fromView=this;_25f.toView=_288;this._doTransition(_286,_285,_283.transition,_283.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_28b,_28c,_28d,_28e){var rev=(_28e==-1)?" mblReverse":"";_28c.style.display="";if(!_28d||_28d=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_252["mblCSS3Transition"]){_255.when(_260,lang.hitch(this,function(_28f){var _290=_259.get(_28c,"position");_259.set(_28c,"position","absolute");_255.when(_28f(_28b,_28c,{transition:_28d,reverse:(_28e===-1)?true:false}),lang.hitch(this,function(){_259.set(_28c,"position",_290);this.invokeCallback();}));}));}else{if(_28d.indexOf("cube")!=-1){if(has("ipad")){_259.set(_28c.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_259.set(_28c.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_28d);if(has("mblAndroidWorkaround")){setTimeout(function(){_256.add(_28b,s+" mblOut"+rev);_256.add(_28c,s+" mblIn"+rev);_256.remove(_28c,"mblAndroidWorkaround");setTimeout(function(){_256.add(_28b,"mblTransition");_256.add(_28c,"mblTransition");},30);},70);}else{_256.add(_28b,s+" mblOut"+rev);_256.add(_28c,s+" mblIn"+rev);setTimeout(function(){_256.add(_28b,"mblTransition");_256.add(_28c,"mblTransition");},100);}var _291="50% 50%";var _292="50% 50%";var _293,posX,posY;if(_28d.indexOf("swirl")!=-1||_28d.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_293=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_293=-_258.position(_28b,true).y;}posY=win.global.innerHeight/2+_293;_291="50% "+posY+"px";_292="50% "+posY+"px";}else{if(_28d.indexOf("scale")!=-1){var _294=_258.position(_28b,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_294.x;if(this.keepScrollPos&&!this.getParent()){_293=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_293=-_294.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_293;_291=posX+"px "+posY+"px";_292=posX+"px "+posY+"px";}}_259.set(_28b,{webkitTransformOrigin:_291});_259.set(_28c,{webkitTransformOrigin:_292});}}},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 _295=false;if(_256.contains(this.domNode,"mblOut")){_295=true;this.domNode.style.display="none";_256.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_259.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_256.remove(li,"mblCloseContent");var p=_261.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_295){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);_253.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _296=_25a.byNode(this.toNode);if(_296){_296.onAfterTransitionIn.apply(_296,this._arguments);_253.publish("/dojox/mobile/afterTransitionIn",[_296].concat(this._arguments));_296.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_296);}}if(has("mblAndroidWorkaround")){setTimeout(lang.hitch(this,function(){if(_296){_259.set(this.toNode,"webkitTransformStyle","");}_259.set(this.domNode,"webkitTransformStyle","");}),0);}var c=this._detail.context,m=this._detail.method;if(!c&&!m){return;}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);}}},isVisible:function(_297){var _298=function(node){return _259.get(node,"display")!=="none";};if(_297){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_298(n)){return false;}}return true;}else{return _298(this.domNode);}},getShowingView:function(){var _299=this.domNode.parentNode.childNodes;for(var i=0;i<_299.length;i++){var n=_299[i];if(n.nodeType===1&&_256.contains(n,"mblView")&&n.style.display!=="none"){return _25a.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _251.map(_251.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_256.contains(n,"mblView");}),function(n){return _25a.byNode(n);});},show:function(_29a,_29b){var out=this.getShowingView();if(!_29a){if(out){out.onBeforeTransitionOut(out.id);_253.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_253.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_29b){this.domNode.style.display="";}else{_251.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_29a){if(out){out.onAfterTransitionOut(out.id);_253.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_253.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_29c,_29d,_29e,_29f){var _2a0=_29d("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_2a1){if(this._hash[_2a1.id]){throw new Error("Tried to register widget with id=="+_2a1.id+" but that id is already registered");}this._hash[_2a1.id]=_2a1;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2a2){_2a2=_2a2||_29e.global;var i=0,id;for(id in this._hash){func.call(_2a2,this._hash[id],i++,this._hash);}return this;},filter:function(_2a3,_2a4){_2a4=_2a4||_29e.global;var res=new _2a0(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2a3.call(_2a4,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _2a0(),id,_2a5;for(id in this._hash){_2a5=this._hash[id];if(_2a5.declaredClass==cls){res.add(_2a5);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2a6){return _29c.map(this.toArray(),func,_2a6);},every:function(func,_2a7){_2a7=_2a7||_29e.global;var x=0,i;for(i in this._hash){if(!func.call(_2a7,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2a8){_2a8=_2a8||_29e.global;var x=0,i;for(i in this._hash){if(func.call(_2a8,this._hash[i],x++,this._hash)){return true;}}return false;}});_29c.forEach(["forEach","filter","byClass","map","every","some"],function(func){_29f[func]=_2a0.prototype[func];});return _2a0;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _2a9={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-_2a9.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 _2a9.bounceIn(n*2)/2;}return (_2a9.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_2a9);return _2a9;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_2aa,_2ab,_2ac,dom,_2ad,_2ae,has,_2af){var _2b0=(_2af._isElementShown=function(elem){var s=_2ae.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_2ad.get(elem,"type")!="hidden");});_2af.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2ad.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2b1=elem.contentDocument;if("designMode" in _2b1&&_2b1.designMode=="on"){return true;}body=_2b1.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 _2b2=(_2af.isTabNavigable=function(elem){if(_2ad.get(elem,"disabled")){return false;}else{if(_2ad.has(elem,"tabIndex")){return _2ad.get(elem,"tabIndex")>=0;}else{return _2af.hasDefaultTabStop(elem);}}});_2af._getTabNavigable=function(root){var _2b3,last,_2b4,_2b5,_2b6,_2b7,_2b8={};function _2b9(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2ba=function(_2bb){for(var _2bc=_2bb.firstChild;_2bc;_2bc=_2bc.nextSibling){if(_2bc.nodeType!=1||(has("ie")&&_2bc.scopeName!=="HTML")||!_2b0(_2bc)){continue;}if(_2b2(_2bc)){var _2bd=+_2ad.get(_2bc,"tabIndex");if(!_2ad.has(_2bc,"tabIndex")||_2bd==0){if(!_2b3){_2b3=_2bc;}last=_2bc;}else{if(_2bd>0){if(!_2b4||_2bd<_2b5){_2b5=_2bd;_2b4=_2bc;}if(!_2b6||_2bd>=_2b7){_2b7=_2bd;_2b6=_2bc;}}}var rn=_2b9(_2bc);if(_2ad.get(_2bc,"checked")&&rn){_2b8[rn]=_2bc;}}if(_2bc.nodeName.toUpperCase()!="SELECT"){_2ba(_2bc);}}};if(_2b0(root)){_2ba(root);}function rs(node){return _2b8[_2b9(node)]||node;};return {first:rs(_2b3),last:rs(last),lowest:rs(_2b4),highest:rs(_2b6)};};_2af.getFirstInTabbingOrder=function(root,doc){var _2be=_2af._getTabNavigable(dom.byId(root,doc));return _2be.lowest?_2be.lowest:_2be.first;};_2af.getLastInTabbingOrder=function(root,doc){var _2bf=_2af._getTabNavigable(dom.byId(root,doc));return _2bf.last?_2bf.last:_2bf.highest;};return {hasDefaultTabStop:_2af.hasDefaultTabStop,isTabNavigable:_2af.isTabNavigable,_getTabNavigable:_2af._getTabNavigable,getFirstInTabbingOrder:_2af.getFirstInTabbingOrder,getLastInTabbingOrder:_2af.getLastInTabbingOrder};});},"dijit/typematic":function(){define("dijit/typematic",["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/sniff","./main"],function(_2c0,_2c1,_2c2,_2c3,lang,on,has,_2c4){var _2c5=(_2c4.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,_2c6,node,_2c7,obj,_2c8,_2c9,_2ca){if(obj!=this._obj){this.stop();this._initialDelay=_2c9||500;this._subsequentDelay=_2c8||0.9;this._minDelay=_2ca||10;this._obj=obj;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_2c6,_2c7);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,_2cb,_2cc,_2cd,_2ce,_2cf,_2d0){if(_2cb.keyCode){_2cb.charOrCode=_2cb.keyCode;_2c3.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_2cb.charCode){_2cb.charOrCode=String.fromCharCode(_2cb.charCode);_2c3.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _2d1=[on(node,_2c1._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_2cb.charOrCode&&(_2cb.ctrlKey===undefined||_2cb.ctrlKey==evt.ctrlKey)&&(_2cb.altKey===undefined||_2cb.altKey==evt.altKey)&&(_2cb.metaKey===undefined||_2cb.metaKey==(evt.metaKey||false))&&(_2cb.shiftKey===undefined||_2cb.shiftKey==evt.shiftKey)){_2c2.stop(evt);_2c5.trigger(evt,_2cc,node,_2cd,_2cb,_2ce,_2cf,_2d0);}else{if(_2c5._obj==_2cb){_2c5.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_2c5._obj==_2cb){_2c5.stop();}}))];return {remove:function(){_2c0.forEach(_2d1,function(h){h.remove();});}};},addMouseListener:function(node,_2d2,_2d3,_2d4,_2d5,_2d6){var _2d7=[on(node,"mousedown",lang.hitch(this,function(evt){evt.preventDefault();_2c5.trigger(evt,_2d2,node,_2d3,node,_2d4,_2d5,_2d6);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2c5.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2c5.stop();})),on(node,"dblclick",lang.hitch(this,function(evt){evt.preventDefault();if(has("ie")<9){_2c5.trigger(evt,_2d2,node,_2d3,node,_2d4,_2d5,_2d6);setTimeout(lang.hitch(this,_2c5.stop),50);}}))];return {remove:function(){_2c0.forEach(_2d7,function(h){h.remove();});}};},addListener:function(_2d8,_2d9,_2da,_2db,_2dc,_2dd,_2de,_2df){var _2e0=[this.addKeyListener(_2d9,_2da,_2db,_2dc,_2dd,_2de,_2df),this.addMouseListener(_2d8,_2db,_2dc,_2dd,_2de,_2df)];return {remove:function(){_2c0.forEach(_2e0,function(h){h.remove();});}};}});return _2c5;});},"dojox/mobile/app/ImageView":function(){define("dojox/mobile/app/ImageView",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(_2e1,dojo,_2e2){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",_2e2.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 _2e3=this;this.connect(this.domNode,"onmousedown",function(_2e4){if(_2e3.isAnimating()){return;}if(_2e3.panX){_2e3.handleDragEnd();}_2e3.downX=_2e4.targetTouches?_2e4.targetTouches[0].clientX:_2e4.clientX;_2e3.downY=_2e4.targetTouches?_2e4.targetTouches[0].clientY:_2e4.clientY;});this.connect(this.domNode,"onmousemove",function(_2e5){if(_2e3.isAnimating()){return;}if((!_2e3.downX&&_2e3.downX!==0)||(!_2e3.downY&&_2e3.downY!==0)){return;}if((!_2e3.disableSwipe&&_2e3.zoom==1)||(!_2e3.disableAutoZoom&&_2e3.zoom!=1)){var x=_2e5.targetTouches?_2e5.targetTouches[0].clientX:_2e5.pageX;var y=_2e5.targetTouches?_2e5.targetTouches[0].clientY:_2e5.pageY;_2e3.panX=x-_2e3.downX;_2e3.panY=y-_2e3.downY;if(_2e3.zoom==1){if(Math.abs(_2e3.panX)>10){_2e3.render();}}else{if(Math.abs(_2e3.panX)>10||Math.abs(_2e3.panY)>10){_2e3.render();}}}});this.connect(this.domNode,"onmouseout",function(_2e6){if(!_2e3.isAnimating()&&_2e3.panX){_2e3.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_2e7){_2e3.downX=_2e3.downY=null;});this.connect(this.domNode,"onclick",function(_2e8){if(_2e3.isAnimating()){return;}if(_2e3.downX==null||_2e3.downY==null){return;}var x=(_2e8.targetTouches?_2e8.targetTouches[0].clientX:_2e8.pageX);var y=(_2e8.targetTouches?_2e8.targetTouches[0].clientY:_2e8.pageY);if(Math.abs(_2e3.panX)>14||Math.abs(_2e3.panY)>14){_2e3.downX=_2e3.downY=null;_2e3.handleDragEnd();return;}_2e3.downX=_2e3.downY=null;if(!_2e3.disableAutoZoom){if(!_2e3._centerImg||!_2e3._centerImg._loaded){return;}if(_2e3.zoom!=1){_2e3.set("animatedZoom",1);return;}var pos=dojo._abs(_2e3.domNode);var _2e9=_2e3.size.w/_2e3._centerImg.width;var _2ea=_2e3.size.h/_2e3._centerImg.height;_2e3.zoomTo(((x-pos.x)/_2e9)-_2e3.panX,((y-pos.y)/_2ea)-_2e3.panY,_2e3.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;if(this.zoom==1){if(!this.panX){return;}var _2eb=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _2ec=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _2ed=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_2eb?1:0)||(this.panX<0&&_2ec?1:0));if(!_2ed){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(_2ee){if(this.zoom==1&&_2ee.duration<500){if(_2ee.direction=="ltr"){this.moveTo(1);}else{if(_2ee.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_2ef){_2ef=_2ef>0?1:-1;var _2f0;if(_2ef<1){if(this._rightImg&&this._rightImg._loaded){_2f0=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_2f0=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_2f0=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_2f0=this._leftSmallImg;}}}this._moveDir=_2ef;var _2f1=this;if(_2f0&&_2f0._loaded){this._animPanTo(this.size.w*_2ef,null,500,function(){_2f1.panX=0;_2f1.panY=0;if(_2ef<0){_2f1._switchImage("left","right");}else{_2f1._switchImage("right","left");}_2f1.render();_2f1.onChange(_2ef*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_2f2,_2f3){var _2f4="_"+_2f2+"SmallImg";var _2f5="_"+_2f2+"Img";var _2f6="_"+_2f3+"SmallImg";var _2f7="_"+_2f3+"Img";this[_2f5]=this._centerImg;this[_2f4]=this._centerSmallImg;this[_2f5]._type=_2f2;if(this[_2f4]){this[_2f4]._type=_2f2;}this._centerImg=this[_2f7];this._centerSmallImg=this[_2f6];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_2f7]=this[_2f6]=null;},_animPanTo:function(to,_2f8,_2f9,_2fa){this._animCallback=_2fa;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_2f9||500,easing:_2f8,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_2fb){},_updateAnimatedPan:function(_2fc){this.panX=_2fc;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_2fd,_2fe,zoom){this.set("zoomCenterX",_2fd);this.set("zoomCenterY",_2fe);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(_2ff,_300,_301){var img=(_300&&_300._loaded)?_300:_2ff;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _302=img._baseWidth;var _303=img._baseHeight;var _304=_302*this.zoom;var _305=_303*this.zoom;var _306=Math.min(this.size.w,_304);var _307=Math.min(this.size.h,_305);var _308=this.dispWidth=img.width*(_306/_304);var _309=this.dispHeight=img.height*(_307/_305);var _30a=this.zoomCenterX-(this.panX/this.zoom);var _30b=this.zoomCenterY-(this.panY/this.zoom);var _30c=Math.floor(Math.max(_308/2,Math.min(img.width-_308/2,_30a)));var _30d=Math.floor(Math.max(_309/2,Math.min(img.height-_309/2,_30b)));var _30e=Math.max(0,Math.round((img.width-_308)/2+(_30c-img._centerX)));var _30f=Math.max(0,Math.round((img.height-_309)/2+(_30d-img._centerY)));var _310=Math.round(Math.max(0,this.canvas.width-_306)/2);var _311=Math.round(Math.max(0,this.canvas.height-_307)/2);var _312=_306;var _313=_308;if(this.zoom==1&&_301&&this.panX){if(this.panX<0){if(_301>0){_306-=Math.abs(this.panX);_310=0;}else{if(_301<0){_306=Math.max(1,Math.abs(this.panX)-5);_310=this.size.w-_306;}}}else{if(_301>0){_306=Math.max(1,Math.abs(this.panX)-5);_310=0;}else{if(_301<0){_306-=Math.abs(this.panX);_310=this.size.w-_306;}}}_308=Math.max(1,Math.floor(_308*(_306/_312)));if(_301>0){_30e=(_30e+_313)-(_308);}_30e=Math.floor(_30e);}try{cxt.drawImage(img,Math.max(0,_30e),_30f,Math.min(_313,_308),_309,_310,_311,Math.min(_312,_306),_307);}catch(e){}},_setZoomAttr:function(_314){this.zoom=Math.min(this.maxZoom,Math.max(1,_314));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(_315){if(_315!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_315=Math.min(this._centerImg.width,_315);}this.zoomCenterX=Math.max(0,Math.round(_315));}},_setZoomCenterYAttr:function(_316){if(_316!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_316=Math.min(this._centerImg.height,_316);}this.zoomCenterY=Math.max(0,Math.round(_316));}},_setZoomCenterAttr:function(_317){if(_317.x!=this.zoomCenterX||_317.y!=this.zoomCenterY){this.set("zoomCenterX",_317.x);this.set("zoomCenterY",_317.y);this.render();}},_setAnimatedZoomAttr:function(_318){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_318],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_319){this._setZoomAttr(_319);},_setCenterUrlAttr:function(_31a){this._setImage("center",_31a);},_setLeftUrlAttr:function(_31b){this._setImage("left",_31b);},_setRightUrlAttr:function(_31c){this._setImage("right",_31c);},_setImage:function(name,_31d){var _31e=null;var _31f=null;if(dojo.isString(_31d)){_31f=_31d;}else{_31f=_31d.large;_31e=_31d.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_31f){return;}var _320=this["_"+name+"Img"]=new Image();_320._type=name;_320._loaded=false;_320._src=_31f;_320._conn=dojo.connect(_320,"onload",this.handleLoad);if(_31e){var _321=this["_"+name+"SmallImg"]=new Image();_321._type=name;_321._loaded=false;_321._conn=dojo.connect(_321,"onload",this.handleLoad);_321._isSmall=true;_321._src=_31e;_321.src=_31e;}_320.src=_31f;},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 _322=img.height;var _323=img.width;if(_323/this.size.w<_322/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_323/(_322/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_322/(_323/this.size.w);}img._centerX=_323/2;img._centerY=_322/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_324){}});});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../main"],function(_325,dom,lang,_326,win,_327,_328){var _329={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _328.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_327.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(_32a){var _32b=win.doc,mark=_32a.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(_32b.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_32b.body.createControlRange();_325.forEach(mark,function(n){rg.addElement(n);});}else{rg=_32b.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_32c){var node=!_327.curNode||(menu&&dom.isDescendant(_327.curNode,menu.domNode))?_328._prevFocus:_327.curNode;return {node:node,bookmark:node&&(node==_327.curNode)&&win.withGlobal(_32c||win.global,_328.getBookmark),openedForWindow:_32c};},_activeStack:[],registerIframe:function(_32d){return _327.registerIframe(_32d);},unregisterIframe:function(_32e){_32e&&_32e.remove();},registerWin:function(_32f,_330){return _327.registerWin(_32f,_330);},unregisterWin:function(_331){_331&&_331.remove();}};_327.focus=function(_332){if(!_332){return;}var node="node" in _332?_332.node:_332,_333=_332.bookmark,_334=_332.openedForWindow,_335=_333?_333.isCollapsed:false;if(node){var _336=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_336&&_336.focus){try{_336.focus();}catch(e){}}_327._onFocusNode(node);}if(_333&&win.withGlobal(_334||win.global,_328.isCollapsed)&&!_335){if(_334){_334.focus();}try{win.withGlobal(_334||win.global,_328.moveToBookmark,null,[_333]);}catch(e2){}}};_327.watch("curNode",function(name,_337,_338){_328._curFocus=_338;_328._prevFocus=_337;if(_338){_326.publish("focusNode",_338);}});_327.watch("activeStack",function(name,_339,_33a){_328._activeStack=_33a;});_327.on("widget-blur",function(_33b,by){_326.publish("widgetBlur",_33b,by);});_327.on("widget-focus",function(_33c,by){_326.publish("widgetFocus",_33c,by);});lang.mixin(_328,_329);return _328;});},"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(_33d,_33e,lang,_33f,_340,_341,_342,_343,_344,_345,_346){var _347=_33e("dojox.mobile.ListItem",_345,{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||_340.create(this.tag);this.inherited(arguments);if(this.selected){_33f.add(this.domNode,this._selClass);}if(this.header){_33f.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_340.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 _348=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_348&&_348.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_33f.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_33f.add(this.domNode,"mblVariableHeight");this.defer(lang.hitch(this,"layoutVariableHeight"),0);}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this.icon,deleteIcon:this.deleteIcon,rightIcon:this.rightIcon,rightIcon2:this.rightIcon2});}if(_348&&_348.select){this.set("checked",this.checked);}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _349;_33d.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _34a=n.getAttribute("layout")||(_342.byNode(n)||{}).layout;if(_34a){_33f.add(n,"mblListItemLayout"+_34a.charAt(0).toUpperCase()+_34a.substring(1));this._layoutChildren.push(n);if(_34a==="center"){_349=n;}}},this);if(_349){this.domNode.insertBefore(_349,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")||(_342.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){_33f.add(n,"mblListItemLabelSelected");setTimeout(function(){_33f.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _34b=this.getParent();if(_34b.select){if(_34b.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_34b.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;_33d.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _34c=this.domNode;var f=function(){var t=Math.round((_34c.offsetHeight-n.offsetHeight)/2)-_341.get(_34c,"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 _34d=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_34d&&_34d.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=_33d.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){return;}this._set(type,icon);this[type+"Node"]=_344.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);_33f.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=_340.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(_34e){if(!this._isOnLine){return;}var _34f=this.getParent();if(_34f&&_34f.select==="single"&&_34e){_33d.forEach(_34f.getChildren(),function(_350){_350!==this&&_350.checked&&_350.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_33f.toggle(this.domNode,"mblListItemChecked",_34e);_33f.toggle(this.domNode,"mblListItemUnchecked",!_34e);_33f.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_34e)?"absolute":"";if(_34f&&this.checked!==_34e){_34f.onCheckStateChanged(this,_34e);}this._set("checked",_34e);},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_340.create("div",{className:"mblListItemIcon"});prog=this._prog=new _346({size:25,center:false});_33f.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_340.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(_351){this.inherited(arguments);_33f.toggle(this.domNode,this._selClass,_351);}});_347.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_343,_347.ChildWidgetProperties);return _347;});},"dojox/mobile/app/StageController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_352,dojo,_353){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(_354,_355){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _356=new _353.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_356);var _357=this;dojo.forEach(this.scenes,this.setZIndex);_356.stageController=this;_356.init(_354,_355).addCallback(function(){if(_357.scenes.length==1){_356.domNode.style.visibility="visible";_357.scenes[_357.scenes.length-1].assistant.activate(_355);_357._opInProgress=false;}else{_357.scenes[_357.scenes.length-2].performTransition(_357.scenes[_357.scenes.length-1].domNode,1,_357.effect,null,function(){_357.scenes[_357.scenes.length-1].assistant.activate(_355);_357._opInProgress=false;});}});},setZIndex:function(_358,idx){dojo.style(_358.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _359=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_359.scenes.length-2].assistant.activate(data);this.scenes[_359.scenes.length-1].performTransition(_359.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_359._destroyScene(_359.scenes[_359.scenes.length-1]);_359.scenes.splice(_359.scenes.length-1,1);_359._opInProgress=false;});}else{}},popScenesTo:function(_35a,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_35a){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_35b){_35b.assistant.deactivate();_35b.assistant.destroy();_35b.destroyRecursive();}});});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","./main"],function(_35c,_35d,_35e,_35f,win,_360,_361){function _362(node,_363,_364,_365){var view=_360.getBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body(node.ownerDocument).appendChild(node);}var best=null;_35c.some(_363,function(_366){var _367=_366.corner;var pos=_366.pos;var _368=0;var _369={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_367.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_367.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_364){var res=_364(node,_366.aroundCorner,_367,_369,_365);_368=typeof res=="undefined"?0:res;}var _36a=node.style;var _36b=_36a.display;var _36c=_36a.visibility;if(_36a.display=="none"){_36a.visibility="hidden";_36a.display="";}var bb=_35d.position(node);_36a.display=_36b;_36a.visibility=_36c;var _36d={"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)}[_367.charAt(1)],_36e={"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)}[_367.charAt(0)],_36f=Math.max(view.l,_36d),_370=Math.max(view.t,_36e),endX=Math.min(view.l+view.w,_36d+bb.w),endY=Math.min(view.t+view.h,_36e+bb.h),_371=endX-_36f,_372=endY-_370;_368+=(bb.w-_371)+(bb.h-_372);if(best==null||_368<best.overflow){best={corner:_367,aroundCorner:_366.aroundCorner,x:_36f,y:_370,w:_371,h:_372,overflow:_368,spaceAvailable:_369};}return !_368;});if(best.overflow&&_364){_364(node,best.aroundCorner,best.corner,best.spaceAvailable,_365);}var l=_35d.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 _373={at:function(node,pos,_374,_375){var _376=_35c.map(_374,function(_377){var c={corner:_377,pos:{x:pos.x,y:pos.y}};if(_375){c.pos.x+=_377.charAt(1)=="L"?_375.x:-_375.x;c.pos.y+=_377.charAt(0)=="T"?_375.y:-_375.y;}return c;});return _362(node,_376);},around:function(node,_378,_379,_37a,_37b){var _37c=(typeof _378=="string"||"offsetWidth" in _378)?_35d.position(_378,true):_378;if(_378.parentNode){var _37d=_35e.getComputedStyle(_378).position=="absolute";var _37e=_378.parentNode;while(_37e&&_37e.nodeType==1&&_37e.nodeName!="BODY"){var _37f=_35d.position(_37e,true),pcs=_35e.getComputedStyle(_37e);if(/relative|absolute/.test(pcs.position)){_37d=false;}if(!_37d&&/hidden|auto|scroll/.test(pcs.overflow)){var _380=Math.min(_37c.y+_37c.h,_37f.y+_37f.h);var _381=Math.min(_37c.x+_37c.w,_37f.x+_37f.w);_37c.x=Math.max(_37c.x,_37f.x);_37c.y=Math.max(_37c.y,_37f.y);_37c.h=_380-_37c.y;_37c.w=_381-_37c.x;}if(pcs.position=="absolute"){_37d=true;}_37e=_37e.parentNode;}}var x=_37c.x,y=_37c.y,_382="w" in _37c?_37c.w:(_37c.w=_37c.width),_383="h" in _37c?_37c.h:(_35f.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+y+", height:"+_37c.height+", width:"+_382+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+_37c.height+", w:"+_382+" }","","2.0"),_37c.h=_37c.height);var _384=[];function push(_385,_386){_384.push({aroundCorner:_385,corner:_386,pos:{x:{"L":x,"R":x+_382,"M":x+(_382>>1)}[_385.charAt(1)],y:{"T":y,"B":y+_383,"M":y+(_383>>1)}[_385.charAt(0)]}});};_35c.forEach(_379,function(pos){var ltr=_37a;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 _387=_362(node,_384,_37b,{w:_382,h:_383});_387.aroundNodePos=_37c;return _387;}};return _361.place=_373;});},"dojox/mobile/app/_event":function(){define("dojox/mobile/app/_event",["dijit","dojo","dojox"],function(_388,dojo,_389){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_389.mobile.app,{eventMap:{},connectFlick:function(_38a,_38b,_38c){var _38d;var _38e;var _38f=false;var _390;var _391;var _392;var _393;var _394;var time;var _395=dojo.connect("onmousedown",_38a,function(_396){_38f=false;_38d=_396.targetTouches?_396.targetTouches[0].clientX:_396.clientX;_38e=_396.targetTouches?_396.targetTouches[0].clientY:_396.clientY;time=(new Date()).getTime();_392=dojo.connect(_38a,"onmousemove",_397);_393=dojo.connect(_38a,"onmouseup",onUp);});var _397=function(_398){dojo.stopEvent(_398);_390=_398.targetTouches?_398.targetTouches[0].clientX:_398.clientX;_391=_398.targetTouches?_398.targetTouches[0].clientY:_398.clientY;if(Math.abs(Math.abs(_390)-Math.abs(_38d))>15){_38f=true;_394=(_390>_38d)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_391)-Math.abs(_38e))>15){_38f=true;_394=(_391>_38e)?"ttb":"btt";}}};var onUp=function(_399){dojo.stopEvent(_399);_392&&dojo.disconnect(_392);_393&&dojo.disconnect(_393);if(_38f){var _39a={target:_38a,direction:_394,duration:(new Date()).getTime()-time};if(_38b&&_38c){_38b[_38c](_39a);}else{_38c(_39a);}}};}});_389.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_389.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_389.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_389.mobile.app.isIPhone||_389.mobile.app.isAndroid){_389.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_39b,_39c,_39d,_39e){_39b=_389.mobile.app.eventMap[_39b]||_39b;if(_39b=="flick"||_39b=="onflick"){if(dojo.global["Mojo"]){_39b=Mojo.Event.flick;}else{return _389.mobile.app.connectFlick(obj,_39c,_39d);}}return dojo._oldConnect(obj,_39b,_39c,_39d,_39e);};});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_39f,View,_3a0,_3a1,_3a2,_3a3,_3a4,_3a5,_3a6,_3a7,_3a8,_3a9){return _39f;});},"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(_3aa,_3ab,_3ac,_3ad,_3ae,_3af,_3b0){return _3ab("dojox.mobile.Button",[_3ae,_3b0,_3af],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _3b1=this.focusNode||this.domNode;var _3b2=(this.baseClass+" "+this["class"]).split(" ");_3b2=_3aa.map(_3b2,function(c){return c+"Selected";});_3ac.add(_3b1,_3b2);setTimeout(function(){_3ac.remove(_3b1,_3b2);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_3ad.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(_3b3){this.inherited(arguments,[this._cv?this._cv(_3b3):_3b3]);}});});},"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(_3b4,_3b5,_3b6,_3b7,win,_3b8,_3b9,_3ba,_3bb,_3bc,_3bd,has){return _3b6("dojox.mobile.Switch",[_3bd,_3bc],{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:_3b9.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;}_3b8.add(this.domNode,this.shape);var _3be=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\""+_3be+"></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,_3bb.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_3bf,anim){var on=(_3bf==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_3b8.add(this.domNode,"mblSwitchAnimation");}_3b8.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_3b8.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _3c0=this;setTimeout(function(){_3c0.left.style.display=on?"":"none";_3c0.right.style.display=!on?"":"none";_3b8.remove(_3c0.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=_3ba.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _3c1=rDef.split(" ");var rx=parseFloat(_3c1[0]),ry=(_3c1.length==1)?rx:parseFloat(_3c1[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,_3bb.move,"onTouchMove"),this.connect(this.inner,_3bb.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_3b7.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){_3b4.forEach(this._conn,_3b5.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _3c2=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_3c2,true);if(_3c2!=this.value){this.value=this.input.value=_3c2;this.onStateChanged(_3c2);}},onStateChanged:function(_3c3){},_setValueAttr:function(_3c4){this._changeState(_3c4,false);if(this.value!=_3c4){this.onStateChanged(_3c4);}this.value=this.input.value=_3c4;},_setLeftLabelAttr:function(_3c5){this.leftLabel=_3c5;this.left.firstChild.innerHTML=this._cv?this._cv(_3c5):_3c5;},_setRightLabelAttr:function(_3c6){this.rightLabel=_3c6;this.right.firstChild.innerHTML=this._cv?this._cv(_3c6):_3c6;},reset:function(){this.set("value",this._initialValue);}});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_3c7,_3c8,dom,_3c9,_3ca,_3cb,lang,on,_3cc,has,_3cd,_3ce,win,_3cf,a11y,_3d0,_3d1){var _3d2=_3c8([_3cd,_3cb],{curNode:null,activeStack:[],constructor:function(){var _3d3=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);}});_3c7.before(_3ca,"empty",_3d3);_3c7.before(_3ca,"destroy",_3d3);},registerIframe:function(_3d4){return this.registerWin(_3d4.contentWindow,_3d4);},registerWin:function(_3d5,_3d6){var _3d7=this;var _3d8=function(evt){_3d7._justMouseDowned=true;setTimeout(function(){_3d7._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_3d7._onTouchNode(_3d6||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_3d5.document.documentElement:_3d5.document;if(doc){if(has("ie")){_3d5.document.body.attachEvent("onmousedown",_3d8);var _3d9=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_3d7._onFocusNode(_3d6||evt.srcElement);}else{_3d7._onTouchNode(_3d6||evt.srcElement);}};doc.attachEvent("onfocusin",_3d9);var _3da=function(evt){_3d7._onBlurNode(_3d6||evt.srcElement);};doc.attachEvent("onfocusout",_3da);return {remove:function(){_3d5.document.detachEvent("onmousedown",_3d8);doc.detachEvent("onfocusin",_3d9);doc.detachEvent("onfocusout",_3da);doc=null;}};}else{doc.body.addEventListener("mousedown",_3d8,true);doc.body.addEventListener("touchstart",_3d8,true);var _3db=function(evt){_3d7._onFocusNode(_3d6||evt.target);};doc.addEventListener("focus",_3db,true);var _3dc=function(evt){_3d7._onBlurNode(_3d6||evt.target);};doc.addEventListener("blur",_3dc,true);return {remove:function(){doc.body.removeEventListener("mousedown",_3d8,true);doc.body.removeEventListener("touchstart",_3d8,true);doc.removeEventListener("focus",_3db,true);doc.removeEventListener("blur",_3dc,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 _3dd=[];try{while(node){var _3de=_3c9.get(node,"dijitPopupParent");if(_3de){node=_3d0.byId(_3de).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_3cf.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_3df=id&&_3d0.byId(id);if(_3df&&!(by=="mouse"&&_3df.get("disabled"))){_3dd.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_3dd,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(_3e0,by){var _3e1=this.activeStack;this.set("activeStack",_3e0);for(var _3e2=0;_3e2<Math.min(_3e1.length,_3e0.length);_3e2++){if(_3e1[_3e2]!=_3e0[_3e2]){break;}}var _3e3;for(var i=_3e1.length-1;i>=_3e2;i--){_3e3=_3d0.byId(_3e1[i]);if(_3e3){_3e3._hasBeenBlurred=true;_3e3.set("focused",false);if(_3e3._focusManager==this){_3e3._onBlur(by);}this.emit("widget-blur",_3e3,by);}}for(i=_3e2;i<_3e0.length;i++){_3e3=_3d0.byId(_3e0[i]);if(_3e3){_3e3.set("focused",true);if(_3e3._focusManager==this){_3e3._onFocus(by);}this.emit("widget-focus",_3e3,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _3e4=new _3d2();_3cc(function(){var _3e5=_3e4.registerWin(_3cf.get(win.doc));if(has("ie")){_3ce.addOnWindowUnload(function(){if(_3e5){_3e5.remove();_3e5=null;}});}});_3d1.focus=function(node){_3e4.focus(node);};for(var attr in _3e4){if(!/^_/.test(attr)){_3d1.focus[attr]=typeof _3e4[attr]=="function"?lang.hitch(_3e4,attr):_3e4[attr];}}_3e4.watch(function(attr,_3e6,_3e7){_3d1.focus[attr]=_3e7;});return _3e4;});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_3e8,_3e9,_3ea,_3eb){return _3e9("dojox.mobile.Pane",[_3eb,_3ea],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_3e8.forEach(this.getChildren(),function(_3ec){if(_3ec.resize){_3ec.resize();}});}});});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(_3ed,_3ee,_3ef){return _3ed("dojox.mobile.RoundRect",_3ef,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_3ee.add(this.domNode,"mblShadow");}}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_3f0,dom,_3f1,_3f2){return _3f0("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_3f1.stop(e);return false;}var _3f3=this.onClick(e)===false;if(!_3f3&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _3f4=_3f2.byNode(node);if(_3f4&&typeof _3f4._onSubmit=="function"){_3f4._onSubmit(e);_3f3=true;break;}}}if(_3f3){e.preventDefault();}return !_3f3;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_3f5){this._set("label",_3f5);(this.containerNode||this.focusNode).innerHTML=_3f5;}});});},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_3f6,win,_3f7,_3f8,_3f9){return _3f6("dojox.mobile.RoundRectCategory",[_3f9,_3f8],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _3fa=this.domNode=this.containerNode=this.srcNodeRef||_3f7.create(this.tag);this.inherited(arguments);if(!this.label&&_3fa.childNodes.length===1&&_3fa.firstChild.nodeType===3){this.label=_3fa.firstChild.nodeValue;}},_setLabelAttr:function(_3fb){this.label=_3fb;this.domNode.innerHTML=this._cv?this._cv(_3fb):_3fb;}});});},"dojox/mobile/app/TextBox":function(){define("dojox/mobile/app/TextBox",["dijit","dojo","dojox","dojo/require!dojox/mobile/TextBox"],function(_3fc,dojo,_3fd){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");_3fd.mobile.app.TextBox=_3fd.mobile.TextBox;});},"dojox/mobile/app/SceneAssistant":function(){define("dojox/mobile/app/SceneAssistant",["dijit","dojo","dojox"],function(_3fe,dojo,_3ff){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(_400){},deactivate:function(){},destroy:function(){var _401=dojo.query("> [widgetId]",this.containerNode).map(_3fe.byNode);dojo.forEach(_401,function(_402){_402.destroyRecursive();});this.disconnect();},connect:function(obj,_403,_404){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_403,_404));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_405,win,_406){var _407=_406._createWrapper;_406._createWrapper=function(_408){if(!_408.declaredClass){_408={_popupWrapper:(_408.parentNode&&_405.contains(_408.parentNode,"dijitPopup"))?_408.parentNode:null,domNode:_408,destroy:function(){},ownerDocument:_408.ownerDocument,ownerDocumentBody:win.body(_408.ownerDocument)};}return _407.call(this,_408);};var _409=_406.open;_406.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 _409.call(this,args);};return _406;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_40a,_40b){if(_40b["mblCSS3Transition"]){var _40c=new _40a();require([_40b["mblCSS3Transition"]],function(_40d){_40c.resolve(_40d);});return _40c;}return null;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(_40e,lang,_40f){var _410={hasWaiRole:function(elem,role){var _411=this.getWaiRole(elem);return role?(_411.indexOf(role)>-1):(_411.length>0);},getWaiRole:function(elem){return lang.trim((_40e.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_40e.set(elem,"role",role);},removeWaiRole:function(elem,role){var _412=_40e.get(elem,"role");if(!_412){return;}if(role){var t=lang.trim((" "+_412+" ").replace(" "+role+" "," "));_40e.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_413){return elem.hasAttribute?elem.hasAttribute("aria-"+_413):!!elem.getAttribute("aria-"+_413);},getWaiState:function(elem,_414){return elem.getAttribute("aria-"+_414)||"";},setWaiState:function(elem,_415,_416){elem.setAttribute("aria-"+_415,_416);},removeWaiState:function(elem,_417){elem.removeAttribute("aria-"+_417);}};lang.mixin(_40f,_410);return _40f;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_418,dom,geom,_419){var _41a={getBox:function(doc){doc=doc||_418.doc;var _41b=(doc.compatMode=="BackCompat")?_418.body(doc):doc.documentElement,_41c=geom.docScroll(doc),w,h;if(has("touch")){var _41d=_41a.get(doc);w=_41d.innerWidth||_41b.clientWidth;h=_41d.innerHeight||_41b.clientHeight;}else{w=_41b.clientWidth;h=_41b.clientHeight;}return {l:_41c.x,t:_41c.y,w:w,h:h};},get:function(doc){if(has("ie")&&_41a!==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||_418.doc,body=_418.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 _41e=doc.compatMode=="BackCompat",_41f=(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):(_41e?body:html),_420=isWK?body:_41f,_421=_41f.clientWidth,_422=_41f.clientHeight,rtl=!geom.isBodyLtr(doc),_423=pos||geom.position(node),el=node.parentNode,_424=function(el){return ((isIE<=6||(isIE&&_41e))?false:(_419.get(el,"position").toLowerCase()=="fixed"));};if(_424(node)){return;}while(el){if(el==body){el=_420;}var _425=geom.position(el),_426=_424(el);if(el==_420){_425.w=_421;_425.h=_422;if(_420==html&&isIE&&rtl){_425.x+=_420.offsetWidth-_425.w;}if(_425.x<0||!isIE){_425.x=0;}if(_425.y<0||!isIE){_425.y=0;}}else{var pb=geom.getPadBorderExtents(el);_425.w-=pb.w;_425.h-=pb.h;_425.x+=pb.l;_425.y+=pb.t;var _427=el.clientWidth,_428=_425.w-_427;if(_427>0&&_428>0){_425.w=_427;_425.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_428:0;}_427=el.clientHeight;_428=_425.h-_427;if(_427>0&&_428>0){_425.h=_427;}}if(_426){if(_425.y<0){_425.h+=_425.y;_425.y=0;}if(_425.x<0){_425.w+=_425.x;_425.x=0;}if(_425.y+_425.h>_422){_425.h=_422-_425.y;}if(_425.x+_425.w>_421){_425.w=_421-_425.x;}}var l=_423.x-_425.x,t=_423.y-Math.max(_425.y,0),r=l+_423.w-_425.w,bot=t+_423.h-_425.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_41e)||isIE>=9)){s=-s;}_423.x+=el.scrollLeft;el.scrollLeft+=s;_423.x-=el.scrollLeft;}if(bot*t>0){_423.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_423.y-=el.scrollTop;}el=(el!=_420)&&!_426&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_41a);return _41a;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_429,_42a){return _429("dojox.mobile.EdgeToEdgeList",_42a,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/keys","dojo/_base/lang","dojo/on","dojo/sniff","./place","./BackgroundIframe","./main"],function(_42b,_42c,_42d,_42e,dom,_42f,_430,_431,_432,_433,keys,lang,on,has,_434,_435,_436){function _437(){if(this._popupWrapper){_430.destroy(this._popupWrapper);delete this._popupWrapper;}};var _438=_42e(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_439){var _43a=_439._popupWrapper,node=_439.domNode;if(!_43a){_43a=_430.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},_439.ownerDocumentBody);_43a.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_439._popupWrapper=_43a;_42c.after(_439,"destroy",_437,true);}return _43a;},moveOffScreen:function(_43b){var _43c=this._createWrapper(_43b);_432.set(_43c,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_43d){var _43e=this._createWrapper(_43d);_432.set(_43e,"display","none");},getTopPopup:function(){var _43f=this._stack;for(var pi=_43f.length-1;pi>0&&_43f[pi].parent===_43f[pi-1].widget;pi--){}return _43f[pi];},open:function(args){var _440=this._stack,_441=args.popup,_442=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_431.isBodyLtr(_441.ownerDocument),_443=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_440.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_440[_440.length-1].widget.domNode))){this.close(_440[_440.length-1].widget);}var _444=this._createWrapper(_441);_42f.set(_444,{id:id,style:{zIndex:this._beginZIndex+_440.length},"class":"dijitPopup "+(_441.baseClass||_441["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("ie")||has("mozilla")){if(!_441.bgIframe){_441.bgIframe=new _435(_444);}}var best=_443?_434.around(_444,_443,_442,ltr,_441.orient?lang.hitch(_441,"orient"):null):_434.at(_444,args,_442=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_444.style.display="";_444.style.visibility="visible";_441.domNode.style.visibility="visible";var _445=[];_445.push(on(_444,_42d._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_433.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_433.stop(evt);var _446=this.getTopPopup();if(_446&&_446.onCancel){_446.onCancel();}}}})));if(_441.onCancel&&args.onCancel){_445.push(_441.on("cancel",args.onCancel));}_445.push(_441.on(_441.onExecute?"execute":"change",lang.hitch(this,function(){var _447=this.getTopPopup();if(_447&&_447.onExecute){_447.onExecute();}})));_440.push({widget:_441,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_445});if(_441.onOpen){_441.onOpen(best);}return best;},close:function(_448){var _449=this._stack;while((_448&&_42b.some(_449,function(elem){return elem.widget==_448;}))||(!_448&&_449.length)){var top=_449.pop(),_44a=top.widget,_44b=top.onClose;if(_44a.onClose){_44a.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_44a&&_44a.domNode){this.hide(_44a);}if(_44b){_44b();}}}});return (_436.popup=new _438());});},"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("dijit/_base/window",["dojo/window","../main"],function(_44c,_44d){_44d.getDocumentWindow=function(doc){return _44c.get(doc);};});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_44e,_44f,_450,_451,_452,_453,dom,_454,_455,_456,_457,_458,has,_459,lang,on,_45a,_45b,_45c,win,_45d,_45e){has.add("dijit-legacy-requires",!_459.isAsync);if(has("dijit-legacy-requires")){_45a(0,function(){var _45f=["dijit/_base/manager"];_44e(_45f);});}var _460={};function _461(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _462(attr){return function(val){_454[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _453("dijit._WidgetBase",[_45b,_45d],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_462("lang"),dir:"",_setDirAttr:_462("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:_451.blankGif||_44e.toUrl("dojo/resources/blank.gif"),postscript:function(_463,_464){this.create(_463,_464);},create:function(_465,_466){this.srcNodeRef=dom.byId(_466);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_465){this.params=_465;lang.mixin(this,_465);}this.postMixInProperties();if(!this.id){this.id=_45e.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);_45e.add(this);this.buildRendering();var _467;if(this.domNode){this._applyAttributes();var _468=this.srcNodeRef;if(_468&&_468.parentNode&&this.domNode!==_468){_468.parentNode.replaceChild(this.domNode,_468);_467=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_467){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 _469=ctor.prototype;for(var _46a in _469){if(_46a in this.attributeMap){continue;}var _46b="_set"+_46a.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_46b in _469){list.push(_46a);}}}_44f.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _46c in this.params){this.set(_46c,this.params[_46c]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _46d=this.baseClass.split(" ");if(!this.isLeftToRight()){_46d=_46d.concat(_44f.map(_46d,function(name){return name+"Rtl";}));}_455.add(this.domNode,_46d);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_44f.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_46e){this._beingDestroyed=true;this.destroyDescendants(_46e);this.destroy(_46e);},destroy:function(_46f){this._beingDestroyed=true;this.uninitialize();function _470(w){if(w.destroyRecursive){w.destroyRecursive(_46f);}else{if(w.destroy){w.destroy(_46f);}}};_44f.forEach(this._connects,lang.hitch(this,"disconnect"));_44f.forEach(this._supportingWidgets,_470);if(this.domNode){_44f.forEach(_45e.findWidgets(this.domNode,this.containerNode),_470);}this.destroyRendering(_46f);_45e.remove(this.id);this._destroyed=true;},destroyRendering:function(_471){if(this.bgIframe){this.bgIframe.destroy(_471);delete this.bgIframe;}if(this.domNode){if(_471){_454.remove(this.domNode,"widgetId");}else{_456.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_471){_456.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_472){_44f.forEach(this.getChildren(),function(_473){if(_473.destroyRecursive){_473.destroyRecursive(_472);}});},uninitialize:function(){return false;},_setStyleAttr:function(_474){var _475=this.domNode;if(lang.isObject(_474)){_458.set(_475,_474);}else{if(_475.style.cssText){_475.style.cssText+="; "+_474;}else{_475.style.cssText=_474;}}this._set("style",_474);},_attrToDom:function(attr,_476,_477){_477=arguments.length>=3?_477:this.attributeMap[attr];_44f.forEach(lang.isArray(_477)?_477:[_477],function(_478){var _479=this[_478.node||_478||"domNode"];var type=_478.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_476)){_476=lang.hitch(this,_476);}var _47a=_478.attribute?_478.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_479.tagName){_454.set(_479,_47a,_476);}else{_479.set(_47a,_476);}break;case "innerText":_479.innerHTML="";_479.appendChild(this.ownerDocument.createTextNode(_476));break;case "innerHTML":_479.innerHTML=_476;break;case "class":_455.replace(_479,_476,this[attr]);break;}},this);},get:function(name){var _47b=this._getAttrNames(name);return this[_47b.g]?this[_47b.g]():this[name];},set:function(name,_47c){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _47d=this._getAttrNames(name),_47e=this[_47d.s];if(lang.isFunction(_47e)){var _47f=_47e.apply(this,Array.prototype.slice.call(arguments,1));}else{var _480=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_480].tagName,_481=_460[tag]||(_460[tag]=_461(this[_480])),map=name in this.attributeMap?this.attributeMap[name]:_47d.s in this?this[_47d.s]:((_47d.l in _481&&typeof _47c!="function")||/^aria-|^data-|^role$/.test(name))?_480:null;if(map!=null){this._attrToDom(name,_47c,map);}this._set(name,_47c);}return _47f||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,_482){var _483=this[name];this[name]=_482;if(this._created&&_482!==_483){if(this._watchCallbacks){this._watchCallbacks(name,_483,_482);}this.emit("attrmodified-"+name,{detail:{prevValue:_483,newValue:_482}});}},emit:function(type,_484,_485){_484=_484||{};if(_484.bubbles===undefined){_484.bubbles=true;}if(_484.cancelable===undefined){_484.cancelable=true;}if(!_484.detail){_484.detail={};}_484.detail.widget=this;var ret,_486=this["on"+type];if(_486){ret=_486.apply(this,_485?_485:[_484]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_484);}return ret;},on:function(type,func){var _487=this._onMap(type);if(_487){return _450.after(this,_487,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?_45e.findWidgets(this.containerNode):[];},getParent:function(){return _45e.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_488,_489){return this.own(_452.connect(obj,_488,this,_489))[0];},disconnect:function(_48a){_48a.remove();},subscribe:function(t,_48b){return this.own(_45c.subscribe(t,lang.hitch(this,_48b)))[0];},unsubscribe:function(_48c){_48c.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_457.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_458.get(this.domNode,"display")!="none");},placeAt:function(_48d,_48e){var _48f=!_48d.tagName&&_45e.byId(_48d);if(_48f&&_48f.addChild&&(!_48e||typeof _48e==="number")){_48f.addChild(this,_48e);}else{var ref=_48f?(_48f.containerNode&&!/after|before|replace/.test(_48e||"")?_48f.containerNode:_48f.domNode):dom.byId(_48d,this.ownerDocument);_456.place(this.domNode,ref,_48e);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_490){return _490;},applyTextDir:function(){},defer:function(fcn,_491){var _492=setTimeout(lang.hitch(this,function(){_492=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_491||0);return {remove:function(){if(_492){clearTimeout(_492);_492=null;}return null;}};}});});},"dojox/mobile/app/AlertDialog":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_493,dojo,_494){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_493._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 _495=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_495);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_495);var _496=dojo.create("div",{"class":"alertBtns"},_495);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _497=this;dojo.forEach(this.buttons,function(_498){var btn=new _494.mobile.Button({btnClass:_498["class"]||"",label:_498.label});btn._dialogValue=_498.value;dojo.place(btn.domNode,_496);_497.connect(btn,"onClick",_497._handleSelect);});var _499=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_499.w+"px",height:_499.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_497.onChoose&&_497.onChoose();_497.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_49a){var node;if(_49a&&_49a.target){node=_49a.target;while(!_493.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_493.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 _49b=this.controller.getWindowSize().h;var high=_49b-h;var low=_49b;var _49c=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _49d=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_49c,_49d]);var _49e=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_49e.domNode.style.display="none";dojo.destroy(_49e.domNode);dojo.destroy(_49e.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});}}});define("dojox/mobile/app",["./app/_base"],function(_49f){return _49f;}); +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);if(!this.label&&this.arrow){this.tableNode.className="mblToolBarButtonText";}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||this.arrow);},_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("dijit/hccss",["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("dijit/_Contained",["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("dijit/form/_TextBoxMixin",["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("dijit/_Container",["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(){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){throw e;}_df._initAssistant();});}});},_initAssistant:function(){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);_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{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(){});};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("dijit/_base/scroll",["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("dijit/_base",["./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")>=0)&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/_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("dijit/form/_FormWidgetMixin",["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("dijit/BackgroundIframe",["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){has.add("bgIframe",has("ie")||has("mozilla"));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("bgIframe")){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("dijit/form/_FormValueMixin",["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;var _16a,_16b,_16c;if(ios6){_16b=win.doc.documentElement.clientWidth;_16c=win.doc.documentElement.clientHeight;}else{f=function(evt){var _16d=_15d.connect(null,"onresize",null,function(e){_15d.disconnect(_16d);_169(e);});};_16a=dm.getScreenSize();}_15d.connect(null,"onresize",null,function(e){if(ios6){var _16e=win.doc.documentElement.clientWidth,_16f=win.doc.documentElement.clientHeight;if(_16e==_16b&&_16f!=_16c){_169(e);}_16b=_16e;_16c=_16f;}else{var _170=dm.getScreenSize();if(_170.w==_16a.w&&Math.abs(_170.h-_16a.h)>=100){_169(e);}_16a=_170;}});}_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(_171,_172,_173,_174,lang,win,_175,_176,_177,has){var dm=lang.getObject("dojox.mobile",true);var _178=function(){this.setupSpriteIcon=function(_179,_17a){if(_179&&_17a){var arr=_171.map(_17a.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];_177.set(_179,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_179.parentNode?_177.get(_179,"top"):0)-t+"px",left:-l+"px"});_175.add(_179,"mblSpriteIcon");}};this.createDomButton=function(_17b,_17c,_17d){if(!this._domButtons){if(has("webkit")){var _17e=function(_17f,dic){var i,j;if(!_17f){var _180={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_17e(ss[i],_180);}return _180;}var _181=_17f.cssRules||[];for(i=0;i<_181.length;i++){var rule=_181[i];if(rule.href&&rule.styleSheet){_17e(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=_17e();}else{this._domButtons={};}}var s=_17b.className;var node=_17d||_17b;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _182=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_182]!==undefined){nDiv=this._domButtons[_182];}}var _183=null;if(has("bb")&&_172["mblBBBoxShadowWorkaround"]!==false){_183={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_176.create("div",_183,p);}if(_17d){setTimeout(function(){_175.remove(_17b,_182);},0);_175.add(_17d,_182);}}else{if(s.indexOf(".")!==-1){_176.create("img",{src:s},node);}else{return null;}}_175.add(node,"mblDomButton");!!_17c&&_177.set(node,_17c);return node;};this.createIcon=function(icon,_184,node,_185,_186,_187,pos){_185=_185||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_176.create("div",null,_187||_186,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_175.remove(node,RegExp.$1);}}node.title=_185;_175.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_176.create("img",{alt:_185},_187||_186,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_184);if(_184&&_186){var arr=_184.split(/[ ,]/);_177.set(_186,{width:arr[2]+"px",height:arr[3]+"px"});_175.add(_186,"mblSpriteIconParent");}_173.connect(node,"ondragstart",_174,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_188,_189,alt,_18a,_18b,pos){if(!_18a||!icon&&!_189){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_188){if(_189&&_189.tagName==="DIV"){_176.destroy(_189);_189=null;}_189=this.createIcon(icon,null,_189,alt,_18a,_18b,pos);_175.add(_189,"mblImageIcon");}else{if(_189&&_189.tagName==="IMG"){_176.destroy(_189);_189=null;}_189&&_176.empty(_189);if(!_189){_189=_176.create("div",null,_18b||_18a,pos);}this.createIcon(icon,_188,null,null,_189);if(alt){_189.title=alt;}}_175.remove(_18a,"mblNoIcon");return _189;}else{_176.destroy(_189);_175.add(_18a,"mblNoIcon");return null;}};};return new _178();});},"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(_18c,_18d,_18e,lang,win,dom,_18f,_190,_191,_192,_193,_194,_195,_196,_197,View){var dm=lang.getObject("dojox.mobile",true);return _18e("dojox.mobile.Heading",[_195,_194,_193],{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){_18c.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_190.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_190.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_190.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _198=this.getParent&&this.getParent();if(!_198||!_198.resize){var _199=this;setTimeout(function(){_199.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _19a,_19b;var _19c=this.containerNode.childNodes;for(var i=_19c.length-1;i>=0;i--){var c=_19c[i];if(c.nodeType===1&&_191.get(c,"display")!=="none"){if(!_19b&&_191.get(c,"float")==="right"){_19b=c;}if(!_19a&&_191.get(c,"float")==="left"){_19a=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=_19b?bw-_19b.offsetLeft+5:0;var lw=_19a?_19a.offsetLeft+_19a.offsetWidth+5:0;var tw=this.labelNodeLen||0;_18f[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_18c.forEach(this.getChildren(),function(_19d){if(_19d.resize){_19d.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _197({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(_19e){this._set("moveTo",_19e);if(this.backButton){this.backButton.set("moveTo",_19e);}},_setHrefAttr:function(href){this._set("href",href);if(this.backButton){this.backButton.set("href",href);}},_setTransitionAttr:function(_19f){this._set("transition",_19f);if(this.backButton){this.backButton.set("transition",_19f);}},_setLabelAttr:function(_1a0){this._set("label",_1a0);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_1a0):_1a0;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _196({size:30,center:false});_18f.add(prog.domNode,this.progStyle);}_190.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(_1a1,_1a2,_1a3,lang,win,_1a4,_1a5,_1a6,_1a7){return _1a2("dojox.mobile.RoundRectList",[_1a7,_1a6,_1a5],{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||_1a4.create(this.tag);this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_1a8){_1a2.safeMixin(this,new _1a8());}));}this.connect(this.domNode,"onselectstart",_1a3.stop);if(this.syncWithViews){var f=function(view,_1a9,dir,_1aa,_1ab,_1ac){var _1ad=_1a1.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_1ad){_1ad.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_1a1.forEach(this.getChildren(),function(_1ae){if(_1ae.resize){_1ae.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_1af){this._set("stateful",_1af);this.selectOne=_1af;_1a1.forEach(this.getChildren(),function(_1b0){_1b0.setArrow&&_1b0.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_1a1.forEach(this.getChildren(),function(_1b1){_1b1.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_1b2,lang,_1b3,when){return _1b2("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(_1b4){if(_1b4){this.set(_1b4);}},_get:function(name,_1b5){return typeof this[_1b5.g]==="function"?this[_1b5.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1b6){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1b7=this._getAttrNames(name),_1b8=this._get(name,_1b7),_1b9=this[_1b7.s],_1ba;if(typeof _1b9==="function"){_1ba=_1b9.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1b6;}if(this._watchCallbacks){var self=this;when(_1ba,function(){self._watchCallbacks(name,_1b8,_1b6);});}return this;},_changeAttrValue:function(name,_1bb){var _1bc=this.get(name);this[name]=_1bb;if(this._watchCallbacks){this._watchCallbacks(name,_1bc,_1bb);}return this;},watch:function(name,_1bd){var _1be=this._watchCallbacks;if(!_1be){var self=this;_1be=this._watchCallbacks=function(name,_1bf,_1c0,_1c1){var _1c2=function(_1c3){if(_1c3){_1c3=_1c3.slice();for(var i=0,l=_1c3.length;i<l;i++){_1c3[i].call(self,name,_1bf,_1c0);}}};_1c2(_1be["_"+name]);if(!_1c1){_1c2(_1be["*"]);}};}if(!_1bd&&typeof name==="function"){_1bd=name;name="*";}else{name="_"+name;}var _1c4=_1be[name];if(typeof _1c4!=="object"){_1c4=_1be[name]=[];}_1c4.push(_1bd);var _1c5={};_1c5.unwatch=_1c5.remove=function(){var _1c6=_1b3.indexOf(_1c4,_1bd);if(_1c6>-1){_1c4.splice(_1c6,1);}};return _1c5;}});});},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_1c7,_1c8,_1c9){var _1ca={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(_1c8.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_1cb){return _1c7.filter(this.getViews(),function(v){return this.getParentView(v)===_1cb;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_1c8.contains(n,"mblView")){return _1c9.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_1c9.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _1ca;});},"dojox/mobile/app/List":function(){define(["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(_1cc,dojo,_1cd){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _1ce={};dojo.declare("dojox.mobile.app.List",_1cc._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 _1cf=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_1d0){var _1d1=_1d0;if(_1d0.targetTouches&&_1d0.targetTouches.length>0){_1d1=_1d0.targetTouches[0];}var _1d2=_1cf._getRowNode(_1d0.target);if(_1d2){_1cf._setDataInfo(_1d2,_1d0);_1cf._selectRow(_1d2);_1cf._mouseDownPos={x:_1d1.pageX,y:_1d1.pageY};_1cf._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1d3){if(_1d3.targetTouches&&_1d3.targetTouches.length>0){_1d3=_1d3.targetTouches[0];}var _1d4=_1cf._getRowNode(_1d3.target);if(_1d4){_1cf._setDataInfo(_1d4,_1d3);if(_1cf._selectedRow){_1cf.onSelect(_1d4._data,_1d4._idx,_1d4);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1d5){dojo.stopEvent(_1d5);if(!_1cf._selectedRow){return;}var _1d6=_1cf._getRowNode(_1d5.target);if(_1cf.enableDelete&&_1d6&&!_1cf._deleting){_1cf.handleDrag(_1d5);}});}this.connect(this.domNode,"onclick",function(_1d7){if(_1d7.touches&&_1d7.touches.length>0){_1d7=_1d7.touches[0];}var _1d8=_1cf._getRowNode(_1d7.target,true);if(_1d8){_1cf._setDataInfo(_1d8,_1d7);}});this.connect(this.domNode,"mouseout",function(_1d9){if(_1d9.touches&&_1d9.touches.length>0){_1d9=_1d9.touches[0];}if(_1d9.target==_1cf._selectedRow){_1cf._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(_1da){var _1db=_1da;if(_1da.targetTouches&&_1da.targetTouches.length>0){_1db=_1da.targetTouches[0];}var diff=_1db.pageX-this._mouseDownPos.x;var _1dc=Math.abs(diff);if(_1dc>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1dc>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1dc){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(_1dd){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1dd+((_1dd>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(_1de){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1df=row.nextSibling;var _1e0=row.previousSibling;if(_1e0&&_1e0._isDivider){if(!_1df||_1df._isDivider){_1e0.parentNode.removeChild(_1e0);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1df){if(_1df._idx){_1df._idx--;}_1df=_1df.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1e1){var mb=dojo.marginBox(_1e1);var pos=dojo._abs(_1e1,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _1cd.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _1cd.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:(_1e1.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1e2,_1e3){_1e3.splice(_1e2,1);if(_1e3.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1e4){if(_1e4.touches&&_1e4.touches.length>0){_1e4=_1e4.touches[0];}var node=_1e4.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,_1e5){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1e5.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1e6,_1e7){_1e7.item=_1e6._data;_1e7.index=_1e6._idx;},onSelect:function(data,_1e8,_1e9){},_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(_1ea,_1eb){while(_1ea&&!_1ea._data&&_1ea!=this.domNode){if(!_1eb&&dojo.hasClass(_1ea,"noclick")){return null;}_1ea=_1ea.parentNode;}return _1ea==this.domNode?null:_1ea;},applyTemplate:function(_1ec,data){return dojo._toDom(dojo.string.substitute(_1ec,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(_1ed,_1ee){var rows=[];var row,i;var frag=document.createDocumentFragment();_1ed=Math.max(0,_1ed);_1ee=Math.min(_1ee,this.items.length);for(i=_1ed;i<_1ee;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=_1ed;i<_1ee;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1ef=null;var _1f0;var _1f1;for(i=_1ed;i<_1ee;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1f0=this.dividerFunction(this.items[i]);if(_1f0&&_1f0!=_1ef){_1f1=this.applyTemplate(this.dividerTemplate,{label:_1f0,item:this.items[i]});_1f1._isDivider=true;frag.appendChild(_1f1);_1ef=_1f0;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1f2,key){if(key.charAt(0)=="!"){_1f2=dojo.getObject(key.substr(1),false,_this);}if(typeof _1f2=="undefined"){return "";}if(_1f2==null){return "";}return key.charAt(0)=="!"?_1f2:_1f2.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1f3,_1f4){if(!url){_1f4();return;}if(_1ce[url]){this.set(_1f3,_1ce[url]);_1f4();}else{var _1f5=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_1ce[url]=dojo.trim(text);_1f5.set(_1f3,_1ce[url]);_1f4();}});}},_setFormattersAttr:function(_1f6){this.formatters=_1f6;},_setItemsAttr:function(_1f7){this.items=_1f7||[];if(this._templateLoadCount<1&&_1f7){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1f8){_1f8.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(dojo,_1f9,dom,on,has,_1fa,_1fb,win){var _1fc=has("touch");var ios4=false;if(has("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));ios4=os<5;}var _1fd;function _1fe(_1ff,_200){if(_1fc){return function(node,_201){var _202=on(node,_200,_201),_203=on(node,_1ff,function(evt){if(!_1fd||(new Date()).getTime()>_1fd+1000){_201.call(this,evt);}});return {remove:function(){_202.remove();_203.remove();}};};}else{return function(node,_204){return on(node,_1ff,_204);};}};var _205,_206;if(_1fc){_1fb(function(){_206=win.body();win.doc.addEventListener("touchstart",function(evt){_1fd=(new Date()).getTime();var _207=_206;_206=evt.target;on.emit(_207,"dojotouchout",{target:_207,relatedTarget:_206,bubbles:true});on.emit(_206,"dojotouchover",{target:_206,relatedTarget:_207,bubbles:true});},true);on(win.doc,"touchmove",function(evt){_1fd=(new Date()).getTime();var _208=win.doc.elementFromPoint(evt.pageX-(ios4?0:win.global.pageXOffset),evt.pageY-(ios4?0:win.global.pageYOffset));if(_208&&_206!==_208){on.emit(_206,"dojotouchout",{target:_206,relatedTarget:_208,bubbles:true});on.emit(_208,"dojotouchover",{target:_208,relatedTarget:_206,bubbles:true});_206=_208;}});});_205=function(node,_209){return on(win.doc,"touchmove",function(evt){if(node===win.doc||dom.isDescendant(_206,node)){evt.target=_206;_209.call(this,evt);}});};}var _20a={press:_1fe("mousedown","touchstart"),move:_1fe("mousemove",_205),release:_1fe("mouseup","touchend"),cancel:_1fe(_1fa.leave,"touchcancel"),over:_1fe("mouseover","dojotouchover"),out:_1fe("mouseout","dojotouchout"),enter:_1fa._eventHandler(_1fe("mouseover","dojotouchover")),leave:_1fa._eventHandler(_1fe("mouseout","dojotouchout"))};1&&(dojo.touch=_20a);return _20a;});},"dojo/require":function(){define(["./_base/loader"],function(_20b){return {dynamic:0,normalize:function(id){return id;},load:_20b.require};});},"dojox/mobile/app/ListSelector":function(){define("dojox/mobile/app/ListSelector",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(_20c,dojo,_20d){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",_20d.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 _20e=this;this.connect(this.domNode,"onclick",function(_20f){if(!dojo.hasClass(_20f.target,"listSelectorRow")){return;}if(_20e.onChoose){_20e.onChoose(_20e.data[_20f.target._idx].value);}_20e.hide();});this.connect(this.domNode,"onmousedown",function(_210){if(!dojo.hasClass(_210.target,"listSelectorRow")){return;}dojo.addClass(_210.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_211){if(!dojo.hasClass(_211.target,"listSelectorRow")){return;}dojo.removeClass(_211.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_212){if(!dojo.hasClass(_212.target,"listSelectorRow")){return;}dojo.removeClass(_212.target,"listSelectorRow-selected");});var _213=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(){_20e.onChoose&&_20e.onChoose();_20e.hide();});},show:function(_214){var _215;var _216=this.controller.getWindowSize();var _217;if(_214){_217=dojo._abs(_214);_215=_217;}else{_215.x=_216.w/2;_215.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_216.w*0.8)+"px"});var _218=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_218=Math.max(_218,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_218=Math.min(_218,Math.round(_216.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_218+"px");var _219=dojo.marginBox(this.domNode).h;var _21a=this;var _21b=_217?Math.max(30,_217.y-_219-10):this.getScroll().y+30;var _21c=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_218},height:{start:1,end:_219},top:{start:_215.y,end:_21b},left:{start:_215.x,end:(_216.w/2-_218/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_21a.domNode,"width","inherit");}});var _21d=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_21c,_21d]).play();},hide:function(){var _21e=this;var _21f=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_21e.get("destroyOnHide")){_21e.destroy();}}});var _220=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_21f,_220]).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(_221,_222,_223,_224,has,_225,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("+(_222.blankGif||_221.toUrl("./resources/blank.gif"))+");";win.body().appendChild(div);var cs=_224.getComputedStyle(div),_226=cs.backgroundImage,hc=(cs.borderTopColor==cs.borderRightColor)||(_226&&(_226=="none"||_226=="url(invalid-url:)"));if(has("ie")<=8){div.outerHTML="";}else{win.body().removeChild(div);}return hc;});_225(90,function(){if(has("highcontrast")){_223.add(win.body(),"dj_a11y");}});return has;});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_227,_228){return _227("dojox.mobile.EdgeToEdgeCategory",_228,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(_229,lang){var _22a={};lang.setObject("dojo.string",_22a);_22a.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("");};_22a.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_22a.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_22a.substitute=function(_22b,map,_22c,_22d){_22d=_22d||_229.global;_22c=_22c?lang.hitch(_22d,_22c):function(v){return v;};return _22b.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_22e,key,_22f){var _230=lang.getObject(key,false,map);if(_22f){_230=lang.getObject(_22f,false,_22d).call(_22d,_230,key);}return _22c(_230,key).toString();});};_22a.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 _22a;});},"dojox/mobile/TextBox":function(){define(["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_231,_232,_233,_234,_235){return _231("dojox.mobile.TextBox",[_233,_234,_235],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:function(_236){_236=this._cv?this._cv(_236):_236;this._set("placeHolder",_236);this.textbox.setAttribute("placeholder",_236);},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_232.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("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_237,has,_238,win,_239){var _23a={},hash={};var _23b={length:0,add:function(_23c){if(hash[_23c.id]){throw new Error("Tried to register widget with id=="+_23c.id+" but that id is already registered");}hash[_23c.id]=_23c;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(_23d){var id;do{id=_23d+"_"+(_23d in _23a?++_23a[_23d]:_23a[_23d]=0);}while(hash[id]);return _239._scopeName=="dijit"?id:_239._scopeName+"_"+id;},findWidgets:function(root,_23e){var _23f=[];function _240(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _241=node.getAttribute("widgetId");if(_241){var _242=hash[_241];if(_242){_23f.push(_242);}}else{if(node!==_23e){_240(node);}}}}};_240(root);return _23f;},_destroyAll:function(){_239._curFocus=null;_239._prevFocus=null;_239._activeStack=[];_237.forEach(_23b.findWidgets(win.body()),function(_243){if(!_243._destroyed){if(_243.destroyRecursive){_243.destroyRecursive();}else{if(_243.destroy){_243.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};_239.registry=_23b;return _23b;});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_244,_245,_246){return _246("dijit.Destroyable",null,{destroy:function(_247){this._destroyed=true;},own:function(){_244.forEach(arguments,function(_248){var _249="destroyRecursive" in _248?"destroyRecursive":"destroy" in _248?"destroy":"remove";var odh=_245.before(this,"destroy",function(_24a){_248[_249](_24a);});var hdh=_245.after(_248,_249,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","dojo/_base/lang","../registry","../main"],function(_24b,_24c,lang,_24d,_24e){var _24f={};_24b.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_24f[name]=_24d[name];});lang.mixin(_24f,{defaultDuration:_24c["defaultDuration"]||200});lang.mixin(_24e,_24f);return _24e;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place","../main"],function(_250,lang,_251,_252,_253){var _254={};_254.getViewport=function(){return _251.getBox();};_254.placeOnScreen=_252.at;_254.placeOnScreenAroundElement=function(node,_255,_256,_257){var _258;if(lang.isArray(_256)){_258=_256;}else{_258=[];for(var key in _256){_258.push({aroundCorner:key,corner:_256[key]});}}return _252.around(node,_255,_258,true,_257);};_254.placeOnScreenAroundNode=_254.placeOnScreenAroundElement;_254.placeOnScreenAroundRectangle=_254.placeOnScreenAroundElement;_254.getPopupAroundAlignment=function(_259,_25a){var _25b={};_250.forEach(_259,function(pos){var ltr=_25a;switch(pos){case "after":_25b[_25a?"BR":"BL"]=_25a?"BL":"BR";break;case "before":_25b[_25a?"BL":"BR"]=_25a?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_25b[ltr?"BL":"BR"]=ltr?"TL":"TR";_25b[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_25b[ltr?"TL":"TR"]=ltr?"BL":"BR";_25b[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _25b;};lang.mixin(_253,_254);return _253;});},"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(_25c,_25d,_25e,_25f,lang,has,win,_260,dom,_261,_262,_263,_264,_265,_266,_267,_268,_269,_26a,_26b,_26c){var dm=lang.getObject("dojox.mobile",true);return _25f("dojox.mobile.View",[_268,_267,_266],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_26d,node){if(node){dom.byId(node).style.visibility="hidden";}},destroy:function(){_26c.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_262.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_25d["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_264.set(this.domNode,"webkitTransformStyle","preserve-3d");}_26c.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _26e=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _26f,_270,_271;_25c.forEach(_26e,function(v,i){if(_25c.indexOf(ids,v.id)!==-1){_26f=v;}if(i==0){_271=v;}if(v.selected){_270=v;}v._visible=false;},this);(_26f||_270||_271)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_25e.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _272=this.getParent();if(!_272||!_272.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_25c.forEach(this.getChildren(),function(_273){if(_273.resize){_273.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_274,dir,_275,_276,_277){},onAfterTransitionIn:function(_278,dir,_279,_27a,_27b){},onBeforeTransitionOut:function(_27c,dir,_27d,_27e,_27f){},onAfterTransitionOut:function(_280,dir,_281,_282,_283){},_clearClasses:function(node){if(!node){return;}var _284=[];_25c.forEach(lang.trim(node.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_284.push(c);}},this);node.className=_284.join(" ");},_fixViewState:function(_285){var _286=this.domNode.parentNode.childNodes;for(var i=0;i<_286.length;i++){var n=_286[i];if(n.nodeType===1&&_261.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_285);var _287=_265.byNode(_285);if(_287){_287._inProgress=false;}},convertToId:function(_288){if(typeof (_288)=="string"){return _288.replace(/^#?([^&?]+).*/,"$1");}return _288;},_isBookmarkable:function(_289){return _289.moveTo&&(_25d["mblForceBookmarkable"]||_289.moveTo.charAt(0)==="#")&&!_289.hashchange;},performTransition:function(_28a,_28b,_28c,_28d,_28e){if(this._inProgress){return;}this._inProgress=true;var _28f,_290;if(_28a&&typeof (_28a)==="object"){_28f=_28a;_290=_28b;}else{_28f={moveTo:_28a,transitionDir:_28b,transition:_28c,context:_28d,method:_28e};_290=[];for(var i=5;i<arguments.length;i++){_290.push(arguments[i]);}}this._detail=_28f;this._optArgs=_290;this._arguments=[_28f.moveTo,_28f.transitionDir,_28f.transition,_28f.context,_28f.method];if(_28f.moveTo==="#"){return;}var _291;if(_28f.moveTo){_291=this.convertToId(_28f.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_291=this._dummyNode;}if(this.addTransitionInfo&&typeof (_28f.moveTo)=="string"&&this._isBookmarkable(_28f)){this.addTransitionInfo(this.id,_28f.moveTo,{transitionDir:_28f.transitionDir,transition:_28f.transition});}var _292=this.domNode;var _293=_292.offsetTop;_291=this.toNode=dom.byId(_291);if(!_291){return;}_291.style.visibility="hidden";_291.style.display="";this._fixViewState(_291);var _294=_265.byNode(_291);if(_294){if(_25d["mblAlwaysResizeOnTransition"]||!_294._resized){_26a.resizeAll(null,_294);_294._resized=true;}if(_28f.transition&&_28f.transition!="none"){_294.containerNode.style.paddingTop=_293+"px";}_294.load&&_294.load();_294.movedFrom=_292.id;}if(has("mblAndroidWorkaround")&&!_25d["mblCSS3Transition"]&&_28f.transition&&_28f.transition!="none"){_264.set(_291,"webkitTransformStyle","preserve-3d");_264.set(_292,"webkitTransformStyle","preserve-3d");_261.add(_291,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_25e.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(this._arguments)));if(_294){if(this.keepScrollPos&&!this.getParent()){var _295=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_292._scrollTop=_295;var _296=(_28f.transitionDir==1)?0:(_291._scrollTop||0);_291.style.top="0px";if(_295>1||_296!==0){_292.style.top=_296-_295+"px";if(_25d["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_296||1));},0);}}}else{_291.style.top="0px";}_294.onBeforeTransitionIn.apply(_294,this._arguments);_25e.publish("/dojox/mobile/beforeTransitionIn",[_294].concat(lang._toArray(this._arguments)));}_291.style.display="none";_291.style.visibility="visible";_26a.fromView=this;_26a.toView=_294;this._doTransition(_292,_291,_28f.transition,_28f.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_297,_298,_299,_29a){var rev=(_29a==-1)?" mblReverse":"";_298.style.display="";if(!_299||_299=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_25d["mblCSS3Transition"]){_260.when(_26b,lang.hitch(this,function(_29b){var _29c=_264.get(_298,"position");_264.set(_298,"position","absolute");_260.when(_29b(_297,_298,{transition:_299,reverse:(_29a===-1)?true:false}),lang.hitch(this,function(){_264.set(_298,"position",_29c);this.invokeCallback();}));}));}else{if(_299.indexOf("cube")!=-1){if(has("ipad")){_264.set(_298.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_264.set(_298.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_299);if(has("mblAndroidWorkaround")){setTimeout(function(){_261.add(_297,s+" mblOut"+rev);_261.add(_298,s+" mblIn"+rev);_261.remove(_298,"mblAndroidWorkaround");setTimeout(function(){_261.add(_297,"mblTransition");_261.add(_298,"mblTransition");},30);},70);}else{_261.add(_297,s+" mblOut"+rev);_261.add(_298,s+" mblIn"+rev);setTimeout(function(){_261.add(_297,"mblTransition");_261.add(_298,"mblTransition");},100);}var _29d="50% 50%";var _29e="50% 50%";var _29f,posX,posY;if(_299.indexOf("swirl")!=-1||_299.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_29f=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_29f=-_263.position(_297,true).y;}posY=win.global.innerHeight/2+_29f;_29d="50% "+posY+"px";_29e="50% "+posY+"px";}else{if(_299.indexOf("scale")!=-1){var _2a0=_263.position(_297,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_2a0.x;if(this.keepScrollPos&&!this.getParent()){_29f=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_29f=-_2a0.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_29f;_29d=posX+"px "+posY+"px";_29e=posX+"px "+posY+"px";}}_264.set(_297,{webkitTransformOrigin:_29d});_264.set(_298,{webkitTransformOrigin:_29e});}}},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 _2a1=false;if(_261.contains(this.domNode,"mblOut")){_2a1=true;this.domNode.style.display="none";_261.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_264.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_261.remove(li,"mblCloseContent");var p=_26c.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_2a1){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);_25e.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _2a2=_265.byNode(this.toNode);if(_2a2){_2a2.onAfterTransitionIn.apply(_2a2,this._arguments);_25e.publish("/dojox/mobile/afterTransitionIn",[_2a2].concat(this._arguments));_2a2.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_2a2);}}if(has("mblAndroidWorkaround")){setTimeout(lang.hitch(this,function(){if(_2a2){_264.set(this.toNode,"webkitTransformStyle","");}_264.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;this._inProgress=false;},isVisible:function(_2a3){var _2a4=function(node){return _264.get(node,"display")!=="none";};if(_2a3){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_2a4(n)){return false;}}return true;}else{return _2a4(this.domNode);}},getShowingView:function(){var _2a5=this.domNode.parentNode.childNodes;for(var i=0;i<_2a5.length;i++){var n=_2a5[i];if(n.nodeType===1&&_261.contains(n,"mblView")&&n.style.display!=="none"){return _265.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _25c.map(_25c.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_261.contains(n,"mblView");}),function(n){return _265.byNode(n);});},show:function(_2a6,_2a7){var out=this.getShowingView();if(!_2a6){if(out){out.onBeforeTransitionOut(out.id);_25e.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_25e.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_2a7){this.domNode.style.display="";}else{_25c.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_2a6){if(out){out.onAfterTransitionOut(out.id);_25e.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_25e.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/kernel","./registry"],function(_2a8,_2a9,_2aa,_2ab){var _2ac=_2a9("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_2ad){if(this._hash[_2ad.id]){throw new Error("Tried to register widget with id=="+_2ad.id+" but that id is already registered");}this._hash[_2ad.id]=_2ad;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_2ae){_2ae=_2ae||_2aa.global;var i=0,id;for(id in this._hash){func.call(_2ae,this._hash[id],i++,this._hash);}return this;},filter:function(_2af,_2b0){_2b0=_2b0||_2aa.global;var res=new _2ac(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_2af.call(_2b0,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _2ac(),id,_2b1;for(id in this._hash){_2b1=this._hash[id];if(_2b1.declaredClass==cls){res.add(_2b1);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_2b2){return _2a8.map(this.toArray(),func,_2b2);},every:function(func,_2b3){_2b3=_2b3||_2aa.global;var x=0,i;for(i in this._hash){if(!func.call(_2b3,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_2b4){_2b4=_2b4||_2aa.global;var x=0,i;for(i in this._hash){if(func.call(_2b4,this._hash[i],x++,this._hash)){return true;}}return false;}});_2a8.forEach(["forEach","filter","byClass","map","every","some"],function(func){_2ab[func]=_2ac.prototype[func];});return _2ac;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _2b5={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-_2b5.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 _2b5.bounceIn(n*2)/2;}return (_2b5.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_2b5);return _2b5;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/sniff","./main"],function(_2b6,_2b7,_2b8,dom,_2b9,_2ba,has,_2bb){var _2bc=(_2bb._isElementShown=function(elem){var s=_2ba.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_2b9.get(elem,"type")!="hidden");});_2bb.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _2b9.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _2bd=elem.contentDocument;if("designMode" in _2bd&&_2bd.designMode=="on"){return true;}body=_2bd.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 _2be=(_2bb.isTabNavigable=function(elem){if(_2b9.get(elem,"disabled")){return false;}else{if(_2b9.has(elem,"tabIndex")){return _2b9.get(elem,"tabIndex")>=0;}else{return _2bb.hasDefaultTabStop(elem);}}});_2bb._getTabNavigable=function(root){var _2bf,last,_2c0,_2c1,_2c2,_2c3,_2c4={};function _2c5(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _2c6=function(_2c7){for(var _2c8=_2c7.firstChild;_2c8;_2c8=_2c8.nextSibling){if(_2c8.nodeType!=1||(has("ie")<=9&&_2c8.scopeName!=="HTML")||!_2bc(_2c8)){continue;}if(_2be(_2c8)){var _2c9=+_2b9.get(_2c8,"tabIndex");if(!_2b9.has(_2c8,"tabIndex")||_2c9==0){if(!_2bf){_2bf=_2c8;}last=_2c8;}else{if(_2c9>0){if(!_2c0||_2c9<_2c1){_2c1=_2c9;_2c0=_2c8;}if(!_2c2||_2c9>=_2c3){_2c3=_2c9;_2c2=_2c8;}}}var rn=_2c5(_2c8);if(_2b9.get(_2c8,"checked")&&rn){_2c4[rn]=_2c8;}}if(_2c8.nodeName.toUpperCase()!="SELECT"){_2c6(_2c8);}}};if(_2bc(root)){_2c6(root);}function rs(node){return _2c4[_2c5(node)]||node;};return {first:rs(_2bf),last:rs(last),lowest:rs(_2c0),highest:rs(_2c2)};};_2bb.getFirstInTabbingOrder=function(root,doc){var _2ca=_2bb._getTabNavigable(dom.byId(root,doc));return _2ca.lowest?_2ca.lowest:_2ca.first;};_2bb.getLastInTabbingOrder=function(root,doc){var _2cb=_2bb._getTabNavigable(dom.byId(root,doc));return _2cb.last?_2cb.last:_2cb.highest;};return {hasDefaultTabStop:_2bb.hasDefaultTabStop,isTabNavigable:_2bb.isTabNavigable,_getTabNavigable:_2bb._getTabNavigable,getFirstInTabbingOrder:_2bb.getFirstInTabbingOrder,getLastInTabbingOrder:_2bb.getLastInTabbingOrder};});},"dijit/typematic":function(){define("dijit/typematic",["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/sniff","./main"],function(_2cc,_2cd,_2ce,_2cf,lang,on,has,_2d0){var _2d1=(_2d0.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,_2d2,node,_2d3,obj,_2d4,_2d5,_2d6){if(obj!=this._obj){this.stop();this._initialDelay=_2d5||500;this._subsequentDelay=_2d4||0.9;this._minDelay=_2d6||10;this._obj=obj;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_2d2,_2d3);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,_2d7,_2d8,_2d9,_2da,_2db,_2dc){if(_2d7.keyCode){_2d7.charOrCode=_2d7.keyCode;_2cf.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_2d7.charCode){_2d7.charOrCode=String.fromCharCode(_2d7.charCode);_2cf.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _2dd=[on(node,_2cd._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_2d7.charOrCode&&(_2d7.ctrlKey===undefined||_2d7.ctrlKey==evt.ctrlKey)&&(_2d7.altKey===undefined||_2d7.altKey==evt.altKey)&&(_2d7.metaKey===undefined||_2d7.metaKey==(evt.metaKey||false))&&(_2d7.shiftKey===undefined||_2d7.shiftKey==evt.shiftKey)){_2ce.stop(evt);_2d1.trigger(evt,_2d8,node,_2d9,_2d7,_2da,_2db,_2dc);}else{if(_2d1._obj==_2d7){_2d1.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_2d1._obj==_2d7){_2d1.stop();}}))];return {remove:function(){_2cc.forEach(_2dd,function(h){h.remove();});}};},addMouseListener:function(node,_2de,_2df,_2e0,_2e1,_2e2){var _2e3=[on(node,"mousedown",lang.hitch(this,function(evt){evt.preventDefault();_2d1.trigger(evt,_2de,node,_2df,node,_2e0,_2e1,_2e2);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2d1.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){if(this._obj){evt.preventDefault();}_2d1.stop();})),on(node,"dblclick",lang.hitch(this,function(evt){evt.preventDefault();if(has("ie")<9){_2d1.trigger(evt,_2de,node,_2df,node,_2e0,_2e1,_2e2);setTimeout(lang.hitch(this,_2d1.stop),50);}}))];return {remove:function(){_2cc.forEach(_2e3,function(h){h.remove();});}};},addListener:function(_2e4,_2e5,_2e6,_2e7,_2e8,_2e9,_2ea,_2eb){var _2ec=[this.addKeyListener(_2e5,_2e6,_2e7,_2e8,_2e9,_2ea,_2eb),this.addMouseListener(_2e4,_2e7,_2e8,_2e9,_2ea,_2eb)];return {remove:function(){_2cc.forEach(_2ec,function(h){h.remove();});}};}});return _2d1;});},"dojox/mobile/app/ImageView":function(){define("dojox/mobile/app/ImageView",["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(_2ed,dojo,_2ee){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",_2ee.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 _2ef=this;this.connect(this.domNode,"onmousedown",function(_2f0){if(_2ef.isAnimating()){return;}if(_2ef.panX){_2ef.handleDragEnd();}_2ef.downX=_2f0.targetTouches?_2f0.targetTouches[0].clientX:_2f0.clientX;_2ef.downY=_2f0.targetTouches?_2f0.targetTouches[0].clientY:_2f0.clientY;});this.connect(this.domNode,"onmousemove",function(_2f1){if(_2ef.isAnimating()){return;}if((!_2ef.downX&&_2ef.downX!==0)||(!_2ef.downY&&_2ef.downY!==0)){return;}if((!_2ef.disableSwipe&&_2ef.zoom==1)||(!_2ef.disableAutoZoom&&_2ef.zoom!=1)){var x=_2f1.targetTouches?_2f1.targetTouches[0].clientX:_2f1.pageX;var y=_2f1.targetTouches?_2f1.targetTouches[0].clientY:_2f1.pageY;_2ef.panX=x-_2ef.downX;_2ef.panY=y-_2ef.downY;if(_2ef.zoom==1){if(Math.abs(_2ef.panX)>10){_2ef.render();}}else{if(Math.abs(_2ef.panX)>10||Math.abs(_2ef.panY)>10){_2ef.render();}}}});this.connect(this.domNode,"onmouseout",function(_2f2){if(!_2ef.isAnimating()&&_2ef.panX){_2ef.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_2f3){_2ef.downX=_2ef.downY=null;});this.connect(this.domNode,"onclick",function(_2f4){if(_2ef.isAnimating()){return;}if(_2ef.downX==null||_2ef.downY==null){return;}var x=(_2f4.targetTouches?_2f4.targetTouches[0].clientX:_2f4.pageX);var y=(_2f4.targetTouches?_2f4.targetTouches[0].clientY:_2f4.pageY);if(Math.abs(_2ef.panX)>14||Math.abs(_2ef.panY)>14){_2ef.downX=_2ef.downY=null;_2ef.handleDragEnd();return;}_2ef.downX=_2ef.downY=null;if(!_2ef.disableAutoZoom){if(!_2ef._centerImg||!_2ef._centerImg._loaded){return;}if(_2ef.zoom!=1){_2ef.set("animatedZoom",1);return;}var pos=dojo._abs(_2ef.domNode);var _2f5=_2ef.size.w/_2ef._centerImg.width;var _2f6=_2ef.size.h/_2ef._centerImg.height;_2ef.zoomTo(((x-pos.x)/_2f5)-_2ef.panX,((y-pos.y)/_2f6)-_2ef.panY,_2ef.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;if(this.zoom==1){if(!this.panX){return;}var _2f7=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _2f8=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _2f9=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_2f7?1:0)||(this.panX<0&&_2f8?1:0));if(!_2f9){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(_2fa){if(this.zoom==1&&_2fa.duration<500){if(_2fa.direction=="ltr"){this.moveTo(1);}else{if(_2fa.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_2fb){_2fb=_2fb>0?1:-1;var _2fc;if(_2fb<1){if(this._rightImg&&this._rightImg._loaded){_2fc=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_2fc=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_2fc=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_2fc=this._leftSmallImg;}}}this._moveDir=_2fb;var _2fd=this;if(_2fc&&_2fc._loaded){this._animPanTo(this.size.w*_2fb,null,500,function(){_2fd.panX=0;_2fd.panY=0;if(_2fb<0){_2fd._switchImage("left","right");}else{_2fd._switchImage("right","left");}_2fd.render();_2fd.onChange(_2fb*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_2fe,_2ff){var _300="_"+_2fe+"SmallImg";var _301="_"+_2fe+"Img";var _302="_"+_2ff+"SmallImg";var _303="_"+_2ff+"Img";this[_301]=this._centerImg;this[_300]=this._centerSmallImg;this[_301]._type=_2fe;if(this[_300]){this[_300]._type=_2fe;}this._centerImg=this[_303];this._centerSmallImg=this[_302];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_303]=this[_302]=null;},_animPanTo:function(to,_304,_305,_306){this._animCallback=_306;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_305||500,easing:_304,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_307){},_updateAnimatedPan:function(_308){this.panX=_308;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_309,_30a,zoom){this.set("zoomCenterX",_309);this.set("zoomCenterY",_30a);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(_30b,_30c,_30d){var img=(_30c&&_30c._loaded)?_30c:_30b;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _30e=img._baseWidth;var _30f=img._baseHeight;var _310=_30e*this.zoom;var _311=_30f*this.zoom;var _312=Math.min(this.size.w,_310);var _313=Math.min(this.size.h,_311);var _314=this.dispWidth=img.width*(_312/_310);var _315=this.dispHeight=img.height*(_313/_311);var _316=this.zoomCenterX-(this.panX/this.zoom);var _317=this.zoomCenterY-(this.panY/this.zoom);var _318=Math.floor(Math.max(_314/2,Math.min(img.width-_314/2,_316)));var _319=Math.floor(Math.max(_315/2,Math.min(img.height-_315/2,_317)));var _31a=Math.max(0,Math.round((img.width-_314)/2+(_318-img._centerX)));var _31b=Math.max(0,Math.round((img.height-_315)/2+(_319-img._centerY)));var _31c=Math.round(Math.max(0,this.canvas.width-_312)/2);var _31d=Math.round(Math.max(0,this.canvas.height-_313)/2);var _31e=_312;var _31f=_314;if(this.zoom==1&&_30d&&this.panX){if(this.panX<0){if(_30d>0){_312-=Math.abs(this.panX);_31c=0;}else{if(_30d<0){_312=Math.max(1,Math.abs(this.panX)-5);_31c=this.size.w-_312;}}}else{if(_30d>0){_312=Math.max(1,Math.abs(this.panX)-5);_31c=0;}else{if(_30d<0){_312-=Math.abs(this.panX);_31c=this.size.w-_312;}}}_314=Math.max(1,Math.floor(_314*(_312/_31e)));if(_30d>0){_31a=(_31a+_31f)-(_314);}_31a=Math.floor(_31a);}try{cxt.drawImage(img,Math.max(0,_31a),_31b,Math.min(_31f,_314),_315,_31c,_31d,Math.min(_31e,_312),_313);}catch(e){}},_setZoomAttr:function(_320){this.zoom=Math.min(this.maxZoom,Math.max(1,_320));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(_321){if(_321!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_321=Math.min(this._centerImg.width,_321);}this.zoomCenterX=Math.max(0,Math.round(_321));}},_setZoomCenterYAttr:function(_322){if(_322!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_322=Math.min(this._centerImg.height,_322);}this.zoomCenterY=Math.max(0,Math.round(_322));}},_setZoomCenterAttr:function(_323){if(_323.x!=this.zoomCenterX||_323.y!=this.zoomCenterY){this.set("zoomCenterX",_323.x);this.set("zoomCenterY",_323.y);this.render();}},_setAnimatedZoomAttr:function(_324){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_324],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_325){this._setZoomAttr(_325);},_setCenterUrlAttr:function(_326){this._setImage("center",_326);},_setLeftUrlAttr:function(_327){this._setImage("left",_327);},_setRightUrlAttr:function(_328){this._setImage("right",_328);},_setImage:function(name,_329){var _32a=null;var _32b=null;if(dojo.isString(_329)){_32b=_329;}else{_32b=_329.large;_32a=_329.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_32b){return;}var _32c=this["_"+name+"Img"]=new Image();_32c._type=name;_32c._loaded=false;_32c._src=_32b;_32c._conn=dojo.connect(_32c,"onload",this.handleLoad);if(_32a){var _32d=this["_"+name+"SmallImg"]=new Image();_32d._type=name;_32d._loaded=false;_32d._conn=dojo.connect(_32d,"onload",this.handleLoad);_32d._isSmall=true;_32d._src=_32a;_32d.src=_32a;}_32c.src=_32b;},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 _32e=img.height;var _32f=img.width;if(_32f/this.size.w<_32e/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_32f/(_32e/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_32e/(_32f/this.size.w);}img._centerX=_32f/2;img._centerY=_32e/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_330){}});});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus","../main"],function(_331,dom,lang,_332,win,_333,_334){var _335={_curFocus:null,_prevFocus:null,isCollapsed:function(){return _334.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_333.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(_336){var _337=win.doc,mark=_336.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(_337.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_337.body.createControlRange();_331.forEach(mark,function(n){rg.addElement(n);});}else{rg=_337.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_338){var node=!_333.curNode||(menu&&dom.isDescendant(_333.curNode,menu.domNode))?_334._prevFocus:_333.curNode;return {node:node,bookmark:node&&(node==_333.curNode)&&win.withGlobal(_338||win.global,_334.getBookmark),openedForWindow:_338};},_activeStack:[],registerIframe:function(_339){return _333.registerIframe(_339);},unregisterIframe:function(_33a){_33a&&_33a.remove();},registerWin:function(_33b,_33c){return _333.registerWin(_33b,_33c);},unregisterWin:function(_33d){_33d&&_33d.remove();}};_333.focus=function(_33e){if(!_33e){return;}var node="node" in _33e?_33e.node:_33e,_33f=_33e.bookmark,_340=_33e.openedForWindow,_341=_33f?_33f.isCollapsed:false;if(node){var _342=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_342&&_342.focus){try{_342.focus();}catch(e){}}_333._onFocusNode(node);}if(_33f&&win.withGlobal(_340||win.global,_334.isCollapsed)&&!_341){if(_340){_340.focus();}try{win.withGlobal(_340||win.global,_334.moveToBookmark,null,[_33f]);}catch(e2){}}};_333.watch("curNode",function(name,_343,_344){_334._curFocus=_344;_334._prevFocus=_343;if(_344){_332.publish("focusNode",_344);}});_333.watch("activeStack",function(name,_345,_346){_334._activeStack=_346;});_333.on("widget-blur",function(_347,by){_332.publish("widgetBlur",_347,by);});_333.on("widget-focus",function(_348,by){_332.publish("widgetFocus",_348,by);});lang.mixin(_334,_335);return _334;});},"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(_349,_34a,lang,_34b,_34c,_34d,_34e,_34f,_350,_351,_352){var _353=_34a("dojox.mobile.ListItem",_351,{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||_34c.create(this.tag);this.inherited(arguments);if(this.selected){_34b.add(this.domNode,this._selClass);}if(this.header){_34b.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_34c.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 _354=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_354&&_354.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_34b.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_34b.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(_354&&_354.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);delete this._pendingChecked;}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _355;_349.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _356=n.getAttribute("layout")||(_34e.byNode(n)||{}).layout;if(_356){_34b.add(n,"mblListItemLayout"+_356.charAt(0).toUpperCase()+_356.substring(1));this._layoutChildren.push(n);if(_356==="center"){_355=n;}}},this);if(_355){this.domNode.insertBefore(_355,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")||(_34e.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){_34b.add(n,"mblListItemLabelSelected");setTimeout(function(){_34b.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _357=this.getParent();if(_357.select){if(_357.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_357.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;_349.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _358=this.domNode;var f=function(){var t=Math.round((_358.offsetHeight-n.offsetHeight)/2)-_34d.get(_358,"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 _359=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_359&&_359.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=_349.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"]=_350.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);_34b.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=_34c.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(_35a){if(!this._isOnLine){this._pendingChecked=_35a;return;}var _35b=this.getParent();if(_35b&&_35b.select==="single"&&_35a){_349.forEach(_35b.getChildren(),function(_35c){_35c!==this&&_35c.checked&&_35c.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_34b.toggle(this.domNode,"mblListItemChecked",_35a);_34b.toggle(this.domNode,"mblListItemUnchecked",!_35a);_34b.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_35a)?"absolute":"";if(_35b&&this.checked!==_35a){_35b.onCheckStateChanged(this,_35a);}this._set("checked",_35a);},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_34c.create("div",{className:"mblListItemIcon"});prog=this._prog=new _352({size:25,center:false});_34b.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_34c.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(_35d){this.inherited(arguments);_34b.toggle(this.domNode,this._selClass,_35d);}});_353.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_34f,_353.ChildWidgetProperties);return _353;});},"dojox/mobile/app/StageController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_35e,dojo,_35f){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(_360,_361){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _362=new _35f.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_362);var _363=this;dojo.forEach(this.scenes,this.setZIndex);_362.stageController=this;_362.init(_360,_361).addCallback(function(){if(_363.scenes.length==1){_362.domNode.style.visibility="visible";_363.scenes[_363.scenes.length-1].assistant.activate(_361);_363._opInProgress=false;}else{_363.scenes[_363.scenes.length-2].performTransition(_363.scenes[_363.scenes.length-1].domNode,1,_363.effect,null,function(){_363.scenes[_363.scenes.length-1].assistant.activate(_361);_363._opInProgress=false;});}});},setZIndex:function(_364,idx){dojo.style(_364.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _365=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_365.scenes.length-2].assistant.activate(data);this.scenes[_365.scenes.length-1].performTransition(_365.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_365._destroyScene(_365.scenes[_365.scenes.length-1]);_365.scenes.splice(_365.scenes.length-1,1);_365._opInProgress=false;});}else{}},popScenesTo:function(_366,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_366){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_367){_367.assistant.deactivate();_367.assistant.destroy();_367.destroyRecursive();}});});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","./main"],function(_368,_369,_36a,_36b,win,_36c,_36d){function _36e(node,_36f,_370,_371){var view=_36c.getBox(node.ownerDocument);if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body(node.ownerDocument).appendChild(node);}var best=null;_368.some(_36f,function(_372){var _373=_372.corner;var pos=_372.pos;var _374=0;var _375={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_373.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_373.charAt(0)]};var s=node.style;s.left=s.right="auto";if(_370){var res=_370(node,_372.aroundCorner,_373,_375,_371);_374=typeof res=="undefined"?0:res;}var _376=node.style;var _377=_376.display;var _378=_376.visibility;if(_376.display=="none"){_376.visibility="hidden";_376.display="";}var bb=_369.position(node);_376.display=_377;_376.visibility=_378;var _379={"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)}[_373.charAt(1)],_37a={"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)}[_373.charAt(0)],_37b=Math.max(view.l,_379),_37c=Math.max(view.t,_37a),endX=Math.min(view.l+view.w,_379+bb.w),endY=Math.min(view.t+view.h,_37a+bb.h),_37d=endX-_37b,_37e=endY-_37c;_374+=(bb.w-_37d)+(bb.h-_37e);if(best==null||_374<best.overflow){best={corner:_373,aroundCorner:_372.aroundCorner,x:_37b,y:_37c,w:_37d,h:_37e,overflow:_374,spaceAvailable:_375};}return !_374;});if(best.overflow&&_370){_370(node,best.aroundCorner,best.corner,best.spaceAvailable,_371);}var l=_369.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 _37f={at:function(node,pos,_380,_381){var _382=_368.map(_380,function(_383){var c={corner:_383,pos:{x:pos.x,y:pos.y}};if(_381){c.pos.x+=_383.charAt(1)=="L"?_381.x:-_381.x;c.pos.y+=_383.charAt(0)=="T"?_381.y:-_381.y;}return c;});return _36e(node,_382);},around:function(node,_384,_385,_386,_387){var _388=(typeof _384=="string"||"offsetWidth" in _384)?_369.position(_384,true):_384;if(_384.parentNode){var _389=_36a.getComputedStyle(_384).position=="absolute";var _38a=_384.parentNode;while(_38a&&_38a.nodeType==1&&_38a.nodeName!="BODY"){var _38b=_369.position(_38a,true),pcs=_36a.getComputedStyle(_38a);if(/relative|absolute/.test(pcs.position)){_389=false;}if(!_389&&/hidden|auto|scroll/.test(pcs.overflow)){var _38c=Math.min(_388.y+_388.h,_38b.y+_38b.h);var _38d=Math.min(_388.x+_388.w,_38b.x+_38b.w);_388.x=Math.max(_388.x,_38b.x);_388.y=Math.max(_388.y,_38b.y);_388.h=_38c-_388.y;_388.w=_38d-_388.x;}if(pcs.position=="absolute"){_389=true;}_38a=_38a.parentNode;}}var x=_388.x,y=_388.y,_38e="w" in _388?_388.w:(_388.w=_388.width),_38f="h" in _388?_388.h:(_36b.deprecated("place.around: dijit/place.__Rectangle: { x:"+x+", y:"+y+", height:"+_388.height+", width:"+_38e+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+_388.height+", w:"+_38e+" }","","2.0"),_388.h=_388.height);var _390=[];function push(_391,_392){_390.push({aroundCorner:_391,corner:_392,pos:{x:{"L":x,"R":x+_38e,"M":x+(_38e>>1)}[_391.charAt(1)],y:{"T":y,"B":y+_38f,"M":y+(_38f>>1)}[_391.charAt(0)]}});};_368.forEach(_385,function(pos){var ltr=_386;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 _393=_36e(node,_390,_387,{w:_38e,h:_38f});_393.aroundNodePos=_388;return _393;}};return _36d.place=_37f;});},"dojox/mobile/app/_event":function(){define("dojox/mobile/app/_event",["dijit","dojo","dojox"],function(_394,dojo,_395){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_395.mobile.app,{eventMap:{},connectFlick:function(_396,_397,_398){var _399;var _39a;var _39b=false;var _39c;var _39d;var _39e;var _39f;var _3a0;var time;var _3a1=dojo.connect("onmousedown",_396,function(_3a2){_39b=false;_399=_3a2.targetTouches?_3a2.targetTouches[0].clientX:_3a2.clientX;_39a=_3a2.targetTouches?_3a2.targetTouches[0].clientY:_3a2.clientY;time=(new Date()).getTime();_39e=dojo.connect(_396,"onmousemove",_3a3);_39f=dojo.connect(_396,"onmouseup",onUp);});var _3a3=function(_3a4){dojo.stopEvent(_3a4);_39c=_3a4.targetTouches?_3a4.targetTouches[0].clientX:_3a4.clientX;_39d=_3a4.targetTouches?_3a4.targetTouches[0].clientY:_3a4.clientY;if(Math.abs(Math.abs(_39c)-Math.abs(_399))>15){_39b=true;_3a0=(_39c>_399)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_39d)-Math.abs(_39a))>15){_39b=true;_3a0=(_39d>_39a)?"ttb":"btt";}}};var onUp=function(_3a5){dojo.stopEvent(_3a5);_39e&&dojo.disconnect(_39e);_39f&&dojo.disconnect(_39f);if(_39b){var _3a6={target:_396,direction:_3a0,duration:(new Date()).getTime()-time};if(_397&&_398){_397[_398](_3a6);}else{_398(_3a6);}}};}});_395.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_395.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_395.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_395.mobile.app.isIPhone||_395.mobile.app.isAndroid){_395.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_3a7,_3a8,_3a9,_3aa){_3a7=_395.mobile.app.eventMap[_3a7]||_3a7;if(_3a7=="flick"||_3a7=="onflick"){if(dojo.global["Mojo"]){_3a7=Mojo.Event.flick;}else{return _395.mobile.app.connectFlick(obj,_3a8,_3a9);}}return dojo._oldConnect(obj,_3a7,_3a8,_3a9,_3aa);};});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_3ab,View,_3ac,_3ad,_3ae,_3af,_3b0,_3b1,_3b2,_3b3,_3b4,_3b5){return _3ab;});},"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(_3b6,_3b7,_3b8,_3b9,_3ba,_3bb,_3bc){return _3b7("dojox.mobile.Button",[_3ba,_3bc,_3bb],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _3bd=this.focusNode||this.domNode;var _3be=(this.baseClass+" "+this["class"]).split(" ");_3be=_3b6.map(_3be,function(c){return c+"Selected";});_3b8.add(_3bd,_3be);setTimeout(function(){_3b8.remove(_3bd,_3be);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_3b9.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(_3bf){this.inherited(arguments,[this._cv?this._cv(_3bf):_3bf]);}});});},"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(_3c0,_3c1,_3c2,_3c3,win,_3c4,_3c5,_3c6,_3c7,_3c8,_3c9,has){return _3c2("dojox.mobile.Switch",[_3c9,_3c8],{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:_3c5.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;}_3c4.add(this.domNode,this.shape);var _3ca=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\""+_3ca+"></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,_3c7.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_3cb,anim){var on=(_3cb==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_3c4.add(this.domNode,"mblSwitchAnimation");}_3c4.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_3c4.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _3cc=this;setTimeout(function(){_3cc.left.style.display=on?"":"none";_3cc.right.style.display=!on?"":"none";_3c4.remove(_3cc.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=_3c6.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _3cd=rDef.split(" ");var rx=parseFloat(_3cd[0]),ry=(_3cd.length==1)?rx:parseFloat(_3cd[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,_3c7.move,"onTouchMove"),this.connect(this.inner,_3c7.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_3c3.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){_3c0.forEach(this._conn,_3c1.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 _3ce=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_3ce,true);if(_3ce!=this.value){this.value=this.input.value=_3ce;this.onStateChanged(_3ce);}},onStateChanged:function(_3cf){},_setValueAttr:function(_3d0){this._changeState(_3d0,false);if(this.value!=_3d0){this.onStateChanged(_3d0);}this.value=this.input.value=_3d0;},_setLeftLabelAttr:function(_3d1){this.leftLabel=_3d1;this.left.firstChild.innerHTML=this._cv?this._cv(_3d1):_3d1;},_setRightLabelAttr:function(_3d2){this.rightLabel=_3d2;this.right.firstChild.innerHTML=this._cv?this._cv(_3d2):_3d2;},reset:function(){this.set("value",this._initialValue);}});});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/ready","dojo/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_3d3,_3d4,dom,_3d5,_3d6,_3d7,lang,on,_3d8,has,_3d9,_3da,win,_3db,a11y,_3dc,_3dd){var _3de=_3d4([_3d9,_3d7],{curNode:null,activeStack:[],constructor:function(){var _3df=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);}});_3d3.before(_3d6,"empty",_3df);_3d3.before(_3d6,"destroy",_3df);},registerIframe:function(_3e0){return this.registerWin(_3e0.contentWindow,_3e0);},registerWin:function(_3e1,_3e2){var _3e3=this;var _3e4=function(evt){_3e3._justMouseDowned=true;setTimeout(function(){_3e3._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_3e3._onTouchNode(_3e2||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_3e1.document.documentElement:_3e1.document;if(doc){if(has("ie")){_3e1.document.body.attachEvent("onmousedown",_3e4);var _3e5=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_3e3._onFocusNode(_3e2||evt.srcElement);}else{_3e3._onTouchNode(_3e2||evt.srcElement);}};doc.attachEvent("onfocusin",_3e5);var _3e6=function(evt){_3e3._onBlurNode(_3e2||evt.srcElement);};doc.attachEvent("onfocusout",_3e6);return {remove:function(){_3e1.document.detachEvent("onmousedown",_3e4);doc.detachEvent("onfocusin",_3e5);doc.detachEvent("onfocusout",_3e6);doc=null;}};}else{doc.body.addEventListener("mousedown",_3e4,true);doc.body.addEventListener("touchstart",_3e4,true);var _3e7=function(evt){_3e3._onFocusNode(_3e2||evt.target);};doc.addEventListener("focus",_3e7,true);var _3e8=function(evt){_3e3._onBlurNode(_3e2||evt.target);};doc.addEventListener("blur",_3e8,true);return {remove:function(){doc.body.removeEventListener("mousedown",_3e4,true);doc.body.removeEventListener("touchstart",_3e4,true);doc.removeEventListener("focus",_3e7,true);doc.removeEventListener("blur",_3e8,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 _3e9=[];try{while(node){var _3ea=_3d5.get(node,"dijitPopupParent");if(_3ea){node=_3dc.byId(_3ea).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_3db.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_3eb=id&&_3dc.byId(id);if(_3eb&&!(by=="mouse"&&_3eb.get("disabled"))){_3e9.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_3e9,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(_3ec,by){var _3ed=this.activeStack;this.set("activeStack",_3ec);for(var _3ee=0;_3ee<Math.min(_3ed.length,_3ec.length);_3ee++){if(_3ed[_3ee]!=_3ec[_3ee]){break;}}var _3ef;for(var i=_3ed.length-1;i>=_3ee;i--){_3ef=_3dc.byId(_3ed[i]);if(_3ef){_3ef._hasBeenBlurred=true;_3ef.set("focused",false);if(_3ef._focusManager==this){_3ef._onBlur(by);}this.emit("widget-blur",_3ef,by);}}for(i=_3ee;i<_3ec.length;i++){_3ef=_3dc.byId(_3ec[i]);if(_3ef){_3ef.set("focused",true);if(_3ef._focusManager==this){_3ef._onFocus(by);}this.emit("widget-focus",_3ef,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _3f0=new _3de();_3d8(function(){var _3f1=_3f0.registerWin(_3db.get(win.doc));if(has("ie")){_3da.addOnWindowUnload(function(){if(_3f1){_3f1.remove();_3f1=null;}});}});_3dd.focus=function(node){_3f0.focus(node);};for(var attr in _3f0){if(!/^_/.test(attr)){_3dd.focus[attr]=typeof _3f0[attr]=="function"?lang.hitch(_3f0,attr):_3f0[attr];}}_3f0.watch(function(attr,_3f2,_3f3){_3dd.focus[attr]=_3f3;});return _3f0;});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_3f4,_3f5,_3f6,_3f7){return _3f5("dojox.mobile.Pane",[_3f7,_3f6],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_3f4.forEach(this.getChildren(),function(_3f8){if(_3f8.resize){_3f8.resize();}});}});});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(_3f9,_3fa,_3fb){return _3f9("dojox.mobile.RoundRect",_3fb,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_3fa.add(this.domNode,"mblShadow");}}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_3fc,dom,_3fd,_3fe){return _3fc("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_3fd.stop(e);return false;}var _3ff=this.onClick(e)===false;if(!_3ff&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _400=_3fe.byNode(node);if(_400&&typeof _400._onSubmit=="function"){_400._onSubmit(e);_3ff=true;break;}}}if(_3ff){e.preventDefault();}return !_3ff;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_401){this._set("label",_401);(this.containerNode||this.focusNode).innerHTML=_401;}});});},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){});},"dojox/mobile/app/TextBox":function(){define("dojox/mobile/app/TextBox",["dijit","dojo","dojox","dojo/require!dojox/mobile/TextBox"],function(_402,dojo,_403){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");_403.mobile.app.TextBox=_403.mobile.TextBox;});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_404,win,_405,_406,_407){return _404("dojox.mobile.RoundRectCategory",[_407,_406],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _408=this.domNode=this.containerNode=this.srcNodeRef||_405.create(this.tag);this.inherited(arguments);if(!this.label&&_408.childNodes.length===1&&_408.firstChild.nodeType===3){this.label=_408.firstChild.nodeValue;}},_setLabelAttr:function(_409){this.label=_409;this.domNode.innerHTML=this._cv?this._cv(_409):_409;}});});},"dojox/mobile/app/SceneAssistant":function(){define("dojox/mobile/app/SceneAssistant",["dijit","dojo","dojox"],function(_40a,dojo,_40b){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(_40c){},deactivate:function(){},destroy:function(){var _40d=dojo.query("> [widgetId]",this.containerNode).map(_40a.byNode);dojo.forEach(_40d,function(_40e){_40e.destroyRecursive();});this.disconnect();},connect:function(obj,_40f,_410){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_40f,_410));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","dojo/_base/window","../popup","../BackgroundIframe"],function(_411,win,_412){var _413=_412._createWrapper;_412._createWrapper=function(_414){if(!_414.declaredClass){_414={_popupWrapper:(_414.parentNode&&_411.contains(_414.parentNode,"dijitPopup"))?_414.parentNode:null,domNode:_414,destroy:function(){},ownerDocument:_414.ownerDocument,ownerDocumentBody:win.body(_414.ownerDocument)};}return _413.call(this,_414);};var _415=_412.open;_412.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 _415.call(this,args);};return _412;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_416,_417){if(_417["mblCSS3Transition"]){var _418=new _416();require([_417["mblCSS3Transition"]],function(_419){_418.resolve(_419);});return _418;}return null;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","../main","../hccss"],function(_41a,lang,_41b){var _41c={hasWaiRole:function(elem,role){var _41d=this.getWaiRole(elem);return role?(_41d.indexOf(role)>-1):(_41d.length>0);},getWaiRole:function(elem){return lang.trim((_41a.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_41a.set(elem,"role",role);},removeWaiRole:function(elem,role){var _41e=_41a.get(elem,"role");if(!_41e){return;}if(role){var t=lang.trim((" "+_41e+" ").replace(" "+role+" "," "));_41a.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_41f){return elem.hasAttribute?elem.hasAttribute("aria-"+_41f):!!elem.getAttribute("aria-"+_41f);},getWaiState:function(elem,_420){return elem.getAttribute("aria-"+_420)||"";},setWaiState:function(elem,_421,_422){elem.setAttribute("aria-"+_421,_422);},removeWaiState:function(elem,_423){elem.removeAttribute("aria-"+_423);}};lang.mixin(_41b,_41c);return _41b;});},"dojo/window":function(){define(["./_base/lang","./sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(lang,has,_424,dom,geom,_425,_426){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var body=_424.body(doc),_427=_426.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=_426.create("div",{style:{overflow:"hidden",direction:"ltr"}},_427,"last"),ret=geom.position(div).x!=0;_427.removeChild(div);body.removeChild(_427);return ret;});has.add("position-fixed-support",function(win,doc){var body=_424.body(doc),_428=_426.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_429=_426.create("span",{style:{position:"fixed",left:"0",top:"0"}},_428,"last"),ret=geom.position(_429).x!=geom.position(_428).x;_428.removeChild(_429);body.removeChild(_428);return ret;});var _42a={getBox:function(doc){doc=doc||_424.doc;var _42b=(doc.compatMode=="BackCompat")?_424.body(doc):doc.documentElement,_42c=geom.docScroll(doc),w,h;if(has("touch")){var _42d=_42a.get(doc);w=_42d.innerWidth||_42b.clientWidth;h=_42d.innerHeight||_42b.clientHeight;}else{w=_42b.clientWidth;h=_42b.clientHeight;}return {l:_42c.x,t:_42c.y,w:w,h:h};},get:function(doc){if(has("ie")&&_42a!==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||_424.doc,body=_424.body(doc),html=doc.documentElement||body.parentNode,isIE=has("ie"),isWK=has("webkit");if(node==body||node==html){return;}if(!(has("mozilla")||isIE||isWK||has("opera"))&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _42e=doc.compatMode=="BackCompat",_42f=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_430=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_431=(isWK||_42e)?body:html,_432=pos||geom.position(node),el=node.parentNode,_433=function(el){return (isIE<=6||(isIE==7&&_42e))?false:(has("position-fixed-support")&&(_425.get(el,"position").toLowerCase()=="fixed"));};if(_433(node)){return;}while(el){if(el==body){el=_431;}var _434=geom.position(el),_435=_433(el),rtl=_425.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_431){_434.w=_42f;_434.h=_430;if(_431==html&&isIE&&rtl){_434.x+=_431.offsetWidth-_434.w;}if(_434.x<0||!isIE||isIE>=9){_434.x=0;}if(_434.y<0||!isIE||isIE>=9){_434.y=0;}}else{var pb=geom.getPadBorderExtents(el);_434.w-=pb.w;_434.h-=pb.h;_434.x+=pb.l;_434.y+=pb.t;var _436=el.clientWidth,_437=_434.w-_436;if(_436>0&&_437>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_434.x+=_437;}_434.w=_436;}_436=el.clientHeight;_437=_434.h-_436;if(_436>0&&_437>0){_434.h=_436;}}if(_435){if(_434.y<0){_434.h+=_434.y;_434.y=0;}if(_434.x<0){_434.w+=_434.x;_434.x=0;}if(_434.y+_434.h>_430){_434.h=_430-_434.y;}if(_434.x+_434.w>_42f){_434.w=_42f-_434.x;}}var l=_432.x-_434.x,t=_432.y-_434.y,r=l+_432.w-_434.w,bot=t+_432.h-_434.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_431||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_42e)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_432.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_431||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_432.y-=s;}el=(el!=_431)&&!_435&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}}};1&&lang.setObject("dojo.window",_42a);return _42a;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_438,_439){return _438("dojox.mobile.EdgeToEdgeList",_439,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","./place","./BackgroundIframe","./main"],function(_43a,_43b,_43c,_43d,dom,_43e,_43f,_440,_441,_442,has,keys,lang,on,_443,_444,_445){function _446(){if(this._popupWrapper){_43f.destroy(this._popupWrapper);delete this._popupWrapper;}};var _447=_43d(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_448){var _449=_448._popupWrapper,node=_448.domNode;if(!_449){_449=_43f.create("div",{"class":"dijitPopup",style:{display:"none"},role:"region","aria-label":_448["aria-label"]||_448.label||_448.name||_448.id},_448.ownerDocumentBody);_449.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_448._popupWrapper=_449;_43b.after(_448,"destroy",_446,true);}return _449;},moveOffScreen:function(_44a){var _44b=this._createWrapper(_44a);_441.set(_44b,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_44c){var _44d=this._createWrapper(_44c);_441.set(_44d,"display","none");},getTopPopup:function(){var _44e=this._stack;for(var pi=_44e.length-1;pi>0&&_44e[pi].parent===_44e[pi-1].widget;pi--){}return _44e[pi];},open:function(args){var _44f=this._stack,_450=args.popup,_451=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_440.isBodyLtr(_450.ownerDocument),_452=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_44f.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_44f[_44f.length-1].widget.domNode))){this.close(_44f[_44f.length-1].widget);}var _453=this._createWrapper(_450);_43e.set(_453,{id:id,style:{zIndex:this._beginZIndex+_44f.length},"class":"dijitPopup "+(_450.baseClass||_450["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("bgIframe")&&!_450.bgIframe){_450.bgIframe=new _444(_453);}var best=_452?_443.around(_453,_452,_451,ltr,_450.orient?lang.hitch(_450,"orient"):null):_443.at(_453,args,_451=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_453.style.display="";_453.style.visibility="visible";_450.domNode.style.visibility="visible";var _454=[];_454.push(on(_453,_43c._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_442.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_442.stop(evt);var _455=this.getTopPopup();if(_455&&_455.onCancel){_455.onCancel();}}}})));if(_450.onCancel&&args.onCancel){_454.push(_450.on("cancel",args.onCancel));}_454.push(_450.on(_450.onExecute?"execute":"change",lang.hitch(this,function(){var _456=this.getTopPopup();if(_456&&_456.onExecute){_456.onExecute();}})));_44f.push({widget:_450,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_454});if(_450.onOpen){_450.onOpen(best);}return best;},close:function(_457){var _458=this._stack;while((_457&&_43a.some(_458,function(elem){return elem.widget==_457;}))||(!_457&&_458.length)){var top=_458.pop(),_459=top.widget,_45a=top.onClose;if(_459.onClose){_459.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_459&&_459.domNode){this.hide(_459);}if(_45a){_45a();}}}});return (_445.popup=new _447());});},"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("dijit/_base/window",["dojo/window","../main"],function(_45b,_45c){_45c.getDocumentWindow=function(doc){return _45b.get(doc);};});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_45d,_45e,_45f,_460,_461,_462,dom,_463,_464,_465,_466,_467,has,_468,lang,on,_469,_46a,_46b,win,_46c,_46d){has.add("dijit-legacy-requires",!_468.isAsync);if(has("dijit-legacy-requires")){_469(0,function(){var _46e=["dijit/_base/manager"];_45d(_46e);});}var _46f={};function _470(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _471(attr){return function(val){_463[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _462("dijit._WidgetBase",[_46a,_46c],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_471("lang"),dir:"",_setDirAttr:_471("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:_460.blankGif||_45d.toUrl("dojo/resources/blank.gif"),postscript:function(_472,_473){this.create(_472,_473);},create:function(_474,_475){this.srcNodeRef=dom.byId(_475);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_474){this.params=_474;lang.mixin(this,_474);}this.postMixInProperties();if(!this.id){this.id=_46d.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);_46d.add(this);this.buildRendering();var _476;if(this.domNode){this._applyAttributes();var _477=this.srcNodeRef;if(_477&&_477.parentNode&&this.domNode!==_477){_477.parentNode.replaceChild(this.domNode,_477);_476=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_476){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 _478=ctor.prototype;for(var _479 in _478){if(_479 in this.attributeMap){continue;}var _47a="_set"+_479.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_47a in _478){list.push(_479);}}}var _47b={};for(var key in this.params||{}){_47b[key]=this[key];}_45e.forEach(list,function(attr){if(attr in _47b){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(key in _47b){this.set(key,_47b[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _47c=this.baseClass.split(" ");if(!this.isLeftToRight()){_47c=_47c.concat(_45e.map(_47c,function(name){return name+"Rtl";}));}_464.add(this.domNode,_47c);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_45e.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_47d){this._beingDestroyed=true;this.destroyDescendants(_47d);this.destroy(_47d);},destroy:function(_47e){this._beingDestroyed=true;this.uninitialize();function _47f(w){if(w.destroyRecursive){w.destroyRecursive(_47e);}else{if(w.destroy){w.destroy(_47e);}}};_45e.forEach(this._connects,lang.hitch(this,"disconnect"));_45e.forEach(this._supportingWidgets,_47f);if(this.domNode){_45e.forEach(_46d.findWidgets(this.domNode,this.containerNode),_47f);}this.destroyRendering(_47e);_46d.remove(this.id);this._destroyed=true;},destroyRendering:function(_480){if(this.bgIframe){this.bgIframe.destroy(_480);delete this.bgIframe;}if(this.domNode){if(_480){_463.remove(this.domNode,"widgetId");}else{_465.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_480){_465.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_481){_45e.forEach(this.getChildren(),function(_482){if(_482.destroyRecursive){_482.destroyRecursive(_481);}});},uninitialize:function(){return false;},_setStyleAttr:function(_483){var _484=this.domNode;if(lang.isObject(_483)){_467.set(_484,_483);}else{if(_484.style.cssText){_484.style.cssText+="; "+_483;}else{_484.style.cssText=_483;}}this._set("style",_483);},_attrToDom:function(attr,_485,_486){_486=arguments.length>=3?_486:this.attributeMap[attr];_45e.forEach(lang.isArray(_486)?_486:[_486],function(_487){var _488=this[_487.node||_487||"domNode"];var type=_487.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_485)){_485=lang.hitch(this,_485);}var _489=_487.attribute?_487.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_488.tagName){_463.set(_488,_489,_485);}else{_488.set(_489,_485);}break;case "innerText":_488.innerHTML="";_488.appendChild(this.ownerDocument.createTextNode(_485));break;case "innerHTML":_488.innerHTML=_485;break;case "class":_464.replace(_488,_485,this[attr]);break;}},this);},get:function(name){var _48a=this._getAttrNames(name);return this[_48a.g]?this[_48a.g]():this[name];},set:function(name,_48b){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _48c=this._getAttrNames(name),_48d=this[_48c.s];if(lang.isFunction(_48d)){var _48e=_48d.apply(this,Array.prototype.slice.call(arguments,1));}else{var _48f=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_48f].tagName,_490=_46f[tag]||(_46f[tag]=_470(this[_48f])),map=name in this.attributeMap?this.attributeMap[name]:_48c.s in this?this[_48c.s]:((_48c.l in _490&&typeof _48b!="function")||/^aria-|^data-|^role$/.test(name))?_48f:null;if(map!=null){this._attrToDom(name,_48b,map);}this._set(name,_48b);}return _48e||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,_491){var _492=this[name];this[name]=_491;if(this._created&&_491!==_492){if(this._watchCallbacks){this._watchCallbacks(name,_492,_491);}this.emit("attrmodified-"+name,{detail:{prevValue:_492,newValue:_491}});}},emit:function(type,_493,_494){_493=_493||{};if(_493.bubbles===undefined){_493.bubbles=true;}if(_493.cancelable===undefined){_493.cancelable=true;}if(!_493.detail){_493.detail={};}_493.detail.widget=this;var ret,_495=this["on"+type];if(_495){ret=_495.apply(this,_494?_494:[_493]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_493);}return ret;},on:function(type,func){var _496=this._onMap(type);if(_496){return _45f.after(this,_496,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?_46d.findWidgets(this.containerNode):[];},getParent:function(){return _46d.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_497,_498){return this.own(_461.connect(obj,_497,this,_498))[0];},disconnect:function(_499){_499.remove();},subscribe:function(t,_49a){return this.own(_46b.subscribe(t,lang.hitch(this,_49a)))[0];},unsubscribe:function(_49b){_49b.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_466.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_467.get(this.domNode,"display")!="none");},placeAt:function(_49c,_49d){var _49e=!_49c.tagName&&_46d.byId(_49c);if(_49e&&_49e.addChild&&(!_49d||typeof _49d==="number")){_49e.addChild(this,_49d);}else{var ref=_49e?(_49e.containerNode&&!/after|before|replace/.test(_49d||"")?_49e.containerNode:_49e.domNode):dom.byId(_49c,this.ownerDocument);_465.place(this.domNode,ref,_49d);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_49f){return _49f;},applyTextDir:function(){},defer:function(fcn,_4a0){var _4a1=setTimeout(lang.hitch(this,function(){_4a1=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_4a0||0);return {remove:function(){if(_4a1){clearTimeout(_4a1);_4a1=null;}return null;}};}});});},"dojox/mobile/app/AlertDialog":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_4a2,dojo,_4a3){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_4a2._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 _4a4=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_4a4);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_4a4);var _4a5=dojo.create("div",{"class":"alertBtns"},_4a4);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _4a6=this;dojo.forEach(this.buttons,function(_4a7){var btn=new _4a3.mobile.Button({btnClass:_4a7["class"]||"",label:_4a7.label});btn._dialogValue=_4a7.value;dojo.place(btn.domNode,_4a5);_4a6.connect(btn,"onClick",_4a6._handleSelect);});var _4a8=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_4a8.w+"px",height:_4a8.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_4a6.onChoose&&_4a6.onChoose();_4a6.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_4a9){var node;if(_4a9&&_4a9.target){node=_4a9.target;while(!_4a2.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_4a2.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 _4aa=this.controller.getWindowSize().h;var high=_4aa-h;var low=_4aa;var _4ab=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _4ac=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_4ab,_4ac]);var _4ad=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_4ad.domNode.style.display="none";dojo.destroy(_4ad.domNode);dojo.destroy(_4ad.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});}}});define("dojox/mobile/app",["./app/_base"],function(_4ae){return _4ae;}); \ No newline at end of file