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


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.mobile.FlippableView"],["require","dijit._WidgetBase"],["require","dojox.mobile"],["require","dojox.mobile._ScrollableMixin"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.mobile.FlippableView"]){_4._hasResource["dojox.mobile.FlippableView"]=true;_4.provide("dojox.mobile.FlippableView");_4.require("dijit._WidgetBase");_4.require("dojox.mobile");_4.require("dojox.mobile._ScrollableMixin");_4.declare("dojox.mobile.FlippableView",[_6.mobile.View,_6.mobile._ScrollableMixin],{scrollDir:"f",weight:1.2,buildRendering:function(){this.inherited(arguments);_4.addClass(this.domNode,"mblFlippableView");this.containerNode=this.domNode;this.containerNode.style.position="absolute";},onTouchStart:function(e){var _7=this._nextView(this.domNode);if(_7){_7.stopAnimation();}var _8=this._previousView(this.domNode);if(_8){_8.stopAnimation();}this.inherited(arguments);},_nextView:function(_9){for(var n=_9.nextSibling;n;n=n.nextSibling){if(n.nodeType==1){return _5.byNode(n);}}return null;},_previousView:function(_a){for(var n=_a.previousSibling;n;n=n.previousSibling){if(n.nodeType==1){return _5.byNode(n);}}return null;},scrollTo:function(to){if(!this._beingFlipped){var _b,x;if(to.x<0){_b=this._nextView(this.domNode);x=to.x+this.domNode.offsetWidth;}else{_b=this._previousView(this.domNode);x=to.x-this.domNode.offsetWidth;}if(_b){_b.domNode.style.display="";_b._beingFlipped=true;_b.scrollTo({x:x});_b._beingFlipped=false;}}this.inherited(arguments);},slideTo:function(to,_c,_d){if(!this._beingFlipped){var w=this.domNode.offsetWidth;var _e=this.getPos();var _f,_10;if(_e.x<0){_f=this._nextView(this.domNode);if(_e.x<-w/4){if(_f){to.x=-w;_10=0;}}else{if(_f){_10=w;}}}else{_f=this._previousView(this.domNode);if(_e.x>w/4){if(_f){to.x=w;_10=0;}}else{if(_f){_10=-w;}}}if(_f){_f._beingFlipped=true;_f.slideTo({x:_10},_c,_d);_f._beingFlipped=false;if(_10===0){_6.mobile.currentView=_f;}}}this.inherited(arguments);},onFlickAnimationEnd:function(e){var _11=this.domNode.parentNode.childNodes;for(var i=0;i<_11.length;i++){var c=_11[i];if(c.nodeType==1&&c!=_6.mobile.currentView.domNode){c.style.display="none";}}this.inherited(arguments);}});}}};});