phpldapadmin/application/media/js/dojo-release-1.7.2/dojox/mobile/app.js
2013-03-19 15:55:33 +11:00

15 lines
154 KiB
JavaScript

/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
/*
This is an optimized version of Dojo, built for deployment and not for
development. To get sources and documentation, please visit:
http://dojotoolkit.org
*/
//>>built
require({cache:{"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_1,_2,_3,_4,_5){var _6=_5.doc.documentElement,ie=_4("ie"),_7=_4("opera"),_8=Math.floor,ff=_4("ff"),_9=_1.boxModel.replace(/-/,""),_a={"dj_ie":ie,"dj_ie6":_8(ie)==6,"dj_ie7":_8(ie)==7,"dj_ie8":_8(ie)==8,"dj_ie9":_8(ie)==9,"dj_quirks":_4("quirks"),"dj_iequirks":ie&&_4("quirks"),"dj_opera":_7,"dj_khtml":_4("khtml"),"dj_webkit":_4("webkit"),"dj_safari":_4("safari"),"dj_chrome":_4("chrome"),"dj_gecko":_4("mozilla"),"dj_ff3":_8(ff)==3};_a["dj_"+_9]=true;var _b="";for(var _c in _a){if(_a[_c]){_b+=_c+" ";}}_6.className=_2.trim(_6.className+" "+_b);_3(90,function(){if(!_1.isBodyLtr()){var _d="dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl ");_6.className=_2.trim(_6.className+" "+_d+"dj_rtl dijitRtl "+_b.replace(/ /g,"-rtl "));}});return _4;});},"dojox/mobile/app/_Widget":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_e,_f,_10){_f.provide("dojox.mobile.app._Widget");_f.experimental("dojox.mobile.app._Widget");_f.require("dijit._WidgetBase");_f.declare("dojox.mobile.app._Widget",_e._WidgetBase,{getScroll:function(){return {x:_f.global.scrollX,y:_f.global.scrollY};},connect:function(_11,_12,fn){if(_12.toLowerCase()=="dblclick"||_12.toLowerCase()=="ondblclick"){if(_f.global["Mojo"]){return this.connect(_11,Mojo.Event.tap,fn);}}return this.inherited(arguments);}});});},"dojox/mobile/app/ImageThumbView":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase,dojo/string"],function(_13,_14,_15){_14.provide("dojox.mobile.app.ImageThumbView");_14.experimental("dojox.mobile.app.ImageThumbView");_14.require("dijit._WidgetBase");_14.require("dojo.string");_14.declare("dojox.mobile.app.ImageThumbView",_13._WidgetBase,{items:[],urlParam:"url",labelParam:null,itemTemplate:"<div class=\"mblThumbInner\">"+"<div class=\"mblThumbOverlay\"></div>"+"<div class=\"mblThumbMask\">"+"<div class=\"mblThumbSrc\" style=\"background-image:url(${url})\"></div>"+"</div>"+"</div>",minPadding:4,maxPerRow:3,maxRows:-1,baseClass:"mblImageThumbView",thumbSize:"medium",animationEnabled:true,selectedIndex:-1,cache:null,cacheMustMatch:false,clickEvent:"onclick",cacheBust:false,disableHide:false,constructor:function(_16,_17){},postCreate:function(){this.inherited(arguments);var _18=this;var _19="mblThumbHover";this.addThumb=_14.hitch(this,this.addThumb);this.handleImgLoad=_14.hitch(this,this.handleImgLoad);this.hideCached=_14.hitch(this,this.hideCached);this._onLoadImages={};this.cache=[];this.visibleImages=[];this._cacheCounter=0;this.connect(this.domNode,this.clickEvent,function(_1a){var _1b=_18._getItemNodeFromEvent(_1a);if(_1b&&!_1b._cached){_18.onSelect(_1b._item,_1b._index,_18.items);_14.query(".selected",this.domNode).removeClass("selected");_14.addClass(_1b,"selected");}});_14.addClass(this.domNode,this.thumbSize);this.resize();this.render();},onSelect:function(_1c,_1d,_1e){},_setAnimationEnabledAttr:function(_1f){this.animationEnabled=_1f;_14[_1f?"addClass":"removeClass"](this.domNode,"animated");},_setItemsAttr:function(_20){this.items=_20||[];var _21={};var i;for(i=0;i<this.items.length;i++){_21[this.items[i][this.urlParam]]=1;}var _22=[];for(var url in this._onLoadImages){if(!_21[url]&&this._onLoadImages[url]._conn){_14.disconnect(this._onLoadImages[url]._conn);this._onLoadImages[url].src=null;_22.push(url);}}for(i=0;i<_22.length;i++){delete this._onLoadImages[url];}this.render();},_getItemNode:function(_23){while(_23&&!_14.hasClass(_23,"mblThumb")&&_23!=this.domNode){_23=_23.parentNode;}return (_23==this.domNode)?null:_23;},_getItemNodeFromEvent:function(_24){if(_24.touches&&_24.touches.length>0){_24=_24.touches[0];}return this._getItemNode(_24.target);},resize:function(){this._thumbSize=null;this._size=_14.contentBox(this.domNode);this.disableHide=true;this.render();this.disableHide=false;},hideCached:function(){for(var i=0;i<this.cache.length;i++){if(this.cache[i]){_14.style(this.cache[i],"display","none");}}},render:function(){var i;var url;var _25;var _26;while(this.visibleImages&&this.visibleImages.length>0){_26=this.visibleImages.pop();this.cache.push(_26);if(!this.disableHide){_14.addClass(_26,"hidden");}_26._cached=true;}if(this.cache&&this.cache.length>0){setTimeout(this.hideCached,1000);}if(!this.items||this.items.length==0){return;}for(i=0;i<this.items.length;i++){_25=this.items[i];url=(_14.isString(_25)?_25:_25[this.urlParam]);this.addThumb(_25,url,i);if(this.maxRows>0&&(i+1)/this.maxPerRow>=this.maxRows){break;}}if(!this._thumbSize){return;}var _27=0;var row=-1;var _28=this._thumbSize.w+(this.padding*2);var _29=this._thumbSize.h+(this.padding*2);var _2a=this.thumbNodes=_14.query(".mblThumb",this.domNode);var pos=0;_2a=this.visibleImages;for(i=0;i<_2a.length;i++){if(_2a[i]._cached){continue;}if(pos%this.maxPerRow==0){row++;}_27=pos%this.maxPerRow;this.place(_2a[i],(_27*_28)+this.padding,(row*_29)+this.padding);if(!_2a[i]._loading){_14.removeClass(_2a[i],"hidden");}if(pos==this.selectedIndex){_14[pos==this.selectedIndex?"addClass":"removeClass"](_2a[i],"selected");}pos++;}var _2b=Math.ceil(pos/this.maxPerRow);this._numRows=_2b;this.setContainerHeight((_2b*(this._thumbSize.h+this.padding*2)));},setContainerHeight:function(_2c){_14.style(this.domNode,"height",_2c+"px");},addThumb:function(_2d,url,_2e){var _2f;var _30=false;if(this.cache.length>0){var _31=false;for(var i=0;i<this.cache.length;i++){if(this.cache[i]._url==url){_2f=this.cache.splice(i,1)[0];_31=true;break;}}if(!_2f&&!this.cacheMustMatch){_2f=this.cache.pop();_14.removeClass(_2f,"selected");}else{_30=true;}}if(!_2f){_2f=_14.create("div",{"class":"mblThumb hidden",innerHTML:_14.string.substitute(this.itemTemplate,{url:url},null,this)},this.domNode);}if(this.labelParam){var _32=_14.query(".mblThumbLabel",_2f)[0];if(!_32){_32=_14.create("div",{"class":"mblThumbLabel"},_2f);}_32.innerHTML=_2d[this.labelParam]||"";}_14.style(_2f,"display","");if(!this.disableHide){_14.addClass(_2f,"hidden");}if(!_30){var _33=_14.create("img",{});_33._thumbDiv=_2f;_33._conn=_14.connect(_33,"onload",this.handleImgLoad);_33._url=url;_2f._loading=true;this._onLoadImages[url]=_33;if(_33){_33.src=url;}}this.visibleImages.push(_2f);_2f._index=_2e;_2f._item=_2d;_2f._url=url;_2f._cached=false;if(!this._thumbSize){this._thumbSize=_14.marginBox(_2f);if(this._thumbSize.h==0){this._thumbSize.h=100;this._thumbSize.w=100;}if(this.labelParam){this._thumbSize.h+=8;}this.calcPadding();}},handleImgLoad:function(_34){var img=_34.target;_14.disconnect(img._conn);_14.removeClass(img._thumbDiv,"hidden");img._thumbDiv._loading=false;img._conn=null;var url=img._url;if(this.cacheBust){url+=(url.indexOf("?")>-1?"&":"?")+"cacheBust="+(new Date()).getTime()+"_"+(this._cacheCounter++);}_14.query(".mblThumbSrc",img._thumbDiv).style("backgroundImage","url("+url+")");delete this._onLoadImages[img._url];},calcPadding:function(){var _35=this._size.w;var _36=this._thumbSize.w;var _37=_36+this.minPadding;this.maxPerRow=Math.floor(_35/_37);this.padding=Math.floor((_35-(_36*this.maxPerRow))/(this.maxPerRow*2));},place:function(_38,x,y){_14.style(_38,{"-webkit-transform":"translate("+x+"px,"+y+"px)"});},destroy:function(){var img;var _39=0;for(var url in this._onLoadImages){img=this._onLoadImages[url];if(img){img.src=null;_39++;}}this.inherited(arguments);}});});},"dojox/mobile/TransitionEvent":function(){define("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/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(_45,_46,_47,_48,_49,win,dom,_4a,_4b,on,_4c,_4d,_4e,_4f){var dm=_49.getObject("dojox.mobile",true);var _50=_48("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_4c(_49.hitch(this,function(){on(win.body(),"startTransition",_49.hitch(this,"onStartTransition"));}));},findCurrentView:function(_51,src){if(_51){var w=_4d.byId(_51);if(w&&w.getShowingView){return w.getShowingView();}}if(dm.currentView){return dm.currentView;}w=src;while(true){w=w.getParent();if(!w){return null;}if(_4a.contains(w.domNode,"mblView")){break;}}return w;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail||(evt.detail&&!evt.detail.moveTo&&!evt.detail.href&&!evt.detail.url&&!evt.detail.scene)){return;}var w=this.findCurrentView(evt.detail.moveTo,(evt.target&&evt.target.id)?_4d.byId(evt.target.id):_4d.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_4d.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_4d.byId(evt.target.id).hrefTarget;if(t){dm.openWindow(evt.detail.href,t);}else{w.performTransition(null,evt.detail.transitionDir,evt.detail.transition,evt.target,function(){location.href=evt.detail.href;});}return;}else{if(evt.detail.scene){_47.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _52=evt.detail.moveTo;if(evt.detail.url){var id;if(dm._viewMap&&dm._viewMap[evt.detail.url]){id=dm._viewMap[evt.detail.url];}else{var _53=this._text;if(!_53){if(_4d.byId(evt.target.id).sync){_45.xhrGet({url:evt.detail.url,sync:true,load:function(_54){_53=_49.trim(_54);}});}else{var s="dojo/_base/xhr";require([s],_49.hitch(this,function(xhr){var _55=_4e.getInstance();win.body().appendChild(_55.domNode);_55.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(_49.hitch(this,function(_56,_57){_55.stop();if(_56){this._text=_56;new _4f(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_52,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_58){_55.stop();});}));return;}}this._text=null;id=this._parse(_53,_4d.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_52=id;w=this.findCurrentView(_52,_4d.byId(evt.target.id))||w;}w.performTransition(_52,evt.detail.transitionDir,evt.detail.transition,null,null);},_parse:function(_59,id){var _5a,_5b,i,j,len;var _5c=this.findCurrentView();var _5d=_4d.byId(id)&&_4d.byId(id).containerNode||dom.byId(id)||_5c&&_5c.domNode.parentNode||win.body();var _5e=null;for(j=_5d.childNodes.length-1;j>=0;j--){var c=_5d.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_5e=c;}break;}}if(_59.charAt(0)==="<"){_5a=_4b.create("DIV",{innerHTML:_59});for(i=0;i<_5a.childNodes.length;i++){var n=_5a.childNodes[i];if(n.nodeType===1){_5b=n;break;}}if(!_5b){return;}_5b.style.visibility="hidden";_5d.insertBefore(_5a,_5e);var ws=_45.parser.parse(_5a);_46.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_5a.childNodes.length;i<len;i++){_5d.insertBefore(_5a.firstChild,_5e);}_5d.removeChild(_5a);_4d.byNode(_5b)._visible=true;}else{if(_59.charAt(0)==="{"){_5a=_4b.create("DIV");_5d.insertBefore(_5a,_5e);this._ws=[];_5b=this._instantiate(eval("("+_59+")"),_5a);for(i=0;i<this._ws.length;i++){var w=this._ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}this._ws=null;}}_5b.style.display="none";_5b.style.visibility="visible";return _45.hash?"#"+_5b.id:_5b.id;},_instantiate:function(obj,_5f,_60){var _61;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=_49.getObject(key);if(!cls){continue;}var _62={};var _63=cls.prototype;var _64=_49.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<_64.length;i++){for(var _65 in _64[i]){if(_65.charAt(0)=="@"){var val=_64[i][_65];_65=_65.substring(1);if(typeof _63[_65]=="string"){_62[_65]=val;}else{if(typeof _63[_65]=="number"){_62[_65]=val-0;}else{if(typeof _63[_65]=="boolean"){_62[_65]=(val!="false");}else{if(typeof _63[_65]=="object"){_62[_65]=eval("("+val+")");}}}}}}_61=new cls(_62,_5f);if(_5f){_61._visible=true;this._ws.push(_61);}if(_60&&_60.addChild){_60.addChild(_61);}this._instantiate(_64[i],null,_61);}}return _61&&_61.domNode;}});new _50();return _50;});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_66,win,_67,_68,_69,_6a,_6b){return _66("dojox.mobile.ToolBarButton",_6b,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_67.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _6c;if(this.selected){_6c=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_6c=this._defaultColor;}}_67.add(this.domNode,_6c);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_68.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_6a.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_67.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_6a.createDomButton(this.domNode)){_67.add(this.domNode,"mblToolBarButtonDomButton");}else{_67.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_67.toggle(this.domNode,this._selColor,!arguments[0]);this.selected=!arguments[0];},deselect:function(){this.select(true);},onClick:function(e){this.setTransitionPos(e);this.defaultClickAction();},_setBtnClassAttr:function(_6d){var _6e=this.domNode;if(_6e.className.match(/(mblDomButton\w+)/)){_67.remove(_6e,RegExp.$1);}_67.add(_6e,_6d);if(_6a.createDomButton(this.domNode)){_67.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(_6f){this.label=_6f;this.domNode.innerHTML=this._cv?this._cv(_6f):_6f;}});});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_70,_71,_72,_73,_74,_75,_76,_77,_78){return _72("dojox.mobile._ItemBase",[_76,_75,_74],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",transition:"",transitionDir:1,transitionOptions:null,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _79=this.getParent();if(_79){if(!this.transition){this.transition=_79.transition;}if(this.icon&&_79.iconBase&&_79.iconBase.charAt(_79.iconBase.length-1)==="/"){this.icon=_79.iconBase+this.icon;}if(!this.icon){this.icon=_79.iconBase;}if(!this.iconPos){this.iconPos=_79.iconPos;}}},select:function(){},deselect:function(){},defaultClickAction:function(e){if(this.toggle){if(this.selected){this.deselect();}else{this.select();}}else{if(!this.selected){this.select();if(!this.selectOne){var _7a=this;setTimeout(function(){_7a.deselect();},this._duration);}var _7b;if(this.moveTo||this.href||this.url||this.scene){_7b={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_7b=this.transitionOptions;}}if(_7b){return new _77(this.domNode,_7b,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_73.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof _78){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_7c,_7d,url,_7e){if(_71.isDebug){var _7f=arguments.callee._ach||(arguments.callee._ach={}),_80=(arguments.callee.caller||"unknown caller").toString();if(!_7f[_80]){_70.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_80,"","2.0");_7f[_80]=true;}}new _77(this.domNode,{moveTo:_7c,href:_7d,url:url,scene:_7e,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_81,_82,_83,_84,_85,_86,has,win){if(has("ie")||has("mozilla")){_86(90,function(){var div=_84.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_82.blankGif||_81.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_85.getComputedStyle(div);if(cs){var _87=cs.backgroundImage;var _88=(cs.borderTopColor==cs.borderRightColor)||(_87!=null&&(_87=="none"||_87=="url(invalid-url:)"));if(_88){_83.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_89,_8a){return _89("dijit._Contained",null,{_getSibling:function(_8b){var _8c=this.domNode;do{_8c=_8c[_8b+"Sibling"];}while(_8c&&_8c.nodeType!=1);return _8c&&_8a.byNode(_8c);},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",".."],function(_8d,_8e,dom,_8f,_90,_91,_92){var _93=_8e("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(_94,_95,_96){var _97;if(_94!==undefined){_97=this.filter(_94);if(typeof _96!="string"){if(_97!==null&&((typeof _97!="number")||!isNaN(_97))){_96=this.filter(this.format(_97,this.constraints));}else{_96="";}}}if(_96!=null&&_96!=undefined&&((typeof _96)!="number"||!isNaN(_96))&&this.textbox.value!=_96){this.textbox.value=_96;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_96);}this.inherited(arguments,[_97,_95]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_98){if(_98===null||_98===undefined){_98="";}else{if(typeof _98!="string"){_98=String(_98);}}this.textbox.value=_98;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_98);}},format:function(_99){return ((_99==null||_99==undefined)?"":(_99.toString?_99.toString():_99));},parse:function(_9a){return _9a;},_refreshState:function(){},onInput:function(){},__skipInputEvent:false,_onInput:function(){if(this.textDir=="auto"){this.applyTextDir(this.focusNode,this.focusNode.value);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);var _9b=function(e){var _9c=e.charOrCode||e.keyCode||229;if(e.type=="keydown"){switch(_9c){case _90.SHIFT:case _90.ALT:case _90.CTRL:case _90.META:case _90.CAPS_LOCK:return;default:if(_9c>=65&&_9c<=90){return;}}}if(e.type=="keypress"&&typeof _9c!="string"){return;}if(e.type=="input"){if(this.__skipInputEvent){this.__skipInputEvent=false;return;}}else{this.__skipInputEvent=true;}var _9d=_91.mixin({},e,{charOrCode:_9c,wasConsumed:false,preventDefault:function(){_9d.wasConsumed=true;e.preventDefault();},stopPropagation:function(){e.stopPropagation();}});if(this.onInput(_9d)===false){_8f.stop(_9d);}if(_9d.wasConsumed){return;}setTimeout(_91.hitch(this,"_onInput",_9d),0);};_8d.forEach(["onkeydown","onkeypress","onpaste","oncut","oninput"],function(_9e){this.connect(this.textbox,_9e,_9b);},this);},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=_91.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(_9f){return _9f.substring(0,1).toUpperCase()+_9f.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}},_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);if(this._isTextSelected()){_93.selectInputText(this.textbox);}});}this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);},_setTextDirAttr:function(_a0){if(!this._created||this.textDir!=_a0){this._set("textDir",_a0);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_93._setSelectionRange=_92._setSelectionRange=function(_a1,_a2,_a3){if(_a1.setSelectionRange){_a1.setSelectionRange(_a2,_a3);}};_93.selectInputText=_92.selectInputText=function(_a4,_a5,_a6){_a4=dom.byId(_a4);if(isNaN(_a5)){_a5=0;}if(isNaN(_a6)){_a6=_a4.value?_a4.value.length:0;}try{_a4.focus();_93._setSelectionRange(_a4,_a5,_a6);}catch(e){}};return _93;});},"dojox/mobile/parser":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/_base/lang","dojo/_base/window","dojo/ready"],function(_a7,_a8,_a9,win,_aa){var dm=_a9.getObject("dojox.mobile",true);var _ab=new function(){this.instantiate=function(_ac,_ad,_ae){_ad=_ad||{};_ae=_ae||{};var i,ws=[];if(_ac){for(i=0;i<_ac.length;i++){var n=_ac[i];var cls=_a9.getObject(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type"));var _af=cls.prototype;var _b0={},_b1,v,t;_a9.mixin(_b0,eval("({"+(n.getAttribute("data-dojo-props")||"")+"})"));_a9.mixin(_b0,_ae.defaults);_a9.mixin(_b0,_ad);for(_b1 in _af){v=n.getAttributeNode(_b1);v=v&&v.nodeValue;t=typeof _af[_b1];if(!v&&(t!=="boolean"||v!=="")){continue;}if(t==="string"){_b0[_b1]=v;}else{if(t==="number"){_b0[_b1]=v-0;}else{if(t==="boolean"){_b0[_b1]=(v!=="false");}else{if(t==="object"){_b0[_b1]=eval("("+v+")");}}}}}_b0["class"]=n.className;_b0.style=n.style&&n.style.cssText;v=n.getAttribute("data-dojo-attach-point");if(v){_b0.dojoAttachPoint=v;}v=n.getAttribute("data-dojo-attach-event");if(v){_b0.dojoAttachEvent=v;}var _b2=new cls(_b0,n);ws.push(_b2);var _b3=n.getAttribute("jsId")||n.getAttribute("data-dojo-id");if(_b3){_a9.setObject(_b3,_b2);}}for(i=0;i<ws.length;i++){var w=ws[i];!_ae.noStart&&w.startup&&!w._started&&w.startup();}}return ws;};this.parse=function(_b4,_b5){if(!_b4){_b4=win.body();}else{if(!_b5&&_b4.rootNode){_b5=_b4;_b4=_b4.rootNode;}}var _b6=_b4.getElementsByTagName("*");var i,_b7=[];for(i=0;i<_b6.length;i++){var n=_b6[i];if(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type")){_b7.push(n);}}var _b8=_b5&&_b5.template?{template:true}:null;return this.instantiate(_b7,_b8,_b5);};}();if(_a8.parseOnLoad){_aa(100,_ab,"parse");}dm.parser=_ab;_a7.parser=_ab;return _ab;});},"dijit/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_b9,_ba,_bb,_bc){return _ba("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_bd,_be){var _bf=this.containerNode;if(_be&&typeof _be=="number"){var _c0=this.getChildren();if(_c0&&_c0.length>=_be){_bf=_c0[_be-1].domNode;_be="after";}}_bb.place(_bd.domNode,_bf,_be);if(this._started&&!_bd._started){_bd.startup();}},removeChild:function(_c1){if(typeof _c1=="number"){_c1=this.getChildren()[_c1];}if(_c1){var _c2=_c1.domNode;if(_c2&&_c2.parentNode){_c2.parentNode.removeChild(_c2);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_c3,dir){var _c4=_c3.domNode,_c5=(dir>0?"nextSibling":"previousSibling");do{_c4=_c4[_c5];}while(_c4&&(_c4.nodeType!=1||!_bc.byNode(_c4)));return _c4&&_bc.byNode(_c4);},getIndexOfChild:function(_c6){return _b9.indexOf(this.getChildren(),_c6);}});});},"dojox/mobile/app/SceneController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/_base"],function(_c7,_c8,_c9){_c8.provide("dojox.mobile.app.SceneController");_c8.experimental("dojox.mobile.app.SceneController");_c8.require("dojox.mobile._base");(function(){var app=_c9.mobile.app;var _ca={};_c8.declare("dojox.mobile.app.SceneController",_c9.mobile.View,{stageController:null,keepScrollPos:false,init:function(_cb,_cc){this.sceneName=_cb;this.params=_cc;var _cd=app.resolveTemplate(_cb);this._deferredInit=new _c8.Deferred();if(_ca[_cb]){this._setContents(_ca[_cb]);}else{_c8.xhrGet({url:_cd,handleAs:"text"}).addCallback(_c8.hitch(this,this._setContents));}return this._deferredInit;},_setContents:function(_ce){_ca[this.sceneName]=_ce;this.domNode.innerHTML="<div>"+_ce+"</div>";var _cf="";var _d0=this.sceneName.split("-");for(var i=0;i<_d0.length;i++){_cf+=_d0[i].substring(0,1).toUpperCase()+_d0[i].substring(1);}_cf+="Assistant";this.sceneAssistantName=_cf;var _d1=this;_c9.mobile.app.loadResourcesForScene(this.sceneName,function(){var _d2;if(typeof (_c8.global[_cf])!="undefined"){_d1._initAssistant();}else{var _d3=app.resolveAssistant(_d1.sceneName);_c8.xhrGet({url:_d3,handleAs:"text"}).addCallback(function(_d4){try{_c8.eval(_d4);}catch(e){throw e;}_d1._initAssistant();});}});},_initAssistant:function(){var cls=_c8.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(_d5,_d6){return _c8.query(_d5,_d6||this.domNode);},parse:function(_d7){var _d8=this._widgets=_c9.mobile.parser.parse(_d7||this.domNode,{controller:this});for(var i=0;i<_d8.length;i++){_d8[i].set("controller",this);}},getWindowSize:function(){return {w:_c8.global.innerWidth,h:_c8.global.innerHeight};},showAlertDialog:function(_d9){var _da=_c8.marginBox(this.assistant.domNode);var _db=new _c9.mobile.app.AlertDialog(_c8.mixin(_d9,{controller:this}));this.assistant.domNode.appendChild(_db.domNode);_db.show();},popupSubMenu:function(_dc){var _dd=new _c9.mobile.app.ListSelector({controller:this,destroyOnHide:true,onChoose:_dc.onChoose});this.assistant.domNode.appendChild(_dd.domNode);_dd.set("data",_dc.choices);_dd.show(_dc.fromNode);}});})();});},"dojox/mobile/app/_base":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_base,dijit/_WidgetBase,dojox/mobile,dojox/mobile/parser,dojox/mobile/Button,dojox/mobile/app/_event,dojox/mobile/app/_Widget,dojox/mobile/app/StageController,dojox/mobile/app/SceneController,dojox/mobile/app/SceneAssistant,dojox/mobile/app/AlertDialog,dojox/mobile/app/List,dojox/mobile/app/ListSelector,dojox/mobile/app/TextBox,dojox/mobile/app/ImageView,dojox/mobile/app/ImageThumbView"],function(_de,_df,_e0){_df.provide("dojox.mobile.app._base");_df.experimental("dojox.mobile.app._base");_df.require("dijit._base");_df.require("dijit._WidgetBase");_df.require("dojox.mobile");_df.require("dojox.mobile.parser");_df.require("dojox.mobile.Button");_df.require("dojox.mobile.app._event");_df.require("dojox.mobile.app._Widget");_df.require("dojox.mobile.app.StageController");_df.require("dojox.mobile.app.SceneController");_df.require("dojox.mobile.app.SceneAssistant");_df.require("dojox.mobile.app.AlertDialog");_df.require("dojox.mobile.app.List");_df.require("dojox.mobile.app.ListSelector");_df.require("dojox.mobile.app.TextBox");_df.require("dojox.mobile.app.ImageView");_df.require("dojox.mobile.app.ImageThumbView");(function(){var _e1;var _e2;var _e3=["dojox.mobile","dojox.mobile.parser"];var _e4={};var _e5;var _e6;var _e7=[];function _e8(_e9,_ea){var _eb;var url;do{_eb=_e9.pop();if(_eb.source){url=_eb.source;}else{if(_eb.module){url=_df.moduleUrl(_eb.module)+".js";}else{return;}}}while(_e9.length>0&&_e4[url]);if(_e9.length<1&&_e4[url]){_ea();return;}_df.xhrGet({url:url,sync:false}).addCallbacks(function(_ec){_df["eval"](_ec);_e4[url]=true;if(_e9.length>0){_e8(_e9,_ea);}else{_ea();}},function(){});};var _ed=function(){_e1=new _e0.mobile.app.StageController(_e6);var _ee={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(_df.global["appInfo"]){_df.mixin(_ee,_df.global["appInfo"]);}_e2=_e0.mobile.app.info=_ee;if(_e2.title){var _ef=_df.query("head title")[0]||_df.create("title",{},_df.query("head")[0]);document.title=_e2.title;}_e1.pushScene(_e2.initialScene);};var _f0=function(){var _f1=false;if(_df.global.BackButton){BackButton.override();_df.connect(document,"backKeyDown",function(e){_df.publish("/dojox/mobile/app/goback");});_f1=true;}else{if(_df.global.Mojo){}}if(_f1){_df.addClass(_df.body(),"mblNativeBack");}};_df.mixin(_e0.mobile.app,{init:function(_f2){_e6=_f2||_df.body();_e0.mobile.app.STAGE_CONTROLLER_ACTIVE=true;_df.subscribe("/dojox/mobile/app/goback",function(){_e1.popScene();});_df.subscribe("/dojox/mobile/app/alert",function(_f3){_e0.mobile.app.getActiveSceneController().showAlertDialog(_f3);});_df.subscribe("/dojox/mobile/app/pushScene",function(_f4,_f5){_e1.pushScene(_f4,_f5||{});});_df.xhrGet({url:"view-resources.json",load:function(_f6){var _f7=[];if(_f6){_e7=_f6=_df.fromJson(_f6);for(var i=0;i<_f6.length;i++){if(!_f6[i].scene){_f7.push(_f6[i]);}}}if(_f7.length>0){_e8(_f7,_ed);}else{_ed();}},error:_ed});_f0();},getActiveSceneController:function(){return _e1.getActiveSceneController();},getStageController:function(){return _e1;},loadResources:function(_f8,_f9){_e8(_f8,_f9);},loadResourcesForScene:function(_fa,_fb){var _fc=[];for(var i=0;i<_e7.length;i++){if(_e7[i].scene==_fa){_fc.push(_e7[i]);}}if(_fc.length>0){_e8(_fc,_fb);}else{_fb();}},resolveTemplate:function(_fd){return "app/views/"+_fd+"/"+_fd+"-scene.html";},resolveAssistant:function(_fe){return "app/assistants/"+_fe+"-assistant.js";}});})();});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_ff,_100){_100.scrollIntoView=function(node,pos){_ff.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,_101,dojo,_102,_103,_104,dom,_105,geom,_106,_107){if(!dojo.isAsync){_106(0,function(){var _108=["./fx/Toggler"];_107(_108);});}var _109=dojo.fx={};var _10a={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _10b=function(_10c){this._index=-1;this._animations=_10c||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_102.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};_10b.prototype=new _101();lang.extend(_10b,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_103.disconnect(this._onAnimateCtx);_103.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=_103.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_103.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_10d,_10e){if(!this._current){this._current=this._animations[this._index=0];}if(!_10e&&this._current.status()=="playing"){return this;}var _10f=_103.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_110=_103.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_111=_103.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_103.disconnect(_10f);_103.disconnect(_110);_103.disconnect(_111);});if(this._onAnimateCtx){_103.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_103.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_103.disconnect(this._onEndCtx);}this._onEndCtx=_103.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_103.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_103.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_112,_113){this.pause();var _114=this.duration*_112;this._current=null;_102.some(this._animations,function(a){if(a.duration<=_114){this._current=a;return true;}_114-=a.duration;return false;});if(this._current){this._current.gotoPercent(_114/this._current.duration,_113);}return this;},stop:function(_115){if(this._current){if(_115){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=_103.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);_103.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){_103.disconnect(this._onAnimateCtx);}if(this._onEndCtx){_103.disconnect(this._onEndCtx);}}});lang.extend(_10b,_10a);_109.chain=function(_116){return new _10b(_116);};var _117=function(_118){this._animations=_118||[];this._connects=[];this._finished=0;this.duration=0;_102.forEach(_118,function(a){var _119=a.duration;if(a.delay){_119+=a.delay;}if(this.duration<_119){this.duration=_119;}this._connects.push(_103.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new _104.Animation({curve:[0,1],duration:this.duration});var self=this;_102.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(_103.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};lang.extend(_117,{_doAction:function(_11a,args){_102.forEach(this._animations,function(a){a[_11a].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_11b,args){var t=this._pseudoAnimation;t[_11b].apply(t,args);},play:function(_11c,_11d){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(_11e,_11f){var ms=this.duration*_11e;_102.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_11f);});this._call("gotoPercent",arguments);return this;},stop:function(_120){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){_102.forEach(this._connects,_103.disconnect);}});lang.extend(_117,_10a);_109.combine=function(_121){return new _117(_121);};_109.wipeIn=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_104.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 _122=_105.get(node,"height");return Math.max(_122,1);}},end:function(){return node.scrollHeight;}}}},args));var fini=function(){s.height="auto";s.overflow=o;};_103.connect(anim,"onStop",fini);_103.connect(anim,"onEnd",fini);return anim;};_109.wipeOut=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_104.animateProperty(lang.mixin({properties:{height:{end:1}}},args));_103.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});var fini=function(){s.overflow=o;s.height="auto";s.display="none";};_103.connect(anim,"onStop",fini);_103.connect(anim,"onEnd",fini);return anim;};_109.slideTo=function(args){var node=args.node=dom.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=_105.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=_104.animateProperty(lang.mixin({properties:{top:args.top||0,left:args.left||0}},args));_103.connect(anim,"beforeBegin",anim,init);return anim;};return _109;});},"dijit/_base":function(){define("dijit/_base",[".","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_123){return _123._base;});},"dojox/mobile/sniff":function(){define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/ProgressIndicator":function(){define("dojox/mobile/ProgressIndicator",["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_124,_125,_126,_127,has){var cls=_125("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],constructor:function(){this._bars=[];this.domNode=_126.create("DIV");this.domNode.className="mblProgContainer";if(_124["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_127.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_126.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_126.create("DIV",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.domNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.domNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _128=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_128.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_128._bars[i].style.backgroundColor=c[idx];}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_126.create("IMG",{src:file},this.domNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.domNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(){if(!cls._instance){cls._instance=new cls();}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/_base/sniff","dojo/_base/window","dojo/window","../a11y"],function(_129,_12a,_12b,_12c,lang,_12d,has,win,_12e,a11y){return _12a("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_12f){this._set("disabled",_12f);_12b.set(this.focusNode,"disabled",_12f);if(this.valueNode){_12b.set(this.valueNode,"disabled",_12f);}this.focusNode.setAttribute("aria-disabled",_12f);if(_12f){this._set("hovering",false);this._set("active",false);var _130="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_129.forEach(lang.isArray(_130)?_130:[_130],function(_131){var node=this[_131];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(e){if(this.scrollOnFocus){_12e.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_12c.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(_132,_133){if(this._lastValueReported==undefined&&(_133===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_132;}this._pendingOnChange=this._pendingOnChange||(typeof _132!=typeof this._lastValueReported)||(this.compare(_132,this._lastValueReported)!=0);if((this.intermediateChanges||_133||_133===undefined)&&this._pendingOnChange){this._lastValueReported=_132;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(lang.hitch(this,function(){this._onChangeHandle=null;this.onChange(_132);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},_onMouseDown:function(e){if((!this.focused||!has("ie"))&&!e.ctrlKey&&_12d.isLeft(e)&&this.isFocusable()){var _134=this.connect(win.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_134);});}}});});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_135,_136,_137,_138,_139,lang,on,has,win){var _13a=new function(){var _13b=[];this.pop=function(){var _13c;if(_13b.length){_13c=_13b.pop();_13c.style.display="";}else{if(has("ie")<9){var burl=_137["dojoBlankHtmlUrl"]||_135.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\");'>";_13c=win.doc.createElement(html);}else{_13c=_138.create("iframe");_13c.src="javascript:\"\"";_13c.className="dijitBackgroundIframe";_13c.setAttribute("role","presentation");_139.set(_13c,"opacity",0.1);}_13c.tabIndex=-1;}return _13c;};this.push=function(_13d){_13d.style.display="none";_13b.push(_13d);};}();_136.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(has("ie")||has("mozilla")){var _13e=(this.iframe=_13a.pop());node.appendChild(_13e);if(has("ie")<7||has("quirks")){this.resize(node);this._conn=on(node,"resize",lang.hitch(this,function(){this.resize(node);}));}else{_139.set(_13e,{width:"100%",height:"100%"});}}};lang.extend(_136.BackgroundIframe,{resize:function(node){if(this.iframe){_139.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){_13a.push(this.iframe);delete this.iframe;}}});return _136.BackgroundIframe;});},"dojox/mobile":function(){define([".","dojo/_base/lang","dojox/mobile/_base"],function(_13f,lang,base){lang.getObject("mobile",true,_13f);return _13f.mobile;});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/sniff","./_FormWidgetMixin"],function(_140,_141,keys,has,_142){return _140("dijit.form._FormValueMixin",_142,{readOnly:false,_setReadOnlyAttr:function(_143){_141.set(this.focusNode,"readOnly",_143);this.focusNode.setAttribute("aria-readonly",_143);this._set("readOnly",_143);},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(_144,_145){this._handleOnChange(_144,_145);},_handleOnChange:function(_146,_147){this._set("value",_146);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)){var te;if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();te=document.createEventObject();te.keyCode=keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}}});});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dijit/registry","./sniff","./uacss"],function(dojo,_148,_149,_14a,lang,win,_14b,_14c,_14d,_14e,_14f,has,_150){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();_14b.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(_151){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_151||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_151||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_14b.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_14a.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_152,_153){if(_152&&_153){var arr=_148.map(_153.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];_14d.set(_152,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_152.parentNode?_14d.get(_152,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_149["mblHideAddressBarWait"])==="number"?_149["mblHideAddressBarWait"]:1500;dm.hide_1=function(_154){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_154){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_154||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_14a.publish("/dojox/mobile/resizeAll",[evt,root]);dm.updateOrient();dm.detectScreenSize();var _155=function(w){var _156=w.getParent&&w.getParent();return !!((!_156||!_156.resize)&&w.resize);};var _157=function(w){_148.forEach(w.getChildren(),function(_158){if(_155(_158)){_158.resize();}_157(_158);});};if(root){if(root.resize){root.resize();}_157(root);}else{_148.forEach(_148.filter(_14f.toArray(),_155),function(w){w.resize();});}};dm.openWindow=function(url,_159){win.global.open(url,_159||"_blank");};dm.createDomButton=function(_15a,_15b,_15c){if(!dm._domButtons){if(has("webkit")){var _15d=function(_15e,dic){var i,j;if(!_15e){var dic={};var ss=dojo.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_15d(ss[i],dic);}return dic;}var _15f=_15e.cssRules||[];for(i=0;i<_15f.length;i++){var rule=_15f[i];if(rule.href&&rule.styleSheet){_15d(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;}}}}}}};dm._domButtons=_15d();}else{dm._domButtons={};}}var s=_15a.className;var node=_15c||_15a;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _160=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(dm._domButtons[_160]!==undefined){nDiv=dm._domButtons[_160];}}var _161=null;if(has("bb")&&_149["mblBBBoxShadowWorkaround"]!==false){_161={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_14c.create("DIV",_161,p);}if(_15c){setTimeout(function(){_14b.remove(_15a,_160);},0);_14b.add(_15c,_160);}}else{if(s.indexOf(".")!==-1){_14c.create("IMG",{src:s},node);}else{return null;}}_14b.add(node,"mblDomButton");if(_149["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_14d.set(node,"webkitTransform","translate3d(0,0,0)");}!!_15b&&_14d.set(node,_15b);return node;};dm.createIcon=function(icon,_162,node,_163,_164){if(icon&&icon.indexOf("mblDomButton")===0){if(node&&node.className.match(/(mblDomButton\w+)/)){_14b.remove(node,RegExp.$1);}else{node=_14c.create("DIV");}node.title=_163;_14b.add(node,icon);dm.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_14c.create("IMG",{alt:_163});}node.src=(icon||"").replace("${theme}",dm.currentTheme);dm.setupIcon(node,_162);if(_164&&_162){var arr=_162.split(/[ ,]/);_14d.set(_164,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_164){_164.appendChild(node);}return node;};dm._iw=_149["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_14c.create("div");}if(_149.parseOnLoad){_14e(90,function(){var _165=win.body().getElementsByTagName("*");var i,len,s;len=_165.length;for(i=0;i<len;i++){s=_165[i].getAttribute("dojoType");if(s){if(_165[i].parentNode.getAttribute("lazy")=="true"){_165[i].setAttribute("__dojoType",s);_165[i].removeAttribute("dojoType");}}}});}_14e(function(){dm.detectScreenSize(true);if(_149["mblApplyPageStyles"]!==false){_14b.add(win.doc.documentElement,"mobile");}if(has("chrome")){_14b.add(win.doc.documentElement,"dj_chrome");}if(_149["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_149["mblAndroidWorkaroundButtonStyle"]!==false){_14c.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("android")<3){_14d.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_14a.connect(null,"onfocus",null,function(e){_14d.set(win.doc.documentElement,"webkitTransform","");});_14a.connect(null,"onblur",null,function(e){_14d.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_149["mblAndroid3Workaround"]!==false){_14d.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_149["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_149["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_149["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_14a.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _166=win.body().getElementsByTagName("*");var i,len=_166.length,s;for(i=0;i<len;i++){s=_166[i].getAttribute("__dojoType");if(s){_166[i].setAttribute("dojoType",s);_166[i].removeAttribute("__dojoType");}}if(dojo.hash){var _167=function(root){if(!root){return [];}var arr=_14f.findWidgets(root);var _168=arr;for(var i=0;i<_168.length;i++){arr=arr.concat(_167(_168[i].containerNode));}return arr;};_14a.subscribe("/dojo/hashchange",null,function(_169){var view=dm.currentView;if(!view){return;}var _16a=dm._params;if(!_16a){var _16b=_169?_169:dm._defaultView.id;var _16c=_167(view.domNode);var dir=1,_16d="slide";for(i=0;i<_16c.length;i++){var w=_16c[i];if("#"+_16b==w.moveTo){_16d=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_16a=[_16b,dir,_16d];}view.performTransition.apply(view,_16a);dm._params=null;});}win.body().style.visibility="visible";});_14f.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return _14f.byId(id);}node=node._parentNode||node.parentNode;}return null;};return dm;});},"dojox/mobile/Heading":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./View"],function(_16e,_16f,_170,lang,win,_171,_172,_173,_174,_175,_176,_177,View){var dm=lang.getObject("dojox.mobile",true);return _170("dojox.mobile.Heading",[_177,_176,_175],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",backProp:{className:"mblArrowButton"},tag:"H1",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.domNode.className="mblHeading";if(!this.label){_16e.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_172.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_172.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_172.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _178=this.getParent&&this.getParent();if(!_178||!_178.resize){var _179=this;setTimeout(function(){_179.resize();},0);}this.inherited(arguments);},resize:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}if(this.labelNode){var _17a,_17b;var _17c=this.containerNode.childNodes;for(var i=_17c.length-1;i>=0;i--){var c=_17c[i];if(c.nodeType===1){if(!_17b&&_171.contains(c,"mblToolBarButton")&&_173.get(c,"float")==="right"){_17b=c;}if(!_17a&&(_171.contains(c,"mblToolBarButton")&&_173.get(c,"float")==="left"||c===this._btn)){_17a=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=_17b?bw-_17b.offsetLeft+5:0;var lw=_17a?_17a.offsetLeft+_17a.offsetWidth+5:0;var tw=this.labelNodeLen||0;_171[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_16e.forEach(this.getChildren(),function(_17d){if(_17d.resize){_17d.resize();}});},_setBackAttr:function(back){if(!back){_172.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_172.create("DIV",this.backProp,this.domNode,"first");var head=_172.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_172.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;this.backBtnNode=btn;this.connect(body,"onclick","onClick");}this.back=back;this._body.innerHTML=this._cv?this._cv(this.back):this.back;}this.resize();},_setLabelAttr:function(_17e){this.label=_17e;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_17e):_17e;},findCurrentView:function(){var w=this;while(true){w=w.getParent();if(!w){return null;}if(w instanceof View){break;}}return w;},onClick:function(e){var h1=this.domNode;_171.add(h1,"mblArrowButtonSelected");setTimeout(function(){_171.remove(h1,"mblArrowButtonSelected");},1000);if(this.back&&!this.moveTo&&!this.href&&history){history.back();return;}var view=this.findCurrentView();if(view){view.clickedPosX=e.clientX;view.clickedPosY=e.clientY;}this.goTo(this.moveTo,this.href);},goTo:function(_17f,href){var view=this.findCurrentView();if(!view){return;}if(href){view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dm.app&&dm.app.STAGE_CONTROLLER_ACTIVE){_16f.publish("/dojox/mobile/app/goback");}else{var node=_174.byId(view.convertToId(_17f));if(node){var _180=node.getParent();while(view){var _181=view.getParent();if(_180===_181){break;}view=_181;}}if(view){view.performTransition(_17f,-1,this.transition);}}}}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_182,_183,win,_184,_185,_186){return _183("dojox.mobile.RoundRectList",[_186,_185,_184],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("UL");this.domNode.className="mblRoundRectList";},resize:function(){_182.forEach(this.getChildren(),function(_187){if(_187.resize){_187.resize();}});},onCheckStateChanged:function(_188,_189){},_setStatefulAttr:function(_18a){this.stateful=_18a;_182.forEach(this.getChildren(),function(_18b){_18b.setArrow&&_18b.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_182.forEach(this.getChildren(),function(_18c){_18c.deselect&&_18c.deselect();});},selectItem:function(item){item.select();}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_18d,lang,_18e){return dojo.declare("dojo.Stateful",null,{postscript:function(_18f){if(_18f){lang.mixin(this,_18f);}},get:function(name){return this[name];},set:function(name,_190){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _191=this[name];this[name]=_190;if(this._watchCallbacks){this._watchCallbacks(name,_191,_190);}return this;},watch:function(name,_192){var _193=this._watchCallbacks;if(!_193){var self=this;_193=this._watchCallbacks=function(name,_194,_195,_196){var _197=function(_198){if(_198){_198=_198.slice();for(var i=0,l=_198.length;i<l;i++){try{_198[i].call(self,name,_194,_195);}catch(e){console.error(e);}}}};_197(_193["_"+name]);if(!_196){_197(_193["*"]);}};}if(!_192&&typeof name==="function"){_192=name;name="*";}else{name="_"+name;}var _199=_193[name];if(typeof _199!=="object"){_199=_193[name]=[];}_199.push(_192);return {unwatch:function(){_199.splice(_18e.indexOf(_199,_192),1);}};}});});},"dojox/mobile/app/List":function(){define(["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(_19a,dojo,_19b){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _19c={};dojo.declare("dojox.mobile.app.List",_19a._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 _19d=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_19e){var _19f=_19e;if(_19e.targetTouches&&_19e.targetTouches.length>0){_19f=_19e.targetTouches[0];}var _1a0=_19d._getRowNode(_19e.target);if(_1a0){_19d._setDataInfo(_1a0,_19e);_19d._selectRow(_1a0);_19d._mouseDownPos={x:_19f.pageX,y:_19f.pageY};_19d._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1a1){if(_1a1.targetTouches&&_1a1.targetTouches.length>0){_1a1=_1a1.targetTouches[0];}var _1a2=_19d._getRowNode(_1a1.target);if(_1a2){_19d._setDataInfo(_1a2,_1a1);if(_19d._selectedRow){_19d.onSelect(_1a2._data,_1a2._idx,_1a2);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1a3){dojo.stopEvent(_1a3);if(!_19d._selectedRow){return;}var _1a4=_19d._getRowNode(_1a3.target);if(_19d.enableDelete&&_1a4&&!_19d._deleting){_19d.handleDrag(_1a3);}});}this.connect(this.domNode,"onclick",function(_1a5){if(_1a5.touches&&_1a5.touches.length>0){_1a5=_1a5.touches[0];}var _1a6=_19d._getRowNode(_1a5.target,true);if(_1a6){_19d._setDataInfo(_1a6,_1a5);}});this.connect(this.domNode,"mouseout",function(_1a7){if(_1a7.touches&&_1a7.touches.length>0){_1a7=_1a7.touches[0];}if(_1a7.target==_19d._selectedRow){_19d._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(_1a8){var _1a9=_1a8;if(_1a8.targetTouches&&_1a8.targetTouches.length>0){_1a9=_1a8.targetTouches[0];}var diff=_1a9.pageX-this._mouseDownPos.x;var _1aa=Math.abs(diff);if(_1aa>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1aa>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1aa){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(_1ab){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1ab+((_1ab>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(_1ac){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1ad=row.nextSibling;var _1ae=row.previousSibling;if(_1ae&&_1ae._isDivider){if(!_1ad||_1ad._isDivider){_1ae.parentNode.removeChild(_1ae);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1ad){if(_1ad._idx){_1ad._idx--;}_1ad=_1ad.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1af){var mb=dojo.marginBox(_1af);var pos=dojo._abs(_1af,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _19b.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _19b.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:(_1af.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1b0,_1b1){_1b1.splice(_1b0,1);if(_1b1.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1b2){if(_1b2.touches&&_1b2.touches.length>0){_1b2=_1b2.touches[0];}var node=_1b2.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,_1b3){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1b3.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1b4,_1b5){_1b5.item=_1b4._data;_1b5.index=_1b4._idx;},onSelect:function(data,_1b6,_1b7){},_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(_1b8,_1b9){while(_1b8&&!_1b8._data&&_1b8!=this.domNode){if(!_1b9&&dojo.hasClass(_1b8,"noclick")){return null;}_1b8=_1b8.parentNode;}return _1b8==this.domNode?null:_1b8;},applyTemplate:function(_1ba,data){return dojo._toDom(dojo.string.substitute(_1ba,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(_1bb,_1bc){var rows=[];var row,i;var frag=document.createDocumentFragment();_1bb=Math.max(0,_1bb);_1bc=Math.min(_1bc,this.items.length);for(i=_1bb;i<_1bc;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=_1bb;i<_1bc;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1bd=null;var _1be;var _1bf;for(i=_1bb;i<_1bc;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1be=this.dividerFunction(this.items[i]);if(_1be&&_1be!=_1bd){_1bf=this.applyTemplate(this.dividerTemplate,{label:_1be,item:this.items[i]});_1bf._isDivider=true;frag.appendChild(_1bf);_1bd=_1be;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1c0,key){if(key.charAt(0)=="!"){_1c0=dojo.getObject(key.substr(1),false,_this);}if(typeof _1c0=="undefined"){return "";}if(_1c0==null){return "";}return key.charAt(0)=="!"?_1c0:_1c0.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1c1,_1c2){if(!url){_1c2();return;}if(_19c[url]){this.set(_1c1,_19c[url]);_1c2();}else{var _1c3=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_19c[url]=dojo.trim(text);_1c3.set(_1c1,_19c[url]);_1c2();}});}},_setFormattersAttr:function(_1c4){this.formatters=_1c4;},_setItemsAttr:function(_1c5){this.items=_1c5||[];if(this._templateLoadCount<1&&_1c5){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1c6){_1c6.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojox/mobile/app/ListSelector":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(_1c7,dojo,_1c8){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",_1c8.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 _1c9=this;this.connect(this.domNode,"onclick",function(_1ca){if(!dojo.hasClass(_1ca.target,"listSelectorRow")){return;}if(_1c9.onChoose){_1c9.onChoose(_1c9.data[_1ca.target._idx].value);}_1c9.hide();});this.connect(this.domNode,"onmousedown",function(_1cb){if(!dojo.hasClass(_1cb.target,"listSelectorRow")){return;}dojo.addClass(_1cb.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_1cc){if(!dojo.hasClass(_1cc.target,"listSelectorRow")){return;}dojo.removeClass(_1cc.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_1cd){if(!dojo.hasClass(_1cd.target,"listSelectorRow")){return;}dojo.removeClass(_1cd.target,"listSelectorRow-selected");});var _1ce=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(){_1c9.onChoose&&_1c9.onChoose();_1c9.hide();});},show:function(_1cf){var _1d0;var _1d1=this.controller.getWindowSize();var _1d2;if(_1cf){_1d2=dojo._abs(_1cf);_1d0=_1d2;}else{_1d0.x=_1d1.w/2;_1d0.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_1d1.w*0.8)+"px"});var _1d3=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_1d3=Math.max(_1d3,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_1d3=Math.min(_1d3,Math.round(_1d1.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_1d3+"px");var _1d4=dojo.marginBox(this.domNode).h;var _1d5=this;var _1d6=_1d2?Math.max(30,_1d2.y-_1d4-10):this.getScroll().y+30;var _1d7=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_1d3},height:{start:1,end:_1d4},top:{start:_1d0.y,end:_1d6},left:{start:_1d0.x,end:(_1d1.w/2-_1d3/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_1d5.domNode,"width","inherit");}});var _1d8=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_1d7,_1d8]).play();},hide:function(){var _1d9=this;var _1da=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_1d9.get("destroyOnHide")){_1d9.destroy();}}});var _1db=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_1da,_1db]).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);}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_1dc,_1dd){return _1dc("dojox.mobile.EdgeToEdgeCategory",_1dd,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.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("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1de,map,_1df,_1e0){_1e0=_1e0||dojo.global;_1df=_1df?lang.hitch(_1e0,_1df):function(v){return v;};return _1de.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1e1,key,_1e2){var _1e3=lang.getObject(key,false,map);if(_1e2){_1e3=lang.getObject(_1e2,false,_1e0).call(_1e0,_1e3,key);}return _1df(_1e3,key).toString();});};dojo.string.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 dojo.string;});},"dojox/mobile/TextBox":function(){define("dojox/mobile/TextBox",["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_1e4,_1e5,_1e6,_1e7,_1e8){return _1e4("dojox.mobile.TextBox",[_1e6,_1e7,_1e8],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:"textbox",buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_1e5.create("input",{"type":this.type});}this.inherited(arguments);this.textbox=this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onfocus","_onFocus");this.connect(this.textbox,"onblur","_onBlur");}});});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_1e9,has,_1ea,win,_1eb){var _1ec={},hash={};var _1ed={length:0,add:function(_1ee){if(hash[_1ee.id]){throw new Error("Tried to register widget with id=="+_1ee.id+" but that id is already registered");}hash[_1ee.id]=_1ee;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(_1ef){var id;do{id=_1ef+"_"+(_1ef in _1ec?++_1ec[_1ef]:_1ec[_1ef]=0);}while(hash[id]);return _1eb._scopeName=="dijit"?id:_1eb._scopeName+"_"+id;},findWidgets:function(root){var _1f0=[];function _1f1(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _1f2=node.getAttribute("widgetId");if(_1f2){var _1f3=hash[_1f2];if(_1f3){_1f0.push(_1f3);}}else{_1f1(node);}}}};_1f1(root);return _1f0;},_destroyAll:function(){_1eb._curFocus=null;_1eb._prevFocus=null;_1eb._activeStack=[];_1e9.forEach(_1ed.findWidgets(win.body()),function(_1f4){if(!_1f4._destroyed){if(_1f4.destroyRecursive){_1f4.destroyRecursive();}else{if(_1f4.destroy){_1f4.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};if(has("ie")){_1ea.addOnWindowUnload(function(){_1ed._destroyAll();});}_1eb.registry=_1ed;return _1ed;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_1f5,_1f6,_1f7,_1f8){_1f5.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(name){_1f8[name]=_1f7[name];});_1f8.defaultDuration=_1f6["defaultDuration"]||200;return _1f8;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place",".."],function(_1f9,lang,_1fa,_1fb,_1fc){_1fc.getViewport=function(){return _1fa.getBox();};_1fc.placeOnScreen=_1fb.at;_1fc.placeOnScreenAroundElement=function(node,_1fd,_1fe,_1ff){var _200;if(lang.isArray(_1fe)){_200=_1fe;}else{_200=[];for(var key in _1fe){_200.push({aroundCorner:key,corner:_1fe[key]});}}return _1fb.around(node,_1fd,_200,true,_1ff);};_1fc.placeOnScreenAroundNode=_1fc.placeOnScreenAroundElement;_1fc.placeOnScreenAroundRectangle=_1fc.placeOnScreenAroundElement;_1fc.getPopupAroundAlignment=function(_201,_202){var _203={};_1f9.forEach(_201,function(pos){var ltr=_202;switch(pos){case "after":_203[_202?"BR":"BL"]=_202?"BL":"BR";break;case "before":_203[_202?"BL":"BR"]=_202?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_203[ltr?"BL":"BR"]=ltr?"TL":"TR";_203[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_203[ltr?"TL":"TR"]=ltr?"BL":"BR";_203[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _203;};return _1fc;});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/kernel","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-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(dojo,_204,_205,_206,_207,lang,has,win,_208,dom,_209,_20a,_20b,_20c,_20d,_20e,_20f,_210,_211){var dm=lang.getObject("dojox.mobile",true);return _207("dojox.mobile.View",[_20f,_20e,_20d],{selected:false,keepScrollPos:true,constructor:function(_212,node){if(node){dom.byId(node).style.visibility="hidden";}this._aw=has("android")>=2.2&&has("android")<3;},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_205["mblCSS3Transition"]){this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dm._defaultView=this;}},startup:function(){if(this._started){return;}var _213=[];var _214=this.domNode.parentNode.childNodes;var _215=false;for(var i=0;i<_214.length;i++){var c=_214[i];if(c.nodeType===1&&_209.contains(c,"mblView")){_213.push(c);_215=_215||_20c.byNode(c)._visible;}}var _216=this._visible;if(_213.length===1||(!_215&&_213[0]===this.domNode)){_216=true;}var _217=this;setTimeout(function(){if(!_216){_217.domNode.style.display="none";}else{dm.currentView=_217;_217.onStartView();_206.publish("/dojox/mobile/startView",[_217]);}if(_217.domNode.style.visibility!="visible"){_217.domNode.style.visibility="visible";}var _218=_217.getParent&&_217.getParent();if(!_218||!_218.resize){_217.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_204.forEach(this.getChildren(),function(_219){if(_219.resize){_219.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_21a,dir,_21b,_21c,_21d){},onAfterTransitionIn:function(_21e,dir,_21f,_220,_221){},onBeforeTransitionOut:function(_222,dir,_223,_224,_225){},onAfterTransitionOut:function(_226,dir,_227,_228,_229){},_saveState:function(_22a,dir,_22b,_22c,_22d){this._context=_22c;this._method=_22d;if(_22b=="none"){_22b=null;}this._moveTo=_22a;this._dir=dir;this._transition=_22b;this._arguments=lang._toArray(arguments);this._args=[];if(_22c||_22d){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_22e){var _22f=this.domNode.parentNode.childNodes;for(var i=0;i<_22f.length;i++){var n=_22f[i];if(n.nodeType===1&&_209.contains(n,"mblView")){n.className="mblView";}}_22e.className="mblView";},convertToId:function(_230){if(typeof (_230)=="string"){_230.match(/^#?([^&?]+)/);return RegExp.$1;}return _230;},performTransition:function(_231,dir,_232,_233,_234){if(_231==="#"){return;}if(dojo.hash){if(typeof (_231)=="string"&&_231.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}dojo.hash(_231);return;}}this._saveState.apply(this,arguments);var _235;if(_231){_235=this.convertToId(_231);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_235=this._dummyNode;}var _236=this.domNode;var _237=_236.offsetTop;_235=this.toNode=dom.byId(_235);if(!_235){return;}_235.style.visibility=this._aw?"visible":"hidden";_235.style.display="";this._fixViewState(_235);var _238=_20c.byNode(_235);if(_238){if(_205["mblAlwaysResizeOnTransition"]||!_238._resized){dm.resizeAll(null,_238);_238._resized=true;}if(_232&&_232!="none"){_238.containerNode.style.paddingTop=_237+"px";}_238.movedFrom=_236.id;}this.onBeforeTransitionOut.apply(this,arguments);_206.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(arguments)));if(_238){if(this.keepScrollPos&&!this.getParent()){var _239=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_236._scrollTop=_239;var _23a=(dir==1)?0:(_235._scrollTop||0);_235.style.top="0px";if(_239>1||_23a!==0){_236.style.top=_23a-_239+"px";if(_205["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_23a||1));},0);}}}else{_235.style.top="0px";}_238.onBeforeTransitionIn.apply(_238,arguments);_206.publish("/dojox/mobile/beforeTransitionIn",[_238].concat(lang._toArray(arguments)));}if(!this._aw){_235.style.display="none";_235.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_20b.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_20b.get(win.body(),"background-color"),zIndex:-10000,display:""});_20b.set(_235,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(lang.hitch(this,function(){this._doTransition(_236,_235,_232,dir);}),80);}else{this._doTransition(_236,_235,_232,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_23b,_23c,_23d,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_20b.set(_23c,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_23c.style.display="";}}if(!_23d||_23d=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_205["mblCSS3Transition"]){_208.when(_211,lang.hitch(this,function(_23e){var _23f=_20b.get(_23c,"position");_20b.set(_23c,"position","absolute");_208.when(_23e(_23b,_23c,{transition:_23d,reverse:(dir===-1)?true:false}),lang.hitch(this,function(){_20b.set(_23c,"position",_23f);this.invokeCallback();}));}));}else{var s=this._toCls(_23d);_209.add(_23b,s+" mblOut"+rev);_209.add(_23c,s+" mblIn"+rev);setTimeout(function(){_209.add(_23b,"mblTransition");_209.add(_23c,"mblTransition");},100);var _240="50% 50%";var _241="50% 50%";var _242,posX,posY;if(_23d.indexOf("swirl")!=-1||_23d.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_242=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_242=-_20a.position(_23b,true).y;}posY=win.global.innerHeight/2+_242;_240="50% "+posY+"px";_241="50% "+posY+"px";}else{if(_23d.indexOf("scale")!=-1){var _243=_20a.position(_23b,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_243.x;if(this.keepScrollPos&&!this.getParent()){_242=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_242=-_243.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_242;_240=posX+"px "+posY+"px";_241=posX+"px "+posY+"px";}}_20b.set(_23b,{webkitTransformOrigin:_240});_20b.set(_23c,{webkitTransformOrigin:_241});}}dm.currentView=_20c.byNode(_23c);},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 _244=false;if(_209.contains(this.domNode,"mblOut")){_244=true;this.domNode.style.display="none";_209.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_20b.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_209.remove(li,"mblCloseContent");}if(_244){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_206.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _245=_20c.byNode(this.toNode);if(_245){_245.onAfterTransitionIn.apply(_245,this._arguments);_206.publish("/dojox/mobile/afterTransitionIn",[_245].concat(this._arguments));_245.movedFrom=undefined;}var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _246=this.domNode.parentNode.childNodes;for(var i=0;i<_246.length;i++){var n=_246[i];if(n.nodeType===1&&_209.contains(n,"mblView")&&_20b.get(n,"display")!=="none"){return _20c.byNode(n);}}return null;},show:function(){var view=this.getShowingView();if(view){view.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","./registry"],function(_247,_248,win,_249){var _24a=_248("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_24b){if(this._hash[_24b.id]){throw new Error("Tried to register widget with id=="+_24b.id+" but that id is already registered");}this._hash[_24b.id]=_24b;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_24c){_24c=_24c||win.global;var i=0,id;for(id in this._hash){func.call(_24c,this._hash[id],i++,this._hash);}return this;},filter:function(_24d,_24e){_24e=_24e||win.global;var res=new _24a(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_24d.call(_24e,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _24a(),id,_24f;for(id in this._hash){_24f=this._hash[id];if(_24f.declaredClass==cls){res.add(_24f);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_250){return _247.map(this.toArray(),func,_250);},every:function(func,_251){_251=_251||win.global;var x=0,i;for(i in this._hash){if(!func.call(_251,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_252){_252=_252||win.global;var x=0,i;for(i in this._hash){if(func.call(_252,this._hash[i],x++,this._hash)){return true;}}return false;}});_247.forEach(["forEach","filter","byClass","map","every","some"],function(func){_249[func]=_24a.prototype[func];});return _24a;});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _253={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-_253.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 _253.bounceIn(n*2)/2;}return (_253.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_253);return _253;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/_base/config","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/sniff","./_base/manager","."],function(_254,_255,_256,dom,_257,_258,has,_259,_25a){var _25b=(_25a._isElementShown=function(elem){var s=_258.get(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_257.get(elem,"type")!="hidden");});_25a.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _257.has(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _25c=elem.contentDocument;if("designMode" in _25c&&_25c.designMode=="on"){return true;}body=_25c.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 _25d=(_25a.isTabNavigable=function(elem){if(_257.get(elem,"disabled")){return false;}else{if(_257.has(elem,"tabIndex")){return _257.get(elem,"tabIndex")>=0;}else{return _25a.hasDefaultTabStop(elem);}}});_25a._getTabNavigable=function(root){var _25e,last,_25f,_260,_261,_262,_263={};function _264(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _265=function(_266){for(var _267=_266.firstChild;_267;_267=_267.nextSibling){if(_267.nodeType!=1||(has("ie")&&_267.scopeName!=="HTML")||!_25b(_267)){continue;}if(_25d(_267)){var _268=_257.get(_267,"tabIndex");if(!_257.has(_267,"tabIndex")||_268==0){if(!_25e){_25e=_267;}last=_267;}else{if(_268>0){if(!_25f||_268<_260){_260=_268;_25f=_267;}if(!_261||_268>=_262){_262=_268;_261=_267;}}}var rn=_264(_267);if(_257.get(_267,"checked")&&rn){_263[rn]=_267;}}if(_267.nodeName.toUpperCase()!="SELECT"){_265(_267);}}};if(_25b(root)){_265(root);}function rs(node){return _263[_264(node)]||node;};return {first:rs(_25e),last:rs(last),lowest:rs(_25f),highest:rs(_261)};};_25a.getFirstInTabbingOrder=function(root){var _269=_25a._getTabNavigable(dom.byId(root));return _269.lowest?_269.lowest:_269.first;};_25a.getLastInTabbingOrder=function(root){var _26a=_25a._getTabNavigable(dom.byId(root));return _26a.last?_26a.last:_26a.highest;};return {hasDefaultTabStop:_25a.hasDefaultTabStop,isTabNavigable:_25a.isTabNavigable,_getTabNavigable:_25a._getTabNavigable,getFirstInTabbingOrder:_25a.getFirstInTabbingOrder,getLastInTabbingOrder:_25a.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/_base/sniff","."],function(_26b,_26c,_26d,_26e,lang,on,has,_26f){var _270=(_26f.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,_271,node,_272,obj,_273,_274,_275){if(obj!=this._obj){this.stop();this._initialDelay=_274||500;this._subsequentDelay=_273||0.9;this._minDelay=_275||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_271,_272);this._fireEventAndReload();this._evt=lang.mixin({faux:true},evt);}},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,_276,_277,_278,_279,_27a,_27b){if(_276.keyCode){_276.charOrCode=_276.keyCode;_26e.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_276.charCode){_276.charOrCode=String.fromCharCode(_276.charCode);_26e.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _27c=[on(node,_26c._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_276.charOrCode&&(_276.ctrlKey===undefined||_276.ctrlKey==evt.ctrlKey)&&(_276.altKey===undefined||_276.altKey==evt.altKey)&&(_276.metaKey===undefined||_276.metaKey==(evt.metaKey||false))&&(_276.shiftKey===undefined||_276.shiftKey==evt.shiftKey)){_26d.stop(evt);_270.trigger(evt,_277,node,_278,_276,_279,_27a,_27b);}else{if(_270._obj==_276){_270.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_270._obj==_276){_270.stop();}}))];return {remove:function(){_26b.forEach(_27c,function(h){h.remove();});}};},addMouseListener:function(node,_27d,_27e,_27f,_280,_281){var _282=[on(node,"mousedown",lang.hitch(this,function(evt){_26d.stop(evt);_270.trigger(evt,_27d,node,_27e,node,_27f,_280,_281);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){_26d.stop(evt);}_270.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){_26d.stop(evt);_270.stop();})),on(node,"mousemove",lang.hitch(this,function(evt){evt.preventDefault();})),on(node,"dblclick",lang.hitch(this,function(evt){_26d.stop(evt);if(has("ie")){_270.trigger(evt,_27d,node,_27e,node,_27f,_280,_281);setTimeout(lang.hitch(this,_270.stop),50);}}))];return {remove:function(){_26b.forEach(_282,function(h){h.remove();});}};},addListener:function(_283,_284,_285,_286,_287,_288,_289,_28a){var _28b=[this.addKeyListener(_284,_285,_286,_287,_288,_289,_28a),this.addMouseListener(_283,_286,_287,_288,_289,_28a)];return {remove:function(){_26b.forEach(_28b,function(h){h.remove();});}};}});return _270;});},"dojox/mobile/app/ImageView":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(_28c,dojo,_28d){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",_28d.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 _28e=this;this.connect(this.domNode,"onmousedown",function(_28f){if(_28e.isAnimating()){return;}if(_28e.panX){_28e.handleDragEnd();}_28e.downX=_28f.targetTouches?_28f.targetTouches[0].clientX:_28f.clientX;_28e.downY=_28f.targetTouches?_28f.targetTouches[0].clientY:_28f.clientY;});this.connect(this.domNode,"onmousemove",function(_290){if(_28e.isAnimating()){return;}if((!_28e.downX&&_28e.downX!==0)||(!_28e.downY&&_28e.downY!==0)){return;}if((!_28e.disableSwipe&&_28e.zoom==1)||(!_28e.disableAutoZoom&&_28e.zoom!=1)){var x=_290.targetTouches?_290.targetTouches[0].clientX:_290.pageX;var y=_290.targetTouches?_290.targetTouches[0].clientY:_290.pageY;_28e.panX=x-_28e.downX;_28e.panY=y-_28e.downY;if(_28e.zoom==1){if(Math.abs(_28e.panX)>10){_28e.render();}}else{if(Math.abs(_28e.panX)>10||Math.abs(_28e.panY)>10){_28e.render();}}}});this.connect(this.domNode,"onmouseout",function(_291){if(!_28e.isAnimating()&&_28e.panX){_28e.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_292){_28e.downX=_28e.downY=null;});this.connect(this.domNode,"onclick",function(_293){if(_28e.isAnimating()){return;}if(_28e.downX==null||_28e.downY==null){return;}var x=(_293.targetTouches?_293.targetTouches[0].clientX:_293.pageX);var y=(_293.targetTouches?_293.targetTouches[0].clientY:_293.pageY);if(Math.abs(_28e.panX)>14||Math.abs(_28e.panY)>14){_28e.downX=_28e.downY=null;_28e.handleDragEnd();return;}_28e.downX=_28e.downY=null;if(!_28e.disableAutoZoom){if(!_28e._centerImg||!_28e._centerImg._loaded){return;}if(_28e.zoom!=1){_28e.set("animatedZoom",1);return;}var pos=dojo._abs(_28e.domNode);var _294=_28e.size.w/_28e._centerImg.width;var _295=_28e.size.h/_28e._centerImg.height;_28e.zoomTo(((x-pos.x)/_294)-_28e.panX,((y-pos.y)/_295)-_28e.panY,_28e.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 _296=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _297=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _298=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_296?1:0)||(this.panX<0&&_297?1:0));if(!_298){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(_299){if(this.zoom==1&&_299.duration<500){if(_299.direction=="ltr"){this.moveTo(1);}else{if(_299.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_29a){_29a=_29a>0?1:-1;var _29b;if(_29a<1){if(this._rightImg&&this._rightImg._loaded){_29b=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_29b=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_29b=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_29b=this._leftSmallImg;}}}this._moveDir=_29a;var _29c=this;if(_29b&&_29b._loaded){this._animPanTo(this.size.w*_29a,null,500,function(){_29c.panX=0;_29c.panY=0;if(_29a<0){_29c._switchImage("left","right");}else{_29c._switchImage("right","left");}_29c.render();_29c.onChange(_29a*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_29d,_29e){var _29f="_"+_29d+"SmallImg";var _2a0="_"+_29d+"Img";var _2a1="_"+_29e+"SmallImg";var _2a2="_"+_29e+"Img";this[_2a0]=this._centerImg;this[_29f]=this._centerSmallImg;this[_2a0]._type=_29d;if(this[_29f]){this[_29f]._type=_29d;}this._centerImg=this[_2a2];this._centerSmallImg=this[_2a1];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_2a2]=this[_2a1]=null;},_animPanTo:function(to,_2a3,_2a4,_2a5){this._animCallback=_2a5;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_2a4||500,easing:_2a3,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_2a6){},_updateAnimatedPan:function(_2a7){this.panX=_2a7;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_2a8,_2a9,zoom){this.set("zoomCenterX",_2a8);this.set("zoomCenterY",_2a9);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(_2aa,_2ab,_2ac){var img=(_2ab&&_2ab._loaded)?_2ab:_2aa;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _2ad=img._baseWidth;var _2ae=img._baseHeight;var _2af=_2ad*this.zoom;var _2b0=_2ae*this.zoom;var _2b1=Math.min(this.size.w,_2af);var _2b2=Math.min(this.size.h,_2b0);var _2b3=this.dispWidth=img.width*(_2b1/_2af);var _2b4=this.dispHeight=img.height*(_2b2/_2b0);var _2b5=this.zoomCenterX-(this.panX/this.zoom);var _2b6=this.zoomCenterY-(this.panY/this.zoom);var _2b7=Math.floor(Math.max(_2b3/2,Math.min(img.width-_2b3/2,_2b5)));var _2b8=Math.floor(Math.max(_2b4/2,Math.min(img.height-_2b4/2,_2b6)));var _2b9=Math.max(0,Math.round((img.width-_2b3)/2+(_2b7-img._centerX)));var _2ba=Math.max(0,Math.round((img.height-_2b4)/2+(_2b8-img._centerY)));var _2bb=Math.round(Math.max(0,this.canvas.width-_2b1)/2);var _2bc=Math.round(Math.max(0,this.canvas.height-_2b2)/2);var _2bd=_2b1;var _2be=_2b3;if(this.zoom==1&&_2ac&&this.panX){if(this.panX<0){if(_2ac>0){_2b1-=Math.abs(this.panX);_2bb=0;}else{if(_2ac<0){_2b1=Math.max(1,Math.abs(this.panX)-5);_2bb=this.size.w-_2b1;}}}else{if(_2ac>0){_2b1=Math.max(1,Math.abs(this.panX)-5);_2bb=0;}else{if(_2ac<0){_2b1-=Math.abs(this.panX);_2bb=this.size.w-_2b1;}}}_2b3=Math.max(1,Math.floor(_2b3*(_2b1/_2bd)));if(_2ac>0){_2b9=(_2b9+_2be)-(_2b3);}_2b9=Math.floor(_2b9);}try{cxt.drawImage(img,Math.max(0,_2b9),_2ba,Math.min(_2be,_2b3),_2b4,_2bb,_2bc,Math.min(_2bd,_2b1),_2b2);}catch(e){}},_setZoomAttr:function(_2bf){this.zoom=Math.min(this.maxZoom,Math.max(1,_2bf));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(_2c0){if(_2c0!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_2c0=Math.min(this._centerImg.width,_2c0);}this.zoomCenterX=Math.max(0,Math.round(_2c0));}},_setZoomCenterYAttr:function(_2c1){if(_2c1!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_2c1=Math.min(this._centerImg.height,_2c1);}this.zoomCenterY=Math.max(0,Math.round(_2c1));}},_setZoomCenterAttr:function(_2c2){if(_2c2.x!=this.zoomCenterX||_2c2.y!=this.zoomCenterY){this.set("zoomCenterX",_2c2.x);this.set("zoomCenterY",_2c2.y);this.render();}},_setAnimatedZoomAttr:function(_2c3){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_2c3],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_2c4){this._setZoomAttr(_2c4);},_setCenterUrlAttr:function(_2c5){this._setImage("center",_2c5);},_setLeftUrlAttr:function(_2c6){this._setImage("left",_2c6);},_setRightUrlAttr:function(_2c7){this._setImage("right",_2c7);},_setImage:function(name,_2c8){var _2c9=null;var _2ca=null;if(dojo.isString(_2c8)){_2ca=_2c8;}else{_2ca=_2c8.large;_2c9=_2c8.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_2ca){return;}var _2cb=this["_"+name+"Img"]=new Image();_2cb._type=name;_2cb._loaded=false;_2cb._src=_2ca;_2cb._conn=dojo.connect(_2cb,"onload",this.handleLoad);if(_2c9){var _2cc=this["_"+name+"SmallImg"]=new Image();_2cc._type=name;_2cc._loaded=false;_2cc._conn=dojo.connect(_2cc,"onload",this.handleLoad);_2cc._isSmall=true;_2cc._src=_2c9;_2cc.src=_2c9;}_2cb.src=_2ca;},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 _2cd=img.height;var _2ce=img.width;if(_2ce/this.size.w<_2cd/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_2ce/(_2cd/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_2cd/(_2ce/this.size.w);}img._centerX=_2ce/2;img._centerY=_2cd/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_2cf){}});});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus",".."],function(_2d0,dom,lang,_2d1,win,_2d2,_2d3){lang.mixin(_2d3,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _2d3.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_2d2.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(_2d4){var _2d5=win.doc,mark=_2d4.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(_2d5.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(lang.isArray(mark)){rg=_2d5.body.createControlRange();_2d0.forEach(mark,function(n){rg.addElement(n);});}else{rg=_2d5.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_2d6){var node=!_2d2.curNode||(menu&&dom.isDescendant(_2d2.curNode,menu.domNode))?_2d3._prevFocus:_2d2.curNode;return {node:node,bookmark:node&&(node==_2d2.curNode)&&win.withGlobal(_2d6||win.global,_2d3.getBookmark),openedForWindow:_2d6};},_activeStack:[],registerIframe:function(_2d7){return _2d2.registerIframe(_2d7);},unregisterIframe:function(_2d8){_2d8&&_2d8.remove();},registerWin:function(_2d9,_2da){return _2d2.registerWin(_2d9,_2da);},unregisterWin:function(_2db){_2db&&_2db.remove();}});_2d2.focus=function(_2dc){if(!_2dc){return;}var node="node" in _2dc?_2dc.node:_2dc,_2dd=_2dc.bookmark,_2de=_2dc.openedForWindow,_2df=_2dd?_2dd.isCollapsed:false;if(node){var _2e0=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_2e0&&_2e0.focus){try{_2e0.focus();}catch(e){}}_2d2._onFocusNode(node);}if(_2dd&&win.withGlobal(_2de||win.global,_2d3.isCollapsed)&&!_2df){if(_2de){_2de.focus();}try{win.withGlobal(_2de||win.global,_2d3.moveToBookmark,null,[_2dd]);}catch(e2){}}};_2d2.watch("curNode",function(name,_2e1,_2e2){_2d3._curFocus=_2e2;_2d3._prevFocus=_2e1;if(_2e2){_2d1.publish("focusNode",_2e2);}});_2d2.watch("activeStack",function(name,_2e3,_2e4){_2d3._activeStack=_2e4;});_2d2.on("widget-blur",function(_2e5,by){_2d1.publish("widgetBlur",_2e5,by);});_2d2.on("widget-focus",function(_2e6,by){_2d1.publish("widgetFocus",_2e6,by);});return _2d3;});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_2e7,_2e8,_2e9,lang,_2ea,_2eb,has,_2ec,_2ed,_2ee){return _2e9("dojox.mobile.ListItem",_2ed,{rightText:"",rightIcon:"",rightIcon2:"",anchorLabel:false,noArrow:false,selected:false,checked:false,arrowClass:"mblDomButtonArrow",checkClass:"mblDomButtonCheck",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",btnClass:"",btnClass2:"",tag:"li",postMixInProperties:function(){if(this.btnClass){this.rightIcon=this.btnClass;}this._setBtnClassAttr=this._setRightIconAttr;this._setBtnClass2Attr=this._setRightIcon2Attr;},buildRendering:function(){this.domNode=this.srcNodeRef||_2eb.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_2eb.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r&&!this.label){this.label="";for(var i=0,len=r.childNodes.length;i<len;i++){var n=r.firstChild;if(n.nodeType===3&&lang.trim(n.nodeValue)!==""){n.nodeValue=this._cv?this._cv(n.nodeValue):n.nodeValue;this.labelNode=_2eb.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_2eb.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_2eb.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _2ef=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_2ef&&_2ef.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_2ea.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_2ea.add(this.domNode,"mblVariableHeight");setTimeout(lang.hitch(this,"layoutVariableHeight"));}this.set("icon",this.icon);if(!this.checked&&this.checkClass.indexOf(",")!==-1){this.set("checked",this.checked);}this.inherited(arguments);},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(_2ea.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_2ea.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_2ea.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _2f0=this.getParent();if(_2f0.select){if(_2f0.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_2f0.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_2ec.openWindow(this.href,this.hrefTarget);return;}var _2f1;if(this.moveTo||this.href||this.url||this.scene){_2f1={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_2f1=this.transitionOptions;}}if(_2f1){this.setTransitionPos(e);return new _2ee(this.domNode,_2f1,e).dispatch();}},select:function(){var _2f2=this.getParent();if(_2f2.stateful){_2f2.deselectAll();}else{var _2f3=this;setTimeout(function(){_2f3.deselect();},has("android")?300:1000);}_2ea.add(this.domNode,"mblItemSelected");},deselect:function(){_2ea.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_2e7.forEach([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.iconNode],function(n){if(n){var t=Math.round((h-n.offsetHeight)/2);n.style.marginTop=t+"px";}});},setArrow:function(){if(this.checked){return;}var c="";var _2f4=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_2f4&&_2f4.stateful)){c=this.arrowClass;}}if(c){this._setRightIconAttr(c);}},_setIconAttr:function(icon){if(!this.getParent()){return;}this.icon=icon;var a=this.anchorNode;if(!this.iconNode){if(icon){var ref=this.rightIconNode||this.rightIcon2Node||this.rightTextNode||this.box;this.iconNode=_2eb.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_2eb.empty(this.iconNode);}if(icon&&icon!=="none"){_2ec.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_2ea.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_2ea.remove(a,"mblListItemAnchorNoIcon");}else{_2ea.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_2f5){var _2f6=this.getParent();if(_2f6&&_2f6.select==="single"&&_2f5){_2e7.forEach(_2f6.getChildren(),function(_2f7){_2f7.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _2f8=this.rightIconNode.childNodes;if(_2f8.length===1){this.rightIconNode.style.display=_2f5?"":"none";}else{_2f8[0].style.display=_2f5?"":"none";_2f8[1].style.display=!_2f5?"":"none";}_2ea.toggle(this.domNode,"mblListItemChecked",_2f5);if(_2f6&&this.checked!==_2f5){_2f6.onCheckStateChanged(this,_2f5);}this.checked=_2f5;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_2eb.create("DIV",{className:"mblListItemRightText"},this.box,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){if(!this.rightIconNode){var ref=this.rightIcon2Node||this.rightTextNode||this.box;this.rightIconNode=_2eb.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_2eb.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_2ec.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_2ec.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_2ec.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_2eb.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_2eb.empty(this.rightIcon2Node);}this.rightIcon2=icon;_2ec.createIcon(icon,null,null,this.rightIcon2Title,this.rightIcon2Node);},_setLabelAttr:function(text){this.label=text;this.labelNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/app/StageController":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_2f9,dojo,_2fa){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(_2fb,_2fc){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _2fd=new _2fa.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_2fd);var _2fe=this;dojo.forEach(this.scenes,this.setZIndex);_2fd.stageController=this;_2fd.init(_2fb,_2fc).addCallback(function(){if(_2fe.scenes.length==1){_2fd.domNode.style.visibility="visible";_2fe.scenes[_2fe.scenes.length-1].assistant.activate(_2fc);_2fe._opInProgress=false;}else{_2fe.scenes[_2fe.scenes.length-2].performTransition(_2fe.scenes[_2fe.scenes.length-1].domNode,1,_2fe.effect,null,function(){_2fe.scenes[_2fe.scenes.length-1].assistant.activate(_2fc);_2fe._opInProgress=false;});}});},setZIndex:function(_2ff,idx){dojo.style(_2ff.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _300=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_300.scenes.length-2].assistant.activate(data);this.scenes[_300.scenes.length-1].performTransition(_300.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_300._destroyScene(_300.scenes[_300.scenes.length-1]);_300.scenes.splice(_300.scenes.length-1,1);_300._opInProgress=false;});}else{}},popScenesTo:function(_301,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_301){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_302){_302.assistant.deactivate();_302.assistant.destroy();_302.destroyRecursive();}});});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","dojo/window","."],function(_303,_304,_305,_306,win,_307,_308){function _309(node,_30a,_30b,_30c){var view=_307.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){win.body().appendChild(node);}var best=null;_303.some(_30a,function(_30d){var _30e=_30d.corner;var pos=_30d.pos;var _30f=0;var _310={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_30e.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_30e.charAt(0)]};if(_30b){var res=_30b(node,_30d.aroundCorner,_30e,_310,_30c);_30f=typeof res=="undefined"?0:res;}var _311=node.style;var _312=_311.display;var _313=_311.visibility;if(_311.display=="none"){_311.visibility="hidden";_311.display="";}var mb=_304.getMarginBox(node);_311.display=_312;_311.visibility=_313;var _314={"L":pos.x,"R":pos.x-mb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(mb.w>>1))-mb.w)}[_30e.charAt(1)],_315={"T":pos.y,"B":pos.y-mb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(mb.h>>1))-mb.h)}[_30e.charAt(0)],_316=Math.max(view.l,_314),_317=Math.max(view.t,_315),endX=Math.min(view.l+view.w,_314+mb.w),endY=Math.min(view.t+view.h,_315+mb.h),_318=endX-_316,_319=endY-_317;_30f+=(mb.w-_318)+(mb.h-_319);if(best==null||_30f<best.overflow){best={corner:_30e,aroundCorner:_30d.aroundCorner,x:_316,y:_317,w:_318,h:_319,overflow:_30f,spaceAvailable:_310};}return !_30f;});if(best.overflow&&_30b){_30b(node,best.aroundCorner,best.corner,best.spaceAvailable,_30c);}var l=_304.isBodyLtr(),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;};return (_308.place={at:function(node,pos,_31a,_31b){var _31c=_303.map(_31a,function(_31d){var c={corner:_31d,pos:{x:pos.x,y:pos.y}};if(_31b){c.pos.x+=_31d.charAt(1)=="L"?_31b.x:-_31b.x;c.pos.y+=_31d.charAt(0)=="T"?_31b.y:-_31b.y;}return c;});return _309(node,_31c);},around:function(node,_31e,_31f,_320,_321){var _322=(typeof _31e=="string"||"offsetWidth" in _31e)?_304.position(_31e,true):_31e;if(_31e.parentNode){var _323=_31e.parentNode;while(_323&&_323.nodeType==1&&_323.nodeName!="BODY"){var _324=_304.position(_323,true);var _325=_305.getComputedStyle(_323).overflow;if(_325=="hidden"||_325=="auto"||_325=="scroll"){var _326=Math.min(_322.y+_322.h,_324.y+_324.h);var _327=Math.min(_322.x+_322.w,_324.x+_324.w);_322.x=Math.max(_322.x,_324.x);_322.y=Math.max(_322.y,_324.y);_322.h=_326-_322.y;_322.w=_327-_322.x;}_323=_323.parentNode;}}var x=_322.x,y=_322.y,_328="w" in _322?_322.w:(_322.w=_322.width),_329="h" in _322?_322.h:(_306.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+y+", height:"+_322.height+", width:"+_328+" } has been deprecated. Please use { x:"+x+", y:"+y+", h:"+_322.height+", w:"+_328+" }","","2.0"),_322.h=_322.height);var _32a=[];function push(_32b,_32c){_32a.push({aroundCorner:_32b,corner:_32c,pos:{x:{"L":x,"R":x+_328,"M":x+(_328>>1)}[_32b.charAt(1)],y:{"T":y,"B":y+_329,"M":y+(_329>>1)}[_32b.charAt(0)]}});};_303.forEach(_31f,function(pos){var ltr=_320;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 _32d=_309(node,_32a,_321,{w:_328,h:_329});_32d.aroundNodePos=_322;return _32d;}});});},"dojox/mobile/app/_event":function(){define(["dijit","dojo","dojox"],function(_32e,dojo,_32f){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_32f.mobile.app,{eventMap:{},connectFlick:function(_330,_331,_332){var _333;var _334;var _335=false;var _336;var _337;var _338;var _339;var _33a;var time;var _33b=dojo.connect("onmousedown",_330,function(_33c){_335=false;_333=_33c.targetTouches?_33c.targetTouches[0].clientX:_33c.clientX;_334=_33c.targetTouches?_33c.targetTouches[0].clientY:_33c.clientY;time=(new Date()).getTime();_338=dojo.connect(_330,"onmousemove",_33d);_339=dojo.connect(_330,"onmouseup",onUp);});var _33d=function(_33e){dojo.stopEvent(_33e);_336=_33e.targetTouches?_33e.targetTouches[0].clientX:_33e.clientX;_337=_33e.targetTouches?_33e.targetTouches[0].clientY:_33e.clientY;if(Math.abs(Math.abs(_336)-Math.abs(_333))>15){_335=true;_33a=(_336>_333)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_337)-Math.abs(_334))>15){_335=true;_33a=(_337>_334)?"ttb":"btt";}}};var onUp=function(_33f){dojo.stopEvent(_33f);_338&&dojo.disconnect(_338);_339&&dojo.disconnect(_339);if(_335){var _340={target:_330,direction:_33a,duration:(new Date()).getTime()-time};if(_331&&_332){_331[_332](_340);}else{_332(_340);}}};}});_32f.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_32f.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_32f.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_32f.mobile.app.isIPhone||_32f.mobile.app.isAndroid){_32f.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_341,_342,_343,_344){_341=_32f.mobile.app.eventMap[_341]||_341;if(_341=="flick"||_341=="onflick"){if(dojo.global["Mojo"]){_341=Mojo.Event.flick;}else{return _32f.mobile.app.connectFlick(obj,_342,_343);}}return dojo._oldConnect(obj,_341,_342,_343,_344);};});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_345,View,_346,_347,_348,_349,_34a,_34b,_34c,_34d,_34e,_34f){return _345;});},"dojox/mobile/Button":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_ButtonMixin","dijit/form/_FormWidgetMixin"],function(_350,_351,_352,_353,_354,_355,_356){return _351("dojox.mobile.Button",[_354,_356,_355],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _357=this.focusNode||this.domNode;var _358=(this.baseClass+" "+this["class"]).split(" ");_358=_350.map(_358,function(c){return c+"Selected";});_352.add(_357,_358);setTimeout(function(){_352.remove(_357,_358);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_353.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(_359){this.inherited(arguments,[this._cv?this._cv(_359):_359]);}});});},"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","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_35a,_35b,_35c,_35d,win,_35e,_35f,_360,has){return _35c("dojox.mobile.Switch",[_360,_35f],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=win.doc.createElement("DIV");var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];this._swClass=(c||"").replace(/ .*/,"");this.domNode.className="mblSwitch";var _361=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\""+_361+"></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.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_362,anim){var on=(_362==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_35e.add(this.domNode,"mblSwitchAnimation");}_35e.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_35e.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _363=this;setTimeout(function(){_363.left.style.display=on?"":"none";_363.right.style.display=!on?"":"none";_35e.remove(_363.domNode,"mblSwitchAnimation");},anim?300:0);},startup:function(){if(this._swClass.indexOf("Round")!=-1){var r=Math.round(this.domNode.offsetHeight/2);this.createRoundMask(this._swClass,r,this.domNode.offsetWidth);}},createRoundMask:function(_364,r,w){if(!has("webkit")||!_364){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_364]){return;}this._createdMasks[_364]=1;var ctx=win.doc.getCSSCanvasContext("2d",_364+"Mask",w,100);ctx.fillStyle="#000000";ctx.beginPath();ctx.moveTo(r,0);ctx.arcTo(0,0,0,2*r,r);ctx.arcTo(0,2*r,r,2*r,r);ctx.lineTo(w-r,2*r);ctx.arcTo(w,2*r,w,r,r);ctx.arcTo(w,0,w-r,0,r);ctx.closePath();ctx.fill();},onClick:function(e){if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[];this._conn.push(_35b.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_35b.connect(this.inner,has("touch")?"touchend":"onmouseup",this,"onTouchEnd"));}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_35d.stop(e);},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return false;}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){_35a.forEach(this._conn,_35b.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _365=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_365,true);if(_365!=this.value){this.value=this.input.value=_365;this.onStateChanged(_365);}},onStateChanged:function(_366){},_setValueAttr:function(_367){this._changeState(_367,false);if(this.value!=_367){this.onStateChanged(_367);}this.value=this.input.value=_367;},_setLeftLabelAttr:function(_368){this.leftLabel=_368;this.left.firstChild.innerHTML=this._cv?this._cv(_368):_368;},_setRightLabelAttr:function(_369){this.rightLabel=_369;this.right.firstChild.innerHTML=this._cv?this._cv(_369):_369;},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/_base/sniff","dojo/Stateful","dojo/_base/unload","dojo/_base/window","dojo/window","./a11y","./registry","."],function(_36a,_36b,dom,_36c,_36d,_36e,lang,on,_36f,has,_370,_371,win,_372,a11y,_373,_374){var _375=_36b([_370,_36e],{curNode:null,activeStack:[],constructor:function(){var _376=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);}});_36a.before(_36d,"empty",_376);_36a.before(_36d,"destroy",_376);},registerIframe:function(_377){return this.registerWin(_377.contentWindow,_377);},registerWin:function(_378,_379){var _37a=this;var _37b=function(evt){_37a._justMouseDowned=true;setTimeout(function(){_37a._justMouseDowned=false;},0);if(has("ie")&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}_37a._onTouchNode(_379||evt.target||evt.srcElement,"mouse");};var doc=has("ie")?_378.document.documentElement:_378.document;if(doc){if(has("ie")){_378.document.body.attachEvent("onmousedown",_37b);var _37c=function(evt){var tag=evt.srcElement.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(a11y.isTabNavigable(evt.srcElement)){_37a._onFocusNode(_379||evt.srcElement);}else{_37a._onTouchNode(_379||evt.srcElement);}};doc.attachEvent("onactivate",_37c);var _37d=function(evt){_37a._onBlurNode(_379||evt.srcElement);};doc.attachEvent("ondeactivate",_37d);return {remove:function(){_378.document.detachEvent("onmousedown",_37b);doc.detachEvent("onactivate",_37c);doc.detachEvent("ondeactivate",_37d);doc=null;}};}else{doc.body.addEventListener("mousedown",_37b,true);doc.body.addEventListener("touchstart",_37b,true);var _37e=function(evt){_37a._onFocusNode(_379||evt.target);};doc.addEventListener("focus",_37e,true);var _37f=function(evt){_37a._onBlurNode(_379||evt.target);};doc.addEventListener("blur",_37f,true);return {remove:function(){doc.body.removeEventListener("mousedown",_37b,true);doc.body.removeEventListener("touchstart",_37b,true);doc.removeEventListener("focus",_37e,true);doc.removeEventListener("blur",_37f,true);doc=null;}};}}},_onBlurNode:function(){this.set("prevNode",this.curNode);this.set("curNode",null);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(lang.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);this.prevNode=null;}),100);},_onTouchNode:function(node,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _380=[];try{while(node){var _381=_36c.get(node,"dijitPopupParent");if(_381){node=_373.byId(_381).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===win.body()){break;}node=_372.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_382=id&&_373.byId(id);if(_382&&!(by=="mouse"&&_382.get("disabled"))){_380.unshift(id);}node=node.parentNode;}}}}catch(e){}this._setStack(_380,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}this._onTouchNode(node);if(node==this.curNode){return;}this.set("curNode",node);},_setStack:function(_383,by){var _384=this.activeStack;this.set("activeStack",_383);for(var _385=0;_385<Math.min(_384.length,_383.length);_385++){if(_384[_385]!=_383[_385]){break;}}var _386;for(var i=_384.length-1;i>=_385;i--){_386=_373.byId(_384[i]);if(_386){_386._hasBeenBlurred=true;_386.set("focused",false);if(_386._focusManager==this){_386._onBlur(by);}this.emit("widget-blur",_386,by);}}for(i=_385;i<_383.length;i++){_386=_373.byId(_383[i]);if(_386){_386.set("focused",true);if(_386._focusManager==this){_386._onFocus(by);}this.emit("widget-focus",_386,by);}}},focus:function(node){if(node){try{node.focus();}catch(e){}}}});var _387=new _375();_36f(function(){var _388=_387.registerWin(win.doc.parentWindow||win.doc.defaultView);if(has("ie")){_371.addOnWindowUnload(function(){_388.remove();_388=null;});}});_374.focus=function(node){_387.focus(node);};for(var attr in _387){if(!/^_/.test(attr)){_374.focus[attr]=typeof _387[attr]=="function"?lang.hitch(_387,attr):_387[attr];}}_387.watch(function(attr,_389,_38a){_374.focus[attr]=_38a;});return _387;});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/RoundRect":function(){define("dojox/mobile/RoundRect",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_38b,_38c,win,_38d,_38e,_38f){return _38c("dojox.mobile.RoundRect",[_38f,_38e,_38d],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_38b.forEach(this.getChildren(),function(_390){if(_390.resize){_390.resize();}});}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_391,dom,_392,_393){return _391("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_392.stop(e);return false;}var _394=this.onClick(e)===false;if(!_394&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _395=_393.byNode(node);if(_395&&typeof _395._onSubmit=="function"){_395._onSubmit(e);_394=true;break;}}}if(_394){e.preventDefault();}return !_394;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_396){this._set("label",_396);(this.containerNode||this.focusNode).innerHTML=_396;}});});},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){});},"dojox/mobile/RoundRectCategory":function(){define("dojox/mobile/RoundRectCategory",["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_397,win,_398,_399){return _397("dojox.mobile.RoundRectCategory",[_399,_398],{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(!this.label){this.label=this.domNode.innerHTML;}},_setLabelAttr:function(_39a){this.label=_39a;this.domNode.innerHTML=this._cv?this._cv(_39a):_39a;}});});},"dojox/mobile/app/TextBox":function(){define(["dijit","dojo","dojox","dojo/require!dojox/mobile/TextBox"],function(_39b,dojo,_39c){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");_39c.mobile.app.TextBox=_39c.mobile.TextBox;});},"dojox/mobile/app/SceneAssistant":function(){define(["dijit","dojo","dojox"],function(_39d,dojo,_39e){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(_39f){},deactivate:function(){},destroy:function(){var _3a0=dojo.query("> [widgetId]",this.containerNode).map(_39d.byNode);dojo.forEach(_3a0,function(_3a1){_3a1.destroyRecursive();});this.disconnect();},connect:function(obj,_3a2,_3a3){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_3a2,_3a3));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","../popup","../BackgroundIframe"],function(_3a4,_3a5){var _3a6=_3a5._createWrapper;_3a5._createWrapper=function(_3a7){if(!_3a7.declaredClass){_3a7={_popupWrapper:(_3a7.parentNode&&_3a4.contains(_3a7.parentNode,"dijitPopup"))?_3a7.parentNode:null,domNode:_3a7,destroy:function(){}};}return _3a6.call(this,_3a7);};var _3a8=_3a5.open;_3a5.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 _3a8.call(this,args);};return _3a5;});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_3a9,_3aa){if(_3aa["mblCSS3Transition"]){var _3ab=new _3a9();require([_3aa["mblCSS3Transition"]],function(_3ac){_3ab.resolve(_3ac);});return _3ab;}return null;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","..","../hccss"],function(_3ad,lang,_3ae){lang.mixin(_3ae,{hasWaiRole:function(elem,role){var _3af=this.getWaiRole(elem);return role?(_3af.indexOf(role)>-1):(_3af.length>0);},getWaiRole:function(elem){return lang.trim((_3ad.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_3ad.set(elem,"role",role);},removeWaiRole:function(elem,role){var _3b0=_3ad.get(elem,"role");if(!_3b0){return;}if(role){var t=lang.trim((" "+_3b0+" ").replace(" "+role+" "," "));_3ad.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_3b1){return elem.hasAttribute?elem.hasAttribute("aria-"+_3b1):!!elem.getAttribute("aria-"+_3b1);},getWaiState:function(elem,_3b2){return elem.getAttribute("aria-"+_3b2)||"";},setWaiState:function(elem,_3b3,_3b4){elem.setAttribute("aria-"+_3b3,_3b4);},removeWaiState:function(elem,_3b5){elem.removeAttribute("aria-"+_3b5);}});return _3ae;});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style"],function(lang,has,_3b6,dom,geom,_3b7){var _3b8=lang.getObject("dojo.window",true);_3b8.getBox=function(){var _3b9=(_3b6.doc.compatMode=="BackCompat")?_3b6.body():_3b6.doc.documentElement,_3ba=geom.docScroll(),w,h;if(has("touch")){var _3bb=_3b6.doc.parentWindow||_3b6.doc.defaultView;w=_3bb.innerWidth||_3b9.clientWidth;h=_3bb.innerHeight||_3b9.clientHeight;}else{w=_3b9.clientWidth;h=_3b9.clientHeight;}return {l:_3ba.x,t:_3ba.y,w:w,h:h};};_3b8.get=function(doc){if(has("ie")&&_3b8!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_3b8.scrollIntoView=function(node,pos){try{node=dom.byId(node);var doc=node.ownerDocument||_3b6.doc,body=doc.body||_3b6.body(),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 _3bc=doc.compatMode=="BackCompat",_3bd=(isIE>=9&&node.ownerDocument.parentWindow.frameElement)?((html.clientHeight>0&&html.clientWidth>0&&(body.clientHeight==0||body.clientWidth==0||body.clientHeight>html.clientHeight||body.clientWidth>html.clientWidth))?html:body):(_3bc?body:html),_3be=isWK?body:_3bd,_3bf=_3bd.clientWidth,_3c0=_3bd.clientHeight,rtl=!geom.isBodyLtr(),_3c1=pos||geom.position(node),el=node.parentNode,_3c2=function(el){return ((isIE<=6||(isIE&&_3bc))?false:(_3b7.get(el,"position").toLowerCase()=="fixed"));};if(_3c2(node)){return;}while(el){if(el==body){el=_3be;}var _3c3=geom.position(el),_3c4=_3c2(el);if(el==_3be){_3c3.w=_3bf;_3c3.h=_3c0;if(_3be==html&&isIE&&rtl){_3c3.x+=_3be.offsetWidth-_3c3.w;}if(_3c3.x<0||!isIE){_3c3.x=0;}if(_3c3.y<0||!isIE){_3c3.y=0;}}else{var pb=geom.getPadBorderExtents(el);_3c3.w-=pb.w;_3c3.h-=pb.h;_3c3.x+=pb.l;_3c3.y+=pb.t;var _3c5=el.clientWidth,_3c6=_3c3.w-_3c5;if(_3c5>0&&_3c6>0){_3c3.w=_3c5;_3c3.x+=(rtl&&(isIE||el.clientLeft>pb.l))?_3c6:0;}_3c5=el.clientHeight;_3c6=_3c3.h-_3c5;if(_3c5>0&&_3c6>0){_3c3.h=_3c5;}}if(_3c4){if(_3c3.y<0){_3c3.h+=_3c3.y;_3c3.y=0;}if(_3c3.x<0){_3c3.w+=_3c3.x;_3c3.x=0;}if(_3c3.y+_3c3.h>_3c0){_3c3.h=_3c0-_3c3.y;}if(_3c3.x+_3c3.w>_3bf){_3c3.w=_3bf-_3c3.x;}}var l=_3c1.x-_3c3.x,t=_3c1.y-Math.max(_3c3.y,0),r=l+_3c1.w-_3c3.w,bot=t+_3c1.h-_3c3.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_3bc)||isIE>=9)){s=-s;}_3c1.x+=el.scrollLeft;el.scrollLeft+=s;_3c1.x-=el.scrollLeft;}if(bot*t>0){_3c1.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_3c1.y-=el.scrollTop;}el=(el!=_3be)&&!_3c4&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};return _3b8;});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_3c7,_3c8){return _3c7("dojox.mobile.EdgeToEdgeList",_3c8,{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/_base/sniff","dojo/_base/window","./place","./BackgroundIframe","."],function(_3c9,_3ca,_3cb,_3cc,dom,_3cd,_3ce,_3cf,_3d0,_3d1,keys,lang,on,has,win,_3d2,_3d3,_3d4){var _3d5=_3cc(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_3d6){var _3d7=_3d6._popupWrapper,node=_3d6.domNode;if(!_3d7){_3d7=_3ce.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},win.body());_3d7.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_3d6._popupWrapper=_3d7;_3ca.after(_3d6,"destroy",function(){_3ce.destroy(_3d7);delete _3d6._popupWrapper;});}return _3d7;},moveOffScreen:function(_3d8){var _3d9=this._createWrapper(_3d8);_3d0.set(_3d9,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_3da){var _3db=this._createWrapper(_3da);_3d0.set(_3db,"display","none");},getTopPopup:function(){var _3dc=this._stack;for(var pi=_3dc.length-1;pi>0&&_3dc[pi].parent===_3dc[pi-1].widget;pi--){}return _3dc[pi];},open:function(args){var _3dd=this._stack,_3de=args.popup,_3df=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_3cf.isBodyLtr(),_3e0=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_3dd.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_3dd[_3dd.length-1].widget.domNode))){this.close(_3dd[_3dd.length-1].widget);}var _3e1=this._createWrapper(_3de);_3cd.set(_3e1,{id:id,style:{zIndex:this._beginZIndex+_3dd.length},"class":"dijitPopup "+(_3de.baseClass||_3de["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("ie")||has("mozilla")){if(!_3de.bgIframe){_3de.bgIframe=new _3d3(_3e1);}}var best=_3e0?_3d2.around(_3e1,_3e0,_3df,ltr,_3de.orient?lang.hitch(_3de,"orient"):null):_3d2.at(_3e1,args,_3df=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_3e1.style.display="";_3e1.style.visibility="visible";_3de.domNode.style.visibility="visible";var _3e2=[];_3e2.push(on(_3e1,_3cb._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_3d1.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_3d1.stop(evt);var _3e3=this.getTopPopup();if(_3e3&&_3e3.onCancel){_3e3.onCancel();}}}})));if(_3de.onCancel&&args.onCancel){_3e2.push(_3de.on("cancel",args.onCancel));}_3e2.push(_3de.on(_3de.onExecute?"execute":"change",lang.hitch(this,function(){var _3e4=this.getTopPopup();if(_3e4&&_3e4.onExecute){_3e4.onExecute();}})));_3dd.push({widget:_3de,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_3e2});if(_3de.onOpen){_3de.onOpen(best);}return best;},close:function(_3e5){var _3e6=this._stack;while((_3e5&&_3c9.some(_3e6,function(elem){return elem.widget==_3e5;}))||(!_3e5&&_3e6.length)){var top=_3e6.pop(),_3e7=top.widget,_3e8=top.onClose;if(_3e7.onClose){_3e7.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_3e7&&_3e7.domNode){this.hide(_3e7);}if(_3e8){_3e8();}}}});return (_3d4.popup=new _3d5());});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(dojo,lang,win,has){win.doc.documentElement.className+=lang.trim([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",".."],function(_3e9,_3ea){_3ea.getDocumentWindow=function(doc){return _3e9.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/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_3eb,_3ec,_3ed,_3ee,_3ef,_3f0,dom,_3f1,_3f2,_3f3,_3f4,_3f5,_3f6,lang,on,_3f7,_3f8,_3f9,win,_3fa){if(!_3f6.isAsync){_3f7(0,function(){var _3fb=["dijit/_base/manager"];_3eb(_3fb);});}var _3fc={};function _3fd(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _3fe(attr){return function(val){_3f1[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _3f0("dijit._WidgetBase",_3f8,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_3fe("lang"),dir:"",_setDirAttr:_3fe("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_3ee.blankGif||_3eb.toUrl("dojo/resources/blank.gif"),postscript:function(_3ff,_400){this.create(_3ff,_400);},create:function(_401,_402){this.srcNodeRef=dom.byId(_402);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_401){this.params=_401;lang.mixin(this,_401);}this.postMixInProperties();if(!this.id){this.id=_3fa.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_3fa.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _403=this.srcNodeRef;if(_403&&_403.parentNode&&this.domNode!==_403){_403.parentNode.replaceChild(this.domNode,_403);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){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 _404=ctor.prototype;for(var _405 in _404){if(_405 in this.attributeMap){continue;}var _406="_set"+_405.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_406 in _404){list.push(_405);}}}_3ec.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _407 in this.params){this.set(_407,this[_407]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_3f3.create("div");}if(this.baseClass){var _408=this.baseClass.split(" ");if(!this.isLeftToRight()){_408=_408.concat(_3ec.map(_408,function(name){return name+"Rtl";}));}_3f2.add(this.domNode,_408);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_3ec.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_409){this._beingDestroyed=true;this.destroyDescendants(_409);this.destroy(_409);},destroy:function(_40a){this._beingDestroyed=true;this.uninitialize();var c;while(c=this._connects.pop()){c.remove();}var w;while(w=this._supportingWidgets.pop()){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_40a);_3fa.remove(this.id);this._destroyed=true;},destroyRendering:function(_40b){if(this.bgIframe){this.bgIframe.destroy(_40b);delete this.bgIframe;}if(this.domNode){if(_40b){_3f1.remove(this.domNode,"widgetId");}else{_3f3.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_40b){_3f3.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_40c){_3ec.forEach(this.getChildren(),function(_40d){if(_40d.destroyRecursive){_40d.destroyRecursive(_40c);}});},uninitialize:function(){return false;},_setStyleAttr:function(_40e){var _40f=this.domNode;if(lang.isObject(_40e)){_3f5.set(_40f,_40e);}else{if(_40f.style.cssText){_40f.style.cssText+="; "+_40e;}else{_40f.style.cssText=_40e;}}this._set("style",_40e);},_attrToDom:function(attr,_410,_411){_411=arguments.length>=3?_411:this.attributeMap[attr];_3ec.forEach(lang.isArray(_411)?_411:[_411],function(_412){var _413=this[_412.node||_412||"domNode"];var type=_412.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_410)){_410=lang.hitch(this,_410);}var _414=_412.attribute?_412.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_3f1.set(_413,_414,_410);break;case "innerText":_413.innerHTML="";_413.appendChild(win.doc.createTextNode(_410));break;case "innerHTML":_413.innerHTML=_410;break;case "class":_3f2.replace(_413,_410,this[attr]);break;}},this);},get:function(name){var _415=this._getAttrNames(name);return this[_415.g]?this[_415.g]():this[name];},set:function(name,_416){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _417=this._getAttrNames(name),_418=this[_417.s];if(lang.isFunction(_418)){var _419=_418.apply(this,Array.prototype.slice.call(arguments,1));}else{var _41a=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_41a].tagName,_41b=_3fc[tag]||(_3fc[tag]=_3fd(this[_41a])),map=name in this.attributeMap?this.attributeMap[name]:_417.s in this?this[_417.s]:((_417.l in _41b&&typeof _416!="function")||/^aria-|^data-|^role$/.test(name))?_41a:null;if(map!=null){this._attrToDom(name,_416,map);}this._set(name,_416);}return _419||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,_41c){var _41d=this[name];this[name]=_41c;if(this._watchCallbacks&&this._created&&_41c!==_41d){this._watchCallbacks(name,_41d,_41c);}},on:function(type,func){return _3ed.after(this,this._onMap(type),func,true);},_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[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_3fa.findWidgets(this.containerNode):[];},getParent:function(){return _3fa.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_41e,_41f){var _420=_3ef.connect(obj,_41e,this,_41f);this._connects.push(_420);return _420;},disconnect:function(_421){var i=_3ec.indexOf(this._connects,_421);if(i!=-1){_421.remove();this._connects.splice(i,1);}},subscribe:function(t,_422){var _423=_3f9.subscribe(t,lang.hitch(this,_422));this._connects.push(_423);return _423;},unsubscribe:function(_424){this.disconnect(_424);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_3f4.isBodyLtr();},isFocusable:function(){return this.focus&&(_3f5.get(this.domNode,"display")!="none");},placeAt:function(_425,_426){if(_425.declaredClass&&_425.addChild){_425.addChild(this,_426);}else{_3f3.place(this.domNode,_425,_426);}return this;},getTextDir:function(text,_427){return _427;},applyTextDir:function(){}});});},"dojox/mobile/app/AlertDialog":function(){define(["dijit","dojo","dojox","dojo/require!dijit/_WidgetBase"],function(_428,dojo,_429){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_428._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 _42a=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_42a);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_42a);var _42b=dojo.create("div",{"class":"alertBtns"},_42a);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _42c=this;dojo.forEach(this.buttons,function(_42d){var btn=new _429.mobile.Button({btnClass:_42d["class"]||"",label:_42d.label});btn._dialogValue=_42d.value;dojo.place(btn.domNode,_42b);_42c.connect(btn,"onClick",_42c._handleSelect);});var _42e=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_42e.w+"px",height:_42e.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_42c.onChoose&&_42c.onChoose();_42c.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_42f){var node;if(_42f&&_42f.target){node=_42f.target;while(!_428.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_428.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 _430=this.controller.getWindowSize().h;var high=_430-h;var low=_430;var _431=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _432=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_431,_432]);var _433=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_433.domNode.style.display="none";dojo.destroy(_433.domNode);dojo.destroy(_433.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});}}});require(["dojo/i18n"],function(i18n){i18n._preloadLocalizations("dojox/mobile/nls/app",[]);});define("dojox/mobile/app",["./app/_base"],function(_434){return _434;});