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

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

		http://dojotoolkit.org
*/

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