/*
	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.TabContainer"],["require","dojox.mobile"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.mobile.TabContainer"]){_4._hasResource["dojox.mobile.TabContainer"]=true;_4.provide("dojox.mobile.TabContainer");_4.require("dojox.mobile");_4.declare("dojox.mobile.TabContainer",_5._WidgetBase,{iconBase:"",iconPos:"",fixedHeader:false,constructor:function(){_4.deprecated("dojox.mobile.TabContainer is deprecated","use dojox.mobile.TabBar instead",2);},buildRendering:function(){var _7=this.domNode=this.srcNodeRef;_7.className="mblTabContainer";var _8=this.tabHeaderNode=_4.doc.createElement("DIV");var _9=this.containerNode=_4.doc.createElement("DIV");for(var i=0,_a=_7.childNodes.length;i<_a;i++){_9.appendChild(_7.removeChild(_7.firstChild));}_8.className="mblTabPanelHeader";_8.align="center";if(this.fixedHeader){var _b=_5.getEnclosingWidget(this.domNode.parentNode);_b.domNode.insertBefore(_8,_b.domNode.firstChild);_4.style(_8,{position:"absolute",width:"100%",top:"0px",zIndex:"1"});_b.fixedHeader=_8;}else{_7.appendChild(_8);}_9.className="mblTabPanelPane";_7.appendChild(_9);},startup:function(){this.createTabButtons();this.inherited(arguments);},createTabButtons:function(){var _c=_4.doc.createElement("DIV");_c.align="center";var _d=_4.doc.createElement("TABLE");var _e=_d.insertRow(-1).insertCell(-1);var _f=this.containerNode.childNodes;for(var i=0;i<_f.length;i++){var _10=_f[i];if(_10.nodeType!=1){continue;}var _11=_5.byNode(_10);if(_11.selected||!this._selectedPane){this._selectedPane=_11;}_10.style.display="none";var tab=_4.doc.createElement("DIV");tab.className="mblTabButton";if(_11.icon){var _12=_4.create("DIV");var img=_4.create("IMG");_12.className="mblTabButtonImgDiv";img.src=_11.icon;_6.mobile.setupIcon(img,_11.iconPos);_12.appendChild(img);tab.appendChild(_12);}tab.appendChild(_4.doc.createTextNode(_11.label));tab.pane=_11;_11.tab=tab;this.connect(tab,"onclick","onTabClick");_e.appendChild(tab);}_c.appendChild(_d);this.tabHeaderNode.appendChild(_c);this.selectTab(this._selectedPane.tab);},selectTab:function(tab){this._selectedPane.domNode.style.display="none";_4.removeClass(this._selectedPane.tab,"mblTabButtonSelected");this._selectedPane=tab.pane;this._selectedPane.domNode.style.display="";_4.addClass(tab,"mblTabButtonSelected");if(_4.isBB){var ref=tab.nextSibling;tab.parentNode.insertBefore(tab.parentNode.removeChild(tab),ref);}var _13=_5.getEnclosingWidget(this.domNode.parentNode);if(this.fixedHeader){if(_13&&_13.scrollTo){_13.scrollTo({y:0});}}_13.flashScrollBar&&_13.flashScrollBar();},onTabClick:function(e){var tab=e.currentTarget;_4.addClass(tab,"mblTabButtonHighlighted");setTimeout(function(){_4.removeClass(tab,"mblTabButtonHighlighted");},200);this.selectTab(tab);}});_4.declare("dojox.mobile.TabPane",_5._WidgetBase,{label:"",icon:"",iconPos:"",selected:false,inheritParams:function(){var _14=this.getParentWidget();if(_14){if(!this.icon){this.icon=_14.iconBase;}if(!this.iconPos){this.iconPos=_14.iconPos;}}},buildRendering:function(){this.inheritParams();this.domNode=this.containerNode=this.srcNodeRef||_4.doc.createElement("DIV");this.domNode.className="mblTabPane";},getParentWidget:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_5.getEnclosingWidget(ref.parentNode):null;}});}}};});