//>>built
define("dojox/mobile/_compat","dojo/_base/array dojo/_base/config dojo/_base/connect dojo/_base/fx dojo/_base/lang dojo/sniff dojo/_base/window dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/dom-attr dojo/fx dojo/fx/easing dojo/ready dojo/uacss dijit/registry dojox/fx dojox/fx/flip ./EdgeToEdgeList ./IconContainer ./ProgressIndicator ./RoundRect ./RoundRectList ./ScrollableView ./Switch ./View ./Heading require".split(" "),function(B,w,r,x,k,g,l,C,t,u,n,K,p,L,D,M,E,F,N,y,
v,G,H,q,I,O,J,P,z){var e=k.getObject("dojox.mobile",!0);g("webkit")||10===g("ie")||!g("ie")&&6<g("trident")||(k.extend(J,{_doTransition:function(a,b,c,d){this.wakeUp(b);if(c&&"none"!=c){if("slide"==c||"cover"==c||"reveal"==c){var f=a.offsetWidth;c=p.slideTo({node:a,duration:400,left:-f*d,top:n.get(a,"top")});var h=p.slideTo({node:b,duration:400,left:0,top:n.get(b,"top")});b.style.position="absolute";b.style.left=f*d+"px";b.style.display="";d=p.combine([c,h]);r.connect(d,"onEnd",this,function(){if(this._inProgress){a.style.display=
"none";a.style.left="0px";b.style.position="relative";var m=E.byNode(b);m&&!C.contains(m.domNode,"out")&&(m.containerNode.style.paddingTop="");this.invokeCallback()}})}else"slidev"==c||"coverv"==c||"reavealv"==c?(f=a.offsetHeight,c=p.slideTo({node:a,duration:400,left:0,top:-f*d}),h=p.slideTo({node:b,duration:400,left:0,top:0}),b.style.position="absolute",b.style.top=f*d+"px",b.style.left="0px",b.style.display="",d=p.combine([c,h]),r.connect(d,"onEnd",this,function(){this._inProgress&&(a.style.display=
"none",b.style.position="relative",this.invokeCallback())})):"flip"==c?(d=F.flip({node:a,dir:"right",depth:.5,duration:400}),b.style.position="absolute",b.style.left="0px",r.connect(d,"onEnd",this,function(){this._inProgress&&(a.style.display="none",b.style.position="relative",b.style.display="",this.invokeCallback())})):(d=p.chain([x.fadeOut({node:a,duration:600}),x.fadeIn({node:b,duration:600})]),b.style.position="absolute",b.style.left="0px",b.style.display="",n.set(b,"opacity",0),r.connect(d,
"onEnd",this,function(){this._inProgress&&(a.style.display="none",b.style.position="relative",n.set(a,"opacity",1),this.invokeCallback())}));d.play()}else b.style.display="",a.style.display="none",b.style.left="0px",this.invokeCallback()},wakeUp:function(a){if(g("ie")&&!a._wokeup){a._wokeup=!0;var b=a.style.display;a.style.display="";for(var c=a.getElementsByTagName("*"),d=0,f=c.length;d<f;d++){var h=c[d].style.display;c[d].style.display="none";c[d].style.display="";c[d].style.display=h}a.style.display=
b}}}),k.extend(G,{scale:function(a){if(g("ie"))a={w:a,h:a},u.setMarginBox(this.domNode,a),u.setMarginBox(this.containerNode,a);else if(g("ff")){var b=a/40;n.set(this.containerNode,{MozTransform:"scale("+b+")",MozTransformOrigin:"0 0"});u.setMarginBox(this.domNode,{w:a,h:a});u.setMarginBox(this.containerNode,{w:a/b,h:a/b})}}}),g("ie")&&(k.extend(H,{buildRendering:function(){e.createRoundRect(this);this.domNode.className="mblRoundRect"}}),q._addChild=q.prototype.addChild,q._postCreate=q.prototype.postCreate,
k.extend(q,{buildRendering:function(){e.createRoundRect(this,!0);this.domNode.className="mblRoundRectList";g("ie")&&g("dojo-bidi")&&!this.isLeftToRight()&&(this.domNode.className="mblRoundRectList mblRoundRectListRtl")},postCreate:function(){q._postCreate.apply(this,arguments);this.redrawBorders()},addChild:function(a,b){q._addChild.apply(this,arguments);this.redrawBorders();e.applyPngFilter&&e.applyPngFilter(a.domNode)},redrawBorders:function(){if(!(this instanceof y))for(var a=!1,b=this.containerNode.childNodes.length-
1;0<=b;b--){var c=this.containerNode.childNodes[b];"LI"==c.tagName&&(c.style.borderBottomStyle=a?"solid":"none",a=!0)}}}),k.extend(y,{buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||l.doc.createElement("ul");this.domNode.className="mblEdgeToEdgeList"}}),v._addChild=v.prototype.addChild,k.extend(v,{addChild:function(a,b){v._addChild.apply(this,arguments);e.applyPngFilter&&e.applyPngFilter(a.domNode)}}),k.mixin(e,{createRoundRect:function(a,b){var c;a.domNode=l.doc.createElement("div");
a.domNode.style.padding="0px";a.domNode.style.backgroundColor="transparent";a.domNode.style.border="none";a.containerNode=l.doc.createElement(b?"ul":"div");a.containerNode.className="mblRoundRectContainer";if(a.srcNodeRef){a.srcNodeRef.parentNode.replaceChild(a.domNode,a.srcNodeRef);var d=0;for(c=a.srcNodeRef.childNodes.length;d<c;d++)a.containerNode.appendChild(a.srcNodeRef.removeChild(a.srcNodeRef.firstChild));a.srcNodeRef=null}a.domNode.appendChild(a.containerNode);for(d=0;5>=d;d++)c=t.create("div"),
c.className="mblRoundCorner mblRoundCorner"+d+"T",a.domNode.insertBefore(c,a.containerNode),c=t.create("div"),c.className="mblRoundCorner mblRoundCorner"+d+"B",a.domNode.appendChild(c)}}),k.extend(I,{postCreate:function(){var a=t.create("div",{className:"mblDummyForIE",innerHTML:"\x26nbsp;"},this.containerNode,"first");n.set(a,{position:"relative",marginBottom:"-2px",fontSize:"1px"})}})),6>=g("ie")&&(e.applyPngFilter=function(a){a=a||l.body();a=a.getElementsByTagName("IMG");for(var b=z.toUrl("dojo/resources/blank.gif"),
c=0,d=a.length;c<d;c++){var f=a[c],h=f.offsetWidth,m=f.offsetHeight;if(0===h||0===m){if("none"!=n.get(f,"display"))continue;f.style.display="";h=f.offsetWidth;m=f.offsetHeight;f.style.display="none";if(0===h||0===m)continue}var A=f.src;-1==A.indexOf("resources/blank.gif")&&(f.src=b,f.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+A+"')",f.style.width=h+"px",f.style.height=m+"px")}},!e._disableBgFilter&&e.createDomButton&&(e._createDomButton_orig=e.createDomButton,
e.createDomButton=function(a,b,c){var d=e._createDomButton_orig.apply(this,arguments);if(d&&d.className&&-1!==d.className.indexOf("mblDomButton")){var f=function(){if(d.currentStyle&&d.currentStyle.backgroundImage.match(/url.*(mblDomButton.*\.png)/)){var h=RegExp.$1;h=z.toUrl("dojox/mobile/themes/common/domButtons/compat/")+h;d.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src\x3d'"+h+"',sizingMethod\x3d'crop')";d.style.background="none"}};setTimeout(f,1E3);setTimeout(f,
5E3)}return d})),e.loadCssFile=function(a){e.loadedCssFiles||(e.loadedCssFiles=[]);l.doc.createStyleSheet?setTimeout(function(b){return function(){var c=l.doc.createStyleSheet(b);c&&e.loadedCssFiles.push(c.owningElement)}}(a),0):e.loadedCssFiles.push(t.create("link",{href:a,type:"text/css",rel:"stylesheet"},l.doc.getElementsByTagName("head")[0]))},e.loadCss=function(a){if(!e._loadedCss){var b={};B.forEach(e.getCssPaths(),function(f){b[f]=!0});e._loadedCss=b}k.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var d=
a[c];e._loadedCss[d]||(e._loadedCss[d]=!0,e.loadCssFile(d))}},e.getCssPaths=function(){var a=[],b,c,d=l.doc.styleSheets;for(b=0;b<d.length;b++)if(!d[b].href){var f=d[b].cssRules||d[b].imports;if(f)for(c=0;c<f.length;c++)f[c].href&&a.push(f[c].href)}d=l.doc.getElementsByTagName("link");b=0;for(c=d.length;b<c;b++)d[b].href&&a.push(d[b].href);return a},e.loadCompatPattern=/\/mobile\/themes\/.*\.css$/,e.loadCompatCssFiles=function(a){if(g("ie")&&!a)setTimeout(function(){e.loadCompatCssFiles(!0)},0);else{e._loadedCss=
void 0;a=e.getCssPaths();g("dojo-bidi")&&(a=e.loadRtlCssFiles(a));for(var b=0;b<a.length;b++){var c=a[b];!c.match(w.mblLoadCompatPattern||e.loadCompatPattern)&&-1===location.href.indexOf("mobile/tests/")||-1!==c.indexOf("-compat.css")||(c=c.substring(0,c.length-4)+"-compat.css",e.loadCss(c))}}},g("dojo-bidi")&&(e.loadRtlCssFiles=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(-1==c.indexOf("_rtl")){var d=c.substr(c.lastIndexOf("/")+1);-1!="android.css blackberry.css custom.css iphone.css holodark.css base.css Carousel.css ComboBox.css IconContainer.css IconMenu.css ListItem.css RoundRectCategory.css SpinWheel.css Switch.css TabBar.css ToggleButton.css ToolBarButton.css ProgressIndicator.css Accordion.css GridLayout.css FormLayout.css".indexOf(d)&&
(c=c.replace(".css","_rtl.css"),a.push(c),e.loadCss(c))}}return a}),e.hideAddressBar=function(a,b){!1!==b&&e.resizeAll()},D(function(){!1!==w.mblLoadCompatCssFiles&&e.loadCompatCssFiles();e.applyPngFilter&&e.applyPngFilter()}));return e});