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

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

		http://dojotoolkit.org
*/

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