/* Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ /* This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_1,_2){return _1("dojox.mobile.EdgeToEdgeList",_2,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./on","./has","./mouse","./domReady","./_base/window"],function(_3,_4,_5,on,_6,_7,_8,_9){var _a=_6("touch");var _b=false;if(_6("ios")){var ua=navigator.userAgent;var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));_b=os<5;}var _c;function _d(_e,_f){if(_a){return function(_10,_11){var _12=on(_10,_f,_11),_13=on(_10,_e,function(evt){if(!_c||(new Date()).getTime()>_c+1000){_11.call(this,evt);}});return {remove:function(){_12.remove();_13.remove();}};};}else{return function(_14,_15){return on(_14,_e,_15);};}};var _16,_17;if(_a){_8(function(){_17=_9.body();_9.doc.addEventListener("touchstart",function(evt){_c=(new Date()).getTime();var _18=_17;_17=evt.target;on.emit(_18,"dojotouchout",{target:_18,relatedTarget:_17,bubbles:true});on.emit(_17,"dojotouchover",{target:_17,relatedTarget:_18,bubbles:true});},true);on(_9.doc,"touchmove",function(evt){_c=(new Date()).getTime();var _19=_9.doc.elementFromPoint(evt.pageX-(_b?0:_9.global.pageXOffset),evt.pageY-(_b?0:_9.global.pageYOffset));if(_19&&_17!==_19){on.emit(_17,"dojotouchout",{target:_17,relatedTarget:_19,bubbles:true});on.emit(_19,"dojotouchover",{target:_19,relatedTarget:_17,bubbles:true});_17=_19;}});});_16=function(_1a,_1b){return on(_9.doc,"touchmove",function(evt){if(_1a===_9.doc||_5.isDescendant(_17,_1a)){evt.target=_17;_1b.call(this,evt);}});};}var _1c={press:_d("mousedown","touchstart"),move:_d("mousemove",_16),release:_d("mouseup","touchend"),cancel:_d(_7.leave,"touchcancel"),over:_d("mouseover","dojotouchover"),out:_d("mouseout","dojotouchout"),enter:_7._eventHandler(_d("mouseover","dojotouchover")),leave:_7._eventHandler(_d("mouseout","dojotouchout"))};1&&(_3.touch=_1c);return _1c;});},"dojox/mobile/iconUtils":function(){define("dojox/mobile/iconUtils",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_1d,_1e,_1f,_20,_21,win,_22,_23,_24,has){var dm=_21.getObject("dojox.mobile",true);var _25=function(){this.setupSpriteIcon=function(_26,_27){if(_26&&_27){var arr=_1d.map(_27.split(/[ ,]/),function(_28){return _28-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_24.set(_26,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_26.parentNode?_24.get(_26,"top"):0)-t+"px",left:-l+"px"});_22.add(_26,"mblSpriteIcon");}};this.createDomButton=function(_29,_2a,_2b){if(!this._domButtons){if(has("webkit")){var _2c=function(_2d,dic){var i,j;if(!_2d){var _2e={};var ss=win.doc.styleSheets;for(i=0;i/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}return dic;};this._domButtons=_2c();}else{this._domButtons={};}}var s=_29.className;var _32=_2b||_29;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _33=RegExp.$1;var _34=4;if(s.match(/(mblDomButton\w+_(\d+))/)){_34=RegExp.$2-0;}else{if(this._domButtons[_33]!==undefined){_34=this._domButtons[_33];}}var _35=null;if(has("bb")&&_1e["mblBBBoxShadowWorkaround"]!==false){_35={style:"-webkit-box-shadow:none"};}for(var i=0,p=_32;i<_34;i++){p=p.firstChild||_23.create("div",_35,p);}if(_2b){setTimeout(function(){_22.remove(_29,_33);},0);_22.add(_2b,_33);}}else{if(s.indexOf(".")!==-1){_23.create("img",{src:s},_32);}else{return null;}}_22.add(_32,"mblDomButton");!!_2a&&_24.set(_32,_2a);return _32;};this.createIcon=function(_36,_37,_38,_39,_3a,_3b,pos){_39=_39||"";if(_36&&_36.indexOf("mblDomButton")===0){if(!_38){_38=_23.create("div",null,_3b||_3a,pos);}else{if(_38.className.match(/(mblDomButton\w+)/)){_22.remove(_38,RegExp.$1);}}_38.title=_39;_22.add(_38,_36);this.createDomButton(_38);}else{if(_36&&_36!=="none"){if(!_38||_38.nodeName!=="IMG"){_38=_23.create("img",{alt:_39},_3b||_3a,pos);}_38.src=(_36||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(_38,_37);if(_37&&_3a){var arr=_37.split(/[ ,]/);_24.set(_3a,{width:arr[2]+"px",height:arr[3]+"px"});_22.add(_3a,"mblSpriteIconParent");}_1f.connect(_38,"ondragstart",_20,"stop");}}return _38;};this.iconWrapper=false;this.setIcon=function(_3c,_3d,_3e,alt,_3f,_40,pos){if(!_3f||!_3c&&!_3e){return null;}if(_3c&&_3c!=="none"){if(!this.iconWrapper&&_3c.indexOf("mblDomButton")!==0&&!_3d){if(_3e&&_3e.tagName==="DIV"){_23.destroy(_3e);_3e=null;}_3e=this.createIcon(_3c,null,_3e,alt,_3f,_40,pos);_22.add(_3e,"mblImageIcon");}else{if(_3e&&_3e.tagName==="IMG"){_23.destroy(_3e);_3e=null;}_3e&&_23.empty(_3e);if(!_3e){_3e=_23.create("div",null,_40||_3f,pos);}this.createIcon(_3c,_3d,null,null,_3e);if(alt){_3e.title=alt;}}_22.remove(_3f,"mblNoIcon");return _3e;}else{_23.destroy(_3e);_22.add(_3f,"mblNoIcon");return null;}};};return new _25();});},"dojox/mobile/uacss":function(){define("dojox/mobile/uacss",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(_41,_42,win,has){var _43=win.doc.documentElement;_43.className=_42.trim(_43.className+" "+[has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return _41;});},"dojox/mobile/Pane":function(){define("dojox/mobile/Pane",["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_44,_45,_46,_47){return _45("dojox.mobile.Pane",[_47,_46],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_44.forEach(this.getChildren(),function(_48){if(_48.resize){_48.resize();}});}});});},"dojox/mobile/RoundRect":function(){define("dojox/mobile/RoundRect",["dojo/_base/declare","dojo/dom-class","./Container"],function(_49,_4a,_4b){return _49("dojox.mobile.RoundRect",_4b,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_4a.add(this.domNode,"mblShadow");}}});});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator"],function(_4c,_4d,_4e,_4f,_50,_51,_52,_53,_54,_55,_56){var _57=_4d("dojox.mobile.ListItem",_55,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_50.create(this.tag);this.inherited(arguments);if(this.selected){_4f.add(this.domNode,this._selClass);}if(this.header){_4f.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}this.labelNode=_50.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);if(this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this._anchorClickHandle=this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _58=this.getParent();var _59=this.getTransOpts();if(_59.moveTo||_59.href||_59.url||this.clickable||(_58&&_58.select)){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}else{this._handleClick=false;}this.inherited(arguments);if(_4f.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_4f.add(this.domNode,"mblVariableHeight");this.defer(_4e.hitch(this,"layoutVariableHeight"),0);}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this._pending_icon!==undefined?this._pending_icon:this.icon,deleteIcon:this._pending_deleteIcon!==undefined?this._pending_deleteIcon:this.deleteIcon,rightIcon:this._pending_rightIcon!==undefined?this._pending_rightIcon:this.rightIcon,rightIcon2:this._pending_rightIcon2!==undefined?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:this._pending_uncheckIcon!==undefined?this._pending_uncheckIcon:this.uncheckIcon});delete this._pending_icon;delete this._pending_deleteIcon;delete this._pending_rightIcon;delete this._pending_rightIcon2;delete this._pending_uncheckIcon;}if(_58&&_58.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);delete this._pendingChecked;}this.setArrow();this.layoutChildren();},layoutChildren:function(){var _5a;_4c.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _5b=n.getAttribute("layout")||(_52.byNode(n)||{}).layout;if(_5b){_4f.add(n,"mblListItemLayout"+_5b.charAt(0).toUpperCase()+_5b.substring(1));this._layoutChildren.push(n);if(_5b==="center"){_5a=n;}}},this);if(_5a){this.domNode.insertBefore(_5a,this.domNode.firstChild);}},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||(_52.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if(this.anchorLabel&&e.currentTarget===n){_4f.add(n,"mblListItemLabelSelected");setTimeout(function(){_4f.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _5c=this.getParent();if(_5c.select){if(_5c.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_5c.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_4c.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _5d=this.domNode;var f=function(){var t=Math.round((_5d.offsetHeight-n.offsetHeight)/2)-_51.get(_5d,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _5e=this.getParent();var _5f=this.getTransOpts();if(_5f.moveTo||_5f.href||_5f.url||this.clickable){if(!this.noArrow&&!(_5e&&_5e.selectOne)){c=this.arrowClass||"mblDomButtonArrow";}}if(c){this._setRightIconAttr(c);}},_findRef:function(_60){var i,_61,_62=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_4c.indexOf(_62,_60)+1;i<_62.length;i++){_61=this[_62[i]+"Node"];if(_61){return _61;}}for(i=_62.length-1;i>=0;i--){_61=this[_62[i]+"Node"];if(_61){return _61.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(_63,_64){if(!this._isOnLine){this["_pending_"+_64]=_63;return;}this._set(_64,_63);this[_64+"Node"]=_54.setIcon(_63,this[_64+"Pos"],this[_64+"Node"],this[_64+"Title"]||this.alt,this.domNode,this._findRef(_64),"before");if(this[_64+"Node"]){var cap=_64.charAt(0).toUpperCase()+_64.substring(1);_4f.add(this[_64+"Node"],"mblListItem"+cap);}var _65=this[_64+"Role"];if(_65){this[_64+"Node"].setAttribute("role",_65);}},_setDeleteIconAttr:function(_66){this._setIcon(_66,"deleteIcon");},_setIconAttr:function(_67){this._setIcon(_67,"icon");},_setRightTextAttr:function(_68){if(!this.rightTextNode){this.rightTextNode=_50.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=_68;this.rightTextNode.innerHTML=this._cv?this._cv(_68):_68;},_setRightIconAttr:function(_69){this._setIcon(_69,"rightIcon");},_setUncheckIconAttr:function(_6a){this._setIcon(_6a,"uncheckIcon");},_setRightIcon2Attr:function(_6b){this._setIcon(_6b,"rightIcon2");},_setCheckedAttr:function(_6c){if(!this._isOnLine){this._pendingChecked=_6c;return;}var _6d=this.getParent();if(_6d&&_6d.select==="single"&&_6c){_4c.forEach(_6d.getChildren(),function(_6e){_6e!==this&&_6e.checked&&_6e.set("checked",false);},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_4f.toggle(this.domNode,"mblListItemChecked",_6c);_4f.toggle(this.domNode,"mblListItemUnchecked",!_6c);_4f.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_6c)?"absolute":"";if(_6d&&this.checked!==_6c){_6d.onCheckStateChanged(this,_6c);}this._set("checked",_6c);},_setBusyAttr:function(_6f){var _70=this._prog;if(_6f){if(!this._progNode){this._progNode=_50.create("div",{className:"mblListItemIcon"});_70=this._prog=new _56({size:25,center:false});_4f.add(_70.domNode,this.progStyle);this._progNode.appendChild(_70.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_50.place(this._progNode,this._findRef("icon"),"before");}_70.start();}else{if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}_70.stop();}this._set("busy",_6f);},_setSelectedAttr:function(_71){this.inherited(arguments);_4f.toggle(this.domNode,this._selClass,_71);}});_57.ChildWidgetProperties={layout:"",preventTouch:false};_4e.extend(_53,_57.ChildWidgetProperties);return _57;});},"dojox/mobile/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_72,_73,_74,on,_75){return _72("dojox.mobile.TransitionEvent",null,{constructor:function(_76,_77,_78){this.transitionOptions=_77;this.target=_76;this.triggerEvent=_78||null;},dispatch:function(){var _79={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",_79);if(evt){_73.when(_75,_74.hitch(this,function(_7a){_73.when(_7a.call(this,evt),_74.hitch(this,function(_7b){this.endTransition(_7b);}));}));}},endTransition:function(_7c){on.emit(this.target,"endTransition",{detail:_7c.transitionOptions});}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_7d,_7e){return _7d("dijit._Contained",null,{_getSibling:function(_7f){var _80=this.domNode;do{_80=_80[_7f+"Sibling"];}while(_80&&_80.nodeType!=1);return _80&&_7e.byNode(_80);},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);}});});},"dojox/mobile/sniff":function(){define("dojox/mobile/sniff",["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",(ua.indexOf("BlackBerry")>=0||ua.indexOf("BB10")>=0)&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils","./sniff"],function(_81,_82,_83,win,_84,_85,_86,_87,_88,_89,_8a,_8b,has){return _82("dojox.mobile._ItemBase",[_89,_88,_87],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}if(this._handleClick&&this._selStartMethod==="touch"){this._onTouchStartHandle=this.connect(this.domNode,_85.press,"_onTouchStart");}this.inherited(arguments);},inheritParams:function(){var _8c=this.getParent();if(_8c){_81.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var _8d=p+"Base",pos=p+"Pos";if(this[p]&&_8c[_8d]&&_8c[_8d].charAt(_8c[_8d].length-1)==="/"){this[p]=_8c[_8d]+this[p];}if(!this[p]){this[p]=_8c[_8d];}if(!this[pos]){this[pos]=_8c[pos];}}if(!this[p]){this[p]=_8c[p];}},this);}return !!_8c;},getTransOpts:function(){var _8e=this.transitionOptions||{};_81.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){_8e[p]=_8e[p]||this[p];},this);return _8e;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._delayedSelection){this.set("selected",true);}if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){var _8f=this;this.defer(function(){_8f.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var _90=this.getTransOpts();var _91=!!(_90.moveTo||_90.href||_90.url||_90.target||_90.scene);if(this._prepareForTransition(e,_91?_90:null)===false){return;}if(_91){this.setTransitionPos(e);new _8a(this.domNode,_90,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_92){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_85.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_85.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=setTimeout(_83.hitch(this,function(){this.set("selected",true);}),100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){clearTimeout(this._selTimer);this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_84.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_93,_94,url,_95){var _96=(_93&&typeof (_93)==="object")?_93:{moveTo:_93,href:_94,url:url,scene:_95,transition:this.transition,transitionDir:this.transitionDir};new _8a(this.domNode,_96).dispatch();},_setIconAttr:function(_97){if(!this._isOnLine){this._pendingIcon=_97;return;}this._set("icon",_97);this.iconNode=_8b.setIcon(_97,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(_98){this._set("label",_98);this.labelNode.innerHTML=this._cv?this._cv(_98):_98;},_setSelectedAttr:function(_99){if(_99){var p=this.getParent();if(p&&p.selectOne){var arr=_81.filter(p.getChildren(),function(w){return w.selected;});_81.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_99);}});});},"dijit/Destroyable":function(){define("dijit/Destroyable",["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_9a,_9b,_9c){return _9c("dijit.Destroyable",null,{destroy:function(_9d){this._destroyed=true;},own:function(){_9a.forEach(arguments,function(_9e){var _9f="destroyRecursive" in _9e?"destroyRecursive":"destroy" in _9e?"destroy":"remove";var odh=_9b.before(this,"destroy",function(_a0){_9e[_9f](_a0);});var hdh=_9b.after(_9e,_9f,function(){odh.remove();hdh.remove();},true);},this);return arguments;}});});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry"],function(_a1,_a2,_a3,_a4,_a5,has,win,_a6,dom,_a7,_a8,_a9,_aa,_ab,_ac,_ad,_ae,_af,_b0,_b1,_b2){var dm=_a5.getObject("dojox.mobile",true);return _a4("dojox.mobile.View",[_ae,_ad,_ac],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_b3,_b4){if(_b4){dom.byId(_b4).style.visibility="hidden";}},destroy:function(){_b2.remove(this.id);this.inherited(arguments);},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||_a8.create(this.tag);this._animEndHandle=this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this._animStartHandle=this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_a2["mblCSS3Transition"]){this._transEndHandle=this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}if(has("mblAndroid3Workaround")){_aa.set(this.domNode,"webkitTransformStyle","preserve-3d");}_b2.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _b5=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _b6,_b7,_b8;_a1.forEach(_b5,function(v,i){if(_a1.indexOf(ids,v.id)!==-1){_b6=v;}if(i==0){_b8=v;}if(v.selected){_b7=v;}v._visible=false;},this);(_b6||_b7||_b8)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_a3.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility!="visible"){this.domNode.style.visibility="visible";}this.inherited(arguments);var _b9=this.getParent();if(!_b9||!_b9.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_a1.forEach(this.getChildren(),function(_ba){if(_ba.resize){_ba.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_bb,dir,_bc,_bd,_be){},onAfterTransitionIn:function(_bf,dir,_c0,_c1,_c2){},onBeforeTransitionOut:function(_c3,dir,_c4,_c5,_c6){},onAfterTransitionOut:function(_c7,dir,_c8,_c9,_ca){},_clearClasses:function(_cb){if(!_cb){return;}var _cc=[];_a1.forEach(_a5.trim(_cb.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_cc.push(c);}},this);_cb.className=_cc.join(" ");},_fixViewState:function(_cd){var _ce=this.domNode.parentNode.childNodes;for(var i=0;i<_ce.length;i++){var n=_ce[i];if(n.nodeType===1&&_a7.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_cd);var _cf=_ab.byNode(_cd);if(_cf){_cf._inProgress=false;}},convertToId:function(_d0){if(typeof (_d0)=="string"){return _d0.replace(/^#?([^&?]+).*/,"$1");}return _d0;},_isBookmarkable:function(_d1){return _d1.moveTo&&(_a2["mblForceBookmarkable"]||_d1.moveTo.charAt(0)==="#")&&!_d1.hashchange;},performTransition:function(_d2,_d3,_d4,_d5,_d6){if(this._inProgress){return;}this._inProgress=true;var _d7,_d8;if(_d2&&typeof (_d2)==="object"){_d7=_d2;_d8=_d3;}else{_d7={moveTo:_d2,transitionDir:_d3,transition:_d4,context:_d5,method:_d6};_d8=[];for(var i=5;i1||_de!==0){_da.style.top=_de-_dd+"px";if(_a2["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_de||1));},0);}}}else{_d9.style.top="0px";}_dc.onBeforeTransitionIn.apply(_dc,this._arguments);_a3.publish("/dojox/mobile/beforeTransitionIn",[_dc].concat(_a5._toArray(this._arguments)));}_d9.style.display="none";_d9.style.visibility="visible";_b0.fromView=this;_b0.toView=_dc;this._doTransition(_da,_d9,_d7.transition,_d7.transitionDir);},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_df,_e0,_e1,_e2){var rev=(_e2==-1)?" mblReverse":"";_e0.style.display="";if(!_e1||_e1=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_a2["mblCSS3Transition"]){_a6.when(_b1,_a5.hitch(this,function(_e3){var _e4=_aa.get(_e0,"position");_aa.set(_e0,"position","absolute");_a6.when(_e3(_df,_e0,{transition:_e1,reverse:(_e2===-1)?true:false}),_a5.hitch(this,function(){_aa.set(_e0,"position",_e4);this.invokeCallback();}));}));}else{if(_e1.indexOf("cube")!=-1){if(has("ipad")){_aa.set(_e0.parentNode,{webkitPerspective:1600});}else{if(has("iphone")){_aa.set(_e0.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_e1);if(has("mblAndroidWorkaround")){setTimeout(function(){_a7.add(_df,s+" mblOut"+rev);_a7.add(_e0,s+" mblIn"+rev);_a7.remove(_e0,"mblAndroidWorkaround");setTimeout(function(){_a7.add(_df,"mblTransition");_a7.add(_e0,"mblTransition");},30);},70);}else{_a7.add(_df,s+" mblOut"+rev);_a7.add(_e0,s+" mblIn"+rev);setTimeout(function(){_a7.add(_df,"mblTransition");_a7.add(_e0,"mblTransition");},100);}var _e5="50% 50%";var _e6="50% 50%";var _e7,_e8,_e9;if(_e1.indexOf("swirl")!=-1||_e1.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_e7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_e7=-_a9.position(_df,true).y;}_e9=win.global.innerHeight/2+_e7;_e5="50% "+_e9+"px";_e6="50% "+_e9+"px";}else{if(_e1.indexOf("scale")!=-1){var _ea=_a9.position(_df,true);_e8=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_ea.x;if(this.keepScrollPos&&!this.getParent()){_e7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_e7=-_ea.y;}_e9=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_e7;_e5=_e8+"px "+_e9+"px";_e6=_e8+"px "+_e9+"px";}}_aa.set(_df,{webkitTransformOrigin:_e5});_aa.set(_e0,{webkitTransformOrigin:_e6});}}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _eb=e.animationName||e.target.className;if(_eb.indexOf("Out")===-1&&_eb.indexOf("In")===-1&&_eb.indexOf("Shrink")===-1){return;}var _ec=false;if(_a7.contains(this.domNode,"mblOut")){_ec=true;this.domNode.style.display="none";_a7.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_aa.set(this.domNode,{webkitTransformOrigin:""});if(_eb.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_a7.remove(li,"mblCloseContent");var p=_b2.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_ec){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(_eb.indexOf("Cube")!==-1&&_eb.indexOf("In")!==-1&&has("iphone")){this.domNode.parentNode.style.webkitPerspective="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_a3.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _ed=_ab.byNode(this.toNode);if(_ed){_ed.onAfterTransitionIn.apply(_ed,this._arguments);_a3.publish("/dojox/mobile/afterTransitionIn",[_ed].concat(this._arguments));_ed.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_ed);}}if(has("mblAndroidWorkaround")){setTimeout(_a5.hitch(this,function(){if(_ed){_aa.set(this.toNode,"webkitTransformStyle","");}_aa.set(this.domNode,"webkitTransformStyle","");}),0);}var c=this._detail.context,m=this._detail.method;if(c||m){if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}}this._detail=this._optArgs=this._arguments=undefined;this._inProgress=false;},isVisible:function(_ee){var _ef=function(_f0){return _aa.get(_f0,"display")!=="none";};if(_ee){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_ef(n)){return false;}}return true;}else{return _ef(this.domNode);}},getShowingView:function(){var _f1=this.domNode.parentNode.childNodes;for(var i=0;i<_f1.length;i++){var n=_f1[i];if(n.nodeType===1&&_a7.contains(n,"mblView")&&n.style.display!=="none"){return _ab.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _a1.map(_a1.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_a7.contains(n,"mblView");}),function(n){return _ab.byNode(n);});},show:function(_f2,_f3){var out=this.getShowingView();if(!_f2){if(out){out.onBeforeTransitionOut(out.id);_a3.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_a3.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_f3){this.domNode.style.display="";}else{_a1.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_f2){if(out){out.onAfterTransitionOut(out.id);_a3.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_a3.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_f4,_f5,_f6,_f7,_f8,_f9,_fa,_fb,_fc,_fd,_fe,_ff){return _f4;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/sniff","dojo/_base/unload","dojo/_base/window","./main"],function(_100,has,_101,win,_102){var _103={},hash={};var _104={length:0,add:function(_105){if(hash[_105.id]){throw new Error("Tried to register widget with id=="+_105.id+" but that id is already registered");}hash[_105.id]=_105;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(_106){var id;do{id=_106+"_"+(_106 in _103?++_103[_106]:_103[_106]=0);}while(hash[id]);return _102._scopeName=="dijit"?id:_102._scopeName+"_"+id;},findWidgets:function(root,_107){var _108=[];function _109(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _10a=node.getAttribute("widgetId");if(_10a){var _10b=hash[_10a];if(_10b){_108.push(_10b);}}else{if(node!==_107){_109(node);}}}}};_109(root);return _108;},_destroyAll:function(){_102._curFocus=null;_102._prevFocus=null;_102._activeStack=[];_100.forEach(_104.findWidgets(win.body()),function(_10c){if(!_10c._destroyed){if(_10c.destroyRecursive){_10c.destroyRecursive();}else{if(_10c.destroy){_10c.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.nodeType==1&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_102.registry=_104;return _104;});},"dojox/mobile/viewRegistry":function(){define("dojox/mobile/viewRegistry",["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_10d,_10e,_10f){var _110={length:0,hash:{},initialView:null,add:function(view){this.hash[view.id]=view;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(view){for(var v=view.getParent();v;v=v.getParent()){if(_10e.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_111){return _10d.filter(this.getViews(),function(v){return this.getParentView(v)===_111;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_10e.contains(n,"mblView")){return _10f.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_10f.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _110;});},"dojox/mobile/Heading":function(){define("dojox/mobile/Heading",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View"],function(_112,_113,_114,lang,win,dom,_115,_116,_117,_118,_119,_11a,_11b,_11c,_11d,View){var dm=lang.getObject("dojox.mobile",true);return _114("dojox.mobile.Heading",[_11b,_11a,_119],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.inherited(arguments);if(!this.label){_112.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_116.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_116.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_116.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);dom.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _11e=this.getParent&&this.getParent();if(!_11e||!_11e.resize){var _11f=this;setTimeout(function(){_11f.resize();},0);}this.inherited(arguments);},resize:function(){if(this.labelNode){var _120,_121;var _122=this.containerNode.childNodes;for(var i=_122.length-1;i>=0;i--){var c=_122[i];if(c.nodeType===1&&_117.get(c,"display")!=="none"){if(!_121&&_117.get(c,"float")==="right"){_121=c;}if(!_120&&_117.get(c,"float")==="left"){_120=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=_121?bw-_121.offsetLeft+5:0;var lw=_120?_120.offsetLeft+_120.offsetWidth+5:0;var tw=this.labelNodeLen||0;_115[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_112.forEach(this.getChildren(),function(_123){if(_123.resize){_123.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _11d({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo,href:this.href,transition:this.transition,transitionDir:-1});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setMoveToAttr:function(_124){this._set("moveTo",_124);if(this.backButton){this.backButton.set("moveTo",_124);}},_setHrefAttr:function(href){this._set("href",href);if(this.backButton){this.backButton.set("href",href);}},_setTransitionAttr:function(_125){this._set("transition",_125);if(this.backButton){this.backButton.set("transition",_125);}},_setLabelAttr:function(_126){this._set("label",_126);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_126):_126;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _11c({size:30,center:false});_115.add(prog.domNode,this.progStyle);}_116.place(prog.domNode,this.domNode,"first");prog.start();}else{prog.stop();}this._set("busy",busy);}});});},"dojox/mobile/ProgressIndicator":function(){define("dojox/mobile/ProgressIndicator",["dojo/_base/config","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase"],function(_127,_128,lang,_129,_12a,_12b,_12c,has,_12d,_12e){var cls=_128("dojox.mobile.ProgressIndicator",[_12e,_12d],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_129.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_12a.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_12a.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_12a.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _12f=size/40;_12c.set(this.containerNode,{webkitTransform:"scale("+_12f+")",webkitTransformOrigin:"0 0"});_12b.setMarginBox(this.domNode,{w:size,h:size});_12b.setMarginBox(this.containerNode,{w:size/_12f,h:size/_12f});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _130=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_130.colors;for(var i=0;i=_149){_14a=_14b[_149-1].domNode;_149="after";}}_147.place(_148.domNode,_14a,_149);if(this._started&&!_148._started){_148.startup();}},removeChild:function(_14c){if(typeof _14c=="number"){_14c=this.getChildren()[_14c];}if(_14c){var node=_14c.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_14d,dir){var _14e=this.getChildren(),idx=_145.indexOf(this.getChildren(),_14d);return _14e[idx+dir];},getIndexOfChild:function(_14f){return _145.indexOf(this.getChildren(),_14f);}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_150,_151,_152,_153,win,_154,_155,_156,_157,_158,_159,has){return _152("dojox.mobile.Switch",[_159,_158],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",_createdMasks:[],buildRendering:function(){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_155.create("span");this.inherited(arguments);var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_154.add(this.domNode,this.shape);var _15a=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="
"+"
"+"
"+"
"+"
"+"
"+"
"+"
"+"
"+"";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];},postCreate:function(){this._clickHandle=this.connect(this.domNode,"onclick","_onClick");this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this._startHandle=this.connect(this.domNode,_157.press,"onTouchStart");this._initialValue=this.value;},_changeState:function(_15b,anim){var on=(_15b==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_154.add(this.domNode,"mblSwitchAnimation");}_154.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_154.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _15c=this;setTimeout(function(){_15c.left.style.display=on?"":"none";_15c.right.style.display=!on?"":"none";_154.remove(_15c.domNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._hasMaskImage){return;}this._width=this.domNode.offsetWidth-this.knob.offsetWidth;this._hasMaskImage=true;if(!has("webkit")){return;}var rDef=_156.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _15d=rDef.split(" ");var rx=parseFloat(_15d[0]),ry=(_15d.length==1)?rx:parseFloat(_15d[1]);var w=this.domNode.offsetWidth,h=this.domNode.offsetHeight;var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");if(!this._createdMasks[id]){this._createdMasks[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,w,h);ctx.fillStyle="#000000";ctx.beginPath();if(rx==ry){ctx.moveTo(rx,0);ctx.arcTo(0,0,0,rx,rx);ctx.lineTo(0,h-rx);ctx.arcTo(0,h,rx,h,rx);ctx.lineTo(w-rx,h);ctx.arcTo(w,h,w,rx,rx);ctx.lineTo(w,rx);ctx.arcTo(w,0,w-rx,0,rx);}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(rx,0);ctx.arc(rx,rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(w-rx,2*rx);ctx.arc(w-rx,rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}this.domNode.style.webkitMaskImage="-webkit-canvas("+id+")";},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_157.move,"onTouchMove"),this.connect(this.inner,_157.release,"onTouchEnd")];}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_153.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_150.forEach(this._conn,_151.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")&&!(has("android")>=4.1)){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _15e=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_15e,true);if(_15e!=this.value){this.value=this.input.value=_15e;this.onStateChanged(_15e);}},onStateChanged:function(_15f){},_setValueAttr:function(_160){this._changeState(_160,false);if(this.value!=_160){this.onStateChanged(_160);}this.value=this.input.value=_160;},_setLeftLabelAttr:function(_161){this.leftLabel=_161;this.left.firstChild.innerHTML=this._cv?this._cv(_161):_161;},_setRightLabelAttr:function(_162){this.rightLabel=_162;this.right.firstChild.innerHTML=this._cv?this._cv(_162):_162;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_163,_164){return _163("dojox.mobile.EdgeToEdgeCategory",_164,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_165,_166){if(_166["mblCSS3Transition"]){var _167=new _165();require([_166["mblCSS3Transition"]],function(_168){_167.resolve(_168);});return _167;}return null;});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","./registry"],function(_169,_16a,_16b,_16c,_16d,_16e,dom,_16f,_170,_171,_172,_173,has,_174,lang,on,_175,_176,_177,win,_178,_179){has.add("dijit-legacy-requires",!_174.isAsync);if(has("dijit-legacy-requires")){_175(0,function(){var _17a=["dijit/_base/manager"];_169(_17a);});}var _17b={};function _17c(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _17d(attr){return function(val){_16f[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};return _16e("dijit._WidgetBase",[_176,_178],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_17d("lang"),dir:"",_setDirAttr:_17d("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_16c.blankGif||_169.toUrl("dojo/resources/blank.gif"),postscript:function(_17e,_17f){this.create(_17e,_17f);},create:function(_180,_181){this.srcNodeRef=dom.byId(_181);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_180){this.params=_180;lang.mixin(this,_180);}this.postMixInProperties();if(!this.id){this.id=_179.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:win.doc);this.ownerDocumentBody=win.body(this.ownerDocument);_179.add(this);this.buildRendering();var _182;if(this.domNode){this._applyAttributes();var _183=this.srcNodeRef;if(_183&&_183.parentNode&&this.domNode!==_183){_183.parentNode.replaceChild(this.domNode,_183);_182=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_182){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 _184=ctor.prototype;for(var _185 in _184){if(_185 in this.attributeMap){continue;}var _186="_set"+_185.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_186 in _184){list.push(_185);}}}var _187={};for(var key in this.params||{}){_187[key]=this[key];}_16a.forEach(list,function(attr){if(attr in _187){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(key in _187){this.set(key,_187[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _188=this.baseClass.split(" ");if(!this.isLeftToRight()){_188=_188.concat(_16a.map(_188,function(name){return name+"Rtl";}));}_170.add(this.domNode,_188);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_16a.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_189){this._beingDestroyed=true;this.destroyDescendants(_189);this.destroy(_189);},destroy:function(_18a){this._beingDestroyed=true;this.uninitialize();function _18b(w){if(w.destroyRecursive){w.destroyRecursive(_18a);}else{if(w.destroy){w.destroy(_18a);}}};_16a.forEach(this._connects,lang.hitch(this,"disconnect"));_16a.forEach(this._supportingWidgets,_18b);if(this.domNode){_16a.forEach(_179.findWidgets(this.domNode,this.containerNode),_18b);}this.destroyRendering(_18a);_179.remove(this.id);this._destroyed=true;},destroyRendering:function(_18c){if(this.bgIframe){this.bgIframe.destroy(_18c);delete this.bgIframe;}if(this.domNode){if(_18c){_16f.remove(this.domNode,"widgetId");}else{_171.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_18c){_171.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_18d){_16a.forEach(this.getChildren(),function(_18e){if(_18e.destroyRecursive){_18e.destroyRecursive(_18d);}});},uninitialize:function(){return false;},_setStyleAttr:function(_18f){var _190=this.domNode;if(lang.isObject(_18f)){_173.set(_190,_18f);}else{if(_190.style.cssText){_190.style.cssText+="; "+_18f;}else{_190.style.cssText=_18f;}}this._set("style",_18f);},_attrToDom:function(attr,_191,_192){_192=arguments.length>=3?_192:this.attributeMap[attr];_16a.forEach(lang.isArray(_192)?_192:[_192],function(_193){var _194=this[_193.node||_193||"domNode"];var type=_193.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_191)){_191=lang.hitch(this,_191);}var _195=_193.attribute?_193.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_194.tagName){_16f.set(_194,_195,_191);}else{_194.set(_195,_191);}break;case "innerText":_194.innerHTML="";_194.appendChild(this.ownerDocument.createTextNode(_191));break;case "innerHTML":_194.innerHTML=_191;break;case "class":_170.replace(_194,_191,this[attr]);break;}},this);},get:function(name){var _196=this._getAttrNames(name);return this[_196.g]?this[_196.g]():this[name];},set:function(name,_197){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _198=this._getAttrNames(name),_199=this[_198.s];if(lang.isFunction(_199)){var _19a=_199.apply(this,Array.prototype.slice.call(arguments,1));}else{var _19b=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_19b].tagName,_19c=_17b[tag]||(_17b[tag]=_17c(this[_19b])),map=name in this.attributeMap?this.attributeMap[name]:_198.s in this?this[_198.s]:((_198.l in _19c&&typeof _197!="function")||/^aria-|^data-|^role$/.test(name))?_19b:null;if(map!=null){this._attrToDom(name,_197,map);}this._set(name,_197);}return _19a||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,_19d){var _19e=this[name];this[name]=_19d;if(this._created&&_19d!==_19e){if(this._watchCallbacks){this._watchCallbacks(name,_19e,_19d);}this.emit("attrmodified-"+name,{detail:{prevValue:_19e,newValue:_19d}});}},emit:function(type,_19f,_1a0){_19f=_19f||{};if(_19f.bubbles===undefined){_19f.bubbles=true;}if(_19f.cancelable===undefined){_19f.cancelable=true;}if(!_19f.detail){_19f.detail={};}_19f.detail.widget=this;var ret,_1a1=this["on"+type];if(_1a1){ret=_1a1.apply(this,_1a0?_1a0:[_19f]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_19f);}return ret;},on:function(type,func){var _1a2=this._onMap(type);if(_1a2){return _16b.after(this,_1a2,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_179.findWidgets(this.containerNode):[];},getParent:function(){return _179.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_1a3,_1a4){return this.own(_16d.connect(obj,_1a3,this,_1a4))[0];},disconnect:function(_1a5){_1a5.remove();},subscribe:function(t,_1a6){return this.own(_177.subscribe(t,lang.hitch(this,_1a6)))[0];},unsubscribe:function(_1a7){_1a7.remove();},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_172.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_173.get(this.domNode,"display")!="none");},placeAt:function(_1a8,_1a9){var _1aa=!_1a8.tagName&&_179.byId(_1a8);if(_1aa&&_1aa.addChild&&(!_1a9||typeof _1a9==="number")){_1aa.addChild(this,_1a9);}else{var ref=_1aa?(_1aa.containerNode&&!/after|before|replace/.test(_1a9||"")?_1aa.containerNode:_1aa.domNode):dom.byId(_1a8,this.ownerDocument);_171.place(this.domNode,ref,_1a9);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},getTextDir:function(text,_1ab){return _1ab;},applyTextDir:function(){},defer:function(fcn,_1ac){var _1ad=setTimeout(lang.hitch(this,function(){_1ad=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_1ac||0);return {remove:function(){if(_1ad){clearTimeout(_1ad);_1ad=null;}return null;}};}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojox/mobile/common":function(){define("dojox/mobile/common",["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/ready","dijit/registry","./sniff","./uacss"],function(_1ae,_1af,_1b0,lang,win,_1b1,_1b2,_1b3,_1b4,has){var dm=lang.getObject("dojox.mobile",true);dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_1b1.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(_1b5){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_1b5||(!this._sz||this._sz=dm.tabletSize))){from="tablet";to="phone";}}if(to){_1b1.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_1b0.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_1af["mblHideAddressBarWait"])==="number"?_1af["mblHideAddressBarWait"]:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("iphone")?200:0;var minH=screen.availHeight;if(has("android")){minH=outerHeight/devicePixelRatio;if(minH==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(minH<=innerHeight){minH=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight=3,undefined,true);_1b3(function(){dm.detectScreenSize(true);if(_1af["mblAndroidWorkaroundButtonStyle"]!==false&&has("android")){_1b2.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("mblAndroidWorkaround")){_1b2.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;if(_1af["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_1af["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_1af["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}var ios6=has("iphone")>=6;if((has("android")||ios6)&&win.global.onorientationchange!==undefined){var _1bc=f;var _1bd,_1be,_1bf;if(ios6){_1be=win.doc.documentElement.clientWidth;_1bf=win.doc.documentElement.clientHeight;}else{f=function(evt){var _1c0=_1b0.connect(null,"onresize",null,function(e){_1b0.disconnect(_1c0);_1bc(e);});};_1bd=dm.getScreenSize();}_1b0.connect(null,"onresize",null,function(e){if(ios6){var _1c1=win.doc.documentElement.clientWidth,_1c2=win.doc.documentElement.clientHeight;if(_1c1==_1be&&_1c2!=_1bf){_1bc(e);}_1be=_1c1;_1bf=_1c2;}else{var _1c3=dm.getScreenSize();if(_1c3.w==_1bd.w&&Math.abs(_1c3.h-_1bd.h)>=100){_1bc(e);}_1bd=_1c3;}});}_1b0.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojox/mobile/ViewController":function(){define("dojox/mobile/ViewController",["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(dojo,_1c4,_1c5,_1c6,lang,win,_1c7,dom,_1c8,_1c9,on,_1ca,_1cb,_1cc,_1cd,_1ce){var _1cf=_1c6("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_1ca(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_1d0){if(!_1d0){return [];}_1d0.match(/^#?([^&?]+)(.*)/);var _1d1=RegExp.$2;var view=_1cb.byId(RegExp.$1);if(!view){return [];}for(var v=view.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=view.getShowingView();if(sv&&sv.id!==view.id){view.show();}view=v;}}return [view.getShowingView(),view,_1d1];},openExternalView:function(_1d2,_1d3){var d=new _1c7();var id=this.viewMap[_1d2.url];if(id){_1d2.moveTo=id;if(_1d2.noTransition){_1cb.byId(id).hide();}else{new _1cd(win.body(),_1d2).dispatch();}d.resolve(true);return d;}var _1d4=null;for(var i=_1d3.childNodes.length-1;i>=0;i--){var c=_1d3.childNodes[i];if(c.nodeType===1){var _1d5=c.getAttribute("fixed")||(_1cb.byNode(c)&&_1cb.byNode(c).fixed);if(_1d5==="bottom"){_1d4=c;break;}}}var dh=_1d2.dataHandlerClass||this.dataHandlerClass;var ds=_1d2.dataSourceClass||this.dataSourceClass;var ft=_1d2.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],lang.hitch(this,function(_1d6,_1d7,_1d8){var _1d9=new _1d6(new _1d7(_1d2.data||_1d2.url),_1d3,_1d4);var _1da=_1d2.contentType||_1d8.getContentType(_1d2.url)||"html";_1d9.processData(_1da,lang.hitch(this,function(id){if(id){this.viewMap[_1d2.url]=_1d2.moveTo=id;if(_1d2.noTransition){_1cb.byId(id).hide();}else{new _1cd(win.body(),_1d2).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_1d2.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _1db=evt.detail;if(!_1db.moveTo&&!_1db.href&&!_1db.url&&!_1db.scene){return;}if(_1db.url&&!_1db.moveTo){var _1dc=_1db.urlTarget;var w=_1cb.byId(_1dc);var _1dd=w&&w.containerNode||dom.byId(_1dc);if(!_1dd){w=_1ce.getEnclosingView(evt.target);_1dd=w&&w.domNode.parentNode||win.body();}this.openExternalView(_1db,_1dd);return;}else{if(_1db.href){if(_1db.hrefTarget){win.global.open(_1db.href,_1db.hrefTarget);}else{var view;for(var v=_1ce.getEnclosingView(evt.target);v;v=_1ce.getParentView(v)){view=v;}if(view){view.performTransition(null,_1db.transitionDir,_1db.transition,evt.target,function(){location.href=_1db.href;});}}return;}else{if(_1db.scene){_1c5.publish("/dojox/mobile/app/pushScene",[_1db.scene]);return;}}}var arr=this.findTransitionViews(_1db.moveTo),_1de=arr[0],_1df=arr[1],_1e0=arr[2];if(!location.hash&&!_1db.hashchange){_1ce.initialView=_1de;}if(_1db.moveTo&&_1df){_1db.moveTo=(_1db.moveTo.charAt(0)==="#"?"#"+_1df.id:_1df.id)+_1e0;}if(!_1de||(_1db.moveTo&&_1de===_1cb.byId(_1db.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}var src=_1cb.getEnclosingWidget(evt.target);if(src&&src.callback){_1db.context=src;_1db.method=src.callback;}_1de.performTransition(_1db);}});_1cf._instance=new _1cf();_1cf.getInstance=function(){return _1cf._instance;};return _1cf;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_1e1,lang,_1e2,when){return _1e1("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_1e3){if(_1e3){this.set(_1e3);}},_get:function(name,_1e4){return typeof this[_1e4.g]==="function"?this[_1e4.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_1e5){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _1e6=this._getAttrNames(name),_1e7=this._get(name,_1e6),_1e8=this[_1e6.s],_1e9;if(typeof _1e8==="function"){_1e9=_1e8.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_1e5;}if(this._watchCallbacks){var self=this;when(_1e9,function(){self._watchCallbacks(name,_1e7,_1e5);});}return this;},_changeAttrValue:function(name,_1ea){var _1eb=this.get(name);this[name]=_1ea;if(this._watchCallbacks){this._watchCallbacks(name,_1eb,_1ea);}return this;},watch:function(name,_1ec){var _1ed=this._watchCallbacks;if(!_1ed){var self=this;_1ed=this._watchCallbacks=function(name,_1ee,_1ef,_1f0){var _1f1=function(_1f2){if(_1f2){_1f2=_1f2.slice();for(var i=0,l=_1f2.length;i-1){_1f3.splice(_1f5,1);}};return _1f4;}});});},"dojox/mobile/RoundRectCategory":function(){define("dojox/mobile/RoundRectCategory",["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase"],function(_1f6,win,_1f7,_1f8,_1f9){return _1f6("dojox.mobile.RoundRectCategory",[_1f9,_1f8],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _1fa=this.domNode=this.containerNode=this.srcNodeRef||_1f7.create(this.tag);this.inherited(arguments);if(!this.label&&_1fa.childNodes.length===1&&_1fa.firstChild.nodeType===3){this.label=_1fa.firstChild.nodeValue;}},_setLabelAttr:function(_1fb){this.label=_1fb;this.domNode.innerHTML=this._cv?this._cv(_1fb):_1fb;}});});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff","./_ItemBase"],function(_1fc,lang,win,_1fd,_1fe,_1ff,has,_200){return _1fc("dojox.mobile.ToolBarButton",_200,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=lang.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_1fe.create("span");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_1fd.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_1fe.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_1fd.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_1fe.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_1fe.create("table",{cellPadding:"0",cellSpacing:"0",border:"0"},this.bodyNode);if(!this.label&&this.arrow){this.tableNode.className="mblToolBarButtonText";}var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_1fd.add(this.domNode,"mblToolBarButtonHasIcon");_1fd.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_1fd.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this._pendingIcon!==undefined?this._pendingIcon:this.icon);delete this._pendingIcon;}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(text){this.inherited(arguments);_1fd.toggle(this.tableNode,"mblToolBarButtonText",text||this.arrow);},_setSelectedAttr:function(_201){var _202=function(node,a,b){_1fd.replace(node,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_201){_1fd.replace(this.bodyNode,this.selColor,this.defaultColor);if(!has("ie")&&this.arrowNode){_202(this.arrowNode,this.selColor,this.defaultColor);}}else{_1fd.replace(this.bodyNode,this.defaultColor,this.selColor);if(!has("ie")&&this.arrowNode){_202(this.arrowNode,this.defaultColor,this.selColor);}}_1fd.toggle(this.domNode,"mblToolBarButtonSelected",_201);_1fd.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_201);}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_203,lang,base){lang.getObject("mobile",true,_203);return _203.mobile;});