/*
	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
*/

if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2=dojo._docScroll();return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};};dojo.window.get=function(_3){if(dojo.isIE&&window!==document.parentWindow){_3.parentWindow.execScript("document._parentWindow = window;","Javascript");var _4=_3._parentWindow;_3._parentWindow=null;return _4;}return _3.parentWindow||_3.defaultView;};dojo.window.scrollIntoView=function(_5,_6){try{_5=dojo.byId(_5);var _7=_5.ownerDocument||dojo.doc,_8=_7.body||dojo.body(),_9=_7.documentElement||_8.parentNode,_a=dojo.isIE,_b=dojo.isWebKit;if((!(dojo.isMoz||_a||_b||dojo.isOpera)||_5==_8||_5==_9)&&(typeof _5.scrollIntoView!="undefined")){_5.scrollIntoView(false);return;}var _c=_7.compatMode=="BackCompat",_d=_c?_8:_9,_e=_b?_8:_d,_f=_d.clientWidth,_10=_d.clientHeight,rtl=!dojo._isBodyLtr(),_11=_6||dojo.position(_5),el=_5.parentNode,_12=function(el){return ((_a<=6||(_a&&_c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_12(_5)){return;}while(el){if(el==_8){el=_e;}var _13=dojo.position(el),_14=_12(el);if(el==_e){_13.w=_f;_13.h=_10;if(_e==_9&&_a&&rtl){_13.x+=_e.offsetWidth-_13.w;}if(_13.x<0||!_a){_13.x=0;}if(_13.y<0||!_a){_13.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_13.w-=pb.w;_13.h-=pb.h;_13.x+=pb.l;_13.y+=pb.t;}if(el!=_e){var _15=el.clientWidth,_16=_13.w-_15;if(_15>0&&_16>0){_13.w=_15;if(_a&&rtl){_13.x+=_16;}}_15=el.clientHeight;_16=_13.h-_15;if(_15>0&&_16>0){_13.h=_15;}}if(_14){if(_13.y<0){_13.h+=_13.y;_13.y=0;}if(_13.x<0){_13.w+=_13.x;_13.x=0;}if(_13.y+_13.h>_10){_13.h=_10-_13.y;}if(_13.x+_13.w>_f){_13.w=_f-_13.x;}}var l=_11.x-_13.x,t=_11.y-Math.max(_13.y,0),r=l+_11.w-_13.w,bot=t+_11.h-_13.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);_11.x+=el.scrollLeft;el.scrollLeft+=(_a>=8&&!_c&&rtl)?-s:s;_11.x-=el.scrollLeft;}if(bot*t>0){_11.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_11.y-=el.scrollTop;}el=(el!=_e)&&!_14&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_5.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_17){if(this._hash[_17.id]){throw new Error("Tried to register widget with id=="+_17.id+" but that id is already registered");}this._hash[_17.id]=_17;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_18,_19){_19=_19||dojo.global;var i=0,id;for(id in this._hash){_18.call(_19,this._hash[id],i++,this._hash);}return this;},filter:function(_1a,_1b){_1b=_1b||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_1a.call(_1b,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_1c;for(id in this._hash){_1c=this._hash[id];if(_1c.declaredClass==cls){res.add(_1c);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_1d,_1e){return dojo.map(this.toArray(),_1d,_1e);},every:function(_1f,_20){_20=_20||dojo.global;var x=0,i;for(i in this._hash){if(!_1f.call(_20,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_21,_22){_22=_22||dojo.global;var x=0,i;for(i in this._hash){if(_21.call(_22,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _23=dijit.registry._hash,_24=dojo.attr,_25=dojo.hasAttr,_26=dojo.style;dijit.byId=function(id){return typeof id=="string"?_23[id]:id;};var _27={};dijit.getUniqueId=function(_28){var id;do{id=_28+"_"+(_28 in _27?++_27[_28]:_27[_28]=0);}while(_23[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_29){var _2a=[];function _2b(_2c){for(var _2d=_2c.firstChild;_2d;_2d=_2d.nextSibling){if(_2d.nodeType==1){var _2e=_2d.getAttribute("widgetId");if(_2e){var _2f=_23[_2e];if(_2f){_2a.push(_2f);}}else{_2b(_2d);}}}};_2b(_29);return _2a;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_30){if(!_30._destroyed){if(_30.destroyRecursive){_30.destroyRecursive();}else{if(_30.destroy){_30.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_31){return _23[_31.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_32){while(_32){var id=_32.getAttribute&&_32.getAttribute("widgetId");if(id){return _23[id];}_32=_32.parentNode;}return null;};var _33=(dijit._isElementShown=function(_34){var s=_26(_34);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_24(_34,"type")!="hidden");});dijit.hasDefaultTabStop=function(_35){switch(_35.nodeName.toLowerCase()){case "a":return _25(_35,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _36;try{var _37=_35.contentDocument;if("designMode" in _37&&_37.designMode=="on"){return true;}_36=_37.body;}catch(e1){try{_36=_35.contentWindow.document.body;}catch(e2){return false;}}return _36.contentEditable=="true"||(_36.firstChild&&_36.firstChild.contentEditable=="true");default:return _35.contentEditable=="true";}};var _38=(dijit.isTabNavigable=function(_39){if(_24(_39,"disabled")){return false;}else{if(_25(_39,"tabIndex")){return _24(_39,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_39);}}});dijit._getTabNavigable=function(_3a){var _3b,_3c,_3d,_3e,_3f,_40,_41={};function _42(_43){return _43&&_43.tagName.toLowerCase()=="input"&&_43.type&&_43.type.toLowerCase()=="radio"&&_43.name&&_43.name.toLowerCase();};var _44=function(_45){dojo.query("> *",_45).forEach(function(_46){if((dojo.isIE&&_46.scopeName!=="HTML")||!_33(_46)){return;}if(_38(_46)){var _47=_24(_46,"tabIndex");if(!_25(_46,"tabIndex")||_47==0){if(!_3b){_3b=_46;}_3c=_46;}else{if(_47>0){if(!_3d||_47<_3e){_3e=_47;_3d=_46;}if(!_3f||_47>=_40){_40=_47;_3f=_46;}}}var rn=_42(_46);if(dojo.attr(_46,"checked")&&rn){_41[rn]=_46;}}if(_46.nodeName.toUpperCase()!="SELECT"){_44(_46);}});};if(_33(_3a)){_44(_3a);}function rs(_48){return _41[_42(_48)]||_48;};return {first:rs(_3b),last:rs(_3c),lowest:rs(_3d),highest:rs(_3f)};};dijit.getFirstInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.lowest?_4a.lowest:_4a.first;};dijit.getLastInTabbingOrder=function(_4b){var _4c=dijit._getTabNavigable(dojo.byId(_4b));return _4c.last?_4c.last:_4c.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_4d){var _4e=dojo.doc,_4f=_4d.mark;if(_4f){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_4f.pRange){var r=_4f;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_4f);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_4e.selection&&_4f){var rg;if(_4f.pRange){rg=_4f.range;}else{if(dojo.isArray(_4f)){rg=_4e.body.createControlRange();dojo.forEach(_4f,function(n){rg.addElement(n);});}else{rg=_4e.body.createTextRange();rg.moveToBookmark(_4f);}}rg.select();}}}},getFocus:function(_50,_51){var _52=!dijit._curFocus||(_50&&dojo.isDescendant(dijit._curFocus,_50.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_52,bookmark:(_52==dijit._curFocus)&&dojo.withGlobal(_51||dojo.global,dijit.getBookmark),openedForWindow:_51};},focus:function(_53){if(!_53){return;}var _54="node" in _53?_53.node:_53,_55=_53.bookmark,_56=_53.openedForWindow,_57=_55?_55.isCollapsed:false;if(_54){var _58=(_54.tagName.toLowerCase()=="iframe")?_54.contentWindow:_54;if(_58&&_58.focus){try{_58.focus();}catch(e){}}dijit._onFocusNode(_54);}if(_55&&dojo.withGlobal(_56||dojo.global,dijit.isCollapsed)&&!_57){if(_56){_56.focus();}try{dojo.withGlobal(_56||dojo.global,dijit.moveToBookmark,null,[_55]);}catch(e2){}}},_activeStack:[],registerIframe:function(_59){return dijit.registerWin(_59.contentWindow,_59);},unregisterIframe:function(_5a){dijit.unregisterWin(_5a);},registerWin:function(_5b,_5c){var _5d=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_5c||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_5b.document.documentElement:_5b.document;if(doc){if(dojo.isIE){_5b.document.body.attachEvent("onmousedown",_5d);var _5e=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_5c||evt.srcElement);}else{dijit._onTouchNode(_5c||evt.srcElement);}};doc.attachEvent("onactivate",_5e);var _5f=function(evt){dijit._onBlurNode(_5c||evt.srcElement);};doc.attachEvent("ondeactivate",_5f);return function(){_5b.document.detachEvent("onmousedown",_5d);doc.detachEvent("onactivate",_5e);doc.detachEvent("ondeactivate",_5f);doc=null;};}else{doc.body.addEventListener("mousedown",_5d,true);var _60=function(evt){dijit._onFocusNode(_5c||evt.target);};doc.addEventListener("focus",_60,true);var _61=function(evt){dijit._onBlurNode(_5c||evt.target);};doc.addEventListener("blur",_61,true);return function(){doc.body.removeEventListener("mousedown",_5d,true);doc.removeEventListener("focus",_60,true);doc.removeEventListener("blur",_61,true);doc=null;};}}},unregisterWin:function(_62){_62&&_62();},_onBlurNode:function(_63){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_64,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _65=[];try{while(_64){var _66=dojo.attr(_64,"dijitPopupParent");if(_66){_64=dijit.byId(_66).domNode;}else{if(_64.tagName&&_64.tagName.toLowerCase()=="body"){if(_64===dojo.body()){break;}_64=dojo.window.get(_64.ownerDocument).frameElement;}else{var id=_64.getAttribute&&_64.getAttribute("widgetId"),_67=id&&dijit.byId(id);if(_67&&!(by=="mouse"&&_67.get("disabled"))){_65.unshift(id);}_64=_64.parentNode;}}}}catch(e){}dijit._setStack(_65,by);},_onFocusNode:function(_68){if(!_68){return;}if(_68.nodeType==9){return;}dijit._onTouchNode(_68);if(_68==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_68;dojo.publish("focusNode",[_68]);},_setStack:function(_69,by){var _6a=dijit._activeStack;dijit._activeStack=_69;for(var _6b=0;_6b<Math.min(_6a.length,_69.length);_6b++){if(_6a[_6b]!=_69[_6b]){break;}}var _6c;for(var i=_6a.length-1;i>=_6b;i--){_6c=dijit.byId(_6a[i]);if(_6c){_6c._focused=false;_6c.set("focused",false);_6c._hasBeenBlurred=true;if(_6c._onBlur){_6c._onBlur(by);}dojo.publish("widgetBlur",[_6c,by]);}}for(i=_6b;i<_69.length;i++){_6c=dijit.byId(_69[i]);if(_6c){_6c._focused=true;_6c.set("focused",true);if(_6c._onFocus){_6c._onFocus(by);}dojo.publish("widgetFocus",[_6c,by]);}}}});dojo.addOnLoad(function(){var _6d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_6d);_6d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_6e){this.pairs=[];this.returnWrappers=_6e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_6f,_70,_71,_72,_73){this.pairs[((_73)?"unshift":"push")]([_6f,_70,_71,_72]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _74=this.pairs[i];if(_74[1].apply(this,arguments)){if((_74[3])||(this.returnWrappers)){return _74[2];}else{return _74[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_75){for(var i=0;i<this.pairs.length;i++){var _76=this.pairs[i];if(_76[0]==_75){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(_77,pos,_78,_79){var _7a=dojo.map(_78,function(_7b){var c={corner:_7b,pos:{x:pos.x,y:pos.y}};if(_79){c.pos.x+=_7b.charAt(1)=="L"?_79.x:-_79.x;c.pos.y+=_7b.charAt(0)=="T"?_79.y:-_79.y;}return c;});return dijit._place(_77,_7a);};dijit._place=function(_7c,_7d,_7e,_7f){var _80=dojo.window.getBox();if(!_7c.parentNode||String(_7c.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_7c);}var _81=null;dojo.some(_7d,function(_82){var _83=_82.corner;var pos=_82.pos;var _84=0;var _85={w:_83.charAt(1)=="L"?(_80.l+_80.w)-pos.x:pos.x-_80.l,h:_83.charAt(1)=="T"?(_80.t+_80.h)-pos.y:pos.y-_80.t};if(_7e){var res=_7e(_7c,_82.aroundCorner,_83,_85,_7f);_84=typeof res=="undefined"?0:res;}var _86=_7c.style;var _87=_86.display;var _88=_86.visibility;_86.visibility="hidden";_86.display="";var mb=dojo.marginBox(_7c);_86.display=_87;_86.visibility=_88;var _89=Math.max(_80.l,_83.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_8a=Math.max(_80.t,_83.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_8b=Math.min(_80.l+_80.w,_83.charAt(1)=="L"?(_89+mb.w):pos.x),_8c=Math.min(_80.t+_80.h,_83.charAt(0)=="T"?(_8a+mb.h):pos.y),_8d=_8b-_89,_8e=_8c-_8a;_84+=(mb.w-_8d)+(mb.h-_8e);if(_81==null||_84<_81.overflow){_81={corner:_83,aroundCorner:_82.aroundCorner,x:_89,y:_8a,w:_8d,h:_8e,overflow:_84,spaceAvailable:_85};}return !_84;});if(_81.overflow&&_7e){_7e(_7c,_81.aroundCorner,_81.corner,_81.spaceAvailable,_7f);}var l=dojo._isBodyLtr(),s=_7c.style;s.top=_81.y+"px";s[l?"left":"right"]=(l?_81.x:_80.w-_81.x-_81.w)+"px";return _81;};dijit.placeOnScreenAroundNode=function(_8f,_90,_91,_92){_90=dojo.byId(_90);var _93=dojo.position(_90,true);return dijit._placeOnScreenAroundRect(_8f,_93.x,_93.y,_93.w,_93.h,_91,_92);};dijit.placeOnScreenAroundRectangle=function(_94,_95,_96,_97){return dijit._placeOnScreenAroundRect(_94,_95.x,_95.y,_95.width,_95.height,_96,_97);};dijit._placeOnScreenAroundRect=function(_98,x,y,_99,_9a,_9b,_9c){var _9d=[];for(var _9e in _9b){_9d.push({aroundCorner:_9e,corner:_9b[_9e],pos:{x:x+(_9e.charAt(1)=="L"?0:_99),y:y+(_9e.charAt(0)=="T"?0:_9a)}});}return dijit._place(_98,_9d,_9c,{w:_99,h:_9a});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_9f,_a0,_a1,_a2){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_a3,_a4){var _a5={};dojo.forEach(_a3,function(pos){switch(pos){case "after":_a5[_a4?"BR":"BL"]=_a4?"BL":"BR";break;case "before":_a5[_a4?"BL":"BR"]=_a4?"BR":"BL";break;case "below-alt":_a4=!_a4;case "below":_a5[_a4?"BL":"BR"]=_a4?"TL":"TR";_a5[_a4?"BR":"BL"]=_a4?"TR":"TL";break;case "above-alt":_a4=!_a4;case "above":default:_a5[_a4?"TL":"TR"]=_a4?"BL":"BR";_a5[_a4?"TR":"TL"]=_a4?"BR":"BL";break;}});return _a5;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_a6){var _a7=_a6.declaredClass?_a6._popupWrapper:(dojo.hasClass(_a6.parentNode,"dijitPopup")&&_a6.parentNode),_a8=_a6.domNode||_a6;if(!_a7){_a7=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_a7.appendChild(_a8);var s=_a8.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_a6.declaredClass){_a6._popupWrapper=_a7;dojo.connect(_a6,"destroy",function(){dojo.destroy(_a7);delete _a6._popupWrapper;});}}return _a7;},moveOffScreen:function(_a9){var _aa=this._createWrapper(_a9);dojo.style(_aa,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_ab){var _ac=this._createWrapper(_ab);dojo.style(_ac,"display","none");},getTopPopup:function(){var _ad=this._stack;for(var pi=_ad.length-1;pi>0&&_ad[pi].parent===_ad[pi-1].widget;pi--){}return _ad[pi];},open:function(_ae){var _af=this._stack,_b0=_ae.popup,_b1=_ae.orient||((_ae.parent?_ae.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_b2=_ae.around,id=(_ae.around&&_ae.around.id)?(_ae.around.id+"_dropdown"):("popup_"+this._idGen++);while(_af.length&&(!_ae.parent||!dojo.isDescendant(_ae.parent.domNode,_af[_af.length-1].widget.domNode))){dijit.popup.close(_af[_af.length-1].widget);}var _b3=this._createWrapper(_b0);dojo.attr(_b3,{id:id,style:{zIndex:this._beginZIndex+_af.length},"class":"dijitPopup "+(_b0.baseClass||_b0["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_ae.parent?_ae.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_b0.bgIframe){_b0.bgIframe=new dijit.BackgroundIframe(_b3);}}var _b4=_b2?dijit.placeOnScreenAroundElement(_b3,_b2,_b1,_b0.orient?dojo.hitch(_b0,"orient"):null):dijit.placeOnScreen(_b3,_ae,_b1=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_ae.padding);_b3.style.display="";_b3.style.visibility="visible";_b0.domNode.style.visibility="visible";var _b5=[];_b5.push(dojo.connect(_b3,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_ae.onCancel){dojo.stopEvent(evt);_ae.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _b6=this.getTopPopup();if(_b6&&_b6.onCancel){_b6.onCancel();}}}}));if(_b0.onCancel){_b5.push(dojo.connect(_b0,"onCancel",_ae.onCancel));}_b5.push(dojo.connect(_b0,_b0.onExecute?"onExecute":"onChange",this,function(){var _b7=this.getTopPopup();if(_b7&&_b7.onExecute){_b7.onExecute();}}));_af.push({widget:_b0,parent:_ae.parent,onExecute:_ae.onExecute,onCancel:_ae.onCancel,onClose:_ae.onClose,handlers:_b5});if(_b0.onOpen){_b0.onOpen(_b4);}return _b4;},close:function(_b8){var _b9=this._stack;while((_b8&&dojo.some(_b9,function(_ba){return _ba.widget==_b8;}))||(!_b8&&_b9.length)){var top=_b9.pop(),_bb=top.widget,_bc=top.onClose;if(_bb.onClose){_bb.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_bb&&_bb.domNode){this.hide(_bb);}if(_bc){_bc();}}}};dijit._frames=new function(){var _bd=[];this.pop=function(){var _be;if(_bd.length){_be=_bd.pop();_be.style.display="";}else{if(dojo.isIE<9){var _bf=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _c0="<iframe src='"+_bf+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_be=dojo.doc.createElement(_c0);}else{_be=dojo.create("iframe");_be.src="javascript:\"\"";_be.className="dijitBackgroundIframe";dojo.style(_be,"opacity",0.1);}_be.tabIndex=-1;dijit.setWaiRole(_be,"presentation");}return _be;};this.push=function(_c1){_c1.style.display="none";_bd.push(_c1);};}();dijit.BackgroundIframe=function(_c2){if(!_c2.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _c3=(this.iframe=dijit._frames.pop());_c2.appendChild(_c3);if(dojo.isIE<7||dojo.isQuirks){this.resize(_c2);this._conn=dojo.connect(_c2,"onresize",this,function(){this.resize(_c2);});}else{dojo.style(_c3,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(_c4){if(this.iframe){dojo.style(this.iframe,{width:_c4.offsetWidth+"px",height:_c4.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_c5,pos){dojo.window.scrollIntoView(_c5,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,_c6=d.doc.documentElement,ie=d.isIE,_c7=d.isOpera,maj=Math.floor,ff=d.isFF,_c8=d.boxModel.replace(/-/,""),_c9={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_c7,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_c9["dj_"+_c8]=true;var _ca="";for(var clz in _c9){if(_c9[clz]){_ca+=clz+" ";}}_c6.className=d.trim(_c6.className+" "+_ca);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _cb="dj_rtl dijitRtl "+_ca.replace(/ /g,"-rtl ");_c6.className=d.trim(_c6.className+" "+_cb);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_cc,_cd,_ce,obj,_cf,_d0,_d1){if(obj!=this._obj){this.stop();this._initialDelay=_d0||500;this._subsequentDelay=_cf||0.9;this._minDelay=_d1||10;this._obj=obj;this._evt=evt;this._node=_cd;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_cc,_ce);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_d2,_d3,_d4,_d5,_d6,_d7,_d8){if(_d3.keyCode){_d3.charOrCode=_d3.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_d3.charCode){_d3.charOrCode=String.fromCharCode(_d3.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_d2,"onkeypress",this,function(evt){if(evt.charOrCode==_d3.charOrCode&&(_d3.ctrlKey===undefined||_d3.ctrlKey==evt.ctrlKey)&&(_d3.altKey===undefined||_d3.altKey==evt.altKey)&&(_d3.metaKey===undefined||_d3.metaKey==(evt.metaKey||false))&&(_d3.shiftKey===undefined||_d3.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_d4,_d2,_d5,_d3,_d6,_d7,_d8);}else{if(dijit.typematic._obj==_d3){dijit.typematic.stop();}}}),dojo.connect(_d2,"onkeyup",this,function(evt){if(dijit.typematic._obj==_d3){dijit.typematic.stop();}})];},addMouseListener:function(_d9,_da,_db,_dc,_dd,_de){var dc=dojo.connect;return [dc(_d9,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_da,_d9,_db,_d9,_dc,_dd,_de);}),dc(_d9,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d9,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_d9,"mousemove",this,function(evt){evt.preventDefault();}),dc(_d9,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_da,_d9,_db,_d9,_dc,_dd,_de);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_df,_e0,_e1,_e2,_e3,_e4,_e5,_e6){return this.addKeyListener(_e0,_e1,_e2,_e3,_e4,_e5,_e6).concat(this.addMouseListener(_df,_e2,_e3,_e4,_e5,_e6));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _e7=cs.backgroundImage;var _e8=(cs.borderTopColor==cs.borderRightColor)||(_e7!=null&&(_e7=="none"||_e7=="url(invalid-url:)"));dojo[_e8?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(_e9,_ea){var _eb=this.getWaiRole(_e9);return _ea?(_eb.indexOf(_ea)>-1):(_eb.length>0);},getWaiRole:function(_ec){return dojo.trim((dojo.attr(_ec,"role")||"").replace("wairole:",""));},setWaiRole:function(_ed,_ee){dojo.attr(_ed,"role",_ee);},removeWaiRole:function(_ef,_f0){var _f1=dojo.attr(_ef,"role");if(!_f1){return;}if(_f0){var t=dojo.trim((" "+_f1+" ").replace(" "+_f0+" "," "));dojo.attr(_ef,"role",t);}else{_ef.removeAttribute("role");}},hasWaiState:function(_f2,_f3){return _f2.hasAttribute?_f2.hasAttribute("aria-"+_f3):!!_f2.getAttribute("aria-"+_f3);},getWaiState:function(_f4,_f5){return _f4.getAttribute("aria-"+_f5)||"";},setWaiState:function(_f6,_f7,_f8){_f6.setAttribute("aria-"+_f7,_f8);},removeWaiState:function(_f9,_fa){_f9.removeAttribute("aria-"+_fa);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_fb){if(_fb){dojo.mixin(this,_fb);}},get:function(_fc){return this[_fc];},set:function(_fd,_fe){if(typeof _fd==="object"){for(var x in _fd){this.set(x,_fd[x]);}return this;}var _ff=this[_fd];this[_fd]=_fe;if(this._watchCallbacks){this._watchCallbacks(_fd,_ff,_fe);}return this;},watch:function(name,_100){var _101=this._watchCallbacks;if(!_101){var self=this;_101=this._watchCallbacks=function(name,_102,_103,_104){var _105=function(_106){if(_106){_106=_106.slice();for(var i=0,l=_106.length;i<l;i++){try{_106[i].call(self,name,_102,_103);}catch(e){console.error(e);}}}};_105(_101["_"+name]);if(!_104){_105(_101["*"]);}};}if(!_100&&typeof name==="function"){_100=name;name="*";}else{name="_"+name;}var _107=_101[name];if(typeof _107!=="object"){_107=_101[name]=[];}_107.push(_100);return {unwatch:function(){_107.splice(dojo.indexOf(_107,_100),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_108,_109){this.create(_108,_109);},create:function(_10a,_10b){this.srcNodeRef=dojo.byId(_10b);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_10a){this.params=_10a;dojo._mixin(this,_10a);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _10c=this.srcNodeRef;if(_10c&&_10c.parentNode&&this.domNode!==_10c){_10c.parentNode.replaceChild(this.domNode,_10c);}}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 _10d=function(attr,_10e){if((_10e.params&&attr in _10e.params)||_10e[attr]){_10e.set(attr,_10e[attr]);}};for(var attr in this.attributeMap){_10d(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_10d(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_10f,_110=ctor.prototype;for(var _111 in _110){if(dojo.isFunction(_110[_111])&&(_10f=_111.match(/^_set([a-zA-Z]*)Attr$/))&&_10f[1]){r.push(_10f[1].charAt(0).toLowerCase()+_10f[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _112=this.baseClass.split(" ");if(!this.isLeftToRight()){_112=_112.concat(dojo.map(_112,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_112);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_113){this._beingDestroyed=true;this.destroyDescendants(_113);this.destroy(_113);},destroy:function(_114){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_115){dfe(_115,d.disconnect);});dfe(this._subscribes,function(_116){dun(_116);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_114);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_117){if(this.bgIframe){this.bgIframe.destroy(_117);delete this.bgIframe;}if(this.domNode){if(_117){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_117){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_118){dojo.forEach(this.getChildren(),function(_119){if(_119.destroyRecursive){_119.destroyRecursive(_118);}});},uninitialize:function(){return false;},_setClassAttr:function(_11a){var _11b=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_11b,_11a,this["class"]);this._set("class",_11a);},_setStyleAttr:function(_11c){var _11d=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_11c)){dojo.style(_11d,_11c);}else{if(_11d.style.cssText){_11d.style.cssText+="; "+_11c;}else{_11d.style.cssText=_11c;}}this._set("style",_11c);},_attrToDom:function(attr,_11e){var _11f=this.attributeMap[attr];dojo.forEach(dojo.isArray(_11f)?_11f:[_11f],function(_120){var _121=this[_120.node||_120||"domNode"];var type=_120.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_11e)){_11e=dojo.hitch(this,_11e);}var _122=_120.attribute?_120.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_121,_122,_11e);break;case "innerText":_121.innerHTML="";_121.appendChild(dojo.doc.createTextNode(_11e));break;case "innerHTML":_121.innerHTML=_11e;break;case "class":dojo.replaceClass(_121,_11e,this[attr]);break;}},this);},get:function(name){var _123=this._getAttrNames(name);return this[_123.g]?this[_123.g]():this[name];},set:function(name,_124){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _125=this._getAttrNames(name);if(this[_125.s]){var _126=this[_125.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_124);}this._set(name,_124);}return _126||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_127){var _128=this[name];this[name]=_127;if(this._watchCallbacks&&this._created&&_127!==_128){this._watchCallbacks(name,_128,_127);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_129,_12a){var _12b=[dojo._connect(obj,_129,this,_12a)];this._connects.push(_12b);return _12b;},disconnect:function(_12c){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_12c){dojo.forEach(_12c,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_12d,_12e){var _12f=dojo.subscribe(_12d,this,_12e);this._subscribes.push(_12f);return _12f;},unsubscribe:function(_130){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_130){dojo.unsubscribe(_130);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_131,_132){if(_131.declaredClass&&_131.addChild){_131.addChild(this,_132);}else{dojo.place(this.domNode,_131,_132);}return this;}});})();}if(!dojo._hasResource["dojox.mobile._base"]){dojo._hasResource["dojox.mobile._base"]=true;dojo.provide("dojox.mobile._base");dojo.isBB=(navigator.userAgent.indexOf("BlackBerry")!=-1)&&!dojo.isWebKit;dojo.declare("dojox.mobile.View",dijit._WidgetBase,{selected:false,keepScrollPos:true,_started:false,constructor:function(_133,node){if(node){dojo.byId(node).style.visibility="hidden";}},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dojox.mobile._defaultView=this;}},startup:function(){if(this._started){return;}var _134=this;setTimeout(function(){if(!_134._visible){_134.domNode.style.display="none";}else{dojox.mobile.currentView=_134;_134.onStartView();}_134.domNode.style.visibility="visible";},dojo.isIE?100:0);this._started=true;},onStartView:function(){},onBeforeTransitionIn:function(_135,dir,_136,_137,_138){},onAfterTransitionIn:function(_139,dir,_13a,_13b,_13c){},onBeforeTransitionOut:function(_13d,dir,_13e,_13f,_140){},onAfterTransitionOut:function(_141,dir,_142,_143,_144){},_saveState:function(_145,dir,_146,_147,_148){this._context=_147;this._method=_148;if(_146=="none"||!dojo.isWebKit){_146=null;}this._moveTo=_145;this._dir=dir;this._transition=_146;this._arguments=[];var i;for(i=0;i<arguments.length;i++){this._arguments.push(arguments[i]);}this._args=[];if(_147||_148){for(i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},performTransition:function(_149,dir,_14a,_14b,_14c){if(dojo.hash){if(typeof (_149)=="string"&&_149.charAt(0)=="#"&&!dojox.mobile._params){dojox.mobile._params=[];for(var i=0;i<arguments.length;i++){dojox.mobile._params.push(arguments[i]);}dojo.hash(_149);return;}}this._saveState.apply(this,arguments);var _14d;if(_149){if(typeof (_149)=="string"){_149.match(/^#?([^&]+)/);_14d=RegExp.$1;}else{_14d=_149;}}else{if(!this._dummyNode){this._dummyNode=dojo.doc.createElement("DIV");dojo.body().appendChild(this._dummyNode);}_14d=this._dummyNode;}var _14e=this.domNode;_14d=this.toNode=dojo.byId(_14d);if(!_14d){alert("dojox.mobile.View#performTransition: destination view not found: "+_14d);}_14d.style.visibility="hidden";_14d.style.display="";this.onBeforeTransitionOut.apply(this,arguments);var _14f=dijit.byNode(_14d);if(_14f){if(this.keepScrollPos&&!dijit.getEnclosingWidget(this.domNode.parentNode)){var _150=dojo.body().scrollTop||dojo.doc.documentElement.scrollTop||dojo.global.pageYOffset||0;if(dir==1){_14d.style.top="0px";if(_150>1){_14e.style.top=-_150+"px";if(dojo.config["mblHideAddressBar"]!==false){setTimeout(function(){dojo.global.scrollTo(0,1);},0);}}}else{if(_150>1||_14d.offsetTop!==0){var _151=-_14d.offsetTop;_14d.style.top="0px";_14e.style.top=_151-_150+"px";if(dojo.config["mblHideAddressBar"]!==false&&_151>0){setTimeout(function(){dojo.global.scrollTo(0,_151+1);},0);}}}}else{_14d.style.top="0px";}_14f.onBeforeTransitionIn.apply(_14f,arguments);}_14d.style.display="none";_14d.style.visibility="visible";this._doTransition(_14e,_14d,_14a,dir);},_doTransition:function(_152,_153,_154,dir){var rev=(dir==-1)?" reverse":"";_153.style.display="";if(!_154||_154=="none"){this.domNode.style.display="none";this.invokeCallback();}else{dojo.addClass(_152,_154+" out"+rev);dojo.addClass(_153,_154+" in"+rev);}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _155=false;if(dojo.hasClass(this.domNode,"out")){_155=true;this.domNode.style.display="none";dojo.forEach([this._transition,"in","out","reverse"],function(s){dojo.removeClass(this.domNode,s);},this);}if(e.animationName.indexOf("shrink")===0){var li=e.target;li.style.display="none";dojo.removeClass(li,"mblCloseContent");}if(_155){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);var _156=dijit.byNode(this.toNode);if(_156){_156.onAfterTransitionIn.apply(_156,this._arguments);}dojox.mobile.currentView=_156;var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||dojo.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _157=this.domNode.parentNode.childNodes;for(var i=0;i<_157.length;i++){if(dojo.hasClass(_157[i],"mblView")&&dojo.style(_157[i],"display")!="none"){return dijit.byNode(_157[i]);}}},show:function(){var fs=this.getShowingView().domNode.style;var ts=this.domNode.style;fs.display="none";ts.display="";dojox.mobile.currentView=this;},addChild:function(_158){this.containerNode.appendChild(_158.domNode);}});dojo.declare("dojox.mobile.Heading",dijit._WidgetBase,{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("H1");this.domNode.className="mblHeading";this._view=dijit.getEnclosingWidget(this.domNode.parentNode);if(this.label){this.domNode.appendChild(document.createTextNode(this.label));}else{this.label="";dojo.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){this.label+=n.nodeValue;}},this);this.label=dojo.trim(this.label);}if(this.back){var btn=dojo.create("DIV",{className:"mblArrowButton"},this.domNode,"first");var head=dojo.create("DIV",{className:"mblArrowButtonHead"},btn);var body=dojo.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;body.innerHTML=this.back;this.connect(body,"onclick","onClick");var neck=dojo.create("DIV",{className:"mblArrowButtonNeck"},btn);btn.style.width=body.offsetWidth+head.offsetWidth+"px";this.setLabel(this.label);}},startup:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}},onClick:function(e){var h1=this.domNode;dojo.addClass(h1,"mblArrowButtonSelected");setTimeout(function(){dojo.removeClass(h1,"mblArrowButtonSelected");},1000);this.goTo(this.moveTo,this.href);},setLabel:function(_159){if(_159!=this.label){this.label=_159;this.domNode.firstChild.nodeValue=_159;}},goTo:function(_15a,href){if(!this._view){this._view=dijit.byNode(this.domNode.parentNode);}if(!this._view){return;}if(href){this._view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dojox.mobile.app&&dojox.mobile.app.STAGE_CONTROLLER_ACTIVE){dojo.publish("/dojox/mobile/app/goback");}else{this._view.performTransition(_15a,-1,this.transition);}}}});dojo.declare("dojox.mobile.RoundRect",dijit._WidgetBase,{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";}});dojo.declare("dojox.mobile.RoundRectCategory",dijit._WidgetBase,{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(this.label){this.domNode.innerHTML=this.label;}else{this.label=this.domNode.innerHTML;}}});dojo.declare("dojox.mobile.EdgeToEdgeCategory",dojox.mobile.RoundRectCategory,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});dojo.declare("dojox.mobile.RoundRectList",dijit._WidgetBase,{transition:"slide",iconBase:"",iconPos:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("UL");this.domNode.className="mblRoundRectList";},addChild:function(_15b){this.containerNode.appendChild(_15b.domNode);_15b.inheritParams();_15b.setIcon();}});dojo.declare("dojox.mobile.EdgeToEdgeList",dojox.mobile.RoundRectList,{stateful:false,buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});dojo.declare("dojox.mobile.AbstractItem",dijit._WidgetBase,{icon:"",iconPos:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",transition:"",transitionDir:1,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _15c=this.getParentWidget();if(_15c){if(!this.transition){this.transition=_15c.transition;}if(!this.icon){this.icon=_15c.iconBase;}if(!this.iconPos){this.iconPos=_15c.iconPos;}}},findCurrentView:function(_15d){var w;if(_15d){w=dijit.byId(_15d);if(w){return w.getShowingView();}}var n=this.domNode.parentNode;while(true){w=dijit.getEnclosingWidget(n);if(!w){return null;}if(w.performTransition){break;}n=w.domNode.parentNode;}return w;},transitionTo:function(_15e,href,url,_15f){var w=this.findCurrentView(_15e);if(!w||_15e&&w===dijit.byId(_15e)){return;}if(href){if(this.hrefTarget){dojox.mobile.openWindow(this.href,this.hrefTarget);}else{w.performTransition(null,this.transitionDir,this.transition,this,function(){location.href=href;});}return;}else{if(_15f){dojo.publish("/dojox/mobile/app/pushScene",[_15f]);return;}}if(url){var id;if(dojox.mobile._viewMap&&dojox.mobile._viewMap[url]){id=dojox.mobile._viewMap[url];}else{var text=this._text;if(!text){if(this.sync){text=dojo.trim(dojo._getText(url));}else{dojo["require"]("dojo._base.xhr");var prog=dojox.mobile.ProgressIndicator.getInstance();dojo.body().appendChild(prog.domNode);prog.start();var xhr=dojo.xhrGet({url:url,handleAs:"text"});xhr.addCallback(dojo.hitch(this,function(_160,_161){prog.stop();if(_160){this._text=_160;this.transitionTo(_15e,href,url,_15f);}}));xhr.addErrback(function(_162){prog.stop();alert("Failed to load "+url+"\n"+(_162.description||_162));});return;}}this._text=null;id=this._parse(text);if(!dojox.mobile._viewMap){dojox.mobile._viewMap=[];}dojox.mobile._viewMap[url]=id;}_15e=id;}w.performTransition(_15e,this.transitionDir,this.transition,this.callback&&this,this.callback);},_parse:function(text){var _163=dojo.create("DIV");var view;if(text.charAt(0)=="<"){_163.innerHTML=text;view=_163.firstChild;if(!view&&view.nodeType!=1){alert("dojox.mobile.AbstractItem#transitionTo: invalid view content");return;}view.setAttribute("_started","true");view.style.visibility="hidden";dojo.body().appendChild(_163);(dojox.mobile.parser||dojo.parser).parse(_163);}else{if(text.charAt(0)=="{"){dojo.body().appendChild(_163);this._ws=[];view=this._instantiate(eval("("+text+")"),_163);for(var 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";var id=view.id;return dojo.hash?"#"+id:id;},_instantiate:function(obj,node,_164){var _165;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=dojo.getObject(key);if(!cls){continue;}var _166={};var _167=cls.prototype;var objs=dojo.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 _167[prop]=="string"){_166[prop]=val;}else{if(typeof _167[prop]=="number"){_166[prop]=val-0;}else{if(typeof _167[prop]=="boolean"){_166[prop]=(val!="false");}else{if(typeof _167[prop]=="object"){_166[prop]=eval("("+val+")");}}}}}}_165=new cls(_166,node);if(!node){this._ws.push(_165);}if(_164&&_164.addChild){_164.addChild(_165);}this._instantiate(objs[i],null,_165);}}return _165&&_165.domNode;},createDomButton:function(_168,_169){var s=_168.className;if(s.match(/mblDomButton\w+_(\d+)/)){var nDiv=RegExp.$1-0;for(var i=0,p=(_169||_168);i<nDiv;i++){p=dojo.create("DIV",null,p);}}},select:function(_16a){},defaultClickAction:function(){if(this.toggle){this.select(this.selected);}else{if(!this.selected){this.select();if(!this.selectOne){var _16b=this;setTimeout(function(){_16b.select(true);},this._duration);}if(this.moveTo||this.href||this.url||this.scene){this.transitionTo(this.moveTo,this.href,this.url,this.scene);}}}},getParentWidget:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?dijit.getEnclosingWidget(ref.parentNode):null;}});dojo.declare("dojox.mobile.ListItem",dojox.mobile.AbstractItem,{rightText:"",btnClass:"",anchorLabel:false,noArrow:false,selected:false,buildRendering:function(){this.inheritParams();var a=this.anchorNode=dojo.create("A");a.className="mblListItemAnchor";var box=dojo.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r){for(var i=0,len=r.childNodes.length;i<len;i++){box.appendChild(r.removeChild(r.firstChild));}}if(this.label){box.appendChild(dojo.doc.createTextNode(this.label));}a.appendChild(box);if(this.rightText){this._setRightTextAttr(this.rightText);}if(this.moveTo||this.href||this.url||this.clickable){var _16c=this.getParentWidget();if(!this.noArrow&&!(_16c&&_16c.stateful)){var _16d=dojo.create("DIV");_16d.className="mblArrow";a.appendChild(_16d);}this.connect(a,"onclick","onClick");}else{if(this.btnClass){var div=this.btnNode=dojo.create("DIV");div.className=this.btnClass+" mblRightButton";div.appendChild(dojo.create("DIV"));div.appendChild(dojo.create("P"));var _16e=dojo.create("DIV");_16e.className="mblRightButtonContainer";_16e.appendChild(div);a.appendChild(_16e);dojo.addClass(a,"mblListItemAnchorHasRightButton");setTimeout(function(){_16e.style.width=div.offsetWidth+"px";_16e.style.height=div.offsetHeight+"px";if(dojo.isIE){a.parentNode.style.height=a.parentNode.offsetHeight+"px";}},0);}}if(this.anchorLabel){box.style.display="inline";}var li=this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("LI");li.className="mblListItem"+(this.selected?" mblItemSelected":"");li.appendChild(a);this.setIcon();},setIcon:function(){if(this.iconNode){return;}var a=this.anchorNode;if(this.icon&&this.icon!="none"){var img=this.iconNode=dojo.create("IMG");img.className="mblListItemIcon";img.src=this.icon;this.domNode.insertBefore(img,a);dojox.mobile.setupIcon(this.iconNode,this.iconPos);dojo.removeClass(a,"mblListItemAnchorNoIcon");}else{dojo.addClass(a,"mblListItemAnchorNoIcon");}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(dojo.hasClass(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!="LI";p=p.parentNode){if(p.className=="mblListItemTextBox"){dojo.addClass(p,"mblListItemTextBoxSelected");setTimeout(function(){dojo.removeClass(p,"mblListItemTextBoxSelected");},1000);this.onAnchorLabelClicked(e);return;}}}if(this.getParentWidget().stateful){for(var i=0,c=li.parentNode.childNodes;i<c.length;i++){dojo.removeClass(c[i],"mblItemSelected");}}else{setTimeout(function(){dojo.removeClass(li,"mblItemSelected");},1000);}dojo.addClass(li,"mblItemSelected");this.transitionTo(this.moveTo,this.href,this.url,this.scene);},onAnchorLabelClicked:function(e){},_setRightTextAttr:function(text){this.rightText=text;if(!this._rightTextNode){this._rightTextNode=dojo.create("DIV",{className:"mblRightText"},this.anchorNode);}this._rightTextNode.innerHTML=text;}});dojo.declare("dojox.mobile.Switch",dijit._WidgetBase,{value:"on",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("DIV");this.domNode.className="mblSwitch";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\">"+this.leftLabel+"</div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\">"+this.rightLabel+"</div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];dojo.addClass(this.domNode,(this.value=="on")?"mblSwitchOn":"mblSwitchOff");this[this.value=="off"?"left":"right"].style.display="none";},postCreate:function(){this.connect(this.knob,"onclick","onClick");this.connect(this.knob,"touchstart","onTouchStart");this.connect(this.knob,"mousedown","onTouchStart");},_changeState:function(_16f){this.inner.style.left="";dojo.addClass(this.domNode,"mblSwitchAnimation");dojo.removeClass(this.domNode,(_16f=="on")?"mblSwitchOff":"mblSwitchOn");dojo.addClass(this.domNode,(_16f=="on")?"mblSwitchOn":"mblSwitchOff");var _170=this;setTimeout(function(){_170[_16f=="off"?"left":"right"].style.display="none";dojo.removeClass(_170.domNode,"mblSwitchAnimation");},300);},onClick:function(e){if(this._moved){return;}this.value=(this.value=="on")?"off":"on";this._changeState(this.value);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(e.targetTouches){this.touchStartX=e.targetTouches[0].clientX;this._conn1=dojo.connect(this.inner,"touchmove",this,"onTouchMove");this._conn2=dojo.connect(this.inner,"touchend",this,"onTouchEnd");}this.left.style.display="block";this.right.style.display="block";dojo.stopEvent(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";this._moved=true;},onTouchEnd:function(e){dojo.disconnect(this._conn1);dojo.disconnect(this._conn2);if(this.innerStartX==this.inner.offsetLeft){if(dojo.isWebKit){var ev=dojo.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.knob.dispatchEvent(ev);}return;}var _171=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_171);if(_171!=this.value){this.value=_171;this.onStateChanged(this.value);}},onStateChanged:function(_172){}});dojo.declare("dojox.mobile.Button",dijit._WidgetBase,{btnClass:"mblBlueButton",duration:1000,label:null,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("BUTTON");this.domNode.className="mblButton "+this.btnClass;if(this.label){this.domNode.innerHTML=this.label;}this.connect(this.domNode,"onclick","onClick");},onClick:function(e){var _173=this.domNode;var c="mblButtonSelected "+this.btnClass+"Selected";dojo.addClass(_173,c);setTimeout(function(){dojo.removeClass(_173,c);},this.duration);}});dojo.declare("dojox.mobile.ToolBarButton",dojox.mobile.AbstractItem,{selected:false,_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.inheritParams();this.domNode=this.containerNode=this.srcNodeRef||dojo.doc.createElement("div");dojo.addClass(this.domNode,"mblToolbarButton mblArrowButtonText");var _174;if(this.selected){_174=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_174=this._defaultColor;}}dojo.addClass(this.domNode,_174);if(this.label){this.domNode.innerHTML=this.label;}else{this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){var img;if(this.iconPos){var _175=dojo.create("DIV",null,this.domNode);img=dojo.create("IMG",null,_175);img.style.position="absolute";var arr=this.iconPos.split(/[ ,]/);dojo.style(_175,{position:"relative",width:arr[2]+"px",height:arr[3]+"px"});}else{img=dojo.create("IMG",null,this.domNode);}img.src=this.icon;dojox.mobile.setupIcon(img,this.iconPos);this.iconNode=img;}this.createDomButton(this.domNode);this.connect(this.domNode,"onclick","onClick");},select:function(_176){dojo.toggleClass(this.domNode,this._selColor,!_176);this.selected=!_176;},onClick:function(e){this.defaultClickAction();}});dojo.declare("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],_bars:[],constructor:function(){this.domNode=dojo.create("DIV");this.domNode.className="mblProgContainer";for(var i=0;i<12;i++){var div=dojo.create("DIV");div.className="mblProg mblProg"+i;this.domNode.appendChild(div);this._bars.push(div);}},start:function(){var cntr=0;var _177=this;this.timer=setInterval(function(){cntr--;cntr=cntr<0?11:cntr;var c=_177.colors;for(var i=0;i<12;i++){var idx=(cntr+i)%12;_177._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);}}});dojox.mobile.ProgressIndicator._instance=null;dojox.mobile.ProgressIndicator.getInstance=function(){if(!dojox.mobile.ProgressIndicator._instance){dojox.mobile.ProgressIndicator._instance=new dojox.mobile.ProgressIndicator();}return dojox.mobile.ProgressIndicator._instance;};dojox.mobile.addClass=function(){var _178=document.getElementsByTagName("link");for(var i=0,len=_178.length;i<len;i++){if(_178[i].href.match(/dojox\/mobile\/themes\/(\w+)\//)){dojox.mobile.theme=RegExp.$1;dojo.addClass(dojo.body(),dojox.mobile.theme);break;}}};dojox.mobile.setupIcon=function(_179,_17a){if(_179&&_17a){var arr=dojo.map(_17a.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];_179.style.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";_179.style.top=dojo.style(_179,"top")-t+"px";_179.style.left=dojo.style(_179.parentNode,"paddingLeft")-l+"px";}};dojox.mobile.hideAddressBar=function(){dojo.body().style.minHeight="1000px";setTimeout(function(){scrollTo(0,1);},100);setTimeout(function(){scrollTo(0,1);},400);setTimeout(function(){scrollTo(0,1);dojo.body().style.minHeight=(dojo.global.innerHeight||dojo.doc.documentElement.clientHeight)+"px";},1000);};dojox.mobile.openWindow=function(url,_17b){dojo.global.open(url,_17b||"_blank");};dojo._loaders.unshift(function(){var _17c=dojo.body().getElementsByTagName("*");var i,len,s;len=_17c.length;for(i=0;i<len;i++){s=_17c[i].getAttribute("dojoType");if(s){if(_17c[i].parentNode.getAttribute("lazy")=="true"){_17c[i].setAttribute("__dojoType",s);_17c[i].removeAttribute("dojoType");}}}});dojo.addOnLoad(function(){dojox.mobile.addClass();if(dojo.config["mblApplyPageStyles"]!==false){dojo.addClass(dojo.doc.documentElement,"mobile");}if(dojo.config["mblHideAddressBar"]!==false){dojox.mobile.hideAddressBar();if(dojo.config["mblAlwaysHideAddressBar"]==true){if(dojo.global.onorientationchange!==undefined){dojo.connect(dojo.global,"onorientationchange",dojox.mobile.hideAddressBar);}else{dojo.connect(dojo.global,"onresize",dojox.mobile.hideAddressBar);}}}var _17d=dojo.body().getElementsByTagName("*");var i,len=_17d.length,s;for(i=0;i<len;i++){s=_17d[i].getAttribute("__dojoType");if(s){_17d[i].setAttribute("dojoType",s);_17d[i].removeAttribute("__dojoType");}}if(dojo.hash){var _17e=function(root){var arr;arr=dijit.findWidgets(root);var _17f=arr;for(var i=0;i<_17f.length;i++){arr=arr.concat(_17e(_17f[i].containerNode));}return arr;};dojo.subscribe("/dojo/hashchange",null,function(_180){var view=dojox.mobile.currentView;if(!view){return;}var _181=dojox.mobile._params;if(!_181){var _182=_180?_180:dojox.mobile._defaultView.id;var _183=_17e(view.domNode);var dir=1,_184="slide";for(i=0;i<_183.length;i++){var w=_183[i];if("#"+_182==w.moveTo){_184=w.transition;dir=(w instanceof dojox.mobile.Heading)?-1:1;break;}}_181=[_182,dir,_184];}view.performTransition.apply(view,_181);dojox.mobile._params=null;});}dojo.body().style.visibility="visible";});dijit.getEnclosingWidget=function(node){while(node&&node.tagName!=="BODY"){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node._parentNode||node.parentNode;}return null;};}if(!dojo._hasResource["dojox.mobile"]){dojo._hasResource["dojox.mobile"]=true;dojo.provide("dojox.mobile");dojo.experimental("dojox.mobile");}if(!dojo._hasResource["dojox.mobile.parser"]){dojo._hasResource["dojox.mobile.parser"]=true;dojo.provide("dojox.mobile.parser");dojo.provide("dojo.parser");dojox.mobile.parser=new function(){this.instantiate=function(list,_185){var ws=[];if(list){var i,len;len=list.length;for(i=0;i<len;i++){var node=list[i];var cls=dojo.getObject(dojo.attr(node,"dojoType"));var _186=cls.prototype;var _187={};if(_185){for(var name in _185){_187[name]=_185[name];}}for(var prop in _186){var val=dojo.attr(node,prop);if(!val){continue;}if(typeof _186[prop]=="string"){_187[prop]=val;}else{if(typeof _186[prop]=="number"){_187[prop]=val-0;}else{if(typeof _186[prop]=="boolean"){_187[prop]=(val!="false");}else{if(typeof _186[prop]=="object"){_187[prop]=eval("("+val+")");}}}}}_187["class"]=node.className;_187["style"]=node.style&&node.style.cssText;ws.push(new cls(_187,node));}len=ws.length;for(i=0;i<len;i++){var w=ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}}return ws;};this.parse=function(_188,_189){if(!_188){_188=dojo.body();}else{if(!_189&&_188.rootNode){_188=_188.rootNode;}}var _18a=_188.getElementsByTagName("*");var list=[];for(var i=0,len=_18a.length;i<len;i++){if(_18a[i].getAttribute("dojoType")){list.push(_18a[i]);}}return this.instantiate(list,_189);};}();dojo._loaders.unshift(function(){if(dojo.config.parseOnLoad){dojox.mobile.parser.parse();}});}if(!dojo._hasResource["dojox.mobile.app._event"]){dojo._hasResource["dojox.mobile.app._event"]=true;dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(dojox.mobile.app,{eventMap:{},connectFlick:function(_18b,_18c,_18d){var _18e;var _18f;var _190=false;var _191;var _192;var _193;var _194;var _195;var time;var _196=dojo.connect("onmousedown",_18b,function(_197){_190=false;_18e=_197.targetTouches?_197.targetTouches[0].clientX:_197.clientX;_18f=_197.targetTouches?_197.targetTouches[0].clientY:_197.clientY;time=(new Date()).getTime();_193=dojo.connect(_18b,"onmousemove",_198);_194=dojo.connect(_18b,"onmouseup",onUp);});var _198=function(_199){dojo.stopEvent(_199);_191=_199.targetTouches?_199.targetTouches[0].clientX:_199.clientX;_192=_199.targetTouches?_199.targetTouches[0].clientY:_199.clientY;if(Math.abs(Math.abs(_191)-Math.abs(_18e))>15){_190=true;_195=(_191>_18e)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_192)-Math.abs(_18f))>15){_190=true;_195=(_192>_18f)?"ttb":"btt";}}};var onUp=function(_19a){dojo.stopEvent(_19a);_193&&dojo.disconnect(_193);_194&&dojo.disconnect(_194);if(_190){var _19b={target:_18b,direction:_195,duration:(new Date()).getTime()-time};if(_18c&&_18d){_18c[_18d](_19b);}else{_18d(_19b);}}};}});dojox.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));dojox.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);dojox.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(dojox.mobile.app.isIPhone||dojox.mobile.app.isAndroid){dojox.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_19c,_19d,_19e,_19f){_19c=dojox.mobile.app.eventMap[_19c]||_19c;if(_19c=="flick"||_19c=="onflick"){if(dojo.global["Mojo"]){_19c=Mojo.Event.flick;}else{return dojox.mobile.app.connectFlick(obj,_19d,_19e);}}return dojo._oldConnect(obj,_19c,_19d,_19e,_19f);};}if(!dojo._hasResource["dojox.mobile.app._Widget"]){dojo._hasResource["dojox.mobile.app._Widget"]=true;dojo.provide("dojox.mobile.app._Widget");dojo.experimental("dojox.mobile.app._Widget");dojo.declare("dojox.mobile.app._Widget",dijit._WidgetBase,{getScroll:function(){return {x:dojo.global.scrollX,y:dojo.global.scrollY};},connect:function(_1a0,_1a1,fn){if(_1a1.toLowerCase()=="dblclick"||_1a1.toLowerCase()=="ondblclick"){if(dojo.global["Mojo"]){return this.connect(_1a0,Mojo.Event.tap,fn);}}return this.inherited(arguments);}});}if(!dojo._hasResource["dojox.mobile.app.SceneController"]){dojo._hasResource["dojox.mobile.app.SceneController"]=true;dojo.provide("dojox.mobile.app.SceneController");dojo.experimental("dojox.mobile.app.SceneController");(function(){var app=dojox.mobile.app;var _1a2={};dojo.declare("dojox.mobile.app.SceneController",dojox.mobile.View,{stageController:null,keepScrollPos:false,init:function(_1a3,_1a4){this.sceneName=_1a3;this.params=_1a4;var _1a5=app.resolveTemplate(_1a3);this._deferredInit=new dojo.Deferred();if(_1a2[_1a3]){this._setContents(_1a2[_1a3]);}else{dojo.xhrGet({url:_1a5,handleAs:"text"}).addCallback(dojo.hitch(this,this._setContents));}return this._deferredInit;},_setContents:function(_1a6){_1a2[this.sceneName]=_1a6;this.domNode.innerHTML="<div>"+_1a6+"</div>";var _1a7="";var _1a8=this.sceneName.split("-");for(var i=0;i<_1a8.length;i++){_1a7+=_1a8[i].substring(0,1).toUpperCase()+_1a8[i].substring(1);}_1a7+="Assistant";this.sceneAssistantName=_1a7;var _1a9=this;dojox.mobile.app.loadResourcesForScene(this.sceneName,function(){var _1aa;if(typeof (dojo.global[_1a7])!="undefined"){_1a9._initAssistant();}else{var _1ab=app.resolveAssistant(_1a9.sceneName);dojo.xhrGet({url:_1ab,handleAs:"text"}).addCallback(function(text){try{dojo.eval(text);}catch(e){throw e;}_1a9._initAssistant();});}});},_initAssistant:function(){var cls=dojo.getObject(this.sceneAssistantName);if(!cls){throw Error("Unable to resolve scene assistant "+this.sceneAssistantName);}this.assistant=new cls(this.params);this.assistant.controller=this;this.assistant.domNode=this.domNode.firstChild;this.assistant.setup();this._deferredInit.callback();},query:function(_1ac,node){return dojo.query(_1ac,node||this.domNode);},parse:function(node){var _1ad=this._widgets=dojox.mobile.parser.parse(node||this.domNode,{controller:this});for(var i=0;i<_1ad.length;i++){_1ad[i].set("controller",this);}},getWindowSize:function(){return {w:dojo.global.innerWidth,h:dojo.global.innerHeight};},showAlertDialog:function(_1ae){var size=dojo.marginBox(this.assistant.domNode);var _1af=new dojox.mobile.app.AlertDialog(dojo.mixin(_1ae,{controller:this}));this.assistant.domNode.appendChild(_1af.domNode);_1af.show();},popupSubMenu:function(info){var _1b0=new dojox.mobile.app.ListSelector({controller:this,destroyOnHide:true,onChoose:info.onChoose});this.assistant.domNode.appendChild(_1b0.domNode);_1b0.set("data",info.choices);_1b0.show(info.fromNode);}});})();}if(!dojo._hasResource["dojox.mobile.app.StageController"]){dojo._hasResource["dojox.mobile.app.StageController"]=true;dojo.provide("dojox.mobile.app.StageController");dojo.experimental("dojox.mobile.app.StageController");dojo.declare("dojox.mobile.app.StageController",null,{scenes:null,effect:"fade",constructor:function(node){this.domNode=node;this.scenes=[];if(dojo.config.mobileAnim){this.effect=dojo.config.mobileAnim;}},getActiveSceneController:function(){return this.scenes[this.scenes.length-1];},pushScene:function(_1b1,_1b2){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _1b3=new dojox.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_1b3);var _1b4=this;dojo.forEach(this.scenes,this.setZIndex);_1b3.stageController=this;_1b3.init(_1b1,_1b2).addCallback(function(){if(_1b4.scenes.length==1){_1b3.domNode.style.visibility="visible";_1b4.scenes[_1b4.scenes.length-1].assistant.activate(_1b2);_1b4._opInProgress=false;}else{_1b4.scenes[_1b4.scenes.length-2].performTransition(_1b4.scenes[_1b4.scenes.length-1].domNode,1,_1b4.effect,null,function(){_1b4.scenes[_1b4.scenes.length-1].assistant.activate(_1b2);_1b4._opInProgress=false;});}});},setZIndex:function(_1b5,idx){dojo.style(_1b5.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _1b6=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_1b6.scenes.length-2].assistant.activate(data);this.scenes[_1b6.scenes.length-1].performTransition(_1b6.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_1b6._destroyScene(_1b6.scenes[_1b6.scenes.length-1]);_1b6.scenes.splice(_1b6.scenes.length-1,1);_1b6._opInProgress=false;});}else{}},popScenesTo:function(_1b7,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_1b7){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_1b8){_1b8.assistant.deactivate();_1b8.assistant.destroy();_1b8.destroyRecursive();}});}if(!dojo._hasResource["dojox.mobile.app.SceneAssistant"]){dojo._hasResource["dojox.mobile.app.SceneAssistant"]=true;dojo.provide("dojox.mobile.app.SceneAssistant");dojo.experimental("dojox.mobile.app.SceneAssistant");dojo.declare("dojox.mobile.app.SceneAssistant",null,{constructor:function(){},setup:function(){},activate:function(_1b9){},deactivate:function(){},destroy:function(){var _1ba=dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);dojo.forEach(_1ba,function(_1bb){_1bb.destroyRecursive();});this.disconnect();},connect:function(obj,_1bc,_1bd){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_1bc,_1bd));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});}if(!dojo._hasResource["dojox.mobile.app.AlertDialog"]){dojo._hasResource["dojox.mobile.app.AlertDialog"]=true;dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.declare("dojox.mobile.app.AlertDialog",dijit._WidgetBase,{title:"",text:"",controller:null,buttons:null,defaultButtonLabel:"OK",onChoose:null,constructor:function(){this.onClick=dojo.hitch(this,this.onClick);this._handleSelect=dojo.hitch(this,this._handleSelect);},buildRendering:function(){this.domNode=dojo.create("div",{"class":"alertDialog"});var _1be=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_1be);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_1be);var _1bf=dojo.create("div",{"class":"alertBtns"},_1be);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _1c0=this;dojo.forEach(this.buttons,function(_1c1){var btn=new dojox.mobile.Button({btnClass:_1c1["class"]||"",label:_1c1.label});btn._dialogValue=_1c1.value;dojo.place(btn.domNode,_1bf);_1c0.connect(btn,"onClick",_1c0._handleSelect);});var _1c2=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_1c2.w+"px",height:_1c2.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_1c0.onChoose&&_1c0.onChoose();_1c0.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_1c3){var node;if(_1c3&&_1c3.target){node=_1c3.target;while(!dijit.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?dijit.byNode(node)._dialogValue:undefined);}this.hide();},show:function(){this._doTransition(1);},hide:function(){this._doTransition(-1);},_doTransition:function(dir){var anim;var h=dojo.marginBox(this.domNode.firstChild).h;var _1c4=this.controller.getWindowSize().h;var high=_1c4-h;var low=_1c4;var _1c5=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _1c6=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_1c5,_1c6]);var _1c7=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_1c7.domNode.style.display="none";dojo.destroy(_1c7.domNode);dojo.destroy(_1c7.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1c8,map,_1c9,_1ca){_1ca=_1ca||dojo.global;_1c9=_1c9?dojo.hitch(_1ca,_1c9):function(v){return v;};return _1c8.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1cb,key,_1cc){var _1cd=dojo.getObject(key,false,map);if(_1cc){_1cd=dojo.getObject(_1cc,false,_1ca).call(_1ca,_1cd,key);}return _1c9(_1cd,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojox.mobile.app.List"]){dojo._hasResource["dojox.mobile.app.List"]=true;dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");(function(){var _1ce={};dojo.declare("dojox.mobile.app.List",dijit._WidgetBase,{items:null,itemTemplate:"",emptyTemplate:"",dividerTemplate:"",dividerFunction:null,labelDelete:"Delete",labelCancel:"Cancel",controller:null,autoDelete:true,enableDelete:true,enableHold:true,formatters:null,_templateLoadCount:0,_mouseDownPos:null,baseClass:"list",constructor:function(){this._checkLoadComplete=dojo.hitch(this,this._checkLoadComplete);this._replaceToken=dojo.hitch(this,this._replaceToken);this._postDeleteAnim=dojo.hitch(this,this._postDeleteAnim);},postCreate:function(){var _1cf=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_1d0){var _1d1=_1d0;if(_1d0.targetTouches&&_1d0.targetTouches.length>0){_1d1=_1d0.targetTouches[0];}var _1d2=_1cf._getRowNode(_1d0.target);if(_1d2){_1cf._setDataInfo(_1d2,_1d0);_1cf._selectRow(_1d2);_1cf._mouseDownPos={x:_1d1.pageX,y:_1d1.pageY};_1cf._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_1d3){if(_1d3.targetTouches&&_1d3.targetTouches.length>0){_1d3=_1d3.targetTouches[0];}var _1d4=_1cf._getRowNode(_1d3.target);if(_1d4){_1cf._setDataInfo(_1d4,_1d3);if(_1cf._selectedRow){_1cf.onSelect(_1d4._data,_1d4._idx,_1d4);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_1d5){dojo.stopEvent(_1d5);if(!_1cf._selectedRow){return;}var _1d6=_1cf._getRowNode(_1d5.target);if(_1cf.enableDelete&&_1d6&&!_1cf._deleting){_1cf.handleDrag(_1d5);}});}this.connect(this.domNode,"onclick",function(_1d7){if(_1d7.touches&&_1d7.touches.length>0){_1d7=_1d7.touches[0];}var _1d8=_1cf._getRowNode(_1d7.target,true);if(_1d8){_1cf._setDataInfo(_1d8,_1d7);}});this.connect(this.domNode,"mouseout",function(_1d9){if(_1d9.touches&&_1d9.touches.length>0){_1d9=_1d9.touches[0];}if(_1d9.target==_1cf._selectedRow){_1cf._deselectRow();}});if(!this.itemTemplate){throw Error("An item template must be provided to "+this.declaredClass);}this._loadTemplate(this.itemTemplate,"itemTemplate",this._checkLoadComplete);if(this.emptyTemplate){this._loadTemplate(this.emptyTemplate,"emptyTemplate",this._checkLoadComplete);}if(this.dividerTemplate){this._loadTemplate(this.dividerTemplate,"dividerTemplate",this._checkLoadComplete);}},handleDrag:function(_1da){var _1db=_1da;if(_1da.targetTouches&&_1da.targetTouches.length>0){_1db=_1da.targetTouches[0];}var diff=_1db.pageX-this._mouseDownPos.x;var _1dc=Math.abs(diff);if(_1dc>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_1dc>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_1dc){this.preDelete(diff);}},handleDragCancel:function(){if(this._deleting){return;}dojo.removeClass(this._selectedRow,"hold");this._selectedRow.style.left=0;this._mouseDownPos=null;this._dragThreshold=null;this._deleteBtns&&dojo.style(this._deleteBtns,"display","none");},preDelete:function(_1dd){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_1dd+((_1dd>0?1:-1)*this._dragThreshold*0.8)}},onEnd:dojo.hitch(this,function(){if(this.autoDelete){this.deleteRow(this._selectedRow);}})}).play();},deleteRow:function(row){dojo.style(row,{visibility:"hidden",minHeight:"0px"});dojo.removeClass(row,"hold");this._deleteAnimConn=this.connect(row,"webkitAnimationEnd",this._postDeleteAnim);dojo.addClass(row,"collapsed");},_postDeleteAnim:function(_1de){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _1df=row.nextSibling;var _1e0=row.previousSibling;if(_1e0&&_1e0._isDivider){if(!_1df||_1df._isDivider){_1e0.parentNode.removeChild(_1e0);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_1df){if(_1df._idx){_1df._idx--;}_1df=_1df.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_1e1){var mb=dojo.marginBox(_1e1);var pos=dojo._abs(_1e1,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new dojox.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new dojox.mobile.Button({btnClass:"mblBlueButton",label:this.labelCancel}));dojo.place(this.buttons[0].domNode,this._deleteBtns);dojo.place(this.buttons[1].domNode,this._deleteBtns);dojo.addClass(this.buttons[0].domNode,"deleteBtn");dojo.addClass(this.buttons[1].domNode,"cancelBtn");this._handleButtonClick=dojo.hitch(this._handleButtonClick);this.connect(this._deleteBtns,"onclick",this._handleButtonClick);}dojo.removeClass(this._deleteBtns,"fade out fast");dojo.style(this._deleteBtns,{display:"",width:mb.w+"px",height:mb.h+"px",top:(_1e1.offsetTop)+"px",left:"0px"});},onDelete:function(data,_1e2,_1e3){_1e3.splice(_1e2,1);if(_1e3.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_1e4){if(_1e4.touches&&_1e4.touches.length>0){_1e4=_1e4.touches[0];}var node=_1e4.target;if(dojo.hasClass(node,"deleteBtn")){this.deleteRow(this._selectedRow);}else{if(dojo.hasClass(node,"cancelBtn")){this.cancelDelete();}else{return;}}dojo.addClass(this._deleteBtns,"fade out");},applyClass:function(node,idx,_1e5){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_1e5.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_1e6,_1e7){_1e7.item=_1e6._data;_1e7.index=_1e6._idx;},onSelect:function(data,_1e8,_1e9){},_selectRow:function(row){if(this._deleting&&this._selectedRow&&row!=this._selectedRow){this.cancelDelete();}if(!dojo.hasClass(row,"row")){return;}if(this.enableHold||this.enableDelete){dojo.addClass(row,"hold");}this._selectedRow=row;},_deselectRow:function(){if(!this._selectedRow||this._deleting){return;}this.handleDragCancel();dojo.removeClass(this._selectedRow,"hold");this._selectedRow=null;},_getRowNode:function(_1ea,_1eb){while(_1ea&&!_1ea._data&&_1ea!=this.domNode){if(!_1eb&&dojo.hasClass(_1ea,"noclick")){return null;}_1ea=_1ea.parentNode;}return _1ea==this.domNode?null:_1ea;},applyTemplate:function(_1ec,data){return dojo._toDom(dojo.string.substitute(_1ec,data,this._replaceToken,this.formatters||this));},render:function(){dojo.query("> *:not(.buttons)",this.domNode).forEach(dojo.destroy);if(this.items.length<1&&this.emptyTemplate){dojo.place(dojo._toDom(this.emptyTemplate),this.domNode,"first");}else{this.domNode.appendChild(this._renderRange(0,this.items.length));}if(dojo.hasClass(this.domNode.parentNode,"mblRoundRect")){dojo.addClass(this.domNode.parentNode,"mblRoundRectList");}var divs=dojo.query("> .row",this.domNode);if(divs.length>0){dojo.addClass(divs[0],"first");dojo.addClass(divs[divs.length-1],"last");}},_renderRange:function(_1ed,_1ee){var rows=[];var row,i;var frag=document.createDocumentFragment();_1ed=Math.max(0,_1ed);_1ee=Math.min(_1ee,this.items.length);for(i=_1ed;i<_1ee;i++){row=this.applyTemplate(this.itemTemplate,this.items[i]);dojo.addClass(row,"row");row._data=this.items[i];row._idx=i;rows.push(row);}if(!this.dividerFunction||!this.dividerTemplate){for(i=_1ed;i<_1ee;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _1ef=null;var _1f0;var _1f1;for(i=_1ed;i<_1ee;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_1f0=this.dividerFunction(this.items[i]);if(_1f0&&_1f0!=_1ef){_1f1=this.applyTemplate(this.dividerTemplate,{label:_1f0,item:this.items[i]});_1f1._isDivider=true;frag.appendChild(_1f1);_1ef=_1f0;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_1f2,key){if(key.charAt(0)=="!"){_1f2=dojo.getObject(key.substr(1),false,_this);}if(typeof _1f2=="undefined"){return "";}if(_1f2==null){return "";}return key.charAt(0)=="!"?_1f2:_1f2.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_1f3,_1f4){if(!url){_1f4();return;}if(_1ce[url]){this.set(_1f3,_1ce[url]);_1f4();}else{var _1f5=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_1ce[url]=dojo.trim(text);_1f5.set(_1f3,_1ce[url]);_1f4();}});}},_setFormattersAttr:function(_1f6){this.formatters=_1f6;},_setItemsAttr:function(_1f7){this.items=_1f7||[];if(this._templateLoadCount<1&&_1f7){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_1f8){_1f8.destroy();});this.buttons=null;}this.inherited(arguments);}});})();}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _1f9=this;dojo.mixin(_1f9,args);_1f9.node=args.node;_1f9._showArgs=dojo.mixin({},args);_1f9._showArgs.node=_1f9.node;_1f9._showArgs.duration=_1f9.showDuration;_1f9.showAnim=_1f9.showFunc(_1f9._showArgs);_1f9._hideArgs=dojo.mixin({},args);_1f9._hideArgs.node=_1f9.node;_1f9._hideArgs.duration=_1f9.hideDuration;_1f9.hideAnim=_1f9.hideFunc(_1f9._hideArgs);dojo.connect(_1f9.showAnim,"beforeBegin",dojo.hitch(_1f9.hideAnim,"stop",true));dojo.connect(_1f9.hideAnim,"beforeBegin",dojo.hitch(_1f9.showAnim,"stop",true));},show:function(_1fa){return this.showAnim.play(_1fa||0);},hide:function(_1fb){return this.hideAnim.play(_1fb||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_1fc={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _1fd=function(_1fe){this._index=-1;this._animations=_1fe||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_1fd,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_1ff,_200){if(!this._current){this._current=this._animations[this._index=0];}if(!_200&&this._current.status()=="playing"){return this;}var _201=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_202=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_203=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_201);d.disconnect(_202);d.disconnect(_203);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_204,_205){this.pause();var _206=this.duration*_204;this._current=null;d.some(this._animations,function(a){if(a.duration<=_206){this._current=a;return true;}_206-=a.duration;return false;});if(this._current){this._current.gotoPercent(_206/this._current.duration,_205);}return this;},stop:function(_207){if(this._current){if(_207){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_1fd,_1fc);dojo.fx.chain=function(_208){return new _1fd(_208);};var _209=function(_20a){this._animations=_20a||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_20a,function(a){var _20b=a.duration;if(a.delay){_20b+=a.delay;}if(this.duration<_20b){this.duration=_20b;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_209,{_doAction:function(_20c,args){d.forEach(this._animations,function(a){a[_20c].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_20d,args){var t=this._pseudoAnimation;t[_20d].apply(t,args);},play:function(_20e,_20f){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_210,_211){var ms=this.duration*_210;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_211);});this._call("gotoPercent",arguments);return this;},stop:function(_212){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_209,_1fc);dojo.fx.combine=function(_213){return new _209(_213);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _214=d.style(node,"height");return Math.max(_214,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dojox.mobile.app.ListSelector"]){dojo._hasResource["dojox.mobile.app.ListSelector"]=true;dojo.provide("dojox.mobile.app.ListSelector");dojo.experimental("dojox.mobile.app.ListSelector");dojo.declare("dojox.mobile.app.ListSelector",dojox.mobile.app._Widget,{data:null,controller:null,onChoose:null,destroyOnHide:false,_setDataAttr:function(data){this.data=data;if(this.data){this.render();}},postCreate:function(){dojo.addClass(this.domNode,"listSelector");var _215=this;this.connect(this.domNode,"onclick",function(_216){if(!dojo.hasClass(_216.target,"listSelectorRow")){return;}if(_215.onChoose){_215.onChoose(_215.data[_216.target._idx].value);}_215.hide();});this.connect(this.domNode,"onmousedown",function(_217){if(!dojo.hasClass(_217.target,"listSelectorRow")){return;}dojo.addClass(_217.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_218){if(!dojo.hasClass(_218.target,"listSelectorRow")){return;}dojo.removeClass(_218.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_219){if(!dojo.hasClass(_219.target,"listSelectorRow")){return;}dojo.removeClass(_219.target,"listSelectorRow-selected");});var _21a=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>"},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_215.onChoose&&_215.onChoose();_215.hide();});},show:function(_21b){var _21c;var _21d=this.controller.getWindowSize();var _21e;if(_21b){_21e=dojo._abs(_21b);_21c=_21e;}else{_21c.x=_21d.w/2;_21c.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_21d.w*0.8)+"px"});var _21f=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_21f=Math.max(_21f,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_21f=Math.min(_21f,Math.round(_21d.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_21f+"px");var _220=dojo.marginBox(this.domNode).h;var _221=this;var _222=_21e?Math.max(30,_21e.y-_220-10):this.getScroll().y+30;var _223=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_21f},height:{start:1,end:_220},top:{start:_21c.y,end:_222},left:{start:_21c.x,end:(_21d.w/2-_21f/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_221.domNode,"width","inherit");}});var _224=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_223,_224]).play();},hide:function(){var _225=this;var _226=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_225.get("destroyOnHide")){_225.destroy();}}});var _227=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_226,_227]).play();},render:function(){dojo.empty(this.domNode);dojo.style(this.domNode,"opacity",0);var row;for(var i=0;i<this.data.length;i++){row=dojo.create("div",{"class":"listSelectorRow "+(this.data[i].className||""),innerHTML:this.data[i].label},this.domNode);row._idx=i;if(i==0){dojo.addClass(row,"first");}if(i==this.data.length-1){dojo.addClass(row,"last");}}},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);}});}if(!dojo._hasResource["dojox.mobile.app._FormWidget"]){dojo._hasResource["dojox.mobile.app._FormWidget"]=true;dojo.provide("dojox.mobile.app._FormWidget");dojo.experimental("dojox.mobile.app._FormWidget");dojo.declare("dojox.mobile.app._FormWidget",dijit._WidgetBase,{name:"",alt:"",value:"",type:"text",disabled:false,intermediateChanges:false,scrollOnFocus:false,attributeMap:dojo.delegate(dijit._WidgetBase.prototype.attributeMap,{value:"focusNode",id:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_228){this.disabled=_228;dojo.attr(this.focusNode,"disabled",_228);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_228);}},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){this.focusNode.focus();},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_229){},_onChangeActive:false,_handleOnChange:function(_22a,_22b){this._lastValue=_22a;if(this._lastValueReported==undefined&&(_22b===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_22a;}if((this.intermediateChanges||_22b||_22b===undefined)&&((typeof _22a!=typeof this._lastValueReported)||this.compare(_22a,this._lastValueReported)!=0)){this._lastValueReported=_22a;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_22a);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},_onMouseDown:function(e){if(this.isFocusable()){var _22c=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_22c);});}},selectInputText:function(_22d,_22e,stop){var _22f=dojo.global;var _230=dojo.doc;_22d=dojo.byId(_22d);if(isNaN(_22e)){_22e=0;}if(isNaN(stop)){stop=_22d.value?_22d.value.length:0;}dijit.focus(_22d);if(_22f["getSelection"]&&_22d.setSelectionRange){_22d.setSelectionRange(_22e,stop);}}});dojo.declare("dojox.mobile.app._FormValueWidget",dojox.mobile.app._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dojox.mobile.app._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_231){this.readOnly=_231;dojo.attr(this.focusNode,"readOnly",_231);},postCreate:function(){this.inherited(arguments);if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_232,_233){this.value=_232;this._handleOnChange(_232,_233);},_getValueAttr:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);}});}if(!dojo._hasResource["dojox.mobile.app.TextBox"]){dojo._hasResource["dojox.mobile.app.TextBox"]=true;dojo.provide("dojox.mobile.app.TextBox");dojo.experimental("dojox.mobile.app.TextBox");dojo.declare("dojox.mobile.app.TextBox",dojox.mobile.app._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",baseClass:"mblTextBox",attributeMap:dojo.delegate(dojox.mobile.app._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),buildRendering:function(){var node=this.srcNodeRef;if(!node||node.tagName!="INPUT"){node=dojo.create("input",{});}dojo.attr(node,{type:"text",value:dojo.attr(node,"value")||"",placeholder:this.placeHolder||null});this.domNode=this.textbox=this.focusNode=node;},_setPlaceHolderAttr:function(v){this.placeHolder=v;if(this.textbox){dojo.attr(this.textbox,"placeholder",v);}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_234,_235,_236){var _237;if(_234!==undefined){_237=this.filter(_234);if(typeof _236!="string"){if(_237!==null&&((typeof _237!="number")||!isNaN(_237))){_236=this.filter(this.format(_237,this.constraints));}else{_236="";}}}if(_236!=null&&_236!=undefined&&((typeof _236)!="number"||!isNaN(_236))&&this.textbox.value!=_236){this.textbox.value=_236;}this.inherited(arguments,[_237,_235]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_238){if(_238===null||_238===undefined){_238="";}else{if(typeof _238!="string"){_238=String(_238);}}this.textbox.value=_238;this._setValueAttr(this.get("value"),undefined,_238);},format:function(_239,_23a){return ((_239==null||_239==undefined)?"":(_239.toString?_239.toString():_239));},parse:function(_23b,_23c){return _23b;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _23d=this;setTimeout(function(){_23d._handleOnChange(_23d.get("value"),false);},0);}this._refreshState();},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput",this._onInput);}else{this.connect(this.textbox,"onkeydown",this._onInput);this.connect(this.textbox,"onkeyup",this._onInput);this.connect(this.textbox,"onpaste",this._onInput);this.connect(this.textbox,"oncut",this._onInput);}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _23e;_23e=this.textbox.selectionStart==this.textbox.selectionEnd;if(_23e){this.selectInputText(this.textbox);}});}this._refreshState();this.inherited(arguments);},reset:function(){this.textbox.value="";this.inherited(arguments);}});}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.getObject("fx.easing",true,dojo);dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["dojox.mobile.app.ImageView"]){dojo._hasResource["dojox.mobile.app.ImageView"]=true;dojo.provide("dojox.mobile.app.ImageView");dojo.experimental("dojox.mobile.app.ImageView");dojo.declare("dojox.mobile.app.ImageView",dojox.mobile.app._Widget,{zoom:1,zoomCenterX:0,zoomCenterY:0,maxZoom:5,autoZoomLevel:3,disableAutoZoom:false,disableSwipe:false,autoZoomEvent:null,_leftImg:null,_centerImg:null,_rightImg:null,_leftSmallImg:null,_centerSmallImg:null,_rightSmallImg:null,constructor:function(){this.panX=0;this.panY=0;this.handleLoad=dojo.hitch(this,this.handleLoad);this._updateAnimatedZoom=dojo.hitch(this,this._updateAnimatedZoom);this._updateAnimatedPan=dojo.hitch(this,this._updateAnimatedPan);this._onAnimPanEnd=dojo.hitch(this,this._onAnimPanEnd);},buildRendering:function(){this.inherited(arguments);this.canvas=dojo.create("canvas",{},this.domNode);dojo.addClass(this.domNode,"mblImageView");},postCreate:function(){this.inherited(arguments);this.size=dojo.marginBox(this.domNode);dojo.style(this.canvas,{width:this.size.w+"px",height:this.size.h+"px"});this.canvas.height=this.size.h;this.canvas.width=this.size.w;var _23f=this;this.connect(this.domNode,"onmousedown",function(_240){if(_23f.isAnimating()){return;}if(_23f.panX){_23f.handleDragEnd();}_23f.downX=_240.targetTouches?_240.targetTouches[0].clientX:_240.clientX;_23f.downY=_240.targetTouches?_240.targetTouches[0].clientY:_240.clientY;});this.connect(this.domNode,"onmousemove",function(_241){if(_23f.isAnimating()){return;}if((!_23f.downX&&_23f.downX!==0)||(!_23f.downY&&_23f.downY!==0)){return;}if((!_23f.disableSwipe&&_23f.zoom==1)||(!_23f.disableAutoZoom&&_23f.zoom!=1)){var x=_241.targetTouches?_241.targetTouches[0].clientX:_241.pageX;var y=_241.targetTouches?_241.targetTouches[0].clientY:_241.pageY;_23f.panX=x-_23f.downX;_23f.panY=y-_23f.downY;if(_23f.zoom==1){if(Math.abs(_23f.panX)>10){_23f.render();}}else{if(Math.abs(_23f.panX)>10||Math.abs(_23f.panY)>10){_23f.render();}}}});this.connect(this.domNode,"onmouseout",function(_242){if(!_23f.isAnimating()&&_23f.panX){_23f.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_243){_23f.downX=_23f.downY=null;});this.connect(this.domNode,"onclick",function(_244){if(_23f.isAnimating()){return;}if(_23f.downX==null||_23f.downY==null){return;}var x=(_244.targetTouches?_244.targetTouches[0].clientX:_244.pageX);var y=(_244.targetTouches?_244.targetTouches[0].clientY:_244.pageY);if(Math.abs(_23f.panX)>14||Math.abs(_23f.panY)>14){_23f.downX=_23f.downY=null;_23f.handleDragEnd();return;}_23f.downX=_23f.downY=null;if(!_23f.disableAutoZoom){if(!_23f._centerImg||!_23f._centerImg._loaded){return;}if(_23f.zoom!=1){_23f.set("animatedZoom",1);return;}var pos=dojo._abs(_23f.domNode);var _245=_23f.size.w/_23f._centerImg.width;var _246=_23f.size.h/_23f._centerImg.height;_23f.zoomTo(((x-pos.x)/_245)-_23f.panX,((y-pos.y)/_246)-_23f.panY,_23f.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;if(this.zoom==1){if(!this.panX){return;}var _247=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _248=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _249=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_247?1:0)||(this.panX<0&&_248?1:0));if(!_249){this._animPanTo(0,dojo.fx.easing.expoOut,700);}else{this.moveTo(this.panX);}}else{if(!this.panX&&!this.panY){return;}this.zoomCenterX-=(this.panX/this.zoom);this.zoomCenterY-=(this.panY/this.zoom);this.panX=this.panY=0;}},handleFlick:function(_24a){if(this.zoom==1&&_24a.duration<500){if(_24a.direction=="ltr"){this.moveTo(1);}else{if(_24a.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_24b){_24b=_24b>0?1:-1;var _24c;if(_24b<1){if(this._rightImg&&this._rightImg._loaded){_24c=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_24c=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_24c=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_24c=this._leftSmallImg;}}}this._moveDir=_24b;var _24d=this;if(_24c&&_24c._loaded){this._animPanTo(this.size.w*_24b,null,500,function(){_24d.panX=0;_24d.panY=0;if(_24b<0){_24d._switchImage("left","right");}else{_24d._switchImage("right","left");}_24d.render();_24d.onChange(_24b*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_24e,_24f){var _250="_"+_24e+"SmallImg";var _251="_"+_24e+"Img";var _252="_"+_24f+"SmallImg";var _253="_"+_24f+"Img";this[_251]=this._centerImg;this[_250]=this._centerSmallImg;this[_251]._type=_24e;if(this[_250]){this[_250]._type=_24e;}this._centerImg=this[_253];this._centerSmallImg=this[_252];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_253]=this[_252]=null;},_animPanTo:function(to,_254,_255,_256){this._animCallback=_256;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_255||500,easing:_254,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_257){},_updateAnimatedPan:function(_258){this.panX=_258;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_259,_25a,zoom){this.set("zoomCenterX",_259);this.set("zoomCenterY",_25a);this.set("animatedZoom",zoom);},render:function(){var cxt=this.canvas.getContext("2d");cxt.clearRect(0,0,this.canvas.width,this.canvas.height);this._renderImg(this._centerSmallImg,this._centerImg,this.zoom==1?(this.panX<0?1:this.panX>0?-1:0):0);if(this.zoom==1&&this.panX!=0){if(this.panX>0){this._renderImg(this._leftSmallImg,this._leftImg,1);}else{this._renderImg(this._rightSmallImg,this._rightImg,-1);}}},_renderImg:function(_25b,_25c,_25d){var img=(_25c&&_25c._loaded)?_25c:_25b;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _25e=img._baseWidth;var _25f=img._baseHeight;var _260=_25e*this.zoom;var _261=_25f*this.zoom;var _262=Math.min(this.size.w,_260);var _263=Math.min(this.size.h,_261);var _264=this.dispWidth=img.width*(_262/_260);var _265=this.dispHeight=img.height*(_263/_261);var _266=this.zoomCenterX-(this.panX/this.zoom);var _267=this.zoomCenterY-(this.panY/this.zoom);var _268=Math.floor(Math.max(_264/2,Math.min(img.width-_264/2,_266)));var _269=Math.floor(Math.max(_265/2,Math.min(img.height-_265/2,_267)));var _26a=Math.max(0,Math.round((img.width-_264)/2+(_268-img._centerX)));var _26b=Math.max(0,Math.round((img.height-_265)/2+(_269-img._centerY)));var _26c=Math.round(Math.max(0,this.canvas.width-_262)/2);var _26d=Math.round(Math.max(0,this.canvas.height-_263)/2);var _26e=_262;var _26f=_264;if(this.zoom==1&&_25d&&this.panX){if(this.panX<0){if(_25d>0){_262-=Math.abs(this.panX);_26c=0;}else{if(_25d<0){_262=Math.max(1,Math.abs(this.panX)-5);_26c=this.size.w-_262;}}}else{if(_25d>0){_262=Math.max(1,Math.abs(this.panX)-5);_26c=0;}else{if(_25d<0){_262-=Math.abs(this.panX);_26c=this.size.w-_262;}}}_264=Math.max(1,Math.floor(_264*(_262/_26e)));if(_25d>0){_26a=(_26a+_26f)-(_264);}_26a=Math.floor(_26a);}try{cxt.drawImage(img,Math.max(0,_26a),_26b,Math.min(_26f,_264),_265,_26c,_26d,Math.min(_26e,_262),_263);}catch(e){}},_setZoomAttr:function(_270){this.zoom=Math.min(this.maxZoom,Math.max(1,_270));if(this.zoom==1&&this._centerImg&&this._centerImg._loaded){if(!this.isAnimating()){this.zoomCenterX=this._centerImg.width/2;this.zoomCenterY=this._centerImg.height/2;}this.panX=this.panY=0;}this.render();},_setZoomCenterXAttr:function(_271){if(_271!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_271=Math.min(this._centerImg.width,_271);}this.zoomCenterX=Math.max(0,Math.round(_271));}},_setZoomCenterYAttr:function(_272){if(_272!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_272=Math.min(this._centerImg.height,_272);}this.zoomCenterY=Math.max(0,Math.round(_272));}},_setZoomCenterAttr:function(_273){if(_273.x!=this.zoomCenterX||_273.y!=this.zoomCenterY){this.set("zoomCenterX",_273.x);this.set("zoomCenterY",_273.y);this.render();}},_setAnimatedZoomAttr:function(_274){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_274],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_275){this._setZoomAttr(_275);},_setCenterUrlAttr:function(_276){this._setImage("center",_276);},_setLeftUrlAttr:function(_277){this._setImage("left",_277);},_setRightUrlAttr:function(_278){this._setImage("right",_278);},_setImage:function(name,_279){var _27a=null;var _27b=null;if(dojo.isString(_279)){_27b=_279;}else{_27b=_279.large;_27a=_279.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_27b){return;}var _27c=this["_"+name+"Img"]=new Image();_27c._type=name;_27c._loaded=false;_27c._src=_27b;_27c._conn=dojo.connect(_27c,"onload",this.handleLoad);if(_27a){var _27d=this["_"+name+"SmallImg"]=new Image();_27d._type=name;_27d._loaded=false;_27d._conn=dojo.connect(_27d,"onload",this.handleLoad);_27d._isSmall=true;_27d._src=_27a;_27d.src=_27a;}_27c.src=_27b;},handleLoad:function(evt){var img=evt.target;img._loaded=true;dojo.disconnect(img._conn);var type=img._type;switch(type){case "center":this.zoomCenterX=img.width/2;this.zoomCenterY=img.height/2;break;}var _27e=img.height;var _27f=img.width;if(_27f/this.size.w<_27e/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_27f/(_27e/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_27e/(_27f/this.size.w);}img._centerX=_27f/2;img._centerY=_27e/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_280){}});}if(!dojo._hasResource["dojox.mobile.app.ImageThumbView"]){dojo._hasResource["dojox.mobile.app.ImageThumbView"]=true;dojo.provide("dojox.mobile.app.ImageThumbView");dojo.experimental("dojox.mobile.app.ImageThumbView");dojo.declare("dojox.mobile.app.ImageThumbView",dijit._WidgetBase,{items:[],urlParam:"url",labelParam:null,itemTemplate:"<div class=\"mblThumbInner\">"+"<div class=\"mblThumbOverlay\"></div>"+"<div class=\"mblThumbMask\">"+"<div class=\"mblThumbSrc\" style=\"background-image:url(${url})\"></div>"+"</div>"+"</div>",minPadding:4,maxPerRow:3,maxRows:-1,baseClass:"mblImageThumbView",thumbSize:"medium",animationEnabled:true,selectedIndex:-1,cache:null,cacheMustMatch:false,clickEvent:"onclick",cacheBust:false,disableHide:false,constructor:function(_281,node){},postCreate:function(){this.inherited(arguments);var _282=this;var _283="mblThumbHover";this.addThumb=dojo.hitch(this,this.addThumb);this.handleImgLoad=dojo.hitch(this,this.handleImgLoad);this.hideCached=dojo.hitch(this,this.hideCached);this._onLoadImages={};this.cache=[];this.visibleImages=[];this._cacheCounter=0;this.connect(this.domNode,this.clickEvent,function(_284){var _285=_282._getItemNodeFromEvent(_284);if(_285&&!_285._cached){_282.onSelect(_285._item,_285._index,_282.items);dojo.query(".selected",this.domNode).removeClass("selected");dojo.addClass(_285,"selected");}});dojo.addClass(this.domNode,this.thumbSize);this.resize();this.render();},onSelect:function(item,_286,_287){},_setAnimationEnabledAttr:function(_288){this.animationEnabled=_288;dojo[_288?"addClass":"removeClass"](this.domNode,"animated");},_setItemsAttr:function(_289){this.items=_289||[];var urls={};var i;for(i=0;i<this.items.length;i++){urls[this.items[i][this.urlParam]]=1;}var _28a=[];for(var url in this._onLoadImages){if(!urls[url]&&this._onLoadImages[url]._conn){dojo.disconnect(this._onLoadImages[url]._conn);this._onLoadImages[url].src=null;_28a.push(url);}}for(i=0;i<_28a.length;i++){delete this._onLoadImages[url];}this.render();},_getItemNode:function(node){while(node&&!dojo.hasClass(node,"mblThumb")&&node!=this.domNode){node=node.parentNode;}return (node==this.domNode)?null:node;},_getItemNodeFromEvent:function(_28b){if(_28b.touches&&_28b.touches.length>0){_28b=_28b.touches[0];}return this._getItemNode(_28b.target);},resize:function(){this._thumbSize=null;this._size=dojo.contentBox(this.domNode);this.disableHide=true;this.render();this.disableHide=false;},hideCached:function(){for(var i=0;i<this.cache.length;i++){if(this.cache[i]){dojo.style(this.cache[i],"display","none");}}},render:function(){var i;var url;var item;var _28c;while(this.visibleImages&&this.visibleImages.length>0){_28c=this.visibleImages.pop();this.cache.push(_28c);if(!this.disableHide){dojo.addClass(_28c,"hidden");}_28c._cached=true;}if(this.cache&&this.cache.length>0){setTimeout(this.hideCached,1000);}if(!this.items||this.items.length==0){return;}for(i=0;i<this.items.length;i++){item=this.items[i];url=(dojo.isString(item)?item:item[this.urlParam]);this.addThumb(item,url,i);if(this.maxRows>0&&(i+1)/this.maxPerRow>=this.maxRows){break;}}if(!this._thumbSize){return;}var _28d=0;var row=-1;var _28e=this._thumbSize.w+(this.padding*2);var _28f=this._thumbSize.h+(this.padding*2);var _290=this.thumbNodes=dojo.query(".mblThumb",this.domNode);var pos=0;_290=this.visibleImages;for(i=0;i<_290.length;i++){if(_290[i]._cached){continue;}if(pos%this.maxPerRow==0){row++;}_28d=pos%this.maxPerRow;this.place(_290[i],(_28d*_28e)+this.padding,(row*_28f)+this.padding);if(!_290[i]._loading){dojo.removeClass(_290[i],"hidden");}if(pos==this.selectedIndex){dojo[pos==this.selectedIndex?"addClass":"removeClass"](_290[i],"selected");}pos++;}var _291=Math.ceil(pos/this.maxPerRow);this._numRows=_291;this.setContainerHeight((_291*(this._thumbSize.h+this.padding*2)));},setContainerHeight:function(_292){dojo.style(this.domNode,"height",_292+"px");},addThumb:function(item,url,_293){var _294;var _295=false;if(this.cache.length>0){var _296=false;for(var i=0;i<this.cache.length;i++){if(this.cache[i]._url==url){_294=this.cache.splice(i,1)[0];_296=true;break;}}if(!_294&&!this.cacheMustMatch){_294=this.cache.pop();dojo.removeClass(_294,"selected");}else{_295=true;}}if(!_294){_294=dojo.create("div",{"class":"mblThumb hidden",innerHTML:dojo.string.substitute(this.itemTemplate,{url:url},null,this)},this.domNode);}if(this.labelParam){var _297=dojo.query(".mblThumbLabel",_294)[0];if(!_297){_297=dojo.create("div",{"class":"mblThumbLabel"},_294);}_297.innerHTML=item[this.labelParam]||"";}dojo.style(_294,"display","");if(!this.disableHide){dojo.addClass(_294,"hidden");}if(!_295){var _298=dojo.create("img",{});_298._thumbDiv=_294;_298._conn=dojo.connect(_298,"onload",this.handleImgLoad);_298._url=url;_294._loading=true;this._onLoadImages[url]=_298;if(_298){_298.src=url;}}this.visibleImages.push(_294);_294._index=_293;_294._item=item;_294._url=url;_294._cached=false;if(!this._thumbSize){this._thumbSize=dojo.marginBox(_294);if(this._thumbSize.h==0){this._thumbSize.h=100;this._thumbSize.w=100;}if(this.labelParam){this._thumbSize.h+=8;}this.calcPadding();}},handleImgLoad:function(_299){var img=_299.target;dojo.disconnect(img._conn);dojo.removeClass(img._thumbDiv,"hidden");img._thumbDiv._loading=false;img._conn=null;var url=img._url;if(this.cacheBust){url+=(url.indexOf("?")>-1?"&":"?")+"cacheBust="+(new Date()).getTime()+"_"+(this._cacheCounter++);}dojo.query(".mblThumbSrc",img._thumbDiv).style("backgroundImage","url("+url+")");delete this._onLoadImages[img._url];},calcPadding:function(){var _29a=this._size.w;var _29b=this._thumbSize.w;var _29c=_29b+this.minPadding;this.maxPerRow=Math.floor(_29a/_29c);this.padding=Math.floor((_29a-(_29b*this.maxPerRow))/(this.maxPerRow*2));},place:function(node,x,y){dojo.style(node,{"-webkit-transform":"translate("+x+"px,"+y+"px)"});},destroy:function(){var img;var _29d=0;for(var url in this._onLoadImages){img=this._onLoadImages[url];if(img){img.src=null;_29d++;}}this.inherited(arguments);}});}if(!dojo._hasResource["dojox.mobile.app._base"]){dojo._hasResource["dojox.mobile.app._base"]=true;dojo.provide("dojox.mobile.app._base");dojo.experimental("dojox.mobile.app._base");(function(){var _29e;var _29f;var _2a0=["dojox.mobile","dojox.mobile.parser"];var _2a1={};var _2a2;var _2a3;var _2a4=[];function _2a5(_2a6,_2a7){var _2a8;var url;do{_2a8=_2a6.pop();if(_2a8.source){url=_2a8.source;}else{if(_2a8.module){url=dojo.baseUrl+dojo._getModuleSymbols(_2a8.module).join("/")+".js";}else{alert("Error: invalid JavaScript resource "+dojo.toJson(_2a8));return;}}}while(_2a6.length>0&&_2a1[url]);if(_2a6.length<1&&_2a1[url]){_2a7();return;}dojo.xhrGet({url:url,sync:false}).addCallbacks(function(text){dojo["eval"](text);_2a1[url]=true;if(_2a6.length>0){_2a5(_2a6,_2a7);}else{_2a7();}},function(){alert("Failed to load resource "+url);});};var _2a9=function(){_29e=new dojox.mobile.app.StageController(_2a3);var _2aa={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(dojo.global["appInfo"]){dojo.mixin(_2aa,dojo.global["appInfo"]);}_29f=dojox.mobile.app.info=_2aa;if(_29f.title){var _2ab=dojo.query("head title")[0]||dojo.create("title",{},dojo.query("head")[0]);document.title=_29f.title;}_29e.pushScene(_29f.initialScene);};var _2ac=function(){var _2ad=false;if(dojo.global.BackButton){BackButton.override();dojo.connect(document,"backKeyDown",function(e){dojo.publish("/dojox/mobile/app/goback");});_2ad=true;}else{if(dojo.global.Mojo){}}if(_2ad){dojo.addClass(dojo.body(),"mblNativeBack");}};dojo.mixin(dojox.mobile.app,{init:function(node){_2a3=node||dojo.body();dojox.mobile.app.STAGE_CONTROLLER_ACTIVE=true;dojo.subscribe("/dojox/mobile/app/goback",function(){_29e.popScene();});dojo.subscribe("/dojox/mobile/app/alert",function(_2ae){dojox.mobile.app.getActiveSceneController().showAlertDialog(_2ae);});dojo.subscribe("/dojox/mobile/app/pushScene",function(_2af,_2b0){_29e.pushScene(_2af,_2b0||{});});dojo.xhrGet({url:"view-resources.json",load:function(data){var _2b1=[];if(data){_2a4=data=dojo.fromJson(data);for(var i=0;i<data.length;i++){if(!data[i].scene){_2b1.push(data[i]);}}}if(_2b1.length>0){_2a5(_2b1,_2a9);}else{_2a9();}},error:_2a9});_2ac();},getActiveSceneController:function(){return _29e.getActiveSceneController();},getStageController:function(){return _29e;},loadResources:function(_2b2,_2b3){_2a5(_2b2,_2b3);},loadResourcesForScene:function(_2b4,_2b5){var _2b6=[];for(var i=0;i<_2a4.length;i++){if(_2a4[i].scene==_2b4){_2b6.push(_2a4[i]);}}if(_2b6.length>0){_2a5(_2b6,_2b5);}else{_2b5();}},resolveTemplate:function(_2b7){return "app/views/"+_2b7+"/"+_2b7+"-scene.html";},resolveAssistant:function(_2b8){return "app/assistants/"+_2b8+"-assistant.js";}});})();}if(!dojo._hasResource["dojox.mobileApp"]){dojo._hasResource["dojox.mobileApp"]=true;dojo.provide("dojox.mobileApp");}
