/*
	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:{"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_1){return _1.dojox;});},"dojox/mobile/_base":function(){define(["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){return _2;});},"dojox/mobile/common":function(){define(["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(_e,_f,_10,_11,_12,win,_13,_14,_15,_16,_17,has,_18){var dm=_12.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();_13.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(_19){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var _1a,to;if(sz>=dm.tabletSize&&(_19||(!this._sz||this._sz<dm.tabletSize))){_1a="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_19||(!this._sz||this._sz>=dm.tabletSize))){_1a="tablet";to="phone";}}if(to){_13.replace(win.doc.documentElement,"dj_"+to,"dj_"+_1a);_11.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_1b,_1c){if(_1b&&_1c){var arr=_f.map(_1c.split(/[ ,]/),function(_1d){return _1d-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_15.set(_1b,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_1b.parentNode?_15.get(_1b,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_10["mblHideAddressBarWait"])==="number"?_10["mblHideAddressBarWait"]:1500;dm.hide_1=function(_1e){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_1e){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_1e||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,_1f){if(dm.disableResizeAll){return;}_11.publish("/dojox/mobile/resizeAll",[evt,_1f]);dm.updateOrient();dm.detectScreenSize();var _20=function(w){var _21=w.getParent&&w.getParent();return !!((!_21||!_21.resize)&&w.resize);};var _22=function(w){_f.forEach(w.getChildren(),function(_23){if(_20(_23)){_23.resize();}_22(_23);});};if(_1f){if(_1f.resize){_1f.resize();}_22(_1f);}else{_f.forEach(_f.filter(_17.toArray(),_20),function(w){w.resize();});}};dm.openWindow=function(url,_24){win.global.open(url,_24||"_blank");};dm.createDomButton=function(_25,_26,_27){if(!dm._domButtons){if(has("webkit")){var _28=function(_29,dic){var i,j;if(!_29){var dic={};var ss=_e.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_28(ss[i],dic);}return dic;}var _2a=_29.cssRules||[];for(i=0;i<_2a.length;i++){var _2b=_2a[i];if(_2b.href&&_2b.styleSheet){_28(_2b.styleSheet,dic);}else{if(_2b.selectorText){var _2c=_2b.selectorText.split(/,/);for(j=0;j<_2c.length;j++){var sel=_2c[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=_28();}else{dm._domButtons={};}}var s=_25.className;var _2d=_27||_25;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _2e=RegExp.$1;var _2f=4;if(s.match(/(mblDomButton\w+_(\d+))/)){_2f=RegExp.$2-0;}else{if(dm._domButtons[_2e]!==undefined){_2f=dm._domButtons[_2e];}}var _30=null;if(has("bb")&&_10["mblBBBoxShadowWorkaround"]!==false){_30={style:"-webkit-box-shadow:none"};}for(var i=0,p=_2d;i<_2f;i++){p=p.firstChild||_14.create("DIV",_30,p);}if(_27){setTimeout(function(){_13.remove(_25,_2e);},0);_13.add(_27,_2e);}}else{if(s.indexOf(".")!==-1){_14.create("IMG",{src:s},_2d);}else{return null;}}_13.add(_2d,"mblDomButton");if(_10["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_15.set(_2d,"webkitTransform","translate3d(0,0,0)");}!!_26&&_15.set(_2d,_26);return _2d;};dm.createIcon=function(_31,_32,_33,_34,_35){if(_31&&_31.indexOf("mblDomButton")===0){if(_33&&_33.className.match(/(mblDomButton\w+)/)){_13.remove(_33,RegExp.$1);}else{_33=_14.create("DIV");}_33.title=_34;_13.add(_33,_31);dm.createDomButton(_33);}else{if(_31&&_31!=="none"){if(!_33||_33.nodeName!=="IMG"){_33=_14.create("IMG",{alt:_34});}_33.src=(_31||"").replace("${theme}",dm.currentTheme);dm.setupIcon(_33,_32);if(_35&&_32){var arr=_32.split(/[ ,]/);_15.set(_35,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_35){_35.appendChild(_33);}return _33;};dm._iw=_10["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_14.create("div");}if(_10.parseOnLoad){_16(90,function(){var _36=win.body().getElementsByTagName("*");var i,len,s;len=_36.length;for(i=0;i<len;i++){s=_36[i].getAttribute("dojoType");if(s){if(_36[i].parentNode.getAttribute("lazy")=="true"){_36[i].setAttribute("__dojoType",s);_36[i].removeAttribute("dojoType");}}}});}_16(function(){dm.detectScreenSize(true);if(_10["mblApplyPageStyles"]!==false){_13.add(win.doc.documentElement,"mobile");}if(has("chrome")){_13.add(win.doc.documentElement,"dj_chrome");}if(_10["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_10["mblAndroidWorkaroundButtonStyle"]!==false){_14.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){_15.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_11.connect(null,"onfocus",null,function(e){_15.set(win.doc.documentElement,"webkitTransform","");});_11.connect(null,"onblur",null,function(e){_15.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_10["mblAndroid3Workaround"]!==false){_15.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_10["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_10["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_10["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_11.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _37=win.body().getElementsByTagName("*");var i,len=_37.length,s;for(i=0;i<len;i++){s=_37[i].getAttribute("__dojoType");if(s){_37[i].setAttribute("dojoType",s);_37[i].removeAttribute("__dojoType");}}if(_e.hash){var _38=function(_39){if(!_39){return [];}var arr=_17.findWidgets(_39);var _3a=arr;for(var i=0;i<_3a.length;i++){arr=arr.concat(_38(_3a[i].containerNode));}return arr;};_11.subscribe("/dojo/hashchange",null,function(_3b){var _3c=dm.currentView;if(!_3c){return;}var _3d=dm._params;if(!_3d){var _3e=_3b?_3b:dm._defaultView.id;var _3f=_38(_3c.domNode);var dir=1,_40="slide";for(i=0;i<_3f.length;i++){var w=_3f[i];if("#"+_3e==w.moveTo){_40=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_3d=[_3e,dir,_40];}_3c.performTransition.apply(_3c,_3d);dm._params=null;});}win.body().style.visibility="visible";});_17.getEnclosingWidget=function(_41){while(_41){var id=_41.getAttribute&&_41.getAttribute("widgetId");if(id){return _17.byId(id);}_41=_41._parentNode||_41.parentNode;}return null;};return dm;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_42,has,_43,win,_44){var _45={},_46={};var _47={length:0,add:function(_48){if(_46[_48.id]){throw new Error("Tried to register widget with id=="+_48.id+" but that id is already registered");}_46[_48.id]=_48;this.length++;},remove:function(id){if(_46[id]){delete _46[id];this.length--;}},byId:function(id){return typeof id=="string"?_46[id]:id;},byNode:function(_49){return _46[_49.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _46){ar.push(_46[id]);}return ar;},getUniqueId:function(_4a){var id;do{id=_4a+"_"+(_4a in _45?++_45[_4a]:_45[_4a]=0);}while(_46[id]);return _44._scopeName=="dijit"?id:_44._scopeName+"_"+id;},findWidgets:function(_4b){var _4c=[];function _4d(_4e){for(var _4f=_4e.firstChild;_4f;_4f=_4f.nextSibling){if(_4f.nodeType==1){var _50=_4f.getAttribute("widgetId");if(_50){var _51=_46[_50];if(_51){_4c.push(_51);}}else{_4d(_4f);}}}};_4d(_4b);return _4c;},_destroyAll:function(){_44._curFocus=null;_44._prevFocus=null;_44._activeStack=[];_42.forEach(_47.findWidgets(win.body()),function(_52){if(!_52._destroyed){if(_52.destroyRecursive){_52.destroyRecursive();}else{if(_52.destroy){_52.destroy();}}}});},getEnclosingWidget:function(_53){while(_53){var id=_53.getAttribute&&_53.getAttribute("widgetId");if(id){return _46[id];}_53=_53.parentNode;}return null;},_hash:_46};_44.registry=_47;return _47;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_54){return _54.dijit;});},"dojox/mobile/sniff":function(){define(["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/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(_55,_56,win,has){win.doc.documentElement.className+=_56.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 _55;});},"dojox/mobile/View":function(){define(["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(_57,_58,_59,_5a,_5b,_5c,has,win,_5d,dom,_5e,_5f,_60,_61,_62,_63,_64,_65,_66){var dm=_5c.getObject("dojox.mobile",true);return _5b("dojox.mobile.View",[_64,_63,_62],{selected:false,keepScrollPos:true,constructor:function(_67,_68){if(_68){dom.byId(_68).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(!_59["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 _69=[];var _6a=this.domNode.parentNode.childNodes;var _6b=false;for(var i=0;i<_6a.length;i++){var c=_6a[i];if(c.nodeType===1&&_5e.contains(c,"mblView")){_69.push(c);_6b=_6b||_61.byNode(c)._visible;}}var _6c=this._visible;if(_69.length===1||(!_6b&&_69[0]===this.domNode)){_6c=true;}var _6d=this;setTimeout(function(){if(!_6c){_6d.domNode.style.display="none";}else{dm.currentView=_6d;_6d.onStartView();_5a.publish("/dojox/mobile/startView",[_6d]);}if(_6d.domNode.style.visibility!="visible"){_6d.domNode.style.visibility="visible";}var _6e=_6d.getParent&&_6d.getParent();if(!_6e||!_6e.resize){_6d.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_58.forEach(this.getChildren(),function(_6f){if(_6f.resize){_6f.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_70,dir,_71,_72,_73){},onAfterTransitionIn:function(_74,dir,_75,_76,_77){},onBeforeTransitionOut:function(_78,dir,_79,_7a,_7b){},onAfterTransitionOut:function(_7c,dir,_7d,_7e,_7f){},_saveState:function(_80,dir,_81,_82,_83){this._context=_82;this._method=_83;if(_81=="none"){_81=null;}this._moveTo=_80;this._dir=dir;this._transition=_81;this._arguments=_5c._toArray(arguments);this._args=[];if(_82||_83){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_84){var _85=this.domNode.parentNode.childNodes;for(var i=0;i<_85.length;i++){var n=_85[i];if(n.nodeType===1&&_5e.contains(n,"mblView")){n.className="mblView";}}_84.className="mblView";},convertToId:function(_86){if(typeof (_86)=="string"){_86.match(/^#?([^&?]+)/);return RegExp.$1;}return _86;},performTransition:function(_87,dir,_88,_89,_8a){if(_87==="#"){return;}if(_57.hash){if(typeof (_87)=="string"&&_87.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}_57.hash(_87);return;}}this._saveState.apply(this,arguments);var _8b;if(_87){_8b=this.convertToId(_87);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_8b=this._dummyNode;}var _8c=this.domNode;var _8d=_8c.offsetTop;_8b=this.toNode=dom.byId(_8b);if(!_8b){return;}_8b.style.visibility=this._aw?"visible":"hidden";_8b.style.display="";this._fixViewState(_8b);var _8e=_61.byNode(_8b);if(_8e){if(_59["mblAlwaysResizeOnTransition"]||!_8e._resized){dm.resizeAll(null,_8e);_8e._resized=true;}if(_88&&_88!="none"){_8e.containerNode.style.paddingTop=_8d+"px";}_8e.movedFrom=_8c.id;}this.onBeforeTransitionOut.apply(this,arguments);_5a.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_5c._toArray(arguments)));if(_8e){if(this.keepScrollPos&&!this.getParent()){var _8f=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_8c._scrollTop=_8f;var _90=(dir==1)?0:(_8b._scrollTop||0);_8b.style.top="0px";if(_8f>1||_90!==0){_8c.style.top=_90-_8f+"px";if(_59["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_90||1));},0);}}}else{_8b.style.top="0px";}_8e.onBeforeTransitionIn.apply(_8e,arguments);_5a.publish("/dojox/mobile/beforeTransitionIn",[_8e].concat(_5c._toArray(arguments)));}if(!this._aw){_8b.style.display="none";_8b.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_60.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_60.get(win.body(),"background-color"),zIndex:-10000,display:""});_60.set(_8b,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(_5c.hitch(this,function(){this._doTransition(_8c,_8b,_88,dir);}),80);}else{this._doTransition(_8c,_8b,_88,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_91,_92,_93,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_60.set(_92,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_92.style.display="";}}if(!_93||_93=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_59["mblCSS3Transition"]){_5d.when(_66,_5c.hitch(this,function(_94){var _95=_60.get(_92,"position");_60.set(_92,"position","absolute");_5d.when(_94(_91,_92,{transition:_93,reverse:(dir===-1)?true:false}),_5c.hitch(this,function(){_60.set(_92,"position",_95);this.invokeCallback();}));}));}else{var s=this._toCls(_93);_5e.add(_91,s+" mblOut"+rev);_5e.add(_92,s+" mblIn"+rev);setTimeout(function(){_5e.add(_91,"mblTransition");_5e.add(_92,"mblTransition");},100);var _96="50% 50%";var _97="50% 50%";var _98,_99,_9a;if(_93.indexOf("swirl")!=-1||_93.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_98=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_98=-_5f.position(_91,true).y;}_9a=win.global.innerHeight/2+_98;_96="50% "+_9a+"px";_97="50% "+_9a+"px";}else{if(_93.indexOf("scale")!=-1){var _9b=_5f.position(_91,true);_99=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_9b.x;if(this.keepScrollPos&&!this.getParent()){_98=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_98=-_9b.y;}_9a=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_98;_96=_99+"px "+_9a+"px";_97=_99+"px "+_9a+"px";}}_60.set(_91,{webkitTransformOrigin:_96});_60.set(_92,{webkitTransformOrigin:_97});}}dm.currentView=_61.byNode(_92);},onAnimationStart:function(e){},onAnimationEnd:function(e){var _9c=e.animationName||e.target.className;if(_9c.indexOf("Out")===-1&&_9c.indexOf("In")===-1&&_9c.indexOf("Shrink")===-1){return;}var _9d=false;if(_5e.contains(this.domNode,"mblOut")){_9d=true;this.domNode.style.display="none";_5e.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_60.set(this.domNode,{webkitTransformOrigin:""});if(_9c.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_5e.remove(li,"mblCloseContent");}if(_9d){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_5a.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _9e=_61.byNode(this.toNode);if(_9e){_9e.onAfterTransitionIn.apply(_9e,this._arguments);_5a.publish("/dojox/mobile/afterTransitionIn",[_9e].concat(this._arguments));_9e.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 _9f=this.domNode.parentNode.childNodes;for(var i=0;i<_9f.length;i++){var n=_9f[i];if(n.nodeType===1&&_5e.contains(n,"mblView")&&_60.get(n,"display")!=="none"){return _61.byNode(n);}}return null;},show:function(){var _a0=this.getShowingView();if(_a0){_a0.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_a1,_a2){return _a1("dijit._Contained",null,{_getSibling:function(_a3){var _a4=this.domNode;do{_a4=_a4[_a3+"Sibling"];}while(_a4&&_a4.nodeType!=1);return _a4&&_a2.byNode(_a4);},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/_Container":function(){define("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_a5,_a6,_a7,_a8){return _a6("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_a9,_aa){var _ab=this.containerNode;if(_aa&&typeof _aa=="number"){var _ac=this.getChildren();if(_ac&&_ac.length>=_aa){_ab=_ac[_aa-1].domNode;_aa="after";}}_a7.place(_a9.domNode,_ab,_aa);if(this._started&&!_a9._started){_a9.startup();}},removeChild:function(_ad){if(typeof _ad=="number"){_ad=this.getChildren()[_ad];}if(_ad){var _ae=_ad.domNode;if(_ae&&_ae.parentNode){_ae.parentNode.removeChild(_ae);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_af,dir){var _b0=_af.domNode,_b1=(dir>0?"nextSibling":"previousSibling");do{_b0=_b0[_b1];}while(_b0&&(_b0.nodeType!=1||!_a8.byNode(_b0)));return _b0&&_a8.byNode(_b0);},getIndexOfChild:function(_b2){return _a5.indexOf(this.getChildren(),_b2);}});});},"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(_b3,_b4,_b5,_b6,_b7,_b8,dom,_b9,_ba,_bb,_bc,_bd,_be,_bf,on,_c0,_c1,_c2,win,_c3){if(!_be.isAsync){_c0(0,function(){var _c4=["dijit/_base/manager"];_b3(_c4);});}var _c5={};function _c6(obj){var ret={};for(var _c7 in obj){ret[_c7.toLowerCase()]=true;}return ret;};function _c8(_c9){return function(val){_b9[val?"set":"remove"](this.domNode,_c9,val);this._set(_c9,val);};};function _ca(a,b){return a===b||(a!==a&&b!==b);};return _b8("dijit._WidgetBase",_c1,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_c8("lang"),dir:"",_setDirAttr:_c8("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_b6.blankGif||_b3.toUrl("dojo/resources/blank.gif"),postscript:function(_cb,_cc){this.create(_cb,_cc);},create:function(_cd,_ce){this.srcNodeRef=dom.byId(_ce);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_cd){this.params=_cd;_bf.mixin(this,_cd);}this.postMixInProperties();if(!this.id){this.id=_c3.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_c3.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _cf=this.srcNodeRef;if(_cf&&_cf.parentNode&&this.domNode!==_cf){_cf.parentNode.replaceChild(this.domNode,_cf);}}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 _d0=this.constructor,_d1=_d0._setterAttrs;if(!_d1){_d1=(_d0._setterAttrs=[]);for(var _d2 in this.attributeMap){_d1.push(_d2);}var _d3=_d0.prototype;for(var _d4 in _d3){if(_d4 in this.attributeMap){continue;}var _d5="_set"+_d4.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_d5 in _d3){_d1.push(_d4);}}}_b4.forEach(_d1,function(_d6){if(this.params&&_d6 in this.params){}else{if(this[_d6]){this.set(_d6,this[_d6]);}}},this);for(var _d7 in this.params){this.set(_d7,this[_d7]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_bb.create("div");}if(this.baseClass){var _d8=this.baseClass.split(" ");if(!this.isLeftToRight()){_d8=_d8.concat(_b4.map(_d8,function(_d9){return _d9+"Rtl";}));}_ba.add(this.domNode,_d8);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_b4.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_bf.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_da){this._beingDestroyed=true;this.destroyDescendants(_da);this.destroy(_da);},destroy:function(_db){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(_db);_c3.remove(this.id);this._destroyed=true;},destroyRendering:function(_dc){if(this.bgIframe){this.bgIframe.destroy(_dc);delete this.bgIframe;}if(this.domNode){if(_dc){_b9.remove(this.domNode,"widgetId");}else{_bb.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_dc){_bb.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_dd){_b4.forEach(this.getChildren(),function(_de){if(_de.destroyRecursive){_de.destroyRecursive(_dd);}});},uninitialize:function(){return false;},_setStyleAttr:function(_df){var _e0=this.domNode;if(_bf.isObject(_df)){_bd.set(_e0,_df);}else{if(_e0.style.cssText){_e0.style.cssText+="; "+_df;}else{_e0.style.cssText=_df;}}this._set("style",_df);},_attrToDom:function(_e1,_e2,_e3){_e3=arguments.length>=3?_e3:this.attributeMap[_e1];_b4.forEach(_bf.isArray(_e3)?_e3:[_e3],function(_e4){var _e5=this[_e4.node||_e4||"domNode"];var _e6=_e4.type||"attribute";switch(_e6){case "attribute":if(_bf.isFunction(_e2)){_e2=_bf.hitch(this,_e2);}var _e7=_e4.attribute?_e4.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_e1)?_e1.toLowerCase():_e1);_b9.set(_e5,_e7,_e2);break;case "innerText":_e5.innerHTML="";_e5.appendChild(win.doc.createTextNode(_e2));break;case "innerHTML":_e5.innerHTML=_e2;break;case "class":_ba.replace(_e5,_e2,this[_e1]);break;}},this);},get:function(_e8){var _e9=this._getAttrNames(_e8);return this[_e9.g]?this[_e9.g]():this[_e8];},set:function(_ea,_eb){if(typeof _ea==="object"){for(var x in _ea){this.set(x,_ea[x]);}return this;}var _ec=this._getAttrNames(_ea),_ed=this[_ec.s];if(_bf.isFunction(_ed)){var _ee=_ed.apply(this,Array.prototype.slice.call(arguments,1));}else{var _ef=this.focusNode&&!_bf.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_ef].tagName,_f0=_c5[tag]||(_c5[tag]=_c6(this[_ef])),map=_ea in this.attributeMap?this.attributeMap[_ea]:_ec.s in this?this[_ec.s]:((_ec.l in _f0&&typeof _eb!="function")||/^aria-|^data-|^role$/.test(_ea))?_ef:null;if(map!=null){this._attrToDom(_ea,_eb,map);}this._set(_ea,_eb);}return _ee||this;},_attrPairNames:{},_getAttrNames:function(_f1){var apn=this._attrPairNames;if(apn[_f1]){return apn[_f1];}var uc=_f1.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_f1]={n:_f1+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_f2,_f3){var _f4=this[_f2];this[_f2]=_f3;if(this._watchCallbacks&&this._created&&!_ca(_f3,_f4)){this._watchCallbacks(_f2,_f4,_f3);}},on:function(_f5,_f6){return _b5.after(this,this._onMap(_f5),_f6,true);},_onMap:function(_f7){var _f8=this.constructor,map=_f8._onMap;if(!map){map=(_f8._onMap={});for(var _f9 in _f8.prototype){if(/^on/.test(_f9)){map[_f9.replace(/^on/,"").toLowerCase()]=_f9;}}}return map[_f7.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_c3.findWidgets(this.containerNode):[];},getParent:function(){return _c3.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_fa,_fb){var _fc=_b7.connect(obj,_fa,this,_fb);this._connects.push(_fc);return _fc;},disconnect:function(_fd){var i=_b4.indexOf(this._connects,_fd);if(i!=-1){_fd.remove();this._connects.splice(i,1);}},subscribe:function(t,_fe){var _ff=_c2.subscribe(t,_bf.hitch(this,_fe));this._connects.push(_ff);return _ff;},unsubscribe:function(_100){this.disconnect(_100);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_bc.isBodyLtr();},isFocusable:function(){return this.focus&&(_bd.get(this.domNode,"display")!="none");},placeAt:function(_101,_102){if(_101.declaredClass&&_101.addChild){_101.addChild(this,_102);}else{_bb.place(this.domNode,_101,_102);}return this;},getTextDir:function(text,_103){return _103;},applyTextDir:function(){},defer:function(fcn,_104){var _105=setTimeout(_bf.hitch(this,function(){if(!_105){return;}_105=null;if(!this._destroyed){_bf.hitch(this,fcn)();}}),_104||0);return {remove:function(){if(_105){clearTimeout(_105);_105=null;}return null;}};}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_106,lang,_107){return dojo.declare("dojo.Stateful",null,{postscript:function(_108){if(_108){lang.mixin(this,_108);}},get:function(name){return this[name];},set:function(name,_109){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _10a=this[name];this[name]=_109;if(this._watchCallbacks){this._watchCallbacks(name,_10a,_109);}return this;},watch:function(name,_10b){var _10c=this._watchCallbacks;if(!_10c){var self=this;_10c=this._watchCallbacks=function(name,_10d,_10e,_10f){var _110=function(_111){if(_111){_111=_111.slice();for(var i=0,l=_111.length;i<l;i++){try{_111[i].call(self,name,_10d,_10e);}catch(e){console.error(e);}}}};_110(_10c["_"+name]);if(!_10f){_110(_10c["*"]);}};}if(!_10b&&typeof name==="function"){_10b=name;name="*";}else{name="_"+name;}var _112=_10c[name];if(typeof _112!=="object"){_112=_10c[name]=[];}_112.push(_10b);return {unwatch:function(){_112.splice(_107.indexOf(_112,_10b),1);}};}});});},"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(dojo,_113,_114,_115,lang,win,dom,_116,_117,on,_118,_119,_11a,_11b){var dm=lang.getObject("dojox.mobile",true);var _11c=_115("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_118(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findCurrentView:function(_11d,src){if(_11d){var w=_119.byId(_11d);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(_116.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)?_119.byId(evt.target.id):_119.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_119.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_119.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){_114.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _11e=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 text=this._text;if(!text){if(_119.byId(evt.target.id).sync){dojo.xhrGet({url:evt.detail.url,sync:true,load:function(_11f){text=lang.trim(_11f);}});}else{var s="dojo/_base/xhr";require([s],lang.hitch(this,function(xhr){var prog=_11a.getInstance();win.body().appendChild(prog.domNode);prog.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(lang.hitch(this,function(_120,_121){prog.stop();if(_120){this._text=_120;new _11b(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_11e,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_122){prog.stop();});}));return;}}this._text=null;id=this._parse(text,_119.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_11e=id;w=this.findCurrentView(_11e,_119.byId(evt.target.id))||w;}var src=_119.getEnclosingWidget(evt.target);var _123,_124;if(src&&src.callback){_123=src;_124=src.callback;}w.performTransition(_11e,evt.detail.transitionDir,evt.detail.transition,_123,_124);},_parse:function(text,id){var _125,view,i,j,len;var _126=this.findCurrentView();var _127=_119.byId(id)&&_119.byId(id).containerNode||dom.byId(id)||_126&&_126.domNode.parentNode||win.body();var _128=null;for(j=_127.childNodes.length-1;j>=0;j--){var c=_127.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_128=c;break;}}}if(text.charAt(0)==="<"){_125=_117.create("DIV",{innerHTML:text});for(i=0;i<_125.childNodes.length;i++){var n=_125.childNodes[i];if(n.nodeType===1){view=n;break;}}if(!view){return;}view.style.visibility="hidden";_127.insertBefore(_125,_128);var ws=dojo.parser.parse(_125);_113.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_125.childNodes.length;i<len;i++){_127.insertBefore(_125.firstChild,_128);}_127.removeChild(_125);_119.byNode(view)._visible=true;}else{if(text.charAt(0)==="{"){_125=_117.create("DIV");_127.insertBefore(_125,_128);this._ws=[];view=this._instantiate(eval("("+text+")"),_125);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;}}view.style.display="none";view.style.visibility="visible";return dojo.hash?"#"+view.id:view.id;},_instantiate:function(obj,node,_129){var _12a;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=lang.getObject(key);if(!cls){continue;}var _12b={};var _12c=cls.prototype;var objs=lang.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<objs.length;i++){for(var prop in objs[i]){if(prop.charAt(0)=="@"){var val=objs[i][prop];prop=prop.substring(1);if(typeof _12c[prop]=="string"){_12b[prop]=val;}else{if(typeof _12c[prop]=="number"){_12b[prop]=val-0;}else{if(typeof _12c[prop]=="boolean"){_12b[prop]=(val!="false");}else{if(typeof _12c[prop]=="object"){_12b[prop]=eval("("+val+")");}}}}}}_12a=new cls(_12b,node);if(node){_12a._visible=true;this._ws.push(_12a);}if(_129&&_129.addChild){_129.addChild(_12a);}this._instantiate(objs[i],null,_12a);}}return _12a&&_12a.domNode;}});new _11c();return _11c;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_12d,_12e,_12f,_130,has){var cls=_12e("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=_12f.create("DIV");this.domNode.className="mblProgContainer";if(_12d["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_130.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_12f.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_12f.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 _131=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_131.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_131._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=_12f.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;});},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_132,_133,lang,on,_134){return _132("dojox.mobile.TransitionEvent",null,{constructor:function(_135,_136,_137){this.transitionOptions=_136;this.target=_135;this.triggerEvent=_137||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);if(evt){_133.when(_134,lang.hitch(this,function(_138){_133.when(_138.call(this,evt),lang.hitch(this,function(_139){this.endTransition(_139);}));}));}},endTransition:function(_13a){on.emit(this.target,"endTransition",{detail:_13a.transitionOptions});}});});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_13b,_13c){if(_13c["mblCSS3Transition"]){var _13d=new _13b();require([_13c["mblCSS3Transition"]],function(_13e){_13d.resolve(_13e);});return _13d;}return null;});},"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(_13f,_140,_141,lang,win,_142,_143,_144,_145,_146,_147,_148,View){var dm=lang.getObject("dojox.mobile",true);return _141("dojox.mobile.Heading",[_148,_147,_146],{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){_13f.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_143.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_143.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_143.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _149=this.getParent&&this.getParent();if(!_149||!_149.resize){var _14a=this;setTimeout(function(){_14a.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 _14b,_14c;var _14d=this.containerNode.childNodes;for(var i=_14d.length-1;i>=0;i--){var c=_14d[i];if(c.nodeType===1){if(!_14c&&_142.contains(c,"mblToolBarButton")&&_144.get(c,"float")==="right"){_14c=c;}if(!_14b&&(_142.contains(c,"mblToolBarButton")&&_144.get(c,"float")==="left"||c===this._btn)){_14b=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=_14c?bw-_14c.offsetLeft+5:0;var lw=_14b?_14b.offsetLeft+_14b.offsetWidth+5:0;var tw=this.labelNodeLen||0;_142[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_13f.forEach(this.getChildren(),function(_14e){if(_14e.resize){_14e.resize();}});},_setBackAttr:function(back){if(!back){_143.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_143.create("DIV",this.backProp,this.domNode,"first");var head=_143.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_143.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(_14f){this.label=_14f;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_14f):_14f;},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;_142.add(h1,"mblArrowButtonSelected");setTimeout(function(){_142.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(_150,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){_140.publish("/dojox/mobile/app/goback");}else{var node=_145.byId(view.convertToId(_150));if(node){var _151=node.getParent();while(view){var _152=view.getParent();if(_151===_152){break;}view=_152;}}if(view){view.performTransition(_150,-1,this.transition);}}}}});});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_153,_154,win,_155,_156,_157){return _154("dojox.mobile.RoundRect",[_157,_156,_155],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_153.forEach(this.getChildren(),function(_158){if(_158.resize){_158.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_159,win,_15a,_15b){return _159("dojox.mobile.RoundRectCategory",[_15b,_15a],{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(_15c){this.label=_15c;this.domNode.innerHTML=this._cv?this._cv(_15c):_15c;}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(_15d,_15e){return _15d("dojox.mobile.EdgeToEdgeCategory",_15e,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_15f,_160,win,_161,_162,_163){return _160("dojox.mobile.RoundRectList",[_163,_162,_161],{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(){_15f.forEach(this.getChildren(),function(_164){if(_164.resize){_164.resize();}});},onCheckStateChanged:function(_165,_166){},_setStatefulAttr:function(_167){this.stateful=_167;_15f.forEach(this.getChildren(),function(_168){_168.setArrow&&_168.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_15f.forEach(this.getChildren(),function(_169){_169.deselect&&_169.deselect();});},selectItem:function(item){item.select();}});});},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(_16a,_16b){return _16a("dojox.mobile.EdgeToEdgeList",_16b,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_16c,_16d,_16e,lang,_16f,_170,has,_171,_172,_173){return _16e("dojox.mobile.ListItem",_172,{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||_170.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_170.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=_170.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_170.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_170.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _174=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_174&&_174.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_16f.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_16f.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(_16f.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_16f.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_16f.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _175=this.getParent();if(_175.select){if(_175.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_175.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_171.openWindow(this.href,this.hrefTarget);return;}var _176;if(this.moveTo||this.href||this.url||this.scene){_176={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_176=this.transitionOptions;}}if(_176){this.setTransitionPos(e);return new _173(this.domNode,_176,e).dispatch();}},select:function(){var _177=this.getParent();if(_177.stateful){_177.deselectAll();}else{var _178=this;setTimeout(function(){_178.deselect();},has("android")?300:1000);}_16f.add(this.domNode,"mblItemSelected");},deselect:function(){_16f.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_16c.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 _179=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_179&&_179.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=_170.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_170.empty(this.iconNode);}if(icon&&icon!=="none"){_171.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_16f.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_16f.remove(a,"mblListItemAnchorNoIcon");}else{_16f.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_17a){var _17b=this.getParent();if(_17b&&_17b.select==="single"&&_17a){_16c.forEach(_17b.getChildren(),function(_17c){_17c.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _17d=this.rightIconNode.childNodes;if(_17d.length===1){this.rightIconNode.style.display=_17a?"":"none";}else{_17d[0].style.display=_17a?"":"none";_17d[1].style.display=!_17a?"":"none";}_16f.toggle(this.domNode,"mblListItemChecked",_17a);if(_17b&&this.checked!==_17a){_17b.onCheckStateChanged(this,_17a);}this.checked=_17a;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_170.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=_170.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_170.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_171.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_171.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_171.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_170.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_170.empty(this.rightIcon2Node);}this.rightIcon2=icon;_171.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/_ItemBase":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_17e,_17f,_180,_181,_182,_183,_184,_185,View){return _180("dojox.mobile._ItemBase",[_184,_183,_182],{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 _186=this.getParent();if(_186){if(!this.transition){this.transition=_186.transition;}if(this.icon&&_186.iconBase&&_186.iconBase.charAt(_186.iconBase.length-1)==="/"){this.icon=_186.iconBase+this.icon;}if(!this.icon){this.icon=_186.iconBase;}if(!this.iconPos){this.iconPos=_186.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 _187=this;setTimeout(function(){_187.deselect();},this._duration);}var _188;if(this.moveTo||this.href||this.url||this.scene){_188={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_188=this.transitionOptions;}}if(_188){return new _185(this.domNode,_188,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_181.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof View){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_189,href,url,_18a){if(_17f.isDebug){var _18b=arguments.callee._ach||(arguments.callee._ach={}),_18c=(arguments.callee.caller||"unknown caller").toString();if(!_18b[_18c]){_17e.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_18c,"","2.0");_18b[_18c]=true;}}new _185(this.domNode,{moveTo:_189,href:href,url:url,scene:_18a,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dojox/mobile/Switch":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_18d,_18e,_18f,_190,win,_191,_192,_193,has){return _18f("dojox.mobile.Switch",[_193,_192],{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 _194=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\""+_194+"></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(_195,anim){var on=(_195==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_191.add(this.domNode,"mblSwitchAnimation");}_191.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_191.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _196=this;setTimeout(function(){_196.left.style.display=on?"":"none";_196.right.style.display=!on?"":"none";_191.remove(_196.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(_197,r,w){if(!has("webkit")||!_197){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_197]){return;}this._createdMasks[_197]=1;var ctx=win.doc.getCSSCanvasContext("2d",_197+"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(_18e.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_18e.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="";_190.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){_18d.forEach(this._conn,_18e.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 _198=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_198,true);if(_198!=this.value){this.value=this.input.value=_198;this.onStateChanged(_198);}},onStateChanged:function(_199){},_setValueAttr:function(_19a){this._changeState(_19a,false);if(this.value!=_19a){this.onStateChanged(_19a);}this.value=this.input.value=_19a;},_setLeftLabelAttr:function(_19b){this.leftLabel=_19b;this.left.firstChild.innerHTML=this._cv?this._cv(_19b):_19b;},_setRightLabelAttr:function(_19c){this.rightLabel=_19c;this.right.firstChild.innerHTML=this._cv?this._cv(_19c):_19c;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ToolBarButton":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_19d,win,_19e,_19f,_1a0,_1a1,_1a2){return _19d("dojox.mobile.ToolBarButton",_1a2,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_19e.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _1a3;if(this.selected){_1a3=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_1a3=this._defaultColor;}}_19e.add(this.domNode,_1a3);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_19f.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_1a1.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_19e.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_1a1.createDomButton(this.domNode)){_19e.add(this.domNode,"mblToolBarButtonDomButton");}else{_19e.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_19e.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(_1a4){var node=this.domNode;if(node.className.match(/(mblDomButton\w+)/)){_19e.remove(node,RegExp.$1);}_19e.add(node,_1a4);if(_1a1.createDomButton(this.domNode)){_19e.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(text){this.label=text;this.domNode.innerHTML=this._cv?this._cv(text):text;}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_1a5,lang,base){lang.getObject("mobile",true,_1a5);return _1a5.mobile;});