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