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

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

		http://dojotoolkit.org
*/

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