/* 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/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/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,on,_a,_b,_c,_d){var dm=_5.getObject("dojox.mobile",true);var _e=_4("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_a(_5.hitch(this,function(){on(_6.body(),"startTransition",_5.hitch(this,"onStartTransition"));}));},findCurrentView:function(_f,src){if(_f){var w=_b.byId(_f);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(_8.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)?_b.byId(evt.target.id):_b.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_b.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_b.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){_3.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _10=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 _11=this._text;if(!_11){if(_b.byId(evt.target.id).sync){_1.xhrGet({url:evt.detail.url,sync:true,load:function(_12){_11=_5.trim(_12);}});}else{var s="dojo/_base/xhr";require([s],_5.hitch(this,function(xhr){var _13=_c.getInstance();_6.body().appendChild(_13.domNode);_13.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(_5.hitch(this,function(_14,_15){_13.stop();if(_14){this._text=_14;new _d(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_10,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_16){_13.stop();});}));return;}}this._text=null;id=this._parse(_11,_b.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_10=id;w=this.findCurrentView(_10,_b.byId(evt.target.id))||w;}var src=_b.getEnclosingWidget(evt.target);var _17,_18;if(src&&src.callback){_17=src;_18=src.callback;}w.performTransition(_10,evt.detail.transitionDir,evt.detail.transition,_17,_18);},_parse:function(_19,id){var _1a,_1b,i,j,len;var _1c=this.findCurrentView();var _1d=_b.byId(id)&&_b.byId(id).containerNode||_7.byId(id)||_1c&&_1c.domNode.parentNode||_6.body();var _1e=null;for(j=_1d.childNodes.length-1;j>=0;j--){var c=_1d.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_1e=c;break;}}}if(_19.charAt(0)==="<"){_1a=_9.create("DIV",{innerHTML:_19});for(i=0;i<_1a.childNodes.length;i++){var n=_1a.childNodes[i];if(n.nodeType===1){_1b=n;break;}}if(!_1b){return;}_1b.style.visibility="hidden";_1d.insertBefore(_1a,_1e);var ws=_1.parser.parse(_1a);_2.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_1a.childNodes.length;i=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/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_39,_3a,_3b,on,_3c){return _39("dojox.mobile.TransitionEvent",null,{constructor:function(_3d,_3e,_3f){this.transitionOptions=_3e;this.target=_3d;this.triggerEvent=_3f||null;},dispatch:function(){var _40={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",_40);if(evt){_3a.when(_3c,_3b.hitch(this,function(_41){_3a.when(_41.call(this,evt),_3b.hitch(this,function(_42){this.endTransition(_42);}));}));}},endTransition:function(_43){on.emit(this.target,"endTransition",{detail:_43.transitionOptions});}});});},"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(_44,_45,_46,_47,_48,_49,dom,_4a,_4b,_4c,_4d,_4e,_4f,_50,on,_51,_52,_53,win,_54){if(!_4f.isAsync){_51(0,function(){var _55=["dijit/_base/manager"];_44(_55);});}var _56={};function _57(obj){var ret={};for(var _58 in obj){ret[_58.toLowerCase()]=true;}return ret;};function _59(_5a){return function(val){_4a[val?"set":"remove"](this.domNode,_5a,val);this._set(_5a,val);};};function _5b(a,b){return a===b||(a!==a&&b!==b);};return _49("dijit._WidgetBase",_52,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_59("lang"),dir:"",_setDirAttr:_59("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_47.blankGif||_44.toUrl("dojo/resources/blank.gif"),postscript:function(_5c,_5d){this.create(_5c,_5d);},create:function(_5e,_5f){this.srcNodeRef=dom.byId(_5f);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_5e){this.params=_5e;_50.mixin(this,_5e);}this.postMixInProperties();if(!this.id){this.id=_54.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_54.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _60=this.srcNodeRef;if(_60&&_60.parentNode&&this.domNode!==_60){_60.parentNode.replaceChild(this.domNode,_60);}}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 _61=this.constructor,_62=_61._setterAttrs;if(!_62){_62=(_61._setterAttrs=[]);for(var _63 in this.attributeMap){_62.push(_63);}var _64=_61.prototype;for(var _65 in _64){if(_65 in this.attributeMap){continue;}var _66="_set"+_65.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_66 in _64){_62.push(_65);}}}_45.forEach(_62,function(_67){if(this.params&&_67 in this.params){}else{if(this[_67]){this.set(_67,this[_67]);}}},this);for(var _68 in this.params){this.set(_68,this[_68]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_4c.create("div");}if(this.baseClass){var _69=this.baseClass.split(" ");if(!this.isLeftToRight()){_69=_69.concat(_45.map(_69,function(_6a){return _6a+"Rtl";}));}_4b.add(this.domNode,_69);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_45.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_50.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_6b){this._beingDestroyed=true;this.destroyDescendants(_6b);this.destroy(_6b);},destroy:function(_6c){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(_6c);_54.remove(this.id);this._destroyed=true;},destroyRendering:function(_6d){if(this.bgIframe){this.bgIframe.destroy(_6d);delete this.bgIframe;}if(this.domNode){if(_6d){_4a.remove(this.domNode,"widgetId");}else{_4c.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_6d){_4c.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_6e){_45.forEach(this.getChildren(),function(_6f){if(_6f.destroyRecursive){_6f.destroyRecursive(_6e);}});},uninitialize:function(){return false;},_setStyleAttr:function(_70){var _71=this.domNode;if(_50.isObject(_70)){_4e.set(_71,_70);}else{if(_71.style.cssText){_71.style.cssText+="; "+_70;}else{_71.style.cssText=_70;}}this._set("style",_70);},_attrToDom:function(_72,_73,_74){_74=arguments.length>=3?_74:this.attributeMap[_72];_45.forEach(_50.isArray(_74)?_74:[_74],function(_75){var _76=this[_75.node||_75||"domNode"];var _77=_75.type||"attribute";switch(_77){case "attribute":if(_50.isFunction(_73)){_73=_50.hitch(this,_73);}var _78=_75.attribute?_75.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_72)?_72.toLowerCase():_72);_4a.set(_76,_78,_73);break;case "innerText":_76.innerHTML="";_76.appendChild(win.doc.createTextNode(_73));break;case "innerHTML":_76.innerHTML=_73;break;case "class":_4b.replace(_76,_73,this[_72]);break;}},this);},get:function(_79){var _7a=this._getAttrNames(_79);return this[_7a.g]?this[_7a.g]():this[_79];},set:function(_7b,_7c){if(typeof _7b==="object"){for(var x in _7b){this.set(x,_7b[x]);}return this;}var _7d=this._getAttrNames(_7b),_7e=this[_7d.s];if(_50.isFunction(_7e)){var _7f=_7e.apply(this,Array.prototype.slice.call(arguments,1));}else{var _80=this.focusNode&&!_50.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_80].tagName,_81=_56[tag]||(_56[tag]=_57(this[_80])),map=_7b in this.attributeMap?this.attributeMap[_7b]:_7d.s in this?this[_7d.s]:((_7d.l in _81&&typeof _7c!="function")||/^aria-|^data-|^role$/.test(_7b))?_80:null;if(map!=null){this._attrToDom(_7b,_7c,map);}this._set(_7b,_7c);}return _7f||this;},_attrPairNames:{},_getAttrNames:function(_82){var apn=this._attrPairNames;if(apn[_82]){return apn[_82];}var uc=_82.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[_82]={n:_82+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(_83,_84){var _85=this[_83];this[_83]=_84;if(this._watchCallbacks&&this._created&&!_5b(_84,_85)){this._watchCallbacks(_83,_85,_84);}},on:function(_86,_87){return _46.after(this,this._onMap(_86),_87,true);},_onMap:function(_88){var _89=this.constructor,map=_89._onMap;if(!map){map=(_89._onMap={});for(var _8a in _89.prototype){if(/^on/.test(_8a)){map[_8a.replace(/^on/,"").toLowerCase()]=_8a;}}}return map[_88.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_54.findWidgets(this.containerNode):[];},getParent:function(){return _54.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_8b,_8c){var _8d=_48.connect(obj,_8b,this,_8c);this._connects.push(_8d);return _8d;},disconnect:function(_8e){var i=_45.indexOf(this._connects,_8e);if(i!=-1){_8e.remove();this._connects.splice(i,1);}},subscribe:function(t,_8f){var _90=_53.subscribe(t,_50.hitch(this,_8f));this._connects.push(_90);return _90;},unsubscribe:function(_91){this.disconnect(_91);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_4d.isBodyLtr();},isFocusable:function(){return this.focus&&(_4e.get(this.domNode,"display")!="none");},placeAt:function(_92,_93){if(_92.declaredClass&&_92.addChild){_92.addChild(this,_93);}else{_4c.place(this.domNode,_92,_93);}return this;},getTextDir:function(_94,_95){return _95;},applyTextDir:function(){},defer:function(fcn,_96){var _97=setTimeout(_50.hitch(this,function(){if(!_97){return;}_97=null;if(!this._destroyed){_50.hitch(this,fcn)();}}),_96||0);return {remove:function(){if(_97){clearTimeout(_97);_97=null;}return null;}};}});});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(_98,_99,_9a,_9b,_9c,_9d,has,win,_9e,dom,_9f,_a0,_a1,_a2,_a3,_a4,_a5,_a6,_a7){var dm=_9d.getObject("dojox.mobile",true);return _9c("dojox.mobile.View",[_a5,_a4,_a3],{selected:false,keepScrollPos:true,constructor:function(_a8,_a9){if(_a9){dom.byId(_a9).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(!_9a["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 _aa=[];var _ab=this.domNode.parentNode.childNodes;var _ac=false;for(var i=0;i<_ab.length;i++){var c=_ab[i];if(c.nodeType===1&&_9f.contains(c,"mblView")){_aa.push(c);_ac=_ac||_a2.byNode(c)._visible;}}var _ad=this._visible;if(_aa.length===1||(!_ac&&_aa[0]===this.domNode)){_ad=true;}var _ae=this;setTimeout(function(){if(!_ad){_ae.domNode.style.display="none";}else{dm.currentView=_ae;_ae.onStartView();_9b.publish("/dojox/mobile/startView",[_ae]);}if(_ae.domNode.style.visibility!="visible"){_ae.domNode.style.visibility="visible";}var _af=_ae.getParent&&_ae.getParent();if(!_af||!_af.resize){_ae.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_99.forEach(this.getChildren(),function(_b0){if(_b0.resize){_b0.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_b1,dir,_b2,_b3,_b4){},onAfterTransitionIn:function(_b5,dir,_b6,_b7,_b8){},onBeforeTransitionOut:function(_b9,dir,_ba,_bb,_bc){},onAfterTransitionOut:function(_bd,dir,_be,_bf,_c0){},_saveState:function(_c1,dir,_c2,_c3,_c4){this._context=_c3;this._method=_c4;if(_c2=="none"){_c2=null;}this._moveTo=_c1;this._dir=dir;this._transition=_c2;this._arguments=_9d._toArray(arguments);this._args=[];if(_c3||_c4){for(var i=5;i1||_d1!==0){_cd.style.top=_d1-_d0+"px";if(_9a["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_d1||1));},0);}}}else{_cc.style.top="0px";}_cf.onBeforeTransitionIn.apply(_cf,arguments);_9b.publish("/dojox/mobile/beforeTransitionIn",[_cf].concat(_9d._toArray(arguments)));}if(!this._aw){_cc.style.display="none";_cc.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_a1.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_a1.get(win.body(),"background-color"),zIndex:-10000,display:""});_a1.set(_cc,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(_9d.hitch(this,function(){this._doTransition(_cd,_cc,_c9,dir);}),80);}else{this._doTransition(_cd,_cc,_c9,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_d2,_d3,_d4,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_a1.set(_d3,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_d3.style.display="";}}if(!_d4||_d4=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_9a["mblCSS3Transition"]){_9e.when(_a7,_9d.hitch(this,function(_d5){var _d6=_a1.get(_d3,"position");_a1.set(_d3,"position","absolute");_9e.when(_d5(_d2,_d3,{transition:_d4,reverse:(dir===-1)?true:false}),_9d.hitch(this,function(){_a1.set(_d3,"position",_d6);this.invokeCallback();}));}));}else{var s=this._toCls(_d4);_9f.add(_d2,s+" mblOut"+rev);_9f.add(_d3,s+" mblIn"+rev);setTimeout(function(){_9f.add(_d2,"mblTransition");_9f.add(_d3,"mblTransition");},100);var _d7="50% 50%";var _d8="50% 50%";var _d9,_da,_db;if(_d4.indexOf("swirl")!=-1||_d4.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_d9=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_d9=-_a0.position(_d2,true).y;}_db=win.global.innerHeight/2+_d9;_d7="50% "+_db+"px";_d8="50% "+_db+"px";}else{if(_d4.indexOf("scale")!=-1){var _dc=_a0.position(_d2,true);_da=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_dc.x;if(this.keepScrollPos&&!this.getParent()){_d9=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_d9=-_dc.y;}_db=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_d9;_d7=_da+"px "+_db+"px";_d8=_da+"px "+_db+"px";}}_a1.set(_d2,{webkitTransformOrigin:_d7});_a1.set(_d3,{webkitTransformOrigin:_d8});}}dm.currentView=_a2.byNode(_d3);},onAnimationStart:function(e){},onAnimationEnd:function(e){var _dd=e.animationName||e.target.className;if(_dd.indexOf("Out")===-1&&_dd.indexOf("In")===-1&&_dd.indexOf("Shrink")===-1){return;}var _de=false;if(_9f.contains(this.domNode,"mblOut")){_de=true;this.domNode.style.display="none";_9f.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_a1.set(this.domNode,{webkitTransformOrigin:""});if(_dd.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_9f.remove(li,"mblCloseContent");}if(_de){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_9b.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _df=_a2.byNode(this.toNode);if(_df){_df.onAfterTransitionIn.apply(_df,this._arguments);_9b.publish("/dojox/mobile/afterTransitionIn",[_df].concat(this._arguments));_df.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 _e0=this.domNode.parentNode.childNodes;for(var i=0;i<_e0.length;i++){var n=_e0[i];if(n.nodeType===1&&_9f.contains(n,"mblView")&&_a1.get(n,"display")!=="none"){return _a2.byNode(n);}}return null;},show:function(){var _e1=this.getShowingView();if(_e1){_e1.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_e2){return _e2.dojox;});},"dojox/mobile/transition":function(){define("dojox/mobile/transition",["dojo/_base/Deferred","dojo/_base/config"],function(_e3,_e4){if(_e4["mblCSS3Transition"]){var _e5=new _e3();require([_e4["mblCSS3Transition"]],function(_e6){_e5.resolve(_e6);});return _e5;}return null;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array"],function(_e7,_e8,_e9){return _e7("dojo.Stateful",null,{postscript:function(_ea){if(_ea){_e8.mixin(this,_ea);}},get:function(_eb){return this[_eb];},set:function(_ec,_ed){if(typeof _ec==="object"){for(var x in _ec){if(_ec.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,_ec[x]);}}return this;}var _ee=this[_ec];this[_ec]=_ed;if(this._watchCallbacks){this._watchCallbacks(_ec,_ee,_ed);}return this;},watch:function(_ef,_f0){var _f1=this._watchCallbacks;if(!_f1){var _f2=this;_f1=this._watchCallbacks=function(_f3,_f4,_f5,_f6){var _f7=function(_f8){if(_f8){_f8=_f8.slice();for(var i=0,l=_f8.length;i=0;i--){var c=_109[i];if(c.nodeType===1){if(!_108&&_fe.contains(c,"mblToolBarButton")&&_100.get(c,"float")==="right"){_108=c;}if(!_107&&(_fe.contains(c,"mblToolBarButton")&&_100.get(c,"float")==="left"||c===this._btn)){_107=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=_108?bw-_108.offsetLeft+5:0;var lw=_107?_107.offsetLeft+_107.offsetWidth+5:0;var tw=this.labelNodeLen||0;_fe[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_fa.forEach(this.getChildren(),function(_10a){if(_10a.resize){_10a.resize();}});},_setBackAttr:function(back){if(!back){_ff.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_ff.create("DIV",this.backProp,this.domNode,"first");var head=_ff.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_ff.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(_10b){this.label=_10b;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_10b):_10b;},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;_fe.add(h1,"mblArrowButtonSelected");setTimeout(function(){_fe.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(_10c,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){_fb.publish("/dojox/mobile/app/goback");}else{var node=_101.byId(view.convertToId(_10c));if(node){var _10d=node.getParent();while(view){var _10e=view.getParent();if(_10d===_10e){break;}view=_10e;}}if(view){view.performTransition(_10c,-1,this.transition);}}}}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_10f,_110,_111,_112,win,_113,_114,_115,has){return _111("dojox.mobile.Switch",[_115,_114],{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 _116=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.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_117,anim){var on=(_117==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_113.add(this.domNode,"mblSwitchAnimation");}_113.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_113.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _118=this;setTimeout(function(){_118.left.style.display=on?"":"none";_118.right.style.display=!on?"":"none";_113.remove(_118.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(_119,r,w){if(!has("webkit")||!_119){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_119]){return;}this._createdMasks[_119]=1;var ctx=win.doc.getCSSCanvasContext("2d",_119+"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(_110.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_110.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="";_112.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){_10f.forEach(this._conn,_110.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 _11a=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_11a,true);if(_11a!=this.value){this.value=this.input.value=_11a;this.onStateChanged(_11a);}},onStateChanged:function(_11b){},_setValueAttr:function(_11c){this._changeState(_11c,false);if(this.value!=_11c){this.onStateChanged(_11c);}this.value=this.input.value=_11c;},_setLeftLabelAttr:function(_11d){this.leftLabel=_11d;this.left.firstChild.innerHTML=this._cv?this._cv(_11d):_11d;},_setRightLabelAttr:function(_11e){this.rightLabel=_11e;this.right.firstChild.innerHTML=this._cv?this._cv(_11e):_11e;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_11f,_120,_121,lang,_122,_123,has,_124,_125,_126){return _121("dojox.mobile.ListItem",_125,{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||_123.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_123.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;idim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_146){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_146||(!this._sz||this._sz=dm.tabletSize))){from="tablet";to="phone";}}if(to){_140.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_13f.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_147,_148){if(_147&&_148){var arr=_13d.map(_148.split(/[ ,]/),function(item){return item-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_142.set(_147,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_147.parentNode?_142.get(_147,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_13e["mblHideAddressBarWait"])==="number"?_13e["mblHideAddressBarWait"]:1500;dm.hide_1=function(_149){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_149){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_149||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_13f.publish("/dojox/mobile/resizeAll",[evt,root]);dm.updateOrient();dm.detectScreenSize();var _14a=function(w){var _14b=w.getParent&&w.getParent();return !!((!_14b||!_14b.resize)&&w.resize);};var _14c=function(w){_13d.forEach(w.getChildren(),function(_14d){if(_14a(_14d)){_14d.resize();}_14c(_14d);});};if(root){if(root.resize){root.resize();}_14c(root);}else{_13d.forEach(_13d.filter(_144.toArray(),_14a),function(w){w.resize();});}};dm.openWindow=function(url,_14e){win.global.open(url,_14e||"_blank");};dm.createDomButton=function(_14f,_150,_151){if(!dm._domButtons){if(has("webkit")){var _152=function(_153,dic){var i,j;if(!_153){var dic={};var ss=dojo.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;}}}}}}};dm._domButtons=_152();}else{dm._domButtons={};}}var s=_14f.className;var node=_151||_14f;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _155=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(dm._domButtons[_155]!==undefined){nDiv=dm._domButtons[_155];}}var _156=null;if(has("bb")&&_13e["mblBBBoxShadowWorkaround"]!==false){_156={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i=2.2){_142.set(node,"webkitTransform","translate3d(0,0,0)");}!!_150&&_142.set(node,_150);return node;};dm.createIcon=function(icon,_157,node,_158,_159){if(icon&&icon.indexOf("mblDomButton")===0){if(node&&node.className.match(/(mblDomButton\w+)/)){_140.remove(node,RegExp.$1);}else{node=_141.create("DIV");}node.title=_158;_140.add(node,icon);dm.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_141.create("IMG",{alt:_158});}node.src=(icon||"").replace("${theme}",dm.currentTheme);dm.setupIcon(node,_157);if(_159&&_157){var arr=_157.split(/[ ,]/);_142.set(_159,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_159){_159.appendChild(node);}return node;};dm._iw=_13e["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_141.create("div");}if(_13e.parseOnLoad){_143(90,function(){var _15a=win.body().getElementsByTagName("*");var i,len,s;len=_15a.length;for(i=0;i=2.2){if(_13e["mblAndroidWorkaroundButtonStyle"]!==false){_141.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){_142.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_13f.connect(null,"onfocus",null,function(e){_142.set(win.doc.documentElement,"webkitTransform","");});_13f.connect(null,"onblur",null,function(e){_142.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_13e["mblAndroid3Workaround"]!==false){_142.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_13e["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_13e["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_13e["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_13f.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _15b=win.body().getElementsByTagName("*");var i,len=_15b.length,s;for(i=0;i=2.2&&has("android")<3){_16a.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_169.create("DIV",null,this.domNode);for(var i=0;i=_19a){_19b=_19c[_19a-1].domNode;_19a="after";}}_197.place(_199.domNode,_19b,_19a);if(this._started&&!_199._started){_199.startup();}},removeChild:function(_19d){if(typeof _19d=="number"){_19d=this.getChildren()[_19d];}if(_19d){var node=_19d.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_19e,dir){var node=_19e.domNode,_19f=(dir>0?"nextSibling":"previousSibling");do{node=node[_19f];}while(node&&(node.nodeType!=1||!_198.byNode(node)));return node&&_198.byNode(node);},getIndexOfChild:function(_1a0){return _195.indexOf(this.getChildren(),_1a0);}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_1a1,lang,base){lang.getObject("mobile",true,_1a1);return _1a1.mobile;});