/*
	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","dijit.layout._TabContainerBase"],["require","dijit.layout.StackContainer"],["require","dijit._Templated"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit.layout._TabContainerBase"]){_4._hasResource["dijit.layout._TabContainerBase"]=true;_4.provide("dijit.layout._TabContainerBase");_4.require("dijit.layout.StackContainer");_4.require("dijit._Templated");_4.declare("dijit.layout._TabContainerBase",[_5.layout.StackContainer,_5._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:_4.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\r\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&_4.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){_4.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){_4.addClass(this.domNode,"dijitTabContainerNested");_4.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");_4.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");_4.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{_4.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(_7){_4.addClass(_7.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _8=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_8;var _9=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_8},{domNode:this.containerNode,layoutAlign:"client"}];_5.layout.layoutChildren(this.domNode,this._contentBox,_9);this._containerContentBox=_5.layout.marginBox2contentBox(this.containerNode,_9[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _a=_4.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_a});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}}};});