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